diff --git a/.github/ISSUE_TEMPLATE/01-feature_request.yaml b/.github/ISSUE_TEMPLATE/01-feature_request.yaml
index 300d7ce6a..48a3a859c 100644
--- a/.github/ISSUE_TEMPLATE/01-feature_request.yaml
+++ b/.github/ISSUE_TEMPLATE/01-feature_request.yaml
@@ -1,5 +1,6 @@
---
name: ✨ Feature Request
+type: Feature
description: Propose a new NetBox feature or enhancement
labels: ["type: feature", "status: needs triage"]
body:
@@ -14,7 +15,7 @@ body:
attributes:
label: NetBox version
description: What version of NetBox are you currently running?
- placeholder: v4.1.6
+ placeholder: v4.2.2
validations:
required: true
- type: dropdown
@@ -27,19 +28,6 @@ body:
- Other
validations:
required: true
- - type: dropdown
- attributes:
- label: Triage priority
- description: >
- Issue triage may be prioritized in some cases. Select whichever of the following
- conditions applies, if any.
- options:
- - I volunteer to perform this work (if approved)
- - I'm a NetBox Labs customer
- - N/A
- default: 2
- validations:
- required: true
- type: textarea
attributes:
label: Proposed functionality
diff --git a/.github/ISSUE_TEMPLATE/02-bug_report.yaml b/.github/ISSUE_TEMPLATE/02-bug_report.yaml
index 2b782a6cd..83397944c 100644
--- a/.github/ISSUE_TEMPLATE/02-bug_report.yaml
+++ b/.github/ISSUE_TEMPLATE/02-bug_report.yaml
@@ -1,5 +1,6 @@
---
name: 🐛 Bug Report
+type: Bug
description: Report a reproducible bug in the current release of NetBox
labels: ["type: bug", "status: needs triage"]
body:
@@ -22,24 +23,11 @@ body:
- Self-hosted
validations:
required: true
- - type: dropdown
- attributes:
- label: Triage priority
- description: >
- Issue triage may be prioritized in some cases. Select whichever of the following
- conditions applies, if any.
- options:
- - I volunteer to perform this work (if approved)
- - I'm a NetBox Labs customer
- - N/A
- default: 2
- validations:
- required: true
- type: input
attributes:
label: NetBox Version
description: What version of NetBox are you currently running?
- placeholder: v4.1.6
+ placeholder: v4.2.2
validations:
required: true
- type: dropdown
diff --git a/.github/ISSUE_TEMPLATE/03-documentation_change.yaml b/.github/ISSUE_TEMPLATE/03-documentation_change.yaml
index b5a970782..2dea61acc 100644
--- a/.github/ISSUE_TEMPLATE/03-documentation_change.yaml
+++ b/.github/ISSUE_TEMPLATE/03-documentation_change.yaml
@@ -1,5 +1,6 @@
---
name: 📖 Documentation Change
+type: Documentation
description: Suggest an addition or modification to the NetBox documentation
labels: ["type: documentation", "status: needs triage"]
body:
diff --git a/.github/ISSUE_TEMPLATE/04-translation.yaml b/.github/ISSUE_TEMPLATE/04-translation.yaml
index d07bc399d..72130ae47 100644
--- a/.github/ISSUE_TEMPLATE/04-translation.yaml
+++ b/.github/ISSUE_TEMPLATE/04-translation.yaml
@@ -1,5 +1,6 @@
---
name: 🌍 Translation
+type: Translation
description: Request support for a new language in the user interface
labels: ["type: translation"]
body:
diff --git a/.github/ISSUE_TEMPLATE/05-housekeeping.yaml b/.github/ISSUE_TEMPLATE/05-housekeeping.yaml
index 777871395..65b983e18 100644
--- a/.github/ISSUE_TEMPLATE/05-housekeeping.yaml
+++ b/.github/ISSUE_TEMPLATE/05-housekeeping.yaml
@@ -1,5 +1,6 @@
---
name: 🏡 Housekeeping
+type: Housekeeping
description: A change pertaining to the codebase itself (developers only)
labels: ["type: housekeeping"]
body:
diff --git a/.github/ISSUE_TEMPLATE/06-deprecation.yaml b/.github/ISSUE_TEMPLATE/06-deprecation.yaml
index 27e13e5c0..83905a39a 100644
--- a/.github/ISSUE_TEMPLATE/06-deprecation.yaml
+++ b/.github/ISSUE_TEMPLATE/06-deprecation.yaml
@@ -1,5 +1,6 @@
---
name: 🗑️ Deprecation
+type: Deprecation
description: The removal of an existing feature or resource
labels: ["type: deprecation"]
body:
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index efbf38932..5b18f4525 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -2,7 +2,7 @@
blank_issues_enabled: false
contact_links:
- name: 📖 Contributing Policy
- url: https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md
+ url: https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md
about: "Please read through our contributing policy before opening an issue or pull request."
- name: ❓ Discussion
url: https://github.com/netbox-community/netbox/discussions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c3b4876c3..85070d98e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -3,11 +3,15 @@ name: CI
on:
push:
paths-ignore:
+ - '.github/ISSUE_TEMPLATE/**'
+ - '.github/PULL_REQUEST_TEMPLATE.md'
- 'contrib/**'
- 'docs/**'
- 'netbox/translations/**'
pull_request:
paths-ignore:
+ - '.github/ISSUE_TEMPLATE/**'
+ - '.github/PULL_REQUEST_TEMPLATE.md'
- 'contrib/**'
- 'docs/**'
- 'netbox/translations/**'
@@ -15,6 +19,11 @@ on:
permissions:
contents: read
+# Add concurrency group to control job running
+concurrency:
+ group: ${{ github.event_name }}-${{ github.ref }}-${{ github.actor }}
+ cancel-in-progress: true
+
jobs:
build:
runs-on: ubuntu-latest
@@ -23,7 +32,7 @@ jobs:
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
- node-version: ['18.x']
+ node-version: ['20.x']
services:
redis:
image: redis
diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml
index 1e0e193df..89b3d5f9a 100644
--- a/.github/workflows/close-stale-issues.yml
+++ b/.github/workflows/close-stale-issues.yml
@@ -38,7 +38,7 @@ jobs:
issues may receive direct feedback. **Do not** attempt to circumvent this
process by "bumping" the issue; doing so will result in its immediate closure
and you may be barred from participating in any future discussions. Please see
- our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
+ our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
# Pull request parameters
close-pr-message: >
diff --git a/.github/workflows/update-translation-strings.yml b/.github/workflows/update-translation-strings.yml
index bcd68c887..e78cd4296 100644
--- a/.github/workflows/update-translation-strings.yml
+++ b/.github/workflows/update-translation-strings.yml
@@ -18,8 +18,17 @@ jobs:
NETBOX_CONFIGURATION: netbox.configuration_testing
steps:
+ - name: Create app token
+ uses: actions/create-github-app-token@v1
+ id: app-token
+ with:
+ app-id: 1076524
+ private-key: ${{ secrets.HOUSEKEEPING_SECRET_KEY }}
+
- name: Check out repo
uses: actions/checkout@v4
+ with:
+ token: ${{ steps.app-token.outputs.token }}
- name: Set up Python
uses: actions/setup-python@v5
diff --git a/README.md b/README.md
index e3829c2cc..3a29a6fd2 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,12 @@
-
+
The cornerstone of every automated network
-
+
-
+
NetBox Community |
NetBox Cloud |
diff --git a/base_requirements.txt b/base_requirements.txt
index 3e5bcb0db..9cf0fbf8b 100644
--- a/base_requirements.txt
+++ b/base_requirements.txt
@@ -1,6 +1,6 @@
# The Python web framework on which NetBox is built
# https://docs.djangoproject.com/en/stable/releases/
-Django<5.1
+Django<5.2
# Django middleware which permits cross-domain API requests
# https://github.com/adamchainz/django-cors-headers/blob/main/CHANGELOG.rst
@@ -8,8 +8,6 @@ django-cors-headers
# Runtime UI tool for debugging Django
# https://github.com/jazzband/django-debug-toolbar/blob/main/docs/changes.rst
-# Pinned for DNS looukp bug; see https://github.com/netbox-community/netbox/issues/16454
-# and https://github.com/jazzband/django-debug-toolbar/issues/1927
django-debug-toolbar
# Library for writing reusable URL query filters
@@ -101,7 +99,7 @@ netaddr
nh3
# Fork of PIL (Python Imaging Library) for image processing
-# https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst
+# https://github.com/python-pillow/Pillow/releases
Pillow
# PostgreSQL database adapter for Python
@@ -134,7 +132,8 @@ strawberry-graphql
# Strawberry GraphQL Django extension
# https://github.com/strawberry-graphql/strawberry-django/releases
-strawberry-graphql-django
+# Pinned to v0.52.0 for suspected upstream bug; see #18329
+strawberry-graphql-django==0.52.0
# SVG image rendering (used for rack elevations)
# https://github.com/mozman/svgwrite/blob/master/NEWS.rst
diff --git a/contrib/generated_schema.json b/contrib/generated_schema.json
index 56ddee50e..639f0df8d 100644
--- a/contrib/generated_schema.json
+++ b/contrib/generated_schema.json
@@ -329,6 +329,7 @@
"100base-tx",
"100base-t1",
"1000base-t",
+ "1000base-lx",
"1000base-tx",
"2.5gbase-t",
"5gbase-t",
diff --git a/docs/configuration/miscellaneous.md b/docs/configuration/miscellaneous.md
index 124de3037..c14c0ac77 100644
--- a/docs/configuration/miscellaneous.md
+++ b/docs/configuration/miscellaneous.md
@@ -96,14 +96,6 @@ The maximum size (in bytes) of an incoming HTTP request (i.e. `GET` or `POST` da
---
-## DJANGO_ADMIN_ENABLED
-
-Default: False
-
-Setting this to True installs the `django.contrib.admin` app and enables the [Django admin UI](https://docs.djangoproject.com/en/5.0/ref/contrib/admin/). This may be necessary to support older plugins which do not integrate with the native NetBox interface.
-
----
-
## ENFORCE_GLOBAL_UNIQUE
!!! tip "Dynamic Configuration Parameter"
@@ -114,6 +106,16 @@ By default, NetBox will prevent the creation of duplicate prefixes and IP addres
---
+## EVENTS_PIPELINE
+
+!!! info "This parameter was introduced in NetBox v4.2."
+
+Default: `['extras.events.process_event_queue',]`
+
+NetBox will call dotted paths to the functions listed here for events (create, update, delete) on models as well as when custom EventRules are fired.
+
+---
+
## FILE_UPLOAD_MAX_MEMORY_SIZE
Default: `2621440` (2.5 MB)
diff --git a/docs/configuration/required-parameters.md b/docs/configuration/required-parameters.md
index 90eb8c0cf..f9a5a6f87 100644
--- a/docs/configuration/required-parameters.md
+++ b/docs/configuration/required-parameters.md
@@ -25,7 +25,7 @@ ALLOWED_HOSTS = ['*']
## DATABASE
-NetBox requires access to a PostgreSQL 12 or later database service to store data. This service can run locally on the NetBox server or on a remote system. The following parameters must be defined within the `DATABASE` dictionary:
+NetBox requires access to a PostgreSQL 13 or later database service to store data. This service can run locally on the NetBox server or on a remote system. The following parameters must be defined within the `DATABASE` dictionary:
* `NAME` - Database name
* `USER` - PostgreSQL username
diff --git a/docs/configuration/system.md b/docs/configuration/system.md
index 25c724bc9..af3a6f5e6 100644
--- a/docs/configuration/system.md
+++ b/docs/configuration/system.md
@@ -89,8 +89,6 @@ addresses (and [`DEBUG`](./development.md#debug) is true).
## ISOLATED_DEPLOYMENT
-!!! info "This feature was introduced in NetBox v4.1."
-
Default: False
Set this configuration parameter to True for NetBox deployments which do not have Internet access. This will disable miscellaneous functionality which depends on access to the Internet.
diff --git a/docs/development/adding-models.md b/docs/development/adding-models.md
index f3aa9cfcc..0bf020662 100644
--- a/docs/development/adding-models.md
+++ b/docs/development/adding-models.md
@@ -8,7 +8,7 @@ Each model should define, at a minimum:
* A `Meta` class specifying a deterministic ordering (if ordered by fields other than the primary ID)
* A `__str__()` method returning a user-friendly string representation of the instance
-* A `get_absolute_url()` method returning an instance's direct URL (using `reverse()`)
+* A `get_absolute_url()` method if necessary; a standard version of the method is defined in the `NetBoxFeatureSet` base class, but you will need to provide your own (returning an instance's direct URL using `reverse()`) if not subclassing that base class
## 2. Define field choices
@@ -78,6 +78,8 @@ Create the following for each model:
Create a GraphQL object type for the model in `graphql/types.py` by subclassing the appropriate class from `netbox.graphql.types`.
+**Note:** GraphQL unit tests may fail citing null values on a non-nullable field if related objects are prefetched. You may need to fix this by setting the type annotation to be `= strawberry_django.field(select_related=["policy"])` or similar.
+
Also extend the schema class defined in `graphql/schema.py` with the individual object and object list fields per the established convention.
## 14. Add tests
diff --git a/docs/development/application-registry.md b/docs/development/application-registry.md
index 570563431..fc96bfd76 100644
--- a/docs/development/application-registry.md
+++ b/docs/development/application-registry.md
@@ -49,6 +49,10 @@ This key lists all models which have been registered in NetBox which are not des
This store maintains all registered items for plugins, such as navigation menus, template extensions, etc.
+### `request_processors`
+
+A list of context managers to invoke when processing a request e.g. in middleware or when executing a background job. Request processors can be registered with the `@register_request_processor` decorator.
+
### `search`
A dictionary mapping each model (identified by its app and label) to its search index class, if one has been registered for it.
diff --git a/docs/development/getting-started.md b/docs/development/getting-started.md
index 6e425d5a3..0b77bfd4d 100644
--- a/docs/development/getting-started.md
+++ b/docs/development/getting-started.md
@@ -37,16 +37,12 @@ CHANGELOG.md CONTRIBUTING.md LICENSE.txt netbox README.md scri
### 2. Create a New Branch
-The NetBox project utilizes three persistent git branches to track work:
+The NetBox project utilizes two persistent git branches to track work:
-* `master` - Serves as a snapshot of the current stable release
-* `develop` - All development on the upcoming stable (patch) release occurs here
-* `feature` - Tracks work on an upcoming minor release
+* `main` - All development on the upcoming stable (patch) release occurs here. Releases are published from this branch.
+* `feature` - All work planned for the upcoming minor release is done here.
-Typically, you'll base pull requests off of the `develop` branch, or off of `feature` if you're working on a new major release. For example, assume that the current NetBox release is v3.3.5. Work applied to the `develop` branch will appear in v3.3.6, and work done under the `feature` branch will be included in the next minor release (v3.4.0).
-
-!!! warning
- **Never** merge pull requests into the `master` branch: This branch only ever merges pull requests from the `develop` branch, to effect a new release.
+Typically, you'll base pull requests off of the `main` branch, or off of `feature` if you're working on the upcoming minor or major release. For example, assume that the current NetBox release is v4.2.3. Work applied to the `main` branch will appear in v4.2.4, and work done under the `feature` branch will be included in the next minor release (v4.3.0).
To create a new branch, first ensure that you've checked out the desired base branch, then run:
diff --git a/docs/development/git-cheat-sheet.md b/docs/development/git-cheat-sheet.md
index 35b8e90b5..794b25c65 100644
--- a/docs/development/git-cheat-sheet.md
+++ b/docs/development/git-cheat-sheet.md
@@ -128,7 +128,7 @@ Fast-forward
```
!!! warning "Avoid Merging Remote Branches"
- You generally want to avoid merging branches that exist on the remote (upstream) repository, such as `develop` and `feature`: Merges into these branches should be done via a pull request on GitHub. Only merge branches when it is necessary to consolidate work you've done locally.
+ You generally want to avoid merging branches that exist on the remote (upstream) repository, namely `main` and `feature`: Merges into these branches should be done via a pull request on GitHub. Only merge branches when it is necessary to consolidate work you've done locally.
### Show Pending Changes
@@ -196,7 +196,7 @@ index 93e125079..4344fb514 100644
+and here too
+
-
+
diff --git a/foo.py b/foo.py
new file mode 100644
diff --git a/docs/development/index.md b/docs/development/index.md
index 0d570abe6..09489ebdd 100644
--- a/docs/development/index.md
+++ b/docs/development/index.md
@@ -8,11 +8,10 @@ NetBox and many of its related projects are maintained on [GitHub](https://githu

-There are three permanent branches in the repository:
+There are two permanent branches in the repository:
-* `master` - The current stable release. Individual changes should never be pushed directly to this branch, but rather merged from `develop`.
-* `develop` - Active development for the upcoming patch release. Pull requests will typically be based on this branch unless they introduce breaking changes that must be deferred until the next minor release.
-* `feature` - New feature work to be introduced in the next minor release (e.g. from v3.3 to v3.4).
+* `main` - Active development for the upcoming patch release. Pull requests will typically be based on this branch unless they introduce breaking changes that must be deferred until the next minor release.
+* `feature` - New feature work to be introduced in the next minor release (e.g. from v4.2 to v4.3).
NetBox components are arranged into Django apps. Each app holds the models, views, and other resources relevant to a particular function:
@@ -57,4 +56,4 @@ NetBox follows the [benevolent dictator](http://oss-watch.ac.uk/resources/benevo
## Licensing
-The entire NetBox project is licensed as open source under the [Apache 2.0 license](https://github.com/netbox-community/netbox/blob/master/LICENSE.txt). This is a very permissive license which allows unlimited redistribution of all code within the project. Note that all submissions to the project are subject to the same license.
+The entire NetBox project is licensed as open source under the [Apache 2.0 license](https://github.com/netbox-community/netbox/blob/main/LICENSE.txt). This is a very permissive license which allows unlimited redistribution of all code within the project. Note that all submissions to the project are subject to the same license.
diff --git a/docs/development/release-checklist.md b/docs/development/release-checklist.md
index 4e5fdeca8..c74fcf8f6 100644
--- a/docs/development/release-checklist.md
+++ b/docs/development/release-checklist.md
@@ -43,9 +43,9 @@ Follow these instructions to perform a new installation of NetBox in a temporary
Upgrading from a previous version typically involves database migrations, which must work without errors. Supported upgrade paths include from one minor version to another within the same major version (i.e. 4.0 to 4.1), as well as from the latest patch version of the previous minor version (i.e. 3.7 to 4.0 or to 4.1). Prior to release, test all these supported paths by loading demo data from the source version and performing a `./manage.py migrate`.
-### Merge the Release Branch
+### Merge the `feature` Branch
-Submit a pull request to merge the `feature` branch into the `develop` branch in preparation for its release. Once it has been merged, continue with the section for patch releases below.
+Submit a pull request to merge the `feature` branch into the `main` branch in preparation for its release. Once it has been merged, continue with the section for patch releases below.
### Rebuild Demo Data (After Release)
@@ -55,6 +55,15 @@ After the release of a new minor version, generate a new demo data snapshot comp
## Patch Releases
+### Create a Release Branch
+
+Begin by creating a new branch (based off of `main`) to effect the release. This will comprise the changes listed below.
+
+```
+git checkout main
+git checkout -B release-vX.Y.Z
+```
+
### Notify netbox-docker Project of Any Relevant Changes
Notify the [`netbox-docker`](https://github.com/netbox-community/netbox-docker) maintainers (in **#netbox-docker**) of any changes that may be relevant to their build process, including:
@@ -111,25 +120,19 @@ Then, compile these portable (`.po`) files for use in the application:
* Update the example version numbers in the feature request and bug report templates under `.github/ISSUE_TEMPLATES/`.
* Replace the "FUTURE" placeholder in the release notes with the current date.
-Commit these changes to the `develop` branch and push upstream.
-
-### Verify CI Build Status
-
-Ensure that continuous integration testing on the `develop` branch is completing successfully. If it fails, take action to correct the failure before proceeding with the release.
-
### Submit a Pull Request
-Submit a pull request titled **"Release vX.Y.Z"** to merge the `develop` branch into `master`. Copy the documented release notes into the pull request's body.
+Commit the above changes and submit a pull request titled **"Release vX.Y.Z"** to merge the current release branch (e.g. `release-vX.Y.Z`) into `main`. Copy the documented release notes into the pull request's body.
-Once CI has completed on the PR, merge it. This effects a new release in the `master` branch.
+Once CI has completed and a colleague has reviewed the PR, merge it. This effects a new release in the `main` branch.
### Create a New Release
Create a [new release](https://github.com/netbox-community/netbox/releases/new) on GitHub with the following parameters.
-* **Tag:** Current version (e.g. `v3.3.1`)
-* **Target:** `master`
-* **Title:** Version and date (e.g. `v3.3.1 - 2022-08-25`)
+* **Tag:** Current version (e.g. `v4.2.1`)
+* **Target:** `main`
+* **Title:** Version and date (e.g. `v4.2.1 - 2025-01-17`)
* **Description:** Copy from the pull request body, then promote the `###` headers to `##` ones
Once created, the release will become available for users to install.
diff --git a/docs/development/translations.md b/docs/development/translations.md
index 43733c6d1..de8545b97 100644
--- a/docs/development/translations.md
+++ b/docs/development/translations.md
@@ -14,10 +14,10 @@ To update the English `.po` file from which all translations are derived, use th
./manage.py makemessages -l en -i "project-static/*"
```
-Then, commit the change and push to the `develop` branch on GitHub. Any new strings will appear for translation on Transifex automatically.
+Then, commit the change and push to the `main` branch on GitHub. Any new strings will appear for translation on Transifex automatically.
!!! note
- It is typically not necessary to update source strings manually, as this is done nightly by a [GitHub action](https://github.com/netbox-community/netbox/blob/develop/.github/workflows/update-translation-strings.yml).
+ It is typically not necessary to update source strings manually, as this is done nightly by a [GitHub action](https://github.com/netbox-community/netbox/blob/main/.github/workflows/update-translation-strings.yml).
## Updating Translated Strings
diff --git a/docs/features/facilities.md b/docs/features/facilities.md
index 4c8dfe265..1421281eb 100644
--- a/docs/features/facilities.md
+++ b/docs/features/facilities.md
@@ -46,7 +46,7 @@ Regions will always be listed alphabetically by name within each parent, and the
Like regions, site groups can be arranged in a recursive hierarchy for grouping sites. However, whereas regions are intended for geographic organization, site groups may be used for functional grouping. For example, you might classify sites as corporate, branch, or customer sites in addition to where they are physically located.
-The use of both regions and site groups affords to independent but complementary dimensions across which sites can be organized.
+The use of both regions and site groups affords two independent but complementary dimensions across which sites can be organized.
## Sites
diff --git a/docs/features/notifications.md b/docs/features/notifications.md
index a28a17947..0567a6db6 100644
--- a/docs/features/notifications.md
+++ b/docs/features/notifications.md
@@ -1,7 +1,5 @@
# Notifications
-!!! info "This feature was introduced in NetBox v4.1."
-
NetBox includes a system for generating user notifications, which can be marked as read or deleted by individual users. There are two built-in mechanisms for generating a notification:
* A user can subscribe to an object. When that object is modified, a notification is created to inform the user of the change.
diff --git a/docs/installation/1-postgresql.md b/docs/installation/1-postgresql.md
index 9d30f4514..8ba302909 100644
--- a/docs/installation/1-postgresql.md
+++ b/docs/installation/1-postgresql.md
@@ -2,8 +2,8 @@
This section entails the installation and configuration of a local PostgreSQL database. If you already have a PostgreSQL database service in place, skip to [the next section](2-redis.md).
-!!! warning "PostgreSQL 12 or later required"
- NetBox requires PostgreSQL 12 or later. Please note that MySQL and other relational databases are **not** supported.
+!!! warning "PostgreSQL 13 or later required"
+ NetBox requires PostgreSQL 13 or later. Please note that MySQL and other relational databases are **not** supported.
## Installation
@@ -34,7 +34,7 @@ This section entails the installation and configuration of a local PostgreSQL da
sudo systemctl enable --now postgresql
```
-Before continuing, verify that you have installed PostgreSQL 12 or later:
+Before continuing, verify that you have installed PostgreSQL 13 or later:
```no-highlight
psql -V
@@ -62,6 +62,9 @@ GRANT CREATE ON SCHEMA public TO netbox;
!!! danger "Use a strong password"
**Do not use the password from the example.** Choose a strong, random password to ensure secure database authentication for your NetBox installation.
+!!! danger "Use UTF8 encoding"
+ Make sure that your database uses `UTF8` encoding (the default for new installations). Especially do not use `SQL_ASCII` encoding, as it can lead to unpredictable and unrecoverable errors. Enter `\l` to check your encoding.
+
Once complete, enter `\q` to exit the PostgreSQL shell.
## Verify Service Status
diff --git a/docs/installation/3-netbox.md b/docs/installation/3-netbox.md
index 9a143319d..60d60d4f0 100644
--- a/docs/installation/3-netbox.md
+++ b/docs/installation/3-netbox.md
@@ -29,7 +29,7 @@ python3 -V
## Download NetBox
-This documentation provides two options for installing NetBox: from a downloadable archive, or from the git repository. Installing from a package (option A below) requires manually fetching and extracting the archive for every future update, whereas installation via git (option B) allows for seamless upgrades by re-pulling the `master` branch.
+This documentation provides two options for installing NetBox: from a downloadable archive, or from the git repository. Installing from a package (option A below) requires manually fetching and extracting the archive for every future update, whereas installation via git (option B) allows for seamless upgrades by checking out the latest release tag.
### Option A: Download a Release Archive
@@ -67,16 +67,13 @@ If `git` is not already installed, install it:
sudo yum install -y git
```
-Next, clone the **master** branch of the NetBox GitHub repository into the current directory. (This branch always holds the current stable release.)
+Next, clone the git repository:
```no-highlight
-sudo git clone -b master --depth 1 https://github.com/netbox-community/netbox.git .
+sudo git clone https://github.com/netbox-community/netbox.git .
```
-!!! note
- The `git clone` command above utilizes a "shallow clone" to retrieve only the most recent commit. If you need to download the entire history, omit the `--depth 1` argument.
-
-The `git clone` command should generate output similar to the following:
+This command should generate output similar to the following:
```
Cloning into '.'...
@@ -88,8 +85,13 @@ Receiving objects: 100% (996/996), 4.26 MiB | 9.81 MiB/s, done.
Resolving deltas: 100% (148/148), done.
```
-!!! note
- Installation via git also allows you to easily try out different versions of NetBox. To check out a [specific NetBox release](https://github.com/netbox-community/netbox/releases), use the `git checkout` command with the desired release tag. For example, `git checkout v3.0.8`.
+Finally, check out the tag for the desired release. You can find these on our [releases page](https://github.com/netbox-community/netbox/releases). Replace `vX.Y.Z` with your selected release tag below.
+
+```
+sudo git checkout vX.Y.Z
+```
+
+Using this installation method enables easy upgrades in the future by simply checking out the latest release tag.
## Create the NetBox System User
diff --git a/docs/installation/index.md b/docs/installation/index.md
index 76160068a..33888e274 100644
--- a/docs/installation/index.md
+++ b/docs/installation/index.md
@@ -21,7 +21,7 @@ The following sections detail how to set up a new instance of NetBox:
| Dependency | Supported Versions |
|------------|--------------------|
| Python | 3.10, 3.11, 3.12 |
-| PostgreSQL | 12+ |
+| PostgreSQL | 13+ |
| Redis | 4.0+ |
Below is a simplified overview of the NetBox application stack for reference:
diff --git a/docs/installation/upgrading.md b/docs/installation/upgrading.md
index 6093b226e..e6d05738f 100644
--- a/docs/installation/upgrading.md
+++ b/docs/installation/upgrading.md
@@ -20,15 +20,15 @@ NetBox requires the following dependencies:
| Dependency | Supported Versions |
|------------|--------------------|
| Python | 3.10, 3.11, 3.12 |
-| PostgreSQL | 12+ |
+| PostgreSQL | 13+ |
| Redis | 4.0+ |
## 3. Install the Latest Release
-As with the initial installation, you can upgrade NetBox by either downloading the latest release package or by cloning the `master` branch of the git repository.
+As with the initial installation, you can upgrade NetBox by either downloading the latest release package or by checking out the latest production release from the git repository.
!!! warning
- Use the same method as you used to install NetBox originally
+ Use the same method as you used to install NetBox originally.
If you are not sure how NetBox was installed originally, check with this command:
@@ -36,10 +36,7 @@ If you are not sure how NetBox was installed originally, check with this command
ls -ld /opt/netbox /opt/netbox/.git
```
-If NetBox was installed from a release package, then `/opt/netbox` will be a
-symlink pointing to the current version, and `/opt/netbox/.git` will not
-exist. If it was installed from git, then `/opt/netbox` and
-`/opt/netbox/.git` will both exist as normal directories.
+If NetBox was installed from a release package, then `/opt/netbox` will be a symlink pointing to the current version, and `/opt/netbox/.git` will not exist. If it was installed from git, then `/opt/netbox` and `/opt/netbox/.git` will both exist as normal directories.
### Option A: Download a Release
@@ -84,20 +81,20 @@ If you followed the original installation guide to set up gunicorn, be sure to c
sudo cp /opt/netbox-$OLDVER/gunicorn.py /opt/netbox/
```
-### Option B: Clone the Git Repository
+### Option B: Check Out a Git Release
-This guide assumes that NetBox is installed at `/opt/netbox`. Pull down the most recent iteration of the master branch:
+This guide assumes that NetBox is installed at `/opt/netbox`. First, determine the latest release either by visiting our [releases page](https://github.com/netbox-community/netbox/releases) or by running the following `git` commands:
-```no-highlight
-cd /opt/netbox
-sudo git checkout master
-sudo git pull origin master
+```
+sudo git fetch --tags
+git describe --tags $(git rev-list --tags --max-count=1)
```
-!!! info "Checking out an older release"
- If you need to upgrade to an older version rather than the current stable release, you can check out any valid [git tag](https://github.com/netbox-community/netbox/tags), each of which represents a release. For example, to checkout the code for NetBox v2.11.11, do:
+Check out the desired release by specifying its tag:
- sudo git checkout v2.11.11
+```
+sudo git checkout v4.2.0
+```
## 4. Run the Upgrade Script
diff --git a/docs/introduction.md b/docs/introduction.md
index b8442dad7..75701c119 100644
--- a/docs/introduction.md
+++ b/docs/introduction.md
@@ -79,5 +79,5 @@ NetBox is built on the [Django](https://djangoproject.com/) Python framework and
| HTTP service | nginx or Apache |
| WSGI service | gunicorn or uWSGI |
| Application | Django/Python |
-| Database | PostgreSQL 12+ |
+| Database | PostgreSQL 13+ |
| Task queuing | Redis/django-rq |
diff --git a/docs/models/circuits/circuit.md b/docs/models/circuits/circuit.md
index 19fd8c882..c75e20322 100644
--- a/docs/models/circuits/circuit.md
+++ b/docs/models/circuits/circuit.md
@@ -36,6 +36,12 @@ The operational status of the circuit. By default, the following statuses are av
!!! tip "Custom circuit statuses"
Additional circuit statuses may be defined by setting `Circuit.status` under the [`FIELD_CHOICES`](../../configuration/data-validation.md#field_choices) configuration parameter.
+### Distance
+
+!!! info "This field was introduced in NetBox v4.2."
+
+The distance between the circuit's two endpoints, including a unit designation (e.g. 100 meters or 25 feet).
+
### Description
A brief description of the circuit.
diff --git a/docs/models/circuits/circuitgroup.md b/docs/models/circuits/circuitgroup.md
index faa9dbc14..6d1503509 100644
--- a/docs/models/circuits/circuitgroup.md
+++ b/docs/models/circuits/circuitgroup.md
@@ -1,7 +1,5 @@
# Circuit Groups
-!!! info "This feature was introduced in NetBox v4.1."
-
[Circuits](./circuit.md) can be arranged into administrative groups for organization. The assignment of a circuit to a group is optional.
## Fields
diff --git a/docs/models/circuits/circuitgroupassignment.md b/docs/models/circuits/circuitgroupassignment.md
index 2aaa375af..c73ba09be 100644
--- a/docs/models/circuits/circuitgroupassignment.md
+++ b/docs/models/circuits/circuitgroupassignment.md
@@ -8,9 +8,9 @@ Circuits can be assigned to [circuit groups](./circuitgroup.md) for correlation
The [circuit group](./circuitgroup.md) being assigned.
-### Circuit
+### Member
-The [circuit](./circuit.md) that is being assigned to the group.
+The [circuit](./circuit.md) or [virtual circuit](./virtualcircuit.md) assigned to the group.
### Priority
diff --git a/docs/models/circuits/circuittermination.md b/docs/models/circuits/circuittermination.md
index c6aa966d0..4b1a16ded 100644
--- a/docs/models/circuits/circuittermination.md
+++ b/docs/models/circuits/circuittermination.md
@@ -21,13 +21,11 @@ Designates the termination as forming either the A or Z end of the circuit.
If selected, the circuit termination will be considered "connected" even if no cable has been connected to it in NetBox.
-### Site
+### Termination
-The [site](../dcim/site.md) with which this circuit termination is associated. Once created, a cable can be connected between the circuit termination and a device interface (or similar component).
+!!! info "This field replaced the `site` and `provider_network` fields in NetBox v4.2."
-### Provider Network
-
-Circuits which do not connect to a site modeled by NetBox can instead be terminated to a [provider network](./providernetwork.md) representing an unknown network operated by a [provider](./provider.md).
+The [region](../dcim/region.md), [site group](../dcim/sitegroup.md), [site](../dcim/site.md), [location](../dcim/location.md) or [provider network](./providernetwork.md) with which this circuit termination is associated. Once created, a cable can be connected between the circuit termination and a device interface (or similar component).
### Port Speed
diff --git a/docs/models/circuits/virtualcircuit.md b/docs/models/circuits/virtualcircuit.md
new file mode 100644
index 000000000..17328b87a
--- /dev/null
+++ b/docs/models/circuits/virtualcircuit.md
@@ -0,0 +1,39 @@
+# Virtual Circuits
+
+!!! info "This feature was introduced in NetBox v4.2."
+
+A virtual circuit can connect two or more interfaces atop a set of decoupled physical connections. For example, it's very common to form a virtual connection between two virtual interfaces, each of which is bound to a physical interface on its respective device and physically connected to a [provider network](./providernetwork.md) via an independent [physical circuit](./circuit.md).
+
+## Fields
+
+### Provider Network
+
+The [provider network](./providernetwork.md) across which the virtual circuit is formed.
+
+### Provider Account
+
+The [provider account](./provideraccount.md) with which the virtual circuit is associated (if any).
+
+### Circuit ID
+
+The unique identifier assigned to the virtual circuit by its [provider](./provider.md).
+
+### Type
+
+The assigned [virtual circuit type](./virtualcircuittype.md).
+
+### Status
+
+The operational status of the virtual circuit. By default, the following statuses are available:
+
+| Name |
+|----------------|
+| Planned |
+| Provisioning |
+| Active |
+| Offline |
+| Deprovisioning |
+| Decommissioned |
+
+!!! tip "Custom circuit statuses"
+ Additional circuit statuses may be defined by setting `Circuit.status` under the [`FIELD_CHOICES`](../../configuration/data-validation.md#field_choices) configuration parameter.
diff --git a/docs/models/circuits/virtualcircuittermination.md b/docs/models/circuits/virtualcircuittermination.md
new file mode 100644
index 000000000..a7833e13c
--- /dev/null
+++ b/docs/models/circuits/virtualcircuittermination.md
@@ -0,0 +1,23 @@
+# Virtual Circuit Terminations
+
+!!! info "This feature was introduced in NetBox v4.2."
+
+This model represents the connection of a virtual [interface](../dcim/interface.md) to a [virtual circuit](./virtualcircuit.md).
+
+## Fields
+
+### Virtual Circuit
+
+The [virtual circuit](./virtualcircuit.md) to which the interface is connected.
+
+### Interface
+
+The [interface](../dcim/interface.md) connected to the virtual circuit.
+
+### Role
+
+The functional role of the termination. This depends on the virtual circuit's topology, which is typically either peer-to-peer or hub-and-spoke (multipoint). Valid choices include:
+
+* Peer
+* Hub
+* Spoke
diff --git a/docs/models/circuits/virtualcircuittype.md b/docs/models/circuits/virtualcircuittype.md
new file mode 100644
index 000000000..69cb0c027
--- /dev/null
+++ b/docs/models/circuits/virtualcircuittype.md
@@ -0,0 +1,13 @@
+# Virtual Circuit Types
+
+Like physical [circuits](./circuit.md), [virtual circuits](./virtualcircuit.md) are classified by functional type. These types are completely customizable, and can help categorize circuits by function or technology.
+
+## Fields
+
+### Name
+
+A unique human-friendly name.
+
+### Slug
+
+A unique URL-friendly identifier. (This value can be used for filtering.)
diff --git a/docs/models/dcim/interface.md b/docs/models/dcim/interface.md
index 3667dabd5..b7115050f 100644
--- a/docs/models/dcim/interface.md
+++ b/docs/models/dcim/interface.md
@@ -45,9 +45,12 @@ The operation duplex (full, half, or auto).
The [virtual routing and forwarding](../ipam/vrf.md) instance to which this interface is assigned.
-### MAC Address
+### Primary MAC Address
-The 48-bit MAC address (for Ethernet interfaces).
+The [MAC address](./macaddress.md) assigned to this interface which is designated as its primary.
+
+!!! note "Changed in NetBox v4.2"
+ The MAC address of an interface (formerly a concrete database field) is available as a property, `mac_address`, which reflects the value of the primary linked [MAC address](./macaddress.md) object.
### WWN
@@ -109,6 +112,7 @@ For switched Ethernet interfaces, this identifies the 802.1Q encapsulation strat
* **Access:** All traffic is assigned to a single VLAN, with no tagging.
* **Tagged:** One untagged "native" VLAN is allowed, as well as any number of tagged VLANs.
* **Tagged (all):** Implies that all VLANs are carried by the interface. One untagged VLAN may be designated.
+* **Q-in-Q:** Q-in-Q (IEEE 802.1ad) encapsulation is performed using the assigned SVLAN.
This field must be left blank for routed interfaces which do employ 802.1Q encapsulation.
@@ -120,6 +124,12 @@ The "native" (untagged) VLAN for the interface. Valid only when one of the above
The tagged VLANs which are configured to be carried by this interface. Valid only for the "tagged" 802.1Q mode above.
+### Q-in-Q SVLAN
+
+!!! info "This field was introduced in NetBox v4.2."
+
+The assigned service VLAN (for Q-in-Q/802.1ad interfaces).
+
### Wireless Role
Indicates the configured role for wireless interfaces (access point or station).
@@ -142,3 +152,9 @@ The configured channel width of a wireless interface, in MHz. This is typically
### Wireless LANs
The [wireless LANs](../wireless/wirelesslan.md) for which this interface carries traffic. (Valid for wireless interfaces only.)
+
+### VLAN Translation Policy
+
+!!! info "This field was introduced in NetBox v4.2."
+
+The [VLAN translation policy](../ipam/vlantranslationpolicy.md) that applies to this interface (optional).
diff --git a/docs/models/dcim/inventoryitem.md b/docs/models/dcim/inventoryitem.md
index b9029f75c..2d648341b 100644
--- a/docs/models/dcim/inventoryitem.md
+++ b/docs/models/dcim/inventoryitem.md
@@ -25,6 +25,12 @@ The inventory item's name. If the inventory item is assigned to a parent item, i
An alternative physical label identifying the inventory item.
+### Status
+
+!!! info "This field was introduced in NetBox v4.2."
+
+The inventory item's operational status.
+
### Role
The functional [role](./inventoryitemrole.md) assigned to this inventory item.
diff --git a/docs/models/dcim/macaddress.md b/docs/models/dcim/macaddress.md
new file mode 100644
index 000000000..5b1dd93be
--- /dev/null
+++ b/docs/models/dcim/macaddress.md
@@ -0,0 +1,13 @@
+# MAC Addresses
+
+!!! info "This feature was introduced in NetBox v4.2."
+
+A MAC address object in NetBox comprises a single Ethernet link layer address, and represents a MAC address as reported by or assigned to a network interface. MAC addresses can be assigned to [device](../dcim/device.md) and [virtual machine](../virtualization/virtualmachine.md) interfaces. A MAC address can be specified as the primary MAC address for a given device or VM interface.
+
+Most interfaces have only a single MAC address, hard-coded at the factory. However, on some devices (particularly virtual interfaces) it is possible to assign additional MAC addresses or change existing ones. For this reason NetBox allows multiple MACAddress objects to be assigned to a single interface.
+
+## Fields
+
+### MAC Address
+
+The 48-bit MAC address, in colon-hexadecimal notation (e.g. `aa:bb:cc:11:22:33`).
diff --git a/docs/models/dcim/modulebay.md b/docs/models/dcim/modulebay.md
index 1bff799c2..494012a7b 100644
--- a/docs/models/dcim/modulebay.md
+++ b/docs/models/dcim/modulebay.md
@@ -16,8 +16,6 @@ The device to which this module bay belongs.
### Module
-!!! info "This feature was introduced in NetBox v4.1."
-
The module to which this bay belongs (optional).
### Name
diff --git a/docs/models/dcim/moduletype.md b/docs/models/dcim/moduletype.md
index 225873d61..7077e16c2 100644
--- a/docs/models/dcim/moduletype.md
+++ b/docs/models/dcim/moduletype.md
@@ -42,6 +42,4 @@ The numeric weight of the module, including a unit designation (e.g. 3 kilograms
### Airflow
-!!! info "The `airflow` field was introduced in NetBox v4.1."
-
The direction in which air circulates through the device chassis for cooling.
diff --git a/docs/models/dcim/poweroutlet.md b/docs/models/dcim/poweroutlet.md
index 5c8bd6ff0..a99f60b23 100644
--- a/docs/models/dcim/poweroutlet.md
+++ b/docs/models/dcim/poweroutlet.md
@@ -29,6 +29,12 @@ An alternative physical label identifying the power outlet.
The type of power outlet.
+### Color
+
+!!! info "This field was introduced in NetBox v4.2."
+
+The power outlet's color (optional).
+
### Power Port
When modeling a device which redistributes power from an upstream supply, such as a power distribution unit (PDU), each power outlet should be mapped to the respective [power port](./powerport.md) on the device which supplies power. For example, a 24-outlet PDU may two power ports, each distributing power to 12 of its outlets.
diff --git a/docs/models/dcim/racktype.md b/docs/models/dcim/racktype.md
index eeb90bd29..b5f2d99e7 100644
--- a/docs/models/dcim/racktype.md
+++ b/docs/models/dcim/racktype.md
@@ -1,7 +1,5 @@
# Rack Types
-!!! info "This feature was introduced in NetBox v4.1."
-
A rack type defines the physical characteristics of a particular model of [rack](./rack.md).
## Fields
diff --git a/docs/models/extras/branch.md b/docs/models/extras/branch.md
index fd7922b7e..4599fed85 100644
--- a/docs/models/extras/branch.md
+++ b/docs/models/extras/branch.md
@@ -1,5 +1,8 @@
# Branches
+!!! danger "Deprecated Feature"
+ This feature has been deprecated in NetBox v4.2 and will be removed in a future release. Please consider using the [netbox-branching plugin](https://github.com/netboxlabs/netbox-branching), which provides much more robust functionality.
+
A branch is a collection of related [staged changes](./stagedchange.md) that have been prepared for merging into the active database. A branch can be merged by executing its `commit()` method. Deleting a branch will delete all its related changes.
## Fields
diff --git a/docs/models/extras/customfield.md b/docs/models/extras/customfield.md
index 9aab66a36..a5d083492 100644
--- a/docs/models/extras/customfield.md
+++ b/docs/models/extras/customfield.md
@@ -44,8 +44,6 @@ For object and multiple-object fields only. Designates the type of NetBox object
### Related Object Filter
-!!! info "This field was introduced in NetBox v4.1."
-
For object and multi-object custom fields, a filter may be defined to limit the available objects when populating a field value. This filter maps object attributes to values. For example, `{"status": "active"}` will include only objects with a status of "active."
!!! warning
diff --git a/docs/models/extras/eventrule.md b/docs/models/extras/eventrule.md
index b48e17a1e..9dca04529 100644
--- a/docs/models/extras/eventrule.md
+++ b/docs/models/extras/eventrule.md
@@ -10,7 +10,7 @@ See the [event rules documentation](../../features/event-rules.md) for more inf
A unique human-friendly name.
-### Content Types
+### Object Types
The type(s) of object in NetBox that will trigger the rule.
@@ -38,3 +38,15 @@ The event types which will trigger the rule. At least one event type must be sel
### Conditions
A set of [prescribed conditions](../../reference/conditions.md) against which the triggering object will be evaluated. If the conditions are defined but not met by the object, no action will be taken. An event rule that does not define any conditions will _always_ trigger.
+
+### Action Type
+
+The type of action to take when the rule triggers. This must be one of the following choices:
+
+* Webhook
+* Custom script
+* Notification
+
+### Action Data
+
+An optional dictionary of JSON data to pass when executing the rule. This can be useful to include additional context data, e.g. when transmitting a webhook.
diff --git a/docs/models/extras/stagedchange.md b/docs/models/extras/stagedchange.md
index feda2fee6..0693a32d3 100644
--- a/docs/models/extras/stagedchange.md
+++ b/docs/models/extras/stagedchange.md
@@ -1,5 +1,8 @@
# Staged Changes
+!!! danger "Deprecated Feature"
+ This feature has been deprecated in NetBox v4.2 and will be removed in a future release. Please consider using the [netbox-branching plugin](https://github.com/netboxlabs/netbox-branching), which provides much more robust functionality.
+
A staged change represents the creation of a new object or the modification or deletion of an existing object to be performed at some future point. Each change must be assigned to a [branch](./branch.md).
Changes can be applied individually via the `apply()` method, however it is recommended to apply changes in bulk using the parent branch's `commit()` method.
diff --git a/docs/models/ipam/prefix.md b/docs/models/ipam/prefix.md
index 2fb01daf0..939ca3ea5 100644
--- a/docs/models/ipam/prefix.md
+++ b/docs/models/ipam/prefix.md
@@ -34,9 +34,11 @@ Designates whether the prefix should be treated as a pool. If selected, the firs
If selected, this prefix will report 100% utilization regardless of how many child objects have been defined within it.
-### Site
+### Scope
-The [site](../dcim/site.md) to which this prefix is assigned (optional).
+!!! info "This field replaced the `site` field in NetBox v4.2."
+
+The [region](../dcim/region.md), [site](../dcim/site.md), [site group](../dcim/sitegroup.md) or [location](../dcim/location.md) to which the prefix is assigned (optional).
### VLAN
diff --git a/docs/models/ipam/vlan.md b/docs/models/ipam/vlan.md
index 2dd5ec2d3..3c90d8cc9 100644
--- a/docs/models/ipam/vlan.md
+++ b/docs/models/ipam/vlan.md
@@ -26,3 +26,15 @@ The user-defined functional [role](./role.md) assigned to the VLAN.
### VLAN Group or Site
The [VLAN group](./vlangroup.md) or [site](../dcim/site.md) to which the VLAN is assigned.
+
+### Q-in-Q Role
+
+!!! info "This field was introduced in NetBox v4.2."
+
+For VLANs which comprise a Q-in-Q/IEEE 802.1ad topology, this field indicates whether the VLAN is treated as a service or customer VLAN.
+
+### Q-in-Q Service VLAN
+
+!!! info "This field was introduced in NetBox v4.2."
+
+The designated parent service VLAN for a Q-in-Q customer VLAN. This may be set only for Q-in-Q custom VLANs.
diff --git a/docs/models/ipam/vlangroup.md b/docs/models/ipam/vlangroup.md
index 20989452f..67050ab4c 100644
--- a/docs/models/ipam/vlangroup.md
+++ b/docs/models/ipam/vlangroup.md
@@ -16,8 +16,6 @@ A unique URL-friendly identifier. (This value can be used for filtering.)
### VLAN ID Ranges
-!!! info "This field replaced the legacy `min_vid` and `max_vid` fields in NetBox v4.1."
-
The set of VLAN IDs which are encompassed by the group. By default, this will be the entire range of valid IEEE 802.1Q VLAN IDs (1 to 4094, inclusive). VLANs created within a group must have a VID that falls within one of these ranges. Ranges may not overlap.
### Scope
diff --git a/docs/models/ipam/vlantranslationpolicy.md b/docs/models/ipam/vlantranslationpolicy.md
new file mode 100644
index 000000000..9e3e8de98
--- /dev/null
+++ b/docs/models/ipam/vlantranslationpolicy.md
@@ -0,0 +1,28 @@
+# VLAN Translation Policies
+
+!!! info "This feature was introduced in NetBox v4.2."
+
+VLAN translation is a feature that consists of VLAN translation policies and [VLAN translation rules](./vlantranslationrule.md). Many rules can belong to a policy, and each rule defines a mapping of a local to remote VLAN ID (VID). A policy can then be assigned to an [Interface](../dcim/interface.md) or [VMInterface](../virtualization/vminterface.md), and all VLAN translation rules associated with that policy will be visible in the interface details.
+
+There are uniqueness constraints on `(policy, local_vid)` and on `(policy, remote_vid)` in the `VLANTranslationRule` model. Thus, you cannot have multiple rules linked to the same policy that have the same local VID or the same remote VID. A set of policies and rules might look like this:
+
+Policy 1:
+- Rule: 100 -> 200
+- Rule: 101 -> 201
+
+Policy 2:
+- Rule: 100 -> 300
+- Rule: 101 -> 301
+
+However this is not allowed:
+
+Policy 3:
+- Rule: 100 -> 200
+- Rule: 100 -> 300
+
+
+## Fields
+
+### Name
+
+A unique human-friendly name.
diff --git a/docs/models/ipam/vlantranslationrule.md b/docs/models/ipam/vlantranslationrule.md
new file mode 100644
index 000000000..eb356d0d0
--- /dev/null
+++ b/docs/models/ipam/vlantranslationrule.md
@@ -0,0 +1,21 @@
+# VLAN Translation Rules
+
+!!! info "This feature was introduced in NetBox v4.2."
+
+A VLAN translation rule represents a one-to-one mapping of a local VLAN ID (VID) to a remote VID. Many rules can belong to a single policy.
+
+See [VLAN translation policies](./vlantranslationpolicy.md) for an overview of the VLAN Translation feature.
+
+## Fields
+
+### Policy
+
+The [VLAN Translation Policy](./vlantranslationpolicy.md) to which this rule belongs.
+
+### Local VID
+
+VLAN ID (1-4094) in the local network which is to be translated to a remote VID.
+
+### Remote VID
+
+VLAN ID (1-4094) in the remote network to which the local VID will be translated.
diff --git a/docs/models/virtualization/cluster.md b/docs/models/virtualization/cluster.md
index 50b5dbd1d..b9e6b608f 100644
--- a/docs/models/virtualization/cluster.md
+++ b/docs/models/virtualization/cluster.md
@@ -23,6 +23,8 @@ The cluster's operational status.
!!! tip
Additional statuses may be defined by setting `Cluster.status` under the [`FIELD_CHOICES`](../../configuration/data-validation.md#field_choices) configuration parameter.
-### Site
+### Scope
-The [site](../dcim/site.md) with which the cluster is associated.
+!!! info "This field replaced the `site` field in NetBox v4.2."
+
+The [region](../dcim/region.md), [site](../dcim/site.md), [site group](../dcim/sitegroup.md) or [location](../dcim/location.md) with which this cluster is associated.
diff --git a/docs/models/virtualization/virtualmachine.md b/docs/models/virtualization/virtualmachine.md
index 7ea31111c..a90b2752d 100644
--- a/docs/models/virtualization/virtualmachine.md
+++ b/docs/models/virtualization/virtualmachine.md
@@ -57,6 +57,4 @@ The amount of disk storage provisioned, in megabytes.
### Serial Number
-!!! info "This field was introduced in NetBox v4.1."
-
Optional serial number assigned to this virtual machine. Unlike devices, uniqueness is not enforced for virtual machine serial numbers.
diff --git a/docs/models/virtualization/vminterface.md b/docs/models/virtualization/vminterface.md
index d923bdd5d..ba0c68b15 100644
--- a/docs/models/virtualization/vminterface.md
+++ b/docs/models/virtualization/vminterface.md
@@ -27,9 +27,12 @@ An interface on the same VM with which this interface is bridged.
If not selected, this interface will be treated as disabled/inoperative.
-### MAC Address
+### Primary MAC Address
-The 48-bit MAC address (for Ethernet interfaces).
+The [MAC address](../dcim/macaddress.md) assigned to this interface which is designated as its primary.
+
+!!! note "Changed in NetBox v4.2"
+ The MAC address of an interface (formerly a concrete database field) is available as a property, `mac_address`, which reflects the value of the primary linked [MAC address](../dcim/macaddress.md) object.
### MTU
@@ -42,6 +45,7 @@ For switched Ethernet interfaces, this identifies the 802.1Q encapsulation strat
* **Access:** All traffic is assigned to a single VLAN, with no tagging.
* **Tagged:** One untagged "native" VLAN is allowed, as well as any number of tagged VLANs.
* **Tagged (all):** Implies that all VLANs are carried by the interface. One untagged VLAN may be designated.
+* **Q-in-Q:** Q-in-Q (IEEE 802.1ad) encapsulation is performed using the assigned SVLAN.
This field must be left blank for routed interfaces which do employ 802.1Q encapsulation.
@@ -53,6 +57,18 @@ The "native" (untagged) VLAN for the interface. Valid only when one of the above
The tagged VLANs which are configured to be carried by this interface. Valid only for the "tagged" 802.1Q mode above.
+### Q-in-Q SVLAN
+
+!!! info "This field was introduced in NetBox v4.2."
+
+The assigned service VLAN (for Q-in-Q/802.1ad interfaces).
+
### VRF
The [virtual routing and forwarding](../ipam/vrf.md) instance to which this interface is assigned.
+
+### VLAN Translation Policy
+
+!!! info "This field was introduced in NetBox v4.2."
+
+The [VLAN translation policy](../ipam/vlantranslationpolicy.md) that applies to this interface (optional).
diff --git a/docs/models/vpn/ikepolicy.md b/docs/models/vpn/ikepolicy.md
index d2da28d16..b78b0fe50 100644
--- a/docs/models/vpn/ikepolicy.md
+++ b/docs/models/vpn/ikepolicy.md
@@ -1,6 +1,6 @@
# IKE Policies
-An [Internet Key Exhcnage (IKE)](https://en.wikipedia.org/wiki/Internet_Key_Exchange) policy defines an IKE version, mode, and set of [proposals](./ikeproposal.md) to be used in IKE negotiation. These policies are referenced by [IPSec profiles](./ipsecprofile.md).
+An [Internet Key Exchange (IKE)](https://en.wikipedia.org/wiki/Internet_Key_Exchange) policy defines an IKE version, mode, and set of [proposals](./ikeproposal.md) to be used in IKE negotiation. These policies are referenced by [IPSec profiles](./ipsecprofile.md).
## Fields
diff --git a/docs/models/wireless/wirelesslan.md b/docs/models/wireless/wirelesslan.md
index 0f50fa75f..2ce673086 100644
--- a/docs/models/wireless/wirelesslan.md
+++ b/docs/models/wireless/wirelesslan.md
@@ -43,3 +43,9 @@ The security cipher used to apply wireless authentication. Options include:
### Pre-Shared Key
The security key configured on each client to grant access to the secured wireless LAN. This applies only to certain authentication types.
+
+### Scope
+
+!!! info "This field was introduced in NetBox v4.2."
+
+The [region](../dcim/region.md), [site](../dcim/site.md), [site group](../dcim/sitegroup.md) or [location](../dcim/location.md) with which this wireless LAN is associated.
diff --git a/docs/models/wireless/wirelesslink.md b/docs/models/wireless/wirelesslink.md
index 7553902b0..a9fd6b4fc 100644
--- a/docs/models/wireless/wirelesslink.md
+++ b/docs/models/wireless/wirelesslink.md
@@ -22,8 +22,6 @@ The service set identifier (SSID) for the wireless link (optional).
### Distance
-!!! info "This field was introduced in NetBox v4.1."
-
The distance between the link's two endpoints, including a unit designation (e.g. 100 meters or 25 feet).
### Authentication Type
diff --git a/docs/plugins/development/background-jobs.md b/docs/plugins/development/background-jobs.md
index 873390a58..9be52c3ca 100644
--- a/docs/plugins/development/background-jobs.md
+++ b/docs/plugins/development/background-jobs.md
@@ -1,7 +1,5 @@
# Background Jobs
-!!! info "This feature was introduced in NetBox v4.1."
-
NetBox plugins can defer certain operations by enqueuing [background jobs](../../features/background-jobs.md), which are executed asynchronously by background workers. This is helpful for decoupling long-running processes from the user-facing request-response cycle.
For example, your plugin might need to fetch data from a remote system. Depending on the amount of data and the responsiveness of the remote server, this could take a few minutes. Deferring this task to a queued job ensures that it can be completed in the background, without interrupting the user. The data it fetches can be made available once the job has completed.
@@ -29,6 +27,9 @@ class MyTestJob(JobRunner):
You can schedule the background job from within your code (e.g. from a model's `save()` method or a view) by calling `MyTestJob.enqueue()`. This method passes through all arguments to `Job.enqueue()`. However, no `name` argument must be passed, as the background job name will be used instead.
+!!! tip
+ A set of predefined intervals is available at `core.choices.JobIntervalChoices` for convenience.
+
### Attributes
`JobRunner` attributes are defined under a class named `Meta` within the job. These are optional, but encouraged.
@@ -46,26 +47,57 @@ As described above, jobs can be scheduled for immediate execution or at any late
#### Example
+```python title="models.py"
+from django.db import models
+from core.choices import JobIntervalChoices
+from netbox.models import NetBoxModel
+from .jobs import MyTestJob
+
+class MyModel(NetBoxModel):
+ foo = models.CharField()
+
+ def save(self, *args, **kwargs):
+ MyTestJob.enqueue_once(instance=self, interval=JobIntervalChoices.INTERVAL_HOURLY)
+ return super().save(*args, **kwargs)
+
+ def sync(self):
+ MyTestJob.enqueue(instance=self)
+```
+
+
+### System Jobs
+
+!!! info "This feature was introduced in NetBox v4.2."
+
+Some plugins may implement background jobs that are decoupled from the request/response cycle. Typical use cases would be housekeeping tasks or synchronization jobs. These can be registered as _system jobs_ using the `system_job()` decorator. The job interval must be passed as an integer (in minutes) when registering a system job. System jobs are scheduled automatically when the RQ worker (`manage.py rqworker`) is run.
+
+#### Example
+
```python title="jobs.py"
-from netbox.jobs import JobRunner
-
+from core.choices import JobIntervalChoices
+from netbox.jobs import JobRunner, system_job
+from .models import MyModel
+# Specify a predefined choice or an integer indicating
+# the number of minutes between job executions
+@system_job(interval=JobIntervalChoices.INTERVAL_HOURLY)
class MyHousekeepingJob(JobRunner):
class Meta:
- name = "Housekeeping"
+ name = "My Housekeeping Job"
def run(self, *args, **kwargs):
- # your logic goes here
+ MyModel.objects.filter(foo='bar').delete()
```
-```python title="__init__.py"
-from netbox.plugins import PluginConfig
+!!! note
+ Ensure that any system jobs are imported on initialization. Otherwise, they won't be registered. This can be achieved by extending the PluginConfig's `ready()` method. For example:
-class MyPluginConfig(PluginConfig):
+ ```python
def ready(self):
+ super().ready()
+
from .jobs import MyHousekeepingJob
- MyHousekeepingJob.setup(interval=60)
-```
+ ```
## Task queues
diff --git a/docs/plugins/development/data-backends.md b/docs/plugins/development/data-backends.md
index 8b7226a41..0c6d44d95 100644
--- a/docs/plugins/development/data-backends.md
+++ b/docs/plugins/development/data-backends.md
@@ -18,6 +18,6 @@ backends = [MyDataBackend]
```
!!! tip
- The path to the list of search indexes can be modified by setting `data_backends` in the PluginConfig instance.
+ The path to the list of data backends can be modified by setting `data_backends` in the PluginConfig instance.
::: netbox.data_backends.DataBackend
diff --git a/docs/plugins/development/event-types.md b/docs/plugins/development/event-types.md
index 4bcdeea31..65e2bbc5c 100644
--- a/docs/plugins/development/event-types.md
+++ b/docs/plugins/development/event-types.md
@@ -1,7 +1,5 @@
# Event Types
-!!! info "This feature was introduced in NetBox v4.1."
-
Plugins can register their own custom event types for use with NetBox [event rules](../../models/extras/eventrule.md). This is accomplished by calling the `register()` method on an instance of the `EventType` class. This can be done anywhere within the plugin. An example is provided below.
```python
diff --git a/docs/plugins/development/index.md b/docs/plugins/development/index.md
index f3f9a3e4f..246816349 100644
--- a/docs/plugins/development/index.md
+++ b/docs/plugins/development/index.md
@@ -98,28 +98,29 @@ NetBox looks for the `config` variable within a plugin's `__init__.py` to load i
### PluginConfig Attributes
-| Name | Description |
-|-----------------------|--------------------------------------------------------------------------------------------------------------------------|
-| `name` | Raw plugin name; same as the plugin's source directory |
-| `verbose_name` | Human-friendly name for the plugin |
-| `version` | Current release ([semantic versioning](https://semver.org/) is encouraged) |
-| `description` | Brief description of the plugin's purpose |
-| `author` | Name of plugin's author |
-| `author_email` | Author's public email address |
-| `base_url` | Base path to use for plugin URLs (optional). If not specified, the project's `name` will be used. |
-| `required_settings` | A list of any configuration parameters that **must** be defined by the user |
-| `default_settings` | A dictionary of configuration parameters and their default values |
-| `django_apps` | A list of additional Django apps to load alongside the plugin |
-| `min_version` | Minimum version of NetBox with which the plugin is compatible |
-| `max_version` | Maximum version of NetBox with which the plugin is compatible |
-| `middleware` | A list of middleware classes to append after NetBox's build-in middleware |
-| `queues` | A list of custom background task queues to create |
-| `search_extensions` | The dotted path to the list of search index classes (default: `search.indexes`) |
-| `data_backends` | The dotted path to the list of data source backend classes (default: `data_backends.backends`) |
-| `template_extensions` | The dotted path to the list of template extension classes (default: `template_content.template_extensions`) |
-| `menu_items` | The dotted path to the list of menu items provided by the plugin (default: `navigation.menu_items`) |
-| `graphql_schema` | The dotted path to the plugin's GraphQL schema class, if any (default: `graphql.schema`) |
-| `user_preferences` | The dotted path to the dictionary mapping of user preferences defined by the plugin (default: `preferences.preferences`) |
+| Name | Description |
+|-----------------------|------------------------------------------------------------------------------------------------------------------------------------|
+| `name` | Raw plugin name; same as the plugin's source directory |
+| `verbose_name` | Human-friendly name for the plugin |
+| `version` | Current release ([semantic versioning](https://semver.org/) is encouraged) |
+| `description` | Brief description of the plugin's purpose |
+| `author` | Name of plugin's author |
+| `author_email` | Author's public email address |
+| `base_url` | Base path to use for plugin URLs (optional). If not specified, the project's `name` will be used. |
+| `required_settings` | A list of any configuration parameters that **must** be defined by the user |
+| `default_settings` | A dictionary of configuration parameters and their default values |
+| `django_apps` | A list of additional Django apps to load alongside the plugin |
+| `min_version` | Minimum version of NetBox with which the plugin is compatible |
+| `max_version` | Maximum version of NetBox with which the plugin is compatible |
+| `middleware` | A list of middleware classes to append after NetBox's build-in middleware |
+| `queues` | A list of custom background task queues to create |
+| `events_pipeline` | A list of handlers to add to [`EVENTS_PIPELINE`](../../configuration/miscellaneous.md#events_pipeline), identified by dotted paths |
+| `search_extensions` | The dotted path to the list of search index classes (default: `search.indexes`) |
+| `data_backends` | The dotted path to the list of data source backend classes (default: `data_backends.backends`) |
+| `template_extensions` | The dotted path to the list of template extension classes (default: `template_content.template_extensions`) |
+| `menu_items` | The dotted path to the list of menu items provided by the plugin (default: `navigation.menu_items`) |
+| `graphql_schema` | The dotted path to the plugin's GraphQL schema class, if any (default: `graphql.schema`) |
+| `user_preferences` | The dotted path to the dictionary mapping of user preferences defined by the plugin (default: `preferences.preferences`) |
All required settings must be configured by the user. If a configuration parameter is listed in both `required_settings` and `default_settings`, the default setting will be ignored.
diff --git a/docs/plugins/development/staged-changes.md b/docs/plugins/development/staged-changes.md
index 64a1a43e0..a8fd1d232 100644
--- a/docs/plugins/development/staged-changes.md
+++ b/docs/plugins/development/staged-changes.md
@@ -1,7 +1,7 @@
# Staged Changes
-!!! danger "Experimental Feature"
- This feature is still under active development and considered experimental in nature. Its use in production is strongly discouraged at this time.
+!!! danger "Deprecated Feature"
+ This feature has been deprecated in NetBox v4.2 and will be removed in a future release. Please consider using the [netbox-branching plugin](https://github.com/netboxlabs/netbox-branching), which provides much more robust functionality.
NetBox provides a programmatic API to stage the creation, modification, and deletion of objects without actually committing those changes to the active database. This can be useful for performing a "dry run" of bulk operations, or preparing a set of changes for administrative approval, for example.
diff --git a/docs/plugins/development/views.md b/docs/plugins/development/views.md
index 1f5f164fd..e3740de59 100644
--- a/docs/plugins/development/views.md
+++ b/docs/plugins/development/views.md
@@ -185,6 +185,9 @@ class MyView(generic.ObjectView):
)
```
+!!! note "Changed in NetBox v4.2"
+ The `register_model_view()` function was extended in NetBox v4.2 to support registration of list views by passing `detail=False`.
+
::: utilities.views.register_model_view
::: utilities.views.ViewTab
@@ -203,8 +206,6 @@ Plugins can inject custom content into certain areas of core NetBox views. This
| `right_page()` | Object view | Inject content on the right side of the page |
| `full_width_page()` | Object view | Inject content across the entire bottom of the page |
-!!! info "The `navbar()` and `alerts()` methods were introduced in NetBox v4.1."
-
Additionally, a `render()` method is available for convenience. This method accepts the name of a template to render, and any additional context data you want to pass. Its use is optional, however.
To control where the custom content is injected, plugin authors can specify an iterable of models by overriding the `models` attribute on the subclass. Extensions which do not specify a set of models will be invoked on every view, where supported.
diff --git a/docs/release-notes/index.md b/docs/release-notes/index.md
index b1f23ae55..d996224c1 100644
--- a/docs/release-notes/index.md
+++ b/docs/release-notes/index.md
@@ -10,6 +10,23 @@ Minor releases are published in April, August, and December of each calendar yea
This page contains a history of all major and minor releases since NetBox v2.0. For more detail on a specific patch release, please see the release notes page for that specific minor release.
+#### [Version 4.2](./version-4.2.md) (January 2025)
+
+* Assign Multiple MAC Addresses per Interface ([#4867](https://github.com/netbox-community/netbox/issues/4867))
+* Quick Add UI Widget ([#5858](https://github.com/netbox-community/netbox/issues/5858))
+* VLAN Translation ([#7336](https://github.com/netbox-community/netbox/issues/7336))
+* Virtual Circuits ([#13086](https://github.com/netbox-community/netbox/issues/13086))
+* Q-in-Q Encapsulation ([#13428](https://github.com/netbox-community/netbox/issues/13428))
+
+#### [Version 4.1](./version-4.1.md) (September 2024)
+
+* Circuit Groups ([#7025](https://github.com/netbox-community/netbox/issues/7025))
+* VLAN Group ID Ranges ([#9627](https://github.com/netbox-community/netbox/issues/9627))
+* Nested Device Modules ([#10500](https://github.com/netbox-community/netbox/issues/10500))
+* Rack Types ([#12826](https://github.com/netbox-community/netbox/issues/12826))
+* Plugins Catalog Integration ([#14731](https://github.com/netbox-community/netbox/issues/14731))
+* User Notifications ([#15621](https://github.com/netbox-community/netbox/issues/15621))
+
#### [Version 4.0](./version-4.0.md) (April 2024)
* Complete UI Refresh ([#12128](https://github.com/netbox-community/netbox/issues/12128))
diff --git a/docs/release-notes/version-4.1.md b/docs/release-notes/version-4.1.md
index 7b4e18919..9a2f79ece 100644
--- a/docs/release-notes/version-4.1.md
+++ b/docs/release-notes/version-4.1.md
@@ -1,5 +1,94 @@
# NetBox v4.1
+## v4.1.11 (2025-01-06)
+
+### Bug Fixes
+
+* [#17771](https://github.com/netbox-community/netbox/issues/17771) - Fix duplicate entries appearing on VLAN list when filtering by interface assignment
+* [#18222](https://github.com/netbox-community/netbox/issues/18222) - Pass event rule action data to webhooks as context data
+* [#18263](https://github.com/netbox-community/netbox/issues/18263) - Fix recalculation of cable paths when modifying cable terminations via the REST API
+* [#18271](https://github.com/netbox-community/netbox/issues/18271) - Require only encryption _or_ authentication algorithm when creating an IPSec proposal via the REST API
+* [#18289](https://github.com/netbox-community/netbox/issues/18289) - Enable ordering modules and module types by created & last updated times
+
+---
+
+## v4.1.10 (2024-12-23)
+
+### Bug Fixes
+
+* [#18260](https://github.com/netbox-community/netbox/issues/18260) - Fix object change logging
+
+---
+
+## v4.1.9 (2024-12-17)
+
+!!! danger "Do Not Use"
+ This release contains a regression which breaks change logging. Please use release v4.1.10 instead.
+
+### Enhancements
+
+* [#17215](https://github.com/netbox-community/netbox/issues/17215) - Change the highlighted color of disabled interfaces in interface lists
+* [#18224](https://github.com/netbox-community/netbox/issues/18224) - Apply all registered request processors when running custom scripts
+
+### Bug Fixes
+
+* [#16757](https://github.com/netbox-community/netbox/issues/16757) - Fix rendering of IP addresses table when assigning an existing IP address to an interface with global HTMX navigation enabled
+* [#17868](https://github.com/netbox-community/netbox/issues/17868) - Fix `ZeroDivisionError` exception under specific circumstances when generating a cable trace
+* [#18124](https://github.com/netbox-community/netbox/issues/18124) - Enable referencing cable attributes when querying a `cabletermination_set` via the GraphQL API
+* [#18230](https://github.com/netbox-community/netbox/issues/18230) - Fix `AttributeError` exception when attempting to edit an IP address assigned to a virtual machine interface
+
+---
+
+## v4.1.8 (2024-12-12)
+
+### Enhancements
+
+* [#17071](https://github.com/netbox-community/netbox/issues/17071) - Enable OOB IP address designation during bulk import
+* [#17465](https://github.com/netbox-community/netbox/issues/17465) - Enable designation of rack type during bulk import & bulk edit
+* [#17889](https://github.com/netbox-community/netbox/issues/17889) - Enable designating an IP address as out-of-band for a device upon creation
+* [#17960](https://github.com/netbox-community/netbox/issues/17960) - Add L2TP, PPTP, Wireguard, and OpenVPN tunnel types
+* [#18021](https://github.com/netbox-community/netbox/issues/18021) - Automatically clear cache on restart when `DEBUG` is enabled
+* [#18061](https://github.com/netbox-community/netbox/issues/18061) - Omit stack trace from rendered device/VM configuration when an exception is raised
+* [#18065](https://github.com/netbox-community/netbox/issues/18065) - Include status in device details when hovering on rack elevation
+* [#18211](https://github.com/netbox-community/netbox/issues/18211) - Enable the dynamic registration of context managers for request processing
+
+### Bug Fixes
+
+* [#14044](https://github.com/netbox-community/netbox/issues/14044) - Fix unhandled AttributeError exception when bulk renaming objects
+* [#17490](https://github.com/netbox-community/netbox/issues/17490) - Fix dynamic inclusion support for config templates
+* [#17810](https://github.com/netbox-community/netbox/issues/17810) - Fix validation of racked device fields when modifying via REST API
+* [#17820](https://github.com/netbox-community/netbox/issues/17820) - Ensure default custom field values are populated when creating new modules
+* [#18044](https://github.com/netbox-community/netbox/issues/18044) - Show plugin-generated alerts within UI views for custom scripts
+* [#18150](https://github.com/netbox-community/netbox/issues/18150) - Fix REST API pagination for low `MAX_PAGE_SIZE` values
+* [#18183](https://github.com/netbox-community/netbox/issues/18183) - Omit UI navigation bar when printing
+* [#18213](https://github.com/netbox-community/netbox/issues/18213) - Fix searching for ASN ranges by name
+
+---
+
+## v4.1.7 (2024-11-21)
+
+### Enhancements
+
+* [#15239](https://github.com/netbox-community/netbox/issues/15239) - Enable adding/removing individual VLANs while bulk editing device interfaces
+* [#17871](https://github.com/netbox-community/netbox/issues/17871) - Enable the assignment/removal of virtualization cluster via device bulk edit
+* [#17934](https://github.com/netbox-community/netbox/issues/17934) - Add 1000Base-LX interface type
+* [#18007](https://github.com/netbox-community/netbox/issues/18007) - Hide sensitive parameters under data source view (even for privileged users)
+
+### Bug Fixes
+
+* [#17459](https://github.com/netbox-community/netbox/issues/17459) - Correct help text on `name` field of module type component templates
+* [#17901](https://github.com/netbox-community/netbox/issues/17901) - Ensure GraphiQL UI resources are served locally
+* [#17921](https://github.com/netbox-community/netbox/issues/17921) - Fix scheduling of recurring custom scripts
+* [#17923](https://github.com/netbox-community/netbox/issues/17923) - Fix the execution of custom scripts via REST API & management command
+* [#17963](https://github.com/netbox-community/netbox/issues/17963) - Fix selection of all listed objects during bulk edit
+* [#17969](https://github.com/netbox-community/netbox/issues/17969) - Fix system info export when a config revision exists
+* [#17972](https://github.com/netbox-community/netbox/issues/17972) - Force evaluation of `LOGIN_REQUIRED` when requesting static media
+* [#17986](https://github.com/netbox-community/netbox/issues/17986) - Correct labels for virtual machine & virtual disk size properties
+* [#18037](https://github.com/netbox-community/netbox/issues/18037) - Fix validation of maximum VLAN ID value when defining VLAN groups
+* [#18038](https://github.com/netbox-community/netbox/issues/18038) - The `to_grams()` utility function should always return an integer value
+
+---
+
## v4.1.6 (2024-10-31)
### Bug Fixes
diff --git a/docs/release-notes/version-4.2.md b/docs/release-notes/version-4.2.md
new file mode 100644
index 000000000..61f043f3d
--- /dev/null
+++ b/docs/release-notes/version-4.2.md
@@ -0,0 +1,157 @@
+# NetBox v4.2
+
+## v4.2.2 (2025-01-17)
+
+### Bug Fixes
+
+* [#18336](https://github.com/netbox-community/netbox/issues/18336) - Validate new rack height against installed devices when changing a rack's type
+* [#18350](https://github.com/netbox-community/netbox/issues/18350) - Fix `FieldDoesNotExist` exception when global search results include a circuit termination
+* [#18353](https://github.com/netbox-community/netbox/issues/18353) - Disable fetching of plugin catalog data when `ISOLATED_DEPLOYMENT` is enabled
+* [#18362](https://github.com/netbox-community/netbox/issues/18362) - Avoid transmitting census data on every worker restart
+* [#18363](https://github.com/netbox-community/netbox/issues/18363) - Fix support for assigning a MAC address to an interface via the REST API
+* [#18368](https://github.com/netbox-community/netbox/issues/18368) - Restore missing attributes from REST API serializer for MAC addresses (`tags`, `created`, `last_updated`, and custom fields)
+* [#18369](https://github.com/netbox-community/netbox/issues/18369) - Fix `TypeError` exception when rendering the system configuration view with one or more custom classes defined under `PROTECTION_RULES`
+* [#18373](https://github.com/netbox-community/netbox/issues/18373) - Fix `AttributeError` exception when attempting to assign host devices to a cluster
+* [#18376](https://github.com/netbox-community/netbox/issues/18376) - Fix the display of tagged VLANs in interfaces list for Q-in-Q interfaces
+* [#18379](https://github.com/netbox-community/netbox/issues/18379) - Ensure RSS feed dashboard widget content is sanitized
+* [#18392](https://github.com/netbox-community/netbox/issues/18392) - Virtual machines should not inherit config contexts assigned to locations
+* [#18400](https://github.com/netbox-community/netbox/issues/18400) - Fix support for `STORAGE_BACKEND` configuration parameter
+* [#18406](https://github.com/netbox-community/netbox/issues/18406) - Scope column headers in object lists should not be orderable
+
+---
+
+## v4.2.1 (2025-01-08)
+
+### Bug Fixes
+
+* [#18282](https://github.com/netbox-community/netbox/issues/18282) - Fix ordering of prefixes list by assigned VLAN
+* [#18314](https://github.com/netbox-community/netbox/issues/18314) - Fix KeyError exception when rendering pre-saved dashboard (`requires_internet` missing)
+* [#18316](https://github.com/netbox-community/netbox/issues/18316) - Fix AttributeError exception when global search results include prefixes and/or clusters
+* [#18318](https://github.com/netbox-community/netbox/issues/18318) - Correct navigation breadcrumbs for module type UI view
+* [#18324](https://github.com/netbox-community/netbox/issues/18324) - Correct filtering for certain related object listings
+* [#18329](https://github.com/netbox-community/netbox/issues/18329) - Address upstream bug in GraphQL API where only one primary IP address is returned within a device/VM list
+
+---
+
+## v4.2.0 (2025-01-06)
+
+### Breaking Changes
+
+* Support for the Django admin UI has been completely removed. (The Django admin UI was disabled by default in NetBox v4.0.)
+* This release drops support for PostgreSQL 12. PostgreSQL 13 or later is required to run this release.
+* NetBox has adopted collation-based natural ordering for many models. This may alter the order in which some objects are listed by default.
+* Automatic redirects from pre-v4.1 UI views for virtual disks have been removed.
+* The `site` and `provider_network` foreign key fields on `circuits.CircuitTermination` have been replaced by the `termination` generic foreign key.
+* The `site` foreign key field on `ipam.Prefix` has been replaced by the `scope` generic foreign key.
+* The `site` foreign key field on `virtualization.Cluster` has been replaced by the `scope` generic foreign key.
+* The `circuit` foreign key field on `circuits.CircuitGroupAssignment` has been replaced by the `member` generic foreign key.
+* Obsolete nested REST API serializers have been removed. These were deprecated in NetBox v4.1 under [#17143](https://github.com/netbox-community/netbox/issues/17143).
+
+### New Features
+
+#### Assign Multiple MAC Addresses per Interface ([#4867](https://github.com/netbox-community/netbox/issues/4867))
+
+MAC addresses are now managed as independent objects, rather than attributes on device and VM interfaces. NetBox now supports the assignment of multiple MAC addresses per interface, and allows a primary MAC address to be designated for each.
+
+#### Quick Add UI Widget ([#5858](https://github.com/netbox-community/netbox/issues/5858))
+
+A new UI widget has been introduced to enable conveniently creating new related objects while creating or editing an object. For instance, it is now possible to create and assign a new device role when creating or editing a device from within the device form.
+
+#### VLAN Translation ([#7336](https://github.com/netbox-community/netbox/issues/7336))
+
+User can now define policies which track the translation of VLAN IDs on IEEE 802.1Q-encapsulated interfaces. Translation policies can be reused across multiple interfaces.
+
+#### Virtual Circuits ([#13086](https://github.com/netbox-community/netbox/issues/13086))
+
+New models have been introduced to support the documentation of virtual circuits as an extension to the physical circuit modeling already supported. This enables users to accurately reflect point-to-point or multipoint virtual circuits atop infrastructure comprising physical circuits and cables.
+
+#### Q-in-Q Encapsulation ([#13428](https://github.com/netbox-community/netbox/issues/13428))
+
+NetBox now supports the designation of customer VLANs (CVLANs) and service VLANs (SVLANs) to support IEEE 802.1ad/Q-in-Q encapsulation. Each interface can now have it mode designated "Q-in-Q" and be assigned an SVLAN.
+
+### Enhancements
+
+* [#6414](https://github.com/netbox-community/netbox/issues/6414) - Prefixes can now be scoped by region, site group, site, or location
+* [#7699](https://github.com/netbox-community/netbox/issues/7699) - Virtualization clusters can now be scoped by region, site group, site, or location
+* [#9604](https://github.com/netbox-community/netbox/issues/9604) - The scope of a circuit termination now include a region, site group, site, location, or provider network
+* [#10711](https://github.com/netbox-community/netbox/issues/10711) - Wireless LANs can now be scoped by region, site group, site, or location
+* [#11279](https://github.com/netbox-community/netbox/issues/11279) - Improved the use of natural ordering for various models throughout the application
+* [#12596](https://github.com/netbox-community/netbox/issues/12596) - Extended the virtualization clusters REST API endpoint to report on allocated VM resources
+* [#16547](https://github.com/netbox-community/netbox/issues/16547) - Add a geographic distance field for circuits
+* [#16783](https://github.com/netbox-community/netbox/issues/16783) - Add an operational status field for inventory items
+* [#17195](https://github.com/netbox-community/netbox/issues/17195) - Add a color field for power outlets
+
+### Plugins
+
+* [#15093](https://github.com/netbox-community/netbox/issues/15093) - Introduced the `events_pipeline` configuration parameter, which allows plugins to hook into NetBox event processing
+* [#16546](https://github.com/netbox-community/netbox/issues/16546) - NetBoxModel now provides a default `get_absolute_url()` method
+* [#16971](https://github.com/netbox-community/netbox/issues/16971) - Plugins can now easily register system jobs to perform background tasks
+* [#17029](https://github.com/netbox-community/netbox/issues/17029) - Registering a `PluginTemplateExtension` subclass for a single model has been deprecated (replace `model` with `models`)
+* [#18023](https://github.com/netbox-community/netbox/issues/18023) - Extend `register_model_view()` to handle list views
+
+### Other Changes
+
+* [#16136](https://github.com/netbox-community/netbox/issues/16136) - Removed support for the Django admin UI
+* [#17165](https://github.com/netbox-community/netbox/issues/17165) - All obsolete nested REST API serializers have been removed
+* [#17472](https://github.com/netbox-community/netbox/issues/17472) - The legacy staged changes API has been deprecated, and will be removed in Netbox v4.3
+* [#17476](https://github.com/netbox-community/netbox/issues/17476) - Upgrade to Django 5.1
+* [#17752](https://github.com/netbox-community/netbox/issues/17752) - Bulk object import URL paths have been renamed from `*_import` to `*_bulk_import`
+* [#17761](https://github.com/netbox-community/netbox/issues/17761) - Optional choice fields now store empty values as null (rather than empty strings) in the database
+* [#18093](https://github.com/netbox-community/netbox/issues/18093) - Redirects for pre-v4.1 virtual disk UI views have been removed
+
+### REST API Changes
+
+* Added the following endpoints:
+ * `/api/circuits/virtual-circuits/`
+ * `/api/circuits/virtual-circuit-terminations/`
+ * `/api/dcim/mac-addresses/`
+ * `/api/ipam/vlan-translation-policies/`
+ * `/api/ipam/vlan-translation-rules/`
+* circuits.Circuit
+ * Added the optional `distance` and `distance_unit` fields
+* circuits.CircuitGroupAssignment
+ * Replaced the `circuit` field with `member_type` and `member_id` to support virtual circuit assignment
+* circuits.CircuitTermination
+ * Removed the `site` & `provider_network` fields
+ * Added the `termination_type` & `termination_id` fields to facilitate termination assignment
+ * Added the read-only `termination` field
+* dcim.Interface
+ * The `mac_address` field is now read-only
+ * Added the `primary_mac_address` relation to dcim.MACAddress
+ * Added the read-only `mac_addresses` list
+ * Added the `qinq_svlan` relation to ipam.VLAN
+ * Added the `vlan_translation_policy` relation to ipam.VLANTranslationPolicy
+ * Added `mode` choice "Q-in-Q"
+* dcim.InventoryItem
+ * Added the optional `status` choice field
+* dcim.Location
+ * Added the read-only `prefix_count` field
+* dcim.PowerOutlet
+ * Added the optional `color` field
+* dcim.Region
+ * Added the read-only `prefix_count` field
+* dcim.SiteGroup
+ * Added the read-only `prefix_count` field
+* ipam.Prefix
+ * Removed the `site` field
+ * Added the `scope_type` & `scope_id` fields to facilitate scope assignment
+ * Added the read-only `scope` field
+* ipam.VLAN
+ * Added the optional `qinq_role` selection field
+ * Added the `qinq_svlan` recursive relation
+* virtualization.Cluster
+ * Removed the `site` field
+ * Added the `scope_type` & `scope_id` fields to facilitate scope assignment
+ * Added the read-only `scope` field
+* virtualization.Cluster
+ * Added the read-only fields `allocated_vcpus`, `allocated_memory`, and `allocated_disk`
+* virtualization.VMInterface
+ * The `mac_address` field is now read-only
+ * Added the `primary_mac_address` relation to dcim.MACAddress
+ * Added the read-only `mac_addresses` list
+ * Added the `qinq_svlan` relation to ipam.VLAN
+ * Added the `vlan_translation_policy` relation to ipam.VLANTranslationPolicy
+ * Added `mode` choice "Q-in-Q"
+* wireless.WirelessLAN
+ * Added the `scope_type` & `scope_id` fields to support scope assignment
+ * Added the read-only `scope` field
diff --git a/mkdocs.yml b/mkdocs.yml
index 00e03a4ce..db6798eae 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -174,6 +174,9 @@ nav:
- Provider: 'models/circuits/provider.md'
- Provider Account: 'models/circuits/provideraccount.md'
- Provider Network: 'models/circuits/providernetwork.md'
+ - Virtual Circuit: 'models/circuits/virtualcircuit.md'
+ - Virtual Circuit Termination: 'models/circuits/virtualcircuittermination.md'
+ - Virtual Circuit Type: 'models/circuits/virtualcircuittype.md'
- Core:
- DataFile: 'models/core/datafile.md'
- DataSource: 'models/core/datasource.md'
@@ -197,6 +200,7 @@ nav:
- InventoryItemRole: 'models/dcim/inventoryitemrole.md'
- InventoryItemTemplate: 'models/dcim/inventoryitemtemplate.md'
- Location: 'models/dcim/location.md'
+ - MACAddress: 'models/dcim/macaddress.md'
- Manufacturer: 'models/dcim/manufacturer.md'
- Module: 'models/dcim/module.md'
- ModuleBay: 'models/dcim/modulebay.md'
@@ -255,6 +259,8 @@ nav:
- ServiceTemplate: 'models/ipam/servicetemplate.md'
- VLAN: 'models/ipam/vlan.md'
- VLANGroup: 'models/ipam/vlangroup.md'
+ - VLANTranslationPolicy: 'models/ipam/vlantranslationpolicy.md'
+ - VLANTranslationRule: 'models/ipam/vlantranslationrule.md'
- VRF: 'models/ipam/vrf.md'
- Tenancy:
- Contact: 'models/tenancy/contact.md'
@@ -306,6 +312,7 @@ nav:
- git Cheat Sheet: 'development/git-cheat-sheet.md'
- Release Notes:
- Summary: 'release-notes/index.md'
+ - Version 4.2: 'release-notes/version-4.2.md'
- Version 4.1: 'release-notes/version-4.1.md'
- Version 4.0: 'release-notes/version-4.0.md'
- Version 3.7: 'release-notes/version-3.7.md'
diff --git a/netbox/circuits/api/nested_serializers.py b/netbox/circuits/api/nested_serializers.py
deleted file mode 100644
index 487749872..000000000
--- a/netbox/circuits/api/nested_serializers.py
+++ /dev/null
@@ -1,79 +0,0 @@
-import warnings
-
-from drf_spectacular.utils import extend_schema_serializer
-
-from circuits.models import *
-from netbox.api.fields import RelatedObjectCountField
-from netbox.api.serializers import WritableNestedSerializer
-from .serializers_.nested import NestedProviderAccountSerializer
-
-__all__ = [
- 'NestedCircuitSerializer',
- 'NestedCircuitTerminationSerializer',
- 'NestedCircuitTypeSerializer',
- 'NestedProviderNetworkSerializer',
- 'NestedProviderSerializer',
- 'NestedProviderAccountSerializer',
-]
-
-# TODO: Remove in v4.2
-warnings.warn(
- "Dedicated nested serializers will be removed in NetBox v4.2. Use Serializer(nested=True) instead.",
- DeprecationWarning
-)
-
-
-#
-# Provider networks
-#
-
-class NestedProviderNetworkSerializer(WritableNestedSerializer):
-
- class Meta:
- model = ProviderNetwork
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-#
-# Providers
-#
-
-@extend_schema_serializer(
- exclude_fields=('circuit_count',),
-)
-class NestedProviderSerializer(WritableNestedSerializer):
- circuit_count = RelatedObjectCountField('circuits')
-
- class Meta:
- model = Provider
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'circuit_count']
-
-
-#
-# Circuits
-#
-
-@extend_schema_serializer(
- exclude_fields=('circuit_count',),
-)
-class NestedCircuitTypeSerializer(WritableNestedSerializer):
- circuit_count = RelatedObjectCountField('circuits')
-
- class Meta:
- model = CircuitType
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'circuit_count']
-
-
-class NestedCircuitSerializer(WritableNestedSerializer):
-
- class Meta:
- model = Circuit
- fields = ['id', 'url', 'display_url', 'display', 'cid']
-
-
-class NestedCircuitTerminationSerializer(WritableNestedSerializer):
- circuit = NestedCircuitSerializer()
-
- class Meta:
- model = CircuitTermination
- fields = ['id', 'url', 'display_url', 'display', 'circuit', 'term_side', 'cable', '_occupied']
diff --git a/netbox/circuits/api/serializers_/circuits.py b/netbox/circuits/api/serializers_/circuits.py
index c605a4bd5..70b57a688 100644
--- a/netbox/circuits/api/serializers_/circuits.py
+++ b/netbox/circuits/api/serializers_/circuits.py
@@ -1,11 +1,20 @@
-from circuits.choices import CircuitPriorityChoices, CircuitStatusChoices
-from circuits.models import Circuit, CircuitGroup, CircuitGroupAssignment, CircuitTermination, CircuitType
-from dcim.api.serializers_.cables import CabledObjectSerializer
-from dcim.api.serializers_.sites import SiteSerializer
-from netbox.api.fields import ChoiceField, RelatedObjectCountField
-from netbox.api.serializers import NetBoxModelSerializer, WritableNestedSerializer
-from tenancy.api.serializers_.tenants import TenantSerializer
+from django.contrib.contenttypes.models import ContentType
+from drf_spectacular.utils import extend_schema_field
+from rest_framework import serializers
+from circuits.choices import CircuitPriorityChoices, CircuitStatusChoices, VirtualCircuitTerminationRoleChoices
+from circuits.constants import CIRCUIT_GROUP_ASSIGNMENT_MEMBER_MODELS, CIRCUIT_TERMINATION_TERMINATION_TYPES
+from circuits.models import (
+ Circuit, CircuitGroup, CircuitGroupAssignment, CircuitTermination, CircuitType, VirtualCircuit,
+ VirtualCircuitTermination, VirtualCircuitType,
+)
+from dcim.api.serializers_.device_components import InterfaceSerializer
+from dcim.api.serializers_.cables import CabledObjectSerializer
+from netbox.api.fields import ChoiceField, ContentTypeField, RelatedObjectCountField
+from netbox.api.serializers import NetBoxModelSerializer, WritableNestedSerializer
+from netbox.choices import DistanceUnitChoices
+from tenancy.api.serializers_.tenants import TenantSerializer
+from utilities.api import get_serializer_for_model
from .providers import ProviderAccountSerializer, ProviderNetworkSerializer, ProviderSerializer
__all__ = (
@@ -14,6 +23,9 @@ __all__ = (
'CircuitGroupSerializer',
'CircuitTerminationSerializer',
'CircuitTypeSerializer',
+ 'VirtualCircuitSerializer',
+ 'VirtualCircuitTerminationSerializer',
+ 'VirtualCircuitTypeSerializer',
)
@@ -32,16 +44,32 @@ class CircuitTypeSerializer(NetBoxModelSerializer):
class CircuitCircuitTerminationSerializer(WritableNestedSerializer):
- site = SiteSerializer(nested=True, allow_null=True)
- provider_network = ProviderNetworkSerializer(nested=True, allow_null=True)
+ termination_type = ContentTypeField(
+ queryset=ContentType.objects.filter(
+ model__in=CIRCUIT_TERMINATION_TERMINATION_TYPES
+ ),
+ allow_null=True,
+ required=False,
+ default=None
+ )
+ termination_id = serializers.IntegerField(allow_null=True, required=False, default=None)
+ termination = serializers.SerializerMethodField(read_only=True)
class Meta:
model = CircuitTermination
fields = [
- 'id', 'url', 'display_url', 'display', 'site', 'provider_network', 'port_speed', 'upstream_speed',
- 'xconnect_id', 'description',
+ 'id', 'url', 'display_url', 'display', 'termination_type', 'termination_id', 'termination', 'port_speed',
+ 'upstream_speed', 'xconnect_id', 'description',
]
+ @extend_schema_field(serializers.JSONField(allow_null=True))
+ def get_termination(self, obj):
+ if obj.termination_id is None:
+ return None
+ serializer = get_serializer_for_model(obj.termination)
+ context = {'request': self.context['request']}
+ return serializer(obj.termination, nested=True, context=context).data
+
class CircuitGroupSerializer(NetBoxModelSerializer):
tenant = TenantSerializer(nested=True, required=False, allow_null=True)
@@ -76,6 +104,7 @@ class CircuitSerializer(NetBoxModelSerializer):
provider_account = ProviderAccountSerializer(nested=True, required=False, allow_null=True, default=None)
status = ChoiceField(choices=CircuitStatusChoices, required=False)
type = CircuitTypeSerializer(nested=True)
+ distance_unit = ChoiceField(choices=DistanceUnitChoices, allow_blank=True, required=False, allow_null=True)
tenant = TenantSerializer(nested=True, required=False, allow_null=True)
termination_a = CircuitCircuitTerminationSerializer(read_only=True, allow_null=True)
termination_z = CircuitCircuitTerminationSerializer(read_only=True, allow_null=True)
@@ -85,33 +114,107 @@ class CircuitSerializer(NetBoxModelSerializer):
model = Circuit
fields = [
'id', 'url', 'display_url', 'display', 'cid', 'provider', 'provider_account', 'type', 'status', 'tenant',
- 'install_date', 'termination_date', 'commit_rate', 'description', 'termination_a', 'termination_z',
- 'comments', 'tags', 'custom_fields', 'created', 'last_updated', 'assignments',
+ 'install_date', 'termination_date', 'commit_rate', 'description', 'distance', 'distance_unit',
+ 'termination_a', 'termination_z', 'comments', 'tags', 'custom_fields', 'created', 'last_updated',
+ 'assignments',
]
brief_fields = ('id', 'url', 'display', 'provider', 'cid', 'description')
class CircuitTerminationSerializer(NetBoxModelSerializer, CabledObjectSerializer):
circuit = CircuitSerializer(nested=True)
- site = SiteSerializer(nested=True, required=False, allow_null=True)
- provider_network = ProviderNetworkSerializer(nested=True, required=False, allow_null=True)
+ termination_type = ContentTypeField(
+ queryset=ContentType.objects.filter(
+ model__in=CIRCUIT_TERMINATION_TERMINATION_TYPES
+ ),
+ allow_null=True,
+ required=False,
+ default=None
+ )
+ termination_id = serializers.IntegerField(allow_null=True, required=False, default=None)
+ termination = serializers.SerializerMethodField(read_only=True)
class Meta:
model = CircuitTermination
fields = [
- 'id', 'url', 'display_url', 'display', 'circuit', 'term_side', 'site', 'provider_network', 'port_speed',
- 'upstream_speed', 'xconnect_id', 'pp_info', 'description', 'mark_connected', 'cable', 'cable_end',
- 'link_peers', 'link_peers_type', 'tags', 'custom_fields', 'created', 'last_updated', '_occupied',
+ 'id', 'url', 'display_url', 'display', 'circuit', 'term_side', 'termination_type', 'termination_id',
+ 'termination', 'port_speed', 'upstream_speed', 'xconnect_id', 'pp_info', 'description', 'mark_connected',
+ 'cable', 'cable_end', 'link_peers', 'link_peers_type', 'tags', 'custom_fields', 'created', 'last_updated',
+ '_occupied',
]
brief_fields = ('id', 'url', 'display', 'circuit', 'term_side', 'description', 'cable', '_occupied')
+ @extend_schema_field(serializers.JSONField(allow_null=True))
+ def get_termination(self, obj):
+ if obj.termination_id is None:
+ return None
+ serializer = get_serializer_for_model(obj.termination)
+ context = {'request': self.context['request']}
+ return serializer(obj.termination, nested=True, context=context).data
+
class CircuitGroupAssignmentSerializer(CircuitGroupAssignmentSerializer_):
- circuit = CircuitSerializer(nested=True)
+ member_type = ContentTypeField(
+ queryset=ContentType.objects.filter(CIRCUIT_GROUP_ASSIGNMENT_MEMBER_MODELS)
+ )
+ member = serializers.SerializerMethodField(read_only=True)
class Meta:
model = CircuitGroupAssignment
fields = [
- 'id', 'url', 'display_url', 'display', 'group', 'circuit', 'priority', 'tags', 'created', 'last_updated',
+ 'id', 'url', 'display_url', 'display', 'group', 'member_type', 'member_id', 'member', 'priority', 'tags',
+ 'created', 'last_updated',
]
- brief_fields = ('id', 'url', 'display', 'group', 'circuit', 'priority')
+ brief_fields = ('id', 'url', 'display', 'group', 'member_type', 'member_id', 'member', 'priority')
+
+ @extend_schema_field(serializers.JSONField(allow_null=True))
+ def get_member(self, obj):
+ if obj.member_id is None:
+ return None
+ serializer = get_serializer_for_model(obj.member)
+ context = {'request': self.context['request']}
+ return serializer(obj.member, nested=True, context=context).data
+
+
+class VirtualCircuitTypeSerializer(NetBoxModelSerializer):
+
+ # Related object counts
+ virtual_circuit_count = RelatedObjectCountField('virtual_circuits')
+
+ class Meta:
+ model = VirtualCircuitType
+ fields = [
+ 'id', 'url', 'display_url', 'display', 'name', 'slug', 'color', 'description', 'tags', 'custom_fields',
+ 'created', 'last_updated', 'virtual_circuit_count',
+ ]
+ brief_fields = ('id', 'url', 'display', 'name', 'slug', 'description', 'virtual_circuit_count')
+
+
+class VirtualCircuitSerializer(NetBoxModelSerializer):
+ provider_network = ProviderNetworkSerializer(nested=True)
+ provider_account = ProviderAccountSerializer(nested=True, required=False, allow_null=True, default=None)
+ type = VirtualCircuitTypeSerializer(nested=True)
+ status = ChoiceField(choices=CircuitStatusChoices, required=False)
+ tenant = TenantSerializer(nested=True, required=False, allow_null=True)
+
+ class Meta:
+ model = VirtualCircuit
+ fields = [
+ 'id', 'url', 'display_url', 'display', 'cid', 'provider_network', 'provider_account', 'type', 'status',
+ 'tenant', 'description', 'comments', 'tags', 'custom_fields', 'created', 'last_updated',
+ ]
+ brief_fields = ('id', 'url', 'display', 'provider_network', 'cid', 'description')
+
+
+class VirtualCircuitTerminationSerializer(NetBoxModelSerializer, CabledObjectSerializer):
+ virtual_circuit = VirtualCircuitSerializer(nested=True)
+ role = ChoiceField(choices=VirtualCircuitTerminationRoleChoices, required=False)
+ interface = InterfaceSerializer(nested=True)
+
+ class Meta:
+ model = VirtualCircuitTermination
+ fields = [
+ 'id', 'url', 'display_url', 'display', 'virtual_circuit', 'role', 'interface', 'description', 'tags',
+ 'custom_fields', 'created', 'last_updated',
+ ]
+ brief_fields = ('id', 'url', 'display', 'virtual_circuit', 'role', 'interface', 'description')
diff --git a/netbox/circuits/api/urls.py b/netbox/circuits/api/urls.py
index 00af3dec6..3be620bd2 100644
--- a/netbox/circuits/api/urls.py
+++ b/netbox/circuits/api/urls.py
@@ -17,5 +17,10 @@ router.register('circuit-terminations', views.CircuitTerminationViewSet)
router.register('circuit-groups', views.CircuitGroupViewSet)
router.register('circuit-group-assignments', views.CircuitGroupAssignmentViewSet)
+# Virtual circuits
+router.register('virtual-circuits', views.VirtualCircuitViewSet)
+router.register('virtual-circuit-types', views.VirtualCircuitTypeViewSet)
+router.register('virtual-circuit-terminations', views.VirtualCircuitTerminationViewSet)
+
app_name = 'circuits-api'
urlpatterns = router.urls
diff --git a/netbox/circuits/api/views.py b/netbox/circuits/api/views.py
index 8cce013d7..05540d9ad 100644
--- a/netbox/circuits/api/views.py
+++ b/netbox/circuits/api/views.py
@@ -93,3 +93,33 @@ class ProviderNetworkViewSet(NetBoxModelViewSet):
queryset = ProviderNetwork.objects.all()
serializer_class = serializers.ProviderNetworkSerializer
filterset_class = filtersets.ProviderNetworkFilterSet
+
+
+#
+# Virtual circuit types
+#
+
+class VirtualCircuitTypeViewSet(NetBoxModelViewSet):
+ queryset = VirtualCircuitType.objects.all()
+ serializer_class = serializers.VirtualCircuitTypeSerializer
+ filterset_class = filtersets.VirtualCircuitTypeFilterSet
+
+
+#
+# Virtual circuits
+#
+
+class VirtualCircuitViewSet(NetBoxModelViewSet):
+ queryset = VirtualCircuit.objects.all()
+ serializer_class = serializers.VirtualCircuitSerializer
+ filterset_class = filtersets.VirtualCircuitFilterSet
+
+
+#
+# Virtual circuit terminations
+#
+
+class VirtualCircuitTerminationViewSet(PassThroughPortMixin, NetBoxModelViewSet):
+ queryset = VirtualCircuitTermination.objects.all()
+ serializer_class = serializers.VirtualCircuitTerminationSerializer
+ filterset_class = filtersets.VirtualCircuitTerminationFilterSet
diff --git a/netbox/circuits/choices.py b/netbox/circuits/choices.py
index 8c25c7459..4d6132d7a 100644
--- a/netbox/circuits/choices.py
+++ b/netbox/circuits/choices.py
@@ -92,3 +92,19 @@ class CircuitPriorityChoices(ChoiceSet):
(PRIORITY_TERTIARY, _('Tertiary')),
(PRIORITY_INACTIVE, _('Inactive')),
]
+
+
+#
+# Virtual circuits
+#
+
+class VirtualCircuitTerminationRoleChoices(ChoiceSet):
+ ROLE_PEER = 'peer'
+ ROLE_HUB = 'hub'
+ ROLE_SPOKE = 'spoke'
+
+ CHOICES = [
+ (ROLE_PEER, _('Peer'), 'green'),
+ (ROLE_HUB, _('Hub'), 'blue'),
+ (ROLE_SPOKE, _('Spoke'), 'orange'),
+ ]
diff --git a/netbox/circuits/constants.py b/netbox/circuits/constants.py
new file mode 100644
index 000000000..4642c22a3
--- /dev/null
+++ b/netbox/circuits/constants.py
@@ -0,0 +1,12 @@
+from django.db.models import Q
+
+
+# models values for ContentTypes which may be CircuitTermination termination types
+CIRCUIT_TERMINATION_TERMINATION_TYPES = (
+ 'region', 'sitegroup', 'site', 'location', 'providernetwork',
+)
+
+CIRCUIT_GROUP_ASSIGNMENT_MEMBER_MODELS = Q(
+ app_label='circuits',
+ model__in=['circuit', 'virtualcircuit']
+)
diff --git a/netbox/circuits/filtersets.py b/netbox/circuits/filtersets.py
index c55807c75..964f69f83 100644
--- a/netbox/circuits/filtersets.py
+++ b/netbox/circuits/filtersets.py
@@ -1,13 +1,16 @@
import django_filters
+from django.contrib.contenttypes.models import ContentType
from django.db.models import Q
from django.utils.translation import gettext as _
from dcim.filtersets import CabledObjectFilterSet
-from dcim.models import Region, Site, SiteGroup
+from dcim.models import Interface, Location, Region, Site, SiteGroup
from ipam.models import ASN
from netbox.filtersets import NetBoxModelFilterSet, OrganizationalModelFilterSet
from tenancy.filtersets import ContactModelFilterSet, TenancyFilterSet
-from utilities.filters import TreeNodeMultipleChoiceFilter
+from utilities.filters import (
+ ContentTypeFilter, MultiValueCharFilter, MultiValueNumberFilter, TreeNodeMultipleChoiceFilter,
+)
from .choices import *
from .models import *
@@ -20,43 +23,46 @@ __all__ = (
'ProviderNetworkFilterSet',
'ProviderAccountFilterSet',
'ProviderFilterSet',
+ 'VirtualCircuitFilterSet',
+ 'VirtualCircuitTerminationFilterSet',
+ 'VirtualCircuitTypeFilterSet',
)
class ProviderFilterSet(NetBoxModelFilterSet, ContactModelFilterSet):
region_id = TreeNodeMultipleChoiceFilter(
queryset=Region.objects.all(),
- field_name='circuits__terminations__site__region',
+ field_name='circuits__terminations___region',
lookup_expr='in',
label=_('Region (ID)'),
)
region = TreeNodeMultipleChoiceFilter(
queryset=Region.objects.all(),
- field_name='circuits__terminations__site__region',
+ field_name='circuits__terminations___region',
lookup_expr='in',
to_field_name='slug',
label=_('Region (slug)'),
)
site_group_id = TreeNodeMultipleChoiceFilter(
queryset=SiteGroup.objects.all(),
- field_name='circuits__terminations__site__group',
+ field_name='circuits__terminations___site_group',
lookup_expr='in',
label=_('Site group (ID)'),
)
site_group = TreeNodeMultipleChoiceFilter(
queryset=SiteGroup.objects.all(),
- field_name='circuits__terminations__site__group',
+ field_name='circuits__terminations___site_group',
lookup_expr='in',
to_field_name='slug',
label=_('Site group (slug)'),
)
site_id = django_filters.ModelMultipleChoiceFilter(
- field_name='circuits__terminations__site',
+ field_name='circuits__terminations___site',
queryset=Site.objects.all(),
label=_('Site'),
)
site = django_filters.ModelMultipleChoiceFilter(
- field_name='circuits__terminations__site__slug',
+ field_name='circuits__terminations___site__slug',
queryset=Site.objects.all(),
to_field_name='slug',
label=_('Site (slug)'),
@@ -173,7 +179,7 @@ class CircuitFilterSet(NetBoxModelFilterSet, TenancyFilterSet, ContactModelFilte
label=_('Provider account (account)'),
)
provider_network_id = django_filters.ModelMultipleChoiceFilter(
- field_name='terminations__provider_network',
+ field_name='terminations___provider_network',
queryset=ProviderNetwork.objects.all(),
label=_('Provider network (ID)'),
)
@@ -193,37 +199,37 @@ class CircuitFilterSet(NetBoxModelFilterSet, TenancyFilterSet, ContactModelFilte
)
region_id = TreeNodeMultipleChoiceFilter(
queryset=Region.objects.all(),
- field_name='terminations__site__region',
+ field_name='terminations___region',
lookup_expr='in',
label=_('Region (ID)'),
)
region = TreeNodeMultipleChoiceFilter(
queryset=Region.objects.all(),
- field_name='terminations__site__region',
+ field_name='terminations___region',
lookup_expr='in',
to_field_name='slug',
label=_('Region (slug)'),
)
site_group_id = TreeNodeMultipleChoiceFilter(
queryset=SiteGroup.objects.all(),
- field_name='terminations__site__group',
+ field_name='terminations___site_group',
lookup_expr='in',
label=_('Site group (ID)'),
)
site_group = TreeNodeMultipleChoiceFilter(
queryset=SiteGroup.objects.all(),
- field_name='terminations__site__group',
+ field_name='terminations___site_group',
lookup_expr='in',
to_field_name='slug',
label=_('Site group (slug)'),
)
site_id = django_filters.ModelMultipleChoiceFilter(
- field_name='terminations__site',
+ field_name='terminations___site',
queryset=Site.objects.all(),
label=_('Site (ID)'),
)
site = django_filters.ModelMultipleChoiceFilter(
- field_name='terminations__site__slug',
+ field_name='terminations___site__slug',
queryset=Site.objects.all(),
to_field_name='slug',
label=_('Site (slug)'),
@@ -239,7 +245,9 @@ class CircuitFilterSet(NetBoxModelFilterSet, TenancyFilterSet, ContactModelFilte
class Meta:
model = Circuit
- fields = ('id', 'cid', 'description', 'install_date', 'termination_date', 'commit_rate')
+ fields = (
+ 'id', 'cid', 'description', 'install_date', 'termination_date', 'commit_rate', 'distance', 'distance_unit',
+ )
def search(self, queryset, name, value):
if not value.strip():
@@ -263,18 +271,60 @@ class CircuitTerminationFilterSet(NetBoxModelFilterSet, CabledObjectFilterSet):
queryset=Circuit.objects.all(),
label=_('Circuit'),
)
+ termination_type = ContentTypeFilter()
+ region_id = TreeNodeMultipleChoiceFilter(
+ queryset=Region.objects.all(),
+ field_name='_region',
+ lookup_expr='in',
+ label=_('Region (ID)'),
+ )
+ region = TreeNodeMultipleChoiceFilter(
+ queryset=Region.objects.all(),
+ field_name='_region',
+ lookup_expr='in',
+ to_field_name='slug',
+ label=_('Region (slug)'),
+ )
+ site_group_id = TreeNodeMultipleChoiceFilter(
+ queryset=SiteGroup.objects.all(),
+ field_name='_site_group',
+ lookup_expr='in',
+ label=_('Site group (ID)'),
+ )
+ site_group = TreeNodeMultipleChoiceFilter(
+ queryset=SiteGroup.objects.all(),
+ field_name='_site_group',
+ lookup_expr='in',
+ to_field_name='slug',
+ label=_('Site group (slug)'),
+ )
site_id = django_filters.ModelMultipleChoiceFilter(
queryset=Site.objects.all(),
+ field_name='_site',
label=_('Site (ID)'),
)
site = django_filters.ModelMultipleChoiceFilter(
- field_name='site__slug',
+ field_name='_site__slug',
queryset=Site.objects.all(),
to_field_name='slug',
label=_('Site (slug)'),
)
+ location_id = TreeNodeMultipleChoiceFilter(
+ queryset=Location.objects.all(),
+ field_name='_location',
+ lookup_expr='in',
+ label=_('Location (ID)'),
+ )
+ location = TreeNodeMultipleChoiceFilter(
+ queryset=Location.objects.all(),
+ field_name='_location',
+ lookup_expr='in',
+ to_field_name='slug',
+ label=_('Location (slug)'),
+ )
provider_network_id = django_filters.ModelMultipleChoiceFilter(
queryset=ProviderNetwork.objects.all(),
+ field_name='_provider_network',
label=_('ProviderNetwork (ID)'),
)
provider_id = django_filters.ModelMultipleChoiceFilter(
@@ -292,8 +342,8 @@ class CircuitTerminationFilterSet(NetBoxModelFilterSet, CabledObjectFilterSet):
class Meta:
model = CircuitTermination
fields = (
- 'id', 'term_side', 'port_speed', 'upstream_speed', 'xconnect_id', 'description', 'mark_connected',
- 'pp_info', 'cable_end',
+ 'id', 'termination_id', 'term_side', 'port_speed', 'upstream_speed', 'xconnect_id', 'description',
+ 'mark_connected', 'pp_info', 'cable_end',
)
def search(self, queryset, name, value):
@@ -319,26 +369,36 @@ class CircuitGroupAssignmentFilterSet(NetBoxModelFilterSet):
method='search',
label=_('Search'),
)
- provider_id = django_filters.ModelMultipleChoiceFilter(
- field_name='circuit__provider',
- queryset=Provider.objects.all(),
- label=_('Provider (ID)'),
+ member_type = ContentTypeFilter()
+ circuit = MultiValueCharFilter(
+ method='filter_circuit',
+ field_name='cid',
+ label=_('Circuit (CID)'),
)
- provider = django_filters.ModelMultipleChoiceFilter(
- field_name='circuit__provider__slug',
- queryset=Provider.objects.all(),
- to_field_name='slug',
- label=_('Provider (slug)'),
- )
- circuit_id = django_filters.ModelMultipleChoiceFilter(
- queryset=Circuit.objects.all(),
+ circuit_id = MultiValueNumberFilter(
+ method='filter_circuit',
+ field_name='pk',
label=_('Circuit (ID)'),
)
- circuit = django_filters.ModelMultipleChoiceFilter(
- field_name='circuit__cid',
- queryset=Circuit.objects.all(),
- to_field_name='cid',
- label=_('Circuit (CID)'),
+ virtual_circuit = MultiValueCharFilter(
+ method='filter_virtual_circuit',
+ field_name='cid',
+ label=_('Virtual circuit (CID)'),
+ )
+ virtual_circuit_id = MultiValueNumberFilter(
+ method='filter_virtual_circuit',
+ field_name='pk',
+ label=_('Virtual circuit (ID)'),
+ )
+ provider = MultiValueCharFilter(
+ method='filter_provider',
+ field_name='slug',
+ label=_('Provider (name)'),
+ )
+ provider_id = MultiValueNumberFilter(
+ method='filter_provider',
+ field_name='pk',
+ label=_('Provider (ID)'),
)
group_id = django_filters.ModelMultipleChoiceFilter(
queryset=CircuitGroup.objects.all(),
@@ -353,12 +413,173 @@ class CircuitGroupAssignmentFilterSet(NetBoxModelFilterSet):
class Meta:
model = CircuitGroupAssignment
- fields = ('id', 'priority')
+ fields = ('id', 'member_id', 'priority')
def search(self, queryset, name, value):
if not value.strip():
return queryset
return queryset.filter(
- Q(circuit__cid__icontains=value) |
+ Q(member__cid__icontains=value) |
Q(group__name__icontains=value)
)
+
+ def filter_circuit(self, queryset, name, value):
+ circuits = Circuit.objects.filter(**{f'{name}__in': value})
+ if not circuits.exists():
+ return queryset.none()
+ return queryset.filter(
+ Q(
+ member_type=ContentType.objects.get_for_model(Circuit),
+ member_id__in=circuits
+ )
+ )
+
+ def filter_virtual_circuit(self, queryset, name, value):
+ virtual_circuits = VirtualCircuit.objects.filter(**{f'{name}__in': value})
+ if not virtual_circuits.exists():
+ return queryset.none()
+ return queryset.filter(
+ Q(
+ member_type=ContentType.objects.get_for_model(VirtualCircuit),
+ member_id__in=virtual_circuits
+ )
+ )
+
+ def filter_provider(self, queryset, name, value):
+ providers = Provider.objects.filter(**{f'{name}__in': value})
+ if not providers.exists():
+ return queryset.none()
+ circuits = Circuit.objects.filter(provider__in=providers)
+ virtual_circuits = VirtualCircuit.objects.filter(provider_network__provider__in=providers)
+ return queryset.filter(
+ Q(
+ member_type=ContentType.objects.get_for_model(Circuit),
+ member_id__in=circuits
+ ) |
+ Q(
+ member_type=ContentType.objects.get_for_model(VirtualCircuit),
+ member_id__in=virtual_circuits
+ )
+ )
+
+
+class VirtualCircuitTypeFilterSet(OrganizationalModelFilterSet):
+
+ class Meta:
+ model = VirtualCircuitType
+ fields = ('id', 'name', 'slug', 'color', 'description')
+
+
+class VirtualCircuitFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
+ provider_id = django_filters.ModelMultipleChoiceFilter(
+ field_name='provider_network__provider',
+ queryset=Provider.objects.all(),
+ label=_('Provider (ID)'),
+ )
+ provider = django_filters.ModelMultipleChoiceFilter(
+ field_name='provider_network__provider__slug',
+ queryset=Provider.objects.all(),
+ to_field_name='slug',
+ label=_('Provider (slug)'),
+ )
+ provider_account_id = django_filters.ModelMultipleChoiceFilter(
+ field_name='provider_account',
+ queryset=ProviderAccount.objects.all(),
+ label=_('Provider account (ID)'),
+ )
+ provider_account = django_filters.ModelMultipleChoiceFilter(
+ field_name='provider_account__account',
+ queryset=Provider.objects.all(),
+ to_field_name='account',
+ label=_('Provider account (account)'),
+ )
+ provider_network_id = django_filters.ModelMultipleChoiceFilter(
+ queryset=ProviderNetwork.objects.all(),
+ label=_('Provider network (ID)'),
+ )
+ type_id = django_filters.ModelMultipleChoiceFilter(
+ queryset=VirtualCircuitType.objects.all(),
+ label=_('Virtual circuit type (ID)'),
+ )
+ type = django_filters.ModelMultipleChoiceFilter(
+ field_name='type__slug',
+ queryset=VirtualCircuitType.objects.all(),
+ to_field_name='slug',
+ label=_('Virtual circuit type (slug)'),
+ )
+ status = django_filters.MultipleChoiceFilter(
+ choices=CircuitStatusChoices,
+ null_value=None
+ )
+
+ class Meta:
+ model = VirtualCircuit
+ fields = ('id', 'cid', 'description')
+
+ def search(self, queryset, name, value):
+ if not value.strip():
+ return queryset
+ return queryset.filter(
+ Q(cid__icontains=value) |
+ Q(description__icontains=value) |
+ Q(comments__icontains=value)
+ ).distinct()
+
+
+class VirtualCircuitTerminationFilterSet(NetBoxModelFilterSet):
+ q = django_filters.CharFilter(
+ method='search',
+ label=_('Search'),
+ )
+ virtual_circuit_id = django_filters.ModelMultipleChoiceFilter(
+ queryset=VirtualCircuit.objects.all(),
+ label=_('Virtual circuit'),
+ )
+ role = django_filters.MultipleChoiceFilter(
+ choices=VirtualCircuitTerminationRoleChoices,
+ null_value=None
+ )
+ provider_id = django_filters.ModelMultipleChoiceFilter(
+ field_name='virtual_circuit__provider_network__provider',
+ queryset=Provider.objects.all(),
+ label=_('Provider (ID)'),
+ )
+ provider = django_filters.ModelMultipleChoiceFilter(
+ field_name='virtual_circuit__provider_network__provider__slug',
+ queryset=Provider.objects.all(),
+ to_field_name='slug',
+ label=_('Provider (slug)'),
+ )
+ provider_account_id = django_filters.ModelMultipleChoiceFilter(
+ field_name='virtual_circuit__provider_account',
+ queryset=ProviderAccount.objects.all(),
+ label=_('Provider account (ID)'),
+ )
+ provider_account = django_filters.ModelMultipleChoiceFilter(
+ field_name='virtual_circuit__provider_account__account',
+ queryset=ProviderAccount.objects.all(),
+ to_field_name='account',
+ label=_('Provider account (account)'),
+ )
+ provider_network_id = django_filters.ModelMultipleChoiceFilter(
+ queryset=ProviderNetwork.objects.all(),
+ field_name='virtual_circuit__provider_network',
+ label=_('Provider network (ID)'),
+ )
+ interface_id = django_filters.ModelMultipleChoiceFilter(
+ queryset=Interface.objects.all(),
+ field_name='interface',
+ label=_('Interface (ID)'),
+ )
+
+ class Meta:
+ model = VirtualCircuitTermination
+ fields = ('id', 'interface_id', 'description')
+
+ def search(self, queryset, name, value):
+ if not value.strip():
+ return queryset
+ return queryset.filter(
+ Q(virtual_circuit__cid__icontains=value) |
+ Q(description__icontains=value)
+ ).distinct()
diff --git a/netbox/circuits/forms/bulk_edit.py b/netbox/circuits/forms/bulk_edit.py
index 3bb50a8d0..8d6e8dec1 100644
--- a/netbox/circuits/forms/bulk_edit.py
+++ b/netbox/circuits/forms/bulk_edit.py
@@ -1,16 +1,25 @@
from django import forms
+from django.contrib.contenttypes.models import ContentType
+from django.core.exceptions import ObjectDoesNotExist
from django.utils.translation import gettext_lazy as _
-from circuits.choices import CircuitCommitRateChoices, CircuitPriorityChoices, CircuitStatusChoices
+from circuits.choices import (
+ CircuitCommitRateChoices, CircuitPriorityChoices, CircuitStatusChoices, VirtualCircuitTerminationRoleChoices,
+)
+from circuits.constants import CIRCUIT_TERMINATION_TERMINATION_TYPES
from circuits.models import *
from dcim.models import Site
from ipam.models import ASN
+from netbox.choices import DistanceUnitChoices
from netbox.forms import NetBoxModelBulkEditForm
from tenancy.models import Tenant
-from utilities.forms import add_blank_choice
-from utilities.forms.fields import ColorField, CommentField, DynamicModelChoiceField, DynamicModelMultipleChoiceField
-from utilities.forms.rendering import FieldSet, TabbedGroups
-from utilities.forms.widgets import BulkEditNullBooleanSelect, DatePicker, NumberWithOptions
+from utilities.forms import add_blank_choice, get_field_value
+from utilities.forms.fields import (
+ ColorField, CommentField, ContentTypeChoiceField, DynamicModelChoiceField, DynamicModelMultipleChoiceField,
+)
+from utilities.forms.rendering import FieldSet
+from utilities.forms.widgets import BulkEditNullBooleanSelect, DatePicker, HTMXSelect, NumberWithOptions
+from utilities.templatetags.builtins.filters import bettertitle
__all__ = (
'CircuitBulkEditForm',
@@ -21,6 +30,9 @@ __all__ = (
'ProviderBulkEditForm',
'ProviderAccountBulkEditForm',
'ProviderNetworkBulkEditForm',
+ 'VirtualCircuitBulkEditForm',
+ 'VirtualCircuitTerminationBulkEditForm',
+ 'VirtualCircuitTypeBulkEditForm',
)
@@ -160,6 +172,17 @@ class CircuitBulkEditForm(NetBoxModelBulkEditForm):
options=CircuitCommitRateChoices
)
)
+ distance = forms.DecimalField(
+ label=_('Distance'),
+ min_value=0,
+ required=False
+ )
+ distance_unit = forms.ChoiceField(
+ label=_('Distance unit'),
+ choices=add_blank_choice(DistanceUnitChoices),
+ required=False,
+ initial=''
+ )
description = forms.CharField(
label=_('Description'),
max_length=100,
@@ -171,6 +194,7 @@ class CircuitBulkEditForm(NetBoxModelBulkEditForm):
fieldsets = (
FieldSet('provider', 'type', 'status', 'description', name=_('Circuit')),
FieldSet('provider_account', 'install_date', 'termination_date', 'commit_rate', name=_('Service Parameters')),
+ FieldSet('distance', 'distance_unit', name=_('Attributes')),
FieldSet('tenant', name=_('Tenancy')),
)
nullable_fields = (
@@ -184,15 +208,18 @@ class CircuitTerminationBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
- site = DynamicModelChoiceField(
- label=_('Site'),
- queryset=Site.objects.all(),
- required=False
+ termination_type = ContentTypeChoiceField(
+ queryset=ContentType.objects.filter(model__in=CIRCUIT_TERMINATION_TERMINATION_TYPES),
+ widget=HTMXSelect(method='post', attrs={'hx-select': '#form_fields'}),
+ required=False,
+ label=_('Termination type')
)
- provider_network = DynamicModelChoiceField(
- label=_('Provider Network'),
- queryset=ProviderNetwork.objects.all(),
- required=False
+ termination = DynamicModelChoiceField(
+ label=_('Termination'),
+ queryset=Site.objects.none(), # Initial queryset
+ required=False,
+ disabled=True,
+ selector=True
)
port_speed = forms.IntegerField(
required=False,
@@ -212,15 +239,26 @@ class CircuitTerminationBulkEditForm(NetBoxModelBulkEditForm):
fieldsets = (
FieldSet(
'description',
- TabbedGroups(
- FieldSet('site', name=_('Site')),
- FieldSet('provider_network', name=_('Provider Network')),
- ),
+ 'termination_type', 'termination',
'mark_connected', name=_('Circuit Termination')
),
FieldSet('port_speed', 'upstream_speed', name=_('Termination Details')),
)
- nullable_fields = ('description')
+ nullable_fields = ('description', 'termination')
+
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+
+ if termination_type_id := get_field_value(self, 'termination_type'):
+ try:
+ termination_type = ContentType.objects.get(pk=termination_type_id)
+ model = termination_type.model_class()
+ self.fields['termination'].queryset = model.objects.all()
+ self.fields['termination'].widget.attrs['selector'] = model._meta.label_lower
+ self.fields['termination'].disabled = False
+ self.fields['termination'].label = _(bettertitle(model._meta.verbose_name))
+ except ObjectDoesNotExist:
+ pass
class CircuitGroupBulkEditForm(NetBoxModelBulkEditForm):
@@ -242,7 +280,7 @@ class CircuitGroupBulkEditForm(NetBoxModelBulkEditForm):
class CircuitGroupAssignmentBulkEditForm(NetBoxModelBulkEditForm):
- circuit = DynamicModelChoiceField(
+ member = DynamicModelChoiceField(
label=_('Circuit'),
queryset=Circuit.objects.all(),
required=False
@@ -255,6 +293,88 @@ class CircuitGroupAssignmentBulkEditForm(NetBoxModelBulkEditForm):
model = CircuitGroupAssignment
fieldsets = (
- FieldSet('circuit', 'priority'),
+ FieldSet('member', 'priority'),
)
nullable_fields = ('priority',)
+
+
+class VirtualCircuitTypeBulkEditForm(NetBoxModelBulkEditForm):
+ color = ColorField(
+ label=_('Color'),
+ required=False
+ )
+ description = forms.CharField(
+ label=_('Description'),
+ max_length=200,
+ required=False
+ )
+
+ model = VirtualCircuitType
+ fieldsets = (
+ FieldSet('color', 'description'),
+ )
+ nullable_fields = ('color', 'description')
+
+
+class VirtualCircuitBulkEditForm(NetBoxModelBulkEditForm):
+ provider_network = DynamicModelChoiceField(
+ label=_('Provider network'),
+ queryset=ProviderNetwork.objects.all(),
+ required=False
+ )
+ provider_account = DynamicModelChoiceField(
+ label=_('Provider account'),
+ queryset=ProviderAccount.objects.all(),
+ required=False
+ )
+ type = DynamicModelChoiceField(
+ label=_('Type'),
+ queryset=VirtualCircuitType.objects.all(),
+ required=False
+ )
+ status = forms.ChoiceField(
+ label=_('Status'),
+ choices=add_blank_choice(CircuitStatusChoices),
+ required=False,
+ initial=''
+ )
+ tenant = DynamicModelChoiceField(
+ label=_('Tenant'),
+ queryset=Tenant.objects.all(),
+ required=False
+ )
+ description = forms.CharField(
+ label=_('Description'),
+ max_length=100,
+ required=False
+ )
+ comments = CommentField()
+
+ model = VirtualCircuit
+ fieldsets = (
+ FieldSet('provider_network', 'provider_account', 'status', 'description', name=_('Virtual circuit')),
+ FieldSet('tenant', name=_('Tenancy')),
+ )
+ nullable_fields = (
+ 'provider_account', 'tenant', 'description', 'comments',
+ )
+
+
+class VirtualCircuitTerminationBulkEditForm(NetBoxModelBulkEditForm):
+ role = forms.ChoiceField(
+ label=_('Role'),
+ choices=add_blank_choice(VirtualCircuitTerminationRoleChoices),
+ required=False,
+ initial=''
+ )
+ description = forms.CharField(
+ label=_('Description'),
+ max_length=200,
+ required=False
+ )
+
+ model = VirtualCircuitTermination
+ fieldsets = (
+ FieldSet('role', 'description'),
+ )
+ nullable_fields = ('description',)
diff --git a/netbox/circuits/forms/bulk_import.py b/netbox/circuits/forms/bulk_import.py
index dc334ae88..43700d16b 100644
--- a/netbox/circuits/forms/bulk_import.py
+++ b/netbox/circuits/forms/bulk_import.py
@@ -1,12 +1,15 @@
from django import forms
+from django.contrib.contenttypes.models import ContentType
from django.utils.translation import gettext_lazy as _
from circuits.choices import *
+from circuits.constants import *
from circuits.models import *
-from dcim.models import Site
+from dcim.models import Interface
+from netbox.choices import DistanceUnitChoices
from netbox.forms import NetBoxModelImportForm
from tenancy.models import Tenant
-from utilities.forms.fields import CSVChoiceField, CSVModelChoiceField, SlugField
+from utilities.forms.fields import CSVChoiceField, CSVContentTypeField, CSVModelChoiceField, SlugField
__all__ = (
'CircuitImportForm',
@@ -18,6 +21,10 @@ __all__ = (
'ProviderImportForm',
'ProviderAccountImportForm',
'ProviderNetworkImportForm',
+ 'VirtualCircuitImportForm',
+ 'VirtualCircuitTerminationImportForm',
+ 'VirtualCircuitTerminationImportRelatedForm',
+ 'VirtualCircuitTypeImportForm',
)
@@ -94,6 +101,12 @@ class CircuitImportForm(NetBoxModelImportForm):
choices=CircuitStatusChoices,
help_text=_('Operational status')
)
+ distance_unit = CSVChoiceField(
+ label=_('Distance unit'),
+ choices=DistanceUnitChoices,
+ required=False,
+ help_text=_('Distance unit')
+ )
tenant = CSVModelChoiceField(
label=_('Tenant'),
queryset=Tenant.objects.all(),
@@ -106,7 +119,7 @@ class CircuitImportForm(NetBoxModelImportForm):
model = Circuit
fields = [
'cid', 'provider', 'provider_account', 'type', 'status', 'tenant', 'install_date', 'termination_date',
- 'commit_rate', 'description', 'comments', 'tags'
+ 'commit_rate', 'distance', 'distance_unit', 'description', 'comments', 'tags'
]
@@ -120,17 +133,10 @@ class BaseCircuitTerminationImportForm(forms.ModelForm):
label=_('Termination'),
choices=CircuitTerminationSideChoices,
)
- site = CSVModelChoiceField(
- label=_('Site'),
- queryset=Site.objects.all(),
- to_field_name='name',
- required=False
- )
- provider_network = CSVModelChoiceField(
- label=_('Provider network'),
- queryset=ProviderNetwork.objects.all(),
- to_field_name='name',
- required=False
+ termination_type = CSVContentTypeField(
+ queryset=ContentType.objects.filter(model__in=CIRCUIT_TERMINATION_TERMINATION_TYPES),
+ required=False,
+ label=_('Termination type (app & model)')
)
@@ -138,9 +144,12 @@ class CircuitTerminationImportRelatedForm(BaseCircuitTerminationImportForm):
class Meta:
model = CircuitTermination
fields = [
- 'circuit', 'term_side', 'site', 'provider_network', 'port_speed', 'upstream_speed', 'xconnect_id',
+ 'circuit', 'term_side', 'termination_type', 'termination_id', 'port_speed', 'upstream_speed', 'xconnect_id',
'pp_info', 'description'
]
+ labels = {
+ 'termination_id': _('Termination ID'),
+ }
class CircuitTerminationImportForm(NetBoxModelImportForm, BaseCircuitTerminationImportForm):
@@ -148,9 +157,12 @@ class CircuitTerminationImportForm(NetBoxModelImportForm, BaseCircuitTermination
class Meta:
model = CircuitTermination
fields = [
- 'circuit', 'term_side', 'site', 'provider_network', 'port_speed', 'upstream_speed', 'xconnect_id',
+ 'circuit', 'term_side', 'termination_type', 'termination_id', 'port_speed', 'upstream_speed', 'xconnect_id',
'pp_info', 'description', 'tags'
]
+ labels = {
+ 'termination_id': _('Termination ID'),
+ }
class CircuitGroupImportForm(NetBoxModelImportForm):
@@ -168,7 +180,101 @@ class CircuitGroupImportForm(NetBoxModelImportForm):
class CircuitGroupAssignmentImportForm(NetBoxModelImportForm):
+ member_type = CSVContentTypeField(
+ queryset=ContentType.objects.filter(CIRCUIT_GROUP_ASSIGNMENT_MEMBER_MODELS),
+ label=_('Circuit type (app & model)')
+ )
+ priority = CSVChoiceField(
+ label=_('Priority'),
+ choices=CircuitPriorityChoices,
+ required=False
+ )
class Meta:
model = CircuitGroupAssignment
- fields = ('circuit', 'group', 'priority')
+ fields = ('member_type', 'member_id', 'group', 'priority')
+
+
+class VirtualCircuitTypeImportForm(NetBoxModelImportForm):
+ slug = SlugField()
+
+ class Meta:
+ model = VirtualCircuitType
+ fields = ('name', 'slug', 'color', 'description', 'tags')
+
+
+class VirtualCircuitImportForm(NetBoxModelImportForm):
+ provider_network = CSVModelChoiceField(
+ label=_('Provider network'),
+ queryset=ProviderNetwork.objects.all(),
+ to_field_name='name',
+ help_text=_('The network to which this virtual circuit belongs')
+ )
+ provider_account = CSVModelChoiceField(
+ label=_('Provider account'),
+ queryset=ProviderAccount.objects.all(),
+ to_field_name='account',
+ help_text=_('Assigned provider account (if any)'),
+ required=False
+ )
+ type = CSVModelChoiceField(
+ label=_('Type'),
+ queryset=VirtualCircuitType.objects.all(),
+ to_field_name='name',
+ help_text=_('Type of virtual circuit')
+ )
+ status = CSVChoiceField(
+ label=_('Status'),
+ choices=CircuitStatusChoices,
+ help_text=_('Operational status')
+ )
+ tenant = CSVModelChoiceField(
+ label=_('Tenant'),
+ queryset=Tenant.objects.all(),
+ required=False,
+ to_field_name='name',
+ help_text=_('Assigned tenant')
+ )
+
+ class Meta:
+ model = VirtualCircuit
+ fields = [
+ 'cid', 'provider_network', 'provider_account', 'type', 'status', 'tenant', 'description', 'comments',
+ 'tags',
+ ]
+
+
+class BaseVirtualCircuitTerminationImportForm(forms.ModelForm):
+ virtual_circuit = CSVModelChoiceField(
+ label=_('Virtual circuit'),
+ queryset=VirtualCircuit.objects.all(),
+ to_field_name='cid',
+ )
+ role = CSVChoiceField(
+ label=_('Role'),
+ choices=VirtualCircuitTerminationRoleChoices,
+ help_text=_('Operational role')
+ )
+ interface = CSVModelChoiceField(
+ label=_('Interface'),
+ queryset=Interface.objects.all(),
+ to_field_name='pk',
+ )
+
+
+class VirtualCircuitTerminationImportRelatedForm(BaseVirtualCircuitTerminationImportForm):
+
+ class Meta:
+ model = VirtualCircuitTermination
+ fields = [
+ 'virtual_circuit', 'role', 'interface', 'description',
+ ]
+
+
+class VirtualCircuitTerminationImportForm(NetBoxModelImportForm, BaseVirtualCircuitTerminationImportForm):
+
+ class Meta:
+ model = VirtualCircuitTermination
+ fields = [
+ 'virtual_circuit', 'role', 'interface', 'description', 'tags',
+ ]
diff --git a/netbox/circuits/forms/filtersets.py b/netbox/circuits/forms/filtersets.py
index a658dd641..aefc62655 100644
--- a/netbox/circuits/forms/filtersets.py
+++ b/netbox/circuits/forms/filtersets.py
@@ -1,12 +1,17 @@
from django import forms
from django.utils.translation import gettext as _
-from circuits.choices import CircuitCommitRateChoices, CircuitPriorityChoices, CircuitStatusChoices, CircuitTerminationSideChoices
+from circuits.choices import (
+ CircuitCommitRateChoices, CircuitPriorityChoices, CircuitStatusChoices, CircuitTerminationSideChoices,
+ VirtualCircuitTerminationRoleChoices,
+)
from circuits.models import *
-from dcim.models import Region, Site, SiteGroup
+from dcim.models import Location, Region, Site, SiteGroup
from ipam.models import ASN
+from netbox.choices import DistanceUnitChoices
from netbox.forms import NetBoxModelFilterSetForm
from tenancy.forms import TenancyFilterForm, ContactModelFilterForm
+from utilities.forms import add_blank_choice
from utilities.forms.fields import ColorField, DynamicModelMultipleChoiceField, TagFilterField
from utilities.forms.rendering import FieldSet
from utilities.forms.widgets import DatePicker, NumberWithOptions
@@ -20,6 +25,9 @@ __all__ = (
'ProviderFilterForm',
'ProviderAccountFilterForm',
'ProviderNetworkFilterForm',
+ 'VirtualCircuitFilterForm',
+ 'VirtualCircuitTerminationFilterForm',
+ 'VirtualCircuitTypeFilterForm',
)
@@ -114,7 +122,10 @@ class CircuitFilterForm(TenancyFilterForm, ContactModelFilterForm, NetBoxModelFi
fieldsets = (
FieldSet('q', 'filter_id', 'tag'),
FieldSet('provider_id', 'provider_account_id', 'provider_network_id', name=_('Provider')),
- FieldSet('type_id', 'status', 'install_date', 'termination_date', 'commit_rate', name=_('Attributes')),
+ FieldSet(
+ 'type_id', 'status', 'install_date', 'termination_date', 'commit_rate', 'distance', 'distance_unit',
+ name=_('Attributes')
+ ),
FieldSet('region_id', 'site_group_id', 'site_id', name=_('Location')),
FieldSet('tenant_group_id', 'tenant_id', name=_('Tenant')),
FieldSet('contact', 'contact_role', 'contact_group', name=_('Contacts')),
@@ -188,6 +199,15 @@ class CircuitFilterForm(TenancyFilterForm, ContactModelFilterForm, NetBoxModelFi
options=CircuitCommitRateChoices
)
)
+ distance = forms.DecimalField(
+ label=_('Distance'),
+ required=False,
+ )
+ distance_unit = forms.ChoiceField(
+ label=_('Distance unit'),
+ choices=add_blank_choice(DistanceUnitChoices),
+ required=False
+ )
tag = TagFilterField(model)
@@ -196,18 +216,29 @@ class CircuitTerminationFilterForm(NetBoxModelFilterSetForm):
fieldsets = (
FieldSet('q', 'filter_id', 'tag'),
FieldSet('circuit_id', 'term_side', name=_('Circuit')),
- FieldSet('provider_id', 'provider_network_id', name=_('Provider')),
- FieldSet('region_id', 'site_group_id', 'site_id', name=_('Location')),
+ FieldSet('provider_id', name=_('Provider')),
+ FieldSet('region_id', 'site_group_id', 'site_id', 'location_id', name=_('Termination')),
+ )
+ region_id = DynamicModelMultipleChoiceField(
+ queryset=Region.objects.all(),
+ required=False,
+ label=_('Region')
+ )
+ site_group_id = DynamicModelMultipleChoiceField(
+ queryset=SiteGroup.objects.all(),
+ required=False,
+ label=_('Site group')
)
site_id = DynamicModelMultipleChoiceField(
queryset=Site.objects.all(),
required=False,
- query_params={
- 'region_id': '$region_id',
- 'site_group_id': '$site_group_id',
- },
label=_('Site')
)
+ location_id = DynamicModelMultipleChoiceField(
+ queryset=Location.objects.all(),
+ required=False,
+ label=_('Location')
+ )
circuit_id = DynamicModelMultipleChoiceField(
queryset=Circuit.objects.all(),
required=False,
@@ -247,14 +278,14 @@ class CircuitGroupAssignmentFilterForm(NetBoxModelFilterSetForm):
model = CircuitGroupAssignment
fieldsets = (
FieldSet('q', 'filter_id', 'tag'),
- FieldSet('provider_id', 'circuit_id', 'group_id', 'priority', name=_('Assignment')),
+ FieldSet('provider_id', 'member_id', 'group_id', 'priority', name=_('Assignment')),
)
provider_id = DynamicModelMultipleChoiceField(
queryset=Provider.objects.all(),
required=False,
label=_('Provider')
)
- circuit_id = DynamicModelMultipleChoiceField(
+ member_id = DynamicModelMultipleChoiceField(
queryset=Circuit.objects.all(),
required=False,
label=_('Circuit')
@@ -270,3 +301,93 @@ class CircuitGroupAssignmentFilterForm(NetBoxModelFilterSetForm):
required=False
)
tag = TagFilterField(model)
+
+
+class VirtualCircuitTypeFilterForm(NetBoxModelFilterSetForm):
+ model = VirtualCircuitType
+ fieldsets = (
+ FieldSet('q', 'filter_id', 'tag'),
+ FieldSet('color', name=_('Attributes')),
+ )
+ tag = TagFilterField(model)
+
+ color = ColorField(
+ label=_('Color'),
+ required=False
+ )
+
+
+class VirtualCircuitFilterForm(TenancyFilterForm, ContactModelFilterForm, NetBoxModelFilterSetForm):
+ model = VirtualCircuit
+ fieldsets = (
+ FieldSet('q', 'filter_id', 'tag'),
+ FieldSet('provider_id', 'provider_account_id', 'provider_network_id', name=_('Provider')),
+ FieldSet('type', 'status', name=_('Attributes')),
+ FieldSet('tenant_group_id', 'tenant_id', name=_('Tenant')),
+ )
+ selector_fields = ('filter_id', 'q', 'provider_id', 'provider_network_id')
+ provider_id = DynamicModelMultipleChoiceField(
+ queryset=Provider.objects.all(),
+ required=False,
+ label=_('Provider')
+ )
+ provider_account_id = DynamicModelMultipleChoiceField(
+ queryset=ProviderAccount.objects.all(),
+ required=False,
+ query_params={
+ 'provider_id': '$provider_id'
+ },
+ label=_('Provider account')
+ )
+ provider_network_id = DynamicModelMultipleChoiceField(
+ queryset=ProviderNetwork.objects.all(),
+ required=False,
+ query_params={
+ 'provider_id': '$provider_id'
+ },
+ label=_('Provider network')
+ )
+ type_id = DynamicModelMultipleChoiceField(
+ queryset=VirtualCircuitType.objects.all(),
+ required=False,
+ label=_('Type')
+ )
+ status = forms.MultipleChoiceField(
+ label=_('Status'),
+ choices=CircuitStatusChoices,
+ required=False
+ )
+ tag = TagFilterField(model)
+
+
+class VirtualCircuitTerminationFilterForm(NetBoxModelFilterSetForm):
+ model = VirtualCircuitTermination
+ fieldsets = (
+ FieldSet('q', 'filter_id', 'tag'),
+ FieldSet('virtual_circuit_id', 'role', name=_('Virtual circuit')),
+ FieldSet('provider_id', 'provider_account_id', 'provider_network_id', name=_('Provider')),
+ )
+ virtual_circuit_id = DynamicModelMultipleChoiceField(
+ queryset=VirtualCircuit.objects.all(),
+ required=False,
+ label=_('Virtual circuit')
+ )
+ role = forms.MultipleChoiceField(
+ label=_('Role'),
+ choices=VirtualCircuitTerminationRoleChoices,
+ required=False
+ )
+ provider_network_id = DynamicModelMultipleChoiceField(
+ queryset=ProviderNetwork.objects.all(),
+ required=False,
+ query_params={
+ 'provider_id': '$provider_id'
+ },
+ label=_('Provider network')
+ )
+ provider_id = DynamicModelMultipleChoiceField(
+ queryset=Provider.objects.all(),
+ required=False,
+ label=_('Provider')
+ )
+ tag = TagFilterField(model)
diff --git a/netbox/circuits/forms/model_forms.py b/netbox/circuits/forms/model_forms.py
index 9a54fdccb..6f8ab783d 100644
--- a/netbox/circuits/forms/model_forms.py
+++ b/netbox/circuits/forms/model_forms.py
@@ -1,14 +1,24 @@
+from django import forms
+from django.contrib.contenttypes.models import ContentType
+from django.core.exceptions import ObjectDoesNotExist
from django.utils.translation import gettext_lazy as _
-from circuits.choices import CircuitCommitRateChoices, CircuitTerminationPortSpeedChoices
+from circuits.choices import (
+ CircuitCommitRateChoices, CircuitTerminationPortSpeedChoices, VirtualCircuitTerminationRoleChoices,
+)
+from circuits.constants import *
from circuits.models import *
-from dcim.models import Site
+from dcim.models import Interface, Site
from ipam.models import ASN
from netbox.forms import NetBoxModelForm
from tenancy.forms import TenancyForm
-from utilities.forms.fields import CommentField, DynamicModelChoiceField, DynamicModelMultipleChoiceField, SlugField
-from utilities.forms.rendering import FieldSet, TabbedGroups
-from utilities.forms.widgets import DatePicker, NumberWithOptions
+from utilities.forms import get_field_value
+from utilities.forms.fields import (
+ CommentField, ContentTypeChoiceField, DynamicModelChoiceField, DynamicModelMultipleChoiceField, SlugField,
+)
+from utilities.forms.rendering import FieldSet, InlineFields
+from utilities.forms.widgets import DatePicker, HTMXSelect, NumberWithOptions
+from utilities.templatetags.builtins.filters import bettertitle
__all__ = (
'CircuitForm',
@@ -19,6 +29,9 @@ __all__ = (
'ProviderForm',
'ProviderAccountForm',
'ProviderNetworkForm',
+ 'VirtualCircuitForm',
+ 'VirtualCircuitTerminationForm',
+ 'VirtualCircuitTypeForm',
)
@@ -45,7 +58,9 @@ class ProviderForm(NetBoxModelForm):
class ProviderAccountForm(NetBoxModelForm):
provider = DynamicModelChoiceField(
label=_('Provider'),
- queryset=Provider.objects.all()
+ queryset=Provider.objects.all(),
+ selector=True,
+ quick_add=True
)
comments = CommentField()
@@ -59,7 +74,9 @@ class ProviderAccountForm(NetBoxModelForm):
class ProviderNetworkForm(NetBoxModelForm):
provider = DynamicModelChoiceField(
label=_('Provider'),
- queryset=Provider.objects.all()
+ queryset=Provider.objects.all(),
+ selector=True,
+ quick_add=True
)
comments = CommentField()
@@ -92,7 +109,8 @@ class CircuitForm(TenancyForm, NetBoxModelForm):
provider = DynamicModelChoiceField(
label=_('Provider'),
queryset=Provider.objects.all(),
- selector=True
+ selector=True,
+ quick_add=True
)
provider_account = DynamicModelChoiceField(
label=_('Provider account'),
@@ -103,12 +121,23 @@ class CircuitForm(TenancyForm, NetBoxModelForm):
}
)
type = DynamicModelChoiceField(
- queryset=CircuitType.objects.all()
+ queryset=CircuitType.objects.all(),
+ quick_add=True
)
comments = CommentField()
fieldsets = (
- FieldSet('provider', 'provider_account', 'cid', 'type', 'status', 'description', 'tags', name=_('Circuit')),
+ FieldSet(
+ 'provider',
+ 'provider_account',
+ 'cid',
+ 'type',
+ 'status',
+ InlineFields('distance', 'distance_unit', label=_('Distance')),
+ 'description',
+ 'tags',
+ name=_('Circuit')
+ ),
FieldSet('install_date', 'termination_date', 'commit_rate', name=_('Service Parameters')),
FieldSet('tenant_group', 'tenant', name=_('Tenancy')),
)
@@ -117,7 +146,7 @@ class CircuitForm(TenancyForm, NetBoxModelForm):
model = Circuit
fields = [
'cid', 'type', 'provider', 'provider_account', 'status', 'install_date', 'termination_date', 'commit_rate',
- 'description', 'tenant_group', 'tenant', 'comments', 'tags',
+ 'distance', 'distance_unit', 'description', 'tenant_group', 'tenant', 'comments', 'tags',
]
widgets = {
'install_date': DatePicker(),
@@ -134,26 +163,24 @@ class CircuitTerminationForm(NetBoxModelForm):
queryset=Circuit.objects.all(),
selector=True
)
- site = DynamicModelChoiceField(
- label=_('Site'),
- queryset=Site.objects.all(),
+ termination_type = ContentTypeChoiceField(
+ queryset=ContentType.objects.filter(model__in=CIRCUIT_TERMINATION_TERMINATION_TYPES),
+ widget=HTMXSelect(),
required=False,
- selector=True
+ label=_('Termination type')
)
- provider_network = DynamicModelChoiceField(
- label=_('Provider network'),
- queryset=ProviderNetwork.objects.all(),
+ termination = DynamicModelChoiceField(
+ label=_('Termination'),
+ queryset=Site.objects.none(), # Initial queryset
required=False,
+ disabled=True,
selector=True
)
fieldsets = (
FieldSet(
'circuit', 'term_side', 'description', 'tags',
- TabbedGroups(
- FieldSet('site', name=_('Site')),
- FieldSet('provider_network', name=_('Provider Network')),
- ),
+ 'termination_type', 'termination',
'mark_connected', name=_('Circuit Termination')
),
FieldSet('port_speed', 'upstream_speed', 'xconnect_id', 'pp_info', name=_('Termination Details')),
@@ -162,7 +189,7 @@ class CircuitTerminationForm(NetBoxModelForm):
class Meta:
model = CircuitTermination
fields = [
- 'circuit', 'term_side', 'site', 'provider_network', 'mark_connected', 'port_speed', 'upstream_speed',
+ 'circuit', 'term_side', 'termination_type', 'mark_connected', 'port_speed', 'upstream_speed',
'xconnect_id', 'pp_info', 'description', 'tags',
]
widgets = {
@@ -174,6 +201,36 @@ class CircuitTerminationForm(NetBoxModelForm):
),
}
+ def __init__(self, *args, **kwargs):
+ instance = kwargs.get('instance')
+ initial = kwargs.get('initial', {})
+
+ if instance is not None and instance.termination:
+ initial['termination'] = instance.termination
+ kwargs['initial'] = initial
+
+ super().__init__(*args, **kwargs)
+
+ if termination_type_id := get_field_value(self, 'termination_type'):
+ try:
+ termination_type = ContentType.objects.get(pk=termination_type_id)
+ model = termination_type.model_class()
+ self.fields['termination'].queryset = model.objects.all()
+ self.fields['termination'].widget.attrs['selector'] = model._meta.label_lower
+ self.fields['termination'].disabled = False
+ self.fields['termination'].label = _(bettertitle(model._meta.verbose_name))
+ except ObjectDoesNotExist:
+ pass
+
+ if self.instance and termination_type_id != self.instance.termination_type_id:
+ self.initial['termination'] = None
+
+ def clean(self):
+ super().clean()
+
+ # Assign the selected termination (if any)
+ self.instance.termination = self.cleaned_data.get('termination')
+
class CircuitGroupForm(TenancyForm, NetBoxModelForm):
slug = SlugField()
@@ -195,14 +252,137 @@ class CircuitGroupAssignmentForm(NetBoxModelForm):
label=_('Group'),
queryset=CircuitGroup.objects.all(),
)
- circuit = DynamicModelChoiceField(
+ member_type = ContentTypeChoiceField(
+ queryset=ContentType.objects.filter(CIRCUIT_GROUP_ASSIGNMENT_MEMBER_MODELS),
+ widget=HTMXSelect(),
+ required=False,
+ label=_('Circuit type')
+ )
+ member = DynamicModelChoiceField(
label=_('Circuit'),
- queryset=Circuit.objects.all(),
+ queryset=Circuit.objects.none(), # Initial queryset
+ required=False,
+ disabled=True,
selector=True
)
+ fieldsets = (
+ FieldSet('group', 'member_type', 'member', 'priority', 'tags', name=_('Group Assignment')),
+ )
+
class Meta:
model = CircuitGroupAssignment
fields = [
- 'group', 'circuit', 'priority', 'tags',
+ 'group', 'member_type', 'priority', 'tags',
+ ]
+
+ def __init__(self, *args, **kwargs):
+ instance = kwargs.get('instance')
+ initial = kwargs.get('initial', {})
+
+ if instance is not None and instance.member:
+ initial['member'] = instance.member
+ kwargs['initial'] = initial
+
+ super().__init__(*args, **kwargs)
+
+ if member_type_id := get_field_value(self, 'member_type'):
+ try:
+ model = ContentType.objects.get(pk=member_type_id).model_class()
+ self.fields['member'].queryset = model.objects.all()
+ self.fields['member'].widget.attrs['selector'] = model._meta.label_lower
+ self.fields['member'].disabled = False
+ self.fields['member'].label = _(bettertitle(model._meta.verbose_name))
+ except ObjectDoesNotExist:
+ pass
+
+ if self.instance.pk and member_type_id != self.instance.member_type_id:
+ self.initial['member'] = None
+
+ def clean(self):
+ super().clean()
+
+ # Assign the selected circuit (if any)
+ self.instance.member = self.cleaned_data.get('member')
+
+
+class VirtualCircuitTypeForm(NetBoxModelForm):
+ slug = SlugField()
+
+ fieldsets = (
+ FieldSet('name', 'slug', 'color', 'description', 'tags'),
+ )
+
+ class Meta:
+ model = VirtualCircuitType
+ fields = [
+ 'name', 'slug', 'color', 'description', 'tags',
+ ]
+
+
+class VirtualCircuitForm(TenancyForm, NetBoxModelForm):
+ provider_network = DynamicModelChoiceField(
+ label=_('Provider network'),
+ queryset=ProviderNetwork.objects.all(),
+ selector=True
+ )
+ provider_account = DynamicModelChoiceField(
+ label=_('Provider account'),
+ queryset=ProviderAccount.objects.all(),
+ required=False
+ )
+ type = DynamicModelChoiceField(
+ queryset=VirtualCircuitType.objects.all(),
+ quick_add=True
+ )
+ comments = CommentField()
+
+ fieldsets = (
+ FieldSet(
+ 'provider_network', 'provider_account', 'cid', 'type', 'status', 'description', 'tags',
+ name=_('Virtual circuit'),
+ ),
+ FieldSet('tenant_group', 'tenant', name=_('Tenancy')),
+ )
+
+ class Meta:
+ model = VirtualCircuit
+ fields = [
+ 'cid', 'provider_network', 'provider_account', 'type', 'status', 'description', 'tenant_group', 'tenant',
+ 'comments', 'tags',
+ ]
+
+
+class VirtualCircuitTerminationForm(NetBoxModelForm):
+ virtual_circuit = DynamicModelChoiceField(
+ label=_('Virtual circuit'),
+ queryset=VirtualCircuit.objects.all(),
+ selector=True
+ )
+ role = forms.ChoiceField(
+ choices=VirtualCircuitTerminationRoleChoices,
+ widget=HTMXSelect(),
+ label=_('Role')
+ )
+ interface = DynamicModelChoiceField(
+ label=_('Interface'),
+ queryset=Interface.objects.all(),
+ selector=True,
+ query_params={
+ 'kind': 'virtual',
+ 'virtual_circuit_termination_id': 'null',
+ },
+ context={
+ 'parent': 'device',
+ }
+ )
+
+ fieldsets = (
+ FieldSet('virtual_circuit', 'role', 'interface', 'description', 'tags'),
+ )
+
+ class Meta:
+ model = VirtualCircuitTermination
+ fields = [
+ 'virtual_circuit', 'role', 'interface', 'description', 'tags',
]
diff --git a/netbox/circuits/graphql/filters.py b/netbox/circuits/graphql/filters.py
index b8398b2b9..7d066f428 100644
--- a/netbox/circuits/graphql/filters.py
+++ b/netbox/circuits/graphql/filters.py
@@ -4,14 +4,17 @@ from circuits import filtersets, models
from netbox.graphql.filter_mixins import autotype_decorator, BaseFilterMixin
__all__ = (
- 'CircuitTerminationFilter',
'CircuitFilter',
'CircuitGroupAssignmentFilter',
'CircuitGroupFilter',
+ 'CircuitTerminationFilter',
'CircuitTypeFilter',
'ProviderFilter',
'ProviderAccountFilter',
'ProviderNetworkFilter',
+ 'VirtualCircuitFilter',
+ 'VirtualCircuitTerminationFilter',
+ 'VirtualCircuitTypeFilter',
)
@@ -61,3 +64,21 @@ class ProviderAccountFilter(BaseFilterMixin):
@autotype_decorator(filtersets.ProviderNetworkFilterSet)
class ProviderNetworkFilter(BaseFilterMixin):
pass
+
+
+@strawberry_django.filter(models.VirtualCircuitType, lookups=True)
+@autotype_decorator(filtersets.VirtualCircuitTypeFilterSet)
+class VirtualCircuitTypeFilter(BaseFilterMixin):
+ pass
+
+
+@strawberry_django.filter(models.VirtualCircuit, lookups=True)
+@autotype_decorator(filtersets.VirtualCircuitFilterSet)
+class VirtualCircuitFilter(BaseFilterMixin):
+ pass
+
+
+@strawberry_django.filter(models.VirtualCircuitTermination, lookups=True)
+@autotype_decorator(filtersets.VirtualCircuitTerminationFilterSet)
+class VirtualCircuitTerminationFilter(BaseFilterMixin):
+ pass
diff --git a/netbox/circuits/graphql/schema.py b/netbox/circuits/graphql/schema.py
index ac23421ce..63bd7bba6 100644
--- a/netbox/circuits/graphql/schema.py
+++ b/netbox/circuits/graphql/schema.py
@@ -31,3 +31,12 @@ class CircuitsQuery:
provider_network: ProviderNetworkType = strawberry_django.field()
provider_network_list: List[ProviderNetworkType] = strawberry_django.field()
+
+ virtual_circuit: VirtualCircuitType = strawberry_django.field()
+ virtual_circuit_list: List[VirtualCircuitType] = strawberry_django.field()
+
+ virtual_circuit_termination: VirtualCircuitTerminationType = strawberry_django.field()
+ virtual_circuit_termination_list: List[VirtualCircuitTerminationType] = strawberry_django.field()
+
+ virtual_circuit_type: VirtualCircuitTypeType = strawberry_django.field()
+ virtual_circuit_type_list: List[VirtualCircuitTypeType] = strawberry_django.field()
diff --git a/netbox/circuits/graphql/types.py b/netbox/circuits/graphql/types.py
index 45f0d065d..564b5ed6f 100644
--- a/netbox/circuits/graphql/types.py
+++ b/netbox/circuits/graphql/types.py
@@ -1,4 +1,4 @@
-from typing import Annotated, List
+from typing import Annotated, List, Union
import strawberry
import strawberry_django
@@ -19,6 +19,9 @@ __all__ = (
'ProviderType',
'ProviderAccountType',
'ProviderNetworkType',
+ 'VirtualCircuitTerminationType',
+ 'VirtualCircuitType',
+ 'VirtualCircuitTypeType',
)
@@ -59,13 +62,21 @@ class ProviderNetworkType(NetBoxObjectType):
@strawberry_django.type(
models.CircuitTermination,
- fields='__all__',
+ exclude=('termination_type', 'termination_id', '_location', '_region', '_site', '_site_group', '_provider_network'),
filters=CircuitTerminationFilter
)
class CircuitTerminationType(CustomFieldsMixin, TagsMixin, CabledObjectMixin, ObjectType):
circuit: Annotated["CircuitType", strawberry.lazy('circuits.graphql.types')]
- provider_network: Annotated["ProviderNetworkType", strawberry.lazy('circuits.graphql.types')] | None
- site: Annotated["SiteType", strawberry.lazy('dcim.graphql.types')] | None
+
+ @strawberry_django.field
+ def termination(self) -> Annotated[Union[
+ Annotated["LocationType", strawberry.lazy('dcim.graphql.types')],
+ Annotated["RegionType", strawberry.lazy('dcim.graphql.types')],
+ Annotated["SiteGroupType", strawberry.lazy('dcim.graphql.types')],
+ Annotated["SiteType", strawberry.lazy('dcim.graphql.types')],
+ Annotated["ProviderNetworkType", strawberry.lazy('circuits.graphql.types')],
+ ], strawberry.union("CircuitTerminationTerminationType")] | None:
+ return self.termination
@strawberry_django.type(
@@ -106,9 +117,58 @@ class CircuitGroupType(OrganizationalObjectType):
@strawberry_django.type(
models.CircuitGroupAssignment,
- fields='__all__',
+ exclude=('member_type', 'member_id'),
filters=CircuitGroupAssignmentFilter
)
class CircuitGroupAssignmentType(TagsMixin, BaseObjectType):
group: Annotated["CircuitGroupType", strawberry.lazy('circuits.graphql.types')]
- circuit: Annotated["CircuitType", strawberry.lazy('circuits.graphql.types')]
+
+ @strawberry_django.field
+ def member(self) -> Annotated[Union[
+ Annotated["CircuitType", strawberry.lazy('circuits.graphql.types')],
+ Annotated["VirtualCircuitType", strawberry.lazy('circuits.graphql.types')],
+ ], strawberry.union("CircuitGroupAssignmentMemberType")] | None:
+ return self.member
+
+
+@strawberry_django.type(
+ models.VirtualCircuitType,
+ fields='__all__',
+ filters=VirtualCircuitTypeFilter
+)
+class VirtualCircuitTypeType(OrganizationalObjectType):
+ color: str
+
+ virtual_circuits: List[Annotated["VirtualCircuitType", strawberry.lazy('circuits.graphql.types')]]
+
+
+@strawberry_django.type(
+ models.VirtualCircuitTermination,
+ fields='__all__',
+ filters=VirtualCircuitTerminationFilter
+)
+class VirtualCircuitTerminationType(CustomFieldsMixin, TagsMixin, ObjectType):
+ virtual_circuit: Annotated[
+ "VirtualCircuitType",
+ strawberry.lazy('circuits.graphql.types')
+ ] = strawberry_django.field(select_related=["virtual_circuit"])
+ interface: Annotated[
+ "InterfaceType",
+ strawberry.lazy('dcim.graphql.types')
+ ] = strawberry_django.field(select_related=["interface"])
+
+
+@strawberry_django.type(
+ models.VirtualCircuit,
+ fields='__all__',
+ filters=VirtualCircuitFilter
+)
+class VirtualCircuitType(NetBoxObjectType):
+ provider_network: ProviderNetworkType = strawberry_django.field(select_related=["provider_network"])
+ provider_account: ProviderAccountType | None
+ type: Annotated["VirtualCircuitTypeType", strawberry.lazy('circuits.graphql.types')] = strawberry_django.field(
+ select_related=["type"]
+ )
+ tenant: TenantType | None
+
+ terminations: List[VirtualCircuitTerminationType]
diff --git a/netbox/circuits/migrations/0001_squashed.py b/netbox/circuits/migrations/0001_squashed.py
index 96fa3c086..0b3d729e6 100644
--- a/netbox/circuits/migrations/0001_squashed.py
+++ b/netbox/circuits/migrations/0001_squashed.py
@@ -5,11 +5,9 @@ import django.db.models.deletion
class Migration(migrations.Migration):
-
initial = True
- dependencies = [
- ]
+ dependencies = []
replaces = [
('circuits', '0001_initial'),
@@ -98,7 +96,12 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=100)),
('description', models.CharField(blank=True, max_length=200)),
('comments', models.TextField(blank=True)),
- ('provider', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='networks', to='circuits.provider')),
+ (
+ 'provider',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='networks', to='circuits.provider'
+ ),
+ ),
],
options={
'ordering': ('provider', 'name'),
diff --git a/netbox/circuits/migrations/0002_squashed_0029.py b/netbox/circuits/migrations/0002_squashed_0029.py
index 11fcbd6e6..cb61d8feb 100644
--- a/netbox/circuits/migrations/0002_squashed_0029.py
+++ b/netbox/circuits/migrations/0002_squashed_0029.py
@@ -4,7 +4,6 @@ import taggit.managers
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0001_initial'),
('contenttypes', '0002_remove_content_type_name'),
@@ -58,32 +57,56 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='circuittermination',
name='_cable_peer_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='circuittermination',
name='cable',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'
+ ),
),
migrations.AddField(
model_name='circuittermination',
name='circuit',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='terminations', to='circuits.circuit'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='terminations', to='circuits.circuit'
+ ),
),
migrations.AddField(
model_name='circuittermination',
name='provider_network',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='circuit_terminations', to='circuits.providernetwork'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='circuit_terminations',
+ to='circuits.providernetwork',
+ ),
),
migrations.AddField(
model_name='circuittermination',
name='site',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='circuit_terminations', to='dcim.site'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='circuit_terminations',
+ to='dcim.site',
+ ),
),
migrations.AddField(
model_name='circuit',
name='provider',
- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='circuits', to='circuits.provider'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='circuits', to='circuits.provider'
+ ),
),
migrations.AddField(
model_name='circuit',
@@ -93,26 +116,50 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='circuit',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='circuits', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='circuits',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='circuit',
name='termination_a',
- field=models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='circuits.circuittermination'),
+ field=models.ForeignKey(
+ blank=True,
+ editable=False,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='circuits.circuittermination',
+ ),
),
migrations.AddField(
model_name='circuit',
name='termination_z',
- field=models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='circuits.circuittermination'),
+ field=models.ForeignKey(
+ blank=True,
+ editable=False,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='circuits.circuittermination',
+ ),
),
migrations.AddField(
model_name='circuit',
name='type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='circuits', to='circuits.circuittype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='circuits', to='circuits.circuittype'
+ ),
),
migrations.AddConstraint(
model_name='providernetwork',
- constraint=models.UniqueConstraint(fields=('provider', 'name'), name='circuits_providernetwork_provider_name'),
+ constraint=models.UniqueConstraint(
+ fields=('provider', 'name'), name='circuits_providernetwork_provider_name'
+ ),
),
migrations.AlterUniqueTogether(
name='providernetwork',
diff --git a/netbox/circuits/migrations/0003_squashed_0037.py b/netbox/circuits/migrations/0003_squashed_0037.py
index 69c3e1c68..c536e422f 100644
--- a/netbox/circuits/migrations/0003_squashed_0037.py
+++ b/netbox/circuits/migrations/0003_squashed_0037.py
@@ -5,7 +5,6 @@ import utilities.json
class Migration(migrations.Migration):
-
replaces = [
('circuits', '0003_extend_tag_support'),
('circuits', '0004_rename_cable_peer'),
@@ -14,7 +13,7 @@ class Migration(migrations.Migration):
('circuits', '0034_created_datetimefield'),
('circuits', '0035_provider_asns'),
('circuits', '0036_circuit_termination_date_tags_custom_fields'),
- ('circuits', '0037_new_cabling_models')
+ ('circuits', '0037_new_cabling_models'),
]
dependencies = [
diff --git a/netbox/circuits/migrations/0038_squashed_0042.py b/netbox/circuits/migrations/0038_squashed_0042.py
index f57fde3db..fa944b763 100644
--- a/netbox/circuits/migrations/0038_squashed_0042.py
+++ b/netbox/circuits/migrations/0038_squashed_0042.py
@@ -6,13 +6,12 @@ import utilities.json
class Migration(migrations.Migration):
-
replaces = [
('circuits', '0038_cabling_cleanup'),
('circuits', '0039_unique_constraints'),
('circuits', '0040_provider_remove_deprecated_fields'),
('circuits', '0041_standardize_description_comments'),
- ('circuits', '0042_provideraccount')
+ ('circuits', '0042_provideraccount'),
]
dependencies = [
@@ -51,11 +50,15 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='circuittermination',
- constraint=models.UniqueConstraint(fields=('circuit', 'term_side'), name='circuits_circuittermination_unique_circuit_term_side'),
+ constraint=models.UniqueConstraint(
+ fields=('circuit', 'term_side'), name='circuits_circuittermination_unique_circuit_term_side'
+ ),
),
migrations.AddConstraint(
model_name='providernetwork',
- constraint=models.UniqueConstraint(fields=('provider', 'name'), name='circuits_providernetwork_unique_provider_name'),
+ constraint=models.UniqueConstraint(
+ fields=('provider', 'name'), name='circuits_providernetwork_unique_provider_name'
+ ),
),
migrations.RemoveField(
model_name='provider',
@@ -84,12 +87,20 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('description', models.CharField(blank=True, max_length=200)),
('comments', models.TextField(blank=True)),
('account', models.CharField(max_length=100)),
('name', models.CharField(blank=True, max_length=100)),
- ('provider', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='accounts', to='circuits.provider')),
+ (
+ 'provider',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='accounts', to='circuits.provider'
+ ),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
options={
@@ -98,11 +109,17 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='provideraccount',
- constraint=models.UniqueConstraint(condition=models.Q(('name', ''), _negated=True), fields=('provider', 'name'), name='circuits_provideraccount_unique_provider_name'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('name', ''), _negated=True),
+ fields=('provider', 'name'),
+ name='circuits_provideraccount_unique_provider_name',
+ ),
),
migrations.AddConstraint(
model_name='provideraccount',
- constraint=models.UniqueConstraint(fields=('provider', 'account'), name='circuits_provideraccount_unique_provider_account'),
+ constraint=models.UniqueConstraint(
+ fields=('provider', 'account'), name='circuits_provideraccount_unique_provider_account'
+ ),
),
migrations.RemoveField(
model_name='provider',
@@ -111,7 +128,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='circuit',
name='provider_account',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='circuits', to='circuits.provideraccount'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='circuits',
+ to='circuits.provideraccount',
+ ),
preserve_default=False,
),
migrations.AlterModelOptions(
@@ -120,6 +143,8 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='circuit',
- constraint=models.UniqueConstraint(fields=('provider_account', 'cid'), name='circuits_circuit_unique_provideraccount_cid'),
+ constraint=models.UniqueConstraint(
+ fields=('provider_account', 'cid'), name='circuits_circuit_unique_provideraccount_cid'
+ ),
),
]
diff --git a/netbox/circuits/migrations/0044_circuit_groups.py b/netbox/circuits/migrations/0044_circuit_groups.py
index 98c3b8f3d..08f6bc158 100644
--- a/netbox/circuits/migrations/0044_circuit_groups.py
+++ b/netbox/circuits/migrations/0044_circuit_groups.py
@@ -5,7 +5,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('circuits', '0043_circuittype_color'),
('extras', '0119_notifications'),
diff --git a/netbox/circuits/migrations/0045_circuit_distance.py b/netbox/circuits/migrations/0045_circuit_distance.py
new file mode 100644
index 000000000..9e512e7ee
--- /dev/null
+++ b/netbox/circuits/migrations/0045_circuit_distance.py
@@ -0,0 +1,27 @@
+# Generated by Django 5.0.9 on 2024-09-26 22:14
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('circuits', '0044_circuit_groups'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='circuit',
+ name='_abs_distance',
+ field=models.DecimalField(blank=True, decimal_places=4, max_digits=10, null=True),
+ ),
+ migrations.AddField(
+ model_name='circuit',
+ name='distance',
+ field=models.DecimalField(blank=True, decimal_places=2, max_digits=8, null=True),
+ ),
+ migrations.AddField(
+ model_name='circuit',
+ name='distance_unit',
+ field=models.CharField(blank=True, max_length=50),
+ ),
+ ]
diff --git a/netbox/circuits/migrations/0046_charfield_null_choices.py b/netbox/circuits/migrations/0046_charfield_null_choices.py
new file mode 100644
index 000000000..2a8bcde90
--- /dev/null
+++ b/netbox/circuits/migrations/0046_charfield_null_choices.py
@@ -0,0 +1,39 @@
+from django.db import migrations, models
+
+
+def set_null_values(apps, schema_editor):
+ """
+ Replace empty strings with null values.
+ """
+ Circuit = apps.get_model('circuits', 'Circuit')
+ CircuitGroupAssignment = apps.get_model('circuits', 'CircuitGroupAssignment')
+ CircuitTermination = apps.get_model('circuits', 'CircuitTermination')
+
+ Circuit.objects.filter(distance_unit='').update(distance_unit=None)
+ CircuitGroupAssignment.objects.filter(priority='').update(priority=None)
+ CircuitTermination.objects.filter(cable_end='').update(cable_end=None)
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('circuits', '0045_circuit_distance'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='circuit',
+ name='distance_unit',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='circuitgroupassignment',
+ name='priority',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='circuittermination',
+ name='cable_end',
+ field=models.CharField(blank=True, max_length=1, null=True),
+ ),
+ migrations.RunPython(code=set_null_values, reverse_code=migrations.RunPython.noop),
+ ]
diff --git a/netbox/circuits/migrations/0047_circuittermination__termination.py b/netbox/circuits/migrations/0047_circuittermination__termination.py
new file mode 100644
index 000000000..f78e17ec3
--- /dev/null
+++ b/netbox/circuits/migrations/0047_circuittermination__termination.py
@@ -0,0 +1,53 @@
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+def copy_site_assignments(apps, schema_editor):
+ """
+ Copy site ForeignKey values to the Termination GFK.
+ """
+ ContentType = apps.get_model('contenttypes', 'ContentType')
+ CircuitTermination = apps.get_model('circuits', 'CircuitTermination')
+ Site = apps.get_model('dcim', 'Site')
+
+ CircuitTermination.objects.filter(site__isnull=False).update(
+ termination_type=ContentType.objects.get_for_model(Site), termination_id=models.F('site_id')
+ )
+
+ ProviderNetwork = apps.get_model('circuits', 'ProviderNetwork')
+ CircuitTermination.objects.filter(provider_network__isnull=False).update(
+ termination_type=ContentType.objects.get_for_model(ProviderNetwork),
+ termination_id=models.F('provider_network_id'),
+ )
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('circuits', '0046_charfield_null_choices'),
+ ('contenttypes', '0002_remove_content_type_name'),
+ ('dcim', '0193_poweroutlet_color'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='circuittermination',
+ name='termination_id',
+ field=models.PositiveBigIntegerField(blank=True, null=True),
+ ),
+ migrations.AddField(
+ model_name='circuittermination',
+ name='termination_type',
+ field=models.ForeignKey(
+ blank=True,
+ limit_choices_to=models.Q(
+ ('model__in', ('region', 'sitegroup', 'site', 'location', 'providernetwork'))
+ ),
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ # Copy over existing site assignments
+ migrations.RunPython(code=copy_site_assignments, reverse_code=migrations.RunPython.noop),
+ ]
diff --git a/netbox/circuits/migrations/0048_circuitterminations_cached_relations.py b/netbox/circuits/migrations/0048_circuitterminations_cached_relations.py
new file mode 100644
index 000000000..9be254d54
--- /dev/null
+++ b/netbox/circuits/migrations/0048_circuitterminations_cached_relations.py
@@ -0,0 +1,83 @@
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+def populate_denormalized_fields(apps, schema_editor):
+ """
+ Copy site ForeignKey values to the Termination GFK.
+ """
+ CircuitTermination = apps.get_model('circuits', 'CircuitTermination')
+
+ terminations = CircuitTermination.objects.filter(site__isnull=False).prefetch_related('site')
+ for termination in terminations:
+ termination._region_id = termination.site.region_id
+ termination._site_group_id = termination.site.group_id
+ termination._site_id = termination.site_id
+ # Note: Location cannot be set prior to migration
+
+ CircuitTermination.objects.bulk_update(terminations, ['_region', '_site_group', '_site'], batch_size=100)
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('circuits', '0047_circuittermination__termination'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='circuittermination',
+ name='_location',
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='circuit_terminations',
+ to='dcim.location',
+ ),
+ ),
+ migrations.AddField(
+ model_name='circuittermination',
+ name='_region',
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='circuit_terminations',
+ to='dcim.region',
+ ),
+ ),
+ migrations.AddField(
+ model_name='circuittermination',
+ name='_site',
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='circuit_terminations',
+ to='dcim.site',
+ ),
+ ),
+ migrations.AddField(
+ model_name='circuittermination',
+ name='_site_group',
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='circuit_terminations',
+ to='dcim.sitegroup',
+ ),
+ ),
+ # Populate denormalized FK values
+ migrations.RunPython(code=populate_denormalized_fields, reverse_code=migrations.RunPython.noop),
+ # Delete the site ForeignKey
+ migrations.RemoveField(
+ model_name='circuittermination',
+ name='site',
+ ),
+ migrations.RenameField(
+ model_name='circuittermination',
+ old_name='provider_network',
+ new_name='_provider_network',
+ ),
+ ]
diff --git a/netbox/circuits/migrations/0049_natural_ordering.py b/netbox/circuits/migrations/0049_natural_ordering.py
new file mode 100644
index 000000000..556d6ec7c
--- /dev/null
+++ b/netbox/circuits/migrations/0049_natural_ordering.py
@@ -0,0 +1,21 @@
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('circuits', '0048_circuitterminations_cached_relations'),
+ ('dcim', '0197_natural_sort_collation'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='provider',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=100, unique=True),
+ ),
+ migrations.AlterField(
+ model_name='providernetwork',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=100),
+ ),
+ ]
diff --git a/netbox/circuits/migrations/0050_virtual_circuits.py b/netbox/circuits/migrations/0050_virtual_circuits.py
new file mode 100644
index 000000000..9987b95ac
--- /dev/null
+++ b/netbox/circuits/migrations/0050_virtual_circuits.py
@@ -0,0 +1,147 @@
+import django.db.models.deletion
+import taggit.managers
+from django.db import migrations, models
+
+import utilities.fields
+import utilities.json
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('circuits', '0049_natural_ordering'),
+ ('dcim', '0196_qinq_svlan'),
+ ('extras', '0122_charfield_null_choices'),
+ ('tenancy', '0016_charfield_null_choices'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='VirtualCircuitType',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
+ ('created', models.DateTimeField(auto_now_add=True, null=True)),
+ ('last_updated', models.DateTimeField(auto_now=True, null=True)),
+ ('custom_field_data', models.JSONField(
+ blank=True,
+ default=dict,
+ encoder=utilities.json.CustomFieldJSONEncoder
+ )),
+ ('name', models.CharField(max_length=100, unique=True)),
+ ('slug', models.SlugField(max_length=100, unique=True)),
+ ('description', models.CharField(blank=True, max_length=200)),
+ ('color', utilities.fields.ColorField(blank=True, max_length=6)),
+ ('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
+ ],
+ options={
+ 'verbose_name': 'virtual circuit type',
+ 'verbose_name_plural': 'virtual circuit types',
+ 'ordering': ('name',),
+ },
+ ),
+ migrations.CreateModel(
+ name='VirtualCircuit',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
+ ('created', models.DateTimeField(auto_now_add=True, null=True)),
+ ('last_updated', models.DateTimeField(auto_now=True, null=True)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
+ ('description', models.CharField(blank=True, max_length=200)),
+ ('comments', models.TextField(blank=True)),
+ ('cid', models.CharField(max_length=100)),
+ ('status', models.CharField(default='active', max_length=50)),
+ (
+ 'provider_account',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='virtual_circuits',
+ to='circuits.provideraccount',
+ ),
+ ),
+ (
+ 'provider_network',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='virtual_circuits',
+ to='circuits.providernetwork',
+ ),
+ ),
+ ('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
+ (
+ 'type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='virtual_circuits',
+ to='circuits.virtualcircuittype'
+ )
+ ),
+ (
+ 'tenant',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='virtual_circuits',
+ to='tenancy.tenant',
+ ),
+ ),
+ ],
+ options={
+ 'verbose_name': 'circuit',
+ 'verbose_name_plural': 'circuits',
+ 'ordering': ['provider_network', 'provider_account', 'cid'],
+ },
+ ),
+ migrations.CreateModel(
+ name='VirtualCircuitTermination',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
+ ('created', models.DateTimeField(auto_now_add=True, null=True)),
+ ('last_updated', models.DateTimeField(auto_now=True, null=True)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
+ ('role', models.CharField(default='peer', max_length=50)),
+ ('description', models.CharField(blank=True, max_length=200)),
+ (
+ 'interface',
+ models.OneToOneField(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='virtual_circuit_termination',
+ to='dcim.interface',
+ ),
+ ),
+ ('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
+ (
+ 'virtual_circuit',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='terminations',
+ to='circuits.virtualcircuit',
+ ),
+ ),
+ ],
+ options={
+ 'verbose_name': 'virtual circuit termination',
+ 'verbose_name_plural': 'virtual circuit terminations',
+ 'ordering': ['virtual_circuit', 'role', 'pk'],
+ },
+ ),
+ migrations.AddConstraint(
+ model_name='virtualcircuit',
+ constraint=models.UniqueConstraint(
+ fields=('provider_network', 'cid'), name='circuits_virtualcircuit_unique_provider_network_cid'
+ ),
+ ),
+ migrations.AddConstraint(
+ model_name='virtualcircuit',
+ constraint=models.UniqueConstraint(
+ fields=('provider_account', 'cid'), name='circuits_virtualcircuit_unique_provideraccount_cid'
+ ),
+ ),
+ ]
diff --git a/netbox/circuits/migrations/0051_virtualcircuit_group_assignment.py b/netbox/circuits/migrations/0051_virtualcircuit_group_assignment.py
new file mode 100644
index 000000000..f8c0fd653
--- /dev/null
+++ b/netbox/circuits/migrations/0051_virtualcircuit_group_assignment.py
@@ -0,0 +1,85 @@
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+def set_member_type(apps, schema_editor):
+ """
+ Set member_type on any existing CircuitGroupAssignments to the content type for Circuit.
+ """
+ ContentType = apps.get_model('contenttypes', 'ContentType')
+ Circuit = apps.get_model('circuits', 'Circuit')
+ CircuitGroupAssignment = apps.get_model('circuits', 'CircuitGroupAssignment')
+
+ CircuitGroupAssignment.objects.update(
+ member_type=ContentType.objects.get_for_model(Circuit)
+ )
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('circuits', '0050_virtual_circuits'),
+ ('contenttypes', '0002_remove_content_type_name'),
+ ('extras', '0122_charfield_null_choices'),
+ ]
+
+ operations = [
+ migrations.RemoveConstraint(
+ model_name='circuitgroupassignment',
+ name='circuits_circuitgroupassignment_unique_circuit_group',
+ ),
+ migrations.AlterModelOptions(
+ name='circuitgroupassignment',
+ options={'ordering': ('group', 'member_type', 'member_id', 'priority', 'pk')},
+ ),
+
+ # Change member_id to an integer field for the member GFK
+ migrations.RenameField(
+ model_name='circuitgroupassignment',
+ old_name='circuit',
+ new_name='member_id',
+ ),
+ migrations.AlterField(
+ model_name='circuitgroupassignment',
+ name='member_id',
+ field=models.PositiveBigIntegerField(),
+ ),
+
+ # Add content type pointer for the member GFK
+ migrations.AddField(
+ model_name='circuitgroupassignment',
+ name='member_type',
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT,
+ limit_choices_to=models.Q(('app_label', 'circuits'), ('model__in', ['circuit', 'virtualcircuit'])),
+ related_name='+',
+ to='contenttypes.contenttype',
+ blank=True,
+ null=True
+ ),
+ preserve_default=False,
+ ),
+
+ # Populate member_type for any existing assignments
+ migrations.RunPython(code=set_member_type, reverse_code=migrations.RunPython.noop),
+
+ # Disallow null values for member_type
+ migrations.AlterField(
+ model_name='circuitgroupassignment',
+ name='member_type',
+ field=models.ForeignKey(
+ limit_choices_to=models.Q(('app_label', 'circuits'), ('model__in', ['circuit', 'virtualcircuit'])),
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype'
+ ),
+ ),
+
+ migrations.AddConstraint(
+ model_name='circuitgroupassignment',
+ constraint=models.UniqueConstraint(
+ fields=('member_type', 'member_id', 'group'),
+ name='circuits_circuitgroupassignment_unique_member_group'
+ ),
+ ),
+ ]
diff --git a/netbox/circuits/models/__init__.py b/netbox/circuits/models/__init__.py
index 7bbaf75d3..77382358b 100644
--- a/netbox/circuits/models/__init__.py
+++ b/netbox/circuits/models/__init__.py
@@ -1,2 +1,3 @@
from .circuits import *
from .providers import *
+from .virtual_circuits import *
diff --git a/netbox/circuits/models/base.py b/netbox/circuits/models/base.py
new file mode 100644
index 000000000..5b2a3c1b8
--- /dev/null
+++ b/netbox/circuits/models/base.py
@@ -0,0 +1,23 @@
+from django.utils.translation import gettext_lazy as _
+
+from netbox.models import OrganizationalModel
+from utilities.fields import ColorField
+
+__all__ = (
+ 'BaseCircuitType',
+)
+
+
+class BaseCircuitType(OrganizationalModel):
+ """
+ Abstract base model to represent a type of physical or virtual circuit.
+ Circuits can be organized by their functional role. For example, a user might wish to define CircuitTypes named
+ "Long Haul," "Metro," or "Out-of-Band".
+ """
+ color = ColorField(
+ verbose_name=_('color'),
+ blank=True
+ )
+
+ class Meta:
+ abstract = True
diff --git a/netbox/circuits/models/circuits.py b/netbox/circuits/models/circuits.py
index 68c938aa9..9c7714153 100644
--- a/netbox/circuits/models/circuits.py
+++ b/netbox/circuits/models/circuits.py
@@ -1,13 +1,19 @@
+from django.apps import apps
+from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation
from django.core.exceptions import ValidationError
from django.db import models
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from circuits.choices import *
+from circuits.constants import *
from dcim.models import CabledObjectModel
from netbox.models import ChangeLoggedModel, OrganizationalModel, PrimaryModel
-from netbox.models.features import ContactsMixin, CustomFieldsMixin, CustomLinksMixin, ExportTemplatesMixin, ImageAttachmentsMixin, TagsMixin
-from utilities.fields import ColorField
+from netbox.models.mixins import DistanceMixin
+from netbox.models.features import (
+ ContactsMixin, CustomFieldsMixin, CustomLinksMixin, ExportTemplatesMixin, ImageAttachmentsMixin, TagsMixin,
+)
+from .base import BaseCircuitType
__all__ = (
'Circuit',
@@ -18,26 +24,18 @@ __all__ = (
)
-class CircuitType(OrganizationalModel):
+class CircuitType(BaseCircuitType):
"""
Circuits can be organized by their functional role. For example, a user might wish to define CircuitTypes named
"Long Haul," "Metro," or "Out-of-Band".
"""
- color = ColorField(
- verbose_name=_('color'),
- blank=True
- )
-
- def get_absolute_url(self):
- return reverse('circuits:circuittype', args=[self.pk])
-
class Meta:
ordering = ('name',)
verbose_name = _('circuit type')
verbose_name_plural = _('circuit types')
-class Circuit(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
+class Circuit(ContactsMixin, ImageAttachmentsMixin, DistanceMixin, PrimaryModel):
"""
A communications circuit connects two points. Each Circuit belongs to a Provider; Providers may have multiple
circuits. Each circuit is also assigned a CircuitType and a Site, and may optionally be assigned to a particular
@@ -61,7 +59,7 @@ class Circuit(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
null=True
)
type = models.ForeignKey(
- to='CircuitType',
+ to='circuits.CircuitType',
on_delete=models.PROTECT,
related_name='circuits'
)
@@ -113,6 +111,13 @@ class Circuit(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
null=True
)
+ group_assignments = GenericRelation(
+ to='circuits.CircuitGroupAssignment',
+ content_type_field='member_type',
+ object_id_field='member_id',
+ related_query_name='circuit'
+ )
+
clone_fields = (
'provider', 'provider_account', 'type', 'status', 'tenant', 'install_date', 'termination_date', 'commit_rate',
'description',
@@ -140,9 +145,6 @@ class Circuit(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
def __str__(self):
return self.cid
- def get_absolute_url(self):
- return reverse('circuits:circuit', args=[self.pk])
-
def get_status_color(self):
return CircuitStatusChoices.colors.get(self.status)
@@ -173,21 +175,26 @@ class CircuitGroup(OrganizationalModel):
def __str__(self):
return self.name
- def get_absolute_url(self):
- return reverse('circuits:circuitgroup', args=[self.pk])
-
class CircuitGroupAssignment(CustomFieldsMixin, ExportTemplatesMixin, TagsMixin, ChangeLoggedModel):
"""
- Assignment of a Circuit to a CircuitGroup with an optional priority.
+ Assignment of a physical or virtual circuit to a CircuitGroup with an optional priority.
"""
- circuit = models.ForeignKey(
- Circuit,
- on_delete=models.CASCADE,
- related_name='assignments'
+ member_type = models.ForeignKey(
+ to='contenttypes.ContentType',
+ limit_choices_to=CIRCUIT_GROUP_ASSIGNMENT_MEMBER_MODELS,
+ on_delete=models.PROTECT,
+ related_name='+'
+ )
+ member_id = models.PositiveBigIntegerField(
+ verbose_name=_('member ID')
+ )
+ member = GenericForeignKey(
+ ct_field='member_type',
+ fk_field='member_id'
)
group = models.ForeignKey(
- CircuitGroup,
+ to='circuits.CircuitGroup',
on_delete=models.CASCADE,
related_name='assignments'
)
@@ -195,19 +202,19 @@ class CircuitGroupAssignment(CustomFieldsMixin, ExportTemplatesMixin, TagsMixin,
verbose_name=_('priority'),
max_length=50,
choices=CircuitPriorityChoices,
- blank=True
+ blank=True,
+ null=True
)
prerequisite_models = (
- 'circuits.Circuit',
'circuits.CircuitGroup',
)
class Meta:
- ordering = ('group', 'circuit', 'priority', 'pk')
+ ordering = ('group', 'member_type', 'member_id', 'priority', 'pk')
constraints = (
models.UniqueConstraint(
- fields=('circuit', 'group'),
- name='%(app_label)s_%(class)s_unique_circuit_group'
+ fields=('member_type', 'member_id', 'group'),
+ name='%(app_label)s_%(class)s_unique_member_group'
),
)
verbose_name = _('Circuit group assignment')
@@ -237,22 +244,24 @@ class CircuitTermination(
term_side = models.CharField(
max_length=1,
choices=CircuitTerminationSideChoices,
- verbose_name=_('termination')
+ verbose_name=_('termination side')
)
- site = models.ForeignKey(
- to='dcim.Site',
+ termination_type = models.ForeignKey(
+ to='contenttypes.ContentType',
on_delete=models.PROTECT,
- related_name='circuit_terminations',
+ limit_choices_to=Q(model__in=CIRCUIT_TERMINATION_TERMINATION_TYPES),
+ related_name='+',
blank=True,
null=True
)
- provider_network = models.ForeignKey(
- to='circuits.ProviderNetwork',
- on_delete=models.PROTECT,
- related_name='circuit_terminations',
+ termination_id = models.PositiveBigIntegerField(
blank=True,
null=True
)
+ termination = GenericForeignKey(
+ ct_field='termination_type',
+ fk_field='termination_id'
+ )
port_speed = models.PositiveIntegerField(
verbose_name=_('port speed (Kbps)'),
blank=True,
@@ -283,6 +292,43 @@ class CircuitTermination(
blank=True
)
+ # Cached associations to enable efficient filtering
+ _provider_network = models.ForeignKey(
+ to='circuits.ProviderNetwork',
+ on_delete=models.PROTECT,
+ related_name='circuit_terminations',
+ blank=True,
+ null=True
+ )
+ _location = models.ForeignKey(
+ to='dcim.Location',
+ on_delete=models.CASCADE,
+ related_name='circuit_terminations',
+ blank=True,
+ null=True
+ )
+ _site = models.ForeignKey(
+ to='dcim.Site',
+ on_delete=models.CASCADE,
+ related_name='circuit_terminations',
+ blank=True,
+ null=True
+ )
+ _region = models.ForeignKey(
+ to='dcim.Region',
+ on_delete=models.CASCADE,
+ related_name='circuit_terminations',
+ blank=True,
+ null=True
+ )
+ _site_group = models.ForeignKey(
+ to='dcim.SiteGroup',
+ on_delete=models.CASCADE,
+ related_name='circuit_terminations',
+ blank=True,
+ null=True
+ )
+
class Meta:
ordering = ['circuit', 'term_side']
constraints = (
@@ -304,10 +350,35 @@ class CircuitTermination(
super().clean()
# Must define either site *or* provider network
- if self.site is None and self.provider_network is None:
- raise ValidationError(_("A circuit termination must attach to either a site or a provider network."))
- if self.site and self.provider_network:
- raise ValidationError(_("A circuit termination cannot attach to both a site and a provider network."))
+ if self.termination is None:
+ raise ValidationError(_("A circuit termination must attach to termination."))
+
+ def save(self, *args, **kwargs):
+ # Cache objects associated with the terminating object (for filtering)
+ self.cache_related_objects()
+
+ super().save(*args, **kwargs)
+
+ def cache_related_objects(self):
+ self._provider_network = self._region = self._site_group = self._site = self._location = None
+ if self.termination_type:
+ termination_type = self.termination_type.model_class()
+ if termination_type == apps.get_model('dcim', 'region'):
+ self._region = self.termination
+ elif termination_type == apps.get_model('dcim', 'sitegroup'):
+ self._site_group = self.termination
+ elif termination_type == apps.get_model('dcim', 'site'):
+ self._region = self.termination.region
+ self._site_group = self.termination.group
+ self._site = self.termination
+ elif termination_type == apps.get_model('dcim', 'location'):
+ self._region = self.termination.site.region
+ self._site_group = self.termination.site.group
+ self._site = self.termination.site
+ self._location = self.termination
+ elif termination_type == apps.get_model('circuits', 'providernetwork'):
+ self._provider_network = self.termination
+ cache_related_objects.alters_data = True
def to_objectchange(self, action):
objectchange = super().to_objectchange(action)
@@ -321,7 +392,7 @@ class CircuitTermination(
def get_peer_termination(self):
peer_side = 'Z' if self.term_side == 'A' else 'A'
try:
- return CircuitTermination.objects.prefetch_related('site').get(
+ return CircuitTermination.objects.prefetch_related('termination').get(
circuit=self.circuit,
term_side=peer_side
)
diff --git a/netbox/circuits/models/providers.py b/netbox/circuits/models/providers.py
index 31c8bccb2..be81caa54 100644
--- a/netbox/circuits/models/providers.py
+++ b/netbox/circuits/models/providers.py
@@ -1,6 +1,5 @@
from django.db import models
from django.db.models import Q
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from netbox.models import PrimaryModel
@@ -22,7 +21,8 @@ class Provider(ContactsMixin, PrimaryModel):
verbose_name=_('name'),
max_length=100,
unique=True,
- help_text=_('Full name of the provider')
+ help_text=_('Full name of the provider'),
+ db_collation="natural_sort"
)
slug = models.SlugField(
verbose_name=_('slug'),
@@ -45,9 +45,6 @@ class Provider(ContactsMixin, PrimaryModel):
def __str__(self):
return self.name
- def get_absolute_url(self):
- return reverse('circuits:provider', args=[self.pk])
-
class ProviderAccount(ContactsMixin, PrimaryModel):
"""
@@ -91,9 +88,6 @@ class ProviderAccount(ContactsMixin, PrimaryModel):
return f'{self.account} ({self.name})'
return f'{self.account}'
- def get_absolute_url(self):
- return reverse('circuits:provideraccount', args=[self.pk])
-
class ProviderNetwork(PrimaryModel):
"""
@@ -102,7 +96,8 @@ class ProviderNetwork(PrimaryModel):
"""
name = models.CharField(
verbose_name=_('name'),
- max_length=100
+ max_length=100,
+ db_collation="natural_sort"
)
provider = models.ForeignKey(
to='circuits.Provider',
@@ -128,6 +123,3 @@ class ProviderNetwork(PrimaryModel):
def __str__(self):
return self.name
-
- def get_absolute_url(self):
- return reverse('circuits:providernetwork', args=[self.pk])
diff --git a/netbox/circuits/models/virtual_circuits.py b/netbox/circuits/models/virtual_circuits.py
new file mode 100644
index 000000000..ff910549d
--- /dev/null
+++ b/netbox/circuits/models/virtual_circuits.py
@@ -0,0 +1,191 @@
+from functools import cached_property
+
+from django.contrib.contenttypes.fields import GenericRelation
+from django.core.exceptions import ValidationError
+from django.db import models
+from django.urls import reverse
+from django.utils.translation import gettext_lazy as _
+
+from circuits.choices import *
+from netbox.models import ChangeLoggedModel, PrimaryModel
+from netbox.models.features import CustomFieldsMixin, CustomLinksMixin, TagsMixin
+from .base import BaseCircuitType
+
+__all__ = (
+ 'VirtualCircuit',
+ 'VirtualCircuitTermination',
+ 'VirtualCircuitType',
+)
+
+
+class VirtualCircuitType(BaseCircuitType):
+ """
+ Like physical circuits, virtual circuits can be organized by their functional role. For example, a user might wish
+ to categorize virtual circuits by their technological nature or by product name.
+ """
+ class Meta:
+ ordering = ('name',)
+ verbose_name = _('virtual circuit type')
+ verbose_name_plural = _('virtual circuit types')
+
+
+class VirtualCircuit(PrimaryModel):
+ """
+ A virtual connection between two or more endpoints, delivered across one or more physical circuits.
+ """
+ cid = models.CharField(
+ max_length=100,
+ verbose_name=_('circuit ID'),
+ help_text=_('Unique circuit ID')
+ )
+ provider_network = models.ForeignKey(
+ to='circuits.ProviderNetwork',
+ on_delete=models.PROTECT,
+ related_name='virtual_circuits'
+ )
+ provider_account = models.ForeignKey(
+ to='circuits.ProviderAccount',
+ on_delete=models.PROTECT,
+ related_name='virtual_circuits',
+ blank=True,
+ null=True
+ )
+ type = models.ForeignKey(
+ to='circuits.VirtualCircuitType',
+ on_delete=models.PROTECT,
+ related_name='virtual_circuits'
+ )
+ status = models.CharField(
+ verbose_name=_('status'),
+ max_length=50,
+ choices=CircuitStatusChoices,
+ default=CircuitStatusChoices.STATUS_ACTIVE
+ )
+ tenant = models.ForeignKey(
+ to='tenancy.Tenant',
+ on_delete=models.PROTECT,
+ related_name='virtual_circuits',
+ blank=True,
+ null=True
+ )
+
+ group_assignments = GenericRelation(
+ to='circuits.CircuitGroupAssignment',
+ content_type_field='member_type',
+ object_id_field='member_id',
+ related_query_name='virtual_circuit'
+ )
+
+ clone_fields = (
+ 'provider_network', 'provider_account', 'status', 'tenant', 'description',
+ )
+ prerequisite_models = (
+ 'circuits.ProviderNetwork',
+ 'circuits.VirtualCircuitType',
+ )
+
+ class Meta:
+ ordering = ['provider_network', 'provider_account', 'cid']
+ constraints = (
+ models.UniqueConstraint(
+ fields=('provider_network', 'cid'),
+ name='%(app_label)s_%(class)s_unique_provider_network_cid'
+ ),
+ models.UniqueConstraint(
+ fields=('provider_account', 'cid'),
+ name='%(app_label)s_%(class)s_unique_provideraccount_cid'
+ ),
+ )
+ verbose_name = _('virtual circuit')
+ verbose_name_plural = _('virtual circuits')
+
+ def __str__(self):
+ return self.cid
+
+ def get_status_color(self):
+ return CircuitStatusChoices.colors.get(self.status)
+
+ def clean(self):
+ super().clean()
+
+ if self.provider_account and self.provider_network.provider != self.provider_account.provider:
+ raise ValidationError({
+ 'provider_account': "The assigned account must belong to the provider of the assigned network."
+ })
+
+ @property
+ def provider(self):
+ return self.provider_network.provider
+
+
+class VirtualCircuitTermination(
+ CustomFieldsMixin,
+ CustomLinksMixin,
+ TagsMixin,
+ ChangeLoggedModel
+):
+ virtual_circuit = models.ForeignKey(
+ to='circuits.VirtualCircuit',
+ on_delete=models.CASCADE,
+ related_name='terminations'
+ )
+ role = models.CharField(
+ verbose_name=_('role'),
+ max_length=50,
+ choices=VirtualCircuitTerminationRoleChoices,
+ default=VirtualCircuitTerminationRoleChoices.ROLE_PEER
+ )
+ interface = models.OneToOneField(
+ to='dcim.Interface',
+ on_delete=models.CASCADE,
+ related_name='virtual_circuit_termination'
+ )
+ description = models.CharField(
+ verbose_name=_('description'),
+ max_length=200,
+ blank=True
+ )
+
+ class Meta:
+ ordering = ['virtual_circuit', 'role', 'pk']
+ verbose_name = _('virtual circuit termination')
+ verbose_name_plural = _('virtual circuit terminations')
+
+ def __str__(self):
+ return f'{self.virtual_circuit}: {self.get_role_display()} termination'
+
+ def get_absolute_url(self):
+ return reverse('circuits:virtualcircuittermination', args=[self.pk])
+
+ def get_role_color(self):
+ return VirtualCircuitTerminationRoleChoices.colors.get(self.role)
+
+ def to_objectchange(self, action):
+ objectchange = super().to_objectchange(action)
+ objectchange.related_object = self.virtual_circuit
+ return objectchange
+
+ @property
+ def parent_object(self):
+ return self.virtual_circuit
+
+ @cached_property
+ def peer_terminations(self):
+ if self.role == VirtualCircuitTerminationRoleChoices.ROLE_PEER:
+ return self.virtual_circuit.terminations.exclude(pk=self.pk).filter(
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER
+ )
+ if self.role == VirtualCircuitTerminationRoleChoices.ROLE_HUB:
+ return self.virtual_circuit.terminations.filter(
+ role=VirtualCircuitTerminationRoleChoices.ROLE_SPOKE
+ )
+ if self.role == VirtualCircuitTerminationRoleChoices.ROLE_SPOKE:
+ return self.virtual_circuit.terminations.filter(
+ role=VirtualCircuitTerminationRoleChoices.ROLE_HUB
+ )
+
+ def clean(self):
+ super().clean()
+
+ if self.interface and not self.interface.is_virtual:
+ raise ValidationError("Virtual circuits may be terminated only to virtual interfaces.")
diff --git a/netbox/circuits/search.py b/netbox/circuits/search.py
index 7a5711f03..486656933 100644
--- a/netbox/circuits/search.py
+++ b/netbox/circuits/search.py
@@ -34,7 +34,7 @@ class CircuitTerminationIndex(SearchIndex):
('port_speed', 2000),
('upstream_speed', 2000),
)
- display_attrs = ('circuit', 'site', 'provider_network', 'description')
+ display_attrs = ('circuit', 'termination', 'description')
@register_search
@@ -80,3 +80,34 @@ class ProviderNetworkIndex(SearchIndex):
('comments', 5000),
)
display_attrs = ('provider', 'service_id', 'description')
+
+
+@register_search
+class VirtualCircuitIndex(SearchIndex):
+ model = models.VirtualCircuit
+ fields = (
+ ('cid', 100),
+ ('description', 500),
+ ('comments', 5000),
+ )
+ display_attrs = ('provider', 'provider_network', 'provider_account', 'status', 'tenant', 'description')
+
+
+@register_search
+class VirtualCircuitTerminationIndex(SearchIndex):
+ model = models.VirtualCircuitTermination
+ fields = (
+ ('description', 500),
+ )
+ display_attrs = ('virtual_circuit', 'role', 'description')
+
+
+@register_search
+class VirtualCircuitTypeIndex(SearchIndex):
+ model = models.VirtualCircuitType
+ fields = (
+ ('name', 100),
+ ('slug', 110),
+ ('description', 500),
+ )
+ display_attrs = ('description',)
diff --git a/netbox/circuits/tables/__init__.py b/netbox/circuits/tables/__init__.py
index b61c13cae..a436eb88d 100644
--- a/netbox/circuits/tables/__init__.py
+++ b/netbox/circuits/tables/__init__.py
@@ -1,3 +1,4 @@
from .circuits import *
from .columns import *
from .providers import *
+from .virtual_circuits import *
diff --git a/netbox/circuits/tables/circuits.py b/netbox/circuits/tables/circuits.py
index eefe2bd22..9e59ec019 100644
--- a/netbox/circuits/tables/circuits.py
+++ b/netbox/circuits/tables/circuits.py
@@ -18,10 +18,8 @@ __all__ = (
CIRCUITTERMINATION_LINK = """
-{% if value.site %}
-
{{ value.site }}
-{% elif value.provider_network %}
-
{{ value.provider_network }}
+{% if value.termination %}
+
{{ value.termination }}
{% endif %}
"""
@@ -44,9 +42,10 @@ class CircuitTypeTable(NetBoxTable):
class Meta(NetBoxTable.Meta):
model = CircuitType
fields = (
- 'pk', 'id', 'name', 'circuit_count', 'color', 'description', 'slug', 'tags', 'created', 'last_updated', 'actions',
+ 'pk', 'id', 'name', 'circuit_count', 'color', 'description', 'slug', 'tags', 'created', 'last_updated',
+ 'actions',
)
- default_columns = ('pk', 'name', 'circuit_count', 'description', 'slug')
+ default_columns = ('pk', 'name', 'circuit_count', 'color', 'description')
class CircuitTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
@@ -62,13 +61,17 @@ class CircuitTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
linkify=True,
verbose_name=_('Account')
)
+ type = tables.Column(
+ verbose_name=_('Type'),
+ linkify=True
+ )
status = columns.ChoiceFieldColumn()
- termination_a = tables.TemplateColumn(
+ termination_a = columns.TemplateColumn(
template_code=CIRCUITTERMINATION_LINK,
orderable=False,
verbose_name=_('Side A')
)
- termination_z = tables.TemplateColumn(
+ termination_z = columns.TemplateColumn(
template_code=CIRCUITTERMINATION_LINK,
orderable=False,
verbose_name=_('Side Z')
@@ -76,6 +79,7 @@ class CircuitTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
commit_rate = CommitRateColumn(
verbose_name=_('Commit Rate')
)
+ distance = columns.DistanceColumn()
comments = columns.MarkdownColumn(
verbose_name=_('Comments')
)
@@ -109,22 +113,54 @@ class CircuitTerminationTable(NetBoxTable):
linkify=True,
accessor='circuit.provider'
)
+ term_side = tables.Column(
+ verbose_name=_('Side')
+ )
+ termination_type = columns.ContentTypeColumn(
+ verbose_name=_('Termination Type'),
+ )
+ termination = tables.Column(
+ verbose_name=_('Termination Point'),
+ linkify=True
+ )
+
+ # Termination types
site = tables.Column(
verbose_name=_('Site'),
- linkify=True
+ linkify=True,
+ accessor='_site'
+ )
+ site_group = tables.Column(
+ verbose_name=_('Site Group'),
+ linkify=True,
+ accessor='_sitegroup'
+ )
+ region = tables.Column(
+ verbose_name=_('Region'),
+ linkify=True,
+ accessor='_region'
+ )
+ location = tables.Column(
+ verbose_name=_('Location'),
+ linkify=True,
+ accessor='_location'
)
provider_network = tables.Column(
verbose_name=_('Provider Network'),
- linkify=True
+ linkify=True,
+ accessor='_provider_network'
)
class Meta(NetBoxTable.Meta):
model = CircuitTermination
fields = (
- 'pk', 'id', 'circuit', 'provider', 'term_side', 'site', 'provider_network', 'port_speed', 'upstream_speed',
- 'xconnect_id', 'pp_info', 'description', 'created', 'last_updated', 'actions',
+ 'pk', 'id', 'circuit', 'provider', 'term_side', 'termination_type', 'termination', 'site_group', 'region',
+ 'site', 'location', 'provider_network', 'port_speed', 'upstream_speed', 'xconnect_id', 'pp_info',
+ 'description', 'created', 'last_updated', 'actions',
+ )
+ default_columns = (
+ 'pk', 'id', 'circuit', 'provider', 'term_side', 'termination_type', 'termination', 'description',
)
- default_columns = ('pk', 'id', 'circuit', 'provider', 'term_side', 'description')
class CircuitGroupTable(NetBoxTable):
@@ -156,11 +192,14 @@ class CircuitGroupAssignmentTable(NetBoxTable):
linkify=True
)
provider = tables.Column(
- accessor='circuit__provider',
+ accessor='member__provider',
verbose_name=_('Provider'),
linkify=True
)
- circuit = tables.Column(
+ member_type = columns.ContentTypeColumn(
+ verbose_name=_('Type')
+ )
+ member = tables.Column(
verbose_name=_('Circuit'),
linkify=True
)
@@ -174,6 +213,7 @@ class CircuitGroupAssignmentTable(NetBoxTable):
class Meta(NetBoxTable.Meta):
model = CircuitGroupAssignment
fields = (
- 'pk', 'id', 'group', 'provider', 'circuit', 'priority', 'created', 'last_updated', 'actions', 'tags',
+ 'pk', 'id', 'group', 'provider', 'member_type', 'member', 'priority', 'created', 'last_updated', 'actions',
+ 'tags',
)
- default_columns = ('pk', 'group', 'provider', 'circuit', 'priority')
+ default_columns = ('pk', 'group', 'provider', 'member_type', 'member', 'priority')
diff --git a/netbox/circuits/tables/virtual_circuits.py b/netbox/circuits/tables/virtual_circuits.py
new file mode 100644
index 000000000..67ac03d59
--- /dev/null
+++ b/netbox/circuits/tables/virtual_circuits.py
@@ -0,0 +1,124 @@
+import django_tables2 as tables
+from django.utils.translation import gettext_lazy as _
+
+from circuits.models import *
+from netbox.tables import NetBoxTable, columns
+from tenancy.tables import ContactsColumnMixin, TenancyColumnsMixin
+
+__all__ = (
+ 'VirtualCircuitTable',
+ 'VirtualCircuitTerminationTable',
+ 'VirtualCircuitTypeTable',
+)
+
+
+class VirtualCircuitTypeTable(NetBoxTable):
+ name = tables.Column(
+ linkify=True,
+ verbose_name=_('Name'),
+ )
+ color = columns.ColorColumn()
+ tags = columns.TagColumn(
+ url_name='circuits:virtualcircuittype_list'
+ )
+ virtual_circuit_count = columns.LinkedCountColumn(
+ viewname='circuits:virtualcircuit_list',
+ url_params={'type_id': 'pk'},
+ verbose_name=_('Circuits')
+ )
+
+ class Meta(NetBoxTable.Meta):
+ model = VirtualCircuitType
+ fields = (
+ 'pk', 'id', 'name', 'virtual_circuit_count', 'color', 'description', 'slug', 'tags', 'created',
+ 'last_updated', 'actions',
+ )
+ default_columns = ('pk', 'name', 'virtual_circuit_count', 'color', 'description')
+
+
+class VirtualCircuitTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
+ cid = tables.Column(
+ linkify=True,
+ verbose_name=_('Circuit ID')
+ )
+ provider = tables.Column(
+ accessor=tables.A('provider_network__provider'),
+ verbose_name=_('Provider'),
+ linkify=True
+ )
+ provider_network = tables.Column(
+ linkify=True,
+ verbose_name=_('Provider network')
+ )
+ provider_account = tables.Column(
+ linkify=True,
+ verbose_name=_('Account')
+ )
+ type = tables.Column(
+ verbose_name=_('Type'),
+ linkify=True
+ )
+ status = columns.ChoiceFieldColumn()
+ termination_count = columns.LinkedCountColumn(
+ viewname='circuits:virtualcircuittermination_list',
+ url_params={'virtual_circuit_id': 'pk'},
+ verbose_name=_('Terminations')
+ )
+ comments = columns.MarkdownColumn(
+ verbose_name=_('Comments')
+ )
+ tags = columns.TagColumn(
+ url_name='circuits:virtualcircuit_list'
+ )
+
+ class Meta(NetBoxTable.Meta):
+ model = VirtualCircuit
+ fields = (
+ 'pk', 'id', 'cid', 'provider', 'provider_account', 'provider_network', 'type', 'status', 'tenant',
+ 'tenant_group', 'description', 'comments', 'tags', 'created', 'last_updated',
+ )
+ default_columns = (
+ 'pk', 'cid', 'provider', 'provider_account', 'provider_network', 'type', 'status', 'tenant',
+ 'termination_count', 'description',
+ )
+
+
+class VirtualCircuitTerminationTable(NetBoxTable):
+ virtual_circuit = tables.Column(
+ verbose_name=_('Virtual circuit'),
+ linkify=True
+ )
+ provider = tables.Column(
+ accessor=tables.A('virtual_circuit__provider_network__provider'),
+ verbose_name=_('Provider'),
+ linkify=True
+ )
+ provider_network = tables.Column(
+ accessor=tables.A('virtual_circuit__provider_network'),
+ linkify=True,
+ verbose_name=_('Provider network')
+ )
+ provider_account = tables.Column(
+ linkify=True,
+ verbose_name=_('Account')
+ )
+ role = columns.ChoiceFieldColumn()
+ device = tables.Column(
+ accessor=tables.A('interface__device'),
+ linkify=True,
+ verbose_name=_('Device')
+ )
+ interface = tables.Column(
+ verbose_name=_('Interface'),
+ linkify=True
+ )
+
+ class Meta(NetBoxTable.Meta):
+ model = VirtualCircuitTermination
+ fields = (
+ 'pk', 'id', 'virtual_circuit', 'provider', 'provider_network', 'provider_account', 'role', 'interfaces',
+ 'description', 'created', 'last_updated', 'actions',
+ )
+ default_columns = (
+ 'pk', 'id', 'virtual_circuit', 'role', 'device', 'interface', 'description',
+ )
diff --git a/netbox/circuits/tests/test_api.py b/netbox/circuits/tests/test_api.py
index 1edcd531b..3b8280236 100644
--- a/netbox/circuits/tests/test_api.py
+++ b/netbox/circuits/tests/test_api.py
@@ -2,7 +2,8 @@ from django.urls import reverse
from circuits.choices import *
from circuits.models import *
-from dcim.models import Site
+from dcim.choices import InterfaceTypeChoices
+from dcim.models import Device, DeviceRole, DeviceType, Interface, Manufacturer, Site
from ipam.models import ASN, RIR
from utilities.testing import APITestCase, APIViewTestCases
@@ -120,9 +121,15 @@ class CircuitTest(APIViewTestCases.APIViewTestCase):
CircuitType.objects.bulk_create(circuit_types)
circuits = (
- Circuit(cid='Circuit 1', provider=providers[0], provider_account=provider_accounts[0], type=circuit_types[0]),
- Circuit(cid='Circuit 2', provider=providers[0], provider_account=provider_accounts[0], type=circuit_types[0]),
- Circuit(cid='Circuit 3', provider=providers[0], provider_account=provider_accounts[0], type=circuit_types[0]),
+ Circuit(
+ cid='Circuit 1', provider=providers[0], provider_account=provider_accounts[0], type=circuit_types[0]
+ ),
+ Circuit(
+ cid='Circuit 2', provider=providers[0], provider_account=provider_accounts[0], type=circuit_types[0]
+ ),
+ Circuit(
+ cid='Circuit 3', provider=providers[0], provider_account=provider_accounts[0], type=circuit_types[0]
+ ),
)
Circuit.objects.bulk_create(circuits)
@@ -181,10 +188,10 @@ class CircuitTerminationTest(APIViewTestCases.APIViewTestCase):
Circuit.objects.bulk_create(circuits)
circuit_terminations = (
- CircuitTermination(circuit=circuits[0], term_side=SIDE_A, site=sites[0]),
- CircuitTermination(circuit=circuits[0], term_side=SIDE_Z, provider_network=provider_networks[0]),
- CircuitTermination(circuit=circuits[1], term_side=SIDE_A, site=sites[1]),
- CircuitTermination(circuit=circuits[1], term_side=SIDE_Z, provider_network=provider_networks[1]),
+ CircuitTermination(circuit=circuits[0], term_side=SIDE_A, termination=sites[0]),
+ CircuitTermination(circuit=circuits[0], term_side=SIDE_Z, termination=provider_networks[0]),
+ CircuitTermination(circuit=circuits[1], term_side=SIDE_A, termination=sites[1]),
+ CircuitTermination(circuit=circuits[1], term_side=SIDE_Z, termination=provider_networks[1]),
)
CircuitTermination.objects.bulk_create(circuit_terminations)
@@ -192,13 +199,15 @@ class CircuitTerminationTest(APIViewTestCases.APIViewTestCase):
{
'circuit': circuits[2].pk,
'term_side': SIDE_A,
- 'site': sites[0].pk,
+ 'termination_type': 'dcim.site',
+ 'termination_id': sites[0].pk,
'port_speed': 200000,
},
{
'circuit': circuits[2].pk,
'term_side': SIDE_Z,
- 'provider_network': provider_networks[0].pk,
+ 'termination_type': 'circuits.providernetwork',
+ 'termination_id': provider_networks[0].pk,
'port_speed': 200000,
},
]
@@ -286,7 +295,7 @@ class ProviderAccountTest(APIViewTestCases.APIViewTestCase):
class CircuitGroupAssignmentTest(APIViewTestCases.APIViewTestCase):
model = CircuitGroupAssignment
- brief_fields = ['circuit', 'display', 'group', 'id', 'priority', 'url']
+ brief_fields = ['display', 'group', 'id', 'member', 'member_id', 'member_type', 'priority', 'url']
bulk_update_data = {
'priority': CircuitPriorityChoices.PRIORITY_INACTIVE,
}
@@ -321,17 +330,17 @@ class CircuitGroupAssignmentTest(APIViewTestCases.APIViewTestCase):
assignments = (
CircuitGroupAssignment(
group=circuit_groups[0],
- circuit=circuits[0],
+ member=circuits[0],
priority=CircuitPriorityChoices.PRIORITY_PRIMARY
),
CircuitGroupAssignment(
group=circuit_groups[1],
- circuit=circuits[1],
+ member=circuits[1],
priority=CircuitPriorityChoices.PRIORITY_SECONDARY
),
CircuitGroupAssignment(
group=circuit_groups[2],
- circuit=circuits[2],
+ member=circuits[2],
priority=CircuitPriorityChoices.PRIORITY_TERTIARY
),
)
@@ -340,17 +349,20 @@ class CircuitGroupAssignmentTest(APIViewTestCases.APIViewTestCase):
cls.create_data = [
{
'group': circuit_groups[3].pk,
- 'circuit': circuits[3].pk,
+ 'member_type': 'circuits.circuit',
+ 'member_id': circuits[3].pk,
'priority': CircuitPriorityChoices.PRIORITY_PRIMARY,
},
{
'group': circuit_groups[4].pk,
- 'circuit': circuits[4].pk,
+ 'member_type': 'circuits.circuit',
+ 'member_id': circuits[4].pk,
'priority': CircuitPriorityChoices.PRIORITY_SECONDARY,
},
{
'group': circuit_groups[5].pk,
- 'circuit': circuits[5].pk,
+ 'member_type': 'circuits.circuit',
+ 'member_id': circuits[5].pk,
'priority': CircuitPriorityChoices.PRIORITY_TERTIARY,
},
]
@@ -395,3 +407,290 @@ class ProviderNetworkTest(APIViewTestCases.APIViewTestCase):
'provider': providers[1].pk,
'description': 'New description',
}
+
+
+class VirtualCircuitTypeTest(APIViewTestCases.APIViewTestCase):
+ model = VirtualCircuitType
+ brief_fields = ['description', 'display', 'id', 'name', 'slug', 'url', 'virtual_circuit_count']
+ create_data = (
+ {
+ 'name': 'Virtual Circuit Type 4',
+ 'slug': 'virtual-circuit-type-4',
+ },
+ {
+ 'name': 'Virtual Circuit Type 5',
+ 'slug': 'virtual-circuit-type-5',
+ },
+ {
+ 'name': 'Virtual Circuit Type 6',
+ 'slug': 'virtual-circuit-type-6',
+ },
+ )
+ bulk_update_data = {
+ 'description': 'New description',
+ }
+
+ @classmethod
+ def setUpTestData(cls):
+
+ virtual_circuit_types = (
+ VirtualCircuitType(name='Virtual Circuit Type 1', slug='virtual-circuit-type-1'),
+ VirtualCircuitType(name='Virtual Circuit Type 2', slug='virtual-circuit-type-2'),
+ VirtualCircuitType(name='Virtual Circuit Type 3', slug='virtual-circuit-type-3'),
+ )
+ VirtualCircuitType.objects.bulk_create(virtual_circuit_types)
+
+
+class VirtualCircuitTest(APIViewTestCases.APIViewTestCase):
+ model = VirtualCircuit
+ brief_fields = ['cid', 'description', 'display', 'id', 'provider_network', 'url']
+ bulk_update_data = {
+ 'status': 'planned',
+ }
+
+ @classmethod
+ def setUpTestData(cls):
+ provider = Provider.objects.create(name='Provider 1', slug='provider-1')
+ provider_network = ProviderNetwork.objects.create(provider=provider, name='Provider Network 1')
+ provider_account = ProviderAccount.objects.create(provider=provider, account='Provider Account 1')
+ virtual_circuit_type = VirtualCircuitType.objects.create(
+ name='Virtual Circuit Type 1',
+ slug='virtual-circuit-type-1'
+ )
+
+ virtual_circuits = (
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ type=virtual_circuit_type,
+ cid='Virtual Circuit 1'
+ ),
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ type=virtual_circuit_type,
+ cid='Virtual Circuit 2'
+ ),
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ type=virtual_circuit_type,
+ cid='Virtual Circuit 3'
+ ),
+ )
+ VirtualCircuit.objects.bulk_create(virtual_circuits)
+
+ cls.create_data = [
+ {
+ 'cid': 'Virtual Circuit 4',
+ 'provider_network': provider_network.pk,
+ 'provider_account': provider_account.pk,
+ 'type': virtual_circuit_type.pk,
+ 'status': CircuitStatusChoices.STATUS_PLANNED,
+ },
+ {
+ 'cid': 'Virtual Circuit 5',
+ 'provider_network': provider_network.pk,
+ 'provider_account': provider_account.pk,
+ 'type': virtual_circuit_type.pk,
+ 'status': CircuitStatusChoices.STATUS_PLANNED,
+ },
+ {
+ 'cid': 'Virtual Circuit 6',
+ 'provider_network': provider_network.pk,
+ 'provider_account': provider_account.pk,
+ 'type': virtual_circuit_type.pk,
+ 'status': CircuitStatusChoices.STATUS_PLANNED,
+ },
+ ]
+
+
+class VirtualCircuitTerminationTest(APIViewTestCases.APIViewTestCase):
+ model = VirtualCircuitTermination
+ brief_fields = ['description', 'display', 'id', 'interface', 'role', 'url', 'virtual_circuit']
+ bulk_update_data = {
+ 'description': 'New description',
+ }
+
+ @classmethod
+ def setUpTestData(cls):
+ manufacturer = Manufacturer.objects.create(name='Manufacturer 1', slug='manufacturer-1')
+ device_type = DeviceType.objects.create(manufacturer=manufacturer, model='Device Type 1')
+ device_role = DeviceRole.objects.create(name='Device Role 1', slug='device-role-1')
+ site = Site.objects.create(name='Site 1', slug='site-1')
+
+ devices = (
+ Device(site=site, name='hub', device_type=device_type, role=device_role),
+ Device(site=site, name='spoke1', device_type=device_type, role=device_role),
+ Device(site=site, name='spoke2', device_type=device_type, role=device_role),
+ Device(site=site, name='spoke3', device_type=device_type, role=device_role),
+ )
+ Device.objects.bulk_create(devices)
+
+ physical_interfaces = (
+ Interface(device=devices[0], name='eth0', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ Interface(device=devices[1], name='eth0', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ Interface(device=devices[2], name='eth0', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ Interface(device=devices[3], name='eth0', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ )
+ Interface.objects.bulk_create(physical_interfaces)
+
+ virtual_interfaces = (
+ # Point-to-point VCs
+ Interface(
+ device=devices[0],
+ name='eth0.1',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[0],
+ name='eth0.2',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[0],
+ name='eth0.3',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[1],
+ name='eth0.1',
+ parent=physical_interfaces[1],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[2],
+ name='eth0.1',
+ parent=physical_interfaces[2],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[3],
+ name='eth0.1',
+ parent=physical_interfaces[3],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+
+ # Hub and spoke VCs
+ Interface(
+ device=devices[0],
+ name='eth0.9',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[1],
+ name='eth0.9',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[2],
+ name='eth0.9',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[3],
+ name='eth0.9',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ )
+ Interface.objects.bulk_create(virtual_interfaces)
+
+ provider = Provider.objects.create(name='Provider 1', slug='provider-1')
+ provider_network = ProviderNetwork.objects.create(provider=provider, name='Provider Network 1')
+ provider_account = ProviderAccount.objects.create(provider=provider, account='Provider Account 1')
+ virtual_circuit_type = VirtualCircuitType.objects.create(
+ name='Virtual Circuit Type 1',
+ slug='virtual-circuit-type-1'
+ )
+
+ virtual_circuits = (
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ cid='Virtual Circuit 1',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ cid='Virtual Circuit 2',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ cid='Virtual Circuit 3',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ cid='Virtual Circuit 4',
+ type=virtual_circuit_type
+ ),
+ )
+ VirtualCircuit.objects.bulk_create(virtual_circuits)
+
+ virtual_circuit_terminations = (
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[0],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[0]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[0],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[3]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[1],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[1]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[1],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[4]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[2],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[2]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[2],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[5]
+ ),
+ )
+ VirtualCircuitTermination.objects.bulk_create(virtual_circuit_terminations)
+
+ cls.create_data = [
+ {
+ 'virtual_circuit': virtual_circuits[3].pk,
+ 'role': VirtualCircuitTerminationRoleChoices.ROLE_HUB,
+ 'interface': virtual_interfaces[6].pk
+ },
+ {
+ 'virtual_circuit': virtual_circuits[3].pk,
+ 'role': VirtualCircuitTerminationRoleChoices.ROLE_SPOKE,
+ 'interface': virtual_interfaces[7].pk
+ },
+ {
+ 'virtual_circuit': virtual_circuits[3].pk,
+ 'role': VirtualCircuitTerminationRoleChoices.ROLE_SPOKE,
+ 'interface': virtual_interfaces[8].pk
+ },
+ {
+ 'virtual_circuit': virtual_circuits[3].pk,
+ 'role': VirtualCircuitTerminationRoleChoices.ROLE_SPOKE,
+ 'interface': virtual_interfaces[9].pk
+ },
+ ]
diff --git a/netbox/circuits/tests/test_filtersets.py b/netbox/circuits/tests/test_filtersets.py
index bb350f0d1..b32abd34e 100644
--- a/netbox/circuits/tests/test_filtersets.py
+++ b/netbox/circuits/tests/test_filtersets.py
@@ -3,8 +3,10 @@ from django.test import TestCase
from circuits.choices import *
from circuits.filtersets import *
from circuits.models import *
-from dcim.models import Cable, Region, Site, SiteGroup
+from dcim.choices import InterfaceTypeChoices
+from dcim.models import Cable, Device, DeviceRole, DeviceType, Interface, Manufacturer, Region, Site, SiteGroup
from ipam.models import ASN, RIR
+from netbox.choices import DistanceUnitChoices
from tenancy.models import Tenant, TenantGroup
from utilities.testing import ChangeLoggedFilterSetTests
@@ -69,10 +71,12 @@ class ProviderTestCase(TestCase, ChangeLoggedFilterSetTests):
)
Circuit.objects.bulk_create(circuits)
- CircuitTermination.objects.bulk_create((
- CircuitTermination(circuit=circuits[0], site=sites[0], term_side='A'),
- CircuitTermination(circuit=circuits[1], site=sites[0], term_side='A'),
- ))
+ circuit_terminations = (
+ CircuitTermination(circuit=circuits[0], termination=sites[0], term_side='A'),
+ CircuitTermination(circuit=circuits[1], termination=sites[0], term_side='A'),
+ )
+ for ct in circuit_terminations:
+ ct.save()
def test_q(self):
params = {'q': 'foobar1'}
@@ -222,24 +226,93 @@ class CircuitTestCase(TestCase, ChangeLoggedFilterSetTests):
ProviderNetwork.objects.bulk_create(provider_networks)
circuits = (
- Circuit(provider=providers[0], provider_account=provider_accounts[0], tenant=tenants[0], type=circuit_types[0], cid='Test Circuit 1', install_date='2020-01-01', termination_date='2021-01-01', commit_rate=1000, status=CircuitStatusChoices.STATUS_ACTIVE, description='foobar1'),
- Circuit(provider=providers[0], provider_account=provider_accounts[0], tenant=tenants[0], type=circuit_types[0], cid='Test Circuit 2', install_date='2020-01-02', termination_date='2021-01-02', commit_rate=2000, status=CircuitStatusChoices.STATUS_ACTIVE, description='foobar2'),
- Circuit(provider=providers[0], provider_account=provider_accounts[1], tenant=tenants[1], type=circuit_types[0], cid='Test Circuit 3', install_date='2020-01-03', termination_date='2021-01-03', commit_rate=3000, status=CircuitStatusChoices.STATUS_PLANNED),
- Circuit(provider=providers[1], provider_account=provider_accounts[1], tenant=tenants[1], type=circuit_types[1], cid='Test Circuit 4', install_date='2020-01-04', termination_date='2021-01-04', commit_rate=4000, status=CircuitStatusChoices.STATUS_PLANNED),
- Circuit(provider=providers[1], provider_account=provider_accounts[2], tenant=tenants[2], type=circuit_types[1], cid='Test Circuit 5', install_date='2020-01-05', termination_date='2021-01-05', commit_rate=5000, status=CircuitStatusChoices.STATUS_OFFLINE),
- Circuit(provider=providers[1], provider_account=provider_accounts[2], tenant=tenants[2], type=circuit_types[1], cid='Test Circuit 6', install_date='2020-01-06', termination_date='2021-01-06', commit_rate=6000, status=CircuitStatusChoices.STATUS_OFFLINE),
+ Circuit(
+ provider=providers[0],
+ provider_account=provider_accounts[0],
+ tenant=tenants[0],
+ type=circuit_types[0],
+ cid='Test Circuit 1',
+ install_date='2020-01-01',
+ termination_date='2021-01-01',
+ commit_rate=1000,
+ status=CircuitStatusChoices.STATUS_ACTIVE,
+ description='foobar1',
+ distance=10,
+ distance_unit=DistanceUnitChoices.UNIT_FOOT,
+ ),
+ Circuit(
+ provider=providers[0],
+ provider_account=provider_accounts[0],
+ tenant=tenants[0],
+ type=circuit_types[0],
+ cid='Test Circuit 2',
+ install_date='2020-01-02',
+ termination_date='2021-01-02',
+ commit_rate=2000,
+ status=CircuitStatusChoices.STATUS_ACTIVE,
+ description='foobar2',
+ distance=20,
+ distance_unit=DistanceUnitChoices.UNIT_METER,
+ ),
+ Circuit(
+ provider=providers[0],
+ provider_account=provider_accounts[1],
+ tenant=tenants[1],
+ type=circuit_types[0],
+ cid='Test Circuit 3',
+ install_date='2020-01-03',
+ termination_date='2021-01-03',
+ commit_rate=3000,
+ status=CircuitStatusChoices.STATUS_PLANNED,
+ distance=30,
+ distance_unit=DistanceUnitChoices.UNIT_METER,
+ ),
+ Circuit(
+ provider=providers[1],
+ provider_account=provider_accounts[1],
+ tenant=tenants[1],
+ type=circuit_types[1],
+ cid='Test Circuit 4',
+ install_date='2020-01-04',
+ termination_date='2021-01-04',
+ commit_rate=4000,
+ status=CircuitStatusChoices.STATUS_PLANNED,
+ ),
+ Circuit(
+ provider=providers[1],
+ provider_account=provider_accounts[2],
+ tenant=tenants[2],
+ type=circuit_types[1],
+ cid='Test Circuit 5',
+ install_date='2020-01-05',
+ termination_date='2021-01-05',
+ commit_rate=5000,
+ status=CircuitStatusChoices.STATUS_OFFLINE,
+ ),
+ Circuit(
+ provider=providers[1],
+ provider_account=provider_accounts[2],
+ tenant=tenants[2],
+ type=circuit_types[1],
+ cid='Test Circuit 6',
+ install_date='2020-01-06',
+ termination_date='2021-01-06',
+ commit_rate=6000,
+ status=CircuitStatusChoices.STATUS_OFFLINE,
+ ),
)
Circuit.objects.bulk_create(circuits)
circuit_terminations = ((
- CircuitTermination(circuit=circuits[0], site=sites[0], term_side='A'),
- CircuitTermination(circuit=circuits[1], site=sites[1], term_side='A'),
- CircuitTermination(circuit=circuits[2], site=sites[2], term_side='A'),
- CircuitTermination(circuit=circuits[3], provider_network=provider_networks[0], term_side='A'),
- CircuitTermination(circuit=circuits[4], provider_network=provider_networks[1], term_side='A'),
- CircuitTermination(circuit=circuits[5], provider_network=provider_networks[2], term_side='A'),
+ CircuitTermination(circuit=circuits[0], termination=sites[0], term_side='A'),
+ CircuitTermination(circuit=circuits[1], termination=sites[1], term_side='A'),
+ CircuitTermination(circuit=circuits[2], termination=sites[2], term_side='A'),
+ CircuitTermination(circuit=circuits[3], termination=provider_networks[0], term_side='A'),
+ CircuitTermination(circuit=circuits[4], termination=provider_networks[1], term_side='A'),
+ CircuitTermination(circuit=circuits[5], termination=provider_networks[2], term_side='A'),
))
- CircuitTermination.objects.bulk_create(circuit_terminations)
+ for ct in circuit_terminations:
+ ct.save()
def test_q(self):
params = {'q': 'foobar1'}
@@ -289,6 +362,14 @@ class CircuitTestCase(TestCase, ChangeLoggedFilterSetTests):
params = {'status': [CircuitStatusChoices.STATUS_ACTIVE, CircuitStatusChoices.STATUS_PLANNED]}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
+ def test_distance(self):
+ params = {'distance': [10, 20]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_distance_unit(self):
+ params = {'distance_unit': DistanceUnitChoices.UNIT_FOOT}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+
def test_description(self):
params = {'description': ['foobar1', 'foobar2']}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
@@ -374,19 +455,66 @@ class CircuitTerminationTestCase(TestCase, ChangeLoggedFilterSetTests):
)
Circuit.objects.bulk_create(circuits)
- circuit_terminations = ((
- CircuitTermination(circuit=circuits[0], site=sites[0], term_side='A', port_speed=1000, upstream_speed=1000, xconnect_id='ABC', description='foobar1'),
- CircuitTermination(circuit=circuits[0], site=sites[1], term_side='Z', port_speed=1000, upstream_speed=1000, xconnect_id='DEF', description='foobar2'),
- CircuitTermination(circuit=circuits[1], site=sites[1], term_side='A', port_speed=2000, upstream_speed=2000, xconnect_id='GHI'),
- CircuitTermination(circuit=circuits[1], site=sites[2], term_side='Z', port_speed=2000, upstream_speed=2000, xconnect_id='JKL'),
- CircuitTermination(circuit=circuits[2], site=sites[2], term_side='A', port_speed=3000, upstream_speed=3000, xconnect_id='MNO'),
- CircuitTermination(circuit=circuits[2], site=sites[0], term_side='Z', port_speed=3000, upstream_speed=3000, xconnect_id='PQR'),
- CircuitTermination(circuit=circuits[3], provider_network=provider_networks[0], term_side='A'),
- CircuitTermination(circuit=circuits[4], provider_network=provider_networks[1], term_side='A'),
- CircuitTermination(circuit=circuits[5], provider_network=provider_networks[2], term_side='A'),
- CircuitTermination(circuit=circuits[6], provider_network=provider_networks[0], term_side='A', mark_connected=True),
- ))
- CircuitTermination.objects.bulk_create(circuit_terminations)
+ circuit_terminations = (
+ CircuitTermination(
+ circuit=circuits[0],
+ termination=sites[0],
+ term_side='A',
+ port_speed=1000,
+ upstream_speed=1000,
+ xconnect_id='ABC',
+ description='foobar1',
+ ),
+ CircuitTermination(
+ circuit=circuits[0],
+ termination=sites[1],
+ term_side='Z',
+ port_speed=1000,
+ upstream_speed=1000,
+ xconnect_id='DEF',
+ description='foobar2',
+ ),
+ CircuitTermination(
+ circuit=circuits[1],
+ termination=sites[1],
+ term_side='A',
+ port_speed=2000,
+ upstream_speed=2000,
+ xconnect_id='GHI',
+ ),
+ CircuitTermination(
+ circuit=circuits[1],
+ termination=sites[2],
+ term_side='Z',
+ port_speed=2000,
+ upstream_speed=2000,
+ xconnect_id='JKL',
+ ),
+ CircuitTermination(
+ circuit=circuits[2],
+ termination=sites[2],
+ term_side='A',
+ port_speed=3000,
+ upstream_speed=3000,
+ xconnect_id='MNO',
+ ),
+ CircuitTermination(
+ circuit=circuits[2],
+ termination=sites[0],
+ term_side='Z',
+ port_speed=3000,
+ upstream_speed=3000,
+ xconnect_id='PQR',
+ ),
+ CircuitTermination(circuit=circuits[3], termination=provider_networks[0], term_side='A'),
+ CircuitTermination(circuit=circuits[4], termination=provider_networks[1], term_side='A'),
+ CircuitTermination(circuit=circuits[5], termination=provider_networks[2], term_side='A'),
+ CircuitTermination(
+ circuit=circuits[6], termination=provider_networks[0], term_side='A', mark_connected=True
+ ),
+ )
+ for ct in circuit_terminations:
+ ct.save()
Cable(a_terminations=[circuit_terminations[0]], b_terminations=[circuit_terminations[1]]).save()
@@ -520,7 +648,6 @@ class CircuitGroupAssignmentTestCase(TestCase, ChangeLoggedFilterSetTests):
CircuitGroup(name='Circuit Group 1', slug='circuit-group-1'),
CircuitGroup(name='Circuit Group 2', slug='circuit-group-2'),
CircuitGroup(name='Circuit Group 3', slug='circuit-group-3'),
- CircuitGroup(name='Circuit Group 4', slug='circuit-group-4'),
)
CircuitGroup.objects.bulk_create(circuit_groups)
@@ -528,43 +655,86 @@ class CircuitGroupAssignmentTestCase(TestCase, ChangeLoggedFilterSetTests):
Provider(name='Provider 1', slug='provider-1'),
Provider(name='Provider 2', slug='provider-2'),
Provider(name='Provider 3', slug='provider-3'),
- Provider(name='Provider 4', slug='provider-4'),
))
- circuittype = CircuitType.objects.create(name='Circuit Type 1', slug='circuit-type-1')
+ circuit_type = CircuitType.objects.create(name='Circuit Type 1', slug='circuit-type-1')
circuits = (
- Circuit(cid='Circuit 1', provider=providers[0], type=circuittype),
- Circuit(cid='Circuit 2', provider=providers[1], type=circuittype),
- Circuit(cid='Circuit 3', provider=providers[2], type=circuittype),
- Circuit(cid='Circuit 4', provider=providers[3], type=circuittype),
+ Circuit(cid='Circuit 1', provider=providers[0], type=circuit_type),
+ Circuit(cid='Circuit 2', provider=providers[1], type=circuit_type),
+ Circuit(cid='Circuit 3', provider=providers[2], type=circuit_type),
)
Circuit.objects.bulk_create(circuits)
+ provider_networks = (
+ ProviderNetwork(name='Provider Network 1', provider=providers[0]),
+ ProviderNetwork(name='Provider Network 2', provider=providers[1]),
+ ProviderNetwork(name='Provider Network 3', provider=providers[2]),
+ )
+ ProviderNetwork.objects.bulk_create(provider_networks)
+
+ virtual_circuit_type = VirtualCircuitType.objects.create(
+ name='Virtual Circuit Type 1',
+ slug='virtual-circuit-type-1'
+ )
+ virtual_circuits = (
+ VirtualCircuit(
+ provider_network=provider_networks[0],
+ cid='Virtual Circuit 1',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_networks[1],
+ cid='Virtual Circuit 2',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_networks[2],
+ cid='Virtual Circuit 3',
+ type=virtual_circuit_type
+ ),
+ )
+ VirtualCircuit.objects.bulk_create(virtual_circuits)
+
assignments = (
CircuitGroupAssignment(
group=circuit_groups[0],
- circuit=circuits[0],
+ member=circuits[0],
priority=CircuitPriorityChoices.PRIORITY_PRIMARY
),
CircuitGroupAssignment(
group=circuit_groups[1],
- circuit=circuits[1],
+ member=circuits[1],
priority=CircuitPriorityChoices.PRIORITY_SECONDARY
),
CircuitGroupAssignment(
group=circuit_groups[2],
- circuit=circuits[2],
+ member=circuits[2],
+ priority=CircuitPriorityChoices.PRIORITY_TERTIARY
+ ),
+ CircuitGroupAssignment(
+ group=circuit_groups[0],
+ member=virtual_circuits[0],
+ priority=CircuitPriorityChoices.PRIORITY_PRIMARY
+ ),
+ CircuitGroupAssignment(
+ group=circuit_groups[1],
+ member=virtual_circuits[1],
+ priority=CircuitPriorityChoices.PRIORITY_SECONDARY
+ ),
+ CircuitGroupAssignment(
+ group=circuit_groups[2],
+ member=virtual_circuits[2],
priority=CircuitPriorityChoices.PRIORITY_TERTIARY
),
)
CircuitGroupAssignment.objects.bulk_create(assignments)
- def test_group_id(self):
- groups = CircuitGroup.objects.filter(name__in=['Circuit Group 1', 'Circuit Group 2'])
+ def test_group(self):
+ groups = CircuitGroup.objects.all()[:2]
params = {'group_id': [groups[0].pk, groups[1].pk]}
- self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
params = {'group': [groups[0].slug, groups[1].slug]}
- self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
def test_circuit(self):
circuits = Circuit.objects.all()[:2]
@@ -573,12 +743,19 @@ class CircuitGroupAssignmentTestCase(TestCase, ChangeLoggedFilterSetTests):
params = {'circuit': [circuits[0].cid, circuits[1].cid]}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ def test_virtual_circuit(self):
+ virtual_circuits = VirtualCircuit.objects.all()[:2]
+ params = {'virtual_circuit_id': [virtual_circuits[0].pk, virtual_circuits[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'virtual_circuit': [virtual_circuits[0].cid, virtual_circuits[1].cid]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
def test_provider(self):
providers = Provider.objects.all()[:2]
params = {'provider_id': [providers[0].pk, providers[1].pk]}
- self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
params = {'provider': [providers[0].slug, providers[1].slug]}
- self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
class ProviderNetworkTestCase(TestCase, ChangeLoggedFilterSetTests):
@@ -665,3 +842,347 @@ class ProviderAccountTestCase(TestCase, ChangeLoggedFilterSetTests):
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
params = {'provider': [providers[0].slug, providers[1].slug]}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+
+class VirtualCircuitTypeTestCase(TestCase, ChangeLoggedFilterSetTests):
+ queryset = VirtualCircuitType.objects.all()
+ filterset = VirtualCircuitTypeFilterSet
+
+ @classmethod
+ def setUpTestData(cls):
+
+ VirtualCircuitType.objects.bulk_create((
+ VirtualCircuitType(name='Virtual Circuit Type 1', slug='virtual-circuit-type-1', description='foobar1'),
+ VirtualCircuitType(name='Virtual Circuit Type 2', slug='virtual-circuit-type-2', description='foobar2'),
+ VirtualCircuitType(name='Virtual Circuit Type 3', slug='virtual-circuit-type-3'),
+ ))
+
+ def test_q(self):
+ params = {'q': 'foobar1'}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+
+ def test_name(self):
+ params = {'name': ['Virtual Circuit Type 1']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+
+ def test_slug(self):
+ params = {'slug': ['virtual-circuit-type-1']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+
+ def test_description(self):
+ params = {'description': ['foobar1', 'foobar2']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+
+class VirtualCircuitTestCase(TestCase, ChangeLoggedFilterSetTests):
+ queryset = VirtualCircuit.objects.all()
+ filterset = VirtualCircuitFilterSet
+
+ @classmethod
+ def setUpTestData(cls):
+
+ tenant_groups = (
+ TenantGroup(name='Tenant group 1', slug='tenant-group-1'),
+ TenantGroup(name='Tenant group 2', slug='tenant-group-2'),
+ TenantGroup(name='Tenant group 3', slug='tenant-group-3'),
+ )
+ for tenantgroup in tenant_groups:
+ tenantgroup.save()
+
+ tenants = (
+ Tenant(name='Tenant 1', slug='tenant-1', group=tenant_groups[0]),
+ Tenant(name='Tenant 2', slug='tenant-2', group=tenant_groups[1]),
+ Tenant(name='Tenant 3', slug='tenant-3', group=tenant_groups[2]),
+ )
+ Tenant.objects.bulk_create(tenants)
+
+ providers = (
+ Provider(name='Provider 1', slug='provider-1'),
+ Provider(name='Provider 2', slug='provider-2'),
+ Provider(name='Provider 3', slug='provider-3'),
+ )
+ Provider.objects.bulk_create(providers)
+
+ provider_accounts = (
+ ProviderAccount(name='Provider Account 1', provider=providers[0], account='A'),
+ ProviderAccount(name='Provider Account 2', provider=providers[1], account='B'),
+ ProviderAccount(name='Provider Account 3', provider=providers[2], account='C'),
+ )
+ ProviderAccount.objects.bulk_create(provider_accounts)
+
+ provider_networks = (
+ ProviderNetwork(name='Provider Network 1', provider=providers[0]),
+ ProviderNetwork(name='Provider Network 2', provider=providers[1]),
+ ProviderNetwork(name='Provider Network 3', provider=providers[2]),
+ )
+ ProviderNetwork.objects.bulk_create(provider_networks)
+
+ virtual_circuit_types = (
+ VirtualCircuitType(name='Virtual Circuit Type 1', slug='virtual-circuit-type-1'),
+ VirtualCircuitType(name='Virtual Circuit Type 2', slug='virtual-circuit-type-2'),
+ VirtualCircuitType(name='Virtual Circuit Type 3', slug='virtual-circuit-type-3'),
+ )
+ VirtualCircuitType.objects.bulk_create(virtual_circuit_types)
+
+ virutal_circuits = (
+ VirtualCircuit(
+ provider_network=provider_networks[0],
+ provider_account=provider_accounts[0],
+ tenant=tenants[0],
+ cid='Virtual Circuit 1',
+ type=virtual_circuit_types[0],
+ status=CircuitStatusChoices.STATUS_PLANNED,
+ description='virtualcircuit1',
+ ),
+ VirtualCircuit(
+ provider_network=provider_networks[1],
+ provider_account=provider_accounts[1],
+ tenant=tenants[1],
+ cid='Virtual Circuit 2',
+ type=virtual_circuit_types[1],
+ status=CircuitStatusChoices.STATUS_ACTIVE,
+ description='virtualcircuit2',
+ ),
+ VirtualCircuit(
+ provider_network=provider_networks[2],
+ provider_account=provider_accounts[2],
+ tenant=tenants[2],
+ cid='Virtual Circuit 3',
+ type=virtual_circuit_types[2],
+ status=CircuitStatusChoices.STATUS_DEPROVISIONING,
+ description='virtualcircuit3',
+ ),
+ )
+ VirtualCircuit.objects.bulk_create(virutal_circuits)
+
+ def test_q(self):
+ params = {'q': 'virtualcircuit1'}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+
+ def test_cid(self):
+ params = {'cid': ['Virtual Circuit 1', 'Virtual Circuit 2']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_provider(self):
+ providers = Provider.objects.all()[:2]
+ params = {'provider_id': [providers[0].pk, providers[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'provider': [providers[0].slug, providers[1].slug]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_provider_account(self):
+ provider_accounts = ProviderAccount.objects.all()[:2]
+ params = {'provider_account_id': [provider_accounts[0].pk, provider_accounts[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_provider_network(self):
+ provider_networks = ProviderNetwork.objects.all()[:2]
+ params = {'provider_network_id': [provider_networks[0].pk, provider_networks[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_type(self):
+ virtual_circuit_types = VirtualCircuitType.objects.all()[:2]
+ params = {'type_id': [virtual_circuit_types[0].pk, virtual_circuit_types[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'type': [virtual_circuit_types[0].slug, virtual_circuit_types[1].slug]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_status(self):
+ params = {'status': [CircuitStatusChoices.STATUS_ACTIVE, CircuitStatusChoices.STATUS_PLANNED]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_description(self):
+ params = {'description': ['virtualcircuit1', 'virtualcircuit2']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_tenant(self):
+ tenants = Tenant.objects.all()[:2]
+ params = {'tenant_id': [tenants[0].pk, tenants[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'tenant': [tenants[0].slug, tenants[1].slug]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_tenant_group(self):
+ tenant_groups = TenantGroup.objects.all()[:2]
+ params = {'tenant_group_id': [tenant_groups[0].pk, tenant_groups[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'tenant_group': [tenant_groups[0].slug, tenant_groups[1].slug]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+
+class VirtualCircuitTerminationTestCase(TestCase, ChangeLoggedFilterSetTests):
+ queryset = VirtualCircuitTermination.objects.all()
+ filterset = VirtualCircuitTerminationFilterSet
+
+ @classmethod
+ def setUpTestData(cls):
+ manufacturer = Manufacturer.objects.create(name='Manufacturer 1', slug='manufacturer-1')
+ device_type = DeviceType.objects.create(manufacturer=manufacturer, model='Device Type 1')
+ device_role = DeviceRole.objects.create(name='Device Role 1', slug='device-role-1')
+ site = Site.objects.create(name='Site 1', slug='site-1')
+
+ devices = (
+ Device(site=site, name='Device 1', device_type=device_type, role=device_role),
+ Device(site=site, name='Device 2', device_type=device_type, role=device_role),
+ Device(site=site, name='Device 3', device_type=device_type, role=device_role),
+ )
+ Device.objects.bulk_create(devices)
+
+ virtual_interfaces = (
+ # Device 1
+ Interface(
+ device=devices[0],
+ name='eth0.1',
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[0],
+ name='eth0.2',
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ # Device 2
+ Interface(
+ device=devices[1],
+ name='eth0.1',
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[1],
+ name='eth0.2',
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ # Device 3
+ Interface(
+ device=devices[2],
+ name='eth0.1',
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[2],
+ name='eth0.2',
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ )
+ Interface.objects.bulk_create(virtual_interfaces)
+
+ providers = (
+ Provider(name='Provider 1', slug='provider-1'),
+ Provider(name='Provider 2', slug='provider-2'),
+ Provider(name='Provider 3', slug='provider-3'),
+ )
+ Provider.objects.bulk_create(providers)
+ provider_networks = (
+ ProviderNetwork(provider=providers[0], name='Provider Network 1'),
+ ProviderNetwork(provider=providers[1], name='Provider Network 2'),
+ ProviderNetwork(provider=providers[2], name='Provider Network 3'),
+ )
+ ProviderNetwork.objects.bulk_create(provider_networks)
+ provider_accounts = (
+ ProviderAccount(provider=providers[0], account='Provider Account 1'),
+ ProviderAccount(provider=providers[1], account='Provider Account 2'),
+ ProviderAccount(provider=providers[2], account='Provider Account 3'),
+ )
+ ProviderAccount.objects.bulk_create(provider_accounts)
+ virtual_circuit_type = VirtualCircuitType.objects.create(
+ name='Virtual Circuit Type 1',
+ slug='virtual-circuit-type-1'
+ )
+
+ virtual_circuits = (
+ VirtualCircuit(
+ provider_network=provider_networks[0],
+ provider_account=provider_accounts[0],
+ cid='Virtual Circuit 1',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_networks[1],
+ provider_account=provider_accounts[1],
+ cid='Virtual Circuit 2',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_networks[2],
+ provider_account=provider_accounts[2],
+ cid='Virtual Circuit 3',
+ type=virtual_circuit_type
+ ),
+ )
+ VirtualCircuit.objects.bulk_create(virtual_circuits)
+
+ virtual_circuit_terminations = (
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[0],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_HUB,
+ interface=virtual_interfaces[0],
+ description='termination1'
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[0],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_SPOKE,
+ interface=virtual_interfaces[3],
+ description='termination2'
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[1],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[1],
+ description='termination3'
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[1],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[4],
+ description='termination4'
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[2],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[2],
+ description='termination5'
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[2],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[5],
+ description='termination6'
+ ),
+ )
+ VirtualCircuitTermination.objects.bulk_create(virtual_circuit_terminations)
+
+ def test_q(self):
+ params = {'q': 'termination1'}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+
+ def test_description(self):
+ params = {'description': ['termination1', 'termination2']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_virtual_circuit_id(self):
+ virtual_circuits = VirtualCircuit.objects.filter()[:2]
+ params = {'virtual_circuit_id': [virtual_circuits[0].pk, virtual_circuits[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
+
+ def test_provider(self):
+ providers = Provider.objects.all()[:2]
+ params = {'provider_id': [providers[0].pk, providers[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
+ params = {'provider': [providers[0].slug, providers[1].slug]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
+
+ def test_provider_network(self):
+ provider_networks = ProviderNetwork.objects.all()[:2]
+ params = {'provider_network_id': [provider_networks[0].pk, provider_networks[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
+
+ def test_provider_account(self):
+ provider_accounts = ProviderAccount.objects.all()[:2]
+ params = {'provider_account_id': [provider_accounts[0].pk, provider_accounts[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
+ params = {'provider_account': [provider_accounts[0].account, provider_accounts[1].account]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
+
+ def test_interface(self):
+ interfaces = Interface.objects.all()[:2]
+ params = {'interface_id': [interfaces[0].pk, interfaces[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
diff --git a/netbox/circuits/tests/test_views.py b/netbox/circuits/tests/test_views.py
index b06ade30b..6ced9a958 100644
--- a/netbox/circuits/tests/test_views.py
+++ b/netbox/circuits/tests/test_views.py
@@ -1,12 +1,14 @@
import datetime
+from django.contrib.contenttypes.models import ContentType
from django.test import override_settings
from django.urls import reverse
from circuits.choices import *
from circuits.models import *
from core.models import ObjectType
-from dcim.models import Cable, Interface, Site
+from dcim.choices import InterfaceTypeChoices
+from dcim.models import Cable, Device, DeviceRole, DeviceType, Interface, Manufacturer, Site
from ipam.models import ASN, RIR
from netbox.choices import ImportFormatChoices
from users.models import ObjectPermission
@@ -139,9 +141,15 @@ class CircuitTestCase(ViewTestCases.PrimaryObjectViewTestCase):
CircuitType.objects.bulk_create(circuittypes)
circuits = (
- Circuit(cid='Circuit 1', provider=providers[0], provider_account=provider_accounts[0], type=circuittypes[0]),
- Circuit(cid='Circuit 2', provider=providers[0], provider_account=provider_accounts[0], type=circuittypes[0]),
- Circuit(cid='Circuit 3', provider=providers[0], provider_account=provider_accounts[0], type=circuittypes[0]),
+ Circuit(
+ cid='Circuit 1', provider=providers[0], provider_account=provider_accounts[0], type=circuittypes[0]
+ ),
+ Circuit(
+ cid='Circuit 2', provider=providers[0], provider_account=provider_accounts[0], type=circuittypes[0]
+ ),
+ Circuit(
+ cid='Circuit 3', provider=providers[0], provider_account=provider_accounts[0], type=circuittypes[0]
+ ),
)
Circuit.objects.bulk_create(circuits)
@@ -190,27 +198,31 @@ class CircuitTestCase(ViewTestCases.PrimaryObjectViewTestCase):
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'], EXEMPT_EXCLUDE_MODELS=[])
def test_bulk_import_objects_with_terminations(self):
- json_data = """
+ site = Site.objects.first()
+ json_data = f"""
[
- {
+ {{
"cid": "Circuit 7",
"provider": "Provider 1",
"type": "Circuit Type 1",
"status": "active",
"description": "Testing Import",
"terminations": [
- {
+ {{
"term_side": "A",
- "site": "Site 1"
- },
- {
+ "termination_type": "dcim.site",
+ "termination_id": "{site.pk}"
+ }},
+ {{
"term_side": "Z",
- "site": "Site 1"
- }
+ "termination_type": "dcim.site",
+ "termination_id": "{site.pk}"
+ }}
]
- }
+ }}
]
"""
+
initial_count = self._get_queryset().count()
data = {
'data': json_data,
@@ -227,10 +239,10 @@ class CircuitTestCase(ViewTestCases.PrimaryObjectViewTestCase):
obj_perm.object_types.add(ObjectType.objects.get_for_model(self.model))
# Try GET with model-level permission
- self.assertHttpStatus(self.client.get(self._get_url('import')), 200)
+ self.assertHttpStatus(self.client.get(self._get_url('bulk_import')), 200)
# Test POST with permission
- self.assertHttpStatus(self.client.post(self._get_url('import'), data), 302)
+ self.assertHttpStatus(self.client.post(self._get_url('bulk_import'), data), 302)
self.assertEqual(self._get_queryset().count(), initial_count + 1)
@@ -359,24 +371,27 @@ class CircuitTerminationTestCase(ViewTestCases.PrimaryObjectViewTestCase):
Circuit.objects.bulk_create(circuits)
circuit_terminations = (
- CircuitTermination(circuit=circuits[0], term_side='A', site=sites[0]),
- CircuitTermination(circuit=circuits[0], term_side='Z', site=sites[1]),
- CircuitTermination(circuit=circuits[1], term_side='A', site=sites[0]),
- CircuitTermination(circuit=circuits[1], term_side='Z', site=sites[1]),
+ CircuitTermination(circuit=circuits[0], term_side='A', termination=sites[0]),
+ CircuitTermination(circuit=circuits[0], term_side='Z', termination=sites[1]),
+ CircuitTermination(circuit=circuits[1], term_side='A', termination=sites[0]),
+ CircuitTermination(circuit=circuits[1], term_side='Z', termination=sites[1]),
)
- CircuitTermination.objects.bulk_create(circuit_terminations)
+ for ct in circuit_terminations:
+ ct.save()
cls.form_data = {
'circuit': circuits[2].pk,
'term_side': 'A',
- 'site': sites[2].pk,
+ 'termination_type': ContentType.objects.get_for_model(Site).pk,
+ 'termination': sites[2].pk,
'description': 'New description',
}
+ site = sites[0].pk
cls.csv_data = (
- "circuit,term_side,site,description",
- "Circuit 3,A,Site 1,Foo",
- "Circuit 3,Z,Site 1,Bar",
+ "circuit,term_side,termination_type,termination_id,description",
+ f"Circuit 3,A,dcim.site,{site},Foo",
+ f"Circuit 3,Z,dcim.site,{site},Bar",
)
cls.csv_update_data = (
@@ -453,6 +468,7 @@ class CircuitGroupAssignmentTestCase(
ViewTestCases.DeleteObjectViewTestCase,
ViewTestCases.ListObjectsViewTestCase,
ViewTestCases.BulkEditObjectsViewTestCase,
+ ViewTestCases.BulkImportObjectsViewTestCase,
ViewTestCases.BulkDeleteObjectsViewTestCase
):
model = CircuitGroupAssignment
@@ -482,17 +498,17 @@ class CircuitGroupAssignmentTestCase(
assignments = (
CircuitGroupAssignment(
group=circuit_groups[0],
- circuit=circuits[0],
+ member=circuits[0],
priority=CircuitPriorityChoices.PRIORITY_PRIMARY
),
CircuitGroupAssignment(
group=circuit_groups[1],
- circuit=circuits[1],
+ member=circuits[1],
priority=CircuitPriorityChoices.PRIORITY_SECONDARY
),
CircuitGroupAssignment(
group=circuit_groups[2],
- circuit=circuits[2],
+ member=circuits[2],
priority=CircuitPriorityChoices.PRIORITY_TERTIARY
),
)
@@ -502,11 +518,420 @@ class CircuitGroupAssignmentTestCase(
cls.form_data = {
'group': circuit_groups[3].pk,
- 'circuit': circuits[3].pk,
+ 'member_type': ContentType.objects.get_for_model(Circuit).pk,
+ 'member': circuits[3].pk,
'priority': CircuitPriorityChoices.PRIORITY_INACTIVE,
'tags': [t.pk for t in tags],
}
+ cls.csv_data = (
+ "member_type,member_id,group,priority",
+ f"circuits.circuit,{circuits[0].pk},{circuit_groups[3].pk},primary",
+ f"circuits.circuit,{circuits[1].pk},{circuit_groups[3].pk},secondary",
+ f"circuits.circuit,{circuits[2].pk},{circuit_groups[3].pk},tertiary",
+ )
+
+ cls.csv_update_data = (
+ "id,priority",
+ f"{assignments[0].pk},inactive",
+ f"{assignments[1].pk},inactive",
+ f"{assignments[2].pk},inactive",
+ )
+
cls.bulk_edit_data = {
'priority': CircuitPriorityChoices.PRIORITY_INACTIVE,
}
+
+
+class VirtualCircuitTypeTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
+ model = VirtualCircuitType
+
+ @classmethod
+ def setUpTestData(cls):
+
+ virtual_circuit_types = (
+ VirtualCircuitType(name='Virtual Circuit Type 1', slug='circuit-type-1'),
+ VirtualCircuitType(name='Virtual Circuit Type 2', slug='circuit-type-2'),
+ VirtualCircuitType(name='Virtual Circuit Type 3', slug='circuit-type-3'),
+ )
+ VirtualCircuitType.objects.bulk_create(virtual_circuit_types)
+
+ tags = create_tags('Alpha', 'Bravo', 'Charlie')
+
+ cls.form_data = {
+ 'name': 'Virtual Circuit Type X',
+ 'slug': 'virtual-circuit-type-x',
+ 'description': 'A new virtual circuit type',
+ 'tags': [t.pk for t in tags],
+ }
+
+ cls.csv_data = (
+ "name,slug",
+ "Virtual Circuit Type 4,circuit-type-4",
+ "Virtual Circuit Type 5,circuit-type-5",
+ "Virtual Circuit Type 6,circuit-type-6",
+ )
+
+ cls.csv_update_data = (
+ "id,name,description",
+ f"{virtual_circuit_types[0].pk},Virtual Circuit Type 7,New description7",
+ f"{virtual_circuit_types[1].pk},Virtual Circuit Type 8,New description8",
+ f"{virtual_circuit_types[2].pk},Virtual Circuit Type 9,New description9",
+ )
+
+ cls.bulk_edit_data = {
+ 'description': 'Foo',
+ }
+
+
+class VirtualCircuitTestCase(ViewTestCases.PrimaryObjectViewTestCase):
+ model = VirtualCircuit
+
+ def setUp(self):
+ super().setUp()
+
+ self.add_permissions(
+ 'circuits.add_virtualcircuittermination',
+ )
+
+ @classmethod
+ def setUpTestData(cls):
+ provider = Provider.objects.create(name='Provider 1', slug='provider-1')
+ provider_networks = (
+ ProviderNetwork(provider=provider, name='Provider Network 1'),
+ ProviderNetwork(provider=provider, name='Provider Network 2'),
+ )
+ ProviderNetwork.objects.bulk_create(provider_networks)
+ provider_accounts = (
+ ProviderAccount(provider=provider, account='Provider Account 1'),
+ ProviderAccount(provider=provider, account='Provider Account 2'),
+ )
+ ProviderAccount.objects.bulk_create(provider_accounts)
+ virtual_circuit_types = (
+ VirtualCircuitType(name='Virtual Circuit Type 1', slug='virtual-circuit-type-1'),
+ VirtualCircuitType(name='Virtual Circuit Type 2', slug='virtual-circuit-type-2'),
+ )
+ VirtualCircuitType.objects.bulk_create(virtual_circuit_types)
+
+ virtual_circuits = (
+ VirtualCircuit(
+ provider_network=provider_networks[0],
+ provider_account=provider_accounts[0],
+ cid='Virtual Circuit 1',
+ type=virtual_circuit_types[0]
+ ),
+ VirtualCircuit(
+ provider_network=provider_networks[0],
+ provider_account=provider_accounts[0],
+ cid='Virtual Circuit 2',
+ type=virtual_circuit_types[0]
+ ),
+ VirtualCircuit(
+ provider_network=provider_networks[0],
+ provider_account=provider_accounts[0],
+ cid='Virtual Circuit 3',
+ type=virtual_circuit_types[0]
+ ),
+ )
+ VirtualCircuit.objects.bulk_create(virtual_circuits)
+
+ device = create_test_device('Device 1')
+ interfaces = (
+ Interface(device=device, name='Interface 1', type=InterfaceTypeChoices.TYPE_VIRTUAL),
+ Interface(device=device, name='Interface 2', type=InterfaceTypeChoices.TYPE_VIRTUAL),
+ Interface(device=device, name='Interface 3', type=InterfaceTypeChoices.TYPE_VIRTUAL),
+ )
+ Interface.objects.bulk_create(interfaces)
+
+ tags = create_tags('Alpha', 'Bravo', 'Charlie')
+
+ cls.form_data = {
+ 'cid': 'Virtual Circuit X',
+ 'provider_network': provider_networks[1].pk,
+ 'provider_account': provider_accounts[1].pk,
+ 'type': virtual_circuit_types[1].pk,
+ 'status': CircuitStatusChoices.STATUS_PLANNED,
+ 'description': 'A new virtual circuit',
+ 'comments': 'Some comments',
+ 'tags': [t.pk for t in tags],
+ }
+
+ cls.csv_data = (
+ "cid,provider_network,provider_account,type,status",
+ (
+ f"Virtual Circuit 4,Provider Network 1,Provider Account 1,{virtual_circuit_types[0].name},"
+ f"{CircuitStatusChoices.STATUS_PLANNED}"
+ ),
+ (
+ f"Virtual Circuit 5,Provider Network 1,Provider Account 1,{virtual_circuit_types[0].name},"
+ f"{CircuitStatusChoices.STATUS_PLANNED}"
+ ),
+ (
+ f"Virtual Circuit 6,Provider Network 1,Provider Account 1,{virtual_circuit_types[0].name},"
+ f"{CircuitStatusChoices.STATUS_PLANNED}"
+ ),
+ )
+
+ cls.csv_update_data = (
+ "id,cid,description,type,status",
+ (
+ f"{virtual_circuits[0].pk},Virtual Circuit A,New description,{virtual_circuit_types[1].name},"
+ f"{CircuitStatusChoices.STATUS_DECOMMISSIONED}"
+ ),
+ (
+ f"{virtual_circuits[1].pk},Virtual Circuit B,New description,{virtual_circuit_types[1].name},"
+ f"{CircuitStatusChoices.STATUS_DECOMMISSIONED}"
+ ),
+ (
+ f"{virtual_circuits[2].pk},Virtual Circuit C,New description,{virtual_circuit_types[1].name},"
+ f"{CircuitStatusChoices.STATUS_DECOMMISSIONED}"
+ ),
+ )
+
+ cls.bulk_edit_data = {
+ 'provider_network': provider_networks[1].pk,
+ 'provider_account': provider_accounts[1].pk,
+ 'type': virtual_circuit_types[1].pk,
+ 'status': CircuitStatusChoices.STATUS_DECOMMISSIONED,
+ 'description': 'New description',
+ 'comments': 'New comments',
+ }
+
+ @override_settings(EXEMPT_VIEW_PERMISSIONS=['*'], EXEMPT_EXCLUDE_MODELS=[])
+ def test_bulk_import_objects_with_terminations(self):
+ interfaces = Interface.objects.filter(type=InterfaceTypeChoices.TYPE_VIRTUAL)
+ json_data = f"""
+ [
+ {{
+ "cid": "Virtual Circuit 7",
+ "provider_network": "Provider Network 1",
+ "type": "Virtual Circuit Type 1",
+ "status": "active",
+ "terminations": [
+ {{
+ "role": "hub",
+ "interface": {interfaces[0].pk}
+ }},
+ {{
+ "role": "spoke",
+ "interface": {interfaces[1].pk}
+ }},
+ {{
+ "role": "spoke",
+ "interface": {interfaces[2].pk}
+ }}
+ ]
+ }}
+ ]
+ """
+
+ initial_count = self._get_queryset().count()
+ data = {
+ 'data': json_data,
+ 'format': ImportFormatChoices.JSON,
+ }
+
+ # Assign model-level permission
+ obj_perm = ObjectPermission(
+ name='Test permission',
+ actions=['add']
+ )
+ obj_perm.save()
+ obj_perm.users.add(self.user)
+ obj_perm.object_types.add(ObjectType.objects.get_for_model(self.model))
+
+ # Try GET with model-level permission
+ self.assertHttpStatus(self.client.get(self._get_url('bulk_import')), 200)
+
+ # Test POST with permission
+ self.assertHttpStatus(self.client.post(self._get_url('bulk_import'), data), 302)
+ self.assertEqual(self._get_queryset().count(), initial_count + 1)
+
+
+class VirtualCircuitTerminationTestCase(ViewTestCases.PrimaryObjectViewTestCase):
+ model = VirtualCircuitTermination
+
+ @classmethod
+ def setUpTestData(cls):
+ manufacturer = Manufacturer.objects.create(name='Manufacturer 1', slug='manufacturer-1')
+ device_type = DeviceType.objects.create(manufacturer=manufacturer, model='Device Type 1')
+ device_role = DeviceRole.objects.create(name='Device Role 1', slug='device-role-1')
+ site = Site.objects.create(name='Site 1', slug='site-1')
+
+ devices = (
+ Device(site=site, name='hub', device_type=device_type, role=device_role),
+ Device(site=site, name='spoke1', device_type=device_type, role=device_role),
+ Device(site=site, name='spoke2', device_type=device_type, role=device_role),
+ Device(site=site, name='spoke3', device_type=device_type, role=device_role),
+ )
+ Device.objects.bulk_create(devices)
+
+ physical_interfaces = (
+ Interface(device=devices[0], name='eth0', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ Interface(device=devices[1], name='eth0', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ Interface(device=devices[2], name='eth0', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ Interface(device=devices[3], name='eth0', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ )
+ Interface.objects.bulk_create(physical_interfaces)
+
+ virtual_interfaces = (
+ # Point-to-point VCs
+ Interface(
+ device=devices[0],
+ name='eth0.1',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[0],
+ name='eth0.2',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[0],
+ name='eth0.3',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[1],
+ name='eth0.1',
+ parent=physical_interfaces[1],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[2],
+ name='eth0.1',
+ parent=physical_interfaces[2],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[3],
+ name='eth0.1',
+ parent=physical_interfaces[3],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+
+ # Hub and spoke VCs
+ Interface(
+ device=devices[0],
+ name='eth0.9',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[1],
+ name='eth0.9',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[2],
+ name='eth0.9',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ Interface(
+ device=devices[3],
+ name='eth0.9',
+ parent=physical_interfaces[0],
+ type=InterfaceTypeChoices.TYPE_VIRTUAL
+ ),
+ )
+ Interface.objects.bulk_create(virtual_interfaces)
+
+ provider = Provider.objects.create(name='Provider 1', slug='provider-1')
+ provider_network = ProviderNetwork.objects.create(provider=provider, name='Provider Network 1')
+ provider_account = ProviderAccount.objects.create(provider=provider, account='Provider Account 1')
+ virtual_circuit_type = VirtualCircuitType.objects.create(
+ name='Virtual Circuit Type 1',
+ slug='virtual-circuit-type-1'
+ )
+
+ virtual_circuits = (
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ cid='Virtual Circuit 1',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ cid='Virtual Circuit 2',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ cid='Virtual Circuit 3',
+ type=virtual_circuit_type
+ ),
+ VirtualCircuit(
+ provider_network=provider_network,
+ provider_account=provider_account,
+ cid='Virtual Circuit 4',
+ type=virtual_circuit_type
+ ),
+ )
+ VirtualCircuit.objects.bulk_create(virtual_circuits)
+
+ virtual_circuit_terminations = (
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[0],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[0]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[0],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[3]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[1],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[1]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[1],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[4]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[2],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[2]
+ ),
+ VirtualCircuitTermination(
+ virtual_circuit=virtual_circuits[2],
+ role=VirtualCircuitTerminationRoleChoices.ROLE_PEER,
+ interface=virtual_interfaces[5]
+ ),
+ )
+ VirtualCircuitTermination.objects.bulk_create(virtual_circuit_terminations)
+
+ cls.form_data = {
+ 'virtual_circuit': virtual_circuits[3].pk,
+ 'role': VirtualCircuitTerminationRoleChoices.ROLE_HUB,
+ 'interface': virtual_interfaces[6].pk
+ }
+
+ cls.csv_data = (
+ "virtual_circuit,role,interface,description",
+ f"Virtual Circuit 4,{VirtualCircuitTerminationRoleChoices.ROLE_HUB},{virtual_interfaces[6].pk},Hub",
+ f"Virtual Circuit 4,{VirtualCircuitTerminationRoleChoices.ROLE_SPOKE},{virtual_interfaces[7].pk},Spoke 1",
+ f"Virtual Circuit 4,{VirtualCircuitTerminationRoleChoices.ROLE_SPOKE},{virtual_interfaces[8].pk},Spoke 2",
+ f"Virtual Circuit 4,{VirtualCircuitTerminationRoleChoices.ROLE_SPOKE},{virtual_interfaces[9].pk},Spoke 3",
+ )
+
+ cls.csv_update_data = (
+ "id,role,description",
+ f"{virtual_circuit_terminations[0].pk},{VirtualCircuitTerminationRoleChoices.ROLE_SPOKE},New description",
+ f"{virtual_circuit_terminations[1].pk},{VirtualCircuitTerminationRoleChoices.ROLE_SPOKE},New description",
+ f"{virtual_circuit_terminations[2].pk},{VirtualCircuitTerminationRoleChoices.ROLE_SPOKE},New description",
+ )
+
+ cls.bulk_edit_data = {
+ 'description': 'New description',
+ }
diff --git a/netbox/circuits/urls.py b/netbox/circuits/urls.py
index 2171d49be..90e9e511f 100644
--- a/netbox/circuits/urls.py
+++ b/netbox/circuits/urls.py
@@ -5,69 +5,71 @@ from . import views
app_name = 'circuits'
urlpatterns = [
-
- # Providers
- path('providers/', views.ProviderListView.as_view(), name='provider_list'),
- path('providers/add/', views.ProviderEditView.as_view(), name='provider_add'),
- path('providers/import/', views.ProviderBulkImportView.as_view(), name='provider_import'),
- path('providers/edit/', views.ProviderBulkEditView.as_view(), name='provider_bulk_edit'),
- path('providers/delete/', views.ProviderBulkDeleteView.as_view(), name='provider_bulk_delete'),
+ path('providers/', include(get_model_urls('circuits', 'provider', detail=False))),
path('providers/
/', include(get_model_urls('circuits', 'provider'))),
- # Provider accounts
- path('provider-accounts/', views.ProviderAccountListView.as_view(), name='provideraccount_list'),
- path('provider-accounts/add/', views.ProviderAccountEditView.as_view(), name='provideraccount_add'),
- path('provider-accounts/import/', views.ProviderAccountBulkImportView.as_view(), name='provideraccount_import'),
- path('provider-accounts/edit/', views.ProviderAccountBulkEditView.as_view(), name='provideraccount_bulk_edit'),
- path('provider-accounts/delete/', views.ProviderAccountBulkDeleteView.as_view(), name='provideraccount_bulk_delete'),
+ path('provider-accounts/', include(get_model_urls('circuits', 'provideraccount', detail=False))),
path('provider-accounts//', include(get_model_urls('circuits', 'provideraccount'))),
- # Provider networks
- path('provider-networks/', views.ProviderNetworkListView.as_view(), name='providernetwork_list'),
- path('provider-networks/add/', views.ProviderNetworkEditView.as_view(), name='providernetwork_add'),
- path('provider-networks/import/', views.ProviderNetworkBulkImportView.as_view(), name='providernetwork_import'),
- path('provider-networks/edit/', views.ProviderNetworkBulkEditView.as_view(), name='providernetwork_bulk_edit'),
- path('provider-networks/delete/', views.ProviderNetworkBulkDeleteView.as_view(), name='providernetwork_bulk_delete'),
+ path('provider-networks/', include(get_model_urls('circuits', 'providernetwork', detail=False))),
path('provider-networks//', include(get_model_urls('circuits', 'providernetwork'))),
- # Circuit types
- path('circuit-types/', views.CircuitTypeListView.as_view(), name='circuittype_list'),
- path('circuit-types/add/', views.CircuitTypeEditView.as_view(), name='circuittype_add'),
- path('circuit-types/import/', views.CircuitTypeBulkImportView.as_view(), name='circuittype_import'),
- path('circuit-types/edit/', views.CircuitTypeBulkEditView.as_view(), name='circuittype_bulk_edit'),
- path('circuit-types/delete/', views.CircuitTypeBulkDeleteView.as_view(), name='circuittype_bulk_delete'),
+ path('circuit-types/', include(get_model_urls('circuits', 'circuittype', detail=False))),
path('circuit-types//', include(get_model_urls('circuits', 'circuittype'))),
- # Circuits
- path('circuits/', views.CircuitListView.as_view(), name='circuit_list'),
- path('circuits/add/', views.CircuitEditView.as_view(), name='circuit_add'),
- path('circuits/import/', views.CircuitBulkImportView.as_view(), name='circuit_import'),
- path('circuits/edit/', views.CircuitBulkEditView.as_view(), name='circuit_bulk_edit'),
- path('circuits/delete/', views.CircuitBulkDeleteView.as_view(), name='circuit_bulk_delete'),
- path('circuits//terminations/swap/', views.CircuitSwapTerminations.as_view(), name='circuit_terminations_swap'),
+ path('circuits/', include(get_model_urls('circuits', 'circuit', detail=False))),
+ path(
+ 'circuits//terminations/swap/',
+ views.CircuitSwapTerminations.as_view(),
+ name='circuit_terminations_swap'
+ ),
path('circuits//', include(get_model_urls('circuits', 'circuit'))),
- # Circuit terminations
- path('circuit-terminations/', views.CircuitTerminationListView.as_view(), name='circuittermination_list'),
- path('circuit-terminations/add/', views.CircuitTerminationEditView.as_view(), name='circuittermination_add'),
- path('circuit-terminations/import/', views.CircuitTerminationBulkImportView.as_view(), name='circuittermination_import'),
- path('circuit-terminations/edit/', views.CircuitTerminationBulkEditView.as_view(), name='circuittermination_bulk_edit'),
- path('circuit-terminations/delete/', views.CircuitTerminationBulkDeleteView.as_view(), name='circuittermination_bulk_delete'),
+ path('circuit-terminations/', include(get_model_urls('circuits', 'circuittermination', detail=False))),
path('circuit-terminations//', include(get_model_urls('circuits', 'circuittermination'))),
- # Circuit Groups
- path('circuit-groups/', views.CircuitGroupListView.as_view(), name='circuitgroup_list'),
- path('circuit-groups/add/', views.CircuitGroupEditView.as_view(), name='circuitgroup_add'),
- path('circuit-groups/import/', views.CircuitGroupBulkImportView.as_view(), name='circuitgroup_import'),
- path('circuit-groups/edit/', views.CircuitGroupBulkEditView.as_view(), name='circuitgroup_bulk_edit'),
- path('circuit-groups/delete/', views.CircuitGroupBulkDeleteView.as_view(), name='circuitgroup_bulk_delete'),
+ path('circuit-groups/', include(get_model_urls('circuits', 'circuitgroup', detail=False))),
path('circuit-groups//', include(get_model_urls('circuits', 'circuitgroup'))),
- # Circuit Group Assignments
- path('circuit-group-assignments/', views.CircuitGroupAssignmentListView.as_view(), name='circuitgroupassignment_list'),
- path('circuit-group-assignments/add/', views.CircuitGroupAssignmentEditView.as_view(), name='circuitgroupassignment_add'),
- path('circuit-group-assignments/import/', views.CircuitGroupAssignmentBulkImportView.as_view(), name='circuitgroupassignment_import'),
- path('circuit-group-assignments/edit/', views.CircuitGroupAssignmentBulkEditView.as_view(), name='circuitgroupassignment_bulk_edit'),
- path('circuit-group-assignments/delete/', views.CircuitGroupAssignmentBulkDeleteView.as_view(), name='circuitgroupassignment_bulk_delete'),
+ path('circuit-group-assignments/', include(get_model_urls('circuits', 'circuitgroupassignment', detail=False))),
path('circuit-group-assignments//', include(get_model_urls('circuits', 'circuitgroupassignment'))),
+
+ # Virtual circuits
+ path('virtual-circuits/', views.VirtualCircuitListView.as_view(), name='virtualcircuit_list'),
+ path('virtual-circuits/add/', views.VirtualCircuitEditView.as_view(), name='virtualcircuit_add'),
+ path('virtual-circuits/import/', views.VirtualCircuitBulkImportView.as_view(), name='virtualcircuit_bulk_import'),
+ path('virtual-circuits/edit/', views.VirtualCircuitBulkEditView.as_view(), name='virtualcircuit_bulk_edit'),
+ path('virtual-circuits/delete/', views.VirtualCircuitBulkDeleteView.as_view(), name='virtualcircuit_bulk_delete'),
+ path('virtual-circuits//', include(get_model_urls('circuits', 'virtualcircuit'))),
+
+ path('virtual-circuit-types/', include(get_model_urls('circuits', 'virtualcircuittype', detail=False))),
+ path('virtual-circuit-types//', include(get_model_urls('circuits', 'virtualcircuittype'))),
+
+ # Virtual circuit terminations
+ path(
+ 'virtual-circuit-terminations/',
+ views.VirtualCircuitTerminationListView.as_view(),
+ name='virtualcircuittermination_list',
+ ),
+ path(
+ 'virtual-circuit-terminations/add/',
+ views.VirtualCircuitTerminationEditView.as_view(),
+ name='virtualcircuittermination_add',
+ ),
+ path(
+ 'virtual-circuit-terminations/import/',
+ views.VirtualCircuitTerminationBulkImportView.as_view(),
+ name='virtualcircuittermination_bulk_import',
+ ),
+ path(
+ 'virtual-circuit-terminations/edit/',
+ views.VirtualCircuitTerminationBulkEditView.as_view(),
+ name='virtualcircuittermination_bulk_edit',
+ ),
+ path(
+ 'virtual-circuit-terminations/delete/',
+ views.VirtualCircuitTerminationBulkDeleteView.as_view(),
+ name='virtualcircuittermination_bulk_delete',
+ ),
+ path('virtual-circuit-terminations//', include(get_model_urls('circuits', 'virtualcircuittermination'))),
]
diff --git a/netbox/circuits/views.py b/netbox/circuits/views.py
index 8218960c9..3bd81c33a 100644
--- a/netbox/circuits/views.py
+++ b/netbox/circuits/views.py
@@ -17,6 +17,7 @@ from .models import *
# Providers
#
+@register_model_view(Provider, 'list', path='', detail=False)
class ProviderListView(generic.ObjectListView):
queryset = Provider.objects.annotate(
count_circuits=count_related(Circuit, 'provider')
@@ -36,6 +37,7 @@ class ProviderView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(Provider, 'add', detail=False)
@register_model_view(Provider, 'edit')
class ProviderEditView(generic.ObjectEditView):
queryset = Provider.objects.all()
@@ -47,11 +49,13 @@ class ProviderDeleteView(generic.ObjectDeleteView):
queryset = Provider.objects.all()
+@register_model_view(Provider, 'bulk_import', detail=False)
class ProviderBulkImportView(generic.BulkImportView):
queryset = Provider.objects.all()
model_form = forms.ProviderImportForm
+@register_model_view(Provider, 'bulk_edit', path='edit', detail=False)
class ProviderBulkEditView(generic.BulkEditView):
queryset = Provider.objects.annotate(
count_circuits=count_related(Circuit, 'provider')
@@ -61,6 +65,7 @@ class ProviderBulkEditView(generic.BulkEditView):
form = forms.ProviderBulkEditForm
+@register_model_view(Provider, 'bulk_delete', path='delete', detail=False)
class ProviderBulkDeleteView(generic.BulkDeleteView):
queryset = Provider.objects.annotate(
count_circuits=count_related(Circuit, 'provider')
@@ -78,6 +83,7 @@ class ProviderContactsView(ObjectContactsView):
# ProviderAccounts
#
+@register_model_view(ProviderAccount, 'list', path='', detail=False)
class ProviderAccountListView(generic.ObjectListView):
queryset = ProviderAccount.objects.annotate(
count_circuits=count_related(Circuit, 'provider_account')
@@ -97,6 +103,7 @@ class ProviderAccountView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(ProviderAccount, 'add', detail=False)
@register_model_view(ProviderAccount, 'edit')
class ProviderAccountEditView(generic.ObjectEditView):
queryset = ProviderAccount.objects.all()
@@ -108,12 +115,14 @@ class ProviderAccountDeleteView(generic.ObjectDeleteView):
queryset = ProviderAccount.objects.all()
+@register_model_view(ProviderAccount, 'bulk_import', detail=False)
class ProviderAccountBulkImportView(generic.BulkImportView):
queryset = ProviderAccount.objects.all()
model_form = forms.ProviderAccountImportForm
table = tables.ProviderAccountTable
+@register_model_view(ProviderAccount, 'bulk_edit', path='edit', detail=False)
class ProviderAccountBulkEditView(generic.BulkEditView):
queryset = ProviderAccount.objects.annotate(
count_circuits=count_related(Circuit, 'provider_account')
@@ -123,6 +132,7 @@ class ProviderAccountBulkEditView(generic.BulkEditView):
form = forms.ProviderAccountBulkEditForm
+@register_model_view(ProviderAccount, 'bulk_delete', path='delete', detail=False)
class ProviderAccountBulkDeleteView(generic.BulkDeleteView):
queryset = ProviderAccount.objects.annotate(
count_circuits=count_related(Circuit, 'provider_account')
@@ -140,6 +150,7 @@ class ProviderAccountContactsView(ObjectContactsView):
# Provider networks
#
+@register_model_view(ProviderNetwork, 'list', path='', detail=False)
class ProviderNetworkListView(generic.ObjectListView):
queryset = ProviderNetwork.objects.all()
filterset = filtersets.ProviderNetworkFilterSet
@@ -158,7 +169,7 @@ class ProviderNetworkView(GetRelatedModelsMixin, generic.ObjectView):
instance,
extra=(
(
- Circuit.objects.restrict(request.user, 'view').filter(terminations__provider_network=instance),
+ Circuit.objects.restrict(request.user, 'view').filter(terminations___provider_network=instance),
'provider_network_id',
),
),
@@ -166,6 +177,7 @@ class ProviderNetworkView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(ProviderNetwork, 'add', detail=False)
@register_model_view(ProviderNetwork, 'edit')
class ProviderNetworkEditView(generic.ObjectEditView):
queryset = ProviderNetwork.objects.all()
@@ -177,11 +189,13 @@ class ProviderNetworkDeleteView(generic.ObjectDeleteView):
queryset = ProviderNetwork.objects.all()
+@register_model_view(ProviderNetwork, 'bulk_import', detail=False)
class ProviderNetworkBulkImportView(generic.BulkImportView):
queryset = ProviderNetwork.objects.all()
model_form = forms.ProviderNetworkImportForm
+@register_model_view(ProviderNetwork, 'bulk_edit', path='edit', detail=False)
class ProviderNetworkBulkEditView(generic.BulkEditView):
queryset = ProviderNetwork.objects.all()
filterset = filtersets.ProviderNetworkFilterSet
@@ -189,6 +203,7 @@ class ProviderNetworkBulkEditView(generic.BulkEditView):
form = forms.ProviderNetworkBulkEditForm
+@register_model_view(ProviderNetwork, 'bulk_delete', path='delete', detail=False)
class ProviderNetworkBulkDeleteView(generic.BulkDeleteView):
queryset = ProviderNetwork.objects.all()
filterset = filtersets.ProviderNetworkFilterSet
@@ -199,6 +214,7 @@ class ProviderNetworkBulkDeleteView(generic.BulkDeleteView):
# Circuit Types
#
+@register_model_view(CircuitType, 'list', path='', detail=False)
class CircuitTypeListView(generic.ObjectListView):
queryset = CircuitType.objects.annotate(
circuit_count=count_related(Circuit, 'type')
@@ -218,6 +234,7 @@ class CircuitTypeView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(CircuitType, 'add', detail=False)
@register_model_view(CircuitType, 'edit')
class CircuitTypeEditView(generic.ObjectEditView):
queryset = CircuitType.objects.all()
@@ -229,11 +246,13 @@ class CircuitTypeDeleteView(generic.ObjectDeleteView):
queryset = CircuitType.objects.all()
+@register_model_view(CircuitType, 'bulk_import', detail=False)
class CircuitTypeBulkImportView(generic.BulkImportView):
queryset = CircuitType.objects.all()
model_form = forms.CircuitTypeImportForm
+@register_model_view(CircuitType, 'bulk_edit', path='edit', detail=False)
class CircuitTypeBulkEditView(generic.BulkEditView):
queryset = CircuitType.objects.annotate(
circuit_count=count_related(Circuit, 'type')
@@ -243,6 +262,7 @@ class CircuitTypeBulkEditView(generic.BulkEditView):
form = forms.CircuitTypeBulkEditForm
+@register_model_view(CircuitType, 'bulk_delete', path='delete', detail=False)
class CircuitTypeBulkDeleteView(generic.BulkDeleteView):
queryset = CircuitType.objects.annotate(
circuit_count=count_related(Circuit, 'type')
@@ -255,10 +275,10 @@ class CircuitTypeBulkDeleteView(generic.BulkDeleteView):
# Circuits
#
+@register_model_view(Circuit, 'list', path='', detail=False)
class CircuitListView(generic.ObjectListView):
queryset = Circuit.objects.prefetch_related(
- 'tenant__group', 'termination_a__site', 'termination_z__site',
- 'termination_a__provider_network', 'termination_z__provider_network',
+ 'tenant__group', 'termination_a__termination', 'termination_z__termination',
)
filterset = filtersets.CircuitFilterSet
filterset_form = forms.CircuitFilterForm
@@ -270,6 +290,7 @@ class CircuitView(generic.ObjectView):
queryset = Circuit.objects.all()
+@register_model_view(Circuit, 'add', detail=False)
@register_model_view(Circuit, 'edit')
class CircuitEditView(generic.ObjectEditView):
queryset = Circuit.objects.all()
@@ -281,6 +302,7 @@ class CircuitDeleteView(generic.ObjectDeleteView):
queryset = Circuit.objects.all()
+@register_model_view(Circuit, 'bulk_import', detail=False)
class CircuitBulkImportView(generic.BulkImportView):
queryset = Circuit.objects.all()
model_form = forms.CircuitImportForm
@@ -296,20 +318,20 @@ class CircuitBulkImportView(generic.BulkImportView):
return data
+@register_model_view(Circuit, 'bulk_edit', path='edit', detail=False)
class CircuitBulkEditView(generic.BulkEditView):
queryset = Circuit.objects.prefetch_related(
- 'termination_a__site', 'termination_z__site',
- 'termination_a__provider_network', 'termination_z__provider_network',
+ 'tenant__group', 'termination_a__termination', 'termination_z__termination',
)
filterset = filtersets.CircuitFilterSet
table = tables.CircuitTable
form = forms.CircuitBulkEditForm
+@register_model_view(Circuit, 'bulk_delete', path='delete', detail=False)
class CircuitBulkDeleteView(generic.BulkDeleteView):
queryset = Circuit.objects.prefetch_related(
- 'termination_a__site', 'termination_z__site',
- 'termination_a__provider_network', 'termination_z__provider_network',
+ 'tenant__group', 'termination_a__termination', 'termination_z__termination',
)
filterset = filtersets.CircuitFilterSet
table = tables.CircuitTable
@@ -400,6 +422,7 @@ class CircuitContactsView(ObjectContactsView):
# Circuit terminations
#
+@register_model_view(CircuitTermination, 'list', path='', detail=False)
class CircuitTerminationListView(generic.ObjectListView):
queryset = CircuitTermination.objects.all()
filterset = filtersets.CircuitTerminationFilterSet
@@ -412,6 +435,7 @@ class CircuitTerminationView(generic.ObjectView):
queryset = CircuitTermination.objects.all()
+@register_model_view(CircuitTermination, 'add', detail=False)
@register_model_view(CircuitTermination, 'edit')
class CircuitTerminationEditView(generic.ObjectEditView):
queryset = CircuitTermination.objects.all()
@@ -423,11 +447,13 @@ class CircuitTerminationDeleteView(generic.ObjectDeleteView):
queryset = CircuitTermination.objects.all()
+@register_model_view(CircuitTermination, 'bulk_import', detail=False)
class CircuitTerminationBulkImportView(generic.BulkImportView):
queryset = CircuitTermination.objects.all()
model_form = forms.CircuitTerminationImportForm
+@register_model_view(CircuitTermination, 'bulk_edit', path='edit', detail=False)
class CircuitTerminationBulkEditView(generic.BulkEditView):
queryset = CircuitTermination.objects.all()
filterset = filtersets.CircuitTerminationFilterSet
@@ -435,6 +461,7 @@ class CircuitTerminationBulkEditView(generic.BulkEditView):
form = forms.CircuitTerminationBulkEditForm
+@register_model_view(CircuitTermination, 'bulk_delete', path='delete', detail=False)
class CircuitTerminationBulkDeleteView(generic.BulkDeleteView):
queryset = CircuitTermination.objects.all()
filterset = filtersets.CircuitTerminationFilterSet
@@ -449,6 +476,7 @@ register_model_view(CircuitTermination, 'trace', kwargs={'model': CircuitTermina
# Circuit Groups
#
+@register_model_view(CircuitGroup, 'list', path='', detail=False)
class CircuitGroupListView(generic.ObjectListView):
queryset = CircuitGroup.objects.annotate(
circuit_group_assignment_count=count_related(CircuitGroupAssignment, 'group')
@@ -468,6 +496,7 @@ class CircuitGroupView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(CircuitGroup, 'add', detail=False)
@register_model_view(CircuitGroup, 'edit')
class CircuitGroupEditView(generic.ObjectEditView):
queryset = CircuitGroup.objects.all()
@@ -479,11 +508,13 @@ class CircuitGroupDeleteView(generic.ObjectDeleteView):
queryset = CircuitGroup.objects.all()
+@register_model_view(CircuitGroup, 'bulk_import', detail=False)
class CircuitGroupBulkImportView(generic.BulkImportView):
queryset = CircuitGroup.objects.all()
model_form = forms.CircuitGroupImportForm
+@register_model_view(CircuitGroup, 'bulk_edit', path='edit', detail=False)
class CircuitGroupBulkEditView(generic.BulkEditView):
queryset = CircuitGroup.objects.all()
filterset = filtersets.CircuitGroupFilterSet
@@ -491,6 +522,7 @@ class CircuitGroupBulkEditView(generic.BulkEditView):
form = forms.CircuitGroupBulkEditForm
+@register_model_view(CircuitGroup, 'bulk_delete', path='delete', detail=False)
class CircuitGroupBulkDeleteView(generic.BulkDeleteView):
queryset = CircuitGroup.objects.all()
filterset = filtersets.CircuitGroupFilterSet
@@ -501,6 +533,7 @@ class CircuitGroupBulkDeleteView(generic.BulkDeleteView):
# Circuit Groups
#
+@register_model_view(CircuitGroupAssignment, 'list', path='', detail=False)
class CircuitGroupAssignmentListView(generic.ObjectListView):
queryset = CircuitGroupAssignment.objects.all()
filterset = filtersets.CircuitGroupAssignmentFilterSet
@@ -513,6 +546,7 @@ class CircuitGroupAssignmentView(generic.ObjectView):
queryset = CircuitGroupAssignment.objects.all()
+@register_model_view(CircuitGroupAssignment, 'add', detail=False)
@register_model_view(CircuitGroupAssignment, 'edit')
class CircuitGroupAssignmentEditView(generic.ObjectEditView):
queryset = CircuitGroupAssignment.objects.all()
@@ -524,11 +558,13 @@ class CircuitGroupAssignmentDeleteView(generic.ObjectDeleteView):
queryset = CircuitGroupAssignment.objects.all()
+@register_model_view(CircuitGroupAssignment, 'bulk_import', detail=False)
class CircuitGroupAssignmentBulkImportView(generic.BulkImportView):
queryset = CircuitGroupAssignment.objects.all()
model_form = forms.CircuitGroupAssignmentImportForm
+@register_model_view(CircuitGroupAssignment, 'bulk_edit', path='edit', detail=False)
class CircuitGroupAssignmentBulkEditView(generic.BulkEditView):
queryset = CircuitGroupAssignment.objects.all()
filterset = filtersets.CircuitGroupAssignmentFilterSet
@@ -536,7 +572,175 @@ class CircuitGroupAssignmentBulkEditView(generic.BulkEditView):
form = forms.CircuitGroupAssignmentBulkEditForm
+@register_model_view(CircuitGroupAssignment, 'bulk_delete', path='delete', detail=False)
class CircuitGroupAssignmentBulkDeleteView(generic.BulkDeleteView):
queryset = CircuitGroupAssignment.objects.all()
filterset = filtersets.CircuitGroupAssignmentFilterSet
table = tables.CircuitGroupAssignmentTable
+
+
+#
+# Virtual circuit Types
+#
+
+@register_model_view(VirtualCircuitType, 'list', path='', detail=False)
+class VirtualCircuitTypeListView(generic.ObjectListView):
+ queryset = VirtualCircuitType.objects.annotate(
+ virtual_circuit_count=count_related(VirtualCircuit, 'type')
+ )
+ filterset = filtersets.VirtualCircuitTypeFilterSet
+ filterset_form = forms.VirtualCircuitTypeFilterForm
+ table = tables.VirtualCircuitTypeTable
+
+
+@register_model_view(VirtualCircuitType)
+class VirtualCircuitTypeView(GetRelatedModelsMixin, generic.ObjectView):
+ queryset = VirtualCircuitType.objects.all()
+
+ def get_extra_context(self, request, instance):
+ return {
+ 'related_models': self.get_related_models(request, instance),
+ }
+
+
+@register_model_view(VirtualCircuitType, 'add', detail=False)
+@register_model_view(VirtualCircuitType, 'edit')
+class VirtualCircuitTypeEditView(generic.ObjectEditView):
+ queryset = VirtualCircuitType.objects.all()
+ form = forms.VirtualCircuitTypeForm
+
+
+@register_model_view(VirtualCircuitType, 'delete')
+class VirtualCircuitTypeDeleteView(generic.ObjectDeleteView):
+ queryset = VirtualCircuitType.objects.all()
+
+
+@register_model_view(VirtualCircuitType, 'bulk_import', detail=False)
+class VirtualCircuitTypeBulkImportView(generic.BulkImportView):
+ queryset = VirtualCircuitType.objects.all()
+ model_form = forms.VirtualCircuitTypeImportForm
+
+
+@register_model_view(VirtualCircuitType, 'bulk_edit', path='edit', detail=False)
+class VirtualCircuitTypeBulkEditView(generic.BulkEditView):
+ queryset = VirtualCircuitType.objects.annotate(
+ circuit_count=count_related(Circuit, 'type')
+ )
+ filterset = filtersets.VirtualCircuitTypeFilterSet
+ table = tables.VirtualCircuitTypeTable
+ form = forms.VirtualCircuitTypeBulkEditForm
+
+
+@register_model_view(VirtualCircuitType, 'bulk_delete', path='delete', detail=False)
+class VirtualCircuitTypeBulkDeleteView(generic.BulkDeleteView):
+ queryset = VirtualCircuitType.objects.annotate(
+ circuit_count=count_related(Circuit, 'type')
+ )
+ filterset = filtersets.VirtualCircuitTypeFilterSet
+ table = tables.VirtualCircuitTypeTable
+
+
+#
+# Virtual circuits
+#
+
+class VirtualCircuitListView(generic.ObjectListView):
+ queryset = VirtualCircuit.objects.annotate(
+ termination_count=count_related(VirtualCircuitTermination, 'virtual_circuit')
+ )
+ filterset = filtersets.VirtualCircuitFilterSet
+ filterset_form = forms.VirtualCircuitFilterForm
+ table = tables.VirtualCircuitTable
+
+
+@register_model_view(VirtualCircuit)
+class VirtualCircuitView(generic.ObjectView):
+ queryset = VirtualCircuit.objects.all()
+
+
+@register_model_view(VirtualCircuit, 'edit')
+class VirtualCircuitEditView(generic.ObjectEditView):
+ queryset = VirtualCircuit.objects.all()
+ form = forms.VirtualCircuitForm
+
+
+@register_model_view(VirtualCircuit, 'delete')
+class VirtualCircuitDeleteView(generic.ObjectDeleteView):
+ queryset = VirtualCircuit.objects.all()
+
+
+class VirtualCircuitBulkImportView(generic.BulkImportView):
+ queryset = VirtualCircuit.objects.all()
+ model_form = forms.VirtualCircuitImportForm
+ additional_permissions = [
+ 'circuits.add_virtualcircuittermination',
+ ]
+ related_object_forms = {
+ 'terminations': forms.VirtualCircuitTerminationImportRelatedForm,
+ }
+
+ def prep_related_object_data(self, parent, data):
+ data.update({'virtual_circuit': parent})
+ return data
+
+
+class VirtualCircuitBulkEditView(generic.BulkEditView):
+ queryset = VirtualCircuit.objects.annotate(
+ termination_count=count_related(VirtualCircuitTermination, 'virtual_circuit')
+ )
+ filterset = filtersets.VirtualCircuitFilterSet
+ table = tables.VirtualCircuitTable
+ form = forms.VirtualCircuitBulkEditForm
+
+
+class VirtualCircuitBulkDeleteView(generic.BulkDeleteView):
+ queryset = VirtualCircuit.objects.annotate(
+ termination_count=count_related(VirtualCircuitTermination, 'virtual_circuit')
+ )
+ filterset = filtersets.VirtualCircuitFilterSet
+ table = tables.VirtualCircuitTable
+
+
+#
+# Virtual circuit terminations
+#
+
+class VirtualCircuitTerminationListView(generic.ObjectListView):
+ queryset = VirtualCircuitTermination.objects.all()
+ filterset = filtersets.VirtualCircuitTerminationFilterSet
+ filterset_form = forms.VirtualCircuitTerminationFilterForm
+ table = tables.VirtualCircuitTerminationTable
+
+
+@register_model_view(VirtualCircuitTermination)
+class VirtualCircuitTerminationView(generic.ObjectView):
+ queryset = VirtualCircuitTermination.objects.all()
+
+
+@register_model_view(VirtualCircuitTermination, 'edit')
+class VirtualCircuitTerminationEditView(generic.ObjectEditView):
+ queryset = VirtualCircuitTermination.objects.all()
+ form = forms.VirtualCircuitTerminationForm
+
+
+@register_model_view(VirtualCircuitTermination, 'delete')
+class VirtualCircuitTerminationDeleteView(generic.ObjectDeleteView):
+ queryset = VirtualCircuitTermination.objects.all()
+
+
+class VirtualCircuitTerminationBulkImportView(generic.BulkImportView):
+ queryset = VirtualCircuitTermination.objects.all()
+ model_form = forms.VirtualCircuitTerminationImportForm
+
+
+class VirtualCircuitTerminationBulkEditView(generic.BulkEditView):
+ queryset = VirtualCircuitTermination.objects.all()
+ filterset = filtersets.VirtualCircuitTerminationFilterSet
+ table = tables.VirtualCircuitTerminationTable
+ form = forms.VirtualCircuitTerminationBulkEditForm
+
+
+class VirtualCircuitTerminationBulkDeleteView(generic.BulkDeleteView):
+ queryset = VirtualCircuitTermination.objects.all()
+ filterset = filtersets.VirtualCircuitTerminationFilterSet
+ table = tables.VirtualCircuitTerminationTable
diff --git a/netbox/core/api/nested_serializers.py b/netbox/core/api/nested_serializers.py
deleted file mode 100644
index df7b41ca7..000000000
--- a/netbox/core/api/nested_serializers.py
+++ /dev/null
@@ -1,47 +0,0 @@
-import warnings
-
-from rest_framework import serializers
-
-from core.choices import JobStatusChoices
-from core.models import *
-from netbox.api.fields import ChoiceField
-from netbox.api.serializers import WritableNestedSerializer
-from users.api.serializers import UserSerializer
-
-__all__ = (
- 'NestedDataFileSerializer',
- 'NestedDataSourceSerializer',
- 'NestedJobSerializer',
-)
-
-# TODO: Remove in v4.2
-warnings.warn(
- "Dedicated nested serializers will be removed in NetBox v4.2. Use Serializer(nested=True) instead.",
- DeprecationWarning
-)
-
-
-class NestedDataSourceSerializer(WritableNestedSerializer):
-
- class Meta:
- model = DataSource
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedDataFileSerializer(WritableNestedSerializer):
-
- class Meta:
- model = DataFile
- fields = ['id', 'url', 'display_url', 'display', 'path']
-
-
-class NestedJobSerializer(serializers.ModelSerializer):
- status = ChoiceField(choices=JobStatusChoices)
- user = UserSerializer(
- nested=True,
- read_only=True
- )
-
- class Meta:
- model = Job
- fields = ['url', 'display_url', 'created', 'completed', 'user', 'status']
diff --git a/netbox/core/api/schema.py b/netbox/core/api/schema.py
index 1ac822b8c..663ee2899 100644
--- a/netbox/core/api/schema.py
+++ b/netbox/core/api/schema.py
@@ -35,7 +35,10 @@ class ChoiceFieldFix(OpenApiSerializerFieldExtension):
elif direction == "response":
value = build_cf
- label = {**build_basic_type(OpenApiTypes.STR), "enum": list(OrderedDict.fromkeys(self.target.choices.values()))}
+ label = {
+ **build_basic_type(OpenApiTypes.STR),
+ "enum": list(OrderedDict.fromkeys(self.target.choices.values()))
+ }
return build_object_type(
properties={
@@ -155,6 +158,9 @@ class NetBoxAutoSchema(AutoSchema):
fields = {} if hasattr(serializer, 'child') else serializer.fields
remove_fields = []
+ # If you get a failure here for "AttributeError: 'cached_property' object has no attribute 'items'"
+ # it is probably because you are using a viewsets.ViewSet for the API View and are defining a
+ # serializer_class. You will also need to define a get_serializer() method like for GenericAPIView.
for child_name, child in fields.items():
# read_only fields don't need to be in writable (write only) serializers
if 'read_only' in dir(child) and child.read_only:
diff --git a/netbox/core/api/serializers.py b/netbox/core/api/serializers.py
index 2dde6be9f..9a6d4d726 100644
--- a/netbox/core/api/serializers.py
+++ b/netbox/core/api/serializers.py
@@ -1,3 +1,4 @@
from .serializers_.change_logging import *
from .serializers_.data import *
from .serializers_.jobs import *
+from .serializers_.tasks import *
diff --git a/netbox/core/api/serializers_/jobs.py b/netbox/core/api/serializers_/jobs.py
index 544dddb56..306287e88 100644
--- a/netbox/core/api/serializers_/jobs.py
+++ b/netbox/core/api/serializers_/jobs.py
@@ -22,7 +22,7 @@ class JobSerializer(BaseModelSerializer):
class Meta:
model = Job
fields = [
- 'id', 'url', 'display_url', 'display', 'object_type', 'object_id', 'name', 'status', 'created', 'scheduled', 'interval',
- 'started', 'completed', 'user', 'data', 'error', 'job_id',
+ 'id', 'url', 'display_url', 'display', 'object_type', 'object_id', 'name', 'status', 'created', 'scheduled',
+ 'interval', 'started', 'completed', 'user', 'data', 'error', 'job_id',
]
brief_fields = ('url', 'created', 'completed', 'user', 'status')
diff --git a/netbox/core/api/serializers_/tasks.py b/netbox/core/api/serializers_/tasks.py
new file mode 100644
index 000000000..53f2b5126
--- /dev/null
+++ b/netbox/core/api/serializers_/tasks.py
@@ -0,0 +1,87 @@
+from rest_framework import serializers
+from rest_framework.reverse import reverse
+
+__all__ = (
+ 'BackgroundTaskSerializer',
+ 'BackgroundQueueSerializer',
+ 'BackgroundWorkerSerializer',
+)
+
+
+class BackgroundTaskSerializer(serializers.Serializer):
+ id = serializers.CharField()
+ url = serializers.HyperlinkedIdentityField(
+ view_name='core-api:rqtask-detail',
+ lookup_field='id',
+ lookup_url_kwarg='pk'
+ )
+ description = serializers.CharField()
+ origin = serializers.CharField()
+ func_name = serializers.CharField()
+ args = serializers.ListField(child=serializers.CharField())
+ kwargs = serializers.DictField()
+ result = serializers.CharField()
+ timeout = serializers.IntegerField()
+ result_ttl = serializers.IntegerField()
+ created_at = serializers.DateTimeField()
+ enqueued_at = serializers.DateTimeField()
+ started_at = serializers.DateTimeField()
+ ended_at = serializers.DateTimeField()
+ worker_name = serializers.CharField()
+ position = serializers.SerializerMethodField()
+ status = serializers.SerializerMethodField()
+ meta = serializers.DictField()
+ last_heartbeat = serializers.CharField()
+
+ is_finished = serializers.BooleanField()
+ is_queued = serializers.BooleanField()
+ is_failed = serializers.BooleanField()
+ is_started = serializers.BooleanField()
+ is_deferred = serializers.BooleanField()
+ is_canceled = serializers.BooleanField()
+ is_scheduled = serializers.BooleanField()
+ is_stopped = serializers.BooleanField()
+
+ def get_position(self, obj) -> int:
+ return obj.get_position()
+
+ def get_status(self, obj) -> str:
+ return obj.get_status()
+
+
+class BackgroundQueueSerializer(serializers.Serializer):
+ name = serializers.CharField()
+ url = serializers.SerializerMethodField()
+ jobs = serializers.IntegerField()
+ oldest_job_timestamp = serializers.CharField()
+ index = serializers.IntegerField()
+ scheduler_pid = serializers.CharField()
+ workers = serializers.IntegerField()
+ finished_jobs = serializers.IntegerField()
+ started_jobs = serializers.IntegerField()
+ deferred_jobs = serializers.IntegerField()
+ failed_jobs = serializers.IntegerField()
+ scheduled_jobs = serializers.IntegerField()
+
+ def get_url(self, obj):
+ return reverse('core-api:rqqueue-detail', args=[obj['name']], request=self.context.get("request"))
+
+
+class BackgroundWorkerSerializer(serializers.Serializer):
+ name = serializers.CharField()
+ url = serializers.HyperlinkedIdentityField(
+ view_name='core-api:rqworker-detail',
+ lookup_field='name'
+ )
+ state = serializers.SerializerMethodField()
+ birth_date = serializers.DateTimeField()
+ queue_names = serializers.ListField(
+ child=serializers.CharField()
+ )
+ pid = serializers.CharField()
+ successful_job_count = serializers.IntegerField()
+ failed_job_count = serializers.IntegerField()
+ total_working_time = serializers.IntegerField()
+
+ def get_state(self, obj):
+ return obj.get_state()
diff --git a/netbox/core/api/urls.py b/netbox/core/api/urls.py
index 95ee1896e..3c22f1cf4 100644
--- a/netbox/core/api/urls.py
+++ b/netbox/core/api/urls.py
@@ -1,6 +1,7 @@
from netbox.api.routers import NetBoxRouter
from . import views
+app_name = 'core-api'
router = NetBoxRouter()
router.APIRootView = views.CoreRootView
@@ -9,6 +10,8 @@ router.register('data-sources', views.DataSourceViewSet)
router.register('data-files', views.DataFileViewSet)
router.register('jobs', views.JobViewSet)
router.register('object-changes', views.ObjectChangeViewSet)
+router.register('background-queues', views.BackgroundQueueViewSet, basename='rqqueue')
+router.register('background-workers', views.BackgroundWorkerViewSet, basename='rqworker')
+router.register('background-tasks', views.BackgroundTaskViewSet, basename='rqtask')
-app_name = 'core-api'
urlpatterns = router.urls
diff --git a/netbox/core/api/views.py b/netbox/core/api/views.py
index b3a024c02..4e5b148fc 100644
--- a/netbox/core/api/views.py
+++ b/netbox/core/api/views.py
@@ -1,5 +1,8 @@
+from django.http import Http404, HttpResponse
from django.shortcuts import get_object_or_404
from django.utils.translation import gettext_lazy as _
+from drf_spectacular.types import OpenApiTypes
+from drf_spectacular.utils import extend_schema
from rest_framework.decorators import action
from rest_framework.exceptions import PermissionDenied
from rest_framework.response import Response
@@ -10,8 +13,17 @@ from core import filtersets
from core.choices import DataSourceStatusChoices
from core.jobs import SyncDataSourceJob
from core.models import *
+from core.utils import delete_rq_job, enqueue_rq_job, get_rq_jobs, requeue_rq_job, stop_rq_job
+from django_rq.queues import get_redis_connection
+from django_rq.utils import get_statistics
+from django_rq.settings import QUEUES_LIST
from netbox.api.metadata import ContentTypeMetadata
+from netbox.api.pagination import LimitOffsetListPagination
from netbox.api.viewsets import NetBoxModelViewSet, NetBoxReadOnlyModelViewSet
+from rest_framework import viewsets
+from rest_framework.permissions import IsAdminUser
+from rq.job import Job as RQ_Job
+from rq.worker import Worker
from . import serializers
@@ -71,3 +83,152 @@ class ObjectChangeViewSet(ReadOnlyModelViewSet):
queryset = ObjectChange.objects.valid_models()
serializer_class = serializers.ObjectChangeSerializer
filterset_class = filtersets.ObjectChangeFilterSet
+
+
+class BaseRQViewSet(viewsets.ViewSet):
+ """
+ Base class for RQ view sets. Provides a list() method. Subclasses must implement get_data().
+ """
+ permission_classes = [IsAdminUser]
+ serializer_class = None
+
+ def get_data(self):
+ raise NotImplementedError()
+
+ @extend_schema(responses={200: OpenApiTypes.OBJECT})
+ def list(self, request):
+ data = self.get_data()
+ paginator = LimitOffsetListPagination()
+ data = paginator.paginate_list(data, request)
+
+ serializer = self.serializer_class(data, many=True, context={'request': request})
+ return paginator.get_paginated_response(serializer.data)
+
+ def get_serializer(self, *args, **kwargs):
+ """
+ Return the serializer instance that should be used for validating and
+ deserializing input, and for serializing output.
+ """
+ serializer_class = self.get_serializer_class()
+ kwargs['context'] = self.get_serializer_context()
+ return serializer_class(*args, **kwargs)
+
+
+class BackgroundQueueViewSet(BaseRQViewSet):
+ """
+ Retrieve a list of RQ Queues.
+ Note: Queue names are not URL safe so not returning a detail view.
+ """
+ serializer_class = serializers.BackgroundQueueSerializer
+ lookup_field = 'name'
+ lookup_value_regex = r'[\w.@+-]+'
+
+ def get_view_name(self):
+ return "Background Queues"
+
+ def get_data(self):
+ return get_statistics(run_maintenance_tasks=True)["queues"]
+
+ @extend_schema(responses={200: OpenApiTypes.OBJECT})
+ def retrieve(self, request, name):
+ data = self.get_data()
+ if not data:
+ raise Http404
+
+ for queue in data:
+ if queue['name'] == name:
+ serializer = self.serializer_class(queue, context={'request': request})
+ return Response(serializer.data)
+
+ raise Http404
+
+
+class BackgroundWorkerViewSet(BaseRQViewSet):
+ """
+ Retrieve a list of RQ Workers.
+ """
+ serializer_class = serializers.BackgroundWorkerSerializer
+ lookup_field = 'name'
+
+ def get_view_name(self):
+ return "Background Workers"
+
+ def get_data(self):
+ config = QUEUES_LIST[0]
+ return Worker.all(get_redis_connection(config['connection_config']))
+
+ def retrieve(self, request, name):
+ # all the RQ queues should use the same connection
+ config = QUEUES_LIST[0]
+ workers = Worker.all(get_redis_connection(config['connection_config']))
+ worker = next((item for item in workers if item.name == name), None)
+ if not worker:
+ raise Http404
+
+ serializer = serializers.BackgroundWorkerSerializer(worker, context={'request': request})
+ return Response(serializer.data)
+
+
+class BackgroundTaskViewSet(BaseRQViewSet):
+ """
+ Retrieve a list of RQ Tasks.
+ """
+ serializer_class = serializers.BackgroundTaskSerializer
+
+ def get_view_name(self):
+ return "Background Tasks"
+
+ def get_data(self):
+ return get_rq_jobs()
+
+ def get_task_from_id(self, task_id):
+ config = QUEUES_LIST[0]
+ task = RQ_Job.fetch(task_id, connection=get_redis_connection(config['connection_config']))
+ if not task:
+ raise Http404
+
+ return task
+
+ @extend_schema(responses={200: OpenApiTypes.OBJECT})
+ def retrieve(self, request, pk):
+ """
+ Retrieve the details of the specified RQ Task.
+ """
+ task = self.get_task_from_id(pk)
+ serializer = self.serializer_class(task, context={'request': request})
+ return Response(serializer.data)
+
+ @action(methods=["POST"], detail=True)
+ def delete(self, request, pk):
+ """
+ Delete the specified RQ Task.
+ """
+ delete_rq_job(pk)
+ return HttpResponse(status=200)
+
+ @action(methods=["POST"], detail=True)
+ def requeue(self, request, pk):
+ """
+ Requeues the specified RQ Task.
+ """
+ requeue_rq_job(pk)
+ return HttpResponse(status=200)
+
+ @action(methods=["POST"], detail=True)
+ def enqueue(self, request, pk):
+ """
+ Enqueues the specified RQ Task.
+ """
+ enqueue_rq_job(pk)
+ return HttpResponse(status=200)
+
+ @action(methods=["POST"], detail=True)
+ def stop(self, request, pk):
+ """
+ Stops the specified RQ Task.
+ """
+ stopped_jobs = stop_rq_job(pk)
+ if len(stopped_jobs) == 1:
+ return HttpResponse(status=200)
+ else:
+ return HttpResponse(status=204)
diff --git a/netbox/core/apps.py b/netbox/core/apps.py
index 1dfc7a65e..9674860b9 100644
--- a/netbox/core/apps.py
+++ b/netbox/core/apps.py
@@ -1,4 +1,6 @@
from django.apps import AppConfig
+from django.conf import settings
+from django.core.cache import cache
from django.db import models
from django.db.migrations.operations import AlterModelOptions
@@ -19,6 +21,11 @@ class CoreConfig(AppConfig):
from core.api import schema # noqa: F401
from netbox.models.features import register_models
from . import data_backends, events, search # noqa: F401
+ from netbox import context_managers # noqa: F401
# Register models
register_models(*self.get_models())
+
+ # Clear Redis cache on startup in development mode
+ if settings.DEBUG:
+ cache.clear()
diff --git a/netbox/core/choices.py b/netbox/core/choices.py
index 01a072ce1..442acc26b 100644
--- a/netbox/core/choices.py
+++ b/netbox/core/choices.py
@@ -72,6 +72,20 @@ class JobStatusChoices(ChoiceSet):
)
+class JobIntervalChoices(ChoiceSet):
+ INTERVAL_MINUTELY = 1
+ INTERVAL_HOURLY = 60
+ INTERVAL_DAILY = 60 * 24
+ INTERVAL_WEEKLY = 60 * 24 * 7
+
+ CHOICES = (
+ (INTERVAL_MINUTELY, _('Minutely')),
+ (INTERVAL_HOURLY, _('Hourly')),
+ (INTERVAL_DAILY, _('Daily')),
+ (INTERVAL_WEEKLY, _('Weekly')),
+ )
+
+
#
# ObjectChanges
#
diff --git a/netbox/core/jobs.py b/netbox/core/jobs.py
index d2b846398..891b1cbdb 100644
--- a/netbox/core/jobs.py
+++ b/netbox/core/jobs.py
@@ -1,8 +1,11 @@
import logging
+import requests
+import sys
-from netbox.jobs import JobRunner
+from django.conf import settings
+from netbox.jobs import JobRunner, system_job
from netbox.search.backends import search_backend
-from .choices import DataSourceStatusChoices
+from .choices import DataSourceStatusChoices, JobIntervalChoices
from .exceptions import SyncError
from .models import DataSource
@@ -31,3 +34,44 @@ class SyncDataSourceJob(JobRunner):
if type(e) is SyncError:
logging.error(e)
raise e
+
+
+@system_job(interval=JobIntervalChoices.INTERVAL_DAILY)
+class SystemHousekeepingJob(JobRunner):
+ """
+ Perform daily system housekeeping functions.
+ """
+ class Meta:
+ name = "System Housekeeping"
+
+ def run(self, *args, **kwargs):
+ # Skip if running in development or test mode
+ if settings.DEBUG or 'test' in sys.argv:
+ return
+
+ # TODO: Migrate other housekeeping functions from the `housekeeping` management command.
+ self.send_census_report()
+
+ @staticmethod
+ def send_census_report():
+ """
+ Send a census report (if enabled).
+ """
+ # Skip if census reporting is disabled
+ if settings.ISOLATED_DEPLOYMENT or not settings.CENSUS_REPORTING_ENABLED:
+ return
+
+ census_data = {
+ 'version': settings.RELEASE.full_version,
+ 'python_version': sys.version.split()[0],
+ 'deployment_id': settings.DEPLOYMENT_ID,
+ }
+ try:
+ requests.get(
+ url=settings.CENSUS_URL,
+ params=census_data,
+ timeout=3,
+ proxies=settings.HTTP_PROXIES
+ )
+ except requests.exceptions.RequestException:
+ pass
diff --git a/netbox/core/management/commands/rqworker.py b/netbox/core/management/commands/rqworker.py
index e1fb6fd11..b2879c3d8 100644
--- a/netbox/core/management/commands/rqworker.py
+++ b/netbox/core/management/commands/rqworker.py
@@ -2,6 +2,8 @@ import logging
from django_rq.management.commands.rqworker import Command as _Command
+from netbox.registry import registry
+
DEFAULT_QUEUES = ('high', 'default', 'low')
@@ -14,6 +16,15 @@ class Command(_Command):
of only the 'default' queue).
"""
def handle(self, *args, **options):
+ # Setup system jobs.
+ for job, kwargs in registry['system_jobs'].items():
+ try:
+ interval = kwargs['interval']
+ except KeyError:
+ raise TypeError("System job must specify an interval (in minutes).")
+ logger.debug(f"Scheduling system job {job.name} (interval={interval})")
+ job.enqueue_once(**kwargs)
+
# Run the worker with scheduler functionality
options['with_scheduler'] = True
diff --git a/netbox/core/migrations/0001_squashed_0005.py b/netbox/core/migrations/0001_squashed_0005.py
index 971370bf2..b89fa3b25 100644
--- a/netbox/core/migrations/0001_squashed_0005.py
+++ b/netbox/core/migrations/0001_squashed_0005.py
@@ -8,13 +8,12 @@ import utilities.json
class Migration(migrations.Migration):
-
replaces = [
('core', '0001_initial'),
('core', '0002_managedfile'),
('core', '0003_job'),
('core', '0004_replicate_jobresults'),
- ('core', '0005_job_created_auto_now')
+ ('core', '0005_job_created_auto_now'),
]
dependencies = [
@@ -30,7 +29,10 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('description', models.CharField(blank=True, max_length=200)),
('comments', models.TextField(blank=True)),
('name', models.CharField(max_length=100, unique=True)),
@@ -55,9 +57,28 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(editable=False)),
('path', models.CharField(editable=False, max_length=1000)),
('size', models.PositiveIntegerField(editable=False)),
- ('hash', models.CharField(editable=False, max_length=64, validators=[django.core.validators.RegexValidator(message='Length must be 64 hexadecimal characters.', regex='^[0-9a-f]{64}$')])),
+ (
+ 'hash',
+ models.CharField(
+ editable=False,
+ max_length=64,
+ validators=[
+ django.core.validators.RegexValidator(
+ message='Length must be 64 hexadecimal characters.', regex='^[0-9a-f]{64}$'
+ )
+ ],
+ ),
+ ),
('data', models.BinaryField()),
- ('source', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='datafiles', to='core.datasource')),
+ (
+ 'source',
+ models.ForeignKey(
+ editable=False,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='datafiles',
+ to='core.datasource',
+ ),
+ ),
],
options={
'ordering': ('source', 'path'),
@@ -76,8 +97,18 @@ class Migration(migrations.Migration):
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('object_id', models.PositiveBigIntegerField()),
- ('datafile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='core.datafile')),
- ('object_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.contenttype')),
+ (
+ 'datafile',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='+', to='core.datafile'
+ ),
+ ),
+ (
+ 'object_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.contenttype'
+ ),
+ ),
],
options={
'indexes': [models.Index(fields=['object_type', 'object_id'], name='core_autosy_object__c17bac_idx')],
@@ -97,8 +128,26 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(blank=True, editable=False, null=True)),
('file_root', models.CharField(max_length=1000)),
('file_path', models.FilePathField(editable=False)),
- ('data_file', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='core.datafile')),
- ('data_source', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='core.datasource')),
+ (
+ 'data_file',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='core.datafile',
+ ),
+ ),
+ (
+ 'data_source',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='core.datasource',
+ ),
+ ),
('auto_sync_enabled', models.BooleanField(default=False)),
],
options={
@@ -108,7 +157,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='managedfile',
- constraint=models.UniqueConstraint(fields=('file_root', 'file_path'), name='core_managedfile_unique_root_path'),
+ constraint=models.UniqueConstraint(
+ fields=('file_root', 'file_path'), name='core_managedfile_unique_root_path'
+ ),
),
migrations.CreateModel(
name='Job',
@@ -118,14 +169,33 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=200)),
('created', models.DateTimeField()),
('scheduled', models.DateTimeField(blank=True, null=True)),
- ('interval', models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)])),
+ (
+ 'interval',
+ models.PositiveIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
+ ),
('started', models.DateTimeField(blank=True, null=True)),
('completed', models.DateTimeField(blank=True, null=True)),
('status', models.CharField(default='pending', max_length=30)),
('data', models.JSONField(blank=True, null=True)),
('job_id', models.UUIDField(unique=True)),
- ('object_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='jobs', to='contenttypes.contenttype')),
- ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
+ (
+ 'object_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='jobs', to='contenttypes.contenttype'
+ ),
+ ),
+ (
+ 'user',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to=settings.AUTH_USER_MODEL,
+ ),
+ ),
],
options={
'ordering': ['-created'],
diff --git a/netbox/core/migrations/0006_datasource_type_remove_choices.py b/netbox/core/migrations/0006_datasource_type_remove_choices.py
index 0ad8d8854..7c9914298 100644
--- a/netbox/core/migrations/0006_datasource_type_remove_choices.py
+++ b/netbox/core/migrations/0006_datasource_type_remove_choices.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('core', '0005_job_created_auto_now'),
]
diff --git a/netbox/core/migrations/0007_job_add_error_field.py b/netbox/core/migrations/0007_job_add_error_field.py
index e2e173bfd..3b0e02b56 100644
--- a/netbox/core/migrations/0007_job_add_error_field.py
+++ b/netbox/core/migrations/0007_job_add_error_field.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('core', '0006_datasource_type_remove_choices'),
]
diff --git a/netbox/core/migrations/0008_contenttype_proxy.py b/netbox/core/migrations/0008_contenttype_proxy.py
index dee82a969..9acaf3ad7 100644
--- a/netbox/core/migrations/0008_contenttype_proxy.py
+++ b/netbox/core/migrations/0008_contenttype_proxy.py
@@ -3,7 +3,6 @@ from django.db import migrations
class Migration(migrations.Migration):
-
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('core', '0007_job_add_error_field'),
@@ -12,8 +11,7 @@ class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
name='ObjectType',
- fields=[
- ],
+ fields=[],
options={
'proxy': True,
'indexes': [],
diff --git a/netbox/core/migrations/0009_configrevision.py b/netbox/core/migrations/0009_configrevision.py
index e7f817a16..6acd4531d 100644
--- a/netbox/core/migrations/0009_configrevision.py
+++ b/netbox/core/migrations/0009_configrevision.py
@@ -2,7 +2,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('core', '0008_contenttype_proxy'),
]
diff --git a/netbox/core/migrations/0010_gfk_indexes.py b/netbox/core/migrations/0010_gfk_indexes.py
index d51bc67ad..1e593a0c7 100644
--- a/netbox/core/migrations/0010_gfk_indexes.py
+++ b/netbox/core/migrations/0010_gfk_indexes.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('core', '0009_configrevision'),
]
diff --git a/netbox/core/migrations/0011_move_objectchange.py b/netbox/core/migrations/0011_move_objectchange.py
index 2b41133ec..673763ce4 100644
--- a/netbox/core/migrations/0011_move_objectchange.py
+++ b/netbox/core/migrations/0011_move_objectchange.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('core', '0010_gfk_indexes'),
@@ -27,15 +26,49 @@ class Migration(migrations.Migration):
('object_repr', models.CharField(editable=False, max_length=200)),
('prechange_data', models.JSONField(blank=True, editable=False, null=True)),
('postchange_data', models.JSONField(blank=True, editable=False, null=True)),
- ('changed_object_type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype')),
- ('related_object_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype')),
- ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='changes', to=settings.AUTH_USER_MODEL)),
+ (
+ 'changed_object_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ (
+ 'related_object_type',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ (
+ 'user',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='changes',
+ to=settings.AUTH_USER_MODEL,
+ ),
+ ),
],
options={
'verbose_name': 'object change',
'verbose_name_plural': 'object changes',
'ordering': ['-time'],
- 'indexes': [models.Index(fields=['changed_object_type', 'changed_object_id'], name='core_object_changed_c227ce_idx'), models.Index(fields=['related_object_type', 'related_object_id'], name='core_object_related_3375d6_idx')],
+ 'indexes': [
+ models.Index(
+ fields=['changed_object_type', 'changed_object_id'],
+ name='core_object_changed_c227ce_idx',
+ ),
+ models.Index(
+ fields=['related_object_type', 'related_object_id'],
+ name='core_object_related_3375d6_idx',
+ ),
+ ],
},
),
],
diff --git a/netbox/core/migrations/0012_job_object_type_optional.py b/netbox/core/migrations/0012_job_object_type_optional.py
index 3c6664afc..3798b1285 100644
--- a/netbox/core/migrations/0012_job_object_type_optional.py
+++ b/netbox/core/migrations/0012_job_object_type_optional.py
@@ -3,7 +3,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('core', '0011_move_objectchange'),
@@ -18,7 +17,7 @@ class Migration(migrations.Migration):
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name='jobs',
- to='contenttypes.contenttype'
+ to='contenttypes.contenttype',
),
),
]
diff --git a/netbox/core/models/data.py b/netbox/core/models/data.py
index 6824b4605..39ee8fa57 100644
--- a/netbox/core/models/data.py
+++ b/netbox/core/models/data.py
@@ -84,9 +84,6 @@ class DataSource(JobsMixin, PrimaryModel):
def __str__(self):
return f'{self.name}'
- def get_absolute_url(self):
- return reverse('core:datasource', args=[self.pk])
-
@property
def docs_url(self):
return f'{settings.STATIC_URL}docs/models/{self._meta.app_label}/{self._meta.model_name}/'
diff --git a/netbox/core/models/files.py b/netbox/core/models/files.py
index 7b626a441..cc446bac7 100644
--- a/netbox/core/models/files.py
+++ b/netbox/core/models/files.py
@@ -93,9 +93,14 @@ class ManagedFile(SyncedDataMixin, models.Model):
self.file_path = os.path.basename(self.data_path)
# Ensure that the file root and path make a unique pair
- if self._meta.model.objects.filter(file_root=self.file_root, file_path=self.file_path).exclude(pk=self.pk).exists():
+ if self._meta.model.objects.filter(
+ file_root=self.file_root, file_path=self.file_path
+ ).exclude(pk=self.pk).exists():
raise ValidationError(
- f"A {self._meta.verbose_name.lower()} with this file path already exists ({self.file_root}/{self.file_path}).")
+ _("A {model} with this file path already exists ({path}).").format(
+ model=self._meta.verbose_name.lower(),
+ path=f"{self.file_root}/{self.file_path}"
+ ))
def delete(self, *args, **kwargs):
# Delete file from disk
diff --git a/netbox/core/models/jobs.py b/netbox/core/models/jobs.py
index 3cfea3e2a..5caa9cc2d 100644
--- a/netbox/core/models/jobs.py
+++ b/netbox/core/models/jobs.py
@@ -9,6 +9,7 @@ from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.translation import gettext as _
+from rq.exceptions import InvalidJobOperation
from core.choices import JobStatusChoices
from core.models import ObjectType
@@ -158,7 +159,11 @@ class Job(models.Model):
job = queue.fetch_job(str(self.job_id))
if job:
- job.cancel()
+ try:
+ job.cancel()
+ except InvalidJobOperation:
+ # Job may raise this exception from get_status() if missing from Redis
+ pass
def start(self):
"""
@@ -198,7 +203,17 @@ class Job(models.Model):
job_end.send(self)
@classmethod
- def enqueue(cls, func, instance=None, name='', user=None, schedule_at=None, interval=None, immediate=False, **kwargs):
+ def enqueue(
+ cls,
+ func,
+ instance=None,
+ name='',
+ user=None,
+ schedule_at=None,
+ interval=None,
+ immediate=False,
+ **kwargs
+ ):
"""
Create a Job instance and enqueue a job using the given callable
diff --git a/netbox/core/tests/test_api.py b/netbox/core/tests/test_api.py
index eeb3bd9c4..d8fb8fd83 100644
--- a/netbox/core/tests/test_api.py
+++ b/netbox/core/tests/test_api.py
@@ -1,7 +1,14 @@
+import uuid
+
+from django_rq import get_queue
+from django_rq.workers import get_worker
from django.urls import reverse
from django.utils import timezone
+from rq.job import Job as RQ_Job, JobStatus
+from rq.registry import FailedJobRegistry, StartedJobRegistry
-from utilities.testing import APITestCase, APIViewTestCases
+from users.models import Token, User
+from utilities.testing import APITestCase, APIViewTestCases, TestCase
from ..models import *
@@ -91,3 +98,164 @@ class DataFileTest(
),
)
DataFile.objects.bulk_create(data_files)
+
+
+class BackgroundTaskTestCase(TestCase):
+ user_permissions = ()
+
+ @staticmethod
+ def dummy_job_default():
+ return "Job finished"
+
+ @staticmethod
+ def dummy_job_failing():
+ raise Exception("Job failed")
+
+ def setUp(self):
+ """
+ Create a user and token for API calls.
+ """
+ # Create the test user and assign permissions
+ self.user = User.objects.create_user(username='testuser')
+ self.user.is_staff = True
+ self.user.is_active = True
+ self.user.save()
+ self.token = Token.objects.create(user=self.user)
+ self.header = {'HTTP_AUTHORIZATION': f'Token {self.token.key}'}
+
+ # Clear all queues prior to running each test
+ get_queue('default').connection.flushall()
+ get_queue('high').connection.flushall()
+ get_queue('low').connection.flushall()
+
+ def test_background_queue_list(self):
+ url = reverse('core-api:rqqueue-list')
+
+ # Attempt to load view without permission
+ self.user.is_staff = False
+ self.user.save()
+ response = self.client.get(url, **self.header)
+ self.assertEqual(response.status_code, 403)
+
+ # Load view with permission
+ self.user.is_staff = True
+ self.user.save()
+ response = self.client.get(url, **self.header)
+ self.assertEqual(response.status_code, 200)
+ self.assertIn('default', str(response.content))
+ self.assertIn('high', str(response.content))
+ self.assertIn('low', str(response.content))
+
+ def test_background_queue(self):
+ response = self.client.get(reverse('core-api:rqqueue-detail', args=['default']), **self.header)
+ self.assertEqual(response.status_code, 200)
+ self.assertIn('default', str(response.content))
+ self.assertIn('oldest_job_timestamp', str(response.content))
+ self.assertIn('scheduled_jobs', str(response.content))
+
+ def test_background_task_list(self):
+ queue = get_queue('default')
+ queue.enqueue(self.dummy_job_default)
+
+ response = self.client.get(reverse('core-api:rqtask-list'), **self.header)
+ self.assertEqual(response.status_code, 200)
+ self.assertIn('origin', str(response.content))
+ self.assertIn('core.tests.test_api.BackgroundTaskTestCase.dummy_job_default()', str(response.content))
+
+ def test_background_task(self):
+ queue = get_queue('default')
+ job = queue.enqueue(self.dummy_job_default)
+
+ response = self.client.get(reverse('core-api:rqtask-detail', args=[job.id]), **self.header)
+ self.assertEqual(response.status_code, 200)
+ self.assertIn(str(job.id), str(response.content))
+ self.assertIn('origin', str(response.content))
+ self.assertIn('meta', str(response.content))
+ self.assertIn('kwargs', str(response.content))
+
+ def test_background_task_delete(self):
+ queue = get_queue('default')
+ job = queue.enqueue(self.dummy_job_default)
+
+ response = self.client.post(reverse('core-api:rqtask-delete', args=[job.id]), **self.header)
+ self.assertEqual(response.status_code, 200)
+ self.assertFalse(RQ_Job.exists(job.id, connection=queue.connection))
+ queue = get_queue('default')
+ self.assertNotIn(job.id, queue.job_ids)
+
+ def test_background_task_requeue(self):
+ queue = get_queue('default')
+
+ # Enqueue & run a job that will fail
+ job = queue.enqueue(self.dummy_job_failing)
+ worker = get_worker('default')
+ worker.work(burst=True)
+ self.assertTrue(job.is_failed)
+
+ # Re-enqueue the failed job and check that its status has been reset
+ response = self.client.post(reverse('core-api:rqtask-requeue', args=[job.id]), **self.header)
+ self.assertEqual(response.status_code, 200)
+ job = RQ_Job.fetch(job.id, queue.connection)
+ self.assertFalse(job.is_failed)
+
+ def test_background_task_enqueue(self):
+ queue = get_queue('default')
+
+ # Enqueue some jobs that each depends on its predecessor
+ job = previous_job = None
+ for _ in range(0, 3):
+ job = queue.enqueue(self.dummy_job_default, depends_on=previous_job)
+ previous_job = job
+
+ # Check that the last job to be enqueued has a status of deferred
+ self.assertIsNotNone(job)
+ self.assertEqual(job.get_status(), JobStatus.DEFERRED)
+ self.assertIsNone(job.enqueued_at)
+
+ # Force-enqueue the deferred job
+ response = self.client.post(reverse('core-api:rqtask-enqueue', args=[job.id]), **self.header)
+ self.assertEqual(response.status_code, 200)
+
+ # Check that job's status is updated correctly
+ job = queue.fetch_job(job.id)
+ self.assertEqual(job.get_status(), JobStatus.QUEUED)
+ self.assertIsNotNone(job.enqueued_at)
+
+ def test_background_task_stop(self):
+ queue = get_queue('default')
+
+ worker = get_worker('default')
+ job = queue.enqueue(self.dummy_job_default)
+ worker.prepare_job_execution(job)
+
+ self.assertEqual(job.get_status(), JobStatus.STARTED)
+ response = self.client.post(reverse('core-api:rqtask-stop', args=[job.id]), **self.header)
+ self.assertEqual(response.status_code, 200)
+ worker.monitor_work_horse(job, queue) # Sets the job as Failed and removes from Started
+ started_job_registry = StartedJobRegistry(queue.name, connection=queue.connection)
+ self.assertEqual(len(started_job_registry), 0)
+
+ canceled_job_registry = FailedJobRegistry(queue.name, connection=queue.connection)
+ self.assertEqual(len(canceled_job_registry), 1)
+ self.assertIn(job.id, canceled_job_registry)
+
+ def test_worker_list(self):
+ worker1 = get_worker('default', name=uuid.uuid4().hex)
+ worker1.register_birth()
+
+ worker2 = get_worker('high')
+ worker2.register_birth()
+
+ response = self.client.get(reverse('core-api:rqworker-list'), **self.header)
+ self.assertEqual(response.status_code, 200)
+ self.assertIn(str(worker1.name), str(response.content))
+
+ def test_worker(self):
+ worker1 = get_worker('default', name=uuid.uuid4().hex)
+ worker1.register_birth()
+
+ response = self.client.get(reverse('core-api:rqworker-detail', args=[worker1.name]), **self.header)
+ self.assertEqual(response.status_code, 200)
+ self.assertIn(str(worker1.name), str(response.content))
+ self.assertIn('birth_date', str(response.content))
+ self.assertIn('total_working_time', str(response.content))
diff --git a/netbox/core/tests/test_changelog.py b/netbox/core/tests/test_changelog.py
index c58968ee8..4914dbaf3 100644
--- a/netbox/core/tests/test_changelog.py
+++ b/netbox/core/tests/test_changelog.py
@@ -76,10 +76,6 @@ class ChangeLogViewTest(ModelViewTestCase):
self.assertEqual(oc.postchange_data['custom_fields']['cf2'], form_data['cf_cf2'])
self.assertEqual(oc.postchange_data['tags'], ['Tag 1', 'Tag 2'])
- # Check that private attributes were included in raw data but not display data
- self.assertIn('_name', oc.postchange_data)
- self.assertNotIn('_name', oc.postchange_data_clean)
-
def test_update_object(self):
site = Site(name='Site 1', slug='site-1')
site.save()
@@ -117,12 +113,6 @@ class ChangeLogViewTest(ModelViewTestCase):
self.assertEqual(oc.postchange_data['custom_fields']['cf2'], form_data['cf_cf2'])
self.assertEqual(oc.postchange_data['tags'], ['Tag 3'])
- # Check that private attributes were included in raw data but not display data
- self.assertIn('_name', oc.prechange_data)
- self.assertNotIn('_name', oc.prechange_data_clean)
- self.assertIn('_name', oc.postchange_data)
- self.assertNotIn('_name', oc.postchange_data_clean)
-
def test_delete_object(self):
site = Site(
name='Site 1',
@@ -153,10 +143,6 @@ class ChangeLogViewTest(ModelViewTestCase):
self.assertEqual(oc.prechange_data['tags'], ['Tag 1', 'Tag 2'])
self.assertEqual(oc.postchange_data, None)
- # Check that private attributes were included in raw data but not display data
- self.assertIn('_name', oc.prechange_data)
- self.assertNotIn('_name', oc.prechange_data_clean)
-
def test_bulk_update_objects(self):
sites = (
Site(name='Site 1', slug='site-1', status=SiteStatusChoices.STATUS_ACTIVE),
@@ -353,10 +339,6 @@ class ChangeLogAPITest(APITestCase):
self.assertEqual(oc.postchange_data['custom_fields'], data['custom_fields'])
self.assertEqual(oc.postchange_data['tags'], ['Tag 1', 'Tag 2'])
- # Check that private attributes were included in raw data but not display data
- self.assertIn('_name', oc.postchange_data)
- self.assertNotIn('_name', oc.postchange_data_clean)
-
def test_update_object(self):
site = Site(name='Site 1', slug='site-1')
site.save()
@@ -389,12 +371,6 @@ class ChangeLogAPITest(APITestCase):
self.assertEqual(oc.postchange_data['custom_fields'], data['custom_fields'])
self.assertEqual(oc.postchange_data['tags'], ['Tag 3'])
- # Check that private attributes were included in raw data but not display data
- self.assertIn('_name', oc.prechange_data)
- self.assertNotIn('_name', oc.prechange_data_clean)
- self.assertIn('_name', oc.postchange_data)
- self.assertNotIn('_name', oc.postchange_data_clean)
-
def test_delete_object(self):
site = Site(
name='Site 1',
@@ -423,10 +399,6 @@ class ChangeLogAPITest(APITestCase):
self.assertEqual(oc.prechange_data['tags'], ['Tag 1', 'Tag 2'])
self.assertEqual(oc.postchange_data, None)
- # Check that private attributes were included in raw data but not display data
- self.assertIn('_name', oc.prechange_data)
- self.assertNotIn('_name', oc.prechange_data_clean)
-
def test_bulk_create_objects(self):
data = (
{
diff --git a/netbox/core/tests/test_views.py b/netbox/core/tests/test_views.py
index 01912b4d6..047b51ef6 100644
--- a/netbox/core/tests/test_views.py
+++ b/netbox/core/tests/test_views.py
@@ -346,3 +346,32 @@ class BackgroundTaskTestCase(TestCase):
self.assertIn(str(worker1.name), str(response.content))
self.assertIn('Birth', str(response.content))
self.assertIn('Total working time', str(response.content))
+
+
+class SystemTestCase(TestCase):
+
+ def setUp(self):
+ super().setUp()
+
+ self.user.is_staff = True
+ self.user.save()
+
+ def test_system_view_default(self):
+ # Test UI render
+ response = self.client.get(reverse('core:system'))
+ self.assertEqual(response.status_code, 200)
+
+ # Test export
+ response = self.client.get(f"{reverse('core:system')}?export=true")
+ self.assertEqual(response.status_code, 200)
+
+ def test_system_view_with_config_revision(self):
+ ConfigRevision.objects.create()
+
+ # Test UI render
+ response = self.client.get(reverse('core:system'))
+ self.assertEqual(response.status_code, 200)
+
+ # Test export
+ response = self.client.get(f"{reverse('core:system')}?export=true")
+ self.assertEqual(response.status_code, 200)
diff --git a/netbox/core/urls.py b/netbox/core/urls.py
index fd6ec8996..b922c8bed 100644
--- a/netbox/core/urls.py
+++ b/netbox/core/urls.py
@@ -6,51 +6,50 @@ from . import views
app_name = 'core'
urlpatterns = (
- # Data sources
- path('data-sources/', views.DataSourceListView.as_view(), name='datasource_list'),
- path('data-sources/add/', views.DataSourceEditView.as_view(), name='datasource_add'),
- path('data-sources/import/', views.DataSourceBulkImportView.as_view(), name='datasource_import'),
- path('data-sources/edit/', views.DataSourceBulkEditView.as_view(), name='datasource_bulk_edit'),
- path('data-sources/delete/', views.DataSourceBulkDeleteView.as_view(), name='datasource_bulk_delete'),
+ path('data-sources/', include(get_model_urls('core', 'datasource', detail=False))),
path('data-sources//', include(get_model_urls('core', 'datasource'))),
- # Data files
- path('data-files/', views.DataFileListView.as_view(), name='datafile_list'),
- path('data-files/delete/', views.DataFileBulkDeleteView.as_view(), name='datafile_bulk_delete'),
+ path('data-files/', include(get_model_urls('core', 'datafile', detail=False))),
path('data-files//', include(get_model_urls('core', 'datafile'))),
- # Job results
- path('jobs/', views.JobListView.as_view(), name='job_list'),
- path('jobs/delete/', views.JobBulkDeleteView.as_view(), name='job_bulk_delete'),
- path('jobs//', views.JobView.as_view(), name='job'),
- path('jobs//delete/', views.JobDeleteView.as_view(), name='job_delete'),
+ path('jobs/', include(get_model_urls('core', 'job', detail=False))),
+ path('jobs//', include(get_model_urls('core', 'job'))),
- # Change logging
- path('changelog/', views.ObjectChangeListView.as_view(), name='objectchange_list'),
+ path('changelog/', include(get_model_urls('core', 'objectchange', detail=False))),
path('changelog//', include(get_model_urls('core', 'objectchange'))),
# Background Tasks
path('background-queues/', views.BackgroundQueueListView.as_view(), name='background_queue_list'),
- path('background-queues///', views.BackgroundTaskListView.as_view(), name='background_task_list'),
+ path(
+ 'background-queues///',
+ views.BackgroundTaskListView.as_view(),
+ name='background_task_list'
+ ),
path('background-tasks//', views.BackgroundTaskView.as_view(), name='background_task'),
- path('background-tasks//delete/', views.BackgroundTaskDeleteView.as_view(), name='background_task_delete'),
- path('background-tasks//requeue/', views.BackgroundTaskRequeueView.as_view(), name='background_task_requeue'),
- path('background-tasks//enqueue/', views.BackgroundTaskEnqueueView.as_view(), name='background_task_enqueue'),
+ path(
+ 'background-tasks//delete/',
+ views.BackgroundTaskDeleteView.as_view(),
+ name='background_task_delete'
+ ),
+ path(
+ 'background-tasks//requeue/',
+ views.BackgroundTaskRequeueView.as_view(),
+ name='background_task_requeue'
+ ),
+ path(
+ 'background-tasks//enqueue/',
+ views.BackgroundTaskEnqueueView.as_view(),
+ name='background_task_enqueue'
+ ),
path('background-tasks//stop/', views.BackgroundTaskStopView.as_view(), name='background_task_stop'),
path('background-workers//', views.WorkerListView.as_view(), name='worker_list'),
path('background-workers//', views.WorkerView.as_view(), name='worker'),
- # Config revisions
- path('config-revisions/', views.ConfigRevisionListView.as_view(), name='configrevision_list'),
- path('config-revisions/add/', views.ConfigRevisionEditView.as_view(), name='configrevision_add'),
- path('config-revisions/delete/', views.ConfigRevisionBulkDeleteView.as_view(), name='configrevision_bulk_delete'),
- path('config-revisions//restore/', views.ConfigRevisionRestoreView.as_view(), name='configrevision_restore'),
+ path('config-revisions/', include(get_model_urls('core', 'configrevision', detail=False))),
path('config-revisions//', include(get_model_urls('core', 'configrevision'))),
- # System
path('system/', views.SystemView.as_view(), name='system'),
- # Plugins
path('plugins/', views.PluginListView.as_view(), name='plugin_list'),
path('plugins//', views.PluginView.as_view(), name='plugin'),
)
diff --git a/netbox/core/utils.py b/netbox/core/utils.py
new file mode 100644
index 000000000..26adfdfa2
--- /dev/null
+++ b/netbox/core/utils.py
@@ -0,0 +1,155 @@
+from django.http import Http404
+from django.utils.translation import gettext_lazy as _
+from django_rq.queues import get_queue, get_queue_by_index, get_redis_connection
+from django_rq.settings import QUEUES_MAP, QUEUES_LIST
+from django_rq.utils import get_jobs, stop_jobs
+from rq import requeue_job
+from rq.exceptions import NoSuchJobError
+from rq.job import Job as RQ_Job, JobStatus as RQJobStatus
+from rq.registry import (
+ DeferredJobRegistry,
+ FailedJobRegistry,
+ FinishedJobRegistry,
+ ScheduledJobRegistry,
+ StartedJobRegistry,
+)
+
+__all__ = (
+ 'delete_rq_job',
+ 'enqueue_rq_job',
+ 'get_rq_jobs',
+ 'get_rq_jobs_from_status',
+ 'requeue_rq_job',
+ 'stop_rq_job',
+)
+
+
+def get_rq_jobs():
+ """
+ Return a list of all RQ jobs.
+ """
+ jobs = set()
+
+ for queue in QUEUES_LIST:
+ queue = get_queue(queue['name'])
+ jobs.update(queue.get_jobs())
+
+ return list(jobs)
+
+
+def get_rq_jobs_from_status(queue, status):
+ """
+ Return the RQ jobs with the given status.
+ """
+ jobs = []
+
+ try:
+ registry_cls = {
+ RQJobStatus.STARTED: StartedJobRegistry,
+ RQJobStatus.DEFERRED: DeferredJobRegistry,
+ RQJobStatus.FINISHED: FinishedJobRegistry,
+ RQJobStatus.FAILED: FailedJobRegistry,
+ RQJobStatus.SCHEDULED: ScheduledJobRegistry,
+ }[status]
+ except KeyError:
+ raise Http404
+ registry = registry_cls(queue.name, queue.connection)
+
+ job_ids = registry.get_job_ids()
+ if status != RQJobStatus.DEFERRED:
+ jobs = get_jobs(queue, job_ids, registry)
+ else:
+ # Deferred jobs require special handling
+ for job_id in job_ids:
+ try:
+ jobs.append(RQ_Job.fetch(job_id, connection=queue.connection, serializer=queue.serializer))
+ except NoSuchJobError:
+ pass
+
+ if jobs and status == RQJobStatus.SCHEDULED:
+ for job in jobs:
+ job.scheduled_at = registry.get_scheduled_time(job)
+
+ return jobs
+
+
+def delete_rq_job(job_id):
+ """
+ Delete the specified RQ job.
+ """
+ config = QUEUES_LIST[0]
+ try:
+ job = RQ_Job.fetch(job_id, connection=get_redis_connection(config['connection_config']),)
+ except NoSuchJobError:
+ raise Http404(_("Job {job_id} not found").format(job_id=job_id))
+
+ queue_index = QUEUES_MAP[job.origin]
+ queue = get_queue_by_index(queue_index)
+
+ # Remove job id from queue and delete the actual job
+ queue.connection.lrem(queue.key, 0, job.id)
+ job.delete()
+
+
+def requeue_rq_job(job_id):
+ """
+ Requeue the specified RQ job.
+ """
+ config = QUEUES_LIST[0]
+ try:
+ job = RQ_Job.fetch(job_id, connection=get_redis_connection(config['connection_config']),)
+ except NoSuchJobError:
+ raise Http404(_("Job {id} not found.").format(id=job_id))
+
+ queue_index = QUEUES_MAP[job.origin]
+ queue = get_queue_by_index(queue_index)
+
+ requeue_job(job_id, connection=queue.connection, serializer=queue.serializer)
+
+
+def enqueue_rq_job(job_id):
+ """
+ Enqueue the specified RQ job.
+ """
+ config = QUEUES_LIST[0]
+ try:
+ job = RQ_Job.fetch(job_id, connection=get_redis_connection(config['connection_config']),)
+ except NoSuchJobError:
+ raise Http404(_("Job {id} not found.").format(id=job_id))
+
+ queue_index = QUEUES_MAP[job.origin]
+ queue = get_queue_by_index(queue_index)
+
+ try:
+ # _enqueue_job is new in RQ 1.14, this is used to enqueue
+ # job regardless of its dependencies
+ queue._enqueue_job(job)
+ except AttributeError:
+ queue.enqueue_job(job)
+
+ # Remove job from correct registry if needed
+ if job.get_status() == RQJobStatus.DEFERRED:
+ registry = DeferredJobRegistry(queue.name, queue.connection)
+ registry.remove(job)
+ elif job.get_status() == RQJobStatus.FINISHED:
+ registry = FinishedJobRegistry(queue.name, queue.connection)
+ registry.remove(job)
+ elif job.get_status() == RQJobStatus.SCHEDULED:
+ registry = ScheduledJobRegistry(queue.name, queue.connection)
+ registry.remove(job)
+
+
+def stop_rq_job(job_id):
+ """
+ Stop the specified RQ job.
+ """
+ config = QUEUES_LIST[0]
+ try:
+ job = RQ_Job.fetch(job_id, connection=get_redis_connection(config['connection_config']),)
+ except NoSuchJobError:
+ raise Http404(_("Job {job_id} not found").format(job_id=job_id))
+
+ queue_index = QUEUES_MAP[job.origin]
+ queue = get_queue_by_index(queue_index)
+
+ return stop_jobs(queue, job_id)[0]
diff --git a/netbox/core/views.py b/netbox/core/views.py
index 3c5319626..cd9cd6c67 100644
--- a/netbox/core/views.py
+++ b/netbox/core/views.py
@@ -14,16 +14,13 @@ from django.utils.translation import gettext_lazy as _
from django.views.generic import View
from django_rq.queues import get_connection, get_queue_by_index, get_redis_connection
from django_rq.settings import QUEUES_MAP, QUEUES_LIST
-from django_rq.utils import get_jobs, get_statistics, stop_jobs
-from rq import requeue_job
+from django_rq.utils import get_statistics
from rq.exceptions import NoSuchJobError
from rq.job import Job as RQ_Job, JobStatus as RQJobStatus
-from rq.registry import (
- DeferredJobRegistry, FailedJobRegistry, FinishedJobRegistry, ScheduledJobRegistry, StartedJobRegistry,
-)
from rq.worker import Worker
from rq.worker_registration import clean_worker_registry
+from core.utils import delete_rq_job, enqueue_rq_job, get_rq_jobs_from_status, requeue_rq_job, stop_rq_job
from netbox.config import get_config, PARAMS
from netbox.views import generic
from netbox.views.generic.base import BaseObjectView
@@ -46,6 +43,7 @@ from .tables import CatalogPluginTable, PluginVersionTable
# Data sources
#
+@register_model_view(DataSource, 'list', path='', detail=False)
class DataSourceListView(generic.ObjectListView):
queryset = DataSource.objects.annotate(
file_count=count_related(DataFile, 'source')
@@ -92,6 +90,7 @@ class DataSourceSyncView(BaseObjectView):
return redirect(datasource.get_absolute_url())
+@register_model_view(DataSource, 'add', detail=False)
@register_model_view(DataSource, 'edit')
class DataSourceEditView(generic.ObjectEditView):
queryset = DataSource.objects.all()
@@ -103,11 +102,13 @@ class DataSourceDeleteView(generic.ObjectDeleteView):
queryset = DataSource.objects.all()
+@register_model_view(DataSource, 'bulk_import', detail=False)
class DataSourceBulkImportView(generic.BulkImportView):
queryset = DataSource.objects.all()
model_form = forms.DataSourceImportForm
+@register_model_view(DataSource, 'bulk_edit', path='edit', detail=False)
class DataSourceBulkEditView(generic.BulkEditView):
queryset = DataSource.objects.annotate(
count_files=count_related(DataFile, 'source')
@@ -117,6 +118,7 @@ class DataSourceBulkEditView(generic.BulkEditView):
form = forms.DataSourceBulkEditForm
+@register_model_view(DataSource, 'bulk_delete', path='delete', detail=False)
class DataSourceBulkDeleteView(generic.BulkDeleteView):
queryset = DataSource.objects.annotate(
count_files=count_related(DataFile, 'source')
@@ -129,6 +131,7 @@ class DataSourceBulkDeleteView(generic.BulkDeleteView):
# Data files
#
+@register_model_view(DataFile, 'list', path='', detail=False)
class DataFileListView(generic.ObjectListView):
queryset = DataFile.objects.defer('data')
filterset = filtersets.DataFileFilterSet
@@ -149,6 +152,7 @@ class DataFileDeleteView(generic.ObjectDeleteView):
queryset = DataFile.objects.all()
+@register_model_view(DataFile, 'bulk_delete', path='delete', detail=False)
class DataFileBulkDeleteView(generic.BulkDeleteView):
queryset = DataFile.objects.defer('data')
filterset = filtersets.DataFileFilterSet
@@ -159,6 +163,7 @@ class DataFileBulkDeleteView(generic.BulkDeleteView):
# Jobs
#
+@register_model_view(Job, 'list', path='', detail=False)
class JobListView(generic.ObjectListView):
queryset = Job.objects.all()
filterset = filtersets.JobFilterSet
@@ -170,14 +175,17 @@ class JobListView(generic.ObjectListView):
}
+@register_model_view(Job)
class JobView(generic.ObjectView):
queryset = Job.objects.all()
+@register_model_view(Job, 'delete')
class JobDeleteView(generic.ObjectDeleteView):
queryset = Job.objects.all()
+@register_model_view(Job, 'bulk_delete', path='delete', detail=False)
class JobBulkDeleteView(generic.BulkDeleteView):
queryset = Job.objects.all()
filterset = filtersets.JobFilterSet
@@ -188,6 +196,7 @@ class JobBulkDeleteView(generic.BulkDeleteView):
# Change logging
#
+@register_model_view(ObjectChange, 'list', path='', detail=False)
class ObjectChangeListView(generic.ObjectListView):
queryset = ObjectChange.objects.valid_models()
filterset = filtersets.ObjectChangeFilterSet
@@ -257,6 +266,7 @@ class ObjectChangeView(generic.ObjectView):
# Config Revisions
#
+@register_model_view(ConfigRevision, 'list', path='', detail=False)
class ConfigRevisionListView(generic.ObjectListView):
queryset = ConfigRevision.objects.all()
filterset = filtersets.ConfigRevisionFilterSet
@@ -269,6 +279,7 @@ class ConfigRevisionView(generic.ObjectView):
queryset = ConfigRevision.objects.all()
+@register_model_view(ConfigRevision, 'add', detail=False)
class ConfigRevisionEditView(generic.ObjectEditView):
queryset = ConfigRevision.objects.all()
form = forms.ConfigRevisionForm
@@ -279,12 +290,14 @@ class ConfigRevisionDeleteView(generic.ObjectDeleteView):
queryset = ConfigRevision.objects.all()
+@register_model_view(ConfigRevision, 'bulk_delete', path='delete', detail=False)
class ConfigRevisionBulkDeleteView(generic.BulkDeleteView):
queryset = ConfigRevision.objects.all()
filterset = filtersets.ConfigRevisionFilterSet
table = tables.ConfigRevisionTable
+@register_model_view(ConfigRevision, 'restore')
class ConfigRevisionRestoreView(ContentTypePermissionRequiredMixin, View):
def get_required_permission(self):
@@ -347,41 +360,12 @@ class BackgroundTaskListView(TableMixin, BaseRQView):
table = tables.BackgroundTaskTable
def get_table_data(self, request, queue, status):
- jobs = []
# Call get_jobs() to returned queued tasks
if status == RQJobStatus.QUEUED:
return queue.get_jobs()
- # For other statuses, determine the registry to list (or raise a 404 for invalid statuses)
- try:
- registry_cls = {
- RQJobStatus.STARTED: StartedJobRegistry,
- RQJobStatus.DEFERRED: DeferredJobRegistry,
- RQJobStatus.FINISHED: FinishedJobRegistry,
- RQJobStatus.FAILED: FailedJobRegistry,
- RQJobStatus.SCHEDULED: ScheduledJobRegistry,
- }[status]
- except KeyError:
- raise Http404
- registry = registry_cls(queue.name, queue.connection)
-
- job_ids = registry.get_job_ids()
- if status != RQJobStatus.DEFERRED:
- jobs = get_jobs(queue, job_ids, registry)
- else:
- # Deferred jobs require special handling
- for job_id in job_ids:
- try:
- jobs.append(RQ_Job.fetch(job_id, connection=queue.connection, serializer=queue.serializer))
- except NoSuchJobError:
- pass
-
- if jobs and status == RQJobStatus.SCHEDULED:
- for job in jobs:
- job.scheduled_at = registry.get_scheduled_time(job)
-
- return jobs
+ return get_rq_jobs_from_status(queue, status)
def get(self, request, queue_index, status):
queue = get_queue_by_index(queue_index)
@@ -447,19 +431,7 @@ class BackgroundTaskDeleteView(BaseRQView):
form = ConfirmationForm(request.POST)
if form.is_valid():
- # all the RQ queues should use the same connection
- config = QUEUES_LIST[0]
- try:
- job = RQ_Job.fetch(job_id, connection=get_redis_connection(config['connection_config']),)
- except NoSuchJobError:
- raise Http404(_("Job {job_id} not found").format(job_id=job_id))
-
- queue_index = QUEUES_MAP[job.origin]
- queue = get_queue_by_index(queue_index)
-
- # Remove job id from queue and delete the actual job
- queue.connection.lrem(queue.key, 0, job.id)
- job.delete()
+ delete_rq_job(job_id)
messages.success(request, _('Job {id} has been deleted.').format(id=job_id))
else:
messages.error(request, _('Error deleting job {id}: {error}').format(id=job_id, error=form.errors[0]))
@@ -470,17 +442,7 @@ class BackgroundTaskDeleteView(BaseRQView):
class BackgroundTaskRequeueView(BaseRQView):
def get(self, request, job_id):
- # all the RQ queues should use the same connection
- config = QUEUES_LIST[0]
- try:
- job = RQ_Job.fetch(job_id, connection=get_redis_connection(config['connection_config']),)
- except NoSuchJobError:
- raise Http404(_("Job {id} not found.").format(id=job_id))
-
- queue_index = QUEUES_MAP[job.origin]
- queue = get_queue_by_index(queue_index)
-
- requeue_job(job_id, connection=queue.connection, serializer=queue.serializer)
+ requeue_rq_job(job_id)
messages.success(request, _('Job {id} has been re-enqueued.').format(id=job_id))
return redirect(reverse('core:background_task', args=[job_id]))
@@ -489,33 +451,7 @@ class BackgroundTaskEnqueueView(BaseRQView):
def get(self, request, job_id):
# all the RQ queues should use the same connection
- config = QUEUES_LIST[0]
- try:
- job = RQ_Job.fetch(job_id, connection=get_redis_connection(config['connection_config']),)
- except NoSuchJobError:
- raise Http404(_("Job {id} not found.").format(id=job_id))
-
- queue_index = QUEUES_MAP[job.origin]
- queue = get_queue_by_index(queue_index)
-
- try:
- # _enqueue_job is new in RQ 1.14, this is used to enqueue
- # job regardless of its dependencies
- queue._enqueue_job(job)
- except AttributeError:
- queue.enqueue_job(job)
-
- # Remove job from correct registry if needed
- if job.get_status() == RQJobStatus.DEFERRED:
- registry = DeferredJobRegistry(queue.name, queue.connection)
- registry.remove(job)
- elif job.get_status() == RQJobStatus.FINISHED:
- registry = FinishedJobRegistry(queue.name, queue.connection)
- registry.remove(job)
- elif job.get_status() == RQJobStatus.SCHEDULED:
- registry = ScheduledJobRegistry(queue.name, queue.connection)
- registry.remove(job)
-
+ enqueue_rq_job(job_id)
messages.success(request, _('Job {id} has been enqueued.').format(id=job_id))
return redirect(reverse('core:background_task', args=[job_id]))
@@ -523,17 +459,7 @@ class BackgroundTaskEnqueueView(BaseRQView):
class BackgroundTaskStopView(BaseRQView):
def get(self, request, job_id):
- # all the RQ queues should use the same connection
- config = QUEUES_LIST[0]
- try:
- job = RQ_Job.fetch(job_id, connection=get_redis_connection(config['connection_config']),)
- except NoSuchJobError:
- raise Http404(_("Job {job_id} not found").format(job_id=job_id))
-
- queue_index = QUEUES_MAP[job.origin]
- queue = get_queue_by_index(queue_index)
-
- stopped_jobs = stop_jobs(queue, job_id)[0]
+ stopped_jobs = stop_rq_job(job_id)
if len(stopped_jobs) == 1:
messages.success(request, _('Job {id} has been stopped.').format(id=job_id))
else:
@@ -626,11 +552,7 @@ class SystemView(UserPassesTestMixin, View):
}
# Configuration
- try:
- config = ConfigRevision.objects.get(pk=cache.get('config_version'))
- except ConfigRevision.DoesNotExist:
- # Fall back to using the active config data if no record is found
- config = get_config()
+ config = get_config()
# Raw data export
if 'export' in request.GET:
@@ -648,8 +570,9 @@ class SystemView(UserPassesTestMixin, View):
return response
# Serialize any CustomValidator classes
- if hasattr(config, 'CUSTOM_VALIDATORS') and config.CUSTOM_VALIDATORS:
- config.CUSTOM_VALIDATORS = json.dumps(config.CUSTOM_VALIDATORS, cls=ConfigJSONEncoder, indent=4)
+ for attr in ['CUSTOM_VALIDATORS', 'PROTECTION_RULES']:
+ if hasattr(config, attr) and getattr(config, attr, None):
+ setattr(config, attr, json.dumps(getattr(config, attr), cls=ConfigJSONEncoder, indent=4))
return render(request, 'core/system.html', {
'stats': stats,
@@ -672,7 +595,7 @@ class BasePluginView(UserPassesTestMixin, View):
catalog_plugins_error = cache.get(self.CACHE_KEY_CATALOG_ERROR, default=False)
if not catalog_plugins_error:
catalog_plugins = get_catalog_plugins()
- if not catalog_plugins:
+ if not catalog_plugins and not settings.ISOLATED_DEPLOYMENT:
# Cache for 5 minutes to avoid spamming connection
cache.set(self.CACHE_KEY_CATALOG_ERROR, True, 300)
messages.warning(request, _("Plugins catalog could not be loaded"))
diff --git a/netbox/dcim/api/nested_serializers.py b/netbox/dcim/api/nested_serializers.py
deleted file mode 100644
index 4b8f0db4a..000000000
--- a/netbox/dcim/api/nested_serializers.py
+++ /dev/null
@@ -1,389 +0,0 @@
-import warnings
-
-from drf_spectacular.utils import extend_schema_serializer
-from rest_framework import serializers
-
-from dcim import models
-from netbox.api.fields import RelatedObjectCountField
-from netbox.api.serializers import WritableNestedSerializer
-from .serializers_.nested import (
- NestedDeviceBaySerializer, NestedDeviceSerializer, NestedInterfaceSerializer, NestedInterfaceTemplateSerializer,
- NestedLocationSerializer, NestedModuleBaySerializer, NestedRegionSerializer, NestedSiteGroupSerializer,
-)
-
-__all__ = [
- 'NestedCableSerializer',
- 'NestedConsolePortSerializer',
- 'NestedConsolePortTemplateSerializer',
- 'NestedConsoleServerPortSerializer',
- 'NestedConsoleServerPortTemplateSerializer',
- 'NestedDeviceBaySerializer',
- 'NestedDeviceBayTemplateSerializer',
- 'NestedDeviceRoleSerializer',
- 'NestedDeviceSerializer',
- 'NestedDeviceTypeSerializer',
- 'NestedFrontPortSerializer',
- 'NestedFrontPortTemplateSerializer',
- 'NestedInterfaceSerializer',
- 'NestedInterfaceTemplateSerializer',
- 'NestedInventoryItemSerializer',
- 'NestedInventoryItemRoleSerializer',
- 'NestedInventoryItemTemplateSerializer',
- 'NestedManufacturerSerializer',
- 'NestedModuleBaySerializer',
- 'NestedModuleBayTemplateSerializer',
- 'NestedModuleSerializer',
- 'NestedModuleTypeSerializer',
- 'NestedPlatformSerializer',
- 'NestedPowerFeedSerializer',
- 'NestedPowerOutletSerializer',
- 'NestedPowerOutletTemplateSerializer',
- 'NestedPowerPanelSerializer',
- 'NestedPowerPortSerializer',
- 'NestedPowerPortTemplateSerializer',
- 'NestedLocationSerializer',
- 'NestedRackReservationSerializer',
- 'NestedRackRoleSerializer',
- 'NestedRackSerializer',
- 'NestedRearPortSerializer',
- 'NestedRearPortTemplateSerializer',
- 'NestedRegionSerializer',
- 'NestedSiteSerializer',
- 'NestedSiteGroupSerializer',
- 'NestedVirtualChassisSerializer',
- 'NestedVirtualDeviceContextSerializer',
-]
-
-# TODO: Remove in v4.2
-warnings.warn(
- "Dedicated nested serializers will be removed in NetBox v4.2. Use Serializer(nested=True) instead.",
- DeprecationWarning
-)
-
-
-#
-# Regions/sites
-#
-
-class NestedSiteSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.Site
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug']
-
-
-#
-# Racks
-#
-
-@extend_schema_serializer(
- exclude_fields=('rack_count',),
-)
-class NestedRackRoleSerializer(WritableNestedSerializer):
- rack_count = RelatedObjectCountField('racks')
-
- class Meta:
- model = models.RackRole
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'rack_count']
-
-
-@extend_schema_serializer(
- exclude_fields=('device_count',),
-)
-class NestedRackSerializer(WritableNestedSerializer):
- device_count = RelatedObjectCountField('devices')
-
- class Meta:
- model = models.Rack
- fields = ['id', 'url', 'display_url', 'display', 'name', 'device_count']
-
-
-class NestedRackReservationSerializer(WritableNestedSerializer):
- user = serializers.SerializerMethodField(read_only=True)
-
- class Meta:
- model = models.RackReservation
- fields = ['id', 'url', 'display_url', 'display', 'user', 'units']
-
- def get_user(self, obj):
- return obj.user.username
-
-
-#
-# Device/module types
-#
-
-@extend_schema_serializer(
- exclude_fields=('devicetype_count',),
-)
-class NestedManufacturerSerializer(WritableNestedSerializer):
- devicetype_count = RelatedObjectCountField('device_types')
-
- class Meta:
- model = models.Manufacturer
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'devicetype_count']
-
-
-@extend_schema_serializer(
- exclude_fields=('device_count',),
-)
-class NestedDeviceTypeSerializer(WritableNestedSerializer):
- manufacturer = NestedManufacturerSerializer(read_only=True)
- device_count = RelatedObjectCountField('instances')
-
- class Meta:
- model = models.DeviceType
- fields = ['id', 'url', 'display_url', 'display', 'manufacturer', 'model', 'slug', 'device_count']
-
-
-class NestedModuleTypeSerializer(WritableNestedSerializer):
- manufacturer = NestedManufacturerSerializer(read_only=True)
-
- class Meta:
- model = models.ModuleType
- fields = ['id', 'url', 'display_url', 'display', 'manufacturer', 'model']
-
-
-#
-# Component templates
-#
-
-class NestedConsolePortTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ConsolePortTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedConsoleServerPortTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ConsoleServerPortTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedPowerPortTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.PowerPortTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedPowerOutletTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.PowerOutletTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedRearPortTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.RearPortTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedFrontPortTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.FrontPortTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedModuleBayTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ModuleBayTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedDeviceBayTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.DeviceBayTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedInventoryItemTemplateSerializer(WritableNestedSerializer):
- _depth = serializers.IntegerField(source='level', read_only=True)
-
- class Meta:
- model = models.InventoryItemTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name', '_depth']
-
-
-#
-# Devices
-#
-
-@extend_schema_serializer(
- exclude_fields=('device_count', 'virtualmachine_count'),
-)
-class NestedDeviceRoleSerializer(WritableNestedSerializer):
- device_count = RelatedObjectCountField('devices')
- virtualmachine_count = RelatedObjectCountField('virtual_machines')
-
- class Meta:
- model = models.DeviceRole
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'device_count', 'virtualmachine_count']
-
-
-@extend_schema_serializer(
- exclude_fields=('device_count', 'virtualmachine_count'),
-)
-class NestedPlatformSerializer(WritableNestedSerializer):
- device_count = RelatedObjectCountField('devices')
- virtualmachine_count = RelatedObjectCountField('virtual_machines')
-
- class Meta:
- model = models.Platform
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'device_count', 'virtualmachine_count']
-
-
-class ModuleNestedModuleBaySerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ModuleBay
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedModuleSerializer(WritableNestedSerializer):
- device = NestedDeviceSerializer(read_only=True)
- module_bay = ModuleNestedModuleBaySerializer(read_only=True)
- module_type = NestedModuleTypeSerializer(read_only=True)
-
- class Meta:
- model = models.Module
- fields = ['id', 'url', 'display_url', 'display', 'device', 'module_bay', 'module_type']
-
-
-class NestedConsoleServerPortSerializer(WritableNestedSerializer):
- device = NestedDeviceSerializer(read_only=True)
- _occupied = serializers.BooleanField(required=False, read_only=True)
-
- class Meta:
- model = models.ConsoleServerPort
- fields = ['id', 'url', 'display_url', 'display', 'device', 'name', 'cable', '_occupied']
-
-
-class NestedConsolePortSerializer(WritableNestedSerializer):
- device = NestedDeviceSerializer(read_only=True)
- _occupied = serializers.BooleanField(required=False, read_only=True)
-
- class Meta:
- model = models.ConsolePort
- fields = ['id', 'url', 'display_url', 'display', 'device', 'name', 'cable', '_occupied']
-
-
-class NestedPowerOutletSerializer(WritableNestedSerializer):
- device = NestedDeviceSerializer(read_only=True)
- _occupied = serializers.BooleanField(required=False, read_only=True)
-
- class Meta:
- model = models.PowerOutlet
- fields = ['id', 'url', 'display_url', 'display', 'device', 'name', 'cable', '_occupied']
-
-
-class NestedPowerPortSerializer(WritableNestedSerializer):
- device = NestedDeviceSerializer(read_only=True)
- _occupied = serializers.BooleanField(required=False, read_only=True)
-
- class Meta:
- model = models.PowerPort
- fields = ['id', 'url', 'display_url', 'display', 'device', 'name', 'cable', '_occupied']
-
-
-class NestedRearPortSerializer(WritableNestedSerializer):
- device = NestedDeviceSerializer(read_only=True)
- _occupied = serializers.BooleanField(required=False, read_only=True)
-
- class Meta:
- model = models.RearPort
- fields = ['id', 'url', 'display_url', 'display', 'device', 'name', 'cable', '_occupied']
-
-
-class NestedFrontPortSerializer(WritableNestedSerializer):
- device = NestedDeviceSerializer(read_only=True)
- _occupied = serializers.BooleanField(required=False, read_only=True)
-
- class Meta:
- model = models.FrontPort
- fields = ['id', 'url', 'display_url', 'display', 'device', 'name', 'cable', '_occupied']
-
-
-class NestedInventoryItemSerializer(WritableNestedSerializer):
- device = NestedDeviceSerializer(read_only=True)
- _depth = serializers.IntegerField(source='level', read_only=True)
-
- class Meta:
- model = models.InventoryItem
- fields = ['id', 'url', 'display_url', 'display', 'device', 'name', '_depth']
-
-
-@extend_schema_serializer(
- exclude_fields=('inventoryitem_count',),
-)
-class NestedInventoryItemRoleSerializer(WritableNestedSerializer):
- inventoryitem_count = RelatedObjectCountField('inventory_items')
-
- class Meta:
- model = models.InventoryItemRole
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'inventoryitem_count']
-
-
-#
-# Cables
-#
-
-class NestedCableSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.Cable
- fields = ['id', 'url', 'display_url', 'display', 'label']
-
-
-#
-# Virtual chassis
-#
-
-@extend_schema_serializer(
- exclude_fields=('member_count',),
-)
-class NestedVirtualChassisSerializer(WritableNestedSerializer):
- master = NestedDeviceSerializer()
- member_count = serializers.IntegerField(read_only=True)
-
- class Meta:
- model = models.VirtualChassis
- fields = ['id', 'url', 'display_url', 'display', 'name', 'master', 'member_count']
-
-
-#
-# Power panels/feeds
-#
-
-@extend_schema_serializer(
- exclude_fields=('powerfeed_count',),
-)
-class NestedPowerPanelSerializer(WritableNestedSerializer):
- powerfeed_count = RelatedObjectCountField('powerfeeds')
-
- class Meta:
- model = models.PowerPanel
- fields = ['id', 'url', 'display_url', 'display', 'name', 'powerfeed_count']
-
-
-class NestedPowerFeedSerializer(WritableNestedSerializer):
- _occupied = serializers.BooleanField(required=False, read_only=True)
-
- class Meta:
- model = models.PowerFeed
- fields = ['id', 'url', 'display_url', 'display', 'name', 'cable', '_occupied']
-
-
-class NestedVirtualDeviceContextSerializer(WritableNestedSerializer):
- device = NestedDeviceSerializer()
-
- class Meta:
- model = models.VirtualDeviceContext
- fields = ['id', 'url', 'display_url', 'display', 'name', 'identifier', 'device']
diff --git a/netbox/dcim/api/serializers_/device_components.py b/netbox/dcim/api/serializers_/device_components.py
index 60d6561df..a6767bb6f 100644
--- a/netbox/dcim/api/serializers_/device_components.py
+++ b/netbox/dcim/api/serializers_/device_components.py
@@ -8,7 +8,7 @@ from dcim.models import (
ConsolePort, ConsoleServerPort, DeviceBay, FrontPort, Interface, InventoryItem, ModuleBay, PowerOutlet, PowerPort,
RearPort, VirtualDeviceContext,
)
-from ipam.api.serializers_.vlans import VLANSerializer
+from ipam.api.serializers_.vlans import VLANSerializer, VLANTranslationPolicySerializer
from ipam.api.serializers_.vrfs import VRFSerializer
from ipam.models import VLAN
from netbox.api.fields import ChoiceField, ContentTypeField, SerializedPKRelatedField
@@ -21,7 +21,7 @@ from wireless.choices import *
from wireless.models import WirelessLAN
from .base import ConnectedEndpointsSerializer
from .cables import CabledObjectSerializer
-from .devices import DeviceSerializer, ModuleSerializer, VirtualDeviceContextSerializer
+from .devices import DeviceSerializer, MACAddressSerializer, ModuleSerializer, VirtualDeviceContextSerializer
from .manufacturers import ManufacturerSerializer
from .nested import NestedInterfaceSerializer
from .roles import InventoryItemRoleSerializer
@@ -155,7 +155,7 @@ class PowerOutletSerializer(NetBoxModelSerializer, CabledObjectSerializer, Conne
class Meta:
model = PowerOutlet
fields = [
- 'id', 'url', 'display_url', 'display', 'device', 'module', 'name', 'label', 'type', 'power_port',
+ 'id', 'url', 'display_url', 'display', 'device', 'module', 'name', 'label', 'type', 'color', 'power_port',
'feed_leg', 'description', 'mark_connected', 'cable', 'cable_end', 'link_peers', 'link_peers_type',
'connected_endpoints', 'connected_endpoints_type', 'connected_endpoints_reachable', 'tags', 'custom_fields',
'created', 'last_updated', '_occupied',
@@ -196,6 +196,8 @@ class InterfaceSerializer(NetBoxModelSerializer, CabledObjectSerializer, Connect
required=False,
many=True
)
+ qinq_svlan = VLANSerializer(nested=True, required=False, allow_null=True)
+ vlan_translation_policy = VLANTranslationPolicySerializer(nested=True, required=False, allow_null=True)
vrf = VRFSerializer(nested=True, required=False, allow_null=True)
l2vpn_termination = L2VPNTerminationSerializer(nested=True, read_only=True, allow_null=True)
wireless_link = NestedWirelessLinkSerializer(read_only=True, allow_null=True)
@@ -208,22 +210,21 @@ class InterfaceSerializer(NetBoxModelSerializer, CabledObjectSerializer, Connect
)
count_ipaddresses = serializers.IntegerField(read_only=True)
count_fhrp_groups = serializers.IntegerField(read_only=True)
- mac_address = serializers.CharField(
- required=False,
- default=None,
- allow_blank=True,
- allow_null=True
- )
+ # Maintains backward compatibility with NetBox [ge,xe]-0/0/[0-9]). The token {module}, if present, will be "
+ "automatically replaced with the position value when creating a new module."
+ )
+
class ConsolePortTemplateForm(ModularComponentTemplateForm):
fieldsets = (
@@ -991,7 +1010,8 @@ class InterfaceTemplateForm(ModularComponentTemplateForm):
class Meta:
model = InterfaceTemplate
fields = [
- 'device_type', 'module_type', 'name', 'label', 'type', 'mgmt_only', 'enabled', 'description', 'poe_mode', 'poe_type', 'bridge', 'rf_role',
+ 'device_type', 'module_type', 'name', 'label', 'type', 'mgmt_only', 'enabled', 'description', 'poe_mode',
+ 'poe_type', 'bridge', 'rf_role',
]
@@ -1173,7 +1193,10 @@ class InventoryItemTemplateForm(ComponentTemplateForm):
break
elif component_type and component_id:
# When adding the InventoryItem from a component page
- if content_type := ContentType.objects.filter(MODULAR_COMPONENT_TEMPLATE_MODELS).filter(pk=component_type).first():
+ content_type = ContentType.objects.filter(
+ MODULAR_COMPONENT_TEMPLATE_MODELS
+ ).filter(pk=component_type).first()
+ if content_type:
if component := content_type.model_class().objects.filter(pk=component_id).first():
initial[content_type.model] = component
@@ -1285,16 +1308,16 @@ class PowerOutletForm(ModularDeviceComponentForm):
fieldsets = (
FieldSet(
- 'device', 'module', 'name', 'label', 'type', 'power_port', 'feed_leg', 'mark_connected', 'description',
- 'tags',
+ 'device', 'module', 'name', 'label', 'type', 'color', 'power_port', 'feed_leg', 'mark_connected',
+ 'description', 'tags',
),
)
class Meta:
model = PowerOutlet
fields = [
- 'device', 'module', 'name', 'label', 'type', 'power_port', 'feed_leg', 'mark_connected', 'description',
- 'tags',
+ 'device', 'module', 'name', 'label', 'type', 'color', 'power_port', 'feed_leg', 'mark_connected',
+ 'description', 'tags',
]
@@ -1372,26 +1395,51 @@ class InterfaceForm(InterfaceCommonForm, ModularDeviceComponentForm):
'available_on_device': '$device',
}
)
+ qinq_svlan = DynamicModelChoiceField(
+ queryset=VLAN.objects.all(),
+ required=False,
+ label=_('Q-in-Q Service VLAN'),
+ query_params={
+ 'group_id': '$vlan_group',
+ 'available_on_device': '$device',
+ 'qinq_role': VLANQinQRoleChoices.ROLE_SERVICE,
+ }
+ )
vrf = DynamicModelChoiceField(
queryset=VRF.objects.all(),
required=False,
label=_('VRF')
)
+ primary_mac_address = DynamicModelChoiceField(
+ queryset=MACAddress.objects.all(),
+ label=_('Primary MAC address'),
+ required=False,
+ quick_add=True,
+ quick_add_params={'interface': '$pk'}
+ )
wwn = forms.CharField(
empty_value=None,
required=False,
label=_('WWN')
)
+ vlan_translation_policy = DynamicModelChoiceField(
+ queryset=VLANTranslationPolicy.objects.all(),
+ required=False,
+ label=_('VLAN Translation Policy')
+ )
fieldsets = (
FieldSet(
'device', 'module', 'name', 'label', 'type', 'speed', 'duplex', 'description', 'tags', name=_('Interface')
),
- FieldSet('vrf', 'mac_address', 'wwn', name=_('Addressing')),
+ FieldSet('vrf', 'primary_mac_address', 'wwn', name=_('Addressing')),
FieldSet('vdcs', 'mtu', 'tx_power', 'enabled', 'mgmt_only', 'mark_connected', name=_('Operation')),
FieldSet('parent', 'bridge', 'lag', name=_('Related Interfaces')),
FieldSet('poe_mode', 'poe_type', name=_('PoE')),
- FieldSet('mode', 'vlan_group', 'untagged_vlan', 'tagged_vlans', name=_('802.1Q Switching')),
+ FieldSet(
+ 'mode', 'vlan_group', 'untagged_vlan', 'tagged_vlans', 'qinq_svlan', 'vlan_translation_policy',
+ name=_('802.1Q Switching')
+ ),
FieldSet(
'rf_role', 'rf_channel', 'rf_channel_frequency', 'rf_channel_width', 'wireless_lan_group', 'wireless_lans',
name=_('Wireless')
@@ -1401,10 +1449,11 @@ class InterfaceForm(InterfaceCommonForm, ModularDeviceComponentForm):
class Meta:
model = Interface
fields = [
- 'device', 'module', 'vdcs', 'name', 'label', 'type', 'speed', 'duplex', 'enabled', 'parent', 'bridge', 'lag',
- 'mac_address', 'wwn', 'mtu', 'mgmt_only', 'mark_connected', 'description', 'poe_mode', 'poe_type', 'mode',
+ 'device', 'module', 'vdcs', 'name', 'label', 'type', 'speed', 'duplex', 'enabled', 'parent', 'bridge',
+ 'lag', 'wwn', 'mtu', 'mgmt_only', 'mark_connected', 'description', 'poe_mode', 'poe_type', 'mode',
'rf_role', 'rf_channel', 'rf_channel_frequency', 'rf_channel_width', 'tx_power', 'wireless_lans',
- 'untagged_vlan', 'tagged_vlans', 'vrf', 'tags',
+ 'untagged_vlan', 'tagged_vlans', 'qinq_svlan', 'vlan_translation_policy', 'vrf', 'primary_mac_address',
+ 'tags',
]
widgets = {
'speed': NumberWithOptions(
@@ -1576,7 +1625,10 @@ class InventoryItemForm(DeviceComponentForm):
)
fieldsets = (
- FieldSet('device', 'parent', 'name', 'label', 'role', 'description', 'tags', name=_('Inventory Item')),
+ FieldSet(
+ 'device', 'parent', 'name', 'label', 'status', 'role', 'description', 'tags',
+ name=_('Inventory Item')
+ ),
FieldSet('manufacturer', 'part_id', 'serial', 'asset_tag', name=_('Hardware')),
FieldSet(
TabbedGroups(
@@ -1596,7 +1648,7 @@ class InventoryItemForm(DeviceComponentForm):
model = InventoryItem
fields = [
'device', 'parent', 'name', 'label', 'role', 'manufacturer', 'part_id', 'serial', 'asset_tag',
- 'description', 'tags',
+ 'status', 'description', 'tags',
]
def __init__(self, *args, **kwargs):
@@ -1698,3 +1750,83 @@ class VirtualDeviceContextForm(TenancyForm, NetBoxModelForm):
'device', 'name', 'status', 'identifier', 'primary_ip4', 'primary_ip6', 'tenant_group', 'tenant',
'comments', 'tags'
]
+
+
+#
+# Addressing
+#
+
+class MACAddressForm(NetBoxModelForm):
+ mac_address = forms.CharField(
+ required=True,
+ label=_('MAC address')
+ )
+ interface = DynamicModelChoiceField(
+ label=_('Interface'),
+ queryset=Interface.objects.all(),
+ required=False,
+ context={
+ 'parent': 'device',
+ },
+ )
+ vminterface = DynamicModelChoiceField(
+ label=_('VM Interface'),
+ queryset=VMInterface.objects.all(),
+ required=False,
+ context={
+ 'parent': 'virtual_machine',
+ },
+ )
+
+ fieldsets = (
+ FieldSet(
+ 'mac_address', 'description', 'tags',
+ ),
+ FieldSet(
+ TabbedGroups(
+ FieldSet('interface', name=_('Device')),
+ FieldSet('vminterface', name=_('Virtual Machine')),
+ ),
+ ),
+ )
+
+ class Meta:
+ model = MACAddress
+ fields = [
+ 'mac_address', 'interface', 'vminterface', 'description', 'tags',
+ ]
+
+ def __init__(self, *args, **kwargs):
+
+ # Initialize helper selectors
+ instance = kwargs.get('instance')
+ initial = kwargs.get('initial', {}).copy()
+ if instance:
+ if type(instance.assigned_object) is Interface:
+ initial['interface'] = instance.assigned_object
+ elif type(instance.assigned_object) is VMInterface:
+ initial['vminterface'] = instance.assigned_object
+ kwargs['initial'] = initial
+
+ super().__init__(*args, **kwargs)
+
+ if instance and instance.assigned_object and instance.assigned_object.primary_mac_address:
+ if instance.assigned_object.primary_mac_address.pk == instance.pk:
+ self.fields['interface'].disabled = True
+ self.fields['vminterface'].disabled = True
+
+ def clean(self):
+ super().clean()
+
+ # Handle object assignment
+ selected_objects = [
+ field for field in ('interface', 'vminterface') if self.cleaned_data[field]
+ ]
+ if len(selected_objects) > 1:
+ raise forms.ValidationError({
+ selected_objects[1]: _("A MAC address can only be assigned to a single object.")
+ })
+ elif selected_objects:
+ self.instance.assigned_object = self.cleaned_data[selected_objects[0]]
+ else:
+ self.instance.assigned_object = None
diff --git a/netbox/dcim/forms/object_create.py b/netbox/dcim/forms/object_create.py
index d18c7ed14..6f6cd8f7c 100644
--- a/netbox/dcim/forms/object_create.py
+++ b/netbox/dcim/forms/object_create.py
@@ -243,14 +243,6 @@ class InterfaceCreateForm(ComponentCreateForm, model_forms.InterfaceForm):
class Meta(model_forms.InterfaceForm.Meta):
exclude = ('name', 'label')
- def __init__(self, *args, **kwargs):
- super().__init__(*args, **kwargs)
-
- if 'module' in self.fields:
- self.fields['name'].help_text += _(
- "The string {module} will be replaced with the position of the assigned module, if any."
- )
-
class FrontPortCreateForm(ComponentCreateForm, model_forms.FrontPortForm):
device = DynamicModelChoiceField(
@@ -424,7 +416,8 @@ class VirtualChassisCreateForm(NetBoxModelForm):
class Meta:
model = VirtualChassis
fields = [
- 'name', 'domain', 'description', 'region', 'site_group', 'site', 'rack', 'members', 'initial_position', 'tags',
+ 'name', 'domain', 'description', 'region', 'site_group', 'site', 'rack', 'members', 'initial_position',
+ 'tags',
]
def clean(self):
diff --git a/netbox/dcim/forms/object_import.py b/netbox/dcim/forms/object_import.py
index d46ef83ad..821f91402 100644
--- a/netbox/dcim/forms/object_import.py
+++ b/netbox/dcim/forms/object_import.py
@@ -136,7 +136,8 @@ class FrontPortTemplateImportForm(forms.ModelForm):
class Meta:
model = FrontPortTemplate
fields = [
- 'device_type', 'module_type', 'name', 'type', 'color', 'rear_port', 'rear_port_position', 'label', 'description',
+ 'device_type', 'module_type', 'name', 'type', 'color', 'rear_port', 'rear_port_position', 'label',
+ 'description',
]
diff --git a/netbox/dcim/graphql/filters.py b/netbox/dcim/graphql/filters.py
index 8c256aecb..94f2c6d38 100644
--- a/netbox/dcim/graphql/filters.py
+++ b/netbox/dcim/graphql/filters.py
@@ -23,6 +23,7 @@ __all__ = (
'InventoryItemFilter',
'InventoryItemRoleFilter',
'LocationFilter',
+ 'MACAddressFilter',
'ManufacturerFilter',
'ModuleFilter',
'ModuleBayFilter',
@@ -133,6 +134,12 @@ class FrontPortTemplateFilter(BaseFilterMixin):
pass
+@strawberry_django.filter(models.MACAddress, lookups=True)
+@autotype_decorator(filtersets.MACAddressFilterSet)
+class MACAddressFilter(BaseFilterMixin):
+ pass
+
+
@strawberry_django.filter(models.Interface, lookups=True)
@autotype_decorator(filtersets.InterfaceFilterSet)
class InterfaceFilter(BaseFilterMixin):
diff --git a/netbox/dcim/graphql/schema.py b/netbox/dcim/graphql/schema.py
index 65818fb20..011a2b58b 100644
--- a/netbox/dcim/graphql/schema.py
+++ b/netbox/dcim/graphql/schema.py
@@ -44,6 +44,9 @@ class DCIMQuery:
front_port_template: FrontPortTemplateType = strawberry_django.field()
front_port_template_list: List[FrontPortTemplateType] = strawberry_django.field()
+ mac_address: MACAddressType = strawberry_django.field()
+ mac_address_list: List[MACAddressType] = strawberry_django.field()
+
interface: InterfaceType = strawberry_django.field()
interface_list: List[InterfaceType] = strawberry_django.field()
diff --git a/netbox/dcim/graphql/types.py b/netbox/dcim/graphql/types.py
index bce6f06ac..8d992176a 100644
--- a/netbox/dcim/graphql/types.py
+++ b/netbox/dcim/graphql/types.py
@@ -34,6 +34,7 @@ __all__ = (
'InventoryItemRoleType',
'InventoryItemTemplateType',
'LocationType',
+ 'MACAddressType',
'ManufacturerType',
'ModularComponentType',
'ModuleType',
@@ -76,7 +77,6 @@ class ComponentType(
"""
Base type for device/VM components
"""
- _name: str
device: Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]
@@ -93,7 +93,6 @@ class ComponentTemplateType(
"""
Base type for device/VM components
"""
- _name: str
device_type: Annotated["DeviceTypeType", strawberry.lazy('dcim.graphql.types')]
@@ -116,7 +115,7 @@ class ModularComponentTemplateType(ComponentTemplateType):
filters=CableTerminationFilter
)
class CableTerminationType(NetBoxObjectType):
-
+ cable: Annotated["CableType", strawberry.lazy('dcim.graphql.types')] | None
termination: Annotated[Union[
Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')],
Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')],
@@ -181,7 +180,7 @@ class ConsolePortType(ModularComponentType, CabledObjectMixin, PathEndpointMixin
filters=ConsolePortTemplateFilter
)
class ConsolePortTemplateType(ModularComponentTemplateType):
- _name: str
+ pass
@strawberry_django.type(
@@ -199,7 +198,7 @@ class ConsoleServerPortType(ModularComponentType, CabledObjectMixin, PathEndpoin
filters=ConsoleServerPortTemplateFilter
)
class ConsoleServerPortTemplateType(ModularComponentTemplateType):
- _name: str
+ pass
@strawberry_django.type(
@@ -208,7 +207,6 @@ class ConsoleServerPortTemplateType(ModularComponentTemplateType):
filters=DeviceFilter
)
class DeviceType(ConfigContextMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
- _name: str
console_port_count: BigInt
console_server_port_count: BigInt
power_port_count: BigInt
@@ -273,7 +271,7 @@ class DeviceBayType(ComponentType):
filters=DeviceBayTemplateFilter
)
class DeviceBayTemplateType(ComponentTemplateType):
- _name: str
+ pass
@strawberry_django.type(
@@ -282,7 +280,6 @@ class DeviceBayTemplateType(ComponentTemplateType):
filters=InventoryItemTemplateFilter
)
class InventoryItemTemplateType(ComponentTemplateType):
- _name: str
role: Annotated["InventoryItemRoleType", strawberry.lazy('dcim.graphql.types')] | None
manufacturer: Annotated["ManufacturerType", strawberry.lazy('dcim.graphql.types')]
@@ -366,18 +363,33 @@ class FrontPortType(ModularComponentType, CabledObjectMixin):
filters=FrontPortTemplateFilter
)
class FrontPortTemplateType(ModularComponentTemplateType):
- _name: str
color: str
rear_port: Annotated["RearPortTemplateType", strawberry.lazy('dcim.graphql.types')]
+@strawberry_django.type(
+ models.MACAddress,
+ exclude=('assigned_object_type', 'assigned_object_id'),
+ filters=MACAddressFilter
+)
+class MACAddressType(NetBoxObjectType):
+ mac_address: str
+
+ @strawberry_django.field
+ def assigned_object(self) -> Annotated[Union[
+ Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')],
+ Annotated["VMInterfaceType", strawberry.lazy('virtualization.graphql.types')],
+ ], strawberry.union("MACAddressAssignmentType")] | None:
+ return self.assigned_object
+
+
@strawberry_django.type(
models.Interface,
exclude=('_path',),
filters=InterfaceFilter
)
class InterfaceType(IPAddressesMixin, ModularComponentType, CabledObjectMixin, PathEndpointMixin):
- mac_address: str | None
+ _name: str
wwn: str | None
parent: Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')] | None
bridge: Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')] | None
@@ -385,6 +397,9 @@ class InterfaceType(IPAddressesMixin, ModularComponentType, CabledObjectMixin, P
wireless_link: Annotated["WirelessLinkType", strawberry.lazy('wireless.graphql.types')] | None
untagged_vlan: Annotated["VLANType", strawberry.lazy('ipam.graphql.types')] | None
vrf: Annotated["VRFType", strawberry.lazy('ipam.graphql.types')] | None
+ primary_mac_address: Annotated["MACAddressType", strawberry.lazy('dcim.graphql.types')] | None
+ qinq_svlan: Annotated["VLANType", strawberry.lazy('ipam.graphql.types')] | None
+ vlan_translation_policy: Annotated["VLANTranslationPolicyType", strawberry.lazy('ipam.graphql.types')] | None
vdcs: List[Annotated["VirtualDeviceContextType", strawberry.lazy('dcim.graphql.types')]]
tagged_vlans: List[Annotated["VLANType", strawberry.lazy('ipam.graphql.types')]]
@@ -392,6 +407,7 @@ class InterfaceType(IPAddressesMixin, ModularComponentType, CabledObjectMixin, P
wireless_lans: List[Annotated["WirelessLANType", strawberry.lazy('wireless.graphql.types')]]
member_interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
child_interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
+ mac_addresses: List[Annotated["MACAddressType", strawberry.lazy('dcim.graphql.types')]]
@strawberry_django.type(
@@ -461,6 +477,16 @@ class LocationType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, Organi
devices: List[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]]
children: List[Annotated["LocationType", strawberry.lazy('dcim.graphql.types')]]
+ @strawberry_django.field
+ def clusters(self) -> List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
+ return self.cluster_set.all()
+
+ @strawberry_django.field
+ def circuit_terminations(self) -> List[
+ Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
+ ]:
+ return self.circuit_terminations.all()
+
@strawberry_django.type(
models.Manufacturer,
@@ -517,7 +543,7 @@ class ModuleBayType(ModularComponentType):
filters=ModuleBayTemplateFilter
)
class ModuleBayTemplateType(ModularComponentTemplateType):
- _name: str
+ pass
@strawberry_django.type(
@@ -569,6 +595,7 @@ class PowerFeedType(NetBoxObjectType, CabledObjectMixin, PathEndpointMixin):
)
class PowerOutletType(ModularComponentType, CabledObjectMixin, PathEndpointMixin):
power_port: Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')] | None
+ color: str
@strawberry_django.type(
@@ -577,7 +604,6 @@ class PowerOutletType(ModularComponentType, CabledObjectMixin, PathEndpointMixin
filters=PowerOutletTemplateFilter
)
class PowerOutletTemplateType(ModularComponentTemplateType):
- _name: str
power_port: Annotated["PowerPortTemplateType", strawberry.lazy('dcim.graphql.types')] | None
@@ -609,8 +635,6 @@ class PowerPortType(ModularComponentType, CabledObjectMixin, PathEndpointMixin):
filters=PowerPortTemplateFilter
)
class PowerPortTemplateType(ModularComponentTemplateType):
- _name: str
-
poweroutlet_templates: List[Annotated["PowerOutletTemplateType", strawberry.lazy('dcim.graphql.types')]]
@@ -629,7 +653,6 @@ class RackTypeType(NetBoxObjectType):
filters=RackFilter
)
class RackType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
- _name: str
site: Annotated["SiteType", strawberry.lazy('dcim.graphql.types')]
location: Annotated["LocationType", strawberry.lazy('dcim.graphql.types')] | None
tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None
@@ -682,7 +705,6 @@ class RearPortType(ModularComponentType, CabledObjectMixin):
filters=RearPortTemplateFilter
)
class RearPortTemplateType(ModularComponentTemplateType):
- _name: str
color: str
frontport_templates: List[Annotated["FrontPortTemplateType", strawberry.lazy('dcim.graphql.types')]]
@@ -703,6 +725,16 @@ class RegionType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
def parent(self) -> Annotated["RegionType", strawberry.lazy('dcim.graphql.types')] | None:
return self.parent
+ @strawberry_django.field
+ def clusters(self) -> List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
+ return self.cluster_set.all()
+
+ @strawberry_django.field
+ def circuit_terminations(self) -> List[
+ Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
+ ]:
+ return self.circuit_terminations.all()
+
@strawberry_django.type(
models.Site,
@@ -710,7 +742,6 @@ class RegionType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
filters=SiteFilter
)
class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
- _name: str
time_zone: str | None
region: Annotated["RegionType", strawberry.lazy('dcim.graphql.types')] | None
group: Annotated["SiteGroupType", strawberry.lazy('dcim.graphql.types')] | None
@@ -728,6 +759,16 @@ class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObje
clusters: List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]
vlans: List[Annotated["VLANType", strawberry.lazy('ipam.graphql.types')]]
+ @strawberry_django.field
+ def clusters(self) -> List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
+ return self.cluster_set.all()
+
+ @strawberry_django.field
+ def circuit_terminations(self) -> List[
+ Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
+ ]:
+ return self.circuit_terminations.all()
+
@strawberry_django.type(
models.SiteGroup,
@@ -744,6 +785,16 @@ class SiteGroupType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
def parent(self) -> Annotated["SiteGroupType", strawberry.lazy('dcim.graphql.types')] | None:
return self.parent
+ @strawberry_django.field
+ def clusters(self) -> List[Annotated["ClusterType", strawberry.lazy('virtualization.graphql.types')]]:
+ return self.cluster_set.all()
+
+ @strawberry_django.field
+ def circuit_terminations(self) -> List[
+ Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
+ ]:
+ return self.circuit_terminations.all()
+
@strawberry_django.type(
models.VirtualChassis,
diff --git a/netbox/dcim/management/commands/buildschema.py b/netbox/dcim/management/commands/buildschema.py
index 44a0e95f2..529a2462c 100644
--- a/netbox/dcim/management/commands/buildschema.py
+++ b/netbox/dcim/management/commands/buildschema.py
@@ -6,6 +6,7 @@ from django.core.management.base import BaseCommand
from jinja2 import FileSystemLoader, Environment
from dcim.choices import *
+from netbox.choices import WeightUnitChoices
TEMPLATE_FILENAME = 'devicetype_schema.jinja2'
OUTPUT_FILENAME = 'contrib/generated_schema.json'
diff --git a/netbox/dcim/migrations/0001_squashed.py b/netbox/dcim/migrations/0001_squashed.py
index cf0ef4816..f08fe1d70 100644
--- a/netbox/dcim/migrations/0001_squashed.py
+++ b/netbox/dcim/migrations/0001_squashed.py
@@ -13,11 +13,9 @@ import utilities.validators
class Migration(migrations.Migration):
-
initial = True
- dependencies = [
- ]
+ dependencies = []
replaces = [
('dcim', '0001_initial'),
@@ -64,7 +62,12 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('_cable_peer_id', models.PositiveIntegerField(blank=True, null=True)),
@@ -83,7 +86,12 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('type', models.CharField(blank=True, max_length=50)),
@@ -100,7 +108,12 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('_cable_peer_id', models.PositiveIntegerField(blank=True, null=True)),
@@ -119,7 +132,12 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('type', models.CharField(blank=True, max_length=50)),
@@ -137,14 +155,34 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(primary_key=True, serialize=False)),
('local_context_data', models.JSONField(blank=True, null=True)),
('name', models.CharField(blank=True, max_length=64, null=True)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize, null=True)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize, null=True
+ ),
+ ),
('serial', models.CharField(blank=True, max_length=50)),
('asset_tag', models.CharField(blank=True, max_length=50, null=True, unique=True)),
- ('position', models.PositiveSmallIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)])),
+ (
+ 'position',
+ models.PositiveSmallIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
+ ),
('face', models.CharField(blank=True, max_length=50)),
('status', models.CharField(default='active', max_length=50)),
- ('vc_position', models.PositiveSmallIntegerField(blank=True, null=True, validators=[django.core.validators.MaxValueValidator(255)])),
- ('vc_priority', models.PositiveSmallIntegerField(blank=True, null=True, validators=[django.core.validators.MaxValueValidator(255)])),
+ (
+ 'vc_position',
+ models.PositiveSmallIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MaxValueValidator(255)]
+ ),
+ ),
+ (
+ 'vc_priority',
+ models.PositiveSmallIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MaxValueValidator(255)]
+ ),
+ ),
('comments', models.TextField(blank=True)),
],
options={
@@ -159,7 +197,12 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
],
@@ -174,7 +217,12 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
],
@@ -228,13 +276,27 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('_cable_peer_id', models.PositiveIntegerField(blank=True, null=True)),
('mark_connected', models.BooleanField(default=False)),
('type', models.CharField(max_length=50)),
- ('rear_port_position', models.PositiveSmallIntegerField(default=1, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(1024)])),
+ (
+ 'rear_port_position',
+ models.PositiveSmallIntegerField(
+ default=1,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(1024),
+ ],
+ ),
+ ),
],
options={
'ordering': ('device', '_name'),
@@ -247,11 +309,25 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('type', models.CharField(max_length=50)),
- ('rear_port_position', models.PositiveSmallIntegerField(default=1, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(1024)])),
+ (
+ 'rear_port_position',
+ models.PositiveSmallIntegerField(
+ default=1,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(1024),
+ ],
+ ),
+ ),
],
options={
'ordering': ('device_type', '_name'),
@@ -271,9 +347,24 @@ class Migration(migrations.Migration):
('mark_connected', models.BooleanField(default=False)),
('enabled', models.BooleanField(default=True)),
('mac_address', dcim.fields.MACAddressField(blank=True, null=True)),
- ('mtu', models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(65536)])),
+ (
+ 'mtu',
+ models.PositiveIntegerField(
+ blank=True,
+ null=True,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(65536),
+ ],
+ ),
+ ),
('mode', models.CharField(blank=True, max_length=50)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize_interface)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize_interface
+ ),
+ ),
('type', models.CharField(max_length=50)),
('mgmt_only', models.BooleanField(default=False)),
],
@@ -290,7 +381,12 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=64)),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize_interface)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize_interface
+ ),
+ ),
('type', models.CharField(max_length=50)),
('mgmt_only', models.BooleanField(default=False)),
],
@@ -306,7 +402,12 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('part_id', models.CharField(blank=True, max_length=50)),
@@ -388,8 +489,19 @@ class Migration(migrations.Migration):
('supply', models.CharField(default='ac', max_length=50)),
('phase', models.CharField(default='single-phase', max_length=50)),
('voltage', models.SmallIntegerField(validators=[utilities.validators.ExclusionValidator([0])])),
- ('amperage', models.PositiveSmallIntegerField(validators=[django.core.validators.MinValueValidator(1)])),
- ('max_utilization', models.PositiveSmallIntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(100)])),
+ (
+ 'amperage',
+ models.PositiveSmallIntegerField(validators=[django.core.validators.MinValueValidator(1)]),
+ ),
+ (
+ 'max_utilization',
+ models.PositiveSmallIntegerField(
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(100),
+ ]
+ ),
+ ),
('available_power', models.PositiveIntegerField(default=0, editable=False)),
('comments', models.TextField(blank=True)),
],
@@ -405,7 +517,12 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('_cable_peer_id', models.PositiveIntegerField(blank=True, null=True)),
@@ -424,7 +541,12 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('type', models.CharField(blank=True, max_length=50)),
@@ -455,14 +577,29 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('_cable_peer_id', models.PositiveIntegerField(blank=True, null=True)),
('mark_connected', models.BooleanField(default=False)),
('type', models.CharField(blank=True, max_length=50)),
- ('maximum_draw', models.PositiveSmallIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)])),
- ('allocated_draw', models.PositiveSmallIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)])),
+ (
+ 'maximum_draw',
+ models.PositiveSmallIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
+ ),
+ (
+ 'allocated_draw',
+ models.PositiveSmallIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
+ ),
],
options={
'ordering': ('device', '_name'),
@@ -475,12 +612,27 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('type', models.CharField(blank=True, max_length=50)),
- ('maximum_draw', models.PositiveSmallIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)])),
- ('allocated_draw', models.PositiveSmallIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)])),
+ (
+ 'maximum_draw',
+ models.PositiveSmallIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
+ ),
+ (
+ 'allocated_draw',
+ models.PositiveSmallIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
+ ),
],
options={
'ordering': ('device_type', '_name'),
@@ -494,14 +646,28 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=100)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('facility_id', models.CharField(blank=True, max_length=50, null=True)),
('status', models.CharField(default='active', max_length=50)),
('serial', models.CharField(blank=True, max_length=50)),
('asset_tag', models.CharField(blank=True, max_length=50, null=True, unique=True)),
('type', models.CharField(blank=True, max_length=50)),
('width', models.PositiveSmallIntegerField(default=19)),
- ('u_height', models.PositiveSmallIntegerField(default=42, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(100)])),
+ (
+ 'u_height',
+ models.PositiveSmallIntegerField(
+ default=42,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(100),
+ ],
+ ),
+ ),
('desc_units', models.BooleanField(default=False)),
('outer_width', models.PositiveSmallIntegerField(blank=True, null=True)),
('outer_depth', models.PositiveSmallIntegerField(blank=True, null=True)),
@@ -519,7 +685,10 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
- ('units', django.contrib.postgres.fields.ArrayField(base_field=models.PositiveSmallIntegerField(), size=None)),
+ (
+ 'units',
+ django.contrib.postgres.fields.ArrayField(base_field=models.PositiveSmallIntegerField(), size=None),
+ ),
('description', models.CharField(max_length=200)),
],
options={
@@ -550,13 +719,27 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('_cable_peer_id', models.PositiveIntegerField(blank=True, null=True)),
('mark_connected', models.BooleanField(default=False)),
('type', models.CharField(max_length=50)),
- ('positions', models.PositiveSmallIntegerField(default=1, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(1024)])),
+ (
+ 'positions',
+ models.PositiveSmallIntegerField(
+ default=1,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(1024),
+ ],
+ ),
+ ),
],
options={
'ordering': ('device', '_name'),
@@ -569,11 +752,25 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('type', models.CharField(max_length=50)),
- ('positions', models.PositiveSmallIntegerField(default=1, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(1024)])),
+ (
+ 'positions',
+ models.PositiveSmallIntegerField(
+ default=1,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(1024),
+ ],
+ ),
+ ),
],
options={
'ordering': ('device_type', '_name'),
@@ -606,7 +803,12 @@ class Migration(migrations.Migration):
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=100, unique=True)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('slug', models.SlugField(max_length=100, unique=True)),
('status', models.CharField(default='active', max_length=50)),
('facility', models.CharField(blank=True, max_length=50)),
@@ -654,7 +856,16 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
('domain', models.CharField(blank=True, max_length=30)),
- ('master', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='vc_master_for', to='dcim.device')),
+ (
+ 'master',
+ models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='vc_master_for',
+ to='dcim.device',
+ ),
+ ),
],
options={
'verbose_name_plural': 'virtual chassis',
diff --git a/netbox/dcim/migrations/0002_squashed.py b/netbox/dcim/migrations/0002_squashed.py
index 786167680..2e830560f 100644
--- a/netbox/dcim/migrations/0002_squashed.py
+++ b/netbox/dcim/migrations/0002_squashed.py
@@ -6,7 +6,6 @@ import taggit.managers
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
@@ -28,17 +27,35 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='sitegroup',
name='parent',
- field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='dcim.sitegroup'),
+ field=mptt.fields.TreeForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='children',
+ to='dcim.sitegroup',
+ ),
),
migrations.AddField(
model_name='site',
name='group',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='sites', to='dcim.sitegroup'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='sites',
+ to='dcim.sitegroup',
+ ),
),
migrations.AddField(
model_name='site',
name='region',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='sites', to='dcim.region'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='sites',
+ to='dcim.region',
+ ),
),
migrations.AddField(
model_name='site',
@@ -48,32 +65,56 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='site',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='sites', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='sites',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='region',
name='parent',
- field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='dcim.region'),
+ field=mptt.fields.TreeForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='children',
+ to='dcim.region',
+ ),
),
migrations.AddField(
model_name='rearporttemplate',
name='device_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
),
migrations.AddField(
model_name='rearport',
name='_cable_peer_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='rearport',
name='cable',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'
+ ),
),
migrations.AddField(
model_name='rearport',
name='device',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='rearport',
@@ -83,7 +124,9 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='rackreservation',
name='rack',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reservations', to='dcim.rack'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='reservations', to='dcim.rack'
+ ),
),
migrations.AddField(
model_name='rackreservation',
@@ -93,7 +136,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='rackreservation',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='rackreservations', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='rackreservations',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='rackreservation',
@@ -103,12 +152,24 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='rack',
name='location',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='racks', to='dcim.location'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='racks',
+ to='dcim.location',
+ ),
),
migrations.AddField(
model_name='rack',
name='role',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='racks', to='dcim.rackrole'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='racks',
+ to='dcim.rackrole',
+ ),
),
migrations.AddField(
model_name='rack',
@@ -123,32 +184,52 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='rack',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='racks', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='racks',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='powerporttemplate',
name='device_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
),
migrations.AddField(
model_name='powerport',
name='_cable_peer_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='powerport',
name='_path',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'
+ ),
),
migrations.AddField(
model_name='powerport',
name='cable',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'
+ ),
),
migrations.AddField(
model_name='powerport',
name='device',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='powerport',
@@ -158,7 +239,9 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='powerpanel',
name='location',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='dcim.location'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='dcim.location'
+ ),
),
migrations.AddField(
model_name='powerpanel',
@@ -173,37 +256,63 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='poweroutlettemplate',
name='device_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
),
migrations.AddField(
model_name='poweroutlettemplate',
name='power_port',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='poweroutlet_templates', to='dcim.powerporttemplate'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='poweroutlet_templates',
+ to='dcim.powerporttemplate',
+ ),
),
migrations.AddField(
model_name='poweroutlet',
name='_cable_peer_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='poweroutlet',
name='_path',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'
+ ),
),
migrations.AddField(
model_name='poweroutlet',
name='cable',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'
+ ),
),
migrations.AddField(
model_name='poweroutlet',
name='device',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='poweroutlet',
name='power_port',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='poweroutlets', to='dcim.powerport'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='poweroutlets',
+ to='dcim.powerport',
+ ),
),
migrations.AddField(
model_name='poweroutlet',
@@ -213,27 +322,45 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='powerfeed',
name='_cable_peer_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='powerfeed',
name='_path',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'
+ ),
),
migrations.AddField(
model_name='powerfeed',
name='cable',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'
+ ),
),
migrations.AddField(
model_name='powerfeed',
name='power_panel',
- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='powerfeeds', to='dcim.powerpanel'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='powerfeeds', to='dcim.powerpanel'
+ ),
),
migrations.AddField(
model_name='powerfeed',
name='rack',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='powerfeeds', to='dcim.rack'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='powerfeeds',
+ to='dcim.rack',
+ ),
),
migrations.AddField(
model_name='powerfeed',
@@ -243,32 +370,60 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='platform',
name='manufacturer',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='platforms', to='dcim.manufacturer'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='platforms',
+ to='dcim.manufacturer',
+ ),
),
migrations.AddField(
model_name='location',
name='parent',
- field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='dcim.location'),
+ field=mptt.fields.TreeForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='children',
+ to='dcim.location',
+ ),
),
migrations.AddField(
model_name='location',
name='site',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='locations', to='dcim.site'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='locations', to='dcim.site'
+ ),
),
migrations.AddField(
model_name='inventoryitem',
name='device',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='inventoryitem',
name='manufacturer',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='inventory_items', to='dcim.manufacturer'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='inventory_items',
+ to='dcim.manufacturer',
+ ),
),
migrations.AddField(
model_name='inventoryitem',
name='parent',
- field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='child_items', to='dcim.inventoryitem'),
+ field=mptt.fields.TreeForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='child_items',
+ to='dcim.inventoryitem',
+ ),
),
migrations.AddField(
model_name='inventoryitem',
@@ -278,36 +433,62 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='interfacetemplate',
name='device_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
),
migrations.AddField(
model_name='interface',
name='_cable_peer_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='interface',
name='_path',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'
+ ),
),
migrations.AddField(
model_name='interface',
name='cable',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'
+ ),
),
migrations.AddField(
model_name='interface',
name='device',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='interface',
name='lag',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='member_interfaces', to='dcim.interface'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='member_interfaces',
+ to='dcim.interface',
+ ),
),
migrations.AddField(
model_name='interface',
name='parent',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='child_interfaces', to='dcim.interface'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='child_interfaces',
+ to='dcim.interface',
+ ),
),
]
diff --git a/netbox/dcim/migrations/0003_squashed_0130.py b/netbox/dcim/migrations/0003_squashed_0130.py
index 592aaf9a8..0248d9ba1 100644
--- a/netbox/dcim/migrations/0003_squashed_0130.py
+++ b/netbox/dcim/migrations/0003_squashed_0130.py
@@ -4,7 +4,6 @@ import taggit.managers
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0002_auto_20160622_1821'),
('virtualization', '0001_virtualization'),
@@ -160,37 +159,61 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='interface',
name='untagged_vlan',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='interfaces_as_untagged', to='ipam.vlan'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='interfaces_as_untagged',
+ to='ipam.vlan',
+ ),
),
migrations.AddField(
model_name='frontporttemplate',
name='device_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
),
migrations.AddField(
model_name='frontporttemplate',
name='rear_port',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='frontport_templates', to='dcim.rearporttemplate'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='frontport_templates',
+ to='dcim.rearporttemplate',
+ ),
),
migrations.AddField(
model_name='frontport',
name='_cable_peer_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='frontport',
name='cable',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'
+ ),
),
migrations.AddField(
model_name='frontport',
name='device',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='frontport',
name='rear_port',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='frontports', to='dcim.rearport'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='frontports', to='dcim.rearport'
+ ),
),
migrations.AddField(
model_name='frontport',
@@ -200,7 +223,9 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='devicetype',
name='manufacturer',
- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='device_types', to='dcim.manufacturer'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='device_types', to='dcim.manufacturer'
+ ),
),
migrations.AddField(
model_name='devicetype',
@@ -210,17 +235,27 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='devicebaytemplate',
name='device_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
),
migrations.AddField(
model_name='devicebay',
name='device',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='devicebay',
name='installed_device',
- field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='parent_bay', to='dcim.device'),
+ field=models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='parent_bay',
+ to='dcim.device',
+ ),
),
migrations.AddField(
model_name='devicebay',
@@ -230,47 +265,89 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='device',
name='cluster',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='devices', to='virtualization.cluster'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='devices',
+ to='virtualization.cluster',
+ ),
),
migrations.AddField(
model_name='device',
name='device_role',
- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='devices', to='dcim.devicerole'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='devices', to='dcim.devicerole'
+ ),
),
migrations.AddField(
model_name='device',
name='device_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='instances', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='instances', to='dcim.devicetype'
+ ),
),
migrations.AddField(
model_name='device',
name='location',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='devices', to='dcim.location'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='devices',
+ to='dcim.location',
+ ),
),
migrations.AddField(
model_name='device',
name='platform',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='devices', to='dcim.platform'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='devices',
+ to='dcim.platform',
+ ),
),
migrations.AddField(
model_name='device',
name='primary_ip4',
- field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='primary_ip4_for', to='ipam.ipaddress'),
+ field=models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='primary_ip4_for',
+ to='ipam.ipaddress',
+ ),
),
migrations.AddField(
model_name='device',
name='primary_ip6',
- field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='primary_ip6_for', to='ipam.ipaddress'),
+ field=models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='primary_ip6_for',
+ to='ipam.ipaddress',
+ ),
),
migrations.AddField(
model_name='device',
name='rack',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='devices', to='dcim.rack'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='devices',
+ to='dcim.rack',
+ ),
),
migrations.AddField(
model_name='device',
name='site',
- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='devices', to='dcim.site'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='devices', to='dcim.site'
+ ),
),
migrations.AddField(
model_name='device',
@@ -280,37 +357,63 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='device',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='devices', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='devices',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='device',
name='virtual_chassis',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='members', to='dcim.virtualchassis'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='members',
+ to='dcim.virtualchassis',
+ ),
),
migrations.AddField(
model_name='consoleserverporttemplate',
name='device_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
),
migrations.AddField(
model_name='consoleserverport',
name='_cable_peer_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='consoleserverport',
name='_path',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'
+ ),
),
migrations.AddField(
model_name='consoleserverport',
name='cable',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'
+ ),
),
migrations.AddField(
model_name='consoleserverport',
name='device',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='consoleserverport',
@@ -320,27 +423,41 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='consoleporttemplate',
name='device_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
),
migrations.AddField(
model_name='consoleport',
name='_cable_peer_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='consoleport',
name='_path',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='dcim.cablepath'
+ ),
),
migrations.AddField(
model_name='consoleport',
name='cable',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.cable'
+ ),
),
migrations.AddField(
model_name='consoleport',
name='device',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='consoleport',
@@ -350,22 +467,34 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='cablepath',
name='destination_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='cablepath',
name='origin_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.contenttype'
+ ),
),
migrations.AddField(
model_name='cable',
name='_termination_a_device',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='dcim.device'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='cable',
name='_termination_b_device',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='dcim.device'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='dcim.device'
+ ),
),
migrations.AddField(
model_name='cable',
@@ -375,12 +504,64 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='cable',
name='termination_a_type',
- field=models.ForeignKey(limit_choices_to=models.Q(models.Q(models.Q(('app_label', 'circuits'), ('model__in', ('circuittermination',))), models.Q(('app_label', 'dcim'), ('model__in', ('consoleport', 'consoleserverport', 'frontport', 'interface', 'powerfeed', 'poweroutlet', 'powerport', 'rearport'))), _connector='OR')), on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ limit_choices_to=models.Q(
+ models.Q(
+ models.Q(('app_label', 'circuits'), ('model__in', ('circuittermination',))),
+ models.Q(
+ ('app_label', 'dcim'),
+ (
+ 'model__in',
+ (
+ 'consoleport',
+ 'consoleserverport',
+ 'frontport',
+ 'interface',
+ 'powerfeed',
+ 'poweroutlet',
+ 'powerport',
+ 'rearport',
+ ),
+ ),
+ ),
+ _connector='OR',
+ )
+ ),
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='cable',
name='termination_b_type',
- field=models.ForeignKey(limit_choices_to=models.Q(models.Q(models.Q(('app_label', 'circuits'), ('model__in', ('circuittermination',))), models.Q(('app_label', 'dcim'), ('model__in', ('consoleport', 'consoleserverport', 'frontport', 'interface', 'powerfeed', 'poweroutlet', 'powerport', 'rearport'))), _connector='OR')), on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ limit_choices_to=models.Q(
+ models.Q(
+ models.Q(('app_label', 'circuits'), ('model__in', ('circuittermination',))),
+ models.Q(
+ ('app_label', 'dcim'),
+ (
+ 'model__in',
+ (
+ 'consoleport',
+ 'consoleserverport',
+ 'frontport',
+ 'interface',
+ 'powerfeed',
+ 'poweroutlet',
+ 'powerport',
+ 'rearport',
+ ),
+ ),
+ ),
+ _connector='OR',
+ )
+ ),
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AlterUniqueTogether(
name='rearporttemplate',
@@ -456,7 +637,11 @@ class Migration(migrations.Migration):
),
migrations.AlterUniqueTogether(
name='device',
- unique_together={('rack', 'position', 'face'), ('virtual_chassis', 'vc_position'), ('site', 'tenant', 'name')},
+ unique_together={
+ ('rack', 'position', 'face'),
+ ('virtual_chassis', 'vc_position'),
+ ('site', 'tenant', 'name'),
+ },
),
migrations.AlterUniqueTogether(
name='consoleserverporttemplate',
diff --git a/netbox/dcim/migrations/0131_squashed_0159.py b/netbox/dcim/migrations/0131_squashed_0159.py
index f7e7cfdb2..3866e8cc8 100644
--- a/netbox/dcim/migrations/0131_squashed_0159.py
+++ b/netbox/dcim/migrations/0131_squashed_0159.py
@@ -10,7 +10,6 @@ import utilities.ordering
class Migration(migrations.Migration):
-
replaces = [
('dcim', '0131_consoleport_speed'),
('dcim', '0132_cable_length'),
@@ -40,7 +39,7 @@ class Migration(migrations.Migration):
('dcim', '0156_location_status'),
('dcim', '0157_new_cabling_models'),
('dcim', '0158_populate_cable_terminations'),
- ('dcim', '0159_populate_cable_paths')
+ ('dcim', '0159_populate_cable_paths'),
]
dependencies = [
@@ -96,17 +95,35 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='interface',
name='bridge',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='bridge_interfaces', to='dcim.interface'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='bridge_interfaces',
+ to='dcim.interface',
+ ),
),
migrations.AddField(
model_name='location',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='locations', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='locations',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='cable',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='cables', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='cables',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='devicetype',
@@ -148,7 +165,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='location',
- constraint=models.UniqueConstraint(condition=models.Q(('parent', None)), fields=('site', 'name'), name='dcim_location_name'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent', None)), fields=('site', 'name'), name='dcim_location_name'
+ ),
),
migrations.AddConstraint(
model_name='location',
@@ -156,7 +175,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='location',
- constraint=models.UniqueConstraint(condition=models.Q(('parent', None)), fields=('site', 'slug'), name='dcim_location_slug'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent', None)), fields=('site', 'slug'), name='dcim_location_slug'
+ ),
),
migrations.AddConstraint(
model_name='region',
@@ -164,7 +185,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='region',
- constraint=models.UniqueConstraint(condition=models.Q(('parent', None)), fields=('name',), name='dcim_region_name'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent', None)), fields=('name',), name='dcim_region_name'
+ ),
),
migrations.AddConstraint(
model_name='region',
@@ -172,7 +195,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='region',
- constraint=models.UniqueConstraint(condition=models.Q(('parent', None)), fields=('slug',), name='dcim_region_slug'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent', None)), fields=('slug',), name='dcim_region_slug'
+ ),
),
migrations.AddConstraint(
model_name='sitegroup',
@@ -180,7 +205,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='sitegroup',
- constraint=models.UniqueConstraint(condition=models.Q(('parent', None)), fields=('name',), name='dcim_sitegroup_name'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent', None)), fields=('name',), name='dcim_sitegroup_name'
+ ),
),
migrations.AddConstraint(
model_name='sitegroup',
@@ -188,7 +215,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='sitegroup',
- constraint=models.UniqueConstraint(condition=models.Q(('parent', None)), fields=('slug',), name='dcim_sitegroup_slug'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent', None)), fields=('slug',), name='dcim_sitegroup_slug'
+ ),
),
migrations.AddField(
model_name='devicerole',
@@ -328,7 +357,9 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='interface',
name='tx_power',
- field=models.PositiveSmallIntegerField(blank=True, null=True, validators=[django.core.validators.MaxValueValidator(127)]),
+ field=models.PositiveSmallIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MaxValueValidator(127)]
+ ),
),
migrations.AddField(
model_name='interface',
@@ -338,7 +369,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='interface',
name='wireless_link',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wireless.wirelesslink'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='wireless.wirelesslink',
+ ),
),
migrations.AddField(
model_name='site',
@@ -348,12 +385,24 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='device',
name='primary_ip4',
- field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='ipam.ipaddress'),
+ field=models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='ipam.ipaddress',
+ ),
),
migrations.AlterField(
model_name='device',
name='primary_ip6',
- field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='ipam.ipaddress'),
+ field=models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='ipam.ipaddress',
+ ),
),
migrations.RemoveField(
model_name='site',
@@ -372,7 +421,23 @@ class Migration(migrations.Migration):
name='contact_phone',
),
migrations.RunSQL(
- sql="\n DO $$\n DECLARE\n idx record;\n BEGIN\n FOR idx IN\n SELECT indexname AS old_name,\n replace(indexname, 'module', 'inventoryitem') AS new_name\n FROM pg_indexes\n WHERE schemaname = 'public' AND\n tablename = 'dcim_inventoryitem' AND\n indexname LIKE 'dcim_module_%'\n LOOP\n EXECUTE format(\n 'ALTER INDEX %I RENAME TO %I;',\n idx.old_name,\n idx.new_name\n );\n END LOOP;\n END$$;\n ",
+ sql="""DO $$
+ DECLARE idx record;
+ BEGIN
+ FOR idx IN
+ SELECT indexname AS old_name, replace(indexname, 'module', 'inventoryitem') AS new_name
+ FROM pg_indexes
+ WHERE schemaname = 'public' AND
+ tablename = 'dcim_inventoryitem' AND
+ indexname LIKE 'dcim_module_%'
+ LOOP
+ EXECUTE format(
+ 'ALTER INDEX %I RENAME TO %I;',
+ idx.old_name,
+ idx.new_name
+ );
+ END LOOP;
+ END$$;""",
),
migrations.AlterModelOptions(
name='consoleporttemplate',
@@ -405,49 +470,99 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='consoleporttemplate',
name='device_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.devicetype',
+ ),
),
migrations.AlterField(
model_name='consoleserverporttemplate',
name='device_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.devicetype',
+ ),
),
migrations.AlterField(
model_name='frontporttemplate',
name='device_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.devicetype',
+ ),
),
migrations.AlterField(
model_name='interfacetemplate',
name='device_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.devicetype',
+ ),
),
migrations.AlterField(
model_name='poweroutlettemplate',
name='device_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.devicetype',
+ ),
),
migrations.AlterField(
model_name='powerporttemplate',
name='device_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.devicetype',
+ ),
),
migrations.AlterField(
model_name='rearporttemplate',
name='device_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.devicetype',
+ ),
),
migrations.CreateModel(
name='ModuleType',
fields=[
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('model', models.CharField(max_length=100)),
('part_number', models.CharField(blank=True, max_length=50)),
('comments', models.TextField(blank=True)),
- ('manufacturer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='module_types', to='dcim.manufacturer')),
+ (
+ 'manufacturer',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='module_types', to='dcim.manufacturer'
+ ),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
options={
@@ -460,14 +575,27 @@ class Migration(migrations.Migration):
fields=[
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('position', models.CharField(blank=True, max_length=30)),
('description', models.CharField(blank=True, max_length=200)),
- ('device', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device')),
+ (
+ 'device',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.device'
+ ),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
options={
@@ -480,15 +608,35 @@ class Migration(migrations.Migration):
fields=[
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('local_context_data', models.JSONField(blank=True, null=True)),
('serial', models.CharField(blank=True, max_length=50)),
('asset_tag', models.CharField(blank=True, max_length=50, null=True, unique=True)),
('comments', models.TextField(blank=True)),
- ('device', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='modules', to='dcim.device')),
- ('module_bay', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='installed_module', to='dcim.modulebay')),
- ('module_type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='instances', to='dcim.moduletype')),
+ (
+ 'device',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='modules', to='dcim.device'
+ ),
+ ),
+ (
+ 'module_bay',
+ models.OneToOneField(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='installed_module',
+ to='dcim.modulebay',
+ ),
+ ),
+ (
+ 'module_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='instances', to='dcim.moduletype'
+ ),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
options={
@@ -498,72 +646,156 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='consoleport',
name='module',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.module'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.module',
+ ),
),
migrations.AddField(
model_name='consoleporttemplate',
name='module_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.moduletype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.moduletype',
+ ),
),
migrations.AddField(
model_name='consoleserverport',
name='module',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.module'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.module',
+ ),
),
migrations.AddField(
model_name='consoleserverporttemplate',
name='module_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.moduletype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.moduletype',
+ ),
),
migrations.AddField(
model_name='frontport',
name='module',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.module'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.module',
+ ),
),
migrations.AddField(
model_name='frontporttemplate',
name='module_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.moduletype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.moduletype',
+ ),
),
migrations.AddField(
model_name='interface',
name='module',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.module'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.module',
+ ),
),
migrations.AddField(
model_name='interfacetemplate',
name='module_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.moduletype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.moduletype',
+ ),
),
migrations.AddField(
model_name='poweroutlet',
name='module',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.module'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.module',
+ ),
),
migrations.AddField(
model_name='poweroutlettemplate',
name='module_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.moduletype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.moduletype',
+ ),
),
migrations.AddField(
model_name='powerport',
name='module',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.module'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.module',
+ ),
),
migrations.AddField(
model_name='powerporttemplate',
name='module_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.moduletype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.moduletype',
+ ),
),
migrations.AddField(
model_name='rearport',
name='module',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.module'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.module',
+ ),
),
migrations.AddField(
model_name='rearporttemplate',
name='module_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.moduletype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.moduletype',
+ ),
),
migrations.AlterUniqueTogether(
name='consoleporttemplate',
@@ -598,7 +830,10 @@ class Migration(migrations.Migration):
fields=[
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('name', models.CharField(max_length=100, unique=True)),
('slug', models.SlugField(max_length=100, unique=True)),
@@ -613,7 +848,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='inventoryitem',
name='role',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='inventory_items', to='dcim.inventoryitemrole'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='inventory_items',
+ to='dcim.inventoryitemrole',
+ ),
),
migrations.AddField(
model_name='inventoryitem',
@@ -623,12 +864,39 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='inventoryitem',
name='component_type',
- field=models.ForeignKey(blank=True, limit_choices_to=models.Q(('app_label', 'dcim'), ('model__in', ('consoleport', 'consoleserverport', 'frontport', 'interface', 'poweroutlet', 'powerport', 'rearport'))), null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ limit_choices_to=models.Q(
+ ('app_label', 'dcim'),
+ (
+ 'model__in',
+ (
+ 'consoleport',
+ 'consoleserverport',
+ 'frontport',
+ 'interface',
+ 'poweroutlet',
+ 'powerport',
+ 'rearport',
+ ),
+ ),
+ ),
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='interface',
name='vrf',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='interfaces', to='ipam.vrf'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='interfaces',
+ to='ipam.vrf',
+ ),
),
migrations.AddField(
model_name='interface',
@@ -952,7 +1220,12 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=200)),
('component_id', models.PositiveBigIntegerField(blank=True, null=True)),
@@ -961,11 +1234,67 @@ class Migration(migrations.Migration):
('rght', models.PositiveIntegerField(editable=False)),
('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
('level', models.PositiveIntegerField(editable=False)),
- ('component_type', models.ForeignKey(blank=True, limit_choices_to=models.Q(('app_label', 'dcim'), ('model__in', ('consoleporttemplate', 'consoleserverporttemplate', 'frontporttemplate', 'interfacetemplate', 'poweroutlettemplate', 'powerporttemplate', 'rearporttemplate'))), null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype')),
- ('device_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype')),
- ('manufacturer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='inventory_item_templates', to='dcim.manufacturer')),
- ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='child_items', to='dcim.inventoryitemtemplate')),
- ('role', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='inventory_item_templates', to='dcim.inventoryitemrole')),
+ (
+ 'component_type',
+ models.ForeignKey(
+ blank=True,
+ limit_choices_to=models.Q(
+ ('app_label', 'dcim'),
+ (
+ 'model__in',
+ (
+ 'consoleporttemplate',
+ 'consoleserverporttemplate',
+ 'frontporttemplate',
+ 'interfacetemplate',
+ 'poweroutlettemplate',
+ 'powerporttemplate',
+ 'rearporttemplate',
+ ),
+ ),
+ ),
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ (
+ 'device_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
+ ),
+ (
+ 'manufacturer',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='inventory_item_templates',
+ to='dcim.manufacturer',
+ ),
+ ),
+ (
+ 'parent',
+ mptt.fields.TreeForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='child_items',
+ to='dcim.inventoryitemtemplate',
+ ),
+ ),
+ (
+ 'role',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='inventory_item_templates',
+ to='dcim.inventoryitemrole',
+ ),
+ ),
],
options={
'ordering': ('device_type__id', 'parent__id', '_name'),
@@ -989,11 +1318,21 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('name', models.CharField(max_length=64)),
- ('_name', utilities.fields.NaturalOrderingField('name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize)),
+ (
+ '_name',
+ utilities.fields.NaturalOrderingField(
+ 'name', blank=True, max_length=100, naturalize_function=utilities.ordering.naturalize
+ ),
+ ),
('label', models.CharField(blank=True, max_length=64)),
('position', models.CharField(blank=True, max_length=30)),
('description', models.CharField(blank=True, max_length=200)),
- ('device_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype')),
+ (
+ 'device_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'
+ ),
+ ),
],
options={
'ordering': ('device_type', '_name'),
@@ -1088,7 +1427,16 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='device',
name='position',
- field=models.DecimalField(blank=True, decimal_places=1, max_digits=4, null=True, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(100.5)]),
+ field=models.DecimalField(
+ blank=True,
+ decimal_places=1,
+ max_digits=4,
+ null=True,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(100.5),
+ ],
+ ),
),
migrations.AddField(
model_name='interface',
@@ -1121,12 +1469,66 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('cable_end', models.CharField(max_length=1)),
('termination_id', models.PositiveBigIntegerField()),
- ('cable', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='terminations', to='dcim.cable')),
- ('termination_type', models.ForeignKey(limit_choices_to=models.Q(models.Q(models.Q(('app_label', 'circuits'), ('model__in', ('circuittermination',))), models.Q(('app_label', 'dcim'), ('model__in', ('consoleport', 'consoleserverport', 'frontport', 'interface', 'powerfeed', 'poweroutlet', 'powerport', 'rearport'))), _connector='OR')), on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype')),
- ('_device', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.device')),
- ('_rack', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.rack')),
- ('_location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.location')),
- ('_site', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.site')),
+ (
+ 'cable',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='terminations', to='dcim.cable'
+ ),
+ ),
+ (
+ 'termination_type',
+ models.ForeignKey(
+ limit_choices_to=models.Q(
+ models.Q(
+ models.Q(('app_label', 'circuits'), ('model__in', ('circuittermination',))),
+ models.Q(
+ ('app_label', 'dcim'),
+ (
+ 'model__in',
+ (
+ 'consoleport',
+ 'consoleserverport',
+ 'frontport',
+ 'interface',
+ 'powerfeed',
+ 'poweroutlet',
+ 'powerport',
+ 'rearport',
+ ),
+ ),
+ ),
+ _connector='OR',
+ )
+ ),
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ (
+ '_device',
+ models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.device'
+ ),
+ ),
+ (
+ '_rack',
+ models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.rack'
+ ),
+ ),
+ (
+ '_location',
+ models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.location'
+ ),
+ ),
+ (
+ '_site',
+ models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.site'
+ ),
+ ),
],
options={
'ordering': ('cable', 'cable_end', 'pk'),
@@ -1134,7 +1536,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='cabletermination',
- constraint=models.UniqueConstraint(fields=('termination_type', 'termination_id'), name='dcim_cable_termination_unique_termination'),
+ constraint=models.UniqueConstraint(
+ fields=('termination_type', 'termination_id'), name='dcim_cable_termination_unique_termination'
+ ),
),
migrations.RenameField(
model_name='cablepath',
diff --git a/netbox/dcim/migrations/0160_squashed_0166.py b/netbox/dcim/migrations/0160_squashed_0166.py
index 440a8115e..0deb58bab 100644
--- a/netbox/dcim/migrations/0160_squashed_0166.py
+++ b/netbox/dcim/migrations/0160_squashed_0166.py
@@ -6,7 +6,6 @@ import utilities.json
class Migration(migrations.Migration):
-
replaces = [
('dcim', '0160_populate_cable_ends'),
('dcim', '0161_cabling_cleanup'),
@@ -14,7 +13,7 @@ class Migration(migrations.Migration):
('dcim', '0163_weight_fields'),
('dcim', '0164_rack_mounting_depth'),
('dcim', '0165_standardize_description_comments'),
- ('dcim', '0166_virtualdevicecontext')
+ ('dcim', '0166_virtualdevicecontext'),
]
dependencies = [
@@ -275,7 +274,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='cabletermination',
- constraint=models.UniqueConstraint(fields=('termination_type', 'termination_id'), name='dcim_cabletermination_unique_termination'),
+ constraint=models.UniqueConstraint(
+ fields=('termination_type', 'termination_id'), name='dcim_cabletermination_unique_termination'
+ ),
),
migrations.AddConstraint(
model_name='consoleport',
@@ -283,39 +284,64 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='consoleporttemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'name'), name='dcim_consoleporttemplate_unique_device_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'name'), name='dcim_consoleporttemplate_unique_device_type_name'
+ ),
),
migrations.AddConstraint(
model_name='consoleporttemplate',
- constraint=models.UniqueConstraint(fields=('module_type', 'name'), name='dcim_consoleporttemplate_unique_module_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('module_type', 'name'), name='dcim_consoleporttemplate_unique_module_type_name'
+ ),
),
migrations.AddConstraint(
model_name='consoleserverport',
- constraint=models.UniqueConstraint(fields=('device', 'name'), name='dcim_consoleserverport_unique_device_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device', 'name'), name='dcim_consoleserverport_unique_device_name'
+ ),
),
migrations.AddConstraint(
model_name='consoleserverporttemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'name'), name='dcim_consoleserverporttemplate_unique_device_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'name'), name='dcim_consoleserverporttemplate_unique_device_type_name'
+ ),
),
migrations.AddConstraint(
model_name='consoleserverporttemplate',
- constraint=models.UniqueConstraint(fields=('module_type', 'name'), name='dcim_consoleserverporttemplate_unique_module_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('module_type', 'name'), name='dcim_consoleserverporttemplate_unique_module_type_name'
+ ),
),
migrations.AddConstraint(
model_name='device',
- constraint=models.UniqueConstraint(django.db.models.functions.text.Lower('name'), models.F('site'), models.F('tenant'), name='dcim_device_unique_name_site_tenant'),
+ constraint=models.UniqueConstraint(
+ django.db.models.functions.text.Lower('name'),
+ models.F('site'),
+ models.F('tenant'),
+ name='dcim_device_unique_name_site_tenant',
+ ),
),
migrations.AddConstraint(
model_name='device',
- constraint=models.UniqueConstraint(django.db.models.functions.text.Lower('name'), models.F('site'), condition=models.Q(('tenant__isnull', True)), name='dcim_device_unique_name_site', violation_error_message='Device name must be unique per site.'),
+ constraint=models.UniqueConstraint(
+ django.db.models.functions.text.Lower('name'),
+ models.F('site'),
+ condition=models.Q(('tenant__isnull', True)),
+ name='dcim_device_unique_name_site',
+ violation_error_message='Device name must be unique per site.',
+ ),
),
migrations.AddConstraint(
model_name='device',
- constraint=models.UniqueConstraint(fields=('rack', 'position', 'face'), name='dcim_device_unique_rack_position_face'),
+ constraint=models.UniqueConstraint(
+ fields=('rack', 'position', 'face'), name='dcim_device_unique_rack_position_face'
+ ),
),
migrations.AddConstraint(
model_name='device',
- constraint=models.UniqueConstraint(fields=('virtual_chassis', 'vc_position'), name='dcim_device_unique_virtual_chassis_vc_position'),
+ constraint=models.UniqueConstraint(
+ fields=('virtual_chassis', 'vc_position'), name='dcim_device_unique_virtual_chassis_vc_position'
+ ),
),
migrations.AddConstraint(
model_name='devicebay',
@@ -323,15 +349,21 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='devicebaytemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'name'), name='dcim_devicebaytemplate_unique_device_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'name'), name='dcim_devicebaytemplate_unique_device_type_name'
+ ),
),
migrations.AddConstraint(
model_name='devicetype',
- constraint=models.UniqueConstraint(fields=('manufacturer', 'model'), name='dcim_devicetype_unique_manufacturer_model'),
+ constraint=models.UniqueConstraint(
+ fields=('manufacturer', 'model'), name='dcim_devicetype_unique_manufacturer_model'
+ ),
),
migrations.AddConstraint(
model_name='devicetype',
- constraint=models.UniqueConstraint(fields=('manufacturer', 'slug'), name='dcim_devicetype_unique_manufacturer_slug'),
+ constraint=models.UniqueConstraint(
+ fields=('manufacturer', 'slug'), name='dcim_devicetype_unique_manufacturer_slug'
+ ),
),
migrations.AddConstraint(
model_name='frontport',
@@ -339,19 +371,27 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='frontport',
- constraint=models.UniqueConstraint(fields=('rear_port', 'rear_port_position'), name='dcim_frontport_unique_rear_port_position'),
+ constraint=models.UniqueConstraint(
+ fields=('rear_port', 'rear_port_position'), name='dcim_frontport_unique_rear_port_position'
+ ),
),
migrations.AddConstraint(
model_name='frontporttemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'name'), name='dcim_frontporttemplate_unique_device_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'name'), name='dcim_frontporttemplate_unique_device_type_name'
+ ),
),
migrations.AddConstraint(
model_name='frontporttemplate',
- constraint=models.UniqueConstraint(fields=('module_type', 'name'), name='dcim_frontporttemplate_unique_module_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('module_type', 'name'), name='dcim_frontporttemplate_unique_module_type_name'
+ ),
),
migrations.AddConstraint(
model_name='frontporttemplate',
- constraint=models.UniqueConstraint(fields=('rear_port', 'rear_port_position'), name='dcim_frontporttemplate_unique_rear_port_position'),
+ constraint=models.UniqueConstraint(
+ fields=('rear_port', 'rear_port_position'), name='dcim_frontporttemplate_unique_rear_port_position'
+ ),
),
migrations.AddConstraint(
model_name='interface',
@@ -359,27 +399,46 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='interfacetemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'name'), name='dcim_interfacetemplate_unique_device_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'name'), name='dcim_interfacetemplate_unique_device_type_name'
+ ),
),
migrations.AddConstraint(
model_name='interfacetemplate',
- constraint=models.UniqueConstraint(fields=('module_type', 'name'), name='dcim_interfacetemplate_unique_module_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('module_type', 'name'), name='dcim_interfacetemplate_unique_module_type_name'
+ ),
),
migrations.AddConstraint(
model_name='inventoryitem',
- constraint=models.UniqueConstraint(fields=('device', 'parent', 'name'), name='dcim_inventoryitem_unique_device_parent_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device', 'parent', 'name'), name='dcim_inventoryitem_unique_device_parent_name'
+ ),
),
migrations.AddConstraint(
model_name='inventoryitemtemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'parent', 'name'), name='dcim_inventoryitemtemplate_unique_device_type_parent_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'parent', 'name'),
+ name='dcim_inventoryitemtemplate_unique_device_type_parent_name',
+ ),
),
migrations.AddConstraint(
model_name='location',
- constraint=models.UniqueConstraint(condition=models.Q(('parent__isnull', True)), fields=('site', 'name'), name='dcim_location_name', violation_error_message='A location with this name already exists within the specified site.'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent__isnull', True)),
+ fields=('site', 'name'),
+ name='dcim_location_name',
+ violation_error_message='A location with this name already exists within the specified site.',
+ ),
),
migrations.AddConstraint(
model_name='location',
- constraint=models.UniqueConstraint(condition=models.Q(('parent__isnull', True)), fields=('site', 'slug'), name='dcim_location_slug', violation_error_message='A location with this slug already exists within the specified site.'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent__isnull', True)),
+ fields=('site', 'slug'),
+ name='dcim_location_slug',
+ violation_error_message='A location with this slug already exists within the specified site.',
+ ),
),
migrations.AddConstraint(
model_name='modulebay',
@@ -387,15 +446,21 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='modulebaytemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'name'), name='dcim_modulebaytemplate_unique_device_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'name'), name='dcim_modulebaytemplate_unique_device_type_name'
+ ),
),
migrations.AddConstraint(
model_name='moduletype',
- constraint=models.UniqueConstraint(fields=('manufacturer', 'model'), name='dcim_moduletype_unique_manufacturer_model'),
+ constraint=models.UniqueConstraint(
+ fields=('manufacturer', 'model'), name='dcim_moduletype_unique_manufacturer_model'
+ ),
),
migrations.AddConstraint(
model_name='powerfeed',
- constraint=models.UniqueConstraint(fields=('power_panel', 'name'), name='dcim_powerfeed_unique_power_panel_name'),
+ constraint=models.UniqueConstraint(
+ fields=('power_panel', 'name'), name='dcim_powerfeed_unique_power_panel_name'
+ ),
),
migrations.AddConstraint(
model_name='poweroutlet',
@@ -403,11 +468,15 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='poweroutlettemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'name'), name='dcim_poweroutlettemplate_unique_device_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'name'), name='dcim_poweroutlettemplate_unique_device_type_name'
+ ),
),
migrations.AddConstraint(
model_name='poweroutlettemplate',
- constraint=models.UniqueConstraint(fields=('module_type', 'name'), name='dcim_poweroutlettemplate_unique_module_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('module_type', 'name'), name='dcim_poweroutlettemplate_unique_module_type_name'
+ ),
),
migrations.AddConstraint(
model_name='powerpanel',
@@ -419,11 +488,15 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='powerporttemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'name'), name='dcim_powerporttemplate_unique_device_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'name'), name='dcim_powerporttemplate_unique_device_type_name'
+ ),
),
migrations.AddConstraint(
model_name='powerporttemplate',
- constraint=models.UniqueConstraint(fields=('module_type', 'name'), name='dcim_powerporttemplate_unique_module_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('module_type', 'name'), name='dcim_powerporttemplate_unique_module_type_name'
+ ),
),
migrations.AddConstraint(
model_name='rack',
@@ -431,7 +504,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='rack',
- constraint=models.UniqueConstraint(fields=('location', 'facility_id'), name='dcim_rack_unique_location_facility_id'),
+ constraint=models.UniqueConstraint(
+ fields=('location', 'facility_id'), name='dcim_rack_unique_location_facility_id'
+ ),
),
migrations.AddConstraint(
model_name='rearport',
@@ -439,27 +514,51 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='rearporttemplate',
- constraint=models.UniqueConstraint(fields=('device_type', 'name'), name='dcim_rearporttemplate_unique_device_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device_type', 'name'), name='dcim_rearporttemplate_unique_device_type_name'
+ ),
),
migrations.AddConstraint(
model_name='rearporttemplate',
- constraint=models.UniqueConstraint(fields=('module_type', 'name'), name='dcim_rearporttemplate_unique_module_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('module_type', 'name'), name='dcim_rearporttemplate_unique_module_type_name'
+ ),
),
migrations.AddConstraint(
model_name='region',
- constraint=models.UniqueConstraint(condition=models.Q(('parent__isnull', True)), fields=('name',), name='dcim_region_name', violation_error_message='A top-level region with this name already exists.'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent__isnull', True)),
+ fields=('name',),
+ name='dcim_region_name',
+ violation_error_message='A top-level region with this name already exists.',
+ ),
),
migrations.AddConstraint(
model_name='region',
- constraint=models.UniqueConstraint(condition=models.Q(('parent__isnull', True)), fields=('slug',), name='dcim_region_slug', violation_error_message='A top-level region with this slug already exists.'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent__isnull', True)),
+ fields=('slug',),
+ name='dcim_region_slug',
+ violation_error_message='A top-level region with this slug already exists.',
+ ),
),
migrations.AddConstraint(
model_name='sitegroup',
- constraint=models.UniqueConstraint(condition=models.Q(('parent__isnull', True)), fields=('name',), name='dcim_sitegroup_name', violation_error_message='A top-level site group with this name already exists.'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent__isnull', True)),
+ fields=('name',),
+ name='dcim_sitegroup_name',
+ violation_error_message='A top-level site group with this name already exists.',
+ ),
),
migrations.AddConstraint(
model_name='sitegroup',
- constraint=models.UniqueConstraint(condition=models.Q(('parent__isnull', True)), fields=('slug',), name='dcim_sitegroup_slug', violation_error_message='A top-level site group with this slug already exists.'),
+ constraint=models.UniqueConstraint(
+ condition=models.Q(('parent__isnull', True)),
+ fields=('slug',),
+ name='dcim_sitegroup_slug',
+ violation_error_message='A top-level site group with this slug already exists.',
+ ),
),
migrations.AddField(
model_name='devicetype',
@@ -592,17 +691,56 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('description', models.CharField(blank=True, max_length=200)),
('name', models.CharField(max_length=64)),
('status', models.CharField(max_length=50)),
('identifier', models.PositiveSmallIntegerField(blank=True, null=True)),
('comments', models.TextField(blank=True)),
- ('device', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='vdcs', to='dcim.device')),
- ('primary_ip4', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='ipam.ipaddress')),
- ('primary_ip6', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='ipam.ipaddress')),
+ (
+ 'device',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='vdcs',
+ to='dcim.device',
+ ),
+ ),
+ (
+ 'primary_ip4',
+ models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='ipam.ipaddress',
+ ),
+ ),
+ (
+ 'primary_ip6',
+ models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='ipam.ipaddress',
+ ),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
- ('tenant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='vdcs', to='tenancy.tenant')),
+ (
+ 'tenant',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='vdcs',
+ to='tenancy.tenant',
+ ),
+ ),
],
options={
'ordering': ['name'],
@@ -615,7 +753,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='virtualdevicecontext',
- constraint=models.UniqueConstraint(fields=('device', 'identifier'), name='dcim_virtualdevicecontext_device_identifier'),
+ constraint=models.UniqueConstraint(
+ fields=('device', 'identifier'), name='dcim_virtualdevicecontext_device_identifier'
+ ),
),
migrations.AddConstraint(
model_name='virtualdevicecontext',
diff --git a/netbox/dcim/migrations/0167_squashed_0182.py b/netbox/dcim/migrations/0167_squashed_0182.py
index 735cb3efa..d0ad5379f 100644
--- a/netbox/dcim/migrations/0167_squashed_0182.py
+++ b/netbox/dcim/migrations/0167_squashed_0182.py
@@ -6,7 +6,6 @@ import utilities.fields
class Migration(migrations.Migration):
-
replaces = [
('dcim', '0167_module_status'),
('dcim', '0168_interface_template_enabled'),
@@ -24,7 +23,7 @@ class Migration(migrations.Migration):
('dcim', '0179_interfacetemplate_rf_role'),
('dcim', '0180_powerfeed_tenant'),
('dcim', '0181_rename_device_role_device_role'),
- ('dcim', '0182_zero_length_cable_fix')
+ ('dcim', '0182_zero_length_cable_fix'),
]
dependencies = [
@@ -48,27 +47,57 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='interfacetemplate',
name='bridge',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='bridge_interfaces', to='dcim.interfacetemplate'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='bridge_interfaces',
+ to='dcim.interfacetemplate',
+ ),
),
migrations.AddField(
model_name='devicetype',
name='default_platform',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.platform'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='dcim.platform',
+ ),
),
migrations.AddField(
model_name='device',
name='config_template',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='%(class)ss', to='extras.configtemplate'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='%(class)ss',
+ to='extras.configtemplate',
+ ),
),
migrations.AddField(
model_name='devicerole',
name='config_template',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='device_roles', to='extras.configtemplate'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='device_roles',
+ to='extras.configtemplate',
+ ),
),
migrations.AddField(
model_name='platform',
name='config_template',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='platforms', to='extras.configtemplate'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='platforms',
+ to='extras.configtemplate',
+ ),
),
migrations.AddField(
model_name='cabletermination',
@@ -83,22 +112,30 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='powerport',
name='allocated_draw',
- field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]),
+ field=models.PositiveIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
),
migrations.AlterField(
model_name='powerport',
name='maximum_draw',
- field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]),
+ field=models.PositiveIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
),
migrations.AlterField(
model_name='powerporttemplate',
name='allocated_draw',
- field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]),
+ field=models.PositiveIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
),
migrations.AlterField(
model_name='powerporttemplate',
name='maximum_draw',
- field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]),
+ field=models.PositiveIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
),
migrations.RemoveField(
model_name='platform',
@@ -126,112 +163,160 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='device',
name='oob_ip',
- field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='ipam.ipaddress'),
+ field=models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='ipam.ipaddress',
+ ),
),
migrations.AddField(
model_name='device',
name='console_port_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.ConsolePort'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.ConsolePort'
+ ),
),
migrations.AddField(
model_name='device',
name='console_server_port_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.ConsoleServerPort'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.ConsoleServerPort'
+ ),
),
migrations.AddField(
model_name='device',
name='power_port_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.PowerPort'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.PowerPort'
+ ),
),
migrations.AddField(
model_name='device',
name='power_outlet_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.PowerOutlet'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.PowerOutlet'
+ ),
),
migrations.AddField(
model_name='device',
name='interface_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.Interface'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.Interface'
+ ),
),
migrations.AddField(
model_name='device',
name='front_port_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.FrontPort'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.FrontPort'
+ ),
),
migrations.AddField(
model_name='device',
name='rear_port_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.RearPort'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.RearPort'
+ ),
),
migrations.AddField(
model_name='device',
name='device_bay_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.DeviceBay'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.DeviceBay'
+ ),
),
migrations.AddField(
model_name='device',
name='module_bay_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.ModuleBay'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.ModuleBay'
+ ),
),
migrations.AddField(
model_name='device',
name='inventory_item_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device', to_model='dcim.InventoryItem'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device', to_model='dcim.InventoryItem'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='console_port_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.ConsolePortTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.ConsolePortTemplate'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='console_server_port_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.ConsoleServerPortTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.ConsoleServerPortTemplate'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='power_port_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.PowerPortTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.PowerPortTemplate'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='power_outlet_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.PowerOutletTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.PowerOutletTemplate'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='interface_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.InterfaceTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.InterfaceTemplate'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='front_port_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.FrontPortTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.FrontPortTemplate'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='rear_port_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.RearPortTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.RearPortTemplate'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='device_bay_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.DeviceBayTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.DeviceBayTemplate'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='module_bay_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.ModuleBayTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.ModuleBayTemplate'
+ ),
),
migrations.AddField(
model_name='devicetype',
name='inventory_item_template_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='device_type', to_model='dcim.InventoryItemTemplate'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='device_type', to_model='dcim.InventoryItemTemplate'
+ ),
),
migrations.AddField(
model_name='virtualchassis',
name='member_count',
- field=utilities.fields.CounterCacheField(default=0, editable=False, to_field='virtual_chassis', to_model='dcim.Device'),
+ field=utilities.fields.CounterCacheField(
+ default=0, editable=False, to_field='virtual_chassis', to_model='dcim.Device'
+ ),
),
migrations.AddField(
model_name='interfacetemplate',
@@ -241,7 +326,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='powerfeed',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='power_feeds', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='power_feeds',
+ to='tenancy.tenant',
+ ),
),
migrations.RenameField(
model_name='device',
diff --git a/netbox/dcim/migrations/0184_protect_child_interfaces.py b/netbox/dcim/migrations/0184_protect_child_interfaces.py
index 3459e23fc..58eca506d 100644
--- a/netbox/dcim/migrations/0184_protect_child_interfaces.py
+++ b/netbox/dcim/migrations/0184_protect_child_interfaces.py
@@ -5,7 +5,6 @@ import django.db.models.deletion
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0183_devicetype_exclude_from_utilization'),
]
@@ -14,6 +13,12 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='interface',
name='parent',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.RESTRICT, related_name='child_interfaces', to='dcim.interface'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.RESTRICT,
+ related_name='child_interfaces',
+ to='dcim.interface',
+ ),
),
]
diff --git a/netbox/dcim/migrations/0185_gfk_indexes.py b/netbox/dcim/migrations/0185_gfk_indexes.py
index 84cdc53ff..5c099b380 100644
--- a/netbox/dcim/migrations/0185_gfk_indexes.py
+++ b/netbox/dcim/migrations/0185_gfk_indexes.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0184_protect_child_interfaces'),
]
diff --git a/netbox/dcim/migrations/0186_location_facility.py b/netbox/dcim/migrations/0186_location_facility.py
index 759ee813b..3d22503b6 100644
--- a/netbox/dcim/migrations/0186_location_facility.py
+++ b/netbox/dcim/migrations/0186_location_facility.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0185_gfk_indexes'),
]
diff --git a/netbox/dcim/migrations/0187_alter_device_vc_position.py b/netbox/dcim/migrations/0187_alter_device_vc_position.py
index d4a42dc20..10b636959 100644
--- a/netbox/dcim/migrations/0187_alter_device_vc_position.py
+++ b/netbox/dcim/migrations/0187_alter_device_vc_position.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0186_location_facility'),
]
diff --git a/netbox/dcim/migrations/0188_racktype.py b/netbox/dcim/migrations/0188_racktype.py
index aa45246e5..a5265d030 100644
--- a/netbox/dcim/migrations/0188_racktype.py
+++ b/netbox/dcim/migrations/0188_racktype.py
@@ -9,7 +9,6 @@ import utilities.ordering
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0118_customfield_uniqueness'),
('dcim', '0187_alter_device_vc_position'),
@@ -22,36 +21,41 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(
- blank=True,
- default=dict,
- encoder=utilities.json.CustomFieldJSONEncoder
- )),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('description', models.CharField(blank=True, max_length=200)),
('comments', models.TextField(blank=True)),
('weight', models.DecimalField(blank=True, decimal_places=2, max_digits=8, null=True)),
('weight_unit', models.CharField(blank=True, max_length=50)),
('_abs_weight', models.PositiveBigIntegerField(blank=True, null=True)),
- ('manufacturer', models.ForeignKey(
- on_delete=django.db.models.deletion.PROTECT,
- related_name='rack_types',
- to='dcim.manufacturer'
- )),
+ (
+ 'manufacturer',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='rack_types', to='dcim.manufacturer'
+ ),
+ ),
('model', models.CharField(max_length=100)),
('slug', models.SlugField(max_length=100, unique=True)),
('form_factor', models.CharField(max_length=50)),
('width', models.PositiveSmallIntegerField(default=19)),
- ('u_height', models.PositiveSmallIntegerField(
- default=42,
- validators=[
- django.core.validators.MinValueValidator(1),
- django.core.validators.MaxValueValidator(100),
- ]
- )),
- ('starting_unit', models.PositiveSmallIntegerField(
- default=1,
- validators=[django.core.validators.MinValueValidator(1)]
- )),
+ (
+ 'u_height',
+ models.PositiveSmallIntegerField(
+ default=42,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(100),
+ ],
+ ),
+ ),
+ (
+ 'starting_unit',
+ models.PositiveSmallIntegerField(
+ default=1, validators=[django.core.validators.MinValueValidator(1)]
+ ),
+ ),
('desc_units', models.BooleanField(default=False)),
('outer_width', models.PositiveSmallIntegerField(blank=True, null=True)),
('outer_depth', models.PositiveSmallIntegerField(blank=True, null=True)),
diff --git a/netbox/dcim/migrations/0189_moduletype_rack_airflow.py b/netbox/dcim/migrations/0189_moduletype_rack_airflow.py
index 31787b67d..c356e32f7 100644
--- a/netbox/dcim/migrations/0189_moduletype_rack_airflow.py
+++ b/netbox/dcim/migrations/0189_moduletype_rack_airflow.py
@@ -2,7 +2,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0188_racktype'),
]
diff --git a/netbox/dcim/migrations/0190_nested_modules.py b/netbox/dcim/migrations/0190_nested_modules.py
index 9cef40efb..239e08639 100644
--- a/netbox/dcim/migrations/0190_nested_modules.py
+++ b/netbox/dcim/migrations/0190_nested_modules.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0189_moduletype_rack_airflow'),
('extras', '0121_customfield_related_object_filter'),
@@ -34,12 +33,25 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='modulebay',
name='module',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.module'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.module',
+ ),
),
migrations.AddField(
model_name='modulebay',
name='parent',
- field=mptt.fields.TreeForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='dcim.modulebay'),
+ field=mptt.fields.TreeForeignKey(
+ blank=True,
+ editable=False,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='children',
+ to='dcim.modulebay',
+ ),
),
migrations.AddField(
model_name='modulebay',
@@ -56,19 +68,35 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='modulebaytemplate',
name='module_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.moduletype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.moduletype',
+ ),
),
migrations.AlterField(
model_name='modulebaytemplate',
name='device_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)ss', to='dcim.devicetype'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(class)ss',
+ to='dcim.devicetype',
+ ),
),
migrations.AddConstraint(
model_name='modulebay',
- constraint=models.UniqueConstraint(fields=('device', 'module', 'name'), name='dcim_modulebay_unique_device_module_name'),
+ constraint=models.UniqueConstraint(
+ fields=('device', 'module', 'name'), name='dcim_modulebay_unique_device_module_name'
+ ),
),
migrations.AddConstraint(
model_name='modulebaytemplate',
- constraint=models.UniqueConstraint(fields=('module_type', 'name'), name='dcim_modulebaytemplate_unique_module_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('module_type', 'name'), name='dcim_modulebaytemplate_unique_module_type_name'
+ ),
),
]
diff --git a/netbox/dcim/migrations/0191_module_bay_rebuild.py b/netbox/dcim/migrations/0191_module_bay_rebuild.py
index 260063213..4f8a461f2 100644
--- a/netbox/dcim/migrations/0191_module_bay_rebuild.py
+++ b/netbox/dcim/migrations/0191_module_bay_rebuild.py
@@ -13,14 +13,10 @@ def rebuild_mptt(apps, schema_editor):
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0190_nested_modules'),
]
operations = [
- migrations.RunPython(
- code=rebuild_mptt,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=rebuild_mptt, reverse_code=migrations.RunPython.noop),
]
diff --git a/netbox/dcim/migrations/0192_inventoryitem_status.py b/netbox/dcim/migrations/0192_inventoryitem_status.py
new file mode 100644
index 000000000..027f2daef
--- /dev/null
+++ b/netbox/dcim/migrations/0192_inventoryitem_status.py
@@ -0,0 +1,17 @@
+# Generated by Django 5.0.9 on 2024-09-26 20:19
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0191_module_bay_rebuild'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='inventoryitem',
+ name='status',
+ field=models.CharField(default='active', max_length=50),
+ ),
+ ]
diff --git a/netbox/dcim/migrations/0193_poweroutlet_color.py b/netbox/dcim/migrations/0193_poweroutlet_color.py
new file mode 100644
index 000000000..f7e3c430c
--- /dev/null
+++ b/netbox/dcim/migrations/0193_poweroutlet_color.py
@@ -0,0 +1,18 @@
+# Generated by Django 5.0.9 on 2024-09-26 19:31
+
+import utilities.fields
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0192_inventoryitem_status'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='poweroutlet',
+ name='color',
+ field=utilities.fields.ColorField(blank=True, max_length=6),
+ ),
+ ]
diff --git a/netbox/dcim/migrations/0194_charfield_null_choices.py b/netbox/dcim/migrations/0194_charfield_null_choices.py
new file mode 100644
index 000000000..e13b0e10d
--- /dev/null
+++ b/netbox/dcim/migrations/0194_charfield_null_choices.py
@@ -0,0 +1,291 @@
+import timezone_field.fields
+from django.db import migrations, models
+
+
+def set_null_values(apps, schema_editor):
+ """
+ Replace empty strings with null values.
+ """
+ Cable = apps.get_model('dcim', 'Cable')
+ ConsolePort = apps.get_model('dcim', 'ConsolePort')
+ ConsolePortTemplate = apps.get_model('dcim', 'ConsolePortTemplate')
+ ConsoleServerPort = apps.get_model('dcim', 'ConsoleServerPort')
+ ConsoleServerPortTemplate = apps.get_model('dcim', 'ConsoleServerPortTemplate')
+ Device = apps.get_model('dcim', 'Device')
+ DeviceType = apps.get_model('dcim', 'DeviceType')
+ FrontPort = apps.get_model('dcim', 'FrontPort')
+ Interface = apps.get_model('dcim', 'Interface')
+ InterfaceTemplate = apps.get_model('dcim', 'InterfaceTemplate')
+ ModuleType = apps.get_model('dcim', 'ModuleType')
+ PowerFeed = apps.get_model('dcim', 'PowerFeed')
+ PowerOutlet = apps.get_model('dcim', 'PowerOutlet')
+ PowerOutletTemplate = apps.get_model('dcim', 'PowerOutletTemplate')
+ PowerPort = apps.get_model('dcim', 'PowerPort')
+ PowerPortTemplate = apps.get_model('dcim', 'PowerPortTemplate')
+ Rack = apps.get_model('dcim', 'Rack')
+ RackType = apps.get_model('dcim', 'RackType')
+ RearPort = apps.get_model('dcim', 'RearPort')
+ Site = apps.get_model('dcim', 'Site')
+
+ Cable.objects.filter(length_unit='').update(length_unit=None)
+ Cable.objects.filter(type='').update(type=None)
+ ConsolePort.objects.filter(cable_end='').update(cable_end=None)
+ ConsolePort.objects.filter(type='').update(type=None)
+ ConsolePortTemplate.objects.filter(type='').update(type=None)
+ ConsoleServerPort.objects.filter(cable_end='').update(cable_end=None)
+ ConsoleServerPort.objects.filter(type='').update(type=None)
+ ConsoleServerPortTemplate.objects.filter(type='').update(type=None)
+ Device.objects.filter(airflow='').update(airflow=None)
+ Device.objects.filter(face='').update(face=None)
+ DeviceType.objects.filter(airflow='').update(airflow=None)
+ DeviceType.objects.filter(subdevice_role='').update(subdevice_role=None)
+ DeviceType.objects.filter(weight_unit='').update(weight_unit=None)
+ FrontPort.objects.filter(cable_end='').update(cable_end=None)
+ Interface.objects.filter(cable_end='').update(cable_end=None)
+ Interface.objects.filter(mode='').update(mode=None)
+ Interface.objects.filter(poe_mode='').update(poe_mode=None)
+ Interface.objects.filter(poe_type='').update(poe_type=None)
+ Interface.objects.filter(rf_channel='').update(rf_channel=None)
+ Interface.objects.filter(rf_role='').update(rf_role=None)
+ InterfaceTemplate.objects.filter(poe_mode='').update(poe_mode=None)
+ InterfaceTemplate.objects.filter(poe_type='').update(poe_type=None)
+ InterfaceTemplate.objects.filter(rf_role='').update(rf_role=None)
+ ModuleType.objects.filter(airflow='').update(airflow=None)
+ ModuleType.objects.filter(weight_unit='').update(weight_unit=None)
+ PowerFeed.objects.filter(cable_end='').update(cable_end=None)
+ PowerOutlet.objects.filter(cable_end='').update(cable_end=None)
+ PowerOutlet.objects.filter(feed_leg='').update(feed_leg=None)
+ PowerOutlet.objects.filter(type='').update(type=None)
+ PowerOutletTemplate.objects.filter(feed_leg='').update(feed_leg=None)
+ PowerOutletTemplate.objects.filter(type='').update(type=None)
+ PowerPort.objects.filter(cable_end='').update(cable_end=None)
+ PowerPort.objects.filter(type='').update(type=None)
+ PowerPortTemplate.objects.filter(type='').update(type=None)
+ Rack.objects.filter(airflow='').update(airflow=None)
+ Rack.objects.filter(form_factor='').update(form_factor=None)
+ Rack.objects.filter(outer_unit='').update(outer_unit=None)
+ Rack.objects.filter(weight_unit='').update(weight_unit=None)
+ RackType.objects.filter(outer_unit='').update(outer_unit=None)
+ RackType.objects.filter(weight_unit='').update(weight_unit=None)
+ RearPort.objects.filter(cable_end='').update(cable_end=None)
+ Site.objects.filter(time_zone='').update(time_zone=None)
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0193_poweroutlet_color'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='cable',
+ name='length_unit',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='cable',
+ name='type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='consoleport',
+ name='cable_end',
+ field=models.CharField(blank=True, max_length=1, null=True),
+ ),
+ migrations.AlterField(
+ model_name='consoleport',
+ name='type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='consoleporttemplate',
+ name='type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='consoleserverport',
+ name='cable_end',
+ field=models.CharField(blank=True, max_length=1, null=True),
+ ),
+ migrations.AlterField(
+ model_name='consoleserverport',
+ name='type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='consoleserverporttemplate',
+ name='type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='device',
+ name='airflow',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='device',
+ name='face',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='devicetype',
+ name='airflow',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='devicetype',
+ name='subdevice_role',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='devicetype',
+ name='weight_unit',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='frontport',
+ name='cable_end',
+ field=models.CharField(blank=True, max_length=1, null=True),
+ ),
+ migrations.AlterField(
+ model_name='interface',
+ name='cable_end',
+ field=models.CharField(blank=True, max_length=1, null=True),
+ ),
+ migrations.AlterField(
+ model_name='interface',
+ name='mode',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='interface',
+ name='poe_mode',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='interface',
+ name='poe_type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='interface',
+ name='rf_channel',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='interface',
+ name='rf_role',
+ field=models.CharField(blank=True, max_length=30, null=True),
+ ),
+ migrations.AlterField(
+ model_name='interfacetemplate',
+ name='poe_mode',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='interfacetemplate',
+ name='poe_type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='interfacetemplate',
+ name='rf_role',
+ field=models.CharField(blank=True, max_length=30, null=True),
+ ),
+ migrations.AlterField(
+ model_name='moduletype',
+ name='airflow',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='moduletype',
+ name='weight_unit',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='powerfeed',
+ name='cable_end',
+ field=models.CharField(blank=True, max_length=1, null=True),
+ ),
+ migrations.AlterField(
+ model_name='poweroutlet',
+ name='cable_end',
+ field=models.CharField(blank=True, max_length=1, null=True),
+ ),
+ migrations.AlterField(
+ model_name='poweroutlet',
+ name='feed_leg',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='poweroutlet',
+ name='type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='poweroutlettemplate',
+ name='feed_leg',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='poweroutlettemplate',
+ name='type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='powerport',
+ name='cable_end',
+ field=models.CharField(blank=True, max_length=1, null=True),
+ ),
+ migrations.AlterField(
+ model_name='powerport',
+ name='type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='powerporttemplate',
+ name='type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='rack',
+ name='airflow',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='rack',
+ name='form_factor',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='rack',
+ name='outer_unit',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='rack',
+ name='weight_unit',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='racktype',
+ name='outer_unit',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='racktype',
+ name='weight_unit',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='rearport',
+ name='cable_end',
+ field=models.CharField(blank=True, max_length=1, null=True),
+ ),
+ migrations.AlterField(
+ model_name='site',
+ name='time_zone',
+ field=timezone_field.fields.TimeZoneField(blank=True, null=True),
+ ),
+ migrations.RunPython(code=set_null_values, reverse_code=migrations.RunPython.noop),
+ ]
diff --git a/netbox/dcim/migrations/0195_interface_vlan_translation_policy.py b/netbox/dcim/migrations/0195_interface_vlan_translation_policy.py
new file mode 100644
index 000000000..9ec404886
--- /dev/null
+++ b/netbox/dcim/migrations/0195_interface_vlan_translation_policy.py
@@ -0,0 +1,21 @@
+# Generated by Django 5.0.9 on 2024-10-11 19:45
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0194_charfield_null_choices'),
+ ('ipam', '0074_vlantranslationpolicy_vlantranslationrule'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='interface',
+ name='vlan_translation_policy',
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='ipam.vlantranslationpolicy'
+ ),
+ ),
+ ]
diff --git a/netbox/dcim/migrations/0196_qinq_svlan.py b/netbox/dcim/migrations/0196_qinq_svlan.py
new file mode 100644
index 000000000..a03ad144a
--- /dev/null
+++ b/netbox/dcim/migrations/0196_qinq_svlan.py
@@ -0,0 +1,39 @@
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0195_interface_vlan_translation_policy'),
+ ('ipam', '0075_vlan_qinq'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='interface',
+ name='qinq_svlan',
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='%(class)ss_svlan',
+ to='ipam.vlan',
+ ),
+ ),
+ migrations.AlterField(
+ model_name='interface',
+ name='tagged_vlans',
+ field=models.ManyToManyField(blank=True, related_name='%(class)ss_as_tagged', to='ipam.vlan'),
+ ),
+ migrations.AlterField(
+ model_name='interface',
+ name='untagged_vlan',
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='%(class)ss_as_untagged',
+ to='ipam.vlan',
+ ),
+ ),
+ ]
diff --git a/netbox/dcim/migrations/0197_natural_sort_collation.py b/netbox/dcim/migrations/0197_natural_sort_collation.py
new file mode 100644
index 000000000..268bda7eb
--- /dev/null
+++ b/netbox/dcim/migrations/0197_natural_sort_collation.py
@@ -0,0 +1,16 @@
+from django.contrib.postgres.operations import CreateCollation
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0196_qinq_svlan'),
+ ]
+
+ operations = [
+ CreateCollation(
+ 'natural_sort',
+ provider='icu',
+ locale='und-u-kn-true',
+ ),
+ ]
diff --git a/netbox/dcim/migrations/0198_natural_ordering.py b/netbox/dcim/migrations/0198_natural_ordering.py
new file mode 100644
index 000000000..cf4361a2b
--- /dev/null
+++ b/netbox/dcim/migrations/0198_natural_ordering.py
@@ -0,0 +1,317 @@
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0197_natural_sort_collation'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='site',
+ options={'ordering': ('name',)},
+ ),
+ migrations.AlterField(
+ model_name='site',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=100, unique=True),
+ ),
+ migrations.AlterModelOptions(
+ name='consoleport',
+ options={'ordering': ('device', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='consoleporttemplate',
+ options={'ordering': ('device_type', 'module_type', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='consoleserverport',
+ options={'ordering': ('device', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='consoleserverporttemplate',
+ options={'ordering': ('device_type', 'module_type', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='device',
+ options={'ordering': ('name', 'pk')},
+ ),
+ migrations.AlterModelOptions(
+ name='devicebay',
+ options={'ordering': ('device', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='devicebaytemplate',
+ options={'ordering': ('device_type', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='frontport',
+ options={'ordering': ('device', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='frontporttemplate',
+ options={'ordering': ('device_type', 'module_type', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='interfacetemplate',
+ options={'ordering': ('device_type', 'module_type', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='inventoryitem',
+ options={'ordering': ('device__id', 'parent__id', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='inventoryitemtemplate',
+ options={'ordering': ('device_type__id', 'parent__id', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='modulebay',
+ options={'ordering': ('device', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='modulebaytemplate',
+ options={'ordering': ('device_type', 'module_type', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='poweroutlet',
+ options={'ordering': ('device', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='poweroutlettemplate',
+ options={'ordering': ('device_type', 'module_type', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='powerport',
+ options={'ordering': ('device', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='powerporttemplate',
+ options={'ordering': ('device_type', 'module_type', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='rack',
+ options={'ordering': ('site', 'location', 'name', 'pk')},
+ ),
+ migrations.AlterModelOptions(
+ name='rearport',
+ options={'ordering': ('device', 'name')},
+ ),
+ migrations.AlterModelOptions(
+ name='rearporttemplate',
+ options={'ordering': ('device_type', 'module_type', 'name')},
+ ),
+ migrations.RemoveField(
+ model_name='consoleport',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='consoleporttemplate',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='consoleserverport',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='consoleserverporttemplate',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='device',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='devicebay',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='devicebaytemplate',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='frontport',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='frontporttemplate',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='inventoryitem',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='inventoryitemtemplate',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='modulebay',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='modulebaytemplate',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='poweroutlet',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='poweroutlettemplate',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='powerport',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='powerporttemplate',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='rack',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='rearport',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='rearporttemplate',
+ name='_name',
+ ),
+ migrations.RemoveField(
+ model_name='site',
+ name='_name',
+ ),
+ migrations.AlterField(
+ model_name='consoleport',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='consoleporttemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='consoleserverport',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='consoleserverporttemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='device',
+ name='name',
+ field=models.CharField(blank=True, db_collation='natural_sort', max_length=64, null=True),
+ ),
+ migrations.AlterField(
+ model_name='devicebay',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='devicebaytemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='frontport',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='frontporttemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='interface',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='interfacetemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='inventoryitem',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='inventoryitemtemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='modulebay',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='modulebaytemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='poweroutlet',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='poweroutlettemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='powerport',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='powerporttemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='rack',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='rearport',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='rearporttemplate',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='powerfeed',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='powerpanel',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='virtualchassis',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='virtualdevicecontext',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=64),
+ ),
+ ]
diff --git a/netbox/dcim/migrations/0199_macaddress.py b/netbox/dcim/migrations/0199_macaddress.py
new file mode 100644
index 000000000..ae18d5f63
--- /dev/null
+++ b/netbox/dcim/migrations/0199_macaddress.py
@@ -0,0 +1,51 @@
+import django.db.models.deletion
+import taggit.managers
+from django.db import migrations, models
+
+import dcim.fields
+import utilities.json
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0198_natural_ordering'),
+ ('extras', '0122_charfield_null_choices'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='MACAddress',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
+ ('created', models.DateTimeField(auto_now_add=True, null=True)),
+ ('last_updated', models.DateTimeField(auto_now=True, null=True)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
+ ('description', models.CharField(blank=True, max_length=200)),
+ ('comments', models.TextField(blank=True)),
+ ('mac_address', dcim.fields.MACAddressField()),
+ ('assigned_object_id', models.PositiveBigIntegerField(blank=True, null=True)),
+ (
+ 'assigned_object_type',
+ models.ForeignKey(
+ blank=True,
+ limit_choices_to=models.Q(
+ models.Q(
+ models.Q(('app_label', 'dcim'), ('model', 'interface')),
+ models.Q(('app_label', 'virtualization'), ('model', 'vminterface')),
+ _connector='OR',
+ )
+ ),
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ ('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
+ ],
+ options={'abstract': False, 'ordering': ('mac_address',)},
+ ),
+ ]
diff --git a/netbox/dcim/migrations/0200_populate_mac_addresses.py b/netbox/dcim/migrations/0200_populate_mac_addresses.py
new file mode 100644
index 000000000..0cd18d78e
--- /dev/null
+++ b/netbox/dcim/migrations/0200_populate_mac_addresses.py
@@ -0,0 +1,46 @@
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+def populate_mac_addresses(apps, schema_editor):
+ ContentType = apps.get_model('contenttypes', 'ContentType')
+ Interface = apps.get_model('dcim', 'Interface')
+ MACAddress = apps.get_model('dcim', 'MACAddress')
+ interface_ct = ContentType.objects.get_for_model(Interface)
+
+ mac_addresses = [
+ MACAddress(
+ mac_address=interface.mac_address, assigned_object_type=interface_ct, assigned_object_id=interface.pk
+ )
+ for interface in Interface.objects.filter(mac_address__isnull=False)
+ ]
+ MACAddress.objects.bulk_create(mac_addresses, batch_size=100)
+
+ # TODO: Optimize interface updates
+ for mac_address in mac_addresses:
+ Interface.objects.filter(pk=mac_address.assigned_object_id).update(primary_mac_address=mac_address)
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0199_macaddress'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='interface',
+ name='primary_mac_address',
+ field=models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='dcim.macaddress',
+ ),
+ ),
+ migrations.RunPython(code=populate_mac_addresses, reverse_code=migrations.RunPython.noop),
+ migrations.RemoveField(
+ model_name='interface',
+ name='mac_address',
+ ),
+ ]
diff --git a/netbox/dcim/models/cables.py b/netbox/dcim/models/cables.py
index 2a4748610..7117ea7e0 100644
--- a/netbox/dcim/models/cables.py
+++ b/netbox/dcim/models/cables.py
@@ -6,7 +6,6 @@ from django.core.exceptions import ValidationError
from django.db import models
from django.db.models import Sum
from django.dispatch import Signal
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from core.models import ObjectType
@@ -43,7 +42,8 @@ class Cable(PrimaryModel):
verbose_name=_('type'),
max_length=50,
choices=CableTypeChoices,
- blank=True
+ blank=True,
+ null=True
)
status = models.CharField(
verbose_name=_('status'),
@@ -79,6 +79,7 @@ class Cable(PrimaryModel):
max_length=50,
choices=CableLengthUnitChoices,
blank=True,
+ null=True
)
# Stores the normalized length (in meters) for database ordering
_abs_length = models.DecimalField(
@@ -116,9 +117,6 @@ class Cable(PrimaryModel):
pk = self.pk or self._pk
return self.label or f'#{pk}'
- def get_absolute_url(self):
- return reverse('dcim:cable', args=[self.pk])
-
@property
def a_terminations(self):
if hasattr(self, '_a_terminations'):
@@ -210,7 +208,7 @@ class Cable(PrimaryModel):
# Clear length_unit if no length is defined
if self.length is None:
- self.length_unit = ''
+ self.length_unit = None
super().save(*args, **kwargs)
@@ -346,7 +344,7 @@ class CableTermination(ChangeLoggedModel):
)
# A CircuitTermination attached to a ProviderNetwork cannot have a Cable
- if self.termination_type.model == 'circuittermination' and self.termination.provider_network is not None:
+ if self.termination_type.model == 'circuittermination' and self.termination._provider_network is not None:
raise ValidationError(_("Circuit terminations attached to a provider network may not be cabled."))
def save(self, *args, **kwargs):
@@ -369,7 +367,7 @@ class CableTermination(ChangeLoggedModel):
termination = self.termination._meta.model.objects.get(pk=self.termination_id)
termination.snapshot()
termination.cable = None
- termination.cable_end = ''
+ termination.cable_end = None
termination.save()
super().delete(*args, **kwargs)
@@ -607,6 +605,10 @@ class CablePath(models.Model):
cable_end = 'A' if lct.cable_end == 'B' else 'B'
q_filter |= Q(cable=lct.cable, cable_end=cable_end)
+ # Make sure this filter has been populated; if not, we have probably been given invalid data
+ if not q_filter:
+ break
+
remote_cable_terminations = CableTermination.objects.filter(q_filter)
remote_terminations = [ct.termination for ct in remote_cable_terminations]
else:
@@ -692,19 +694,19 @@ class CablePath(models.Model):
).first()
if circuit_termination is None:
break
- elif circuit_termination.provider_network:
+ elif circuit_termination._provider_network:
# Circuit terminates to a ProviderNetwork
path.extend([
[object_to_path_node(circuit_termination)],
- [object_to_path_node(circuit_termination.provider_network)],
+ [object_to_path_node(circuit_termination._provider_network)],
])
is_complete = True
break
- elif circuit_termination.site and not circuit_termination.cable:
- # Circuit terminates to a Site
+ elif circuit_termination.termination and not circuit_termination.cable:
+ # Circuit terminates to a Region/Site/etc.
path.extend([
[object_to_path_node(circuit_termination)],
- [object_to_path_node(circuit_termination.site)],
+ [object_to_path_node(circuit_termination.termination)],
])
break
diff --git a/netbox/dcim/models/device_component_templates.py b/netbox/dcim/models/device_component_templates.py
index 3a71c424d..b4f057711 100644
--- a/netbox/dcim/models/device_component_templates.py
+++ b/netbox/dcim/models/device_component_templates.py
@@ -44,12 +44,8 @@ class ComponentTemplateModel(ChangeLoggedModel, TrackingModelMixin):
max_length=64,
help_text=_(
"{module} is accepted as a substitution for the module bay position when attached to a module type."
- )
- )
- _name = NaturalOrderingField(
- target_field='name',
- max_length=100,
- blank=True
+ ),
+ db_collation="natural_sort"
)
label = models.CharField(
verbose_name=_('label'),
@@ -65,7 +61,7 @@ class ComponentTemplateModel(ChangeLoggedModel, TrackingModelMixin):
class Meta:
abstract = True
- ordering = ('device_type', '_name')
+ ordering = ('device_type', 'name')
constraints = (
models.UniqueConstraint(
fields=('device_type', 'name'),
@@ -125,7 +121,7 @@ class ModularComponentTemplateModel(ComponentTemplateModel):
class Meta:
abstract = True
- ordering = ('device_type', 'module_type', '_name')
+ ordering = ('device_type', 'module_type', 'name')
constraints = (
models.UniqueConstraint(
fields=('device_type', 'name'),
@@ -203,7 +199,8 @@ class ConsolePortTemplate(ModularComponentTemplateModel):
verbose_name=_('type'),
max_length=50,
choices=ConsolePortTypeChoices,
- blank=True
+ blank=True,
+ null=True
)
component_model = ConsolePort
@@ -237,7 +234,8 @@ class ConsoleServerPortTemplate(ModularComponentTemplateModel):
verbose_name=_('type'),
max_length=50,
choices=ConsolePortTypeChoices,
- blank=True
+ blank=True,
+ null=True
)
component_model = ConsoleServerPort
@@ -272,7 +270,8 @@ class PowerPortTemplate(ModularComponentTemplateModel):
verbose_name=_('type'),
max_length=50,
choices=PowerPortTypeChoices,
- blank=True
+ blank=True,
+ null=True
)
maximum_draw = models.PositiveIntegerField(
verbose_name=_('maximum draw'),
@@ -312,7 +311,9 @@ class PowerPortTemplate(ModularComponentTemplateModel):
if self.maximum_draw is not None and self.allocated_draw is not None:
if self.allocated_draw > self.maximum_draw:
raise ValidationError({
- 'allocated_draw': _("Allocated draw cannot exceed the maximum draw ({maximum_draw}W).").format(maximum_draw=self.maximum_draw)
+ 'allocated_draw': _(
+ "Allocated draw cannot exceed the maximum draw ({maximum_draw}W)."
+ ).format(maximum_draw=self.maximum_draw)
})
def to_yaml(self):
@@ -334,7 +335,8 @@ class PowerOutletTemplate(ModularComponentTemplateModel):
verbose_name=_('type'),
max_length=50,
choices=PowerOutletTypeChoices,
- blank=True
+ blank=True,
+ null=True
)
power_port = models.ForeignKey(
to='dcim.PowerPortTemplate',
@@ -348,6 +350,7 @@ class PowerOutletTemplate(ModularComponentTemplateModel):
max_length=50,
choices=PowerOutletFeedLegChoices,
blank=True,
+ null=True,
help_text=_('Phase (for three-phase feeds)')
)
@@ -364,11 +367,15 @@ class PowerOutletTemplate(ModularComponentTemplateModel):
if self.power_port:
if self.device_type and self.power_port.device_type != self.device_type:
raise ValidationError(
- _("Parent power port ({power_port}) must belong to the same device type").format(power_port=self.power_port)
+ _("Parent power port ({power_port}) must belong to the same device type").format(
+ power_port=self.power_port
+ )
)
if self.module_type and self.power_port.module_type != self.module_type:
raise ValidationError(
- _("Parent power port ({power_port}) must belong to the same module type").format(power_port=self.power_port)
+ _("Parent power port ({power_port}) must belong to the same module type").format(
+ power_port=self.power_port
+ )
)
def instantiate(self, **kwargs):
@@ -434,18 +441,21 @@ class InterfaceTemplate(ModularComponentTemplateModel):
max_length=50,
choices=InterfacePoEModeChoices,
blank=True,
+ null=True,
verbose_name=_('PoE mode')
)
poe_type = models.CharField(
max_length=50,
choices=InterfacePoETypeChoices,
blank=True,
+ null=True,
verbose_name=_('PoE type')
)
rf_role = models.CharField(
max_length=30,
choices=WirelessRoleChoices,
blank=True,
+ null=True,
verbose_name=_('wireless role')
)
@@ -463,11 +473,15 @@ class InterfaceTemplate(ModularComponentTemplateModel):
raise ValidationError({'bridge': _("An interface cannot be bridged to itself.")})
if self.device_type and self.device_type != self.bridge.device_type:
raise ValidationError({
- 'bridge': _("Bridge interface ({bridge}) must belong to the same device type").format(bridge=self.bridge)
+ 'bridge': _(
+ "Bridge interface ({bridge}) must belong to the same device type"
+ ).format(bridge=self.bridge)
})
if self.module_type and self.module_type != self.bridge.module_type:
raise ValidationError({
- 'bridge': _("Bridge interface ({bridge}) must belong to the same module type").format(bridge=self.bridge)
+ 'bridge': _(
+ "Bridge interface ({bridge}) must belong to the same module type"
+ ).format(bridge=self.bridge)
})
if self.rf_role and self.type not in WIRELESS_IFACE_TYPES:
@@ -710,7 +724,9 @@ class DeviceBayTemplate(ComponentTemplateModel):
def clean(self):
if self.device_type and self.device_type.subdevice_role != SubdeviceRoleChoices.ROLE_PARENT:
raise ValidationError(
- _("Subdevice role of device type ({device_type}) must be set to \"parent\" to allow device bays.").format(device_type=self.device_type)
+ _(
+ 'Subdevice role of device type ({device_type}) must be set to "parent" to allow device bays.'
+ ).format(device_type=self.device_type)
)
def to_yaml(self):
@@ -774,7 +790,7 @@ class InventoryItemTemplate(MPTTModel, ComponentTemplateModel):
component_model = InventoryItem
class Meta:
- ordering = ('device_type__id', 'parent__id', '_name')
+ ordering = ('device_type__id', 'parent__id', 'name')
indexes = (
models.Index(fields=('component_type', 'component_id')),
)
diff --git a/netbox/dcim/models/device_components.py b/netbox/dcim/models/device_components.py
index b1f951541..ce9e5607f 100644
--- a/netbox/dcim/models/device_components.py
+++ b/netbox/dcim/models/device_components.py
@@ -5,13 +5,12 @@ from django.core.exceptions import ValidationError
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from django.db.models import Sum
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from mptt.models import MPTTModel, TreeForeignKey
from dcim.choices import *
from dcim.constants import *
-from dcim.fields import MACAddressField, WWNField
+from dcim.fields import WWNField
from netbox.choices import ColorChoices
from netbox.models import OrganizationalModel, NetBoxModel
from utilities.fields import ColorField, NaturalOrderingField
@@ -51,12 +50,8 @@ class ComponentModel(NetBoxModel):
)
name = models.CharField(
verbose_name=_('name'),
- max_length=64
- )
- _name = NaturalOrderingField(
- target_field='name',
- max_length=100,
- blank=True
+ max_length=64,
+ db_collation="natural_sort"
)
label = models.CharField(
verbose_name=_('label'),
@@ -72,7 +67,7 @@ class ComponentModel(NetBoxModel):
class Meta:
abstract = True
- ordering = ('device', '_name')
+ ordering = ('device', 'name')
constraints = (
models.UniqueConstraint(
fields=('device', 'name'),
@@ -143,8 +138,9 @@ class CabledObjectModel(models.Model):
cable_end = models.CharField(
verbose_name=_('cable end'),
max_length=1,
+ choices=CableEndChoices,
blank=True,
- choices=CableEndChoices
+ null=True
)
mark_connected = models.BooleanField(
verbose_name=_('mark connected'),
@@ -284,6 +280,7 @@ class ConsolePort(ModularComponentModel, CabledObjectModel, PathEndpoint, Tracki
max_length=50,
choices=ConsolePortTypeChoices,
blank=True,
+ null=True,
help_text=_('Physical port type')
)
speed = models.PositiveIntegerField(
@@ -300,9 +297,6 @@ class ConsolePort(ModularComponentModel, CabledObjectModel, PathEndpoint, Tracki
verbose_name = _('console port')
verbose_name_plural = _('console ports')
- def get_absolute_url(self):
- return reverse('dcim:consoleport', kwargs={'pk': self.pk})
-
class ConsoleServerPort(ModularComponentModel, CabledObjectModel, PathEndpoint, TrackingModelMixin):
"""
@@ -313,6 +307,7 @@ class ConsoleServerPort(ModularComponentModel, CabledObjectModel, PathEndpoint,
max_length=50,
choices=ConsolePortTypeChoices,
blank=True,
+ null=True,
help_text=_('Physical port type')
)
speed = models.PositiveIntegerField(
@@ -329,9 +324,6 @@ class ConsoleServerPort(ModularComponentModel, CabledObjectModel, PathEndpoint,
verbose_name = _('console server port')
verbose_name_plural = _('console server ports')
- def get_absolute_url(self):
- return reverse('dcim:consoleserverport', kwargs={'pk': self.pk})
-
#
# Power components
@@ -346,6 +338,7 @@ class PowerPort(ModularComponentModel, CabledObjectModel, PathEndpoint, Tracking
max_length=50,
choices=PowerPortTypeChoices,
blank=True,
+ null=True,
help_text=_('Physical port type')
)
maximum_draw = models.PositiveIntegerField(
@@ -369,9 +362,6 @@ class PowerPort(ModularComponentModel, CabledObjectModel, PathEndpoint, Tracking
verbose_name = _('power port')
verbose_name_plural = _('power ports')
- def get_absolute_url(self):
- return reverse('dcim:powerport', kwargs={'pk': self.pk})
-
def clean(self):
super().clean()
@@ -464,6 +454,7 @@ class PowerOutlet(ModularComponentModel, CabledObjectModel, PathEndpoint, Tracki
max_length=50,
choices=PowerOutletTypeChoices,
blank=True,
+ null=True,
help_text=_('Physical port type')
)
power_port = models.ForeignKey(
@@ -478,8 +469,13 @@ class PowerOutlet(ModularComponentModel, CabledObjectModel, PathEndpoint, Tracki
max_length=50,
choices=PowerOutletFeedLegChoices,
blank=True,
+ null=True,
help_text=_('Phase (for three-phase feeds)')
)
+ color = ColorField(
+ verbose_name=_('color'),
+ blank=True
+ )
clone_fields = ('device', 'module', 'type', 'power_port', 'feed_leg')
@@ -487,9 +483,6 @@ class PowerOutlet(ModularComponentModel, CabledObjectModel, PathEndpoint, Tracki
verbose_name = _('power outlet')
verbose_name_plural = _('power outlets')
- def get_absolute_url(self):
- return reverse('dcim:poweroutlet', kwargs={'pk': self.pk})
-
def clean(self):
super().clean()
@@ -512,11 +505,6 @@ class BaseInterface(models.Model):
verbose_name=_('enabled'),
default=True
)
- mac_address = MACAddressField(
- null=True,
- blank=True,
- verbose_name=_('MAC address')
- )
mtu = models.PositiveIntegerField(
blank=True,
null=True,
@@ -531,6 +519,7 @@ class BaseInterface(models.Model):
max_length=50,
choices=InterfaceModeChoices,
blank=True,
+ null=True,
help_text=_('IEEE 802.1Q tagging strategy')
)
parent = models.ForeignKey(
@@ -549,10 +538,64 @@ class BaseInterface(models.Model):
blank=True,
verbose_name=_('bridge interface')
)
+ untagged_vlan = models.ForeignKey(
+ to='ipam.VLAN',
+ on_delete=models.SET_NULL,
+ related_name='%(class)ss_as_untagged',
+ null=True,
+ blank=True,
+ verbose_name=_('untagged VLAN')
+ )
+ tagged_vlans = models.ManyToManyField(
+ to='ipam.VLAN',
+ related_name='%(class)ss_as_tagged',
+ blank=True,
+ verbose_name=_('tagged VLANs')
+ )
+ qinq_svlan = models.ForeignKey(
+ to='ipam.VLAN',
+ on_delete=models.SET_NULL,
+ related_name='%(class)ss_svlan',
+ null=True,
+ blank=True,
+ verbose_name=_('Q-in-Q SVLAN')
+ )
+ vlan_translation_policy = models.ForeignKey(
+ to='ipam.VLANTranslationPolicy',
+ on_delete=models.PROTECT,
+ null=True,
+ blank=True,
+ verbose_name=_('VLAN Translation Policy')
+ )
+ primary_mac_address = models.OneToOneField(
+ to='dcim.MACAddress',
+ on_delete=models.SET_NULL,
+ related_name='+',
+ blank=True,
+ null=True,
+ verbose_name=_('primary MAC address')
+ )
class Meta:
abstract = True
+ def clean(self):
+ super().clean()
+
+ # SVLAN can be defined only for Q-in-Q interfaces
+ if self.qinq_svlan and self.mode != InterfaceModeChoices.MODE_Q_IN_Q:
+ raise ValidationError({
+ 'qinq_svlan': _("Only Q-in-Q interfaces may specify a service VLAN.")
+ })
+
+ # Check that the primary MAC address (if any) is assigned to this interface
+ if self.primary_mac_address and self.primary_mac_address.assigned_object != self:
+ raise ValidationError({
+ 'primary_mac_address': _("MAC address {mac_address} is not assigned to this interface.").format(
+ mac_address=self.primary_mac_address
+ )
+ })
+
def save(self, *args, **kwargs):
# Remove untagged VLAN assignment for non-802.1Q interfaces
@@ -577,6 +620,11 @@ class BaseInterface(models.Model):
def count_fhrp_groups(self):
return self.fhrp_group_assignments.count()
+ @cached_property
+ def mac_address(self):
+ if self.primary_mac_address:
+ return self.primary_mac_address.mac_address
+
class Interface(ModularComponentModel, BaseInterface, CabledObjectModel, PathEndpoint, TrackingModelMixin):
"""
@@ -633,12 +681,14 @@ class Interface(ModularComponentModel, BaseInterface, CabledObjectModel, PathEnd
max_length=30,
choices=WirelessRoleChoices,
blank=True,
+ null=True,
verbose_name=_('wireless role')
)
rf_channel = models.CharField(
max_length=50,
choices=WirelessChannelChoices,
blank=True,
+ null=True,
verbose_name=_('wireless channel')
)
rf_channel_frequency = models.DecimalField(
@@ -667,12 +717,14 @@ class Interface(ModularComponentModel, BaseInterface, CabledObjectModel, PathEnd
max_length=50,
choices=InterfacePoEModeChoices,
blank=True,
+ null=True,
verbose_name=_('PoE mode')
)
poe_type = models.CharField(
max_length=50,
choices=InterfacePoETypeChoices,
blank=True,
+ null=True,
verbose_name=_('PoE type')
)
wireless_link = models.ForeignKey(
@@ -688,20 +740,6 @@ class Interface(ModularComponentModel, BaseInterface, CabledObjectModel, PathEnd
blank=True,
verbose_name=_('wireless LANs')
)
- untagged_vlan = models.ForeignKey(
- to='ipam.VLAN',
- on_delete=models.SET_NULL,
- related_name='interfaces_as_untagged',
- null=True,
- blank=True,
- verbose_name=_('untagged VLAN')
- )
- tagged_vlans = models.ManyToManyField(
- to='ipam.VLAN',
- related_name='interfaces_as_tagged',
- blank=True,
- verbose_name=_('tagged VLANs')
- )
vrf = models.ForeignKey(
to='ipam.VRF',
on_delete=models.SET_NULL,
@@ -716,6 +754,12 @@ class Interface(ModularComponentModel, BaseInterface, CabledObjectModel, PathEnd
object_id_field='assigned_object_id',
related_query_name='interface'
)
+ mac_addresses = GenericRelation(
+ to='dcim.MACAddress',
+ content_type_field='assigned_object_type',
+ object_id_field='assigned_object_id',
+ related_query_name='interface'
+ )
fhrp_group_assignments = GenericRelation(
to='ipam.FHRPGroupAssignment',
content_type_field='interface_type',
@@ -745,9 +789,6 @@ class Interface(ModularComponentModel, BaseInterface, CabledObjectModel, PathEnd
verbose_name = _('interface')
verbose_name_plural = _('interfaces')
- def get_absolute_url(self):
- return reverse('dcim:interface', kwargs={'pk': self.pk})
-
def clean(self):
super().clean()
@@ -957,6 +998,14 @@ class Interface(ModularComponentModel, BaseInterface, CabledObjectModel, PathEnd
def l2vpn_termination(self):
return self.l2vpn_terminations.first()
+ @cached_property
+ def connected_endpoints(self):
+ # If this is a virtual interface, return the remote endpoint of the connected
+ # virtual circuit, if any.
+ if self.is_virtual and hasattr(self, 'virtual_circuit_termination'):
+ return self.virtual_circuit_termination.peer_terminations
+ return super().connected_endpoints
+
#
# Pass-through ports
@@ -1006,9 +1055,6 @@ class FrontPort(ModularComponentModel, CabledObjectModel, TrackingModelMixin):
verbose_name = _('front port')
verbose_name_plural = _('front ports')
- def get_absolute_url(self):
- return reverse('dcim:frontport', kwargs={'pk': self.pk})
-
def clean(self):
super().clean()
@@ -1064,9 +1110,6 @@ class RearPort(ModularComponentModel, CabledObjectModel, TrackingModelMixin):
verbose_name = _('rear port')
verbose_name_plural = _('rear ports')
- def get_absolute_url(self):
- return reverse('dcim:rearport', kwargs={'pk': self.pk})
-
def clean(self):
super().clean()
@@ -1123,9 +1166,6 @@ class ModuleBay(ModularComponentModel, TrackingModelMixin, MPTTModel):
class MPTTMeta:
order_insertion_by = ('module',)
- def get_absolute_url(self):
- return reverse('dcim:modulebay', kwargs={'pk': self.pk})
-
def clean(self):
super().clean()
@@ -1164,9 +1204,6 @@ class DeviceBay(ComponentModel, TrackingModelMixin):
verbose_name = _('device bay')
verbose_name_plural = _('device bays')
- def get_absolute_url(self):
- return reverse('dcim:devicebay', kwargs={'pk': self.pk})
-
def clean(self):
super().clean()
@@ -1210,9 +1247,6 @@ class InventoryItemRole(OrganizationalModel):
verbose_name = _('inventory item role')
verbose_name_plural = _('inventory item roles')
- def get_absolute_url(self):
- return reverse('dcim:inventoryitemrole', args=[self.pk])
-
class InventoryItem(MPTTModel, ComponentModel, TrackingModelMixin):
"""
@@ -1243,6 +1277,12 @@ class InventoryItem(MPTTModel, ComponentModel, TrackingModelMixin):
ct_field='component_type',
fk_field='component_id'
)
+ status = models.CharField(
+ verbose_name=_('status'),
+ max_length=50,
+ choices=InventoryItemStatusChoices,
+ default=InventoryItemStatusChoices.STATUS_ACTIVE
+ )
role = models.ForeignKey(
to='dcim.InventoryItemRole',
on_delete=models.PROTECT,
@@ -1284,10 +1324,10 @@ class InventoryItem(MPTTModel, ComponentModel, TrackingModelMixin):
objects = TreeManager()
- clone_fields = ('device', 'parent', 'role', 'manufacturer', 'part_id',)
+ clone_fields = ('device', 'parent', 'role', 'manufacturer', 'status', 'part_id')
class Meta:
- ordering = ('device__id', 'parent__id', '_name')
+ ordering = ('device__id', 'parent__id', 'name')
indexes = (
models.Index(fields=('component_type', 'component_id')),
)
@@ -1300,9 +1340,6 @@ class InventoryItem(MPTTModel, ComponentModel, TrackingModelMixin):
verbose_name = _('inventory item')
verbose_name_plural = _('inventory items')
- def get_absolute_url(self):
- return reverse('dcim:inventoryitem', kwargs={'pk': self.pk})
-
def clean(self):
super().clean()
@@ -1333,3 +1370,6 @@ class InventoryItem(MPTTModel, ComponentModel, TrackingModelMixin):
raise ValidationError({
"device": _("Cannot assign inventory item to component on another device")
})
+
+ def get_status_color(self):
+ return InventoryItemStatusChoices.colors.get(self.status)
diff --git a/netbox/dcim/models/devices.py b/netbox/dcim/models/devices.py
index 0f11cb5f3..6ef5ab488 100644
--- a/netbox/dcim/models/devices.py
+++ b/netbox/dcim/models/devices.py
@@ -3,6 +3,7 @@ import yaml
from functools import cached_property
+from django.contrib.contenttypes.fields import GenericForeignKey
from django.core.exceptions import ValidationError
from django.core.files.storage import default_storage
from django.core.validators import MaxValueValidator, MinValueValidator
@@ -14,24 +15,28 @@ from django.urls import reverse
from django.utils.safestring import mark_safe
from django.utils.translation import gettext_lazy as _
+from core.models import ObjectType
from dcim.choices import *
from dcim.constants import *
+from dcim.fields import MACAddressField
from extras.models import ConfigContextModel, CustomField
from extras.querysets import ConfigContextModelQuerySet
from netbox.choices import ColorChoices
from netbox.config import ConfigItem
from netbox.models import OrganizationalModel, PrimaryModel
+from netbox.models.mixins import WeightMixin
from netbox.models.features import ContactsMixin, ImageAttachmentsMixin
-from utilities.fields import ColorField, CounterCacheField, NaturalOrderingField
+from utilities.fields import ColorField, CounterCacheField
from utilities.tracking import TrackingModelMixin
from .device_components import *
-from .mixins import RenderConfigMixin, WeightMixin
+from .mixins import RenderConfigMixin
__all__ = (
'Device',
'DeviceRole',
'DeviceType',
+ 'MACAddress',
'Manufacturer',
'Module',
'ModuleType',
@@ -54,9 +59,6 @@ class Manufacturer(ContactsMixin, OrganizationalModel):
verbose_name = _('manufacturer')
verbose_name_plural = _('manufacturers')
- def get_absolute_url(self):
- return reverse('dcim:manufacturer', args=[self.pk])
-
class DeviceType(ImageAttachmentsMixin, PrimaryModel, WeightMixin):
"""
@@ -120,6 +122,7 @@ class DeviceType(ImageAttachmentsMixin, PrimaryModel, WeightMixin):
max_length=50,
choices=SubdeviceRoleChoices,
blank=True,
+ null=True,
verbose_name=_('parent/child status'),
help_text=_('Parent devices house child devices in device bays. Leave blank '
'if this device type is neither a parent nor a child.')
@@ -128,7 +131,8 @@ class DeviceType(ImageAttachmentsMixin, PrimaryModel, WeightMixin):
verbose_name=_('airflow'),
max_length=50,
choices=DeviceAirflowChoices,
- blank=True
+ blank=True,
+ null=True
)
front_image = models.ImageField(
upload_to='devicetype-images',
@@ -217,9 +221,6 @@ class DeviceType(ImageAttachmentsMixin, PrimaryModel, WeightMixin):
self._original_front_image = self.__dict__.get('front_image')
self._original_rear_image = self.__dict__.get('rear_image')
- def get_absolute_url(self):
- return reverse('dcim:devicetype', args=[self.pk])
-
@property
def full_name(self):
return f"{self.manufacturer} {self.model}"
@@ -392,7 +393,8 @@ class ModuleType(ImageAttachmentsMixin, PrimaryModel, WeightMixin):
verbose_name=_('airflow'),
max_length=50,
choices=ModuleAirflowChoices,
- blank=True
+ blank=True,
+ null=True
)
clone_fields = ('manufacturer', 'weight', 'weight_unit', 'airflow')
@@ -414,9 +416,6 @@ class ModuleType(ImageAttachmentsMixin, PrimaryModel, WeightMixin):
def __str__(self):
return self.model
- def get_absolute_url(self):
- return reverse('dcim:moduletype', args=[self.pk])
-
@property
def full_name(self):
return f"{self.manufacturer} {self.model}"
@@ -497,9 +496,6 @@ class DeviceRole(OrganizationalModel):
verbose_name = _('device role')
verbose_name_plural = _('device roles')
- def get_absolute_url(self):
- return reverse('dcim:devicerole', args=[self.pk])
-
class Platform(OrganizationalModel):
"""
@@ -527,9 +523,6 @@ class Platform(OrganizationalModel):
verbose_name = _('platform')
verbose_name_plural = _('platforms')
- def get_absolute_url(self):
- return reverse('dcim:platform', args=[self.pk])
-
def update_interface_bridges(device, interface_templates, module=None):
"""
@@ -540,7 +533,10 @@ def update_interface_bridges(device, interface_templates, module=None):
interface = Interface.objects.get(device=device, name=interface_template.resolve_name(module=module))
if interface_template.bridge:
- interface.bridge = Interface.objects.get(device=device, name=interface_template.bridge.resolve_name(module=module))
+ interface.bridge = Interface.objects.get(
+ device=device,
+ name=interface_template.bridge.resolve_name(module=module)
+ )
interface.full_clean()
interface.save()
@@ -593,13 +589,8 @@ class Device(
verbose_name=_('name'),
max_length=64,
blank=True,
- null=True
- )
- _name = NaturalOrderingField(
- target_field='name',
- max_length=100,
- blank=True,
- null=True
+ null=True,
+ db_collation="natural_sort"
)
serial = models.CharField(
max_length=50,
@@ -646,6 +637,7 @@ class Device(
face = models.CharField(
max_length=50,
blank=True,
+ null=True,
choices=DeviceFaceChoices,
verbose_name=_('rack face')
)
@@ -659,7 +651,8 @@ class Device(
verbose_name=_('airflow'),
max_length=50,
choices=DeviceAirflowChoices,
- blank=True
+ blank=True,
+ null=True
)
primary_ip4 = models.OneToOneField(
to='ipam.IPAddress',
@@ -784,7 +777,7 @@ class Device(
)
class Meta:
- ordering = ('_name', 'pk') # Name may be null
+ ordering = ('name', 'pk') # Name may be null
constraints = (
models.UniqueConstraint(
Lower('name'), 'site', 'tenant',
@@ -823,9 +816,6 @@ class Device(
return f'{self.device_type.manufacturer} {self.device_type.model} ({self.pk})'
return super().__str__()
- def get_absolute_url(self):
- return reverse('dcim:device', args=[self.pk])
-
def clean(self):
super().clean()
@@ -923,7 +913,10 @@ class Device(
})
if self.primary_ip4.assigned_object in vc_interfaces:
pass
- elif self.primary_ip4.nat_inside is not None and self.primary_ip4.nat_inside.assigned_object in vc_interfaces:
+ elif (
+ self.primary_ip4.nat_inside is not None and
+ self.primary_ip4.nat_inside.assigned_object in vc_interfaces
+ ):
pass
else:
raise ValidationError({
@@ -938,7 +931,10 @@ class Device(
})
if self.primary_ip6.assigned_object in vc_interfaces:
pass
- elif self.primary_ip6.nat_inside is not None and self.primary_ip6.nat_inside.assigned_object in vc_interfaces:
+ elif (
+ self.primary_ip6.nat_inside is not None and
+ self.primary_ip6.nat_inside.assigned_object in vc_interfaces
+ ):
pass
else:
raise ValidationError({
@@ -970,10 +966,17 @@ class Device(
})
# A Device can only be assigned to a Cluster in the same Site (or no Site)
- if self.cluster and self.cluster.site is not None and self.cluster.site != self.site:
+ if self.cluster and self.cluster._site is not None and self.cluster._site != self.site:
raise ValidationError({
'cluster': _("The assigned cluster belongs to a different site ({site})").format(
- site=self.cluster.site
+ site=self.cluster._site
+ )
+ })
+
+ if self.cluster and self.cluster._location is not None and self.cluster._location != self.location:
+ raise ValidationError({
+ 'cluster': _("The assigned cluster belongs to a different location ({location})").format(
+ site=self.cluster._location
)
})
@@ -985,9 +988,10 @@ class Device(
if hasattr(self, 'vc_master_for') and self.vc_master_for and self.vc_master_for != self.virtual_chassis:
raise ValidationError({
- 'virtual_chassis': _('Device cannot be removed from virtual chassis {virtual_chassis} because it is currently designated as its master.').format(
- virtual_chassis=self.vc_master_for
- )
+ 'virtual_chassis': _(
+ 'Device cannot be removed from virtual chassis {virtual_chassis} because it is currently '
+ 'designated as its master.'
+ ).format(virtual_chassis=self.vc_master_for)
})
def _instantiate_components(self, queryset, bulk_create=True):
@@ -1199,9 +1203,6 @@ class Module(PrimaryModel, ConfigContextModel):
def __str__(self):
return f'{self.module_bay.name}: {self.module_type} ({self.pk})'
- def get_absolute_url(self):
- return reverse('dcim:module', args=[self.pk])
-
def get_status_color(self):
return ModuleStatusChoices.colors.get(self.status)
@@ -1277,6 +1278,11 @@ class Module(PrimaryModel, ConfigContextModel):
if not disable_replication:
create_instances.append(template_instance)
+ # Set default values for any applicable custom fields
+ if cf_defaults := CustomField.objects.get_defaults_for_model(component_model):
+ for component in create_instances:
+ component.custom_field_data = cf_defaults
+
if component_model is not ModuleBay:
component_model.objects.bulk_create(create_instances)
# Emit the post_save signal for each newly created object
@@ -1328,7 +1334,8 @@ class VirtualChassis(PrimaryModel):
)
name = models.CharField(
verbose_name=_('name'),
- max_length=64
+ max_length=64,
+ db_collation="natural_sort"
)
domain = models.CharField(
verbose_name=_('domain'),
@@ -1350,9 +1357,6 @@ class VirtualChassis(PrimaryModel):
def __str__(self):
return self.name
- def get_absolute_url(self):
- return reverse('dcim:virtualchassis', kwargs={'pk': self.pk})
-
def clean(self):
super().clean()
@@ -1393,7 +1397,8 @@ class VirtualDeviceContext(PrimaryModel):
)
name = models.CharField(
verbose_name=_('name'),
- max_length=64
+ max_length=64,
+ db_collation="natural_sort"
)
status = models.CharField(
verbose_name=_('status'),
@@ -1452,9 +1457,6 @@ class VirtualDeviceContext(PrimaryModel):
def __str__(self):
return self.name
- def get_absolute_url(self):
- return reverse('dcim:virtualdevicecontext', kwargs={'pk': self.pk})
-
def get_status_color(self):
return VirtualDeviceContextStatusChoices.colors.get(self.status)
@@ -1487,3 +1489,61 @@ class VirtualDeviceContext(PrimaryModel):
raise ValidationError({
f'primary_ip{family}': _('Primary IP address must belong to an interface on the assigned device.')
})
+
+
+#
+# Addressing
+#
+
+class MACAddress(PrimaryModel):
+ mac_address = MACAddressField(
+ verbose_name=_('MAC address')
+ )
+ assigned_object_type = models.ForeignKey(
+ to='contenttypes.ContentType',
+ limit_choices_to=MACADDRESS_ASSIGNMENT_MODELS,
+ on_delete=models.PROTECT,
+ related_name='+',
+ blank=True,
+ null=True
+ )
+ assigned_object_id = models.PositiveBigIntegerField(
+ blank=True,
+ null=True
+ )
+ assigned_object = GenericForeignKey(
+ ct_field='assigned_object_type',
+ fk_field='assigned_object_id'
+ )
+
+ class Meta:
+ ordering = ('mac_address',)
+ verbose_name = _('MAC address')
+ verbose_name_plural = _('MAC addresses')
+
+ def __str__(self):
+ return str(self.mac_address)
+
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+
+ # Denote the original assigned object (if any) for validation in clean()
+ self._original_assigned_object_id = self.__dict__.get('assigned_object_id')
+ self._original_assigned_object_type_id = self.__dict__.get('assigned_object_type_id')
+
+ def clean(self, *args, **kwargs):
+ super().clean()
+ if self._original_assigned_object_id and self._original_assigned_object_type_id:
+ assigned_object = self.assigned_object
+ ct = ObjectType.objects.get_for_id(self._original_assigned_object_type_id)
+ original_assigned_object = ct.get_object_for_this_type(pk=self._original_assigned_object_id)
+
+ if original_assigned_object.primary_mac_address:
+ if not assigned_object:
+ raise ValidationError(
+ _("Cannot unassign MAC Address while it is designated as the primary MAC for an object")
+ )
+ elif original_assigned_object != assigned_object:
+ raise ValidationError(
+ _("Cannot reassign MAC Address while it is designated as the primary MAC for an object")
+ )
diff --git a/netbox/dcim/models/mixins.py b/netbox/dcim/models/mixins.py
index d4a05699c..a0fc15a25 100644
--- a/netbox/dcim/models/mixins.py
+++ b/netbox/dcim/models/mixins.py
@@ -1,56 +1,16 @@
+from django.apps import apps
+from django.contrib.contenttypes.fields import GenericForeignKey
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import gettext_lazy as _
-from dcim.choices import *
-from utilities.conversion import to_grams
+from dcim.constants import LOCATION_SCOPE_TYPES
__all__ = (
+ 'CachedScopeMixin',
'RenderConfigMixin',
- 'WeightMixin',
)
-class WeightMixin(models.Model):
- weight = models.DecimalField(
- verbose_name=_('weight'),
- max_digits=8,
- decimal_places=2,
- blank=True,
- null=True
- )
- weight_unit = models.CharField(
- verbose_name=_('weight unit'),
- max_length=50,
- choices=WeightUnitChoices,
- blank=True,
- )
- # Stores the normalized weight (in grams) for database ordering
- _abs_weight = models.PositiveBigIntegerField(
- blank=True,
- null=True
- )
-
- class Meta:
- abstract = True
-
- def save(self, *args, **kwargs):
-
- # Store the given weight (if any) in grams for use in database ordering
- if self.weight and self.weight_unit:
- self._abs_weight = to_grams(self.weight, self.weight_unit)
- else:
- self._abs_weight = None
-
- super().save(*args, **kwargs)
-
- def clean(self):
- super().clean()
-
- # Validate weight and weight_unit
- if self.weight and not self.weight_unit:
- raise ValidationError(_("Must specify a unit when setting a weight"))
-
-
class RenderConfigMixin(models.Model):
config_template = models.ForeignKey(
to='extras.ConfigTemplate',
@@ -73,3 +33,90 @@ class RenderConfigMixin(models.Model):
return self.role.config_template
if self.platform and self.platform.config_template:
return self.platform.config_template
+
+
+class CachedScopeMixin(models.Model):
+ """
+ Mixin for adding a GenericForeignKey scope to a model that can point to a Region, SiteGroup, Site, or Location.
+ Includes cached fields for each to allow efficient filtering. Appropriate validation must be done in the clean()
+ method as this does not have any as validation is generally model-specific.
+ """
+ scope_type = models.ForeignKey(
+ to='contenttypes.ContentType',
+ on_delete=models.PROTECT,
+ limit_choices_to=models.Q(model__in=LOCATION_SCOPE_TYPES),
+ related_name='+',
+ blank=True,
+ null=True
+ )
+ scope_id = models.PositiveBigIntegerField(
+ blank=True,
+ null=True
+ )
+ scope = GenericForeignKey(
+ ct_field='scope_type',
+ fk_field='scope_id'
+ )
+
+ _location = models.ForeignKey(
+ to='dcim.Location',
+ on_delete=models.CASCADE,
+ blank=True,
+ null=True
+ )
+ _site = models.ForeignKey(
+ to='dcim.Site',
+ on_delete=models.CASCADE,
+ blank=True,
+ null=True
+ )
+ _region = models.ForeignKey(
+ to='dcim.Region',
+ on_delete=models.CASCADE,
+ blank=True,
+ null=True
+ )
+ _site_group = models.ForeignKey(
+ to='dcim.SiteGroup',
+ on_delete=models.CASCADE,
+ blank=True,
+ null=True
+ )
+
+ class Meta:
+ abstract = True
+
+ def clean(self):
+ if self.scope_type and not self.scope:
+ scope_type = self.scope_type.model_class()
+ raise ValidationError({
+ 'scope': _(
+ "Please select a {scope_type}."
+ ).format(scope_type=scope_type._meta.model_name)
+ })
+ super().clean()
+
+ def save(self, *args, **kwargs):
+ # Cache objects associated with the terminating object (for filtering)
+ self.cache_related_objects()
+
+ super().save(*args, **kwargs)
+
+ def cache_related_objects(self):
+ self._region = self._site_group = self._site = self._location = None
+ if self.scope_type:
+ scope_type = self.scope_type.model_class()
+ if scope_type == apps.get_model('dcim', 'region'):
+ self._region = self.scope
+ elif scope_type == apps.get_model('dcim', 'sitegroup'):
+ self._site_group = self.scope
+ elif scope_type == apps.get_model('dcim', 'site'):
+ self._region = self.scope.region
+ self._site_group = self.scope.group
+ self._site = self.scope
+ elif scope_type == apps.get_model('dcim', 'location'):
+ self._region = self.scope.site.region
+ self._site_group = self.scope.site.group
+ self._site = self.scope.site
+ self._location = self.scope
+ cache_related_objects.alters_data = True
diff --git a/netbox/dcim/models/power.py b/netbox/dcim/models/power.py
index 826eaae9c..284cfe832 100644
--- a/netbox/dcim/models/power.py
+++ b/netbox/dcim/models/power.py
@@ -1,7 +1,6 @@
from django.core.exceptions import ValidationError
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from dcim.choices import *
@@ -37,7 +36,8 @@ class PowerPanel(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
)
name = models.CharField(
verbose_name=_('name'),
- max_length=100
+ max_length=100,
+ db_collation="natural_sort"
)
prerequisite_models = (
@@ -58,9 +58,6 @@ class PowerPanel(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
def __str__(self):
return self.name
- def get_absolute_url(self):
- return reverse('dcim:powerpanel', args=[self.pk])
-
def clean(self):
super().clean()
@@ -90,7 +87,8 @@ class PowerFeed(PrimaryModel, PathEndpoint, CabledObjectModel):
)
name = models.CharField(
verbose_name=_('name'),
- max_length=100
+ max_length=100,
+ db_collation="natural_sort"
)
status = models.CharField(
verbose_name=_('status'),
@@ -167,9 +165,6 @@ class PowerFeed(PrimaryModel, PathEndpoint, CabledObjectModel):
def __str__(self):
return self.name
- def get_absolute_url(self):
- return reverse('dcim:powerfeed', args=[self.pk])
-
def clean(self):
super().clean()
diff --git a/netbox/dcim/models/racks.py b/netbox/dcim/models/racks.py
index 3aead09ca..7ecbd5d5f 100644
--- a/netbox/dcim/models/racks.py
+++ b/netbox/dcim/models/racks.py
@@ -8,7 +8,6 @@ from django.core.exceptions import ValidationError
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from django.db.models import Count
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from dcim.choices import *
@@ -16,13 +15,13 @@ from dcim.constants import *
from dcim.svg import RackElevationSVG
from netbox.choices import ColorChoices
from netbox.models import OrganizationalModel, PrimaryModel
+from netbox.models.mixins import WeightMixin
from netbox.models.features import ContactsMixin, ImageAttachmentsMixin
from utilities.conversion import to_grams
from utilities.data import array_to_string, drange
-from utilities.fields import ColorField, NaturalOrderingField
+from utilities.fields import ColorField
from .device_components import PowerPort
from .devices import Device, Module
-from .mixins import WeightMixin
from .power import PowerFeed
__all__ = (
@@ -84,7 +83,8 @@ class RackBase(WeightMixin, PrimaryModel):
verbose_name=_('outer unit'),
max_length=50,
choices=RackDimensionUnitChoices,
- blank=True
+ blank=True,
+ null=True
)
mounting_depth = models.PositiveSmallIntegerField(
verbose_name=_('mounting depth'),
@@ -165,9 +165,6 @@ class RackType(RackBase):
def __str__(self):
return self.model
- def get_absolute_url(self):
- return reverse('dcim:racktype', args=[self.pk])
-
@property
def full_name(self):
return f"{self.manufacturer} {self.model}"
@@ -192,7 +189,7 @@ class RackType(RackBase):
# Clear unit if outer width & depth are not set
if self.outer_width is None and self.outer_depth is None:
- self.outer_unit = ''
+ self.outer_unit = None
super().save(*args, **kwargs)
@@ -230,9 +227,6 @@ class RackRole(OrganizationalModel):
verbose_name = _('rack role')
verbose_name_plural = _('rack roles')
- def get_absolute_url(self):
- return reverse('dcim:rackrole', args=[self.pk])
-
class Rack(ContactsMixin, ImageAttachmentsMixin, RackBase):
"""
@@ -249,6 +243,7 @@ class Rack(ContactsMixin, ImageAttachmentsMixin, RackBase):
choices=RackFormFactorChoices,
max_length=50,
blank=True,
+ null=True,
verbose_name=_('form factor')
)
rack_type = models.ForeignKey(
@@ -260,12 +255,8 @@ class Rack(ContactsMixin, ImageAttachmentsMixin, RackBase):
)
name = models.CharField(
verbose_name=_('name'),
- max_length=100
- )
- _name = NaturalOrderingField(
- target_field='name',
max_length=100,
- blank=True
+ db_collation="natural_sort"
)
facility_id = models.CharField(
max_length=50,
@@ -324,7 +315,8 @@ class Rack(ContactsMixin, ImageAttachmentsMixin, RackBase):
verbose_name=_('airflow'),
max_length=50,
choices=RackAirflowChoices,
- blank=True
+ blank=True,
+ null=True
)
# Generic relations
@@ -344,7 +336,7 @@ class Rack(ContactsMixin, ImageAttachmentsMixin, RackBase):
)
class Meta:
- ordering = ('site', 'location', '_name', 'pk') # (site, location, name) may be non-unique
+ ordering = ('site', 'location', 'name', 'pk') # (site, location, name) may be non-unique
constraints = (
# Name and facility_id must be unique *only* within a Location
models.UniqueConstraint(
@@ -364,9 +356,6 @@ class Rack(ContactsMixin, ImageAttachmentsMixin, RackBase):
return f'{self.name} ({self.facility_id})'
return self.name
- def get_absolute_url(self):
- return reverse('dcim:rack', args=[self.pk])
-
def clean(self):
super().clean()
@@ -385,20 +374,27 @@ class Rack(ContactsMixin, ImageAttachmentsMixin, RackBase):
if not self._state.adding:
mounted_devices = Device.objects.filter(rack=self).exclude(position__isnull=True).order_by('position')
+ effective_u_height = self.rack_type.u_height if self.rack_type else self.u_height
+ effective_starting_unit = self.rack_type.starting_unit if self.rack_type else self.starting_unit
+
# Validate that Rack is tall enough to house the highest mounted Device
if top_device := mounted_devices.last():
- min_height = top_device.position + top_device.device_type.u_height - self.starting_unit
- if self.u_height < min_height:
+ min_height = top_device.position + top_device.device_type.u_height - effective_starting_unit
+ if effective_u_height < min_height:
+ field = 'rack_type' if self.rack_type else 'u_height'
raise ValidationError({
- 'u_height': _("Rack must be at least {min_height}U tall to house currently installed devices.").format(min_height=min_height)
+ field: _(
+ "Rack must be at least {min_height}U tall to house currently installed devices."
+ ).format(min_height=min_height)
})
# Validate that the Rack's starting unit is less than or equal to the position of the lowest mounted Device
if last_device := mounted_devices.first():
- if self.starting_unit > last_device.position:
+ if effective_starting_unit > last_device.position:
+ field = 'rack_type' if self.rack_type else 'starting_unit'
raise ValidationError({
- 'starting_unit': _("Rack unit numbering must begin at {position} or less to house "
- "currently installed devices.").format(position=last_device.position)
+ field: _("Rack unit numbering must begin at {position} or less to house "
+ "currently installed devices.").format(position=last_device.position)
})
# Validate that Rack was assigned a Location of its same site, if applicable
@@ -419,7 +415,7 @@ class Rack(ContactsMixin, ImageAttachmentsMixin, RackBase):
# Clear unit if outer width & depth are not set
if self.outer_width is None and self.outer_depth is None:
- self.outer_unit = ''
+ self.outer_unit = None
super().save(*args, **kwargs)
@@ -699,9 +695,6 @@ class RackReservation(PrimaryModel):
def __str__(self):
return "Reservation for rack {}".format(self.rack)
- def get_absolute_url(self):
- return reverse('dcim:rackreservation', args=[self.pk])
-
def clean(self):
super().clean()
diff --git a/netbox/dcim/models/sites.py b/netbox/dcim/models/sites.py
index c1da807ad..7880a067f 100644
--- a/netbox/dcim/models/sites.py
+++ b/netbox/dcim/models/sites.py
@@ -1,7 +1,6 @@
from django.contrib.contenttypes.fields import GenericRelation
from django.core.exceptions import ValidationError
from django.db import models
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from timezone_field import TimeZoneField
@@ -9,7 +8,6 @@ from dcim.choices import *
from dcim.constants import *
from netbox.models import NestedGroupModel, PrimaryModel
from netbox.models.features import ContactsMixin, ImageAttachmentsMixin
-from utilities.fields import NaturalOrderingField
__all__ = (
'Location',
@@ -29,6 +27,12 @@ class Region(ContactsMixin, NestedGroupModel):
states, and/or cities. Regions are recursively nested into a hierarchy: all sites belonging to a child region are
also considered to be members of its parent and ancestor region(s).
"""
+ prefixes = GenericRelation(
+ to='ipam.Prefix',
+ content_type_field='scope_type',
+ object_id_field='scope_id',
+ related_query_name='region'
+ )
vlan_groups = GenericRelation(
to='ipam.VLANGroup',
content_type_field='scope_type',
@@ -62,9 +66,6 @@ class Region(ContactsMixin, NestedGroupModel):
verbose_name = _('region')
verbose_name_plural = _('regions')
- def get_absolute_url(self):
- return reverse('dcim:region', args=[self.pk])
-
def get_site_count(self):
return Site.objects.filter(
Q(region=self) |
@@ -82,6 +83,12 @@ class SiteGroup(ContactsMixin, NestedGroupModel):
within corporate sites you might distinguish between offices and data centers. Like regions, site groups can be
nested recursively to form a hierarchy.
"""
+ prefixes = GenericRelation(
+ to='ipam.Prefix',
+ content_type_field='scope_type',
+ object_id_field='scope_id',
+ related_query_name='site_group'
+ )
vlan_groups = GenericRelation(
to='ipam.VLANGroup',
content_type_field='scope_type',
@@ -115,9 +122,6 @@ class SiteGroup(ContactsMixin, NestedGroupModel):
verbose_name = _('site group')
verbose_name_plural = _('site groups')
- def get_absolute_url(self):
- return reverse('dcim:sitegroup', args=[self.pk])
-
def get_site_count(self):
return Site.objects.filter(
Q(group=self) |
@@ -138,12 +142,8 @@ class Site(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
verbose_name=_('name'),
max_length=100,
unique=True,
- help_text=_("Full name of the site")
- )
- _name = NaturalOrderingField(
- target_field='name',
- max_length=100,
- blank=True
+ help_text=_("Full name of the site"),
+ db_collation="natural_sort"
)
slug = models.SlugField(
verbose_name=_('slug'),
@@ -189,7 +189,8 @@ class Site(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
blank=True
)
time_zone = TimeZoneField(
- blank=True
+ blank=True,
+ null=True
)
physical_address = models.CharField(
verbose_name=_('physical address'),
@@ -221,6 +222,12 @@ class Site(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
)
# Generic relations
+ prefixes = GenericRelation(
+ to='ipam.Prefix',
+ content_type_field='scope_type',
+ object_id_field='scope_id',
+ related_query_name='site'
+ )
vlan_groups = GenericRelation(
to='ipam.VLANGroup',
content_type_field='scope_type',
@@ -234,16 +241,13 @@ class Site(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
)
class Meta:
- ordering = ('_name',)
+ ordering = ('name',)
verbose_name = _('site')
verbose_name_plural = _('sites')
def __str__(self):
return self.name
- def get_absolute_url(self):
- return reverse('dcim:site', args=[self.pk])
-
def get_status_color(self):
return SiteStatusChoices.colors.get(self.status)
@@ -283,6 +287,12 @@ class Location(ContactsMixin, ImageAttachmentsMixin, NestedGroupModel):
)
# Generic relations
+ prefixes = GenericRelation(
+ to='ipam.Prefix',
+ content_type_field='scope_type',
+ object_id_field='scope_id',
+ related_query_name='location'
+ )
vlan_groups = GenericRelation(
to='ipam.VLANGroup',
content_type_field='scope_type',
@@ -322,9 +332,6 @@ class Location(ContactsMixin, ImageAttachmentsMixin, NestedGroupModel):
verbose_name = _('location')
verbose_name_plural = _('locations')
- def get_absolute_url(self):
- return reverse('dcim:location', args=[self.pk])
-
def get_status_color(self):
return LocationStatusChoices.colors.get(self.status)
diff --git a/netbox/dcim/search.py b/netbox/dcim/search.py
index 45431cb05..b964421de 100644
--- a/netbox/dcim/search.py
+++ b/netbox/dcim/search.py
@@ -98,19 +98,28 @@ class FrontPortIndex(SearchIndex):
display_attrs = ('device', 'label', 'type', 'description')
+@register_search
+class MACAddressIndex(SearchIndex):
+ model = models.MACAddress
+ fields = (
+ ('mac_address', 100),
+ ('description', 500),
+ )
+ display_attrs = ('assigned_object', 'description')
+
+
@register_search
class InterfaceIndex(SearchIndex):
model = models.Interface
fields = (
('name', 100),
('label', 200),
- ('mac_address', 300),
('wwn', 300),
('description', 500),
('mtu', 2000),
('speed', 2000),
)
- display_attrs = ('device', 'label', 'type', 'mac_address', 'wwn', 'description')
+ display_attrs = ('device', 'label', 'type', 'wwn', 'description')
@register_search
diff --git a/netbox/dcim/signals.py b/netbox/dcim/signals.py
index a51872719..6c213d64c 100644
--- a/netbox/dcim/signals.py
+++ b/netbox/dcim/signals.py
@@ -85,7 +85,8 @@ def update_connected_endpoints(instance, created, raw=False, **kwargs):
if instance._terminations_modified:
a_terminations = []
b_terminations = []
- for t in instance.terminations.all():
+ # Note: instance.terminations.all() is not safe to use here as it might be stale
+ for t in CableTermination.objects.filter(cable=instance):
if t.cable_end == CableEndChoices.SIDE_A:
a_terminations.append(t.termination)
else:
diff --git a/netbox/dcim/svg/cables.py b/netbox/dcim/svg/cables.py
index 4e0f7aea6..58fa27c6b 100644
--- a/netbox/dcim/svg/cables.py
+++ b/netbox/dcim/svg/cables.py
@@ -362,7 +362,7 @@ class CableTraceSVG:
self.cursor += CABLE_HEIGHT
# Connector (a Cable or WirelessLink)
- if links:
+ if links and far_ends:
obj_list = {end.parent_object for end in far_ends}
parent_object_nodes, far_terminations = self.draw_far_objects(obj_list, far_ends)
diff --git a/netbox/dcim/svg/racks.py b/netbox/dcim/svg/racks.py
index 0f73095b5..94dbeeac2 100644
--- a/netbox/dcim/svg/racks.py
+++ b/netbox/dcim/svg/racks.py
@@ -48,6 +48,7 @@ def get_device_description(device):
Name:
Role:
+ Status:
Device Type: ()
Asset tag: (if defined)
Serial: (if defined)
@@ -55,6 +56,7 @@ def get_device_description(device):
"""
description = f'Name: {device.name}'
description += f'\nRole: {device.role}'
+ description += f'\nStatus: {device.get_status_display()}'
u_height = f'{floatformat(device.device_type.u_height)}U'
description += f'\nDevice Type: {device.device_type.manufacturer.name} {device.device_type.model} ({u_height})'
if device.asset_tag:
@@ -153,7 +155,10 @@ class RackElevationSVG:
if self.rack.desc_units:
y += int((position - self.rack.starting_unit) * self.unit_height)
else:
- y += int((self.rack.u_height - position + self.rack.starting_unit) * self.unit_height) - int(height * self.unit_height)
+ y += (
+ int((self.rack.u_height - position + self.rack.starting_unit) * self.unit_height) -
+ int(height * self.unit_height)
+ )
return x, y
diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py
index 70b297366..d4f2f74b3 100644
--- a/netbox/dcim/tables/devices.py
+++ b/netbox/dcim/tables/devices.py
@@ -29,6 +29,7 @@ __all__ = (
'InterfaceTable',
'InventoryItemRoleTable',
'InventoryItemTable',
+ 'MACAddressTable',
'ModuleBayTable',
'PlatformTable',
'PowerOutletTable',
@@ -42,6 +43,16 @@ MODULEBAY_STATUS = """
{% badge record.installed_module.get_status_display bg_color=record.installed_module.get_status_color %}
"""
+MACADDRESS_LINK = """
+{% if record.pk %}
+ {{ record.mac_address }}
+{% endif %}
+"""
+
+MACADDRESS_COPY_BUTTON = """
+{% copy_content record.pk prefix="macaddress_" %}
+"""
+
#
# Device roles
@@ -132,7 +143,6 @@ class PlatformTable(NetBoxTable):
class DeviceTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
name = tables.TemplateColumn(
verbose_name=_('Name'),
- order_by=('_name',),
template_code=DEVICE_LINK,
linkify=True
)
@@ -288,7 +298,6 @@ class DeviceComponentTable(NetBoxTable):
name = tables.Column(
verbose_name=_('Name'),
linkify=True,
- order_by=('_name',)
)
device_status = columns.ChoiceFieldColumn(
accessor=tables.A('device__status'),
@@ -382,7 +391,8 @@ class ConsolePortTable(ModularDeviceComponentTable, PathEndpointTable):
model = models.ConsolePort
fields = (
'pk', 'id', 'name', 'device', 'module_bay', 'module', 'label', 'type', 'speed', 'description',
- 'mark_connected', 'cable', 'cable_color', 'link_peer', 'connection', 'inventory_items', 'tags', 'created', 'last_updated',
+ 'mark_connected', 'cable', 'cable_color', 'link_peer', 'connection', 'inventory_items', 'tags', 'created',
+ 'last_updated',
)
default_columns = ('pk', 'name', 'device', 'label', 'type', 'speed', 'description')
@@ -391,7 +401,6 @@ class DeviceConsolePortTable(ConsolePortTable):
name = tables.TemplateColumn(
verbose_name=_('Name'),
template_code=' {{ value }} ',
- order_by=Accessor('_name'),
attrs={'td': {'class': 'text-nowrap'}}
)
actions = columns.ActionsColumn(
@@ -423,7 +432,8 @@ class ConsoleServerPortTable(ModularDeviceComponentTable, PathEndpointTable):
model = models.ConsoleServerPort
fields = (
'pk', 'id', 'name', 'device', 'module_bay', 'module', 'label', 'type', 'speed', 'description',
- 'mark_connected', 'cable', 'cable_color', 'link_peer', 'connection', 'inventory_items', 'tags', 'created', 'last_updated',
+ 'mark_connected', 'cable', 'cable_color', 'link_peer', 'connection', 'inventory_items', 'tags', 'created',
+ 'last_updated',
)
default_columns = ('pk', 'name', 'device', 'label', 'type', 'speed', 'description')
@@ -433,7 +443,6 @@ class DeviceConsoleServerPortTable(ConsoleServerPortTable):
verbose_name=_('Name'),
template_code=' '
'{{ value }} ',
- order_by=Accessor('_name'),
attrs={'td': {'class': 'text-nowrap'}}
)
actions = columns.ActionsColumn(
@@ -482,7 +491,6 @@ class DevicePowerPortTable(PowerPortTable):
verbose_name=_('Name'),
template_code=' '
'{{ value }} ',
- order_by=Accessor('_name'),
attrs={'td': {'class': 'text-nowrap'}}
)
actions = columns.ActionsColumn(
@@ -512,6 +520,7 @@ class PowerOutletTable(ModularDeviceComponentTable, PathEndpointTable):
verbose_name=_('Power Port'),
linkify=True
)
+ color = columns.ColorColumn()
tags = columns.TagColumn(
url_name='dcim:poweroutlet_list'
)
@@ -520,17 +529,16 @@ class PowerOutletTable(ModularDeviceComponentTable, PathEndpointTable):
model = models.PowerOutlet
fields = (
'pk', 'id', 'name', 'device', 'module_bay', 'module', 'label', 'type', 'description', 'power_port',
- 'feed_leg', 'mark_connected', 'cable', 'cable_color', 'link_peer', 'connection', 'inventory_items',
+ 'color', 'feed_leg', 'mark_connected', 'cable', 'cable_color', 'link_peer', 'connection', 'inventory_items',
'tags', 'created', 'last_updated',
)
- default_columns = ('pk', 'name', 'device', 'label', 'type', 'power_port', 'feed_leg', 'description')
+ default_columns = ('pk', 'name', 'device', 'label', 'type', 'color', 'power_port', 'feed_leg', 'description')
class DevicePowerOutletTable(PowerOutletTable):
name = tables.TemplateColumn(
verbose_name=_('Name'),
template_code=' {{ value }} ',
- order_by=Accessor('_name'),
attrs={'td': {'class': 'text-nowrap'}}
)
actions = columns.ActionsColumn(
@@ -540,15 +548,20 @@ class DevicePowerOutletTable(PowerOutletTable):
class Meta(CableTerminationTable.Meta, DeviceComponentTable.Meta):
model = models.PowerOutlet
fields = (
- 'pk', 'id', 'name', 'module_bay', 'module', 'label', 'type', 'power_port', 'feed_leg', 'description',
- 'mark_connected', 'cable', 'cable_color', 'link_peer', 'connection', 'tags', 'actions',
+ 'pk', 'id', 'name', 'module_bay', 'module', 'label', 'type', 'color', 'power_port', 'feed_leg',
+ 'description', 'mark_connected', 'cable', 'cable_color', 'link_peer', 'connection', 'tags', 'actions',
)
default_columns = (
- 'pk', 'name', 'label', 'type', 'power_port', 'feed_leg', 'description', 'cable', 'connection',
+ 'pk', 'name', 'label', 'type', 'color', 'power_port', 'feed_leg', 'description', 'cable', 'connection',
)
class BaseInterfaceTable(NetBoxTable):
+ name = tables.Column(
+ verbose_name=_('Name'),
+ linkify=True,
+ order_by=('_name',)
+ )
enabled = columns.BooleanColumn(
verbose_name=_('Enabled'),
)
@@ -584,6 +597,14 @@ class BaseInterfaceTable(NetBoxTable):
orderable=False,
verbose_name=_('Tagged VLANs')
)
+ qinq_svlan = tables.Column(
+ verbose_name=_('Q-in-Q SVLAN'),
+ linkify=True
+ )
+ primary_mac_address = tables.Column(
+ verbose_name=_('MAC Address'),
+ linkify=True
+ )
def value_ip_addresses(self, value):
return ",".join([str(obj.address) for obj in value.all()])
@@ -592,7 +613,7 @@ class BaseInterfaceTable(NetBoxTable):
return ",".join([str(obj) for obj in value.all()])
-class InterfaceTable(ModularDeviceComponentTable, BaseInterfaceTable, PathEndpointTable):
+class InterfaceTable(BaseInterfaceTable, ModularDeviceComponentTable, PathEndpointTable):
device = tables.Column(
verbose_name=_('Device'),
linkify={
@@ -626,19 +647,31 @@ class InterfaceTable(ModularDeviceComponentTable, BaseInterfaceTable, PathEndpoi
verbose_name=_('VRF'),
linkify=True
)
+ virtual_circuit_termination = tables.Column(
+ verbose_name=_('Virtual Circuit'),
+ linkify=True
+ )
tags = columns.TagColumn(
url_name='dcim:interface_list'
)
+ # Override PathEndpointTable.connection to accommodate virtual circuits
+ connection = columns.TemplateColumn(
+ accessor='_path__destinations',
+ template_code=INTERFACE_LINKTERMINATION,
+ verbose_name=_('Connection'),
+ orderable=False
+ )
+
class Meta(DeviceComponentTable.Meta):
model = models.Interface
fields = (
'pk', 'id', 'name', 'device', 'module_bay', 'module', 'label', 'enabled', 'type', 'mgmt_only', 'mtu',
- 'speed', 'speed_formatted', 'duplex', 'mode', 'mac_address', 'wwn', 'poe_mode', 'poe_type', 'rf_role', 'rf_channel',
- 'rf_channel_frequency', 'rf_channel_width', 'tx_power', 'description', 'mark_connected', 'cable',
- 'cable_color', 'wireless_link', 'wireless_lans', 'link_peer', 'connection', 'tags', 'vdcs', 'vrf', 'l2vpn',
- 'tunnel', 'ip_addresses', 'fhrp_groups', 'untagged_vlan', 'tagged_vlans', 'inventory_items', 'created',
- 'last_updated',
+ 'speed', 'speed_formatted', 'duplex', 'mode', 'primary_mac_address', 'wwn', 'poe_mode', 'poe_type',
+ 'rf_role', 'rf_channel', 'rf_channel_frequency', 'rf_channel_width', 'tx_power', 'description',
+ 'mark_connected', 'cable', 'cable_color', 'wireless_link', 'wireless_lans', 'link_peer', 'connection',
+ 'tags', 'vdcs', 'vrf', 'l2vpn', 'tunnel', 'ip_addresses', 'fhrp_groups', 'untagged_vlan', 'tagged_vlans',
+ 'qinq_svlan', 'inventory_items', 'created', 'last_updated',
)
default_columns = ('pk', 'name', 'device', 'label', 'enabled', 'type', 'description')
@@ -672,10 +705,10 @@ class DeviceInterfaceTable(InterfaceTable):
model = models.Interface
fields = (
'pk', 'id', 'name', 'module_bay', 'module', 'label', 'enabled', 'type', 'parent', 'bridge', 'lag',
- 'mgmt_only', 'mtu', 'mode', 'mac_address', 'wwn', 'rf_role', 'rf_channel', 'rf_channel_frequency',
+ 'mgmt_only', 'mtu', 'mode', 'primary_mac_address', 'wwn', 'rf_role', 'rf_channel', 'rf_channel_frequency',
'rf_channel_width', 'tx_power', 'description', 'mark_connected', 'cable', 'cable_color', 'wireless_link',
'wireless_lans', 'link_peer', 'connection', 'tags', 'vdcs', 'vrf', 'l2vpn', 'tunnel', 'ip_addresses',
- 'fhrp_groups', 'untagged_vlan', 'tagged_vlans', 'actions',
+ 'fhrp_groups', 'untagged_vlan', 'tagged_vlans', 'qinq_svlan', 'actions',
)
default_columns = (
'pk', 'name', 'label', 'enabled', 'type', 'parent', 'lag', 'mtu', 'mode', 'description', 'ip_addresses',
@@ -731,7 +764,6 @@ class DeviceFrontPortTable(FrontPortTable):
verbose_name=_('Name'),
template_code=' '
'{{ value }} ',
- order_by=Accessor('_name'),
attrs={'td': {'class': 'text-nowrap'}}
)
actions = columns.ActionsColumn(
@@ -778,7 +810,6 @@ class DeviceRearPortTable(RearPortTable):
verbose_name=_('Name'),
template_code=' '
'{{ value }} ',
- order_by=Accessor('_name'),
attrs={'td': {'class': 'text-nowrap'}}
)
actions = columns.ActionsColumn(
@@ -841,7 +872,6 @@ class DeviceDeviceBayTable(DeviceBayTable):
verbose_name=_('Name'),
template_code=' {{ value }} ',
- order_by=Accessor('_name'),
attrs={'td': {'class': 'text-nowrap'}}
)
actions = columns.ActionsColumn(
@@ -910,7 +940,6 @@ class DeviceModuleBayTable(ModuleBayTable):
name = columns.MPTTColumn(
verbose_name=_('Name'),
linkify=True,
- order_by=Accessor('_name')
)
actions = columns.ActionsColumn(
extra_buttons=MODULEBAY_BUTTONS
@@ -949,6 +978,9 @@ class InventoryItemTable(DeviceComponentTable):
verbose_name=_('Discovered'),
false_mark=None
)
+ status = columns.ChoiceFieldColumn(
+ verbose_name=_('Status'),
+ )
parent = tables.Column(
linkify=True,
verbose_name=_('Parent'),
@@ -961,11 +993,11 @@ class InventoryItemTable(DeviceComponentTable):
class Meta(NetBoxTable.Meta):
model = models.InventoryItem
fields = (
- 'pk', 'id', 'name', 'device', 'parent', 'component', 'label', 'role', 'manufacturer', 'part_id', 'serial',
- 'asset_tag', 'description', 'discovered', 'tags', 'created', 'last_updated',
+ 'pk', 'id', 'name', 'device', 'parent', 'component', 'label', 'status', 'role', 'manufacturer', 'part_id',
+ 'serial', 'asset_tag', 'description', 'discovered', 'tags', 'created', 'last_updated',
)
default_columns = (
- 'pk', 'name', 'device', 'label', 'role', 'manufacturer', 'part_id', 'serial', 'asset_tag',
+ 'pk', 'name', 'device', 'label', 'status', 'role', 'manufacturer', 'part_id', 'serial', 'asset_tag',
)
@@ -974,18 +1006,17 @@ class DeviceInventoryItemTable(InventoryItemTable):
verbose_name=_('Name'),
template_code=''
'{{ value }} ',
- order_by=Accessor('_name'),
attrs={'td': {'class': 'text-nowrap'}}
)
class Meta(NetBoxTable.Meta):
model = models.InventoryItem
fields = (
- 'pk', 'id', 'name', 'label', 'role', 'manufacturer', 'part_id', 'serial', 'asset_tag', 'component',
- 'description', 'discovered', 'tags', 'actions',
+ 'pk', 'id', 'name', 'label', 'status', 'role', 'manufacturer', 'part_id', 'serial', 'asset_tag',
+ 'component', 'description', 'discovered', 'tags', 'actions',
)
default_columns = (
- 'pk', 'name', 'label', 'role', 'manufacturer', 'part_id', 'serial', 'asset_tag', 'component',
+ 'pk', 'name', 'label', 'status', 'role', 'manufacturer', 'part_id', 'serial', 'asset_tag', 'component',
)
@@ -1096,3 +1127,35 @@ class VirtualDeviceContextTable(TenancyColumnsMixin, NetBoxTable):
default_columns = (
'pk', 'name', 'identifier', 'status', 'tenant', 'primary_ip',
)
+
+
+class MACAddressTable(NetBoxTable):
+ mac_address = tables.TemplateColumn(
+ template_code=MACADDRESS_LINK,
+ verbose_name=_('MAC Address')
+ )
+ assigned_object = tables.Column(
+ linkify=True,
+ orderable=False,
+ verbose_name=_('Interface')
+ )
+ assigned_object_parent = tables.Column(
+ accessor='assigned_object__parent_object',
+ linkify=True,
+ orderable=False,
+ verbose_name=_('Parent')
+ )
+ tags = columns.TagColumn(
+ url_name='dcim:macaddress_list'
+ )
+ actions = columns.ActionsColumn(
+ extra_buttons=MACADDRESS_COPY_BUTTON
+ )
+
+ class Meta(DeviceComponentTable.Meta):
+ model = models.MACAddress
+ fields = (
+ 'pk', 'id', 'mac_address', 'assigned_object_parent', 'assigned_object', 'description', 'comments', 'tags',
+ 'created', 'last_updated',
+ )
+ default_columns = ('pk', 'mac_address', 'assigned_object_parent', 'assigned_object', 'description')
diff --git a/netbox/dcim/tables/devicetypes.py b/netbox/dcim/tables/devicetypes.py
index e8a4e35f1..a7f8f08e8 100644
--- a/netbox/dcim/tables/devicetypes.py
+++ b/netbox/dcim/tables/devicetypes.py
@@ -163,9 +163,7 @@ class ComponentTemplateTable(NetBoxTable):
id = tables.Column(
verbose_name=_('ID')
)
- name = tables.Column(
- order_by=('_name',)
- )
+ name = tables.Column()
class Meta(NetBoxTable.Meta):
exclude = ('id', )
@@ -220,6 +218,10 @@ class PowerOutletTemplateTable(ComponentTemplateTable):
class InterfaceTemplateTable(ComponentTemplateTable):
+ name = tables.Column(
+ verbose_name=_('Name'),
+ order_by=('_name',)
+ )
enabled = columns.BooleanColumn(
verbose_name=_('Enabled'),
)
diff --git a/netbox/dcim/tables/modules.py b/netbox/dcim/tables/modules.py
index 5b06e08b2..6bd0d53b5 100644
--- a/netbox/dcim/tables/modules.py
+++ b/netbox/dcim/tables/modules.py
@@ -41,6 +41,7 @@ class ModuleTypeTable(NetBoxTable):
model = ModuleType
fields = (
'pk', 'id', 'model', 'manufacturer', 'part_number', 'airflow', 'weight', 'description', 'comments', 'tags',
+ 'created', 'last_updated',
)
default_columns = (
'pk', 'model', 'manufacturer', 'part_number',
@@ -79,7 +80,7 @@ class ModuleTable(NetBoxTable):
model = Module
fields = (
'pk', 'id', 'device', 'module_bay', 'manufacturer', 'module_type', 'status', 'serial', 'asset_tag',
- 'description', 'comments', 'tags',
+ 'description', 'comments', 'tags', 'created', 'last_updated',
)
default_columns = (
'pk', 'id', 'device', 'module_bay', 'manufacturer', 'module_type', 'status', 'serial', 'asset_tag',
diff --git a/netbox/dcim/tables/racks.py b/netbox/dcim/tables/racks.py
index a6b704161..dbd99ca24 100644
--- a/netbox/dcim/tables/racks.py
+++ b/netbox/dcim/tables/racks.py
@@ -111,7 +111,6 @@ class RackTypeTable(NetBoxTable):
class RackTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
name = tables.Column(
verbose_name=_('Name'),
- order_by=('_name',),
linkify=True
)
location = tables.Column(
diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py
index 96ab803e6..4b51cd06a 100644
--- a/netbox/dcim/tables/template_code.py
+++ b/netbox/dcim/tables/template_code.py
@@ -10,6 +10,20 @@ LINKTERMINATION = """
{% endfor %}
"""
+INTERFACE_LINKTERMINATION = """
+{% load i18n %}
+{% if record.is_virtual and record.virtual_circuit_termination %}
+ {% for termination in record.connected_endpoints %}
+ {{ termination.interface.parent_object }}
+
+ {{ termination.interface }}
+ {% trans "via" %}
+ {{ termination.parent_object }}
+ {% if not forloop.last %} {% endif %}
+ {% endfor %}
+{% else %}""" + LINKTERMINATION + """{% endif %}
+"""
+
CABLE_LENGTH = """
{% load helpers %}
{% if record.length %}{{ record.length|floatformat:"-2" }} {{ record.length_unit }}{% endif %}
@@ -55,16 +69,18 @@ INTERFACE_FHRPGROUPS = """
"""
INTERFACE_TAGGED_VLANS = """
-{% if record.mode == 'tagged' %}
+{% load i18n %}
+{% if record.mode == 'access' %}
+{% elif record.mode == 'tagged-all' %}
+ {% trans "All" %}
+{% else %}
{% if value.count > 3 %}
{{ value.count }} VLANs
{% else %}
{% for vlan in value.all %}
- {{ vlan }}
+ {{ vlan }}
{% endfor %}
{% endif %}
-{% elif record.mode == 'tagged-all' %}
- All
{% endif %}
"""
@@ -314,6 +330,9 @@ INTERFACE_BUTTONS = """
{% if perms.ipam.add_ipaddress %}
IP Address
{% endif %}
+ {% if perms.dcim.add_macaddress %}
+ MAC Address
+ {% endif %}
{% if perms.dcim.add_inventoryitem %}
Inventory Item
{% endif %}
@@ -373,6 +392,15 @@ INTERFACE_BUTTONS = """
{% endif %}
+ {% if perms.circuits.add_virtualcircuittermination and not record.virtual_circuit_termination %}
+
+
+
+ {% elif perms.circuits.delete_virtualcircuittermination and record.virtual_circuit_termination %}
+
+
+
+ {% endif %}
{% elif record.is_wired and perms.dcim.add_cable %}
diff --git a/netbox/dcim/tests/test_api.py b/netbox/dcim/tests/test_api.py
index 1b460cd59..99a446aef 100644
--- a/netbox/dcim/tests/test_api.py
+++ b/netbox/dcim/tests/test_api.py
@@ -7,6 +7,7 @@ from dcim.choices import *
from dcim.constants import *
from dcim.models import *
from extras.models import ConfigTemplate
+from ipam.choices import VLANQinQRoleChoices
from ipam.models import ASN, RIR, VLAN, VRF
from netbox.api.serializers import GenericObjectSerializer
from tenancy.models import Tenant
@@ -204,13 +205,41 @@ class LocationTest(APIViewTestCases.APIViewTestCase):
Site.objects.bulk_create(sites)
parent_locations = (
- Location.objects.create(site=sites[0], name='Parent Location 1', slug='parent-location-1', status=LocationStatusChoices.STATUS_ACTIVE),
- Location.objects.create(site=sites[1], name='Parent Location 2', slug='parent-location-2', status=LocationStatusChoices.STATUS_ACTIVE),
+ Location.objects.create(
+ site=sites[0],
+ name='Parent Location 1',
+ slug='parent-location-1',
+ status=LocationStatusChoices.STATUS_ACTIVE,
+ ),
+ Location.objects.create(
+ site=sites[1],
+ name='Parent Location 2',
+ slug='parent-location-2',
+ status=LocationStatusChoices.STATUS_ACTIVE,
+ ),
)
- Location.objects.create(site=sites[0], name='Location 1', slug='location-1', parent=parent_locations[0], status=LocationStatusChoices.STATUS_ACTIVE)
- Location.objects.create(site=sites[0], name='Location 2', slug='location-2', parent=parent_locations[0], status=LocationStatusChoices.STATUS_ACTIVE)
- Location.objects.create(site=sites[0], name='Location 3', slug='location-3', parent=parent_locations[0], status=LocationStatusChoices.STATUS_ACTIVE)
+ Location.objects.create(
+ site=sites[0],
+ name='Location 1',
+ slug='location-1',
+ parent=parent_locations[0],
+ status=LocationStatusChoices.STATUS_ACTIVE,
+ )
+ Location.objects.create(
+ site=sites[0],
+ name='Location 2',
+ slug='location-2',
+ parent=parent_locations[0],
+ status=LocationStatusChoices.STATUS_ACTIVE,
+ )
+ Location.objects.create(
+ site=sites[0],
+ name='Location 3',
+ slug='location-3',
+ parent=parent_locations[0],
+ status=LocationStatusChoices.STATUS_ACTIVE,
+ )
cls.create_data = [
{
@@ -289,9 +318,24 @@ class RackTypeTest(APIViewTestCases.APIViewTestCase):
Manufacturer.objects.bulk_create(manufacturers)
rack_types = (
- RackType(manufacturer=manufacturers[0], model='Rack Type 1', slug='rack-type-1', form_factor=RackFormFactorChoices.TYPE_CABINET,),
- RackType(manufacturer=manufacturers[0], model='Rack Type 2', slug='rack-type-2', form_factor=RackFormFactorChoices.TYPE_CABINET,),
- RackType(manufacturer=manufacturers[0], model='Rack Type 3', slug='rack-type-3', form_factor=RackFormFactorChoices.TYPE_CABINET,),
+ RackType(
+ manufacturer=manufacturers[0],
+ model='Rack Type 1',
+ slug='rack-type-1',
+ form_factor=RackFormFactorChoices.TYPE_CABINET,
+ ),
+ RackType(
+ manufacturer=manufacturers[0],
+ model='Rack Type 2',
+ slug='rack-type-2',
+ form_factor=RackFormFactorChoices.TYPE_CABINET,
+ ),
+ RackType(
+ manufacturer=manufacturers[0],
+ model='Rack Type 3',
+ slug='rack-type-3',
+ form_factor=RackFormFactorChoices.TYPE_CABINET,
+ ),
)
RackType.objects.bulk_create(rack_types)
@@ -1049,10 +1093,18 @@ class InventoryItemTemplateTest(APIViewTestCases.APIViewTestCase):
role = InventoryItemRole.objects.create(name='Inventory Item Role 1', slug='inventory-item-role-1')
inventory_item_templates = (
- InventoryItemTemplate(device_type=devicetype, name='Inventory Item Template 1', manufacturer=manufacturer, role=role),
- InventoryItemTemplate(device_type=devicetype, name='Inventory Item Template 2', manufacturer=manufacturer, role=role),
- InventoryItemTemplate(device_type=devicetype, name='Inventory Item Template 3', manufacturer=manufacturer, role=role),
- InventoryItemTemplate(device_type=devicetype, name='Inventory Item Template 4', manufacturer=manufacturer, role=role),
+ InventoryItemTemplate(
+ device_type=devicetype, name='Inventory Item Template 1', manufacturer=manufacturer, role=role
+ ),
+ InventoryItemTemplate(
+ device_type=devicetype, name='Inventory Item Template 2', manufacturer=manufacturer, role=role
+ ),
+ InventoryItemTemplate(
+ device_type=devicetype, name='Inventory Item Template 3', manufacturer=manufacturer, role=role
+ ),
+ InventoryItemTemplate(
+ device_type=devicetype, name='Inventory Item Template 4', manufacturer=manufacturer, role=role
+ ),
)
for item in inventory_item_templates:
item.save()
@@ -1618,6 +1670,7 @@ class InterfaceTest(Mixins.ComponentTraceMixin, APIViewTestCases.APIViewTestCase
VLAN(name='VLAN 1', vid=1),
VLAN(name='VLAN 2', vid=2),
VLAN(name='VLAN 3', vid=3),
+ VLAN(name='SVLAN 1', vid=1001, qinq_role=VLANQinQRoleChoices.ROLE_SERVICE),
)
VLAN.objects.bulk_create(vlans)
@@ -1676,18 +1729,22 @@ class InterfaceTest(Mixins.ComponentTraceMixin, APIViewTestCases.APIViewTestCase
'vdcs': [vdcs[1].pk],
'name': 'Interface 7',
'type': InterfaceTypeChoices.TYPE_80211A,
+ 'mode': InterfaceModeChoices.MODE_Q_IN_Q,
'tx_power': 10,
'wireless_lans': [wireless_lans[0].pk, wireless_lans[1].pk],
'rf_channel': WirelessChannelChoices.CHANNEL_5G_32,
+ 'qinq_svlan': vlans[3].pk,
},
{
'device': device.pk,
'vdcs': [vdcs[1].pk],
'name': 'Interface 8',
'type': InterfaceTypeChoices.TYPE_80211A,
+ 'mode': InterfaceModeChoices.MODE_Q_IN_Q,
'tx_power': 10,
'wireless_lans': [wireless_lans[0].pk, wireless_lans[1].pk],
'rf_channel': "",
+ 'qinq_svlan': vlans[3].pk,
},
]
@@ -1955,9 +2012,15 @@ class InventoryItemTest(APIViewTestCases.APIViewTestCase):
)
Interface.objects.bulk_create(interfaces)
- InventoryItem.objects.create(device=device, name='Inventory Item 1', role=roles[0], manufacturer=manufacturer, component=interfaces[0])
- InventoryItem.objects.create(device=device, name='Inventory Item 2', role=roles[0], manufacturer=manufacturer, component=interfaces[1])
- InventoryItem.objects.create(device=device, name='Inventory Item 3', role=roles[0], manufacturer=manufacturer, component=interfaces[2])
+ InventoryItem.objects.create(
+ device=device, name='Inventory Item 1', role=roles[0], manufacturer=manufacturer, component=interfaces[0]
+ )
+ InventoryItem.objects.create(
+ device=device, name='Inventory Item 2', role=roles[0], manufacturer=manufacturer, component=interfaces[1]
+ )
+ InventoryItem.objects.create(
+ device=device, name='Inventory Item 3', role=roles[0], manufacturer=manufacturer, component=interfaces[2]
+ )
cls.create_data = [
{
@@ -2384,3 +2447,46 @@ class VirtualDeviceContextTest(APIViewTestCases.APIViewTestCase):
# Omit identifier to test uniqueness constraint
},
]
+
+
+class MACAddressTest(APIViewTestCases.APIViewTestCase):
+ model = MACAddress
+ brief_fields = ['description', 'display', 'id', 'mac_address', 'url']
+ bulk_update_data = {
+ 'description': 'New description',
+ }
+
+ @classmethod
+ def setUpTestData(cls):
+ device = create_test_device(name='Device 1')
+ interfaces = (
+ Interface(device=device, name='Interface 1', type='1000base-t'),
+ Interface(device=device, name='Interface 2', type='1000base-t'),
+ Interface(device=device, name='Interface 3', type='1000base-t'),
+ Interface(device=device, name='Interface 4', type='1000base-t'),
+ Interface(device=device, name='Interface 5', type='1000base-t'),
+ )
+ Interface.objects.bulk_create(interfaces)
+
+ mac_addresses = (
+ MACAddress(mac_address='00:00:00:00:00:01', assigned_object=interfaces[0]),
+ MACAddress(mac_address='00:00:00:00:00:02', assigned_object=interfaces[1]),
+ MACAddress(mac_address='00:00:00:00:00:03', assigned_object=interfaces[2]),
+ )
+ MACAddress.objects.bulk_create(mac_addresses)
+
+ cls.create_data = [
+ {
+ 'mac_address': '00:00:00:00:00:04',
+ 'assigned_object_type': 'dcim.interface',
+ 'assigned_object_id': interfaces[3].pk,
+ },
+ {
+ 'mac_address': '00:00:00:00:00:05',
+ 'assigned_object_type': 'dcim.interface',
+ 'assigned_object_id': interfaces[4].pk,
+ },
+ {
+ 'mac_address': '00:00:00:00:00:06',
+ },
+ ]
diff --git a/netbox/dcim/tests/test_cablepaths.py b/netbox/dcim/tests/test_cablepaths.py
index f7c337bdf..1acc9a8a1 100644
--- a/netbox/dcim/tests/test_cablepaths.py
+++ b/netbox/dcim/tests/test_cablepaths.py
@@ -661,24 +661,64 @@ class CablePathTestCase(TestCase):
)
cable5.save()
path1 = self.assertPathExists(
- ([interface1, interface2], cable1, frontport1_1, rearport1, cable3, rearport2, frontport2_1, cable4, [interface5, interface6]),
+ (
+ [interface1, interface2],
+ cable1,
+ frontport1_1,
+ rearport1,
+ cable3,
+ rearport2,
+ frontport2_1,
+ cable4,
+ [interface5, interface6],
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
path2 = self.assertPathExists(
- ([interface3, interface4], cable2, frontport1_2, rearport1, cable3, rearport2, frontport2_2, cable5, [interface7, interface8]),
+ (
+ [interface3, interface4],
+ cable2,
+ frontport1_2,
+ rearport1,
+ cable3,
+ rearport2,
+ frontport2_2,
+ cable5,
+ [interface7, interface8],
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
path3 = self.assertPathExists(
- ([interface5, interface6], cable4, frontport2_1, rearport2, cable3, rearport1, frontport1_1, cable1, [interface1, interface2]),
+ (
+ [interface5, interface6],
+ cable4,
+ frontport2_1,
+ rearport2,
+ cable3,
+ rearport1,
+ frontport1_1,
+ cable1,
+ [interface1, interface2],
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
path4 = self.assertPathExists(
- ([interface7, interface8], cable5, frontport2_2, rearport2, cable3, rearport1, frontport1_2, cable2, [interface3, interface4]),
+ (
+ [interface7, interface8],
+ cable5,
+ frontport2_2,
+ rearport2,
+ cable3,
+ rearport1,
+ frontport1_2,
+ cable2,
+ [interface3, interface4],
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
self.assertEqual(CablePath.objects.count(), 4)
@@ -1167,7 +1207,11 @@ class CablePathTestCase(TestCase):
[IF1] --C1-- [CT1]
"""
interface1 = Interface.objects.create(device=self.device, name='Interface 1')
- circuittermination1 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='A')
+ circuittermination1 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='A'
+ )
# Create cable 1
cable1 = Cable(
@@ -1198,7 +1242,11 @@ class CablePathTestCase(TestCase):
"""
interface1 = Interface.objects.create(device=self.device, name='Interface 1')
interface2 = Interface.objects.create(device=self.device, name='Interface 2')
- circuittermination1 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='A')
+ circuittermination1 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='A'
+ )
# Create cable 1
cable1 = Cable(
@@ -1214,7 +1262,11 @@ class CablePathTestCase(TestCase):
)
# Create CT2
- circuittermination2 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='Z')
+ circuittermination2 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='Z'
+ )
# Check for partial path to site
self.assertPathExists(
@@ -1266,7 +1318,11 @@ class CablePathTestCase(TestCase):
interface2 = Interface.objects.create(device=self.device, name='Interface 2')
interface3 = Interface.objects.create(device=self.device, name='Interface 3')
interface4 = Interface.objects.create(device=self.device, name='Interface 4')
- circuittermination1 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='A')
+ circuittermination1 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='A'
+ )
# Create cable 1
cable1 = Cable(
@@ -1282,7 +1338,11 @@ class CablePathTestCase(TestCase):
)
# Create CT2
- circuittermination2 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='Z')
+ circuittermination2 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='Z'
+ )
# Check for partial path to site
self.assertPathExists(
@@ -1299,14 +1359,28 @@ class CablePathTestCase(TestCase):
# Check for complete path in each direction
self.assertPathExists(
- ([interface1, interface2], cable1, circuittermination1, circuittermination2, cable2, [interface3, interface4]),
+ (
+ [interface1, interface2],
+ cable1,
+ circuittermination1,
+ circuittermination2,
+ cable2,
+ [interface3, interface4],
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
self.assertPathExists(
- ([interface3, interface4], cable2, circuittermination2, circuittermination1, cable1, [interface1, interface2]),
+ (
+ [interface3, interface4],
+ cable2,
+ circuittermination2,
+ circuittermination1,
+ cable1,
+ [interface1, interface2],
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
self.assertEqual(CablePath.objects.count(), 2)
@@ -1335,8 +1409,16 @@ class CablePathTestCase(TestCase):
"""
interface1 = Interface.objects.create(device=self.device, name='Interface 1')
site2 = Site.objects.create(name='Site 2', slug='site-2')
- circuittermination1 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='A')
- circuittermination2 = CircuitTermination.objects.create(circuit=self.circuit, site=site2, term_side='Z')
+ circuittermination1 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='A'
+ )
+ circuittermination2 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=site2,
+ term_side='Z'
+ )
# Create cable 1
cable1 = Cable(
@@ -1365,8 +1447,16 @@ class CablePathTestCase(TestCase):
"""
interface1 = Interface.objects.create(device=self.device, name='Interface 1')
providernetwork = ProviderNetwork.objects.create(name='Provider Network 1', provider=self.circuit.provider)
- circuittermination1 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='A')
- circuittermination2 = CircuitTermination.objects.create(circuit=self.circuit, provider_network=providernetwork, term_side='Z')
+ circuittermination1 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='A'
+ )
+ circuittermination2 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=providernetwork,
+ term_side='Z'
+ )
# Create cable 1
cable1 = Cable(
@@ -1413,8 +1503,15 @@ class CablePathTestCase(TestCase):
frontport2_2 = FrontPort.objects.create(
device=self.device, name='Front Port 2:2', rear_port=rearport2, rear_port_position=2
)
- circuittermination1 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='A')
- circuittermination2 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='Z')
+ circuittermination1 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='A'
+ )
+ circuittermination2 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site, term_side='Z'
+ )
# Create cables
cable1 = Cable(
@@ -1499,10 +1596,26 @@ class CablePathTestCase(TestCase):
interface1 = Interface.objects.create(device=self.device, name='Interface 1')
interface2 = Interface.objects.create(device=self.device, name='Interface 2')
circuit2 = Circuit.objects.create(provider=self.circuit.provider, type=self.circuit.type, cid='Circuit 2')
- circuittermination1 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='A')
- circuittermination2 = CircuitTermination.objects.create(circuit=self.circuit, site=self.site, term_side='Z')
- circuittermination3 = CircuitTermination.objects.create(circuit=circuit2, site=self.site, term_side='A')
- circuittermination4 = CircuitTermination.objects.create(circuit=circuit2, site=self.site, term_side='Z')
+ circuittermination1 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='A'
+ )
+ circuittermination2 = CircuitTermination.objects.create(
+ circuit=self.circuit,
+ termination=self.site,
+ term_side='Z'
+ )
+ circuittermination3 = CircuitTermination.objects.create(
+ circuit=circuit2,
+ termination=self.site,
+ term_side='A'
+ )
+ circuittermination4 = CircuitTermination.objects.create(
+ circuit=circuit2,
+ termination=self.site,
+ term_side='Z'
+ )
# Create cables
cable1 = Cable(
@@ -1706,45 +1819,95 @@ class CablePathTestCase(TestCase):
)
cable3.save()
self.assertPathExists(
- (interface1, cable1, (frontport1_1, frontport1_2), rearport1, cable3, rearport2, (frontport2_1, frontport2_2)),
- is_complete=False
+ (
+ interface1,
+ cable1,
+ (frontport1_1, frontport1_2),
+ rearport1,
+ cable3,
+ rearport2,
+ (frontport2_1, frontport2_2),
+ ),
+ is_complete=False,
)
self.assertPathExists(
- (interface2, cable2, (frontport1_3, frontport1_4), rearport1, cable3, rearport2, (frontport2_3, frontport2_4)),
- is_complete=False
+ (
+ interface2,
+ cable2,
+ (frontport1_3, frontport1_4),
+ rearport1,
+ cable3,
+ rearport2,
+ (frontport2_3, frontport2_4),
+ ),
+ is_complete=False,
)
self.assertEqual(CablePath.objects.count(), 2)
# Create cables 4-5
- cable4 = Cable(
- a_terminations=[frontport2_1, frontport2_2],
- b_terminations=[interface3]
- )
+ cable4 = Cable(a_terminations=[frontport2_1, frontport2_2], b_terminations=[interface3])
cable4.save()
- cable5 = Cable(
- a_terminations=[frontport2_3, frontport2_4],
- b_terminations=[interface4]
- )
+ cable5 = Cable(a_terminations=[frontport2_3, frontport2_4], b_terminations=[interface4])
cable5.save()
path1 = self.assertPathExists(
- (interface1, cable1, (frontport1_1, frontport1_2), rearport1, cable3, rearport2, (frontport2_1, frontport2_2), cable4, interface3),
+ (
+ interface1,
+ cable1,
+ (frontport1_1, frontport1_2),
+ rearport1,
+ cable3,
+ rearport2,
+ (frontport2_1, frontport2_2),
+ cable4,
+ interface3,
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
path2 = self.assertPathExists(
- (interface2, cable2, (frontport1_3, frontport1_4), rearport1, cable3, rearport2, (frontport2_3, frontport2_4), cable5, interface4),
+ (
+ interface2,
+ cable2,
+ (frontport1_3, frontport1_4),
+ rearport1,
+ cable3,
+ rearport2,
+ (frontport2_3, frontport2_4),
+ cable5,
+ interface4,
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
path3 = self.assertPathExists(
- (interface3, cable4, (frontport2_1, frontport2_2), rearport2, cable3, rearport1, (frontport1_1, frontport1_2), cable1, interface1),
+ (
+ interface3,
+ cable4,
+ (frontport2_1, frontport2_2),
+ rearport2,
+ cable3,
+ rearport1,
+ (frontport1_1, frontport1_2),
+ cable1,
+ interface1,
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
path4 = self.assertPathExists(
- (interface4, cable5, (frontport2_3, frontport2_4), rearport2, cable3, rearport1, (frontport1_3, frontport1_4), cable2, interface2),
+ (
+ interface4,
+ cable5,
+ (frontport2_3, frontport2_4),
+ rearport2,
+ cable3,
+ rearport1,
+ (frontport1_3, frontport1_4),
+ cable2,
+ interface2,
+ ),
is_complete=True,
- is_active=True
+ is_active=True,
)
self.assertEqual(CablePath.objects.count(), 4)
@@ -1809,7 +1972,10 @@ class CablePathTestCase(TestCase):
)
cable1.save()
self.assertPathExists(
- (interface1, cable1, (frontport1, frontport3), (rearport1, rearport3), (cable2, cable4), (rearport2, rearport4), (frontport2, frontport4)),
+ (
+ interface1, cable1, (frontport1, frontport3), (rearport1, rearport3), (cable2, cable4),
+ (rearport2, rearport4), (frontport2, frontport4)
+ ),
is_complete=False
)
self.assertEqual(CablePath.objects.count(), 1)
diff --git a/netbox/dcim/tests/test_filtersets.py b/netbox/dcim/tests/test_filtersets.py
index 6c65cad93..ede1e2a09 100644
--- a/netbox/dcim/tests/test_filtersets.py
+++ b/netbox/dcim/tests/test_filtersets.py
@@ -4,12 +4,13 @@ from circuits.models import Circuit, CircuitTermination, CircuitType, Provider
from dcim.choices import *
from dcim.filtersets import *
from dcim.models import *
-from ipam.models import ASN, IPAddress, RIR, VRF
-from netbox.choices import ColorChoices
+from ipam.choices import VLANQinQRoleChoices
+from ipam.models import ASN, IPAddress, RIR, VLAN, VLANTranslationPolicy, VRF
+from netbox.choices import ColorChoices, WeightUnitChoices
from tenancy.models import Tenant, TenantGroup
from users.models import User
-from utilities.testing import ChangeLoggedFilterSetTests, create_test_device
-from virtualization.models import Cluster, ClusterType, ClusterGroup
+from utilities.testing import ChangeLoggedFilterSetTests, create_test_device, create_test_virtualmachine
+from virtualization.models import Cluster, ClusterType, ClusterGroup, VMInterface, VirtualMachine
from wireless.choices import WirelessChannelChoices, WirelessRoleChoices
@@ -242,9 +243,41 @@ class SiteTestCase(TestCase, ChangeLoggedFilterSetTests):
ASN.objects.bulk_create(asns)
sites = (
- Site(name='Site 1', slug='site-1', region=regions[0], group=groups[0], tenant=tenants[0], status=SiteStatusChoices.STATUS_ACTIVE, facility='Facility 1', latitude=10, longitude=10, description='foobar1'),
- Site(name='Site 2', slug='site-2', region=regions[1], group=groups[1], tenant=tenants[1], status=SiteStatusChoices.STATUS_PLANNED, facility='Facility 2', latitude=20, longitude=20, description='foobar2'),
- Site(name='Site 3', slug='site-3', region=regions[2], group=groups[2], tenant=tenants[2], status=SiteStatusChoices.STATUS_RETIRED, facility='Facility 3', latitude=30, longitude=30),
+ Site(
+ name='Site 1',
+ slug='site-1',
+ region=regions[0],
+ group=groups[0],
+ tenant=tenants[0],
+ status=SiteStatusChoices.STATUS_ACTIVE,
+ facility='Facility 1',
+ latitude=10,
+ longitude=10,
+ description='foobar1',
+ ),
+ Site(
+ name='Site 2',
+ slug='site-2',
+ region=regions[1],
+ group=groups[1],
+ tenant=tenants[1],
+ status=SiteStatusChoices.STATUS_PLANNED,
+ facility='Facility 2',
+ latitude=20,
+ longitude=20,
+ description='foobar2',
+ ),
+ Site(
+ name='Site 3',
+ slug='site-3',
+ region=regions[2],
+ group=groups[2],
+ tenant=tenants[2],
+ status=SiteStatusChoices.STATUS_RETIRED,
+ facility='Facility 3',
+ latitude=30,
+ longitude=30,
+ ),
)
Site.objects.bulk_create(sites)
sites[0].asns.set([asns[0]])
@@ -360,9 +393,33 @@ class LocationTestCase(TestCase, ChangeLoggedFilterSetTests):
location.save()
locations = (
- Location(name='Location 1A', slug='location-1a', site=sites[0], parent=parent_locations[0], status=LocationStatusChoices.STATUS_PLANNED, facility='Facility 1', description='foobar1'),
- Location(name='Location 2A', slug='location-2a', site=sites[1], parent=parent_locations[1], status=LocationStatusChoices.STATUS_STAGING, facility='Facility 2', description='foobar2'),
- Location(name='Location 3A', slug='location-3a', site=sites[2], parent=parent_locations[2], status=LocationStatusChoices.STATUS_DECOMMISSIONING, facility='Facility 3', description='foobar3'),
+ Location(
+ name='Location 1A',
+ slug='location-1a',
+ site=sites[0],
+ parent=parent_locations[0],
+ status=LocationStatusChoices.STATUS_PLANNED,
+ facility='Facility 1',
+ description='foobar1',
+ ),
+ Location(
+ name='Location 2A',
+ slug='location-2a',
+ site=sites[1],
+ parent=parent_locations[1],
+ status=LocationStatusChoices.STATUS_STAGING,
+ facility='Facility 2',
+ description='foobar2',
+ ),
+ Location(
+ name='Location 3A',
+ slug='location-3a',
+ site=sites[2],
+ parent=parent_locations[2],
+ status=LocationStatusChoices.STATUS_DECOMMISSIONING,
+ facility='Facility 3',
+ description='foobar3',
+ ),
)
for location in locations:
location.save()
@@ -871,7 +928,6 @@ class RackTestCase(TestCase, ChangeLoggedFilterSetTests):
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
def test_outer_unit(self):
- self.assertEqual(Rack.objects.filter(outer_unit__isnull=False).count(), 5)
params = {'outer_unit': RackDimensionUnitChoices.UNIT_MILLIMETER}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
@@ -1222,10 +1278,22 @@ class DeviceTypeTestCase(TestCase, ChangeLoggedFilterSetTests):
RearPortTemplate(device_type=device_types[1], name='Rear Port 2', type=PortTypeChoices.TYPE_8P8C),
)
RearPortTemplate.objects.bulk_create(rear_ports)
- FrontPortTemplate.objects.bulk_create((
- FrontPortTemplate(device_type=device_types[0], name='Front Port 1', type=PortTypeChoices.TYPE_8P8C, rear_port=rear_ports[0]),
- FrontPortTemplate(device_type=device_types[1], name='Front Port 2', type=PortTypeChoices.TYPE_8P8C, rear_port=rear_ports[1]),
- ))
+ FrontPortTemplate.objects.bulk_create(
+ (
+ FrontPortTemplate(
+ device_type=device_types[0],
+ name='Front Port 1',
+ type=PortTypeChoices.TYPE_8P8C,
+ rear_port=rear_ports[0],
+ ),
+ FrontPortTemplate(
+ device_type=device_types[1],
+ name='Front Port 2',
+ type=PortTypeChoices.TYPE_8P8C,
+ rear_port=rear_ports[1],
+ ),
+ )
+ )
ModuleBayTemplate.objects.bulk_create((
ModuleBayTemplate(device_type=device_types[0], name='Module Bay 1'),
ModuleBayTemplate(device_type=device_types[1], name='Module Bay 2'),
@@ -1435,10 +1503,22 @@ class ModuleTypeTestCase(TestCase, ChangeLoggedFilterSetTests):
RearPortTemplate(module_type=module_types[1], name='Rear Port 2', type=PortTypeChoices.TYPE_8P8C),
)
RearPortTemplate.objects.bulk_create(rear_ports)
- FrontPortTemplate.objects.bulk_create((
- FrontPortTemplate(module_type=module_types[0], name='Front Port 1', type=PortTypeChoices.TYPE_8P8C, rear_port=rear_ports[0]),
- FrontPortTemplate(module_type=module_types[1], name='Front Port 2', type=PortTypeChoices.TYPE_8P8C, rear_port=rear_ports[1]),
- ))
+ FrontPortTemplate.objects.bulk_create(
+ (
+ FrontPortTemplate(
+ module_type=module_types[0],
+ name='Front Port 1',
+ type=PortTypeChoices.TYPE_8P8C,
+ rear_port=rear_ports[0],
+ ),
+ FrontPortTemplate(
+ module_type=module_types[1],
+ name='Front Port 2',
+ type=PortTypeChoices.TYPE_8P8C,
+ rear_port=rear_ports[1],
+ ),
+ )
+ )
def test_q(self):
params = {'q': 'foobar1'}
@@ -1893,11 +1973,19 @@ class ModuleBayTemplateTestCase(TestCase, DeviceComponentTemplateFilterSetTests,
)
ModuleType.objects.bulk_create(module_types)
- ModuleBayTemplate.objects.bulk_create((
- ModuleBayTemplate(device_type=device_types[0], name='Module Bay 1', description='foobar1'),
- ModuleBayTemplate(device_type=device_types[1], name='Module Bay 2', description='foobar2', module_type=module_types[0]),
- ModuleBayTemplate(device_type=device_types[2], name='Module Bay 3', description='foobar3', module_type=module_types[1]),
- ))
+ ModuleBayTemplate.objects.bulk_create(
+ (
+ ModuleBayTemplate(
+ device_type=device_types[0], name='Module Bay 1', description='foobar1'
+ ),
+ ModuleBayTemplate(
+ device_type=device_types[1], name='Module Bay 2', description='foobar2', module_type=module_types[0]
+ ),
+ ModuleBayTemplate(
+ device_type=device_types[2], name='Module Bay 3', description='foobar3', module_type=module_types[1]
+ ),
+ )
+ )
def test_name(self):
params = {'name': ['Module Bay 1', 'Module Bay 2']}
@@ -1996,9 +2084,15 @@ class InventoryItemTemplateTestCase(TestCase, DeviceComponentTemplateFilterSetTe
item.save()
child_inventory_item_templates = (
- InventoryItemTemplate(device_type=device_types[0], name='Inventory Item 1A', parent=inventory_item_templates[0]),
- InventoryItemTemplate(device_type=device_types[1], name='Inventory Item 2A', parent=inventory_item_templates[1]),
- InventoryItemTemplate(device_type=device_types[2], name='Inventory Item 3A', parent=inventory_item_templates[2]),
+ InventoryItemTemplate(
+ device_type=device_types[0], name='Inventory Item 1A', parent=inventory_item_templates[0]
+ ),
+ InventoryItemTemplate(
+ device_type=device_types[1], name='Inventory Item 2A', parent=inventory_item_templates[1]
+ ),
+ InventoryItemTemplate(
+ device_type=device_types[2], name='Inventory Item 3A', parent=inventory_item_templates[2]
+ ),
)
for item in child_inventory_item_templates:
item.save()
@@ -2323,10 +2417,17 @@ class DeviceTestCase(TestCase, ChangeLoggedFilterSetTests):
PowerOutlet(device=devices[1], name='Power Outlet 2'),
))
interfaces = (
- Interface(device=devices[0], name='Interface 1', mac_address='00-00-00-00-00-01'),
- Interface(device=devices[1], name='Interface 2', mac_address='00-00-00-00-00-02'),
+ Interface(device=devices[0], name='Interface 1'),
+ Interface(device=devices[1], name='Interface 2'),
)
Interface.objects.bulk_create(interfaces)
+ mac_addresses = (
+ MACAddress(mac_address='00-00-00-00-00-01'),
+ MACAddress(mac_address='00-00-00-00-00-02'),
+ )
+ MACAddress.objects.bulk_create(mac_addresses)
+ interfaces[0].mac_addresses.set([mac_addresses[0]])
+ interfaces[1].mac_addresses.set([mac_addresses[1]])
rear_ports = (
RearPort(device=devices[0], name='Rear Port 1', type=PortTypeChoices.TYPE_8P8C),
RearPort(device=devices[1], name='Rear Port 2', type=PortTypeChoices.TYPE_8P8C),
@@ -2841,10 +2942,41 @@ class ConsolePortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedF
Rack.objects.bulk_create(racks)
devices = (
- Device(name='Device 1', device_type=device_types[0], role=roles[0], site=sites[0], location=locations[0], rack=racks[0], status='active'),
- Device(name='Device 2', device_type=device_types[1], role=roles[1], site=sites[1], location=locations[1], rack=racks[1], status='planned'),
- Device(name='Device 3', device_type=device_types[2], role=roles[2], site=sites[2], location=locations[2], rack=racks[2], status='offline'),
- Device(name=None, device_type=device_types[0], role=roles[0], site=sites[3], status='offline'), # For cable connections
+ Device(
+ name='Device 1',
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[0],
+ location=locations[0],
+ rack=racks[0],
+ status='active',
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_types[1],
+ role=roles[1],
+ site=sites[1],
+ location=locations[1],
+ rack=racks[1],
+ status='planned',
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[2],
+ location=locations[2],
+ rack=racks[2],
+ status='offline',
+ ),
+ # For cable connections
+ Device(
+ name=None,
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[3],
+ status='offline'
+ ),
)
Device.objects.bulk_create(devices)
@@ -3022,10 +3154,41 @@ class ConsoleServerPortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeL
Rack.objects.bulk_create(racks)
devices = (
- Device(name='Device 1', device_type=device_types[0], role=roles[0], site=sites[0], location=locations[0], rack=racks[0], status='active'),
- Device(name='Device 2', device_type=device_types[1], role=roles[1], site=sites[1], location=locations[1], rack=racks[1], status='planned'),
- Device(name='Device 3', device_type=device_types[2], role=roles[2], site=sites[2], location=locations[2], rack=racks[2], status='offline'),
- Device(name=None, device_type=device_types[2], role=roles[2], site=sites[3], status='offline'), # For cable connections
+ Device(
+ name='Device 1',
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[0],
+ location=locations[0],
+ rack=racks[0],
+ status='active',
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_types[1],
+ role=roles[1],
+ site=sites[1],
+ location=locations[1],
+ rack=racks[1],
+ status='planned',
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[2],
+ location=locations[2],
+ rack=racks[2],
+ status='offline',
+ ),
+ # For cable connections
+ Device(
+ name=None,
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[3],
+ status='offline'
+ ),
)
Device.objects.bulk_create(devices)
@@ -3051,9 +3214,15 @@ class ConsoleServerPortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeL
ConsolePort.objects.bulk_create(console_ports)
console_server_ports = (
- ConsoleServerPort(device=devices[0], module=modules[0], name='Console Server Port 1', label='A', description='First'),
- ConsoleServerPort(device=devices[1], module=modules[1], name='Console Server Port 2', label='B', description='Second'),
- ConsoleServerPort(device=devices[2], module=modules[2], name='Console Server Port 3', label='C', description='Third'),
+ ConsoleServerPort(
+ device=devices[0], module=modules[0], name='Console Server Port 1', label='A', description='First'
+ ),
+ ConsoleServerPort(
+ device=devices[1], module=modules[1], name='Console Server Port 2', label='B', description='Second'
+ ),
+ ConsoleServerPort(
+ device=devices[2], module=modules[2], name='Console Server Port 3', label='C', description='Third'
+ ),
)
ConsoleServerPort.objects.bulk_create(console_server_ports)
@@ -3203,10 +3372,41 @@ class PowerPortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
Rack.objects.bulk_create(racks)
devices = (
- Device(name='Device 1', device_type=device_types[0], role=roles[0], site=sites[0], location=locations[0], rack=racks[0], status='active'),
- Device(name='Device 2', device_type=device_types[1], role=roles[1], site=sites[1], location=locations[1], rack=racks[1], status='planned'),
- Device(name='Device 3', device_type=device_types[2], role=roles[2], site=sites[2], location=locations[2], rack=racks[2], status='offline'),
- Device(name=None, device_type=device_types[2], role=roles[2], site=sites[3], status='offline'), # For cable connections
+ Device(
+ name='Device 1',
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[0],
+ location=locations[0],
+ rack=racks[0],
+ status='active',
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_types[1],
+ role=roles[1],
+ site=sites[1],
+ location=locations[1],
+ rack=racks[1],
+ status='planned',
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[2],
+ location=locations[2],
+ rack=racks[2],
+ status='offline',
+ ),
+ # For cable connections
+ Device(
+ name=None,
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[3],
+ status='offline'
+ ),
)
Device.objects.bulk_create(devices)
@@ -3232,9 +3432,33 @@ class PowerPortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
PowerOutlet.objects.bulk_create(power_outlets)
power_ports = (
- PowerPort(device=devices[0], module=modules[0], name='Power Port 1', label='A', maximum_draw=100, allocated_draw=50, description='First'),
- PowerPort(device=devices[1], module=modules[1], name='Power Port 2', label='B', maximum_draw=200, allocated_draw=100, description='Second'),
- PowerPort(device=devices[2], module=modules[2], name='Power Port 3', label='C', maximum_draw=300, allocated_draw=150, description='Third'),
+ PowerPort(
+ device=devices[0],
+ module=modules[0],
+ name='Power Port 1',
+ label='A',
+ maximum_draw=100,
+ allocated_draw=50,
+ description='First',
+ ),
+ PowerPort(
+ device=devices[1],
+ module=modules[1],
+ name='Power Port 2',
+ label='B',
+ maximum_draw=200,
+ allocated_draw=100,
+ description='Second',
+ ),
+ PowerPort(
+ device=devices[2],
+ module=modules[2],
+ name='Power Port 3',
+ label='C',
+ maximum_draw=300,
+ allocated_draw=150,
+ description='Third',
+ ),
)
PowerPort.objects.bulk_create(power_ports)
@@ -3392,10 +3616,41 @@ class PowerOutletTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedF
Rack.objects.bulk_create(racks)
devices = (
- Device(name='Device 1', device_type=device_types[0], role=roles[0], site=sites[0], location=locations[0], rack=racks[0], status='active'),
- Device(name='Device 2', device_type=device_types[1], role=roles[1], site=sites[1], location=locations[1], rack=racks[1], status='planned'),
- Device(name='Device 3', device_type=device_types[2], role=roles[2], site=sites[2], location=locations[2], rack=racks[2], status='offline'),
- Device(name=None, device_type=device_types[2], role=roles[2], site=sites[3], status='offline'), # For cable connections
+ Device(
+ name='Device 1',
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[0],
+ location=locations[0],
+ rack=racks[0],
+ status='active',
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_types[1],
+ role=roles[1],
+ site=sites[1],
+ location=locations[1],
+ rack=racks[1],
+ status='planned',
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[2],
+ location=locations[2],
+ rack=racks[2],
+ status='offline',
+ ),
+ # For cable connections
+ Device(
+ name=None,
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[3],
+ status='offline'
+ ),
)
Device.objects.bulk_create(devices)
@@ -3421,9 +3676,33 @@ class PowerOutletTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedF
PowerPort.objects.bulk_create(power_ports)
power_outlets = (
- PowerOutlet(device=devices[0], module=modules[0], name='Power Outlet 1', label='A', feed_leg=PowerOutletFeedLegChoices.FEED_LEG_A, description='First'),
- PowerOutlet(device=devices[1], module=modules[1], name='Power Outlet 2', label='B', feed_leg=PowerOutletFeedLegChoices.FEED_LEG_B, description='Second'),
- PowerOutlet(device=devices[2], module=modules[2], name='Power Outlet 3', label='C', feed_leg=PowerOutletFeedLegChoices.FEED_LEG_C, description='Third'),
+ PowerOutlet(
+ device=devices[0],
+ module=modules[0],
+ name='Power Outlet 1',
+ label='A',
+ feed_leg=PowerOutletFeedLegChoices.FEED_LEG_A,
+ description='First',
+ color='ff0000',
+ ),
+ PowerOutlet(
+ device=devices[1],
+ module=modules[1],
+ name='Power Outlet 2',
+ label='B',
+ feed_leg=PowerOutletFeedLegChoices.FEED_LEG_B,
+ description='Second',
+ color='00ff00',
+ ),
+ PowerOutlet(
+ device=devices[2],
+ module=modules[2],
+ name='Power Outlet 3',
+ label='C',
+ feed_leg=PowerOutletFeedLegChoices.FEED_LEG_C,
+ description='Third',
+ color='0000ff',
+ ),
)
PowerOutlet.objects.bulk_create(power_outlets)
@@ -3444,6 +3723,10 @@ class PowerOutletTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedF
params = {'description': ['First', 'Second']}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ def test_color(self):
+ params = {'color': ['ff0000', '00ff00']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
def test_feed_leg(self):
params = {'feed_leg': [PowerOutletFeedLegChoices.FEED_LEG_A, PowerOutletFeedLegChoices.FEED_LEG_B]}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
@@ -3517,7 +3800,7 @@ class PowerOutletTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedF
class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFilterSetTests):
queryset = Interface.objects.all()
filterset = InterfaceFilterSet
- ignore_fields = ('tagged_vlans', 'untagged_vlan', 'vdcs')
+ ignore_fields = ('tagged_vlans', 'untagged_vlan', 'qinq_svlan', 'vdcs')
@classmethod
def setUpTestData(cls):
@@ -3661,11 +3944,36 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
# Virtual Device Context Creation
vdcs = (
- VirtualDeviceContext(device=devices[4], name='VDC 1', identifier=1, status=VirtualDeviceContextStatusChoices.STATUS_ACTIVE),
- VirtualDeviceContext(device=devices[4], name='VDC 2', identifier=2, status=VirtualDeviceContextStatusChoices.STATUS_PLANNED),
+ VirtualDeviceContext(
+ device=devices[4], name='VDC 1', identifier=1, status=VirtualDeviceContextStatusChoices.STATUS_ACTIVE
+ ),
+ VirtualDeviceContext(
+ device=devices[4], name='VDC 2', identifier=2, status=VirtualDeviceContextStatusChoices.STATUS_PLANNED
+ ),
)
VirtualDeviceContext.objects.bulk_create(vdcs)
+ mac_addresses = (
+ MACAddress(mac_address='00-00-00-00-00-01'),
+ MACAddress(mac_address='00-00-00-00-00-02'),
+ MACAddress(mac_address='00-00-00-00-00-03'),
+ )
+ MACAddress.objects.bulk_create(mac_addresses)
+
+ vlans = (
+ VLAN(name='SVLAN 1', vid=1001, qinq_role=VLANQinQRoleChoices.ROLE_SERVICE),
+ VLAN(name='SVLAN 2', vid=1002, qinq_role=VLANQinQRoleChoices.ROLE_SERVICE),
+ VLAN(name='SVLAN 3', vid=1003, qinq_role=VLANQinQRoleChoices.ROLE_SERVICE),
+ )
+ VLAN.objects.bulk_create(vlans)
+
+ vlan_translation_policies = (
+ VLANTranslationPolicy(name='Policy 1'),
+ VLANTranslationPolicy(name='Policy 2'),
+ VLANTranslationPolicy(name='Policy 3'),
+ )
+ VLANTranslationPolicy.objects.bulk_create(vlan_translation_policies)
+
interfaces = (
Interface(
device=devices[0],
@@ -3677,13 +3985,13 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
mgmt_only=True,
mtu=100,
mode=InterfaceModeChoices.MODE_ACCESS,
- mac_address='00-00-00-00-00-01',
description='First',
vrf=vrfs[0],
speed=1000000,
duplex='half',
poe_mode=InterfacePoEModeChoices.MODE_PSE,
- poe_type=InterfacePoETypeChoices.TYPE_1_8023AF
+ poe_type=InterfacePoETypeChoices.TYPE_1_8023AF,
+ vlan_translation_policy=vlan_translation_policies[0],
),
Interface(
device=devices[1],
@@ -3702,13 +4010,13 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
mgmt_only=True,
mtu=200,
mode=InterfaceModeChoices.MODE_TAGGED,
- mac_address='00-00-00-00-00-02',
description='Second',
vrf=vrfs[1],
speed=1000000,
duplex='full',
poe_mode=InterfacePoEModeChoices.MODE_PD,
- poe_type=InterfacePoETypeChoices.TYPE_1_8023AF
+ poe_type=InterfacePoETypeChoices.TYPE_1_8023AF,
+ vlan_translation_policy=vlan_translation_policies[0],
),
Interface(
device=devices[3],
@@ -3720,13 +4028,13 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
mgmt_only=False,
mtu=300,
mode=InterfaceModeChoices.MODE_TAGGED_ALL,
- mac_address='00-00-00-00-00-03',
description='Third',
vrf=vrfs[2],
speed=100000,
duplex='half',
poe_mode=InterfacePoEModeChoices.MODE_PSE,
- poe_type=InterfacePoETypeChoices.TYPE_2_8023AT
+ poe_type=InterfacePoETypeChoices.TYPE_2_8023AT,
+ vlan_translation_policy=vlan_translation_policies[1],
),
Interface(
device=devices[4],
@@ -3739,7 +4047,10 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
speed=100000,
duplex='full',
poe_mode=InterfacePoEModeChoices.MODE_PD,
- poe_type=InterfacePoETypeChoices.TYPE_2_8023AT
+ poe_type=InterfacePoETypeChoices.TYPE_2_8023AT,
+ mode=InterfaceModeChoices.MODE_Q_IN_Q,
+ qinq_svlan=vlans[0],
+ vlan_translation_policy=vlan_translation_policies[1],
),
Interface(
device=devices[4],
@@ -3748,7 +4059,9 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
type=InterfaceTypeChoices.TYPE_OTHER,
enabled=True,
mgmt_only=True,
- tx_power=40
+ tx_power=40,
+ mode=InterfaceModeChoices.MODE_Q_IN_Q,
+ qinq_svlan=vlans[1]
),
Interface(
device=devices[4],
@@ -3757,7 +4070,9 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
type=InterfaceTypeChoices.TYPE_OTHER,
enabled=False,
mgmt_only=False,
- tx_power=40
+ tx_power=40,
+ mode=InterfaceModeChoices.MODE_Q_IN_Q,
+ qinq_svlan=vlans[2]
),
Interface(
device=devices[4],
@@ -3786,6 +4101,10 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
interfaces[6].vdcs.set([vdcs[0]])
interfaces[7].vdcs.set([vdcs[1]])
+ interfaces[0].mac_addresses.set([mac_addresses[0]])
+ interfaces[2].mac_addresses.set([mac_addresses[1]])
+ interfaces[3].mac_addresses.set([mac_addresses[2]])
+
# Cables
Cable(a_terminations=[interfaces[0]], b_terminations=[interfaces[5]]).save()
Cable(a_terminations=[interfaces[1]], b_terminations=[interfaces[6]]).save()
@@ -3843,9 +4162,24 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
# Create child interfaces
parent_interface = Interface.objects.first()
child_interfaces = (
- Interface(device=parent_interface.device, name='Child 1', parent=parent_interface, type=InterfaceTypeChoices.TYPE_VIRTUAL),
- Interface(device=parent_interface.device, name='Child 2', parent=parent_interface, type=InterfaceTypeChoices.TYPE_VIRTUAL),
- Interface(device=parent_interface.device, name='Child 3', parent=parent_interface, type=InterfaceTypeChoices.TYPE_VIRTUAL),
+ Interface(
+ device=parent_interface.device,
+ name='Child 1',
+ parent=parent_interface,
+ type=InterfaceTypeChoices.TYPE_VIRTUAL,
+ ),
+ Interface(
+ device=parent_interface.device,
+ name='Child 2',
+ parent=parent_interface,
+ type=InterfaceTypeChoices.TYPE_VIRTUAL,
+ ),
+ Interface(
+ device=parent_interface.device,
+ name='Child 3',
+ parent=parent_interface,
+ type=InterfaceTypeChoices.TYPE_VIRTUAL,
+ ),
)
Interface.objects.bulk_create(child_interfaces)
@@ -3856,9 +4190,24 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
# Create bridged interfaces
bridge_interface = Interface.objects.first()
bridged_interfaces = (
- Interface(device=bridge_interface.device, name='Bridged 1', bridge=bridge_interface, type=InterfaceTypeChoices.TYPE_1GE_FIXED),
- Interface(device=bridge_interface.device, name='Bridged 2', bridge=bridge_interface, type=InterfaceTypeChoices.TYPE_1GE_FIXED),
- Interface(device=bridge_interface.device, name='Bridged 3', bridge=bridge_interface, type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ Interface(
+ device=bridge_interface.device,
+ name='Bridged 1',
+ bridge=bridge_interface,
+ type=InterfaceTypeChoices.TYPE_1GE_FIXED,
+ ),
+ Interface(
+ device=bridge_interface.device,
+ name='Bridged 2',
+ bridge=bridge_interface,
+ type=InterfaceTypeChoices.TYPE_1GE_FIXED,
+ ),
+ Interface(
+ device=bridge_interface.device,
+ name='Bridged 3',
+ bridge=bridge_interface,
+ type=InterfaceTypeChoices.TYPE_1GE_FIXED,
+ ),
)
Interface.objects.bulk_create(bridged_interfaces)
@@ -4013,6 +4362,20 @@ class InterfaceTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
params = {'vdc_identifier': vdc.values_list('identifier', flat=True)}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 3)
+ def test_vlan(self):
+ vlan = VLAN.objects.filter(qinq_role=VLANQinQRoleChoices.ROLE_SERVICE).first()
+ params = {'vlan_id': vlan.pk}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+ params = {'vlan': vlan.vid}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+
+ def test_vlan_translation_policy(self):
+ vlan_translation_policies = VLANTranslationPolicy.objects.all()[:2]
+ params = {'vlan_translation_policy_id': [vlan_translation_policies[0].pk, vlan_translation_policies[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
+ params = {'vlan_translation_policy': [vlan_translation_policies[0].name, vlan_translation_policies[1].name]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 4)
+
class FrontPortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFilterSetTests):
queryset = FrontPort.objects.all()
@@ -4077,10 +4440,41 @@ class FrontPortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
Rack.objects.bulk_create(racks)
devices = (
- Device(name='Device 1', device_type=device_types[0], role=roles[0], site=sites[0], location=locations[0], rack=racks[0], status='active'),
- Device(name='Device 2', device_type=device_types[1], role=roles[1], site=sites[1], location=locations[1], rack=racks[1], status='planned'),
- Device(name='Device 3', device_type=device_types[2], role=roles[2], site=sites[2], location=locations[2], rack=racks[2], status='offline'),
- Device(name=None, device_type=device_types[2], role=roles[2], site=sites[3], status='offline'), # For cable connections
+ Device(
+ name='Device 1',
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[0],
+ location=locations[0],
+ rack=racks[0],
+ status='active',
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_types[1],
+ role=roles[1],
+ site=sites[1],
+ location=locations[1],
+ rack=racks[1],
+ status='planned',
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[2],
+ location=locations[2],
+ rack=racks[2],
+ status='offline',
+ ),
+ # For cable connections
+ Device(
+ name=None,
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[3],
+ status='offline'
+ ),
)
Device.objects.bulk_create(devices)
@@ -4110,12 +4504,63 @@ class FrontPortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
RearPort.objects.bulk_create(rear_ports)
front_ports = (
- FrontPort(device=devices[0], module=modules[0], name='Front Port 1', label='A', type=PortTypeChoices.TYPE_8P8C, color=ColorChoices.COLOR_RED, rear_port=rear_ports[0], rear_port_position=1, description='First'),
- FrontPort(device=devices[1], module=modules[1], name='Front Port 2', label='B', type=PortTypeChoices.TYPE_110_PUNCH, color=ColorChoices.COLOR_GREEN, rear_port=rear_ports[1], rear_port_position=2, description='Second'),
- FrontPort(device=devices[2], module=modules[2], name='Front Port 3', label='C', type=PortTypeChoices.TYPE_BNC, color=ColorChoices.COLOR_BLUE, rear_port=rear_ports[2], rear_port_position=3, description='Third'),
- FrontPort(device=devices[3], name='Front Port 4', label='D', type=PortTypeChoices.TYPE_FC, rear_port=rear_ports[3], rear_port_position=1),
- FrontPort(device=devices[3], name='Front Port 5', label='E', type=PortTypeChoices.TYPE_FC, rear_port=rear_ports[4], rear_port_position=1),
- FrontPort(device=devices[3], name='Front Port 6', label='F', type=PortTypeChoices.TYPE_FC, rear_port=rear_ports[5], rear_port_position=1),
+ FrontPort(
+ device=devices[0],
+ module=modules[0],
+ name='Front Port 1',
+ label='A',
+ type=PortTypeChoices.TYPE_8P8C,
+ color=ColorChoices.COLOR_RED,
+ rear_port=rear_ports[0],
+ rear_port_position=1,
+ description='First',
+ ),
+ FrontPort(
+ device=devices[1],
+ module=modules[1],
+ name='Front Port 2',
+ label='B',
+ type=PortTypeChoices.TYPE_110_PUNCH,
+ color=ColorChoices.COLOR_GREEN,
+ rear_port=rear_ports[1],
+ rear_port_position=2,
+ description='Second',
+ ),
+ FrontPort(
+ device=devices[2],
+ module=modules[2],
+ name='Front Port 3',
+ label='C',
+ type=PortTypeChoices.TYPE_BNC,
+ color=ColorChoices.COLOR_BLUE,
+ rear_port=rear_ports[2],
+ rear_port_position=3,
+ description='Third',
+ ),
+ FrontPort(
+ device=devices[3],
+ name='Front Port 4',
+ label='D',
+ type=PortTypeChoices.TYPE_FC,
+ rear_port=rear_ports[3],
+ rear_port_position=1,
+ ),
+ FrontPort(
+ device=devices[3],
+ name='Front Port 5',
+ label='E',
+ type=PortTypeChoices.TYPE_FC,
+ rear_port=rear_ports[4],
+ rear_port_position=1,
+ ),
+ FrontPort(
+ device=devices[3],
+ name='Front Port 6',
+ label='F',
+ type=PortTypeChoices.TYPE_FC,
+ rear_port=rear_ports[5],
+ rear_port_position=1,
+ ),
)
FrontPort.objects.bulk_create(front_ports)
@@ -4267,10 +4712,41 @@ class RearPortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFilt
Rack.objects.bulk_create(racks)
devices = (
- Device(name='Device 1', device_type=device_types[0], role=roles[0], site=sites[0], location=locations[0], rack=racks[0], status='active'),
- Device(name='Device 2', device_type=device_types[1], role=roles[1], site=sites[1], location=locations[1], rack=racks[1], status='planned'),
- Device(name='Device 3', device_type=device_types[2], role=roles[2], site=sites[2], location=locations[2], rack=racks[2], status='offline'),
- Device(name=None, device_type=device_types[2], role=roles[2], site=sites[3], status='offline'), # For cable connections
+ Device(
+ name='Device 1',
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[0],
+ location=locations[0],
+ rack=racks[0],
+ status='active',
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_types[1],
+ role=roles[1],
+ site=sites[1],
+ location=locations[1],
+ rack=racks[1],
+ status='planned',
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[2],
+ location=locations[2],
+ rack=racks[2],
+ status='offline',
+ ),
+ # For cable connections
+ Device(
+ name=None,
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[3],
+ status='offline'
+ ),
)
Device.objects.bulk_create(devices)
@@ -4290,9 +4766,36 @@ class RearPortTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFilt
Module.objects.bulk_create(modules)
rear_ports = (
- RearPort(device=devices[0], module=modules[0], name='Rear Port 1', label='A', type=PortTypeChoices.TYPE_8P8C, color=ColorChoices.COLOR_RED, positions=1, description='First'),
- RearPort(device=devices[1], module=modules[1], name='Rear Port 2', label='B', type=PortTypeChoices.TYPE_110_PUNCH, color=ColorChoices.COLOR_GREEN, positions=2, description='Second'),
- RearPort(device=devices[2], module=modules[2], name='Rear Port 3', label='C', type=PortTypeChoices.TYPE_BNC, color=ColorChoices.COLOR_BLUE, positions=3, description='Third'),
+ RearPort(
+ device=devices[0],
+ module=modules[0],
+ name='Rear Port 1',
+ label='A',
+ type=PortTypeChoices.TYPE_8P8C,
+ color=ColorChoices.COLOR_RED,
+ positions=1,
+ description='First',
+ ),
+ RearPort(
+ device=devices[1],
+ module=modules[1],
+ name='Rear Port 2',
+ label='B',
+ type=PortTypeChoices.TYPE_110_PUNCH,
+ color=ColorChoices.COLOR_GREEN,
+ positions=2,
+ description='Second',
+ ),
+ RearPort(
+ device=devices[2],
+ module=modules[2],
+ name='Rear Port 3',
+ label='C',
+ type=PortTypeChoices.TYPE_BNC,
+ color=ColorChoices.COLOR_BLUE,
+ positions=3,
+ description='Third',
+ ),
RearPort(device=devices[3], name='Rear Port 4', label='D', type=PortTypeChoices.TYPE_FC, positions=4),
RearPort(device=devices[3], name='Rear Port 5', label='E', type=PortTypeChoices.TYPE_FC, positions=5),
RearPort(device=devices[3], name='Rear Port 6', label='F', type=PortTypeChoices.TYPE_FC, positions=6),
@@ -4449,9 +4952,33 @@ class ModuleBayTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
Rack.objects.bulk_create(racks)
devices = (
- Device(name='Device 1', device_type=device_types[0], role=roles[0], site=sites[0], location=locations[0], rack=racks[0], status='active'),
- Device(name='Device 2', device_type=device_types[1], role=roles[1], site=sites[1], location=locations[1], rack=racks[1], status='planned'),
- Device(name='Device 3', device_type=device_types[2], role=roles[2], site=sites[2], location=locations[2], rack=racks[2], status='offline'),
+ Device(
+ name='Device 1',
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[0],
+ location=locations[0],
+ rack=racks[0],
+ status='active',
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_types[1],
+ role=roles[1],
+ site=sites[1],
+ location=locations[1],
+ rack=racks[1],
+ status='planned',
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[2],
+ location=locations[2],
+ rack=racks[2],
+ status='offline',
+ ),
)
Device.objects.bulk_create(devices)
@@ -4597,9 +5124,33 @@ class DeviceBayTestCase(TestCase, DeviceComponentFilterSetTests, ChangeLoggedFil
Rack.objects.bulk_create(racks)
devices = (
- Device(name='Device 1', device_type=device_types[0], role=roles[0], site=sites[0], location=locations[0], rack=racks[0], status='active'),
- Device(name='Device 2', device_type=device_types[1], role=roles[1], site=sites[1], location=locations[1], rack=racks[1], status='planned'),
- Device(name='Device 3', device_type=device_types[2], role=roles[2], site=sites[2], location=locations[2], rack=racks[2], status='offline'),
+ Device(
+ name='Device 1',
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[0],
+ location=locations[0],
+ rack=racks[0],
+ status='active',
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_types[1],
+ role=roles[1],
+ site=sites[1],
+ location=locations[1],
+ rack=racks[1],
+ status='planned',
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[2],
+ location=locations[2],
+ rack=racks[2],
+ status='offline',
+ ),
)
Device.objects.bulk_create(devices)
@@ -4731,9 +5282,30 @@ class InventoryItemTestCase(TestCase, ChangeLoggedFilterSetTests):
Rack.objects.bulk_create(racks)
devices = (
- Device(name='Device 1', device_type=device_types[0], role=roles[0], site=sites[0], location=locations[0], rack=racks[0]),
- Device(name='Device 2', device_type=device_types[1], role=roles[1], site=sites[1], location=locations[1], rack=racks[1]),
- Device(name='Device 3', device_type=device_types[2], role=roles[2], site=sites[2], location=locations[2], rack=racks[2]),
+ Device(
+ name='Device 1',
+ device_type=device_types[0],
+ role=roles[0],
+ site=sites[0],
+ location=locations[0],
+ rack=racks[0],
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_types[1],
+ role=roles[1],
+ site=sites[1],
+ location=locations[1],
+ rack=racks[1],
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_types[2],
+ role=roles[2],
+ site=sites[2],
+ location=locations[2],
+ rack=racks[2],
+ ),
)
Device.objects.bulk_create(devices)
@@ -4751,9 +5323,48 @@ class InventoryItemTestCase(TestCase, ChangeLoggedFilterSetTests):
)
inventory_items = (
- InventoryItem(device=devices[0], role=roles[0], manufacturer=manufacturers[0], name='Inventory Item 1', label='A', part_id='1001', serial='ABC', asset_tag='1001', discovered=True, description='First', component=components[0]),
- InventoryItem(device=devices[1], role=roles[1], manufacturer=manufacturers[1], name='Inventory Item 2', label='B', part_id='1002', serial='DEF', asset_tag='1002', discovered=True, description='Second', component=components[1]),
- InventoryItem(device=devices[2], role=roles[2], manufacturer=manufacturers[2], name='Inventory Item 3', label='C', part_id='1003', serial='GHI', asset_tag='1003', discovered=False, description='Third', component=components[2]),
+ InventoryItem(
+ device=devices[0],
+ role=roles[0],
+ manufacturer=manufacturers[0],
+ name='Inventory Item 1',
+ label='A',
+ part_id='1001',
+ serial='ABC',
+ asset_tag='1001',
+ discovered=True,
+ status=ModuleStatusChoices.STATUS_ACTIVE,
+ description='First',
+ component=components[0],
+ ),
+ InventoryItem(
+ device=devices[1],
+ role=roles[1],
+ manufacturer=manufacturers[1],
+ name='Inventory Item 2',
+ label='B',
+ part_id='1002',
+ serial='DEF',
+ asset_tag='1002',
+ discovered=True,
+ status=ModuleStatusChoices.STATUS_PLANNED,
+ description='Second',
+ component=components[1],
+ ),
+ InventoryItem(
+ device=devices[2],
+ role=roles[2],
+ manufacturer=manufacturers[2],
+ name='Inventory Item 3',
+ label='C',
+ part_id='1003',
+ serial='GHI',
+ asset_tag='1003',
+ discovered=False,
+ status=ModuleStatusChoices.STATUS_FAILED,
+ description='Third',
+ component=components[2],
+ ),
)
for i in inventory_items:
i.save()
@@ -4874,6 +5485,10 @@ class InventoryItemTestCase(TestCase, ChangeLoggedFilterSetTests):
params = {'component_type': 'dcim.interface'}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+ def test_status(self):
+ params = {'status': [InventoryItemStatusChoices.STATUS_PLANNED, InventoryItemStatusChoices.STATUS_FAILED]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
class InventoryItemRoleTestCase(TestCase, ChangeLoggedFilterSetTests):
queryset = InventoryItemRole.objects.all()
@@ -5066,12 +5681,60 @@ class CableTestCase(TestCase, ChangeLoggedFilterSetTests):
role = DeviceRole.objects.create(name='Device Role 1', slug='device-role-1')
devices = (
- Device(name='Device 1', device_type=device_type, role=role, site=sites[0], rack=racks[0], location=locations[0], position=1),
- Device(name='Device 2', device_type=device_type, role=role, site=sites[0], rack=racks[0], location=locations[0], position=2),
- Device(name='Device 3', device_type=device_type, role=role, site=sites[1], rack=racks[1], location=locations[1], position=1),
- Device(name='Device 4', device_type=device_type, role=role, site=sites[1], rack=racks[1], location=locations[1], position=2),
- Device(name='Device 5', device_type=device_type, role=role, site=sites[2], rack=racks[2], location=locations[2], position=1),
- Device(name='Device 6', device_type=device_type, role=role, site=sites[2], rack=racks[2], location=locations[2], position=2),
+ Device(
+ name='Device 1',
+ device_type=device_type,
+ role=role,
+ site=sites[0],
+ rack=racks[0],
+ location=locations[0],
+ position=1,
+ ),
+ Device(
+ name='Device 2',
+ device_type=device_type,
+ role=role,
+ site=sites[0],
+ rack=racks[0],
+ location=locations[0],
+ position=2,
+ ),
+ Device(
+ name='Device 3',
+ device_type=device_type,
+ role=role,
+ site=sites[1],
+ rack=racks[1],
+ location=locations[1],
+ position=1,
+ ),
+ Device(
+ name='Device 4',
+ device_type=device_type,
+ role=role,
+ site=sites[1],
+ rack=racks[1],
+ location=locations[1],
+ position=2,
+ ),
+ Device(
+ name='Device 5',
+ device_type=device_type,
+ role=role,
+ site=sites[2],
+ rack=racks[2],
+ location=locations[2],
+ position=1,
+ ),
+ Device(
+ name='Device 6',
+ device_type=device_type,
+ role=role,
+ site=sites[2],
+ rack=racks[2],
+ location=locations[2],
+ position=2,
+ ),
)
Device.objects.bulk_create(devices)
@@ -5110,7 +5773,7 @@ class CableTestCase(TestCase, ChangeLoggedFilterSetTests):
provider = Provider.objects.create(name='Provider 1', slug='provider-1')
circuit_type = CircuitType.objects.create(name='Circuit Type 1', slug='circuit-type-1')
circuit = Circuit.objects.create(cid='Circuit 1', provider=provider, type=circuit_type)
- circuit_termination = CircuitTermination.objects.create(circuit=circuit, term_side='A', site=sites[0])
+ circuit_termination = CircuitTermination.objects.create(circuit=circuit, term_side='A', termination=sites[0])
# Cables
cables = (
@@ -5283,9 +5946,9 @@ class CableTestCase(TestCase, ChangeLoggedFilterSetTests):
def test_site(self):
site = Site.objects.all()[:2]
params = {'site_id': [site[0].pk, site[1].pk]}
- self.assertEqual(self.filterset(params, self.queryset).qs.count(), 12)
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 11)
params = {'site': [site[0].slug, site[1].slug]}
- self.assertEqual(self.filterset(params, self.queryset).qs.count(), 12)
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 11)
def test_tenant(self):
tenant = Tenant.objects.all()[:2]
@@ -5796,3 +6459,80 @@ class VirtualDeviceContextTestCase(TestCase, ChangeLoggedFilterSetTests):
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
params = {'primary_ip6_id': [addresses[2].pk]}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 0)
+
+
+class MACAddressTestCase(TestCase, ChangeLoggedFilterSetTests):
+ queryset = MACAddress.objects.all()
+ filterset = MACAddressFilterSet
+
+ @classmethod
+ def setUpTestData(cls):
+ devices = (
+ create_test_device('Device 1'),
+ create_test_device('Device 2'),
+ create_test_device('Device 3'),
+ )
+ interfaces = (
+ Interface(device=devices[0], name='Interface 1', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ Interface(device=devices[1], name='Interface 2', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ Interface(device=devices[2], name='Interface 3', type=InterfaceTypeChoices.TYPE_1GE_FIXED),
+ )
+ Interface.objects.bulk_create(interfaces)
+
+ virtual_machines = (
+ create_test_virtualmachine('Virtual Machine 1'),
+ create_test_virtualmachine('Virtual Machine 2'),
+ create_test_virtualmachine('Virtual Machine 3'),
+ )
+ vm_interfaces = (
+ VMInterface(virtual_machine=virtual_machines[0], name='Interface 1'),
+ VMInterface(virtual_machine=virtual_machines[1], name='Interface 2'),
+ VMInterface(virtual_machine=virtual_machines[2], name='Interface 3'),
+ )
+ VMInterface.objects.bulk_create(vm_interfaces)
+
+ mac_addresses = (
+ # Device MACs
+ MACAddress(mac_address='00-00-00-01-01-01', assigned_object=interfaces[0]),
+ MACAddress(mac_address='00-00-00-02-01-01', assigned_object=interfaces[1]),
+ MACAddress(mac_address='00-00-00-03-01-01', assigned_object=interfaces[2]),
+ MACAddress(mac_address='00-00-00-03-01-02', assigned_object=interfaces[2]),
+ # VM MACs
+ MACAddress(mac_address='00-00-00-04-01-01', assigned_object=vm_interfaces[0]),
+ MACAddress(mac_address='00-00-00-05-01-01', assigned_object=vm_interfaces[1]),
+ MACAddress(mac_address='00-00-00-06-01-01', assigned_object=vm_interfaces[2]),
+ MACAddress(mac_address='00-00-00-06-01-02', assigned_object=vm_interfaces[2]),
+ )
+ MACAddress.objects.bulk_create(mac_addresses)
+
+ def test_mac_address(self):
+ params = {'mac_address': ['00-00-00-01-01-01', '00-00-00-02-01-01']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_device(self):
+ devices = Device.objects.all()[:2]
+ params = {'device_id': [devices[0].pk, devices[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'device': [devices[0].name, devices[1].name]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_virtual_machine(self):
+ virtual_machines = VirtualMachine.objects.all()[:2]
+ params = {'virtual_machine_id': [virtual_machines[0].pk, virtual_machines[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'virtual_machine': [virtual_machines[0].name, virtual_machines[1].name]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_interface(self):
+ interfaces = Interface.objects.all()[:2]
+ params = {'interface_id': [interfaces[0].pk, interfaces[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'interface': [interfaces[0].name, interfaces[1].name]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_vminterface(self):
+ vm_interfaces = VMInterface.objects.all()[:2]
+ params = {'vminterface_id': [vm_interfaces[0].pk, vm_interfaces[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'vminterface': [vm_interfaces[0].name, vm_interfaces[1].name]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
diff --git a/netbox/dcim/tests/test_models.py b/netbox/dcim/tests/test_models.py
index 70431c2e1..ff1eddd56 100644
--- a/netbox/dcim/tests/test_models.py
+++ b/netbox/dcim/tests/test_models.py
@@ -6,6 +6,7 @@ from core.models import ObjectType
from dcim.choices import *
from dcim.models import *
from extras.models import CustomField
+from netbox.choices import WeightUnitChoices
from tenancy.models import Tenant
from utilities.data import drange
from virtualization.models import Cluster, ClusterType
@@ -600,24 +601,42 @@ class DeviceTestCase(TestCase):
Site.objects.bulk_create(sites)
clusters = (
- Cluster(name='Cluster 1', type=cluster_type, site=sites[0]),
- Cluster(name='Cluster 2', type=cluster_type, site=sites[1]),
- Cluster(name='Cluster 3', type=cluster_type, site=None),
+ Cluster(name='Cluster 1', type=cluster_type, scope=sites[0]),
+ Cluster(name='Cluster 2', type=cluster_type, scope=sites[1]),
+ Cluster(name='Cluster 3', type=cluster_type, scope=None),
)
- Cluster.objects.bulk_create(clusters)
+ for cluster in clusters:
+ cluster.save()
device_type = DeviceType.objects.first()
device_role = DeviceRole.objects.first()
# Device with site only should pass
- Device(name='device1', site=sites[0], device_type=device_type, role=device_role).full_clean()
+ Device(
+ name='device1',
+ site=sites[0],
+ device_type=device_type,
+ role=device_role
+ ).full_clean()
# Device with site, cluster non-site should pass
- Device(name='device1', site=sites[0], device_type=device_type, role=device_role, cluster=clusters[2]).full_clean()
+ Device(
+ name='device1',
+ site=sites[0],
+ device_type=device_type,
+ role=device_role,
+ cluster=clusters[2]
+ ).full_clean()
# Device with mismatched site & cluster should fail
with self.assertRaises(ValidationError):
- Device(name='device1', site=sites[0], device_type=device_type, role=device_role, cluster=clusters[1]).full_clean()
+ Device(
+ name='device1',
+ site=sites[0],
+ device_type=device_type,
+ role=device_role,
+ cluster=clusters[1]
+ ).full_clean()
class ModuleBayTestCase(TestCase):
@@ -634,7 +653,9 @@ class ModuleBayTestCase(TestCase):
# Create a CustomField with a default value & assign it to all component models
location = Location.objects.create(name='Location 1', slug='location-1', site=site)
rack = Rack.objects.create(name='Rack 1', site=site)
- device = Device.objects.create(name='Device 1', device_type=device_type, role=device_role, site=site, location=location, rack=rack)
+ device = Device.objects.create(
+ name='Device 1', device_type=device_type, role=device_role, site=site, location=location, rack=rack
+ )
module_bays = (
ModuleBay(device=device, name='Module Bay 1', label='A', description='First'),
@@ -761,9 +782,9 @@ class CableTestCase(TestCase):
circuittype = CircuitType.objects.create(name='Circuit Type 1', slug='circuit-type-1')
circuit1 = Circuit.objects.create(provider=provider, type=circuittype, cid='1')
circuit2 = Circuit.objects.create(provider=provider, type=circuittype, cid='2')
- CircuitTermination.objects.create(circuit=circuit1, site=site, term_side='A')
- CircuitTermination.objects.create(circuit=circuit1, site=site, term_side='Z')
- CircuitTermination.objects.create(circuit=circuit2, provider_network=provider_network, term_side='A')
+ CircuitTermination.objects.create(circuit=circuit1, termination=site, term_side='A')
+ CircuitTermination.objects.create(circuit=circuit1, termination=site, term_side='Z')
+ CircuitTermination.objects.create(circuit=circuit2, termination=provider_network, term_side='A')
def test_cable_creation(self):
"""
diff --git a/netbox/dcim/tests/test_views.py b/netbox/dcim/tests/test_views.py
index e290a6d1d..b84217882 100644
--- a/netbox/dcim/tests/test_views.py
+++ b/netbox/dcim/tests/test_views.py
@@ -10,7 +10,7 @@ from dcim.choices import *
from dcim.constants import *
from dcim.models import *
from ipam.models import ASN, RIR, VLAN, VRF
-from netbox.choices import CSVDelimiterChoices, ImportFormatChoices
+from netbox.choices import CSVDelimiterChoices, ImportFormatChoices, WeightUnitChoices
from tenancy.models import Tenant
from users.models import User
from utilities.testing import ViewTestCases, create_tags, create_test_device, post_data
@@ -196,9 +196,27 @@ class LocationTestCase(ViewTestCases.OrganizationalObjectViewTestCase):
tenant = Tenant.objects.create(name='Tenant 1', slug='tenant-1')
locations = (
- Location(name='Location 1', slug='location-1', site=site, status=LocationStatusChoices.STATUS_ACTIVE, tenant=tenant),
- Location(name='Location 2', slug='location-2', site=site, status=LocationStatusChoices.STATUS_ACTIVE, tenant=tenant),
- Location(name='Location 3', slug='location-3', site=site, status=LocationStatusChoices.STATUS_ACTIVE, tenant=tenant),
+ Location(
+ name='Location 1',
+ slug='location-1',
+ site=site,
+ status=LocationStatusChoices.STATUS_ACTIVE,
+ tenant=tenant,
+ ),
+ Location(
+ name='Location 2',
+ slug='location-2',
+ site=site,
+ status=LocationStatusChoices.STATUS_ACTIVE,
+ tenant=tenant,
+ ),
+ Location(
+ name='Location 3',
+ slug='location-3',
+ site=site,
+ status=LocationStatusChoices.STATUS_ACTIVE,
+ tenant=tenant,
+ ),
)
for location in locations:
location.save()
@@ -346,9 +364,24 @@ class RackTypeTestCase(ViewTestCases.PrimaryObjectViewTestCase):
Manufacturer.objects.bulk_create(manufacturers)
rack_types = (
- RackType(manufacturer=manufacturers[0], model='RackType 1', slug='rack-type-1', form_factor=RackFormFactorChoices.TYPE_CABINET,),
- RackType(manufacturer=manufacturers[0], model='RackType 2', slug='rack-type-2', form_factor=RackFormFactorChoices.TYPE_CABINET,),
- RackType(manufacturer=manufacturers[0], model='RackType 3', slug='rack-type-3', form_factor=RackFormFactorChoices.TYPE_CABINET,),
+ RackType(
+ manufacturer=manufacturers[0],
+ model='RackType 1',
+ slug='rack-type-1',
+ form_factor=RackFormFactorChoices.TYPE_CABINET,
+ ),
+ RackType(
+ manufacturer=manufacturers[0],
+ model='RackType 2',
+ slug='rack-type-2',
+ form_factor=RackFormFactorChoices.TYPE_CABINET,
+ ),
+ RackType(
+ manufacturer=manufacturers[0],
+ model='RackType 3',
+ slug='rack-type-3',
+ form_factor=RackFormFactorChoices.TYPE_CABINET,
+ ),
)
RackType.objects.bulk_create(rack_types)
@@ -592,7 +625,7 @@ class DeviceTypeTestCase(
'part_number': '123ABC',
'u_height': 2,
'is_full_depth': True,
- 'subdevice_role': '', # CharField
+ 'subdevice_role': None,
'comments': 'Some comments',
'tags': [t.pk for t in tags],
}
@@ -692,9 +725,15 @@ class DeviceTypeTestCase(
)
RearPortTemplate.objects.bulk_create(rear_ports)
front_ports = (
- FrontPortTemplate(device_type=devicetype, name='Front Port 1', rear_port=rear_ports[0], rear_port_position=1),
- FrontPortTemplate(device_type=devicetype, name='Front Port 2', rear_port=rear_ports[1], rear_port_position=1),
- FrontPortTemplate(device_type=devicetype, name='Front Port 3', rear_port=rear_ports[2], rear_port_position=1),
+ FrontPortTemplate(
+ device_type=devicetype, name='Front Port 1', rear_port=rear_ports[0], rear_port_position=1
+ ),
+ FrontPortTemplate(
+ device_type=devicetype, name='Front Port 2', rear_port=rear_ports[1], rear_port_position=1
+ ),
+ FrontPortTemplate(
+ device_type=devicetype, name='Front Port 3', rear_port=rear_ports[2], rear_port_position=1
+ ),
)
FrontPortTemplate.objects.bulk_create(front_ports)
@@ -861,7 +900,7 @@ inventory-items:
'data': IMPORT_DATA,
'format': 'yaml'
}
- response = self.client.post(reverse('dcim:devicetype_import'), data=form_data, follow=True)
+ response = self.client.post(reverse('dcim:devicetype_bulk_import'), data=form_data, follow=True)
self.assertHttpStatus(response, 200)
device_type = DeviceType.objects.get(model='TEST-1000')
@@ -1081,9 +1120,15 @@ class ModuleTypeTestCase(
)
RearPortTemplate.objects.bulk_create(rear_ports)
front_ports = (
- FrontPortTemplate(module_type=moduletype, name='Front Port 1', rear_port=rear_ports[0], rear_port_position=1),
- FrontPortTemplate(module_type=moduletype, name='Front Port 2', rear_port=rear_ports[1], rear_port_position=1),
- FrontPortTemplate(module_type=moduletype, name='Front Port 3', rear_port=rear_ports[2], rear_port_position=1),
+ FrontPortTemplate(
+ module_type=moduletype, name='Front Port 1', rear_port=rear_ports[0], rear_port_position=1
+ ),
+ FrontPortTemplate(
+ module_type=moduletype, name='Front Port 2', rear_port=rear_ports[1], rear_port_position=1
+ ),
+ FrontPortTemplate(
+ module_type=moduletype, name='Front Port 3', rear_port=rear_ports[2], rear_port_position=1
+ ),
)
FrontPortTemplate.objects.bulk_create(front_ports)
@@ -1183,7 +1228,7 @@ front-ports:
'data': IMPORT_DATA,
'format': 'yaml'
}
- response = self.client.post(reverse('dcim:moduletype_import'), data=form_data, follow=True)
+ response = self.client.post(reverse('dcim:moduletype_bulk_import'), data=form_data, follow=True)
self.assertHttpStatus(response, 200)
module_type = ModuleType.objects.get(model='TEST-1000')
@@ -1453,11 +1498,19 @@ class FrontPortTemplateTestCase(ViewTestCases.DeviceComponentTemplateViewTestCas
)
RearPortTemplate.objects.bulk_create(rearports)
- FrontPortTemplate.objects.bulk_create((
- FrontPortTemplate(device_type=devicetype, name='Front Port Template 1', rear_port=rearports[0], rear_port_position=1),
- FrontPortTemplate(device_type=devicetype, name='Front Port Template 2', rear_port=rearports[1], rear_port_position=1),
- FrontPortTemplate(device_type=devicetype, name='Front Port Template 3', rear_port=rearports[2], rear_port_position=1),
- ))
+ FrontPortTemplate.objects.bulk_create(
+ (
+ FrontPortTemplate(
+ device_type=devicetype, name='Front Port Template 1', rear_port=rearports[0], rear_port_position=1
+ ),
+ FrontPortTemplate(
+ device_type=devicetype, name='Front Port Template 2', rear_port=rearports[1], rear_port_position=1
+ ),
+ FrontPortTemplate(
+ device_type=devicetype, name='Front Port Template 3', rear_port=rearports[2], rear_port_position=1
+ ),
+ )
+ )
cls.form_data = {
'device_type': devicetype.pk,
@@ -1550,7 +1603,12 @@ class DeviceBayTemplateTestCase(ViewTestCases.DeviceComponentTemplateViewTestCas
@classmethod
def setUpTestData(cls):
manufacturer = Manufacturer.objects.create(name='Manufacturer 1', slug='manufacturer-1')
- devicetype = DeviceType.objects.create(manufacturer=manufacturer, model='Device Type 1', slug='device-type-1', subdevice_role=SubdeviceRoleChoices.ROLE_PARENT)
+ devicetype = DeviceType.objects.create(
+ manufacturer=manufacturer,
+ model='Device Type 1',
+ slug='device-type-1',
+ subdevice_role=SubdeviceRoleChoices.ROLE_PARENT
+ )
DeviceBayTemplate.objects.bulk_create((
DeviceBayTemplate(device_type=devicetype, name='Device Bay Template 1'),
@@ -1584,12 +1642,20 @@ class InventoryItemTemplateTestCase(ViewTestCases.DeviceComponentTemplateViewTes
Manufacturer(name='Manufacturer 2', slug='manufacturer-2'),
)
Manufacturer.objects.bulk_create(manufacturers)
- devicetype = DeviceType.objects.create(manufacturer=manufacturers[0], model='Device Type 1', slug='device-type-1')
+ devicetype = DeviceType.objects.create(
+ manufacturer=manufacturers[0], model='Device Type 1', slug='device-type-1'
+ )
inventory_item_templates = (
- InventoryItemTemplate(device_type=devicetype, name='Inventory Item Template 1', manufacturer=manufacturers[0]),
- InventoryItemTemplate(device_type=devicetype, name='Inventory Item Template 2', manufacturer=manufacturers[0]),
- InventoryItemTemplate(device_type=devicetype, name='Inventory Item Template 3', manufacturer=manufacturers[0]),
+ InventoryItemTemplate(
+ device_type=devicetype, name='Inventory Item Template 1', manufacturer=manufacturers[0]
+ ),
+ InventoryItemTemplate(
+ device_type=devicetype, name='Inventory Item Template 2', manufacturer=manufacturers[0]
+ ),
+ InventoryItemTemplate(
+ device_type=devicetype, name='Inventory Item Template 3', manufacturer=manufacturers[0]
+ ),
)
for item in inventory_item_templates:
item.save()
@@ -1741,9 +1807,30 @@ class DeviceTestCase(ViewTestCases.PrimaryObjectViewTestCase):
Platform.objects.bulk_create(platforms)
devices = (
- Device(name='Device 1', site=sites[0], rack=racks[0], device_type=devicetypes[0], role=roles[0], platform=platforms[0]),
- Device(name='Device 2', site=sites[0], rack=racks[0], device_type=devicetypes[0], role=roles[0], platform=platforms[0]),
- Device(name='Device 3', site=sites[0], rack=racks[0], device_type=devicetypes[0], role=roles[0], platform=platforms[0]),
+ Device(
+ name='Device 1',
+ site=sites[0],
+ rack=racks[0],
+ device_type=devicetypes[0],
+ role=roles[0],
+ platform=platforms[0],
+ ),
+ Device(
+ name='Device 2',
+ site=sites[0],
+ rack=racks[0],
+ device_type=devicetypes[0],
+ role=roles[0],
+ platform=platforms[0],
+ ),
+ Device(
+ name='Device 3',
+ site=sites[0],
+ rack=racks[0],
+ device_type=devicetypes[0],
+ role=roles[0],
+ platform=platforms[0],
+ ),
)
Device.objects.bulk_create(devices)
@@ -1778,10 +1865,22 @@ class DeviceTestCase(ViewTestCases.PrimaryObjectViewTestCase):
}
cls.csv_data = (
- "role,manufacturer,device_type,status,name,site,location,rack,position,face,virtual_chassis,vc_position,vc_priority",
- "Device Role 1,Manufacturer 1,Device Type 1,active,Device 4,Site 1,Location 1,Rack 1,10,front,Virtual Chassis 1,1,10",
- "Device Role 1,Manufacturer 1,Device Type 1,active,Device 5,Site 1,Location 1,Rack 1,20,front,Virtual Chassis 1,2,20",
- "Device Role 1,Manufacturer 1,Device Type 1,active,Device 6,Site 1,Location 1,Rack 1,30,front,Virtual Chassis 1,3,30",
+ (
+ "role,manufacturer,device_type,status,name,site,location,rack,position,face,virtual_chassis,"
+ "vc_position,vc_priority"
+ ),
+ (
+ "Device Role 1,Manufacturer 1,Device Type 1,active,Device 4,Site 1,Location 1,Rack 1,10,front,"
+ "Virtual Chassis 1,1,10"
+ ),
+ (
+ "Device Role 1,Manufacturer 1,Device Type 1,active,Device 5,Site 1,Location 1,Rack 1,20,front,"
+ "Virtual Chassis 1,2,20"
+ ),
+ (
+ "Device Role 1,Manufacturer 1,Device Type 1,active,Device 6,Site 1,Location 1,Rack 1,30,front,"
+ "Virtual Chassis 1,3,30"
+ ),
)
cls.csv_update_data = (
@@ -2071,7 +2170,7 @@ class ModuleTestCase(
f"{device.name},{module_bay.name},{module_type.model},active,false"
]
request = {
- 'path': self._get_url('import'),
+ 'path': self._get_url('bulk_import'),
'data': {
'data': '\n'.join(csv_data),
'format': ImportFormatChoices.CSV,
@@ -2088,7 +2187,7 @@ class ModuleTestCase(
module_bay = ModuleBay.objects.get(device=device, name='Module Bay 5')
csv_data[1] = f"{device.name},{module_bay.name},{module_type.model},active,true"
request = {
- 'path': self._get_url('import'),
+ 'path': self._get_url('bulk_import'),
'data': {
'data': '\n'.join(csv_data),
'format': ImportFormatChoices.CSV,
@@ -2165,7 +2264,7 @@ class ModuleTestCase(
f"{device.name},{module_bay.name},{module_type.model},active,false,true"
]
request = {
- 'path': self._get_url('import'),
+ 'path': self._get_url('bulk_import'),
'data': {
'data': '\n'.join(csv_data),
'format': ImportFormatChoices.CSV,
@@ -2508,7 +2607,6 @@ class InterfaceTestCase(ViewTestCases.DeviceComponentViewTestCase):
'enabled': False,
'bridge': interfaces[4].pk,
'lag': interfaces[3].pk,
- 'mac_address': EUI('01:02:03:04:05:06'),
'wwn': EUI('01:02:03:04:05:06:07:08', version=64),
'mtu': 65000,
'speed': 1000000,
@@ -2533,7 +2631,6 @@ class InterfaceTestCase(ViewTestCases.DeviceComponentViewTestCase):
'enabled': False,
'bridge': interfaces[4].pk,
'lag': interfaces[3].pk,
- 'mac_address': EUI('01:02:03:04:05:06'),
'wwn': EUI('01:02:03:04:05:06:07:08', version=64),
'mtu': 2000,
'speed': 100000,
@@ -2554,7 +2651,6 @@ class InterfaceTestCase(ViewTestCases.DeviceComponentViewTestCase):
'type': InterfaceTypeChoices.TYPE_1GE_FIXED,
'enabled': True,
'lag': interfaces[3].pk,
- 'mac_address': EUI('01:02:03:04:05:06'),
'wwn': EUI('01:02:03:04:05:06:07:08', version=64),
'mtu': 2000,
'speed': 1000000,
@@ -2887,9 +2983,15 @@ class InventoryItemTestCase(ViewTestCases.DeviceComponentViewTestCase):
)
InventoryItemRole.objects.bulk_create(roles)
- inventory_item1 = InventoryItem.objects.create(device=device, name='Inventory Item 1', role=roles[0], manufacturer=manufacturer)
- inventory_item2 = InventoryItem.objects.create(device=device, name='Inventory Item 2', role=roles[0], manufacturer=manufacturer)
- inventory_item3 = InventoryItem.objects.create(device=device, name='Inventory Item 3', role=roles[0], manufacturer=manufacturer)
+ inventory_item1 = InventoryItem.objects.create(
+ device=device, name='Inventory Item 1', role=roles[0], manufacturer=manufacturer
+ )
+ inventory_item2 = InventoryItem.objects.create(
+ device=device, name='Inventory Item 2', role=roles[0], manufacturer=manufacturer
+ )
+ inventory_item3 = InventoryItem.objects.create(
+ device=device, name='Inventory Item 3', role=roles[0], manufacturer=manufacturer
+ )
tags = create_tags('Alpha', 'Bravo', 'Charlie')
@@ -2903,6 +3005,7 @@ class InventoryItemTestCase(ViewTestCases.DeviceComponentViewTestCase):
'part_id': '123456',
'serial': '123ABC',
'asset_tag': 'ABC123',
+ 'status': InventoryItemStatusChoices.STATUS_ACTIVE,
'description': 'An inventory item',
'tags': [t.pk for t in tags],
}
@@ -2916,6 +3019,7 @@ class InventoryItemTestCase(ViewTestCases.DeviceComponentViewTestCase):
'discovered': False,
'part_id': '123456',
'serial': '123ABC',
+ 'status': InventoryItemStatusChoices.STATUS_ACTIVE,
'description': 'An inventory item',
'tags': [t.pk for t in tags],
}
@@ -2927,10 +3031,10 @@ class InventoryItemTestCase(ViewTestCases.DeviceComponentViewTestCase):
}
cls.csv_data = (
- "device,name,parent",
- "Device 1,Inventory Item 4,Inventory Item 1",
- "Device 1,Inventory Item 5,Inventory Item 2",
- "Device 1,Inventory Item 6,Inventory Item 3",
+ "device,name,parent,status",
+ "Device 1,Inventory Item 4,Inventory Item 1,active",
+ "Device 1,Inventory Item 5,Inventory Item 2,planned",
+ "Device 1,Inventory Item 6,Inventory Item 3,failed",
)
cls.csv_update_data = (
@@ -3366,3 +3470,54 @@ class VirtualDeviceContextTestCase(ViewTestCases.PrimaryObjectViewTestCase):
cls.bulk_edit_data = {
'status': VirtualDeviceContextStatusChoices.STATUS_OFFLINE,
}
+
+
+class MACAddressTestCase(ViewTestCases.PrimaryObjectViewTestCase):
+ model = MACAddress
+
+ @classmethod
+ def setUpTestData(cls):
+ device = create_test_device(name='Device 1')
+ interfaces = (
+ Interface(device=device, name='Interface 1', type='1000base-t'),
+ Interface(device=device, name='Interface 2', type='1000base-t'),
+ Interface(device=device, name='Interface 3', type='1000base-t'),
+ Interface(device=device, name='Interface 4', type='1000base-t'),
+ Interface(device=device, name='Interface 5', type='1000base-t'),
+ Interface(device=device, name='Interface 6', type='1000base-t'),
+ )
+ Interface.objects.bulk_create(interfaces)
+
+ mac_addresses = (
+ MACAddress(mac_address='00:00:00:00:00:01', assigned_object=interfaces[0]),
+ MACAddress(mac_address='00:00:00:00:00:02', assigned_object=interfaces[1]),
+ MACAddress(mac_address='00:00:00:00:00:03', assigned_object=interfaces[2]),
+ )
+ MACAddress.objects.bulk_create(mac_addresses)
+
+ tags = create_tags('Alpha', 'Bravo', 'Charlie')
+
+ cls.form_data = {
+ 'mac_address': EUI('00:00:00:00:00:04'),
+ 'description': 'New MAC address',
+ 'interface_id': interfaces[3].pk,
+ 'tags': [t.pk for t in tags],
+ }
+
+ cls.csv_data = (
+ "mac_address,device,interface",
+ "00:00:00:00:00:04,Device 1,Interface 4",
+ "00:00:00:00:00:05,Device 1,Interface 5",
+ "00:00:00:00:00:06,Device 1,Interface 6",
+ )
+
+ cls.csv_update_data = (
+ "id,mac_address",
+ f"{mac_addresses[0].pk},00:00:00:00:00:0a",
+ f"{mac_addresses[1].pk},00:00:00:00:00:0b",
+ f"{mac_addresses[2].pk},00:00:00:00:00:0c",
+ )
+
+ cls.bulk_edit_data = {
+ 'description': 'New description',
+ }
diff --git a/netbox/dcim/urls.py b/netbox/dcim/urls.py
index 627136bf9..bcfd32707 100644
--- a/netbox/dcim/urls.py
+++ b/netbox/dcim/urls.py
@@ -6,327 +6,144 @@ from . import views
app_name = 'dcim'
urlpatterns = [
- # Regions
- path('regions/', views.RegionListView.as_view(), name='region_list'),
- path('regions/add/', views.RegionEditView.as_view(), name='region_add'),
- path('regions/import/', views.RegionBulkImportView.as_view(), name='region_import'),
- path('regions/edit/', views.RegionBulkEditView.as_view(), name='region_bulk_edit'),
- path('regions/delete/', views.RegionBulkDeleteView.as_view(), name='region_bulk_delete'),
+ path('regions/', include(get_model_urls('dcim', 'region', detail=False))),
path('regions//', include(get_model_urls('dcim', 'region'))),
- # Site groups
- path('site-groups/', views.SiteGroupListView.as_view(), name='sitegroup_list'),
- path('site-groups/add/', views.SiteGroupEditView.as_view(), name='sitegroup_add'),
- path('site-groups/import/', views.SiteGroupBulkImportView.as_view(), name='sitegroup_import'),
- path('site-groups/edit/', views.SiteGroupBulkEditView.as_view(), name='sitegroup_bulk_edit'),
- path('site-groups/delete/', views.SiteGroupBulkDeleteView.as_view(), name='sitegroup_bulk_delete'),
+ path('site-groups/', include(get_model_urls('dcim', 'sitegroup', detail=False))),
path('site-groups//', include(get_model_urls('dcim', 'sitegroup'))),
- # Sites
- path('sites/', views.SiteListView.as_view(), name='site_list'),
- path('sites/add/', views.SiteEditView.as_view(), name='site_add'),
- path('sites/import/', views.SiteBulkImportView.as_view(), name='site_import'),
- path('sites/edit/', views.SiteBulkEditView.as_view(), name='site_bulk_edit'),
- path('sites/delete/', views.SiteBulkDeleteView.as_view(), name='site_bulk_delete'),
+ path('sites/', include(get_model_urls('dcim', 'site', detail=False))),
path('sites//', include(get_model_urls('dcim', 'site'))),
- # Locations
- path('locations/', views.LocationListView.as_view(), name='location_list'),
- path('locations/add/', views.LocationEditView.as_view(), name='location_add'),
- path('locations/import/', views.LocationBulkImportView.as_view(), name='location_import'),
- path('locations/edit/', views.LocationBulkEditView.as_view(), name='location_bulk_edit'),
- path('locations/delete/', views.LocationBulkDeleteView.as_view(), name='location_bulk_delete'),
+ path('locations/', include(get_model_urls('dcim', 'location', detail=False))),
path('locations//', include(get_model_urls('dcim', 'location'))),
- # Rack roles
- path('rack-roles/', views.RackRoleListView.as_view(), name='rackrole_list'),
- path('rack-roles/add/', views.RackRoleEditView.as_view(), name='rackrole_add'),
- path('rack-roles/import/', views.RackRoleBulkImportView.as_view(), name='rackrole_import'),
- path('rack-roles/edit/', views.RackRoleBulkEditView.as_view(), name='rackrole_bulk_edit'),
- path('rack-roles/delete/', views.RackRoleBulkDeleteView.as_view(), name='rackrole_bulk_delete'),
+ path('rack-roles/', include(get_model_urls('dcim', 'rackrole', detail=False))),
path('rack-roles//', include(get_model_urls('dcim', 'rackrole'))),
- # Rack reservations
- path('rack-reservations/', views.RackReservationListView.as_view(), name='rackreservation_list'),
- path('rack-reservations/add/', views.RackReservationEditView.as_view(), name='rackreservation_add'),
- path('rack-reservations/import/', views.RackReservationImportView.as_view(), name='rackreservation_import'),
- path('rack-reservations/edit/', views.RackReservationBulkEditView.as_view(), name='rackreservation_bulk_edit'),
- path('rack-reservations/delete/', views.RackReservationBulkDeleteView.as_view(), name='rackreservation_bulk_delete'),
+ path('rack-reservations/', include(get_model_urls('dcim', 'rackreservation', detail=False))),
path('rack-reservations//', include(get_model_urls('dcim', 'rackreservation'))),
- # Racks
- path('racks/', views.RackListView.as_view(), name='rack_list'),
- path('rack-elevations/', views.RackElevationListView.as_view(), name='rack_elevation_list'),
- path('racks/add/', views.RackEditView.as_view(), name='rack_add'),
- path('racks/import/', views.RackBulkImportView.as_view(), name='rack_import'),
- path('racks/edit/', views.RackBulkEditView.as_view(), name='rack_bulk_edit'),
- path('racks/delete/', views.RackBulkDeleteView.as_view(), name='rack_bulk_delete'),
+ path('racks/', include(get_model_urls('dcim', 'rack', detail=False))),
path('racks//', include(get_model_urls('dcim', 'rack'))),
+ path('rack-elevations/', views.RackElevationListView.as_view(), name='rack_elevation_list'),
- # Rack Types
- path('rack-types/', views.RackTypeListView.as_view(), name='racktype_list'),
- path('rack-types/add/', views.RackTypeEditView.as_view(), name='racktype_add'),
- path('rack-types/import/', views.RackTypeBulkImportView.as_view(), name='racktype_import'),
- path('rack-types/edit/', views.RackTypeBulkEditView.as_view(), name='racktype_bulk_edit'),
- path('rack-types/delete/', views.RackTypeBulkDeleteView.as_view(), name='racktype_bulk_delete'),
+ path('rack-types/', include(get_model_urls('dcim', 'racktype', detail=False))),
path('rack-types//', include(get_model_urls('dcim', 'racktype'))),
- # Manufacturers
- path('manufacturers/', views.ManufacturerListView.as_view(), name='manufacturer_list'),
- path('manufacturers/add/', views.ManufacturerEditView.as_view(), name='manufacturer_add'),
- path('manufacturers/import/', views.ManufacturerBulkImportView.as_view(), name='manufacturer_import'),
- path('manufacturers/edit/', views.ManufacturerBulkEditView.as_view(), name='manufacturer_bulk_edit'),
- path('manufacturers/delete/', views.ManufacturerBulkDeleteView.as_view(), name='manufacturer_bulk_delete'),
+ path('manufacturers/', include(get_model_urls('dcim', 'manufacturer', detail=False))),
path('manufacturers//', include(get_model_urls('dcim', 'manufacturer'))),
- # Device types
- path('device-types/', views.DeviceTypeListView.as_view(), name='devicetype_list'),
- path('device-types/add/', views.DeviceTypeEditView.as_view(), name='devicetype_add'),
- path('device-types/import/', views.DeviceTypeImportView.as_view(), name='devicetype_import'),
- path('device-types/edit/', views.DeviceTypeBulkEditView.as_view(), name='devicetype_bulk_edit'),
- path('device-types/delete/', views.DeviceTypeBulkDeleteView.as_view(), name='devicetype_bulk_delete'),
+ path('device-types/', include(get_model_urls('dcim', 'devicetype', detail=False))),
path('device-types//', include(get_model_urls('dcim', 'devicetype'))),
- # Module types
- path('module-types/', views.ModuleTypeListView.as_view(), name='moduletype_list'),
- path('module-types/add/', views.ModuleTypeEditView.as_view(), name='moduletype_add'),
- path('module-types/import/', views.ModuleTypeImportView.as_view(), name='moduletype_import'),
- path('module-types/edit/', views.ModuleTypeBulkEditView.as_view(), name='moduletype_bulk_edit'),
- path('module-types/delete/', views.ModuleTypeBulkDeleteView.as_view(), name='moduletype_bulk_delete'),
+ path('module-types/', include(get_model_urls('dcim', 'moduletype', detail=False))),
path('module-types//', include(get_model_urls('dcim', 'moduletype'))),
- # Console port templates
- path('console-port-templates/add/', views.ConsolePortTemplateCreateView.as_view(), name='consoleporttemplate_add'),
- path('console-port-templates/edit/', views.ConsolePortTemplateBulkEditView.as_view(), name='consoleporttemplate_bulk_edit'),
- path('console-port-templates/rename/', views.ConsolePortTemplateBulkRenameView.as_view(), name='consoleporttemplate_bulk_rename'),
- path('console-port-templates/delete/', views.ConsolePortTemplateBulkDeleteView.as_view(), name='consoleporttemplate_bulk_delete'),
+ path('console-port-templates/', include(get_model_urls('dcim', 'consoleporttemplate', detail=False))),
path('console-port-templates//', include(get_model_urls('dcim', 'consoleporttemplate'))),
- # Console server port templates
- path('console-server-port-templates/add/', views.ConsoleServerPortTemplateCreateView.as_view(), name='consoleserverporttemplate_add'),
- path('console-server-port-templates/edit/', views.ConsoleServerPortTemplateBulkEditView.as_view(), name='consoleserverporttemplate_bulk_edit'),
- path('console-server-port-templates/rename/', views.ConsoleServerPortTemplateBulkRenameView.as_view(), name='consoleserverporttemplate_bulk_rename'),
- path('console-server-port-templates/delete/', views.ConsoleServerPortTemplateBulkDeleteView.as_view(), name='consoleserverporttemplate_bulk_delete'),
+ path('console-server-port-templates/', include(get_model_urls('dcim', 'consoleserverporttemplate', detail=False))),
path('console-server-port-templates//', include(get_model_urls('dcim', 'consoleserverporttemplate'))),
- # Power port templates
- path('power-port-templates/add/', views.PowerPortTemplateCreateView.as_view(), name='powerporttemplate_add'),
- path('power-port-templates/edit/', views.PowerPortTemplateBulkEditView.as_view(), name='powerporttemplate_bulk_edit'),
- path('power-port-templates/rename/', views.PowerPortTemplateBulkRenameView.as_view(), name='powerporttemplate_bulk_rename'),
- path('power-port-templates/delete/', views.PowerPortTemplateBulkDeleteView.as_view(), name='powerporttemplate_bulk_delete'),
+ path('power-port-templates/', include(get_model_urls('dcim', 'powerporttemplate', detail=False))),
path('power-port-templates//', include(get_model_urls('dcim', 'powerporttemplate'))),
- # Power outlet templates
- path('power-outlet-templates/add/', views.PowerOutletTemplateCreateView.as_view(), name='poweroutlettemplate_add'),
- path('power-outlet-templates/edit/', views.PowerOutletTemplateBulkEditView.as_view(), name='poweroutlettemplate_bulk_edit'),
- path('power-outlet-templates/rename/', views.PowerOutletTemplateBulkRenameView.as_view(), name='poweroutlettemplate_bulk_rename'),
- path('power-outlet-templates/delete/', views.PowerOutletTemplateBulkDeleteView.as_view(), name='poweroutlettemplate_bulk_delete'),
+ path('power-outlet-templates/', include(get_model_urls('dcim', 'poweroutlettemplate', detail=False))),
path('power-outlet-templates//', include(get_model_urls('dcim', 'poweroutlettemplate'))),
- # Interface templates
- path('interface-templates/add/', views.InterfaceTemplateCreateView.as_view(), name='interfacetemplate_add'),
- path('interface-templates/edit/', views.InterfaceTemplateBulkEditView.as_view(), name='interfacetemplate_bulk_edit'),
- path('interface-templates/rename/', views.InterfaceTemplateBulkRenameView.as_view(), name='interfacetemplate_bulk_rename'),
- path('interface-templates/delete/', views.InterfaceTemplateBulkDeleteView.as_view(), name='interfacetemplate_bulk_delete'),
+ path('interface-templates/', include(get_model_urls('dcim', 'interfacetemplate', detail=False))),
path('interface-templates//', include(get_model_urls('dcim', 'interfacetemplate'))),
- # Front port templates
- path('front-port-templates/add/', views.FrontPortTemplateCreateView.as_view(), name='frontporttemplate_add'),
- path('front-port-templates/edit/', views.FrontPortTemplateBulkEditView.as_view(), name='frontporttemplate_bulk_edit'),
- path('front-port-templates/rename/', views.FrontPortTemplateBulkRenameView.as_view(), name='frontporttemplate_bulk_rename'),
- path('front-port-templates/delete/', views.FrontPortTemplateBulkDeleteView.as_view(), name='frontporttemplate_bulk_delete'),
+ path('front-port-templates/', include(get_model_urls('dcim', 'frontporttemplate', detail=False))),
path('front-port-templates//', include(get_model_urls('dcim', 'frontporttemplate'))),
- # Rear port templates
- path('rear-port-templates/add/', views.RearPortTemplateCreateView.as_view(), name='rearporttemplate_add'),
- path('rear-port-templates/edit/', views.RearPortTemplateBulkEditView.as_view(), name='rearporttemplate_bulk_edit'),
- path('rear-port-templates/rename/', views.RearPortTemplateBulkRenameView.as_view(), name='rearporttemplate_bulk_rename'),
- path('rear-port-templates/delete/', views.RearPortTemplateBulkDeleteView.as_view(), name='rearporttemplate_bulk_delete'),
+ path('rear-port-templates/', include(get_model_urls('dcim', 'rearporttemplate', detail=False))),
path('rear-port-templates//', include(get_model_urls('dcim', 'rearporttemplate'))),
- # Device bay templates
- path('device-bay-templates/add/', views.DeviceBayTemplateCreateView.as_view(), name='devicebaytemplate_add'),
- path('device-bay-templates/edit/', views.DeviceBayTemplateBulkEditView.as_view(), name='devicebaytemplate_bulk_edit'),
- path('device-bay-templates/rename/', views.DeviceBayTemplateBulkRenameView.as_view(), name='devicebaytemplate_bulk_rename'),
- path('device-bay-templates/delete/', views.DeviceBayTemplateBulkDeleteView.as_view(), name='devicebaytemplate_bulk_delete'),
+ path('device-bay-templates/', include(get_model_urls('dcim', 'devicebaytemplate', detail=False))),
path('device-bay-templates//', include(get_model_urls('dcim', 'devicebaytemplate'))),
- # Module bay templates
- path('module-bay-templates/add/', views.ModuleBayTemplateCreateView.as_view(), name='modulebaytemplate_add'),
- path('module-bay-templates/edit/', views.ModuleBayTemplateBulkEditView.as_view(), name='modulebaytemplate_bulk_edit'),
- path('module-bay-templates/rename/', views.ModuleBayTemplateBulkRenameView.as_view(), name='modulebaytemplate_bulk_rename'),
- path('module-bay-templates/delete/', views.ModuleBayTemplateBulkDeleteView.as_view(), name='modulebaytemplate_bulk_delete'),
+ path('module-bay-templates/', include(get_model_urls('dcim', 'modulebaytemplate', detail=False))),
path('module-bay-templates//', include(get_model_urls('dcim', 'modulebaytemplate'))),
- # Inventory item templates
- path('inventory-item-templates/add/', views.InventoryItemTemplateCreateView.as_view(), name='inventoryitemtemplate_add'),
- path('inventory-item-templates/edit/', views.InventoryItemTemplateBulkEditView.as_view(), name='inventoryitemtemplate_bulk_edit'),
- path('inventory-item-templates/rename/', views.InventoryItemTemplateBulkRenameView.as_view(), name='inventoryitemtemplate_bulk_rename'),
- path('inventory-item-templates/delete/', views.InventoryItemTemplateBulkDeleteView.as_view(), name='inventoryitemtemplate_bulk_delete'),
+ path('inventory-item-templates/', include(get_model_urls('dcim', 'inventoryitemtemplate', detail=False))),
path('inventory-item-templates//', include(get_model_urls('dcim', 'inventoryitemtemplate'))),
- # Device roles
- path('device-roles/', views.DeviceRoleListView.as_view(), name='devicerole_list'),
- path('device-roles/add/', views.DeviceRoleEditView.as_view(), name='devicerole_add'),
- path('device-roles/import/', views.DeviceRoleBulkImportView.as_view(), name='devicerole_import'),
- path('device-roles/edit/', views.DeviceRoleBulkEditView.as_view(), name='devicerole_bulk_edit'),
- path('device-roles/delete/', views.DeviceRoleBulkDeleteView.as_view(), name='devicerole_bulk_delete'),
+ path('device-roles/', include(get_model_urls('dcim', 'devicerole', detail=False))),
path('device-roles//', include(get_model_urls('dcim', 'devicerole'))),
- # Platforms
- path('platforms/', views.PlatformListView.as_view(), name='platform_list'),
- path('platforms/add/', views.PlatformEditView.as_view(), name='platform_add'),
- path('platforms/import/', views.PlatformBulkImportView.as_view(), name='platform_import'),
- path('platforms/edit/', views.PlatformBulkEditView.as_view(), name='platform_bulk_edit'),
- path('platforms/delete/', views.PlatformBulkDeleteView.as_view(), name='platform_bulk_delete'),
+ path('platforms/', include(get_model_urls('dcim', 'platform', detail=False))),
path('platforms//', include(get_model_urls('dcim', 'platform'))),
- # Devices
- path('devices/', views.DeviceListView.as_view(), name='device_list'),
- path('devices/add/', views.DeviceEditView.as_view(), name='device_add'),
- path('devices/import/', views.DeviceBulkImportView.as_view(), name='device_import'),
- path('devices/edit/', views.DeviceBulkEditView.as_view(), name='device_bulk_edit'),
- path('devices/rename/', views.DeviceBulkRenameView.as_view(), name='device_bulk_rename'),
- path('devices/delete/', views.DeviceBulkDeleteView.as_view(), name='device_bulk_delete'),
+ path('devices/', include(get_model_urls('dcim', 'device', detail=False))),
path('devices//', include(get_model_urls('dcim', 'device'))),
- # Virtual Device Context
- path('virtual-device-contexts/', views.VirtualDeviceContextListView.as_view(), name='virtualdevicecontext_list'),
- path('virtual-device-contexts/add/', views.VirtualDeviceContextEditView.as_view(), name='virtualdevicecontext_add'),
- path('virtual-device-contexts/import/', views.VirtualDeviceContextBulkImportView.as_view(), name='virtualdevicecontext_import'),
- path('virtual-device-contexts/edit/', views.VirtualDeviceContextBulkEditView.as_view(), name='virtualdevicecontext_bulk_edit'),
- path('virtual-device-contexts/delete/', views.VirtualDeviceContextBulkDeleteView.as_view(), name='virtualdevicecontext_bulk_delete'),
+ path('virtual-device-contexts/', include(get_model_urls('dcim', 'virtualdevicecontext', detail=False))),
path('virtual-device-contexts//', include(get_model_urls('dcim', 'virtualdevicecontext'))),
- # Modules
- path('modules/', views.ModuleListView.as_view(), name='module_list'),
- path('modules/add/', views.ModuleEditView.as_view(), name='module_add'),
- path('modules/import/', views.ModuleBulkImportView.as_view(), name='module_import'),
- path('modules/edit/', views.ModuleBulkEditView.as_view(), name='module_bulk_edit'),
- path('modules/delete/', views.ModuleBulkDeleteView.as_view(), name='module_bulk_delete'),
+ path('modules/', include(get_model_urls('dcim', 'module', detail=False))),
path('modules//', include(get_model_urls('dcim', 'module'))),
- # Console ports
- path('console-ports/', views.ConsolePortListView.as_view(), name='consoleport_list'),
- path('console-ports/add/', views.ConsolePortCreateView.as_view(), name='consoleport_add'),
- path('console-ports/import/', views.ConsolePortBulkImportView.as_view(), name='consoleport_import'),
- path('console-ports/edit/', views.ConsolePortBulkEditView.as_view(), name='consoleport_bulk_edit'),
- path('console-ports/rename/', views.ConsolePortBulkRenameView.as_view(), name='consoleport_bulk_rename'),
- path('console-ports/disconnect/', views.ConsolePortBulkDisconnectView.as_view(), name='consoleport_bulk_disconnect'),
- path('console-ports/delete/', views.ConsolePortBulkDeleteView.as_view(), name='consoleport_bulk_delete'),
+ path('console-ports/', include(get_model_urls('dcim', 'consoleport', detail=False))),
path('console-ports//', include(get_model_urls('dcim', 'consoleport'))),
- path('devices/console-ports/add/', views.DeviceBulkAddConsolePortView.as_view(), name='device_bulk_add_consoleport'),
+ path(
+ 'devices/console-ports/add/',
+ views.DeviceBulkAddConsolePortView.as_view(),
+ name='device_bulk_add_consoleport'
+ ),
- # Console server ports
- path('console-server-ports/', views.ConsoleServerPortListView.as_view(), name='consoleserverport_list'),
- path('console-server-ports/add/', views.ConsoleServerPortCreateView.as_view(), name='consoleserverport_add'),
- path('console-server-ports/import/', views.ConsoleServerPortBulkImportView.as_view(), name='consoleserverport_import'),
- path('console-server-ports/edit/', views.ConsoleServerPortBulkEditView.as_view(), name='consoleserverport_bulk_edit'),
- path('console-server-ports/rename/', views.ConsoleServerPortBulkRenameView.as_view(), name='consoleserverport_bulk_rename'),
- path('console-server-ports/disconnect/', views.ConsoleServerPortBulkDisconnectView.as_view(), name='consoleserverport_bulk_disconnect'),
- path('console-server-ports/delete/', views.ConsoleServerPortBulkDeleteView.as_view(), name='consoleserverport_bulk_delete'),
+ path('console-server-ports/', include(get_model_urls('dcim', 'consoleserverport', detail=False))),
path('console-server-ports//', include(get_model_urls('dcim', 'consoleserverport'))),
- path('devices/console-server-ports/add/', views.DeviceBulkAddConsoleServerPortView.as_view(), name='device_bulk_add_consoleserverport'),
+ path(
+ 'devices/console-server-ports/add/',
+ views.DeviceBulkAddConsoleServerPortView.as_view(),
+ name='device_bulk_add_consoleserverport'
+ ),
- # Power ports
- path('power-ports/', views.PowerPortListView.as_view(), name='powerport_list'),
- path('power-ports/add/', views.PowerPortCreateView.as_view(), name='powerport_add'),
- path('power-ports/import/', views.PowerPortBulkImportView.as_view(), name='powerport_import'),
- path('power-ports/edit/', views.PowerPortBulkEditView.as_view(), name='powerport_bulk_edit'),
- path('power-ports/rename/', views.PowerPortBulkRenameView.as_view(), name='powerport_bulk_rename'),
- path('power-ports/disconnect/', views.PowerPortBulkDisconnectView.as_view(), name='powerport_bulk_disconnect'),
- path('power-ports/delete/', views.PowerPortBulkDeleteView.as_view(), name='powerport_bulk_delete'),
+ path('power-ports/', include(get_model_urls('dcim', 'powerport', detail=False))),
path('power-ports//', include(get_model_urls('dcim', 'powerport'))),
path('devices/power-ports/add/', views.DeviceBulkAddPowerPortView.as_view(), name='device_bulk_add_powerport'),
- # Power outlets
- path('power-outlets/', views.PowerOutletListView.as_view(), name='poweroutlet_list'),
- path('power-outlets/add/', views.PowerOutletCreateView.as_view(), name='poweroutlet_add'),
- path('power-outlets/import/', views.PowerOutletBulkImportView.as_view(), name='poweroutlet_import'),
- path('power-outlets/edit/', views.PowerOutletBulkEditView.as_view(), name='poweroutlet_bulk_edit'),
- path('power-outlets/rename/', views.PowerOutletBulkRenameView.as_view(), name='poweroutlet_bulk_rename'),
- path('power-outlets/disconnect/', views.PowerOutletBulkDisconnectView.as_view(), name='poweroutlet_bulk_disconnect'),
- path('power-outlets/delete/', views.PowerOutletBulkDeleteView.as_view(), name='poweroutlet_bulk_delete'),
+ path('power-outlets/', include(get_model_urls('dcim', 'poweroutlet', detail=False))),
path('power-outlets//', include(get_model_urls('dcim', 'poweroutlet'))),
- path('devices/power-outlets/add/', views.DeviceBulkAddPowerOutletView.as_view(), name='device_bulk_add_poweroutlet'),
+ path(
+ 'devices/power-outlets/add/',
+ views.DeviceBulkAddPowerOutletView.as_view(),
+ name='device_bulk_add_poweroutlet'
+ ),
- # Interfaces
- path('interfaces/', views.InterfaceListView.as_view(), name='interface_list'),
- path('interfaces/add/', views.InterfaceCreateView.as_view(), name='interface_add'),
- path('interfaces/import/', views.InterfaceBulkImportView.as_view(), name='interface_import'),
- path('interfaces/edit/', views.InterfaceBulkEditView.as_view(), name='interface_bulk_edit'),
- path('interfaces/rename/', views.InterfaceBulkRenameView.as_view(), name='interface_bulk_rename'),
- path('interfaces/disconnect/', views.InterfaceBulkDisconnectView.as_view(), name='interface_bulk_disconnect'),
- path('interfaces/delete/', views.InterfaceBulkDeleteView.as_view(), name='interface_bulk_delete'),
+ path('interfaces/', include(get_model_urls('dcim', 'interface', detail=False))),
path('interfaces//', include(get_model_urls('dcim', 'interface'))),
path('devices/interfaces/add/', views.DeviceBulkAddInterfaceView.as_view(), name='device_bulk_add_interface'),
- # Front ports
- path('front-ports/', views.FrontPortListView.as_view(), name='frontport_list'),
- path('front-ports/add/', views.FrontPortCreateView.as_view(), name='frontport_add'),
- path('front-ports/import/', views.FrontPortBulkImportView.as_view(), name='frontport_import'),
- path('front-ports/edit/', views.FrontPortBulkEditView.as_view(), name='frontport_bulk_edit'),
- path('front-ports/rename/', views.FrontPortBulkRenameView.as_view(), name='frontport_bulk_rename'),
- path('front-ports/disconnect/', views.FrontPortBulkDisconnectView.as_view(), name='frontport_bulk_disconnect'),
- path('front-ports/delete/', views.FrontPortBulkDeleteView.as_view(), name='frontport_bulk_delete'),
+ path('front-ports/', include(get_model_urls('dcim', 'frontport', detail=False))),
path('front-ports//', include(get_model_urls('dcim', 'frontport'))),
- # path('devices/front-ports/add/', views.DeviceBulkAddFrontPortView.as_view(), name='device_bulk_add_frontport'),
- # Rear ports
- path('rear-ports/', views.RearPortListView.as_view(), name='rearport_list'),
- path('rear-ports/add/', views.RearPortCreateView.as_view(), name='rearport_add'),
- path('rear-ports/import/', views.RearPortBulkImportView.as_view(), name='rearport_import'),
- path('rear-ports/edit/', views.RearPortBulkEditView.as_view(), name='rearport_bulk_edit'),
- path('rear-ports/rename/', views.RearPortBulkRenameView.as_view(), name='rearport_bulk_rename'),
- path('rear-ports/disconnect/', views.RearPortBulkDisconnectView.as_view(), name='rearport_bulk_disconnect'),
- path('rear-ports/delete/', views.RearPortBulkDeleteView.as_view(), name='rearport_bulk_delete'),
+ path('rear-ports/', include(get_model_urls('dcim', 'rearport', detail=False))),
path('rear-ports//', include(get_model_urls('dcim', 'rearport'))),
path('devices/rear-ports/add/', views.DeviceBulkAddRearPortView.as_view(), name='device_bulk_add_rearport'),
- # Module bays
- path('module-bays/', views.ModuleBayListView.as_view(), name='modulebay_list'),
- path('module-bays/add/', views.ModuleBayCreateView.as_view(), name='modulebay_add'),
- path('module-bays/import/', views.ModuleBayBulkImportView.as_view(), name='modulebay_import'),
- path('module-bays/edit/', views.ModuleBayBulkEditView.as_view(), name='modulebay_bulk_edit'),
- path('module-bays/rename/', views.ModuleBayBulkRenameView.as_view(), name='modulebay_bulk_rename'),
- path('module-bays/delete/', views.ModuleBayBulkDeleteView.as_view(), name='modulebay_bulk_delete'),
+ path('module-bays/', include(get_model_urls('dcim', 'modulebay', detail=False))),
path('module-bays//', include(get_model_urls('dcim', 'modulebay'))),
path('devices/module-bays/add/', views.DeviceBulkAddModuleBayView.as_view(), name='device_bulk_add_modulebay'),
- # Device bays
- path('device-bays/', views.DeviceBayListView.as_view(), name='devicebay_list'),
- path('device-bays/add/', views.DeviceBayCreateView.as_view(), name='devicebay_add'),
- path('device-bays/import/', views.DeviceBayBulkImportView.as_view(), name='devicebay_import'),
- path('device-bays/edit/', views.DeviceBayBulkEditView.as_view(), name='devicebay_bulk_edit'),
- path('device-bays/rename/', views.DeviceBayBulkRenameView.as_view(), name='devicebay_bulk_rename'),
- path('device-bays/delete/', views.DeviceBayBulkDeleteView.as_view(), name='devicebay_bulk_delete'),
+ path('device-bays/', include(get_model_urls('dcim', 'devicebay', detail=False))),
path('device-bays//', include(get_model_urls('dcim', 'devicebay'))),
path('devices/device-bays/add/', views.DeviceBulkAddDeviceBayView.as_view(), name='device_bulk_add_devicebay'),
- # Inventory items
- path('inventory-items/', views.InventoryItemListView.as_view(), name='inventoryitem_list'),
- path('inventory-items/add/', views.InventoryItemCreateView.as_view(), name='inventoryitem_add'),
- path('inventory-items/import/', views.InventoryItemBulkImportView.as_view(), name='inventoryitem_import'),
- path('inventory-items/edit/', views.InventoryItemBulkEditView.as_view(), name='inventoryitem_bulk_edit'),
- path('inventory-items/rename/', views.InventoryItemBulkRenameView.as_view(), name='inventoryitem_bulk_rename'),
- path('inventory-items/delete/', views.InventoryItemBulkDeleteView.as_view(), name='inventoryitem_bulk_delete'),
+ path('inventory-items/', include(get_model_urls('dcim', 'inventoryitem', detail=False))),
path('inventory-items//', include(get_model_urls('dcim', 'inventoryitem'))),
- path('devices/inventory-items/add/', views.DeviceBulkAddInventoryItemView.as_view(), name='device_bulk_add_inventoryitem'),
+ path(
+ 'devices/inventory-items/add/',
+ views.DeviceBulkAddInventoryItemView.as_view(),
+ name='device_bulk_add_inventoryitem'
+ ),
- # Inventory item roles
- path('inventory-item-roles/', views.InventoryItemRoleListView.as_view(), name='inventoryitemrole_list'),
- path('inventory-item-roles/add/', views.InventoryItemRoleEditView.as_view(), name='inventoryitemrole_add'),
- path('inventory-item-roles/import/', views.InventoryItemRoleBulkImportView.as_view(), name='inventoryitemrole_import'),
- path('inventory-item-roles/edit/', views.InventoryItemRoleBulkEditView.as_view(), name='inventoryitemrole_bulk_edit'),
- path('inventory-item-roles/delete/', views.InventoryItemRoleBulkDeleteView.as_view(), name='inventoryitemrole_bulk_delete'),
+ path('inventory-item-roles/', include(get_model_urls('dcim', 'inventoryitemrole', detail=False))),
path('inventory-item-roles//', include(get_model_urls('dcim', 'inventoryitemrole'))),
- # Cables
- path('cables/', views.CableListView.as_view(), name='cable_list'),
- path('cables/add/', views.CableEditView.as_view(), name='cable_add'),
- path('cables/import/', views.CableBulkImportView.as_view(), name='cable_import'),
- path('cables/edit/', views.CableBulkEditView.as_view(), name='cable_bulk_edit'),
- path('cables/delete/', views.CableBulkDeleteView.as_view(), name='cable_bulk_delete'),
+ path('cables/', include(get_model_urls('dcim', 'cable', detail=False))),
path('cables//', include(get_model_urls('dcim', 'cable'))),
# Console/power/interface connections (read-only)
@@ -334,30 +151,21 @@ urlpatterns = [
path('power-connections/', views.PowerConnectionsListView.as_view(), name='power_connections_list'),
path('interface-connections/', views.InterfaceConnectionsListView.as_view(), name='interface_connections_list'),
- # Virtual chassis
- path('virtual-chassis/', views.VirtualChassisListView.as_view(), name='virtualchassis_list'),
- path('virtual-chassis/add/', views.VirtualChassisCreateView.as_view(), name='virtualchassis_add'),
- path('virtual-chassis/import/', views.VirtualChassisBulkImportView.as_view(), name='virtualchassis_import'),
- path('virtual-chassis/edit/', views.VirtualChassisBulkEditView.as_view(), name='virtualchassis_bulk_edit'),
- path('virtual-chassis/delete/', views.VirtualChassisBulkDeleteView.as_view(), name='virtualchassis_bulk_delete'),
+ path('virtual-chassis/', include(get_model_urls('dcim', 'virtualchassis', detail=False))),
path('virtual-chassis//', include(get_model_urls('dcim', 'virtualchassis'))),
- path('virtual-chassis-members//delete/', views.VirtualChassisRemoveMemberView.as_view(), name='virtualchassis_remove_member'),
+ path(
+ 'virtual-chassis-members//delete/',
+ views.VirtualChassisRemoveMemberView.as_view(),
+ name='virtualchassis_remove_member'
+ ),
- # Power panels
- path('power-panels/', views.PowerPanelListView.as_view(), name='powerpanel_list'),
- path('power-panels/add/', views.PowerPanelEditView.as_view(), name='powerpanel_add'),
- path('power-panels/import/', views.PowerPanelBulkImportView.as_view(), name='powerpanel_import'),
- path('power-panels/edit/', views.PowerPanelBulkEditView.as_view(), name='powerpanel_bulk_edit'),
- path('power-panels/delete/', views.PowerPanelBulkDeleteView.as_view(), name='powerpanel_bulk_delete'),
+ path('power-panels/', include(get_model_urls('dcim', 'powerpanel', detail=False))),
path('power-panels//', include(get_model_urls('dcim', 'powerpanel'))),
- # Power feeds
- path('power-feeds/', views.PowerFeedListView.as_view(), name='powerfeed_list'),
- path('power-feeds/add/', views.PowerFeedEditView.as_view(), name='powerfeed_add'),
- path('power-feeds/import/', views.PowerFeedBulkImportView.as_view(), name='powerfeed_import'),
- path('power-feeds/edit/', views.PowerFeedBulkEditView.as_view(), name='powerfeed_bulk_edit'),
- path('power-feeds/disconnect/', views.PowerFeedBulkDisconnectView.as_view(), name='powerfeed_bulk_disconnect'),
- path('power-feeds/delete/', views.PowerFeedBulkDeleteView.as_view(), name='powerfeed_bulk_delete'),
+ path('power-feeds/', include(get_model_urls('dcim', 'powerfeed', detail=False))),
path('power-feeds//', include(get_model_urls('dcim', 'powerfeed'))),
+ path('mac-addresses/', include(get_model_urls('dcim', 'macaddress', detail=False))),
+ path('mac-addresses//', include(get_model_urls('dcim', 'macaddress'))),
+
]
diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py
index f390be89b..0978747d1 100644
--- a/netbox/dcim/views.py
+++ b/netbox/dcim/views.py
@@ -1,5 +1,3 @@
-import traceback
-
from django.contrib import messages
from django.contrib.contenttypes.models import ContentType
from django.core.paginator import EmptyPage, PageNotAnInteger
@@ -17,8 +15,8 @@ from jinja2.exceptions import TemplateError
from circuits.models import Circuit, CircuitTermination
from extras.views import ObjectConfigContextView
-from ipam.models import ASN, IPAddress, VLANGroup
-from ipam.tables import InterfaceVLANTable
+from ipam.models import ASN, IPAddress, Prefix, VLANGroup
+from ipam.tables import InterfaceVLANTable, VLANTranslationRuleTable
from netbox.constants import DEFAULT_ACTION_PERMISSIONS
from netbox.views import generic
from tenancy.views import ObjectContactsView
@@ -32,8 +30,9 @@ from utilities.views import (
)
from virtualization.filtersets import VirtualMachineFilterSet
from virtualization.forms import VirtualMachineFilterForm
-from virtualization.models import VirtualMachine
+from virtualization.models import Cluster, VirtualMachine
from virtualization.tables import VirtualMachineTable
+from wireless.models import WirelessLAN
from . import filtersets, forms, tables
from .choices import DeviceFaceChoices, InterfaceModeChoices
from .models import *
@@ -215,6 +214,7 @@ class PathTraceView(generic.ObjectView):
# Regions
#
+@register_model_view(Region, 'list', path='', detail=False)
class RegionListView(generic.ObjectListView):
queryset = Region.objects.add_related_count(
Region.objects.all(),
@@ -239,14 +239,27 @@ class RegionView(GetRelatedModelsMixin, generic.ObjectView):
'related_models': self.get_related_models(
request,
regions,
+ omit=(Cluster, Prefix, WirelessLAN),
extra=(
(Location.objects.restrict(request.user, 'view').filter(site__region__in=regions), 'region_id'),
(Rack.objects.restrict(request.user, 'view').filter(site__region__in=regions), 'region_id'),
+ (
+ Circuit.objects.restrict(request.user, 'view').filter(
+ terminations___region=instance
+ ).distinct(),
+ 'region_id'
+ ),
+
+ # Handle these relations manually to avoid erroneous filter name resolution
+ (Cluster.objects.restrict(request.user, 'view').filter(_region__in=regions), 'region_id'),
+ (Prefix.objects.restrict(request.user, 'view').filter(_region__in=regions), 'region_id'),
+ (WirelessLAN.objects.restrict(request.user, 'view').filter(_region__in=regions), 'region_id'),
),
),
}
+@register_model_view(Region, 'add', detail=False)
@register_model_view(Region, 'edit')
class RegionEditView(generic.ObjectEditView):
queryset = Region.objects.all()
@@ -258,11 +271,13 @@ class RegionDeleteView(generic.ObjectDeleteView):
queryset = Region.objects.all()
+@register_model_view(Region, 'bulk_import', detail=False)
class RegionBulkImportView(generic.BulkImportView):
queryset = Region.objects.all()
model_form = forms.RegionImportForm
+@register_model_view(Region, 'bulk_edit', path='edit', detail=False)
class RegionBulkEditView(generic.BulkEditView):
queryset = Region.objects.add_related_count(
Region.objects.all(),
@@ -276,6 +291,7 @@ class RegionBulkEditView(generic.BulkEditView):
form = forms.RegionBulkEditForm
+@register_model_view(Region, 'bulk_delete', path='delete', detail=False)
class RegionBulkDeleteView(generic.BulkDeleteView):
queryset = Region.objects.add_related_count(
Region.objects.all(),
@@ -297,6 +313,7 @@ class RegionContactsView(ObjectContactsView):
# Site groups
#
+@register_model_view(SiteGroup, 'list', path='', detail=False)
class SiteGroupListView(generic.ObjectListView):
queryset = SiteGroup.objects.add_related_count(
SiteGroup.objects.all(),
@@ -321,14 +338,36 @@ class SiteGroupView(GetRelatedModelsMixin, generic.ObjectView):
'related_models': self.get_related_models(
request,
groups,
+ omit=(Cluster, Prefix, WirelessLAN),
extra=(
(Location.objects.restrict(request.user, 'view').filter(site__group__in=groups), 'site_group_id'),
(Rack.objects.restrict(request.user, 'view').filter(site__group__in=groups), 'site_group_id'),
+ (
+ Circuit.objects.restrict(request.user, 'view').filter(
+ terminations___site_group=instance
+ ).distinct(),
+ 'site_group_id'
+ ),
+
+ # Handle these relations manually to avoid erroneous filter name resolution
+ (
+ Cluster.objects.restrict(request.user, 'view').filter(_site_group__in=groups),
+ 'site_group_id'
+ ),
+ (
+ Prefix.objects.restrict(request.user, 'view').filter(_site_group__in=groups),
+ 'site_group_id'
+ ),
+ (
+ WirelessLAN.objects.restrict(request.user, 'view').filter(_site_group__in=groups),
+ 'site_group_id'
+ ),
),
),
}
+@register_model_view(SiteGroup, 'add', detail=False)
@register_model_view(SiteGroup, 'edit')
class SiteGroupEditView(generic.ObjectEditView):
queryset = SiteGroup.objects.all()
@@ -340,11 +379,13 @@ class SiteGroupDeleteView(generic.ObjectDeleteView):
queryset = SiteGroup.objects.all()
+@register_model_view(SiteGroup, 'bulk_import', detail=False)
class SiteGroupBulkImportView(generic.BulkImportView):
queryset = SiteGroup.objects.all()
model_form = forms.SiteGroupImportForm
+@register_model_view(SiteGroup, 'bulk_edit', path='edit', detail=False)
class SiteGroupBulkEditView(generic.BulkEditView):
queryset = SiteGroup.objects.add_related_count(
SiteGroup.objects.all(),
@@ -358,6 +399,7 @@ class SiteGroupBulkEditView(generic.BulkEditView):
form = forms.SiteGroupBulkEditForm
+@register_model_view(SiteGroup, 'bulk_delete', path='delete', detail=False)
class SiteGroupBulkDeleteView(generic.BulkDeleteView):
queryset = SiteGroup.objects.add_related_count(
SiteGroup.objects.all(),
@@ -379,6 +421,7 @@ class SiteGroupContactsView(ObjectContactsView):
# Sites
#
+@register_model_view(Site, 'list', path='', detail=False)
class SiteListView(generic.ObjectListView):
queryset = Site.objects.annotate(
device_count=count_related(Device, 'site')
@@ -397,20 +440,28 @@ class SiteView(GetRelatedModelsMixin, generic.ObjectView):
'related_models': self.get_related_models(
request,
instance,
- [CableTermination, CircuitTermination],
- (
+ omit=(CableTermination, CircuitTermination, Cluster, Prefix, WirelessLAN),
+ extra=(
(VLANGroup.objects.restrict(request.user, 'view').filter(
scope_type=ContentType.objects.get_for_model(Site),
scope_id=instance.pk
), 'site'),
(ASN.objects.restrict(request.user, 'view').filter(sites=instance), 'site_id'),
- (Circuit.objects.restrict(request.user, 'view').filter(terminations__site=instance).distinct(),
- 'site_id'),
+ (
+ Circuit.objects.restrict(request.user, 'view').filter(terminations___site=instance).distinct(),
+ 'site_id'
+ ),
+
+ # Handle these relations manually to avoid erroneous filter name resolution
+ (Cluster.objects.restrict(request.user, 'view').filter(_site=instance), 'site_id'),
+ (Prefix.objects.restrict(request.user, 'view').filter(_site=instance), 'site_id'),
+ (WirelessLAN.objects.restrict(request.user, 'view').filter(_site=instance), 'site_id'),
),
),
}
+@register_model_view(Site, 'add', detail=False)
@register_model_view(Site, 'edit')
class SiteEditView(generic.ObjectEditView):
queryset = Site.objects.all()
@@ -422,11 +473,13 @@ class SiteDeleteView(generic.ObjectDeleteView):
queryset = Site.objects.all()
+@register_model_view(Site, 'bulk_import', detail=False)
class SiteBulkImportView(generic.BulkImportView):
queryset = Site.objects.all()
model_form = forms.SiteImportForm
+@register_model_view(Site, 'bulk_edit', path='edit', detail=False)
class SiteBulkEditView(generic.BulkEditView):
queryset = Site.objects.all()
filterset = filtersets.SiteFilterSet
@@ -434,6 +487,7 @@ class SiteBulkEditView(generic.BulkEditView):
form = forms.SiteBulkEditForm
+@register_model_view(Site, 'bulk_delete', path='delete', detail=False)
class SiteBulkDeleteView(generic.BulkDeleteView):
queryset = Site.objects.all()
filterset = filtersets.SiteFilterSet
@@ -449,6 +503,7 @@ class SiteContactsView(ObjectContactsView):
# Locations
#
+@register_model_view(Location, 'list', path='', detail=False)
class LocationListView(generic.ObjectListView):
queryset = Location.objects.add_related_count(
Location.objects.add_related_count(
@@ -475,10 +530,28 @@ class LocationView(GetRelatedModelsMixin, generic.ObjectView):
def get_extra_context(self, request, instance):
locations = instance.get_descendants(include_self=True)
return {
- 'related_models': self.get_related_models(request, locations, [CableTermination]),
+ 'related_models': self.get_related_models(
+ request,
+ locations,
+ omit=[CableTermination, Cluster, Prefix, WirelessLAN],
+ extra=(
+ (
+ Circuit.objects.restrict(request.user, 'view').filter(
+ terminations___location=instance
+ ).distinct(),
+ 'location_id'
+ ),
+
+ # Handle these relations manually to avoid erroneous filter name resolution
+ (Cluster.objects.restrict(request.user, 'view').filter(_location=instance), 'location_id'),
+ (Prefix.objects.restrict(request.user, 'view').filter(_location=instance), 'location_id'),
+ (WirelessLAN.objects.restrict(request.user, 'view').filter(_location=instance), 'location_id'),
+ ),
+ ),
}
+@register_model_view(Location, 'add', detail=False)
@register_model_view(Location, 'edit')
class LocationEditView(generic.ObjectEditView):
queryset = Location.objects.all()
@@ -490,11 +563,13 @@ class LocationDeleteView(generic.ObjectDeleteView):
queryset = Location.objects.all()
+@register_model_view(Location, 'bulk_import', detail=False)
class LocationBulkImportView(generic.BulkImportView):
queryset = Location.objects.all()
model_form = forms.LocationImportForm
+@register_model_view(Location, 'bulk_edit', path='edit', detail=False)
class LocationBulkEditView(generic.BulkEditView):
queryset = Location.objects.add_related_count(
Location.objects.all(),
@@ -508,6 +583,7 @@ class LocationBulkEditView(generic.BulkEditView):
form = forms.LocationBulkEditForm
+@register_model_view(Location, 'bulk_delete', path='delete', detail=False)
class LocationBulkDeleteView(generic.BulkDeleteView):
queryset = Location.objects.add_related_count(
Location.objects.all(),
@@ -529,6 +605,7 @@ class LocationContactsView(ObjectContactsView):
# Rack roles
#
+@register_model_view(RackRole, 'list', path='', detail=False)
class RackRoleListView(generic.ObjectListView):
queryset = RackRole.objects.annotate(
rack_count=count_related(Rack, 'role')
@@ -548,6 +625,7 @@ class RackRoleView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(RackRole, 'add', detail=False)
@register_model_view(RackRole, 'edit')
class RackRoleEditView(generic.ObjectEditView):
queryset = RackRole.objects.all()
@@ -559,11 +637,13 @@ class RackRoleDeleteView(generic.ObjectDeleteView):
queryset = RackRole.objects.all()
+@register_model_view(RackRole, 'bulk_import', detail=False)
class RackRoleBulkImportView(generic.BulkImportView):
queryset = RackRole.objects.all()
model_form = forms.RackRoleImportForm
+@register_model_view(RackRole, 'bulk_edit', path='edit', detail=False)
class RackRoleBulkEditView(generic.BulkEditView):
queryset = RackRole.objects.annotate(
rack_count=count_related(Rack, 'role')
@@ -573,6 +653,7 @@ class RackRoleBulkEditView(generic.BulkEditView):
form = forms.RackRoleBulkEditForm
+@register_model_view(RackRole, 'bulk_delete', path='delete', detail=False)
class RackRoleBulkDeleteView(generic.BulkDeleteView):
queryset = RackRole.objects.annotate(
rack_count=count_related(Rack, 'role')
@@ -585,6 +666,7 @@ class RackRoleBulkDeleteView(generic.BulkDeleteView):
# RackTypes
#
+@register_model_view(RackType, 'list', path='', detail=False)
class RackTypeListView(generic.ObjectListView):
queryset = RackType.objects.annotate(
instance_count=count_related(Rack, 'rack_type')
@@ -604,6 +686,7 @@ class RackTypeView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(RackType, 'add', detail=False)
@register_model_view(RackType, 'edit')
class RackTypeEditView(generic.ObjectEditView):
queryset = RackType.objects.all()
@@ -615,11 +698,13 @@ class RackTypeDeleteView(generic.ObjectDeleteView):
queryset = RackType.objects.all()
+@register_model_view(RackType, 'bulk_import', detail=False)
class RackTypeBulkImportView(generic.BulkImportView):
queryset = RackType.objects.all()
model_form = forms.RackTypeImportForm
+@register_model_view(RackType, 'bulk_edit', path='edit', detail=False)
class RackTypeBulkEditView(generic.BulkEditView):
queryset = RackType.objects.all()
filterset = filtersets.RackTypeFilterSet
@@ -627,6 +712,7 @@ class RackTypeBulkEditView(generic.BulkEditView):
form = forms.RackTypeBulkEditForm
+@register_model_view(RackType, 'bulk_delete', path='delete', detail=False)
class RackTypeBulkDeleteView(generic.BulkDeleteView):
queryset = RackType.objects.all()
filterset = filtersets.RackTypeFilterSet
@@ -637,6 +723,7 @@ class RackTypeBulkDeleteView(generic.BulkDeleteView):
# Racks
#
+@register_model_view(Rack, 'list', path='', detail=False)
class RackListView(generic.ObjectListView):
queryset = Rack.objects.annotate(
device_count=count_related(Device, 'rack')
@@ -668,8 +755,7 @@ class RackElevationListView(generic.ObjectListView):
sort = request.GET.get('sort', 'name')
if sort not in ORDERING_CHOICES:
sort = 'name'
- sort_field = sort.replace("name", "_name") # Use natural ordering
- racks = racks.order_by(sort_field)
+ racks = racks.order_by(sort)
# Pagination
per_page = get_paginate_count(request)
@@ -711,8 +797,8 @@ class RackView(GetRelatedModelsMixin, generic.ObjectView):
peer_racks = peer_racks.filter(location=instance.location)
else:
peer_racks = peer_racks.filter(location__isnull=True)
- next_rack = peer_racks.filter(_name__gt=instance._name).first()
- prev_rack = peer_racks.filter(_name__lt=instance._name).reverse().first()
+ next_rack = peer_racks.filter(name__gt=instance.name).first()
+ prev_rack = peer_racks.filter(name__lt=instance.name).reverse().first()
# Determine any additional parameters to pass when embedding the rack elevations
svg_extra = '&'.join([
@@ -768,6 +854,7 @@ class RackNonRackedView(generic.ObjectChildrenView):
)
+@register_model_view(Rack, 'add', detail=False)
@register_model_view(Rack, 'edit')
class RackEditView(generic.ObjectEditView):
queryset = Rack.objects.all()
@@ -779,11 +866,13 @@ class RackDeleteView(generic.ObjectDeleteView):
queryset = Rack.objects.all()
+@register_model_view(Rack, 'bulk_import', detail=False)
class RackBulkImportView(generic.BulkImportView):
queryset = Rack.objects.all()
model_form = forms.RackImportForm
+@register_model_view(Rack, 'bulk_edit', path='edit', detail=False)
class RackBulkEditView(generic.BulkEditView):
queryset = Rack.objects.all()
filterset = filtersets.RackFilterSet
@@ -791,6 +880,7 @@ class RackBulkEditView(generic.BulkEditView):
form = forms.RackBulkEditForm
+@register_model_view(Rack, 'bulk_delete', path='delete', detail=False)
class RackBulkDeleteView(generic.BulkDeleteView):
queryset = Rack.objects.all()
filterset = filtersets.RackFilterSet
@@ -806,6 +896,7 @@ class RackContactsView(ObjectContactsView):
# Rack reservations
#
+@register_model_view(RackReservation, 'list', path='', detail=False)
class RackReservationListView(generic.ObjectListView):
queryset = RackReservation.objects.all()
filterset = filtersets.RackReservationFilterSet
@@ -818,6 +909,7 @@ class RackReservationView(generic.ObjectView):
queryset = RackReservation.objects.all()
+@register_model_view(RackReservation, 'add', detail=False)
@register_model_view(RackReservation, 'edit')
class RackReservationEditView(generic.ObjectEditView):
queryset = RackReservation.objects.all()
@@ -836,6 +928,7 @@ class RackReservationDeleteView(generic.ObjectDeleteView):
queryset = RackReservation.objects.all()
+@register_model_view(RackReservation, 'bulk_import', detail=False)
class RackReservationImportView(generic.BulkImportView):
queryset = RackReservation.objects.all()
model_form = forms.RackReservationImportForm
@@ -851,6 +944,7 @@ class RackReservationImportView(generic.BulkImportView):
return instance
+@register_model_view(RackReservation, 'bulk_edit', path='edit', detail=False)
class RackReservationBulkEditView(generic.BulkEditView):
queryset = RackReservation.objects.all()
filterset = filtersets.RackReservationFilterSet
@@ -858,6 +952,7 @@ class RackReservationBulkEditView(generic.BulkEditView):
form = forms.RackReservationBulkEditForm
+@register_model_view(RackReservation, 'bulk_delete', path='delete', detail=False)
class RackReservationBulkDeleteView(generic.BulkDeleteView):
queryset = RackReservation.objects.all()
filterset = filtersets.RackReservationFilterSet
@@ -868,6 +963,7 @@ class RackReservationBulkDeleteView(generic.BulkDeleteView):
# Manufacturers
#
+@register_model_view(Manufacturer, 'list', path='', detail=False)
class ManufacturerListView(generic.ObjectListView):
queryset = Manufacturer.objects.annotate(
devicetype_count=count_related(DeviceType, 'manufacturer'),
@@ -890,6 +986,7 @@ class ManufacturerView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(Manufacturer, 'add', detail=False)
@register_model_view(Manufacturer, 'edit')
class ManufacturerEditView(generic.ObjectEditView):
queryset = Manufacturer.objects.all()
@@ -901,11 +998,13 @@ class ManufacturerDeleteView(generic.ObjectDeleteView):
queryset = Manufacturer.objects.all()
+@register_model_view(Manufacturer, 'bulk_import', detail=False)
class ManufacturerBulkImportView(generic.BulkImportView):
queryset = Manufacturer.objects.all()
model_form = forms.ManufacturerImportForm
+@register_model_view(Manufacturer, 'bulk_edit', path='edit', detail=False)
class ManufacturerBulkEditView(generic.BulkEditView):
queryset = Manufacturer.objects.annotate(
devicetype_count=count_related(DeviceType, 'manufacturer'),
@@ -918,6 +1017,7 @@ class ManufacturerBulkEditView(generic.BulkEditView):
form = forms.ManufacturerBulkEditForm
+@register_model_view(Manufacturer, 'bulk_delete', path='delete', detail=False)
class ManufacturerBulkDeleteView(generic.BulkDeleteView):
queryset = Manufacturer.objects.annotate(
devicetype_count=count_related(DeviceType, 'manufacturer'),
@@ -938,6 +1038,7 @@ class ManufacturerContactsView(ObjectContactsView):
# Device types
#
+@register_model_view(DeviceType, 'list', path='', detail=False)
class DeviceTypeListView(generic.ObjectListView):
queryset = DeviceType.objects.annotate(
instance_count=count_related(Device, 'device_type')
@@ -961,6 +1062,7 @@ class DeviceTypeView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(DeviceType, 'add', detail=False)
@register_model_view(DeviceType, 'edit')
class DeviceTypeEditView(generic.ObjectEditView):
queryset = DeviceType.objects.all()
@@ -1122,6 +1224,7 @@ class DeviceTypeInventoryItemsView(DeviceTypeComponentsView):
)
+@register_model_view(DeviceType, 'bulk_import', detail=False)
class DeviceTypeImportView(generic.BulkImportView):
additional_permissions = [
'dcim.add_devicetype',
@@ -1156,6 +1259,7 @@ class DeviceTypeImportView(generic.BulkImportView):
return data
+@register_model_view(DeviceType, 'bulk_edit', path='edit', detail=False)
class DeviceTypeBulkEditView(generic.BulkEditView):
queryset = DeviceType.objects.annotate(
instance_count=count_related(Device, 'device_type')
@@ -1165,6 +1269,7 @@ class DeviceTypeBulkEditView(generic.BulkEditView):
form = forms.DeviceTypeBulkEditForm
+@register_model_view(DeviceType, 'bulk_delete', path='delete', detail=False)
class DeviceTypeBulkDeleteView(generic.BulkDeleteView):
queryset = DeviceType.objects.annotate(
instance_count=count_related(Device, 'device_type')
@@ -1177,6 +1282,7 @@ class DeviceTypeBulkDeleteView(generic.BulkDeleteView):
# Module types
#
+@register_model_view(ModuleType, 'list', path='', detail=False)
class ModuleTypeListView(generic.ObjectListView):
queryset = ModuleType.objects.annotate(
instance_count=count_related(Module, 'module_type')
@@ -1200,6 +1306,7 @@ class ModuleTypeView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(ModuleType, 'add', detail=False)
@register_model_view(ModuleType, 'edit')
class ModuleTypeEditView(generic.ObjectEditView):
queryset = ModuleType.objects.all()
@@ -1331,6 +1438,7 @@ class ModuleTypeModuleBaysView(ModuleTypeComponentsView):
)
+@register_model_view(ModuleType, 'bulk_import', detail=False)
class ModuleTypeImportView(generic.BulkImportView):
additional_permissions = [
'dcim.add_moduletype',
@@ -1359,6 +1467,7 @@ class ModuleTypeImportView(generic.BulkImportView):
return data
+@register_model_view(ModuleType, 'bulk_edit', path='edit', detail=False)
class ModuleTypeBulkEditView(generic.BulkEditView):
queryset = ModuleType.objects.annotate(
instance_count=count_related(Module, 'module_type')
@@ -1368,6 +1477,7 @@ class ModuleTypeBulkEditView(generic.BulkEditView):
form = forms.ModuleTypeBulkEditForm
+@register_model_view(ModuleType, 'bulk_delete', path='delete', detail=False)
class ModuleTypeBulkDeleteView(generic.BulkDeleteView):
queryset = ModuleType.objects.annotate(
instance_count=count_related(Module, 'module_type')
@@ -1380,6 +1490,7 @@ class ModuleTypeBulkDeleteView(generic.BulkDeleteView):
# Console port templates
#
+@register_model_view(ConsolePortTemplate, 'add', detail=False)
class ConsolePortTemplateCreateView(generic.ComponentCreateView):
queryset = ConsolePortTemplate.objects.all()
form = forms.ConsolePortTemplateCreateForm
@@ -1397,16 +1508,19 @@ class ConsolePortTemplateDeleteView(generic.ObjectDeleteView):
queryset = ConsolePortTemplate.objects.all()
+@register_model_view(ConsolePortTemplate, 'bulk_edit', path='edit', detail=False)
class ConsolePortTemplateBulkEditView(generic.BulkEditView):
queryset = ConsolePortTemplate.objects.all()
table = tables.ConsolePortTemplateTable
form = forms.ConsolePortTemplateBulkEditForm
+@register_model_view(ConsolePortTemplate, 'bulk_rename', path='rename', detail=False)
class ConsolePortTemplateBulkRenameView(generic.BulkRenameView):
queryset = ConsolePortTemplate.objects.all()
+@register_model_view(ConsolePortTemplate, 'bulk_delete', path='delete', detail=False)
class ConsolePortTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = ConsolePortTemplate.objects.all()
table = tables.ConsolePortTemplateTable
@@ -1416,6 +1530,7 @@ class ConsolePortTemplateBulkDeleteView(generic.BulkDeleteView):
# Console server port templates
#
+@register_model_view(ConsoleServerPortTemplate, 'add', detail=False)
class ConsoleServerPortTemplateCreateView(generic.ComponentCreateView):
queryset = ConsoleServerPortTemplate.objects.all()
form = forms.ConsoleServerPortTemplateCreateForm
@@ -1433,16 +1548,19 @@ class ConsoleServerPortTemplateDeleteView(generic.ObjectDeleteView):
queryset = ConsoleServerPortTemplate.objects.all()
+@register_model_view(ConsoleServerPortTemplate, 'bulk_edit', path='edit', detail=False)
class ConsoleServerPortTemplateBulkEditView(generic.BulkEditView):
queryset = ConsoleServerPortTemplate.objects.all()
table = tables.ConsoleServerPortTemplateTable
form = forms.ConsoleServerPortTemplateBulkEditForm
+@register_model_view(ConsoleServerPortTemplate, 'bulk_rename', detail=False)
class ConsoleServerPortTemplateBulkRenameView(generic.BulkRenameView):
queryset = ConsoleServerPortTemplate.objects.all()
+@register_model_view(ConsoleServerPortTemplate, 'bulk_delete', path='delete', detail=False)
class ConsoleServerPortTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = ConsoleServerPortTemplate.objects.all()
table = tables.ConsoleServerPortTemplateTable
@@ -1452,6 +1570,7 @@ class ConsoleServerPortTemplateBulkDeleteView(generic.BulkDeleteView):
# Power port templates
#
+@register_model_view(PowerPortTemplate, 'add', detail=False)
class PowerPortTemplateCreateView(generic.ComponentCreateView):
queryset = PowerPortTemplate.objects.all()
form = forms.PowerPortTemplateCreateForm
@@ -1469,16 +1588,19 @@ class PowerPortTemplateDeleteView(generic.ObjectDeleteView):
queryset = PowerPortTemplate.objects.all()
+@register_model_view(PowerPortTemplate, 'bulk_edit', path='edit', detail=False)
class PowerPortTemplateBulkEditView(generic.BulkEditView):
queryset = PowerPortTemplate.objects.all()
table = tables.PowerPortTemplateTable
form = forms.PowerPortTemplateBulkEditForm
+@register_model_view(PowerPortTemplate, 'bulk_rename', path='rename', detail=False)
class PowerPortTemplateBulkRenameView(generic.BulkRenameView):
queryset = PowerPortTemplate.objects.all()
+@register_model_view(PowerPortTemplate, 'bulk_delete', path='delete', detail=False)
class PowerPortTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = PowerPortTemplate.objects.all()
table = tables.PowerPortTemplateTable
@@ -1488,6 +1610,7 @@ class PowerPortTemplateBulkDeleteView(generic.BulkDeleteView):
# Power outlet templates
#
+@register_model_view(PowerOutletTemplate, 'add', detail=False)
class PowerOutletTemplateCreateView(generic.ComponentCreateView):
queryset = PowerOutletTemplate.objects.all()
form = forms.PowerOutletTemplateCreateForm
@@ -1505,16 +1628,19 @@ class PowerOutletTemplateDeleteView(generic.ObjectDeleteView):
queryset = PowerOutletTemplate.objects.all()
+@register_model_view(PowerOutletTemplate, 'bulk_edit', path='edit', detail=False)
class PowerOutletTemplateBulkEditView(generic.BulkEditView):
queryset = PowerOutletTemplate.objects.all()
table = tables.PowerOutletTemplateTable
form = forms.PowerOutletTemplateBulkEditForm
+@register_model_view(PowerOutletTemplate, 'bulk_rename', path='rename', detail=False)
class PowerOutletTemplateBulkRenameView(generic.BulkRenameView):
queryset = PowerOutletTemplate.objects.all()
+@register_model_view(PowerOutletTemplate, 'bulk_delete', path='delete', detail=False)
class PowerOutletTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = PowerOutletTemplate.objects.all()
table = tables.PowerOutletTemplateTable
@@ -1524,6 +1650,7 @@ class PowerOutletTemplateBulkDeleteView(generic.BulkDeleteView):
# Interface templates
#
+@register_model_view(InterfaceTemplate, 'add', detail=False)
class InterfaceTemplateCreateView(generic.ComponentCreateView):
queryset = InterfaceTemplate.objects.all()
form = forms.InterfaceTemplateCreateForm
@@ -1541,16 +1668,19 @@ class InterfaceTemplateDeleteView(generic.ObjectDeleteView):
queryset = InterfaceTemplate.objects.all()
+@register_model_view(InterfaceTemplate, 'bulk_edit', path='edit', detail=False)
class InterfaceTemplateBulkEditView(generic.BulkEditView):
queryset = InterfaceTemplate.objects.all()
table = tables.InterfaceTemplateTable
form = forms.InterfaceTemplateBulkEditForm
+@register_model_view(InterfaceTemplate, 'bulk_rename', path='rename', detail=False)
class InterfaceTemplateBulkRenameView(generic.BulkRenameView):
queryset = InterfaceTemplate.objects.all()
+@register_model_view(InterfaceTemplate, 'bulk_delete', path='delete', detail=False)
class InterfaceTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = InterfaceTemplate.objects.all()
table = tables.InterfaceTemplateTable
@@ -1560,6 +1690,7 @@ class InterfaceTemplateBulkDeleteView(generic.BulkDeleteView):
# Front port templates
#
+@register_model_view(FrontPortTemplate, 'add', detail=False)
class FrontPortTemplateCreateView(generic.ComponentCreateView):
queryset = FrontPortTemplate.objects.all()
form = forms.FrontPortTemplateCreateForm
@@ -1577,16 +1708,19 @@ class FrontPortTemplateDeleteView(generic.ObjectDeleteView):
queryset = FrontPortTemplate.objects.all()
+@register_model_view(FrontPortTemplate, 'bulk_edit', path='edit', detail=False)
class FrontPortTemplateBulkEditView(generic.BulkEditView):
queryset = FrontPortTemplate.objects.all()
table = tables.FrontPortTemplateTable
form = forms.FrontPortTemplateBulkEditForm
+@register_model_view(FrontPortTemplate, 'bulk_rename', path='rename', detail=False)
class FrontPortTemplateBulkRenameView(generic.BulkRenameView):
queryset = FrontPortTemplate.objects.all()
+@register_model_view(FrontPortTemplate, 'bulk_delete', path='delete', detail=False)
class FrontPortTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = FrontPortTemplate.objects.all()
table = tables.FrontPortTemplateTable
@@ -1596,6 +1730,7 @@ class FrontPortTemplateBulkDeleteView(generic.BulkDeleteView):
# Rear port templates
#
+@register_model_view(RearPortTemplate, 'add', detail=False)
class RearPortTemplateCreateView(generic.ComponentCreateView):
queryset = RearPortTemplate.objects.all()
form = forms.RearPortTemplateCreateForm
@@ -1613,16 +1748,19 @@ class RearPortTemplateDeleteView(generic.ObjectDeleteView):
queryset = RearPortTemplate.objects.all()
+@register_model_view(RearPortTemplate, 'bulk_edit', path='edit', detail=False)
class RearPortTemplateBulkEditView(generic.BulkEditView):
queryset = RearPortTemplate.objects.all()
table = tables.RearPortTemplateTable
form = forms.RearPortTemplateBulkEditForm
+@register_model_view(RearPortTemplate, 'bulk_rename', path='rename', detail=False)
class RearPortTemplateBulkRenameView(generic.BulkRenameView):
queryset = RearPortTemplate.objects.all()
+@register_model_view(RearPortTemplate, 'bulk_delete', path='delete', detail=False)
class RearPortTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = RearPortTemplate.objects.all()
table = tables.RearPortTemplateTable
@@ -1632,6 +1770,7 @@ class RearPortTemplateBulkDeleteView(generic.BulkDeleteView):
# Module bay templates
#
+@register_model_view(ModuleBayTemplate, 'add', detail=False)
class ModuleBayTemplateCreateView(generic.ComponentCreateView):
queryset = ModuleBayTemplate.objects.all()
form = forms.ModuleBayTemplateCreateForm
@@ -1649,16 +1788,19 @@ class ModuleBayTemplateDeleteView(generic.ObjectDeleteView):
queryset = ModuleBayTemplate.objects.all()
+@register_model_view(ModuleBayTemplate, 'bulk_edit', path='edit', detail=False)
class ModuleBayTemplateBulkEditView(generic.BulkEditView):
queryset = ModuleBayTemplate.objects.all()
table = tables.ModuleBayTemplateTable
form = forms.ModuleBayTemplateBulkEditForm
+@register_model_view(ModuleBayTemplate, 'bulk_rename', path='rename', detail=False)
class ModuleBayTemplateBulkRenameView(generic.BulkRenameView):
queryset = ModuleBayTemplate.objects.all()
+@register_model_view(ModuleBayTemplate, 'bulk_delete', path='delete', detail=False)
class ModuleBayTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = ModuleBayTemplate.objects.all()
table = tables.ModuleBayTemplateTable
@@ -1668,6 +1810,7 @@ class ModuleBayTemplateBulkDeleteView(generic.BulkDeleteView):
# Device bay templates
#
+@register_model_view(DeviceBayTemplate, 'add', detail=False)
class DeviceBayTemplateCreateView(generic.ComponentCreateView):
queryset = DeviceBayTemplate.objects.all()
form = forms.DeviceBayTemplateCreateForm
@@ -1685,16 +1828,19 @@ class DeviceBayTemplateDeleteView(generic.ObjectDeleteView):
queryset = DeviceBayTemplate.objects.all()
+@register_model_view(DeviceBayTemplate, 'bulk_edit', path='edit', detail=False)
class DeviceBayTemplateBulkEditView(generic.BulkEditView):
queryset = DeviceBayTemplate.objects.all()
table = tables.DeviceBayTemplateTable
form = forms.DeviceBayTemplateBulkEditForm
+@register_model_view(DeviceBayTemplate, 'bulk_rename', path='rename', detail=False)
class DeviceBayTemplateBulkRenameView(generic.BulkRenameView):
queryset = DeviceBayTemplate.objects.all()
+@register_model_view(DeviceBayTemplate, 'bulk_delete', path='delete', detail=False)
class DeviceBayTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = DeviceBayTemplate.objects.all()
table = tables.DeviceBayTemplateTable
@@ -1704,6 +1850,7 @@ class DeviceBayTemplateBulkDeleteView(generic.BulkDeleteView):
# Inventory item templates
#
+@register_model_view(InventoryItemTemplate, 'add', detail=False)
class InventoryItemTemplateCreateView(generic.ComponentCreateView):
queryset = InventoryItemTemplate.objects.all()
form = forms.InventoryItemTemplateCreateForm
@@ -1732,16 +1879,19 @@ class InventoryItemTemplateDeleteView(generic.ObjectDeleteView):
queryset = InventoryItemTemplate.objects.all()
+@register_model_view(InventoryItemTemplate, 'bulk_edit', path='edit', detail=False)
class InventoryItemTemplateBulkEditView(generic.BulkEditView):
queryset = InventoryItemTemplate.objects.all()
table = tables.InventoryItemTemplateTable
form = forms.InventoryItemTemplateBulkEditForm
+@register_model_view(InventoryItemTemplate, 'bulk_rename', path='rename', detail=False)
class InventoryItemTemplateBulkRenameView(generic.BulkRenameView):
queryset = InventoryItemTemplate.objects.all()
+@register_model_view(InventoryItemTemplate, 'bulk_delete', path='delete', detail=False)
class InventoryItemTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = InventoryItemTemplate.objects.all()
table = tables.InventoryItemTemplateTable
@@ -1751,6 +1901,7 @@ class InventoryItemTemplateBulkDeleteView(generic.BulkDeleteView):
# Device roles
#
+@register_model_view(DeviceRole, 'list', path='', detail=False)
class DeviceRoleListView(generic.ObjectListView):
queryset = DeviceRole.objects.annotate(
device_count=count_related(Device, 'role'),
@@ -1771,6 +1922,7 @@ class DeviceRoleView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(DeviceRole, 'add', detail=False)
@register_model_view(DeviceRole, 'edit')
class DeviceRoleEditView(generic.ObjectEditView):
queryset = DeviceRole.objects.all()
@@ -1782,11 +1934,13 @@ class DeviceRoleDeleteView(generic.ObjectDeleteView):
queryset = DeviceRole.objects.all()
+@register_model_view(DeviceRole, 'bulk_import', detail=False)
class DeviceRoleBulkImportView(generic.BulkImportView):
queryset = DeviceRole.objects.all()
model_form = forms.DeviceRoleImportForm
+@register_model_view(DeviceRole, 'bulk_edit', path='edit', detail=False)
class DeviceRoleBulkEditView(generic.BulkEditView):
queryset = DeviceRole.objects.annotate(
device_count=count_related(Device, 'role'),
@@ -1797,6 +1951,7 @@ class DeviceRoleBulkEditView(generic.BulkEditView):
form = forms.DeviceRoleBulkEditForm
+@register_model_view(DeviceRole, 'bulk_delete', path='delete', detail=False)
class DeviceRoleBulkDeleteView(generic.BulkDeleteView):
queryset = DeviceRole.objects.annotate(
device_count=count_related(Device, 'role'),
@@ -1810,6 +1965,7 @@ class DeviceRoleBulkDeleteView(generic.BulkDeleteView):
# Platforms
#
+@register_model_view(Platform, 'list', path='', detail=False)
class PlatformListView(generic.ObjectListView):
queryset = Platform.objects.annotate(
device_count=count_related(Device, 'platform'),
@@ -1830,6 +1986,7 @@ class PlatformView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(Platform, 'add', detail=False)
@register_model_view(Platform, 'edit')
class PlatformEditView(generic.ObjectEditView):
queryset = Platform.objects.all()
@@ -1841,11 +1998,13 @@ class PlatformDeleteView(generic.ObjectDeleteView):
queryset = Platform.objects.all()
+@register_model_view(Platform, 'bulk_import', detail=False)
class PlatformBulkImportView(generic.BulkImportView):
queryset = Platform.objects.all()
model_form = forms.PlatformImportForm
+@register_model_view(Platform, 'bulk_edit', path='edit', detail=False)
class PlatformBulkEditView(generic.BulkEditView):
queryset = Platform.objects.all()
filterset = filtersets.PlatformFilterSet
@@ -1853,6 +2012,7 @@ class PlatformBulkEditView(generic.BulkEditView):
form = forms.PlatformBulkEditForm
+@register_model_view(Platform, 'bulk_delete', path='delete', detail=False)
class PlatformBulkDeleteView(generic.BulkDeleteView):
queryset = Platform.objects.all()
filterset = filtersets.PlatformFilterSet
@@ -1863,6 +2023,7 @@ class PlatformBulkDeleteView(generic.BulkDeleteView):
# Devices
#
+@register_model_view(Device, 'list', path='', detail=False)
class DeviceListView(generic.ObjectListView):
queryset = Device.objects.all()
filterset = filtersets.DeviceFilterSet
@@ -1890,6 +2051,7 @@ class DeviceView(generic.ObjectView):
}
+@register_model_view(Device, 'add', detail=False)
@register_model_view(Device, 'edit')
class DeviceEditView(generic.ObjectEditView):
queryset = Device.objects.all()
@@ -2106,7 +2268,8 @@ class DeviceRenderConfigView(generic.ObjectView):
# If a direct export has been requested, return the rendered template content as a
# downloadable file.
if request.GET.get('export'):
- response = HttpResponse(context['rendered_config'], content_type='text')
+ content = context['rendered_config'] or context['error_message']
+ response = HttpResponse(content, content_type='text')
filename = f"{instance.name or 'config'}.txt"
response['Content-Disposition'] = f'attachment; filename="{filename}"'
return response
@@ -2124,17 +2287,18 @@ class DeviceRenderConfigView(generic.ObjectView):
# Render the config template
rendered_config = None
+ error_message = None
if config_template := instance.get_config_template():
try:
rendered_config = config_template.render(context=context_data)
except TemplateError as e:
- messages.error(request, _("An error occurred while rendering the template: {error}").format(error=e))
- rendered_config = traceback.format_exc()
+ error_message = _("An error occurred while rendering the template: {error}").format(error=e)
return {
'config_template': config_template,
'context_data': context_data,
'rendered_config': rendered_config,
+ 'error_message': error_message,
}
@@ -2157,6 +2321,7 @@ class DeviceVirtualMachinesView(generic.ObjectChildrenView):
return self.child_model.objects.restrict(request.user, 'view').filter(cluster=parent.cluster, device=parent)
+@register_model_view(Device, 'bulk_import', detail=False)
class DeviceBulkImportView(generic.BulkImportView):
queryset = Device.objects.all()
model_form = forms.DeviceImportForm
@@ -2173,6 +2338,7 @@ class DeviceBulkImportView(generic.BulkImportView):
return obj
+@register_model_view(Device, 'bulk_edit', path='edit', detail=False)
class DeviceBulkEditView(generic.BulkEditView):
queryset = Device.objects.prefetch_related('device_type__manufacturer')
filterset = filtersets.DeviceFilterSet
@@ -2180,12 +2346,14 @@ class DeviceBulkEditView(generic.BulkEditView):
form = forms.DeviceBulkEditForm
+@register_model_view(Device, 'bulk_delete', path='delete', detail=False)
class DeviceBulkDeleteView(generic.BulkDeleteView):
queryset = Device.objects.prefetch_related('device_type__manufacturer')
filterset = filtersets.DeviceFilterSet
table = tables.DeviceTable
+@register_model_view(Device, 'bulk_rename', path='rename', detail=False)
class DeviceBulkRenameView(generic.BulkRenameView):
queryset = Device.objects.all()
filterset = filtersets.DeviceFilterSet
@@ -2201,6 +2369,7 @@ class DeviceContactsView(ObjectContactsView):
# Modules
#
+@register_model_view(Module, 'list', path='', detail=False)
class ModuleListView(generic.ObjectListView):
queryset = Module.objects.prefetch_related('module_type__manufacturer')
filterset = filtersets.ModuleFilterSet
@@ -2218,6 +2387,7 @@ class ModuleView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(Module, 'add', detail=False)
@register_model_view(Module, 'edit')
class ModuleEditView(generic.ObjectEditView):
queryset = Module.objects.all()
@@ -2229,11 +2399,13 @@ class ModuleDeleteView(generic.ObjectDeleteView):
queryset = Module.objects.all()
+@register_model_view(Module, 'bulk_import', detail=False)
class ModuleBulkImportView(generic.BulkImportView):
queryset = Module.objects.all()
model_form = forms.ModuleImportForm
+@register_model_view(Module, 'bulk_edit', path='edit', detail=False)
class ModuleBulkEditView(generic.BulkEditView):
queryset = Module.objects.prefetch_related('module_type__manufacturer')
filterset = filtersets.ModuleFilterSet
@@ -2241,6 +2413,7 @@ class ModuleBulkEditView(generic.BulkEditView):
form = forms.ModuleBulkEditForm
+@register_model_view(Module, 'bulk_delete', path='delete', detail=False)
class ModuleBulkDeleteView(generic.BulkDeleteView):
queryset = Module.objects.prefetch_related('module_type__manufacturer')
filterset = filtersets.ModuleFilterSet
@@ -2251,6 +2424,7 @@ class ModuleBulkDeleteView(generic.BulkDeleteView):
# Console ports
#
+@register_model_view(ConsolePort, 'list', path='', detail=False)
class ConsolePortListView(generic.ObjectListView):
queryset = ConsolePort.objects.all()
filterset = filtersets.ConsolePortFilterSet
@@ -2268,6 +2442,7 @@ class ConsolePortView(generic.ObjectView):
queryset = ConsolePort.objects.all()
+@register_model_view(ConsolePort, 'add', detail=False)
class ConsolePortCreateView(generic.ComponentCreateView):
queryset = ConsolePort.objects.all()
form = forms.ConsolePortCreateForm
@@ -2285,11 +2460,13 @@ class ConsolePortDeleteView(generic.ObjectDeleteView):
queryset = ConsolePort.objects.all()
+@register_model_view(ConsolePort, 'bulk_import', detail=False)
class ConsolePortBulkImportView(generic.BulkImportView):
queryset = ConsolePort.objects.all()
model_form = forms.ConsolePortImportForm
+@register_model_view(ConsolePort, 'bulk_edit', path='edit', detail=False)
class ConsolePortBulkEditView(generic.BulkEditView):
queryset = ConsolePort.objects.all()
filterset = filtersets.ConsolePortFilterSet
@@ -2297,14 +2474,17 @@ class ConsolePortBulkEditView(generic.BulkEditView):
form = forms.ConsolePortBulkEditForm
+@register_model_view(ConsolePort, 'bulk_rename', path='rename', detail=False)
class ConsolePortBulkRenameView(generic.BulkRenameView):
queryset = ConsolePort.objects.all()
+@register_model_view(ConsolePort, 'bulk_disconnect', path='disconnect', detail=False)
class ConsolePortBulkDisconnectView(BulkDisconnectView):
queryset = ConsolePort.objects.all()
+@register_model_view(ConsolePort, 'bulk_delete', path='delete', detail=False)
class ConsolePortBulkDeleteView(generic.BulkDeleteView):
queryset = ConsolePort.objects.all()
filterset = filtersets.ConsolePortFilterSet
@@ -2319,6 +2499,7 @@ register_model_view(ConsolePort, 'trace', kwargs={'model': ConsolePort})(PathTra
# Console server ports
#
+@register_model_view(ConsoleServerPort, 'list', path='', detail=False)
class ConsoleServerPortListView(generic.ObjectListView):
queryset = ConsoleServerPort.objects.all()
filterset = filtersets.ConsoleServerPortFilterSet
@@ -2336,6 +2517,7 @@ class ConsoleServerPortView(generic.ObjectView):
queryset = ConsoleServerPort.objects.all()
+@register_model_view(ConsoleServerPort, 'add', detail=False)
class ConsoleServerPortCreateView(generic.ComponentCreateView):
queryset = ConsoleServerPort.objects.all()
form = forms.ConsoleServerPortCreateForm
@@ -2353,11 +2535,13 @@ class ConsoleServerPortDeleteView(generic.ObjectDeleteView):
queryset = ConsoleServerPort.objects.all()
+@register_model_view(ConsoleServerPort, 'bulk_import', detail=False)
class ConsoleServerPortBulkImportView(generic.BulkImportView):
queryset = ConsoleServerPort.objects.all()
model_form = forms.ConsoleServerPortImportForm
+@register_model_view(ConsoleServerPort, 'bulk_edit', path='edit', detail=False)
class ConsoleServerPortBulkEditView(generic.BulkEditView):
queryset = ConsoleServerPort.objects.all()
filterset = filtersets.ConsoleServerPortFilterSet
@@ -2365,14 +2549,17 @@ class ConsoleServerPortBulkEditView(generic.BulkEditView):
form = forms.ConsoleServerPortBulkEditForm
+@register_model_view(ConsoleServerPort, 'bulk_rename', path='rename', detail=False)
class ConsoleServerPortBulkRenameView(generic.BulkRenameView):
queryset = ConsoleServerPort.objects.all()
+@register_model_view(ConsoleServerPort, 'bulk_disconnect', path='disconnect', detail=False)
class ConsoleServerPortBulkDisconnectView(BulkDisconnectView):
queryset = ConsoleServerPort.objects.all()
+@register_model_view(ConsoleServerPort, 'bulk_delete', path='delete', detail=False)
class ConsoleServerPortBulkDeleteView(generic.BulkDeleteView):
queryset = ConsoleServerPort.objects.all()
filterset = filtersets.ConsoleServerPortFilterSet
@@ -2387,6 +2574,7 @@ register_model_view(ConsoleServerPort, 'trace', kwargs={'model': ConsoleServerPo
# Power ports
#
+@register_model_view(PowerPort, 'list', path='', detail=False)
class PowerPortListView(generic.ObjectListView):
queryset = PowerPort.objects.all()
filterset = filtersets.PowerPortFilterSet
@@ -2404,6 +2592,7 @@ class PowerPortView(generic.ObjectView):
queryset = PowerPort.objects.all()
+@register_model_view(PowerPort, 'add', detail=False)
class PowerPortCreateView(generic.ComponentCreateView):
queryset = PowerPort.objects.all()
form = forms.PowerPortCreateForm
@@ -2421,11 +2610,13 @@ class PowerPortDeleteView(generic.ObjectDeleteView):
queryset = PowerPort.objects.all()
+@register_model_view(PowerPort, 'bulk_import', detail=False)
class PowerPortBulkImportView(generic.BulkImportView):
queryset = PowerPort.objects.all()
model_form = forms.PowerPortImportForm
+@register_model_view(PowerPort, 'bulk_edit', path='edit', detail=False)
class PowerPortBulkEditView(generic.BulkEditView):
queryset = PowerPort.objects.all()
filterset = filtersets.PowerPortFilterSet
@@ -2433,14 +2624,17 @@ class PowerPortBulkEditView(generic.BulkEditView):
form = forms.PowerPortBulkEditForm
+@register_model_view(PowerPort, 'bulk_rename', path='rename', detail=False)
class PowerPortBulkRenameView(generic.BulkRenameView):
queryset = PowerPort.objects.all()
+@register_model_view(PowerPort, 'bulk_disconnect', path='disconnect', detail=False)
class PowerPortBulkDisconnectView(BulkDisconnectView):
queryset = PowerPort.objects.all()
+@register_model_view(PowerPort, 'bulk_delete', path='delete', detail=False)
class PowerPortBulkDeleteView(generic.BulkDeleteView):
queryset = PowerPort.objects.all()
filterset = filtersets.PowerPortFilterSet
@@ -2455,6 +2649,7 @@ register_model_view(PowerPort, 'trace', kwargs={'model': PowerPort})(PathTraceVi
# Power outlets
#
+@register_model_view(PowerOutlet, 'list', path='', detail=False)
class PowerOutletListView(generic.ObjectListView):
queryset = PowerOutlet.objects.all()
filterset = filtersets.PowerOutletFilterSet
@@ -2472,6 +2667,7 @@ class PowerOutletView(generic.ObjectView):
queryset = PowerOutlet.objects.all()
+@register_model_view(PowerOutlet, 'add', detail=False)
class PowerOutletCreateView(generic.ComponentCreateView):
queryset = PowerOutlet.objects.all()
form = forms.PowerOutletCreateForm
@@ -2489,11 +2685,13 @@ class PowerOutletDeleteView(generic.ObjectDeleteView):
queryset = PowerOutlet.objects.all()
+@register_model_view(PowerOutlet, 'bulk_import', detail=False)
class PowerOutletBulkImportView(generic.BulkImportView):
queryset = PowerOutlet.objects.all()
model_form = forms.PowerOutletImportForm
+@register_model_view(PowerOutlet, 'bulk_edit', path='edit', detail=False)
class PowerOutletBulkEditView(generic.BulkEditView):
queryset = PowerOutlet.objects.all()
filterset = filtersets.PowerOutletFilterSet
@@ -2501,14 +2699,17 @@ class PowerOutletBulkEditView(generic.BulkEditView):
form = forms.PowerOutletBulkEditForm
+@register_model_view(PowerOutlet, 'bulk_rename', path='rename', detail=False)
class PowerOutletBulkRenameView(generic.BulkRenameView):
queryset = PowerOutlet.objects.all()
+@register_model_view(PowerOutlet, 'bulk_disconnect', path='disconnect', detail=False)
class PowerOutletBulkDisconnectView(BulkDisconnectView):
queryset = PowerOutlet.objects.all()
+@register_model_view(PowerOutlet, 'bulk_delete', path='delete', detail=False)
class PowerOutletBulkDeleteView(generic.BulkDeleteView):
queryset = PowerOutlet.objects.all()
filterset = filtersets.PowerOutletFilterSet
@@ -2523,6 +2724,7 @@ register_model_view(PowerOutlet, 'trace', kwargs={'model': PowerOutlet})(PathTra
# Interfaces
#
+@register_model_view(Interface, 'list', path='', detail=False)
class InterfaceListView(generic.ObjectListView):
queryset = Interface.objects.all()
filterset = filtersets.InterfaceFilterSet
@@ -2552,7 +2754,7 @@ class InterfaceView(generic.ObjectView):
# Get bridge interfaces
bridge_interfaces = Interface.objects.restrict(request.user, 'view').filter(bridge=instance)
- bridge_interfaces_tables = tables.InterfaceTable(
+ bridge_interfaces_table = tables.InterfaceTable(
bridge_interfaces,
exclude=('device', 'parent'),
orderable=False
@@ -2560,7 +2762,7 @@ class InterfaceView(generic.ObjectView):
# Get child interfaces
child_interfaces = Interface.objects.restrict(request.user, 'view').filter(parent=instance)
- child_interfaces_tables = tables.InterfaceTable(
+ child_interfaces_table = tables.InterfaceTable(
child_interfaces,
exclude=('device', 'parent'),
orderable=False
@@ -2580,14 +2782,24 @@ class InterfaceView(generic.ObjectView):
orderable=False
)
+ # Get VLAN translation rules
+ vlan_translation_table = None
+ if instance.vlan_translation_policy:
+ vlan_translation_table = VLANTranslationRuleTable(
+ data=instance.vlan_translation_policy.rules.all(),
+ orderable=False
+ )
+
return {
'vdc_table': vdc_table,
- 'bridge_interfaces_table': bridge_interfaces_tables,
- 'child_interfaces_table': child_interfaces_tables,
+ 'bridge_interfaces_table': bridge_interfaces_table,
+ 'child_interfaces_table': child_interfaces_table,
'vlan_table': vlan_table,
+ 'vlan_translation_table': vlan_translation_table,
}
+@register_model_view(Interface, 'add', detail=False)
class InterfaceCreateView(generic.ComponentCreateView):
queryset = Interface.objects.all()
form = forms.InterfaceCreateForm
@@ -2605,11 +2817,13 @@ class InterfaceDeleteView(generic.ObjectDeleteView):
queryset = Interface.objects.all()
+@register_model_view(Interface, 'bulk_import', detail=False)
class InterfaceBulkImportView(generic.BulkImportView):
queryset = Interface.objects.all()
model_form = forms.InterfaceImportForm
+@register_model_view(Interface, 'bulk_edit', path='edit', detail=False)
class InterfaceBulkEditView(generic.BulkEditView):
queryset = Interface.objects.all()
filterset = filtersets.InterfaceFilterSet
@@ -2627,14 +2841,17 @@ class InterfaceBulkEditView(generic.BulkEditView):
obj.tagged_vlans.remove(*form.cleaned_data['remove_tagged_vlans'])
+@register_model_view(Interface, 'bulk_rename', path='rename', detail=False)
class InterfaceBulkRenameView(generic.BulkRenameView):
queryset = Interface.objects.all()
+@register_model_view(Interface, 'bulk_disconnect', path='disconnect', detail=False)
class InterfaceBulkDisconnectView(BulkDisconnectView):
queryset = Interface.objects.all()
+@register_model_view(Interface, 'bulk_delete', path='delete', detail=False)
class InterfaceBulkDeleteView(generic.BulkDeleteView):
# Ensure child interfaces are deleted prior to their parents
queryset = Interface.objects.order_by('device', 'parent', CollateAsChar('_name'))
@@ -2650,6 +2867,7 @@ register_model_view(Interface, 'trace', kwargs={'model': Interface})(PathTraceVi
# Front ports
#
+@register_model_view(FrontPort, 'list', path='', detail=False)
class FrontPortListView(generic.ObjectListView):
queryset = FrontPort.objects.all()
filterset = filtersets.FrontPortFilterSet
@@ -2667,6 +2885,7 @@ class FrontPortView(generic.ObjectView):
queryset = FrontPort.objects.all()
+@register_model_view(FrontPort, 'add', detail=False)
class FrontPortCreateView(generic.ComponentCreateView):
queryset = FrontPort.objects.all()
form = forms.FrontPortCreateForm
@@ -2684,11 +2903,13 @@ class FrontPortDeleteView(generic.ObjectDeleteView):
queryset = FrontPort.objects.all()
+@register_model_view(FrontPort, 'bulk_import', detail=False)
class FrontPortBulkImportView(generic.BulkImportView):
queryset = FrontPort.objects.all()
model_form = forms.FrontPortImportForm
+@register_model_view(FrontPort, 'bulk_edit', path='edit', detail=False)
class FrontPortBulkEditView(generic.BulkEditView):
queryset = FrontPort.objects.all()
filterset = filtersets.FrontPortFilterSet
@@ -2696,14 +2917,17 @@ class FrontPortBulkEditView(generic.BulkEditView):
form = forms.FrontPortBulkEditForm
+@register_model_view(FrontPort, 'bulk_rename', path='rename', detail=False)
class FrontPortBulkRenameView(generic.BulkRenameView):
queryset = FrontPort.objects.all()
+@register_model_view(FrontPort, 'bulk_disconnect', path='disconnect', detail=False)
class FrontPortBulkDisconnectView(BulkDisconnectView):
queryset = FrontPort.objects.all()
+@register_model_view(FrontPort, 'bulk_delete', path='delete', detail=False)
class FrontPortBulkDeleteView(generic.BulkDeleteView):
queryset = FrontPort.objects.all()
filterset = filtersets.FrontPortFilterSet
@@ -2718,6 +2942,7 @@ register_model_view(FrontPort, 'trace', kwargs={'model': FrontPort})(PathTraceVi
# Rear ports
#
+@register_model_view(RearPort, 'list', path='', detail=False)
class RearPortListView(generic.ObjectListView):
queryset = RearPort.objects.all()
filterset = filtersets.RearPortFilterSet
@@ -2735,6 +2960,7 @@ class RearPortView(generic.ObjectView):
queryset = RearPort.objects.all()
+@register_model_view(RearPort, 'add', detail=False)
class RearPortCreateView(generic.ComponentCreateView):
queryset = RearPort.objects.all()
form = forms.RearPortCreateForm
@@ -2752,11 +2978,13 @@ class RearPortDeleteView(generic.ObjectDeleteView):
queryset = RearPort.objects.all()
+@register_model_view(RearPort, 'bulk_import', detail=False)
class RearPortBulkImportView(generic.BulkImportView):
queryset = RearPort.objects.all()
model_form = forms.RearPortImportForm
+@register_model_view(RearPort, 'bulk_edit', path='edit', detail=False)
class RearPortBulkEditView(generic.BulkEditView):
queryset = RearPort.objects.all()
filterset = filtersets.RearPortFilterSet
@@ -2764,14 +2992,17 @@ class RearPortBulkEditView(generic.BulkEditView):
form = forms.RearPortBulkEditForm
+@register_model_view(RearPort, 'bulk_rename', path='rename', detail=False)
class RearPortBulkRenameView(generic.BulkRenameView):
queryset = RearPort.objects.all()
+@register_model_view(RearPort, 'bulk_disconnect', path='disconnect', detail=False)
class RearPortBulkDisconnectView(BulkDisconnectView):
queryset = RearPort.objects.all()
+@register_model_view(RearPort, 'bulk_delete', path='delete', detail=False)
class RearPortBulkDeleteView(generic.BulkDeleteView):
queryset = RearPort.objects.all()
filterset = filtersets.RearPortFilterSet
@@ -2786,6 +3017,7 @@ register_model_view(RearPort, 'trace', kwargs={'model': RearPort})(PathTraceView
# Module bays
#
+@register_model_view(ModuleBay, 'list', path='', detail=False)
class ModuleBayListView(generic.ObjectListView):
queryset = ModuleBay.objects.select_related('installed_module__module_type')
filterset = filtersets.ModuleBayFilterSet
@@ -2803,6 +3035,7 @@ class ModuleBayView(generic.ObjectView):
queryset = ModuleBay.objects.all()
+@register_model_view(ModuleBay, 'add', detail=False)
class ModuleBayCreateView(generic.ComponentCreateView):
queryset = ModuleBay.objects.all()
form = forms.ModuleBayCreateForm
@@ -2820,11 +3053,13 @@ class ModuleBayDeleteView(generic.ObjectDeleteView):
queryset = ModuleBay.objects.all()
+@register_model_view(ModuleBay, 'bulk_import', detail=False)
class ModuleBayBulkImportView(generic.BulkImportView):
queryset = ModuleBay.objects.all()
model_form = forms.ModuleBayImportForm
+@register_model_view(ModuleBay, 'bulk_edit', path='edit', detail=False)
class ModuleBayBulkEditView(generic.BulkEditView):
queryset = ModuleBay.objects.all()
filterset = filtersets.ModuleBayFilterSet
@@ -2832,10 +3067,12 @@ class ModuleBayBulkEditView(generic.BulkEditView):
form = forms.ModuleBayBulkEditForm
+@register_model_view(ModuleBay, 'bulk_rename', path='rename', detail=False)
class ModuleBayBulkRenameView(generic.BulkRenameView):
queryset = ModuleBay.objects.all()
+@register_model_view(ModuleBay, 'bulk_delete', path='delete', detail=False)
class ModuleBayBulkDeleteView(generic.BulkDeleteView):
queryset = ModuleBay.objects.all()
filterset = filtersets.ModuleBayFilterSet
@@ -2846,6 +3083,7 @@ class ModuleBayBulkDeleteView(generic.BulkDeleteView):
# Device bays
#
+@register_model_view(DeviceBay, 'list', path='', detail=False)
class DeviceBayListView(generic.ObjectListView):
queryset = DeviceBay.objects.all()
filterset = filtersets.DeviceBayFilterSet
@@ -2863,6 +3101,7 @@ class DeviceBayView(generic.ObjectView):
queryset = DeviceBay.objects.all()
+@register_model_view(DeviceBay, 'add', detail=False)
class DeviceBayCreateView(generic.ComponentCreateView):
queryset = DeviceBay.objects.all()
form = forms.DeviceBayCreateForm
@@ -2961,11 +3200,13 @@ class DeviceBayDepopulateView(generic.ObjectEditView):
})
+@register_model_view(DeviceBay, 'bulk_import', detail=False)
class DeviceBayBulkImportView(generic.BulkImportView):
queryset = DeviceBay.objects.all()
model_form = forms.DeviceBayImportForm
+@register_model_view(DeviceBay, 'bulk_edit', path='edit', detail=False)
class DeviceBayBulkEditView(generic.BulkEditView):
queryset = DeviceBay.objects.all()
filterset = filtersets.DeviceBayFilterSet
@@ -2973,10 +3214,12 @@ class DeviceBayBulkEditView(generic.BulkEditView):
form = forms.DeviceBayBulkEditForm
+@register_model_view(DeviceBay, 'bulk_rename', path='rename', detail=False)
class DeviceBayBulkRenameView(generic.BulkRenameView):
queryset = DeviceBay.objects.all()
+@register_model_view(DeviceBay, 'bulk_delete', path='delete', detail=False)
class DeviceBayBulkDeleteView(generic.BulkDeleteView):
queryset = DeviceBay.objects.all()
filterset = filtersets.DeviceBayFilterSet
@@ -2987,6 +3230,7 @@ class DeviceBayBulkDeleteView(generic.BulkDeleteView):
# Inventory items
#
+@register_model_view(InventoryItem, 'list', path='', detail=False)
class InventoryItemListView(generic.ObjectListView):
queryset = InventoryItem.objects.all()
filterset = filtersets.InventoryItemFilterSet
@@ -3010,6 +3254,7 @@ class InventoryItemEditView(generic.ObjectEditView):
form = forms.InventoryItemForm
+@register_model_view(InventoryItem, 'add', detail=False)
class InventoryItemCreateView(generic.ComponentCreateView):
queryset = InventoryItem.objects.all()
form = forms.InventoryItemCreateForm
@@ -3021,11 +3266,13 @@ class InventoryItemDeleteView(generic.ObjectDeleteView):
queryset = InventoryItem.objects.all()
+@register_model_view(InventoryItem, 'bulk_import', detail=False)
class InventoryItemBulkImportView(generic.BulkImportView):
queryset = InventoryItem.objects.all()
model_form = forms.InventoryItemImportForm
+@register_model_view(InventoryItem, 'bulk_edit', path='edit', detail=False)
class InventoryItemBulkEditView(generic.BulkEditView):
queryset = InventoryItem.objects.all()
filterset = filtersets.InventoryItemFilterSet
@@ -3033,10 +3280,12 @@ class InventoryItemBulkEditView(generic.BulkEditView):
form = forms.InventoryItemBulkEditForm
+@register_model_view(InventoryItem, 'bulk_rename', path='rename', detail=False)
class InventoryItemBulkRenameView(generic.BulkRenameView):
queryset = InventoryItem.objects.all()
+@register_model_view(InventoryItem, 'bulk_delete', path='delete', detail=False)
class InventoryItemBulkDeleteView(generic.BulkDeleteView):
queryset = InventoryItem.objects.all()
filterset = filtersets.InventoryItemFilterSet
@@ -3066,6 +3315,7 @@ class InventoryItemChildrenView(generic.ObjectChildrenView):
# Inventory item roles
#
+@register_model_view(InventoryItemRole, 'list', path='', detail=False)
class InventoryItemRoleListView(generic.ObjectListView):
queryset = InventoryItemRole.objects.annotate(
inventoryitem_count=count_related(InventoryItem, 'role'),
@@ -3085,6 +3335,7 @@ class InventoryItemRoleView(generic.ObjectView):
}
+@register_model_view(InventoryItemRole, 'add', detail=False)
@register_model_view(InventoryItemRole, 'edit')
class InventoryItemRoleEditView(generic.ObjectEditView):
queryset = InventoryItemRole.objects.all()
@@ -3096,11 +3347,13 @@ class InventoryItemRoleDeleteView(generic.ObjectDeleteView):
queryset = InventoryItemRole.objects.all()
+@register_model_view(InventoryItemRole, 'bulk_import', detail=False)
class InventoryItemRoleBulkImportView(generic.BulkImportView):
queryset = InventoryItemRole.objects.all()
model_form = forms.InventoryItemRoleImportForm
+@register_model_view(InventoryItemRole, 'bulk_edit', path='edit', detail=False)
class InventoryItemRoleBulkEditView(generic.BulkEditView):
queryset = InventoryItemRole.objects.annotate(
inventoryitem_count=count_related(InventoryItem, 'role'),
@@ -3110,6 +3363,7 @@ class InventoryItemRoleBulkEditView(generic.BulkEditView):
form = forms.InventoryItemRoleBulkEditForm
+@register_model_view(InventoryItemRole, 'bulk_delete', path='delete', detail=False)
class InventoryItemRoleBulkDeleteView(generic.BulkDeleteView):
queryset = InventoryItemRole.objects.annotate(
inventoryitem_count=count_related(InventoryItem, 'role'),
@@ -3177,17 +3431,6 @@ class DeviceBulkAddInterfaceView(generic.BulkComponentCreateView):
default_return_url = 'dcim:device_list'
-# class DeviceBulkAddFrontPortView(generic.BulkComponentCreateView):
-# parent_model = Device
-# parent_field = 'device'
-# form = forms.FrontPortBulkCreateForm
-# queryset = FrontPort.objects.all()
-# model_form = forms.FrontPortForm
-# filterset = filtersets.DeviceFilterSet
-# table = tables.DeviceTable
-# default_return_url = 'dcim:device_list'
-
-
class DeviceBulkAddRearPortView(generic.BulkComponentCreateView):
parent_model = Device
parent_field = 'device'
@@ -3236,6 +3479,7 @@ class DeviceBulkAddInventoryItemView(generic.BulkComponentCreateView):
# Cables
#
+@register_model_view(Cable, 'list', path='', detail=False)
class CableListView(generic.ObjectListView):
queryset = Cable.objects.prefetch_related(
'terminations__termination', 'terminations___device', 'terminations___rack', 'terminations___location',
@@ -3251,6 +3495,7 @@ class CableView(generic.ObjectView):
queryset = Cable.objects.all()
+@register_model_view(Cable, 'add', detail=False)
@register_model_view(Cable, 'edit')
class CableEditView(generic.ObjectEditView):
queryset = Cable.objects.all()
@@ -3298,11 +3543,13 @@ class CableDeleteView(generic.ObjectDeleteView):
queryset = Cable.objects.all()
+@register_model_view(Cable, 'bulk_import', detail=False)
class CableBulkImportView(generic.BulkImportView):
queryset = Cable.objects.all()
model_form = forms.CableImportForm
+@register_model_view(Cable, 'bulk_edit', path='edit', detail=False)
class CableBulkEditView(generic.BulkEditView):
queryset = Cable.objects.prefetch_related(
'terminations__termination', 'terminations___device', 'terminations___rack', 'terminations___location',
@@ -3313,6 +3560,7 @@ class CableBulkEditView(generic.BulkEditView):
form = forms.CableBulkEditForm
+@register_model_view(Cable, 'bulk_delete', path='delete', detail=False)
class CableBulkDeleteView(generic.BulkDeleteView):
queryset = Cable.objects.prefetch_related(
'terminations__termination', 'terminations___device', 'terminations___rack', 'terminations___location',
@@ -3378,6 +3626,7 @@ class InterfaceConnectionsListView(generic.ObjectListView):
# Virtual chassis
#
+@register_model_view(VirtualChassis, 'list', path='', detail=False)
class VirtualChassisListView(generic.ObjectListView):
queryset = VirtualChassis.objects.all()
table = tables.VirtualChassisTable
@@ -3397,6 +3646,7 @@ class VirtualChassisView(generic.ObjectView):
}
+@register_model_view(VirtualChassis, 'add', detail=False)
class VirtualChassisCreateView(generic.ObjectEditView):
queryset = VirtualChassis.objects.all()
form = forms.VirtualChassisCreateForm
@@ -3517,7 +3767,9 @@ class VirtualChassisAddMemberView(ObjectPermissionRequiredMixin, GetReturnURLMix
membership_form.save()
messages.success(request, mark_safe(
- _('Added member {device} ').format(url=device.get_absolute_url(), device=escape(device))
+ _('Added member {device} ').format(
+ url=device.get_absolute_url(), device=escape(device)
+ )
))
if '_addanother' in request.POST:
@@ -3592,11 +3844,13 @@ class VirtualChassisRemoveMemberView(ObjectPermissionRequiredMixin, GetReturnURL
})
+@register_model_view(VirtualChassis, 'bulk_import', detail=False)
class VirtualChassisBulkImportView(generic.BulkImportView):
queryset = VirtualChassis.objects.all()
model_form = forms.VirtualChassisImportForm
+@register_model_view(VirtualChassis, 'bulk_edit', path='edit', detail=False)
class VirtualChassisBulkEditView(generic.BulkEditView):
queryset = VirtualChassis.objects.all()
filterset = filtersets.VirtualChassisFilterSet
@@ -3604,6 +3858,7 @@ class VirtualChassisBulkEditView(generic.BulkEditView):
form = forms.VirtualChassisBulkEditForm
+@register_model_view(VirtualChassis, 'bulk_delete', path='delete', detail=False)
class VirtualChassisBulkDeleteView(generic.BulkDeleteView):
queryset = VirtualChassis.objects.all()
filterset = filtersets.VirtualChassisFilterSet
@@ -3614,6 +3869,7 @@ class VirtualChassisBulkDeleteView(generic.BulkDeleteView):
# Power panels
#
+@register_model_view(PowerPanel, 'list', path='', detail=False)
class PowerPanelListView(generic.ObjectListView):
queryset = PowerPanel.objects.annotate(
powerfeed_count=count_related(PowerFeed, 'power_panel')
@@ -3633,6 +3889,7 @@ class PowerPanelView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(PowerPanel, 'add', detail=False)
@register_model_view(PowerPanel, 'edit')
class PowerPanelEditView(generic.ObjectEditView):
queryset = PowerPanel.objects.all()
@@ -3644,11 +3901,13 @@ class PowerPanelDeleteView(generic.ObjectDeleteView):
queryset = PowerPanel.objects.all()
+@register_model_view(PowerPanel, 'bulk_import', detail=False)
class PowerPanelBulkImportView(generic.BulkImportView):
queryset = PowerPanel.objects.all()
model_form = forms.PowerPanelImportForm
+@register_model_view(PowerPanel, 'bulk_edit', path='edit', detail=False)
class PowerPanelBulkEditView(generic.BulkEditView):
queryset = PowerPanel.objects.all()
filterset = filtersets.PowerPanelFilterSet
@@ -3656,6 +3915,7 @@ class PowerPanelBulkEditView(generic.BulkEditView):
form = forms.PowerPanelBulkEditForm
+@register_model_view(PowerPanel, 'bulk_delete', path='delete', detail=False)
class PowerPanelBulkDeleteView(generic.BulkDeleteView):
queryset = PowerPanel.objects.annotate(
powerfeed_count=count_related(PowerFeed, 'power_panel')
@@ -3673,6 +3933,7 @@ class PowerPanelContactsView(ObjectContactsView):
# Power feeds
#
+@register_model_view(PowerFeed, 'list', path='', detail=False)
class PowerFeedListView(generic.ObjectListView):
queryset = PowerFeed.objects.all()
filterset = filtersets.PowerFeedFilterSet
@@ -3685,6 +3946,7 @@ class PowerFeedView(generic.ObjectView):
queryset = PowerFeed.objects.all()
+@register_model_view(PowerFeed, 'add', detail=False)
@register_model_view(PowerFeed, 'edit')
class PowerFeedEditView(generic.ObjectEditView):
queryset = PowerFeed.objects.all()
@@ -3696,11 +3958,13 @@ class PowerFeedDeleteView(generic.ObjectDeleteView):
queryset = PowerFeed.objects.all()
+@register_model_view(PowerFeed, 'bulk_import', detail=False)
class PowerFeedBulkImportView(generic.BulkImportView):
queryset = PowerFeed.objects.all()
model_form = forms.PowerFeedImportForm
+@register_model_view(PowerFeed, 'bulk_edit', path='edit', detail=False)
class PowerFeedBulkEditView(generic.BulkEditView):
queryset = PowerFeed.objects.all()
filterset = filtersets.PowerFeedFilterSet
@@ -3708,10 +3972,12 @@ class PowerFeedBulkEditView(generic.BulkEditView):
form = forms.PowerFeedBulkEditForm
+@register_model_view(PowerFeed, 'bulk_disconnect', path='disconnect', detail=False)
class PowerFeedBulkDisconnectView(BulkDisconnectView):
queryset = PowerFeed.objects.all()
+@register_model_view(PowerFeed, 'bulk_delete', path='delete', detail=False)
class PowerFeedBulkDeleteView(generic.BulkDeleteView):
queryset = PowerFeed.objects.all()
filterset = filtersets.PowerFeedFilterSet
@@ -3722,7 +3988,11 @@ class PowerFeedBulkDeleteView(generic.BulkDeleteView):
register_model_view(PowerFeed, 'trace', kwargs={'model': PowerFeed})(PathTraceView)
-# VDC
+#
+# Virtual device contexts
+#
+
+@register_model_view(VirtualDeviceContext, 'list', path='', detail=False)
class VirtualDeviceContextListView(generic.ObjectListView):
queryset = VirtualDeviceContext.objects.annotate(
interface_count=count_related(Interface, 'vdcs'),
@@ -3748,6 +4018,7 @@ class VirtualDeviceContextView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(VirtualDeviceContext, 'add', detail=False)
@register_model_view(VirtualDeviceContext, 'edit')
class VirtualDeviceContextEditView(generic.ObjectEditView):
queryset = VirtualDeviceContext.objects.all()
@@ -3759,11 +4030,13 @@ class VirtualDeviceContextDeleteView(generic.ObjectDeleteView):
queryset = VirtualDeviceContext.objects.all()
+@register_model_view(VirtualDeviceContext, 'bulk_import', detail=False)
class VirtualDeviceContextBulkImportView(generic.BulkImportView):
queryset = VirtualDeviceContext.objects.all()
model_form = forms.VirtualDeviceContextImportForm
+@register_model_view(VirtualDeviceContext, 'bulk_edit', path='edit', detail=False)
class VirtualDeviceContextBulkEditView(generic.BulkEditView):
queryset = VirtualDeviceContext.objects.all()
filterset = filtersets.VirtualDeviceContextFilterSet
@@ -3771,7 +4044,58 @@ class VirtualDeviceContextBulkEditView(generic.BulkEditView):
form = forms.VirtualDeviceContextBulkEditForm
+@register_model_view(VirtualDeviceContext, 'bulk_delete', path='delete', detail=False)
class VirtualDeviceContextBulkDeleteView(generic.BulkDeleteView):
queryset = VirtualDeviceContext.objects.all()
filterset = filtersets.VirtualDeviceContextFilterSet
table = tables.VirtualDeviceContextTable
+
+
+#
+# MAC addresses
+#
+
+@register_model_view(MACAddress, 'list', path='', detail=False)
+class MACAddressListView(generic.ObjectListView):
+ queryset = MACAddress.objects.all()
+ filterset = filtersets.MACAddressFilterSet
+ filterset_form = forms.MACAddressFilterForm
+ table = tables.MACAddressTable
+
+
+@register_model_view(MACAddress)
+class MACAddressView(generic.ObjectView):
+ queryset = MACAddress.objects.all()
+
+
+@register_model_view(MACAddress, 'add', detail=False)
+@register_model_view(MACAddress, 'edit')
+class MACAddressEditView(generic.ObjectEditView):
+ queryset = MACAddress.objects.all()
+ form = forms.MACAddressForm
+
+
+@register_model_view(MACAddress, 'delete')
+class MACAddressDeleteView(generic.ObjectDeleteView):
+ queryset = MACAddress.objects.all()
+
+
+@register_model_view(MACAddress, 'bulk_import', detail=False)
+class MACAddressBulkImportView(generic.BulkImportView):
+ queryset = MACAddress.objects.all()
+ model_form = forms.MACAddressImportForm
+
+
+@register_model_view(MACAddress, 'bulk_edit', path='edit', detail=False)
+class MACAddressBulkEditView(generic.BulkEditView):
+ queryset = MACAddress.objects.all()
+ filterset = filtersets.MACAddressFilterSet
+ table = tables.MACAddressTable
+ form = forms.MACAddressBulkEditForm
+
+
+@register_model_view(MACAddress, 'bulk_delete', path='delete', detail=False)
+class MACAddressBulkDeleteView(generic.BulkDeleteView):
+ queryset = MACAddress.objects.all()
+ filterset = filtersets.MACAddressFilterSet
+ table = tables.MACAddressTable
diff --git a/netbox/extras/api/nested_serializers.py b/netbox/extras/api/nested_serializers.py
deleted file mode 100644
index 235cdd6d6..000000000
--- a/netbox/extras/api/nested_serializers.py
+++ /dev/null
@@ -1,135 +0,0 @@
-import warnings
-
-from rest_framework import serializers
-
-from extras import models
-from netbox.api.serializers import NestedTagSerializer, WritableNestedSerializer
-
-__all__ = [
- 'NestedBookmarkSerializer',
- 'NestedConfigContextSerializer',
- 'NestedConfigTemplateSerializer',
- 'NestedCustomFieldChoiceSetSerializer',
- 'NestedCustomFieldSerializer',
- 'NestedCustomLinkSerializer',
- 'NestedEventRuleSerializer',
- 'NestedExportTemplateSerializer',
- 'NestedImageAttachmentSerializer',
- 'NestedJournalEntrySerializer',
- 'NestedSavedFilterSerializer',
- 'NestedScriptSerializer',
- 'NestedTagSerializer', # Defined in netbox.api.serializers
- 'NestedWebhookSerializer',
-]
-
-# TODO: Remove in v4.2
-warnings.warn(
- "Dedicated nested serializers will be removed in NetBox v4.2. Use Serializer(nested=True) instead.",
- DeprecationWarning
-)
-
-
-class NestedEventRuleSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.EventRule
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedWebhookSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.Webhook
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedCustomFieldSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.CustomField
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedCustomFieldChoiceSetSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.CustomFieldChoiceSet
- fields = ['id', 'url', 'display_url', 'display', 'name', 'choices_count']
-
-
-class NestedCustomLinkSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.CustomLink
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedConfigContextSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ConfigContext
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedConfigTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ConfigTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedExportTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ExportTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-class NestedSavedFilterSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.SavedFilter
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug']
-
-
-class NestedBookmarkSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.Bookmark
- fields = ['id', 'url', 'display', 'object_id', 'object_type']
-
-
-class NestedImageAttachmentSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ImageAttachment
- fields = ['id', 'url', 'display', 'name', 'image']
-
-
-class NestedJournalEntrySerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.JournalEntry
- fields = ['id', 'url', 'display_url', 'display', 'created']
-
-
-class NestedScriptSerializer(WritableNestedSerializer):
- url = serializers.HyperlinkedIdentityField(
- view_name='extras-api:script-detail',
- lookup_field='full_name',
- lookup_url_kwarg='pk'
- )
- display_url = serializers.HyperlinkedIdentityField(
- view_name='extras:script',
- lookup_field='full_name',
- lookup_url_kwarg='pk'
- )
- name = serializers.CharField(read_only=True)
- display = serializers.SerializerMethodField(read_only=True)
-
- class Meta:
- model = models.Script
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
- def get_display(self, obj):
- return f'{obj.name} ({obj.module})'
diff --git a/netbox/extras/constants.py b/netbox/extras/constants.py
index 3bfe3b21b..994586aca 100644
--- a/netbox/extras/constants.py
+++ b/netbox/extras/constants.py
@@ -79,6 +79,7 @@ DEFAULT_DASHBOARD = [
'feed_url': 'http://netbox.dev/rss/',
'max_entries': 10,
'cache_timeout': 14400,
+ 'requires_internet': True,
}
},
{
diff --git a/netbox/extras/dashboard/widgets.py b/netbox/extras/dashboard/widgets.py
index c56e4cd7d..eeed5414f 100644
--- a/netbox/extras/dashboard/widgets.py
+++ b/netbox/extras/dashboard/widgets.py
@@ -275,6 +275,7 @@ class RSSFeedWidget(DashboardWidget):
default_config = {
'max_entries': 10,
'cache_timeout': 3600, # seconds
+ 'requires_internet': True,
}
description = _('Embed an RSS feed from an external website.')
template_name = 'extras/dashboard/widgets/rssfeed.html'
@@ -285,6 +286,10 @@ class RSSFeedWidget(DashboardWidget):
feed_url = forms.URLField(
label=_('Feed URL')
)
+ requires_internet = forms.BooleanField(
+ label=_('Requires external connection'),
+ required=False,
+ )
max_entries = forms.IntegerField(
min_value=1,
max_value=1000,
@@ -309,6 +314,11 @@ class RSSFeedWidget(DashboardWidget):
return f'dashboard_rss_{url_checksum}'
def get_feed(self):
+ if self.config.get('requires_internet') and settings.ISOLATED_DEPLOYMENT:
+ return {
+ 'isolated_deployment': True,
+ }
+
# Fetch RSS content from cache if available
if feed_content := cache.get(self.cache_key):
return {
diff --git a/netbox/extras/events.py b/netbox/extras/events.py
index f13a3b48f..95170e18d 100644
--- a/netbox/extras/events.py
+++ b/netbox/extras/events.py
@@ -90,6 +90,10 @@ def process_event_rules(event_rules, object_type, event_type, data, username=Non
if not event_rule.eval_conditions(data):
continue
+ # Compile event data
+ event_data = event_rule.action_data or {}
+ event_data.update(data)
+
# Webhooks
if event_rule.action_type == EventRuleActionChoices.WEBHOOK:
@@ -102,7 +106,7 @@ def process_event_rules(event_rules, object_type, event_type, data, username=Non
"event_rule": event_rule,
"model_name": object_type.model,
"event_type": event_type,
- "data": data,
+ "data": event_data,
"snapshots": snapshots,
"timestamp": timezone.now().isoformat(),
"username": username,
@@ -130,7 +134,7 @@ def process_event_rules(event_rules, object_type, event_type, data, username=Non
instance=event_rule.action_object,
name=script.name,
user=user,
- data=data
+ data=event_data
)
# Notification groups
@@ -138,8 +142,8 @@ def process_event_rules(event_rules, object_type, event_type, data, username=Non
# Bulk-create notifications for all members of the notification group
event_rule.action_object.notify(
object_type=object_type,
- object_id=data['id'],
- object_repr=data.get('display'),
+ object_id=event_data['id'],
+ object_repr=event_data.get('display'),
event_type=event_type
)
diff --git a/netbox/extras/forms/bulk_import.py b/netbox/extras/forms/bulk_import.py
index 55c9cd764..655a5d6ca 100644
--- a/netbox/extras/forms/bulk_import.py
+++ b/netbox/extras/forms/bulk_import.py
@@ -202,7 +202,7 @@ class EventRuleImportForm(NetBoxModelImportForm):
model = EventRule
fields = (
'name', 'description', 'enabled', 'conditions', 'object_types', 'event_types', 'action_type',
- 'action_object', 'comments', 'tags'
+ 'comments', 'tags'
)
def clean(self):
@@ -223,7 +223,7 @@ class EventRuleImportForm(NetBoxModelImportForm):
from extras.scripts import get_module_and_script
module_name, script_name = action_object.split('.', 1)
try:
- module, script = get_module_and_script(module_name, script_name)
+ script = get_module_and_script(module_name, script_name)[1]
except ObjectDoesNotExist:
raise forms.ValidationError(_("Script {name} not found").format(name=action_object))
self.instance.action_object = script
diff --git a/netbox/extras/jobs.py b/netbox/extras/jobs.py
index a913fe456..10d76e3aa 100644
--- a/netbox/extras/jobs.py
+++ b/netbox/extras/jobs.py
@@ -1,14 +1,14 @@
import logging
import traceback
-from contextlib import nullcontext
+from contextlib import ExitStack
from django.db import transaction
from django.utils.translation import gettext as _
from core.signals import clear_events
from extras.models import Script as ScriptModel
-from netbox.context_managers import event_tracking
from netbox.jobs import JobRunner
+from netbox.registry import registry
from utilities.exceptions import AbortScript, AbortTransaction
from .utils import is_report
@@ -22,9 +22,7 @@ class ScriptJob(JobRunner):
"""
class Meta:
- # An explicit job name is not set because it doesn't make sense in this context. Currently, there's no scenario
- # where jobs other than this one are used. Therefore, it is hidden, resulting in a cleaner job table overview.
- name = ''
+ name = 'Run Script'
def run_script(self, script, request, data, commit):
"""
@@ -102,5 +100,7 @@ class ScriptJob(JobRunner):
# Execute the script. If commit is True, wrap it with the event_tracking context manager to ensure we process
# change logging, event rules, etc.
- with event_tracking(request) if commit else nullcontext():
+ with ExitStack() as stack:
+ for request_processor in registry['request_processors']:
+ stack.enter_context(request_processor(request))
self.run_script(script, request, data, commit)
diff --git a/netbox/extras/management/commands/reindex.py b/netbox/extras/management/commands/reindex.py
index 21442be93..5495bbf5f 100644
--- a/netbox/extras/management/commands/reindex.py
+++ b/netbox/extras/management/commands/reindex.py
@@ -53,7 +53,8 @@ class Command(BaseCommand):
else:
raise CommandError(
- f"Invalid model: {label}. Model names must be in the format or .."
+ f"Invalid model: {label}. Model names must be in the format or "
+ f".."
)
return indexers
diff --git a/netbox/extras/management/commands/runscript.py b/netbox/extras/management/commands/runscript.py
index d5fb435ad..847d89396 100644
--- a/netbox/extras/management/commands/runscript.py
+++ b/netbox/extras/management/commands/runscript.py
@@ -38,7 +38,7 @@ class Command(BaseCommand):
data = {}
module_name, script_name = script.split('.', 1)
- module, script_obj = get_module_and_script(module_name, script_name)
+ script_obj = get_module_and_script(module_name, script_name)[1]
script = script_obj.python_class
# Take user from command line if provided and exists, other
diff --git a/netbox/extras/migrations/0001_squashed.py b/netbox/extras/migrations/0001_squashed.py
index 6f1f77e53..a2514fa5e 100644
--- a/netbox/extras/migrations/0001_squashed.py
+++ b/netbox/extras/migrations/0001_squashed.py
@@ -9,7 +9,6 @@ import utilities.validators
class Migration(migrations.Migration):
-
initial = True
dependencies = [
@@ -99,8 +98,22 @@ class Migration(migrations.Migration):
fields=[
('object_id', models.IntegerField(db_index=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
- ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)s_tagged_items', to='contenttypes.contenttype')),
- ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)s_items', to='extras.tag')),
+ (
+ 'content_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(app_label)s_%(class)s_tagged_items',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ (
+ 'tag',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='%(app_label)s_%(class)s_items',
+ to='extras.tag',
+ ),
+ ),
],
),
migrations.CreateModel(
@@ -116,9 +129,32 @@ class Migration(migrations.Migration):
('object_repr', models.CharField(editable=False, max_length=200)),
('prechange_data', models.JSONField(blank=True, editable=False, null=True)),
('postchange_data', models.JSONField(blank=True, editable=False, null=True)),
- ('changed_object_type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype')),
- ('related_object_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype')),
- ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='changes', to=settings.AUTH_USER_MODEL)),
+ (
+ 'changed_object_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype'
+ ),
+ ),
+ (
+ 'related_object_type',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ (
+ 'user',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='changes',
+ to=settings.AUTH_USER_MODEL,
+ ),
+ ),
],
options={
'ordering': ['-time'],
@@ -133,8 +169,16 @@ class Migration(migrations.Migration):
('created', models.DateTimeField(auto_now_add=True)),
('kind', models.CharField(default='info', max_length=30)),
('comments', models.TextField()),
- ('assigned_object_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
- ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
+ (
+ 'assigned_object_type',
+ models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype'),
+ ),
+ (
+ 'created_by',
+ models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL
+ ),
+ ),
],
options={
'verbose_name_plural': 'journal entries',
@@ -151,8 +195,24 @@ class Migration(migrations.Migration):
('status', models.CharField(default='pending', max_length=30)),
('data', models.JSONField(blank=True, null=True)),
('job_id', models.UUIDField(unique=True)),
- ('obj_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='job_results', to='contenttypes.contenttype')),
- ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
+ (
+ 'obj_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='job_results',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ (
+ 'user',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to=settings.AUTH_USER_MODEL,
+ ),
+ ),
],
options={
'ordering': ['obj_type', 'name', '-created'],
@@ -163,12 +223,20 @@ class Migration(migrations.Migration):
fields=[
('id', models.BigAutoField(primary_key=True, serialize=False)),
('object_id', models.PositiveIntegerField()),
- ('image', models.ImageField(height_field='image_height', upload_to=extras.utils.image_upload, width_field='image_width')),
+ (
+ 'image',
+ models.ImageField(
+ height_field='image_height', upload_to=extras.utils.image_upload, width_field='image_width'
+ ),
+ ),
('image_height', models.PositiveSmallIntegerField()),
('image_width', models.PositiveSmallIntegerField()),
('name', models.CharField(blank=True, max_length=50)),
('created', models.DateTimeField(auto_now_add=True)),
- ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
+ (
+ 'content_type',
+ models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype'),
+ ),
],
options={
'ordering': ('name', 'pk'),
@@ -184,7 +252,10 @@ class Migration(migrations.Migration):
('mime_type', models.CharField(blank=True, max_length=50)),
('file_extension', models.CharField(blank=True, max_length=15)),
('as_attachment', models.BooleanField(default=True)),
- ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
+ (
+ 'content_type',
+ models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype'),
+ ),
],
options={
'ordering': ['content_type', 'name'],
@@ -201,7 +272,10 @@ class Migration(migrations.Migration):
('group_name', models.CharField(blank=True, max_length=50)),
('button_class', models.CharField(default='default', max_length=30)),
('new_window', models.BooleanField(default=False)),
- ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
+ (
+ 'content_type',
+ models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype'),
+ ),
],
options={
'ordering': ['group_name', 'weight', 'name'],
@@ -221,8 +295,16 @@ class Migration(migrations.Migration):
('weight', models.PositiveSmallIntegerField(default=100)),
('validation_minimum', models.PositiveIntegerField(blank=True, null=True)),
('validation_maximum', models.PositiveIntegerField(blank=True, null=True)),
- ('validation_regex', models.CharField(blank=True, max_length=500, validators=[utilities.validators.validate_regex])),
- ('choices', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=100), blank=True, null=True, size=None)),
+ (
+ 'validation_regex',
+ models.CharField(blank=True, max_length=500, validators=[utilities.validators.validate_regex]),
+ ),
+ (
+ 'choices',
+ django.contrib.postgres.fields.ArrayField(
+ base_field=models.CharField(max_length=100), blank=True, null=True, size=None
+ ),
+ ),
('content_types', models.ManyToManyField(related_name='custom_fields', to='contenttypes.ContentType')),
],
options={
diff --git a/netbox/extras/migrations/0002_squashed_0059.py b/netbox/extras/migrations/0002_squashed_0059.py
index 98bed255a..b664b286e 100644
--- a/netbox/extras/migrations/0002_squashed_0059.py
+++ b/netbox/extras/migrations/0002_squashed_0059.py
@@ -2,7 +2,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0002_auto_20160622_1821'),
('extras', '0001_initial'),
@@ -131,10 +130,6 @@ class Migration(migrations.Migration):
name='webhook',
unique_together={('payload_url', 'type_create', 'type_update', 'type_delete')},
),
- migrations.AlterIndexTogether(
- name='taggeditem',
- index_together={('content_type', 'object_id')},
- ),
migrations.AlterUniqueTogether(
name='exporttemplate',
unique_together={('content_type', 'name')},
diff --git a/netbox/extras/migrations/0060_squashed_0086.py b/netbox/extras/migrations/0060_squashed_0086.py
index 0d5d03008..3bde7480f 100644
--- a/netbox/extras/migrations/0060_squashed_0086.py
+++ b/netbox/extras/migrations/0060_squashed_0086.py
@@ -12,7 +12,6 @@ import utilities.json
class Migration(migrations.Migration):
-
replaces = [
('extras', '0060_customlink_button_class'),
('extras', '0061_extras_change_logging'),
@@ -40,7 +39,7 @@ class Migration(migrations.Migration):
('extras', '0083_search'),
('extras', '0084_staging'),
('extras', '0085_synced_data'),
- ('extras', '0086_configtemplate')
+ ('extras', '0086_configtemplate'),
]
dependencies = [
@@ -114,7 +113,23 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='customfield',
name='name',
- field=models.CharField(max_length=50, unique=True, validators=[django.core.validators.RegexValidator(flags=re.RegexFlag['IGNORECASE'], message='Only alphanumeric characters and underscores are allowed.', regex='^[a-z0-9_]+$'), django.core.validators.RegexValidator(flags=re.RegexFlag['IGNORECASE'], inverse_match=True, message='Double underscores are not permitted in custom field names.', regex='__')]),
+ field=models.CharField(
+ max_length=50,
+ unique=True,
+ validators=[
+ django.core.validators.RegexValidator(
+ flags=re.RegexFlag['IGNORECASE'],
+ message='Only alphanumeric characters and underscores are allowed.',
+ regex='^[a-z0-9_]+$',
+ ),
+ django.core.validators.RegexValidator(
+ flags=re.RegexFlag['IGNORECASE'],
+ inverse_match=True,
+ message='Double underscores are not permitted in custom field names.',
+ regex='__',
+ ),
+ ],
+ ),
),
migrations.AlterField(
model_name='customfield',
@@ -134,7 +149,9 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='customfield',
name='object_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype'
+ ),
),
migrations.AddField(
model_name='customlink',
@@ -314,11 +331,16 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='exporttemplate',
- constraint=models.UniqueConstraint(fields=('content_type', 'name'), name='extras_exporttemplate_unique_content_type_name'),
+ constraint=models.UniqueConstraint(
+ fields=('content_type', 'name'), name='extras_exporttemplate_unique_content_type_name'
+ ),
),
migrations.AddConstraint(
model_name='webhook',
- constraint=models.UniqueConstraint(fields=('payload_url', 'type_create', 'type_update', 'type_delete'), name='extras_webhook_unique_payload_url_types'),
+ constraint=models.UniqueConstraint(
+ fields=('payload_url', 'type_create', 'type_update', 'type_delete'),
+ name='extras_webhook_unique_payload_url_types',
+ ),
),
migrations.AddField(
model_name='jobresult',
@@ -328,7 +350,9 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='jobresult',
name='interval',
- field=models.PositiveIntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]),
+ field=models.PositiveIntegerField(
+ blank=True, null=True, validators=[django.core.validators.MinValueValidator(1)]
+ ),
),
migrations.AddField(
model_name='jobresult',
@@ -379,7 +403,12 @@ class Migration(migrations.Migration):
('shared', models.BooleanField(default=True)),
('parameters', models.JSONField()),
('content_types', models.ManyToManyField(related_name='saved_filters', to='contenttypes.contenttype')),
- ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
+ (
+ 'user',
+ models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL
+ ),
+ ),
],
options={
'ordering': ('weight', 'name'),
@@ -400,7 +429,12 @@ class Migration(migrations.Migration):
('type', models.CharField(max_length=30)),
('value', extras.fields.CachedValueField()),
('weight', models.PositiveSmallIntegerField(default=1000)),
- ('object_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.contenttype')),
+ (
+ 'object_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.contenttype'
+ ),
+ ),
],
options={
'ordering': ('weight', 'object_type', 'object_id'),
@@ -414,7 +448,12 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('name', models.CharField(max_length=100, unique=True)),
('description', models.CharField(blank=True, max_length=200)),
- ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
+ (
+ 'user',
+ models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL
+ ),
+ ),
],
options={
'ordering': ('name',),
@@ -429,8 +468,18 @@ class Migration(migrations.Migration):
('action', models.CharField(max_length=20)),
('object_id', models.PositiveBigIntegerField(blank=True, null=True)),
('data', models.JSONField(blank=True, null=True)),
- ('branch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='staged_changes', to='extras.branch')),
- ('object_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.contenttype')),
+ (
+ 'branch',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='staged_changes', to='extras.branch'
+ ),
+ ),
+ (
+ 'object_type',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.contenttype'
+ ),
+ ),
],
options={
'ordering': ('pk',),
@@ -439,7 +488,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='configcontext',
name='data_file',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='core.datafile'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='core.datafile',
+ ),
),
migrations.AddField(
model_name='configcontext',
@@ -449,7 +504,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='configcontext',
name='data_source',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='core.datasource'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='core.datasource',
+ ),
),
migrations.AddField(
model_name='configcontext',
@@ -464,7 +525,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='exporttemplate',
name='data_file',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='core.datafile'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='core.datafile',
+ ),
),
migrations.AddField(
model_name='exporttemplate',
@@ -474,7 +541,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='exporttemplate',
name='data_source',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='core.datasource'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='core.datasource',
+ ),
),
migrations.AddField(
model_name='exporttemplate',
@@ -498,8 +571,26 @@ class Migration(migrations.Migration):
('description', models.CharField(blank=True, max_length=200)),
('template_code', models.TextField()),
('environment_params', models.JSONField(blank=True, default=dict, null=True)),
- ('data_file', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='core.datafile')),
- ('data_source', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='core.datasource')),
+ (
+ 'data_file',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='+',
+ to='core.datafile',
+ ),
+ ),
+ (
+ 'data_source',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='core.datasource',
+ ),
+ ),
('auto_sync_enabled', models.BooleanField(default=False)),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
diff --git a/netbox/extras/migrations/0087_squashed_0098.py b/netbox/extras/migrations/0087_squashed_0098.py
index 55f276ecd..839f4cbe4 100644
--- a/netbox/extras/migrations/0087_squashed_0098.py
+++ b/netbox/extras/migrations/0087_squashed_0098.py
@@ -9,7 +9,6 @@ import utilities.json
class Migration(migrations.Migration):
-
replaces = [
('extras', '0087_dashboard'),
('extras', '0088_jobresult_webhooks'),
@@ -22,7 +21,7 @@ class Migration(migrations.Migration):
('extras', '0095_bookmarks'),
('extras', '0096_customfieldchoiceset'),
('extras', '0097_customfield_remove_choices'),
- ('extras', '0098_webhook_custom_field_data_webhook_tags')
+ ('extras', '0098_webhook_custom_field_data_webhook_tags'),
]
dependencies = [
@@ -39,7 +38,14 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('layout', models.JSONField(default=list)),
('config', models.JSONField(default=dict)),
- ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='dashboard', to=settings.AUTH_USER_MODEL)),
+ (
+ 'user',
+ models.OneToOneField(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='dashboard',
+ to=settings.AUTH_USER_MODEL,
+ ),
+ ),
],
),
migrations.AddField(
@@ -64,8 +70,7 @@ class Migration(migrations.Migration):
),
migrations.CreateModel(
name='ReportModule',
- fields=[
- ],
+ fields=[],
options={
'proxy': True,
'ordering': ('file_root', 'file_path'),
@@ -76,8 +81,7 @@ class Migration(migrations.Migration):
),
migrations.CreateModel(
name='ScriptModule',
- fields=[
- ],
+ fields=[],
options={
'proxy': True,
'ordering': ('file_root', 'file_path'),
@@ -98,10 +102,9 @@ class Migration(migrations.Migration):
name='object_types',
field=models.ManyToManyField(blank=True, related_name='+', to='contenttypes.contenttype'),
),
- migrations.RenameIndex(
+ migrations.AddIndex(
model_name='taggeditem',
- new_name='extras_tagg_content_717743_idx',
- old_fields=('content_type', 'object_id'),
+ index=models.Index(fields=['content_type', 'object_id'], name='extras_tagg_content_717743_idx'),
),
migrations.CreateModel(
name='Bookmark',
@@ -109,7 +112,10 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True)),
('object_id', models.PositiveBigIntegerField()),
- ('object_type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype')),
+ (
+ 'object_type',
+ models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype'),
+ ),
('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
],
options={
@@ -118,7 +124,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='bookmark',
- constraint=models.UniqueConstraint(fields=('object_type', 'object_id', 'user'), name='extras_bookmark_unique_per_object_and_user'),
+ constraint=models.UniqueConstraint(
+ fields=('object_type', 'object_id', 'user'), name='extras_bookmark_unique_per_object_and_user'
+ ),
),
migrations.CreateModel(
name='CustomFieldChoiceSet',
@@ -129,7 +137,17 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=100, unique=True)),
('description', models.CharField(blank=True, max_length=200)),
('base_choices', models.CharField(blank=True, max_length=50)),
- ('extra_choices', django.contrib.postgres.fields.ArrayField(base_field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=100), size=2), blank=True, null=True, size=None)),
+ (
+ 'extra_choices',
+ django.contrib.postgres.fields.ArrayField(
+ base_field=django.contrib.postgres.fields.ArrayField(
+ base_field=models.CharField(max_length=100), size=2
+ ),
+ blank=True,
+ null=True,
+ size=None,
+ ),
+ ),
('order_alphabetically', models.BooleanField(default=False)),
],
options={
@@ -139,7 +157,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='customfield',
name='choice_set',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='choices_for', to='extras.customfieldchoiceset'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='choices_for',
+ to='extras.customfieldchoiceset',
+ ),
),
migrations.RemoveField(
model_name='customfield',
diff --git a/netbox/extras/migrations/0099_cachedvalue_ordering.py b/netbox/extras/migrations/0099_cachedvalue_ordering.py
index 242ffd983..36b91d59b 100644
--- a/netbox/extras/migrations/0099_cachedvalue_ordering.py
+++ b/netbox/extras/migrations/0099_cachedvalue_ordering.py
@@ -4,7 +4,6 @@ from django.db import migrations
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0098_webhook_custom_field_data_webhook_tags'),
]
diff --git a/netbox/extras/migrations/0100_customfield_ui_attrs.py b/netbox/extras/migrations/0100_customfield_ui_attrs.py
index a4a713a86..b1a404d16 100644
--- a/netbox/extras/migrations/0100_customfield_ui_attrs.py
+++ b/netbox/extras/migrations/0100_customfield_ui_attrs.py
@@ -14,7 +14,6 @@ def update_ui_attrs(apps, schema_editor):
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0099_cachedvalue_ordering'),
]
@@ -30,10 +29,7 @@ class Migration(migrations.Migration):
name='ui_visible',
field=models.CharField(default='always', max_length=50),
),
- migrations.RunPython(
- code=update_ui_attrs,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=update_ui_attrs, reverse_code=migrations.RunPython.noop),
migrations.RemoveField(
model_name='customfield',
name='ui_visibility',
diff --git a/netbox/extras/migrations/0101_eventrule.py b/netbox/extras/migrations/0101_eventrule.py
index 3d236c847..605307c27 100644
--- a/netbox/extras/migrations/0101_eventrule.py
+++ b/netbox/extras/migrations/0101_eventrule.py
@@ -8,8 +8,8 @@ from extras.choices import *
def move_webhooks(apps, schema_editor):
- Webhook = apps.get_model("extras", "Webhook")
- EventRule = apps.get_model("extras", "EventRule")
+ Webhook = apps.get_model('extras', 'Webhook')
+ EventRule = apps.get_model('extras', 'EventRule')
webhook_ct = ContentType.objects.get_for_model(Webhook).pk
for webhook in Webhook.objects.all():
@@ -39,7 +39,6 @@ class Migration(migrations.Migration):
]
operations = [
-
# Create the EventRule model
migrations.CreateModel(
name='EventRule',
@@ -93,12 +92,12 @@ class Migration(migrations.Migration):
),
migrations.AddIndex(
model_name='eventrule',
- index=models.Index(fields=['action_object_type', 'action_object_id'], name='extras_even_action__d9e2af_idx'),
+ index=models.Index(
+ fields=['action_object_type', 'action_object_id'], name='extras_even_action__d9e2af_idx'
+ ),
),
-
# Replicate Webhook data
migrations.RunPython(move_webhooks),
-
# Remove obsolete fields from Webhook
migrations.RemoveConstraint(
model_name='webhook',
@@ -136,7 +135,6 @@ class Migration(migrations.Migration):
model_name='webhook',
name='type_update',
),
-
# Add description field to Webhook
migrations.AddField(
model_name='webhook',
diff --git a/netbox/extras/migrations/0102_move_configrevision.py b/netbox/extras/migrations/0102_move_configrevision.py
index 36eef1205..64ff8c9ad 100644
--- a/netbox/extras/migrations/0102_move_configrevision.py
+++ b/netbox/extras/migrations/0102_move_configrevision.py
@@ -13,7 +13,6 @@ def update_content_type(apps, schema_editor):
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0101_eventrule'),
]
@@ -32,8 +31,5 @@ class Migration(migrations.Migration):
),
],
),
- migrations.RunPython(
- code=update_content_type,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=update_content_type, reverse_code=migrations.RunPython.noop),
]
diff --git a/netbox/extras/migrations/0103_gfk_indexes.py b/netbox/extras/migrations/0103_gfk_indexes.py
index 2ccbdb2ff..f32b2e116 100644
--- a/netbox/extras/migrations/0103_gfk_indexes.py
+++ b/netbox/extras/migrations/0103_gfk_indexes.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0102_move_configrevision'),
]
@@ -20,15 +19,21 @@ class Migration(migrations.Migration):
),
migrations.AddIndex(
model_name='journalentry',
- index=models.Index(fields=['assigned_object_type', 'assigned_object_id'], name='extras_jour_assigne_76510f_idx'),
+ index=models.Index(
+ fields=['assigned_object_type', 'assigned_object_id'], name='extras_jour_assigne_76510f_idx'
+ ),
),
migrations.AddIndex(
model_name='objectchange',
- index=models.Index(fields=['changed_object_type', 'changed_object_id'], name='extras_obje_changed_927fe5_idx'),
+ index=models.Index(
+ fields=['changed_object_type', 'changed_object_id'], name='extras_obje_changed_927fe5_idx'
+ ),
),
migrations.AddIndex(
model_name='objectchange',
- index=models.Index(fields=['related_object_type', 'related_object_id'], name='extras_obje_related_bfcdef_idx'),
+ index=models.Index(
+ fields=['related_object_type', 'related_object_id'], name='extras_obje_related_bfcdef_idx'
+ ),
),
migrations.AddIndex(
model_name='stagedchange',
diff --git a/netbox/extras/migrations/0105_customfield_min_max_values.py b/netbox/extras/migrations/0105_customfield_min_max_values.py
index bcf3f97bd..71a0dcc68 100644
--- a/netbox/extras/migrations/0105_customfield_min_max_values.py
+++ b/netbox/extras/migrations/0105_customfield_min_max_values.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0104_stagedchange_remove_change_logging'),
]
diff --git a/netbox/extras/migrations/0106_bookmark_user_cascade_deletion.py b/netbox/extras/migrations/0106_bookmark_user_cascade_deletion.py
index d7bef2f0b..bc0e1bbd0 100644
--- a/netbox/extras/migrations/0106_bookmark_user_cascade_deletion.py
+++ b/netbox/extras/migrations/0106_bookmark_user_cascade_deletion.py
@@ -6,7 +6,6 @@ import django.db.models.deletion
class Migration(migrations.Migration):
-
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('extras', '0105_customfield_min_max_values'),
diff --git a/netbox/extras/migrations/0107_cachedvalue_extras_cachedvalue_object.py b/netbox/extras/migrations/0107_cachedvalue_extras_cachedvalue_object.py
index 15ce375a2..3f2907192 100644
--- a/netbox/extras/migrations/0107_cachedvalue_extras_cachedvalue_object.py
+++ b/netbox/extras/migrations/0107_cachedvalue_extras_cachedvalue_object.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0106_bookmark_user_cascade_deletion'),
]
diff --git a/netbox/extras/migrations/0108_convert_reports_to_scripts.py b/netbox/extras/migrations/0108_convert_reports_to_scripts.py
index b547c41c3..948bac754 100644
--- a/netbox/extras/migrations/0108_convert_reports_to_scripts.py
+++ b/netbox/extras/migrations/0108_convert_reports_to_scripts.py
@@ -12,16 +12,12 @@ def convert_reportmodule_jobs(apps, schema_editor):
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0107_cachedvalue_extras_cachedvalue_object'),
]
operations = [
- migrations.RunPython(
- code=convert_reportmodule_jobs,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=convert_reportmodule_jobs, reverse_code=migrations.RunPython.noop),
migrations.DeleteModel(
name='Report',
),
diff --git a/netbox/extras/migrations/0109_script_model.py b/netbox/extras/migrations/0109_script_model.py
index 6bfd2c14c..706a776af 100644
--- a/netbox/extras/migrations/0109_script_model.py
+++ b/netbox/extras/migrations/0109_script_model.py
@@ -30,7 +30,7 @@ def get_python_name(scriptmodule):
"""
Return the Python name of a ScriptModule's file on disk.
"""
- path, filename = os.path.split(scriptmodule.file_path)
+ filename = os.path.split(scriptmodule.file_path)[0]
return os.path.splitext(filename)[0]
@@ -55,9 +55,10 @@ def get_module_scripts(scriptmodule):
"""
Return a dictionary mapping of name and script class inside the passed ScriptModule.
"""
+
def get_name(cls):
# For child objects in submodules use the full import path w/o the root module as the name
- return cls.full_name.split(".", maxsplit=1)[1]
+ return cls.full_name.split('.', maxsplit=1)[1]
loader = SourceFileLoader(get_python_name(scriptmodule), get_full_path(scriptmodule))
try:
@@ -100,17 +101,13 @@ def update_scripts(apps, schema_editor):
)
# Update all Jobs associated with this ScriptModule & script name to point to the new Script object
- Job.objects.filter(
- object_type_id=scriptmodule_ct.id,
- object_id=module.pk,
- name=script_name
- ).update(object_type_id=script_ct.id, object_id=script.pk)
+ Job.objects.filter(object_type_id=scriptmodule_ct.id, object_id=module.pk, name=script_name).update(
+ object_type_id=script_ct.id, object_id=script.pk
+ )
# Update all Jobs associated with this ScriptModule & script name to point to the new Script object
- Job.objects.filter(
- object_type_id=reportmodule_ct.id,
- object_id=module.pk,
- name=script_name
- ).update(object_type_id=script_ct.id, object_id=script.pk)
+ Job.objects.filter(object_type_id=reportmodule_ct.id, object_id=module.pk, name=script_name).update(
+ object_type_id=script_ct.id, object_id=script.pk
+ )
def update_event_rules(apps, schema_editor):
@@ -128,16 +125,13 @@ def update_event_rules(apps, schema_editor):
for eventrule in EventRule.objects.filter(action_object_type=scriptmodule_ct):
name = eventrule.action_parameters.get('script_name')
- obj, created = Script.objects.get_or_create(
- module_id=eventrule.action_object_id,
- name=name,
- defaults={'is_executable': False}
+ obj, __ = Script.objects.get_or_create(
+ module_id=eventrule.action_object_id, name=name, defaults={'is_executable': False}
)
EventRule.objects.filter(pk=eventrule.pk).update(action_object_type=script_ct, action_object_id=obj.id)
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0108_convert_reports_to_scripts'),
]
@@ -148,8 +142,16 @@ class Migration(migrations.Migration):
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('name', models.CharField(editable=False, max_length=79)),
- ('module', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='scripts', to='extras.scriptmodule')),
- ('is_executable', models.BooleanField(editable=False, default=True))
+ (
+ 'module',
+ models.ForeignKey(
+ editable=False,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='scripts',
+ to='extras.scriptmodule',
+ ),
+ ),
+ ('is_executable', models.BooleanField(editable=False, default=True)),
],
options={
'ordering': ('module', 'name'),
@@ -159,12 +161,6 @@ class Migration(migrations.Migration):
model_name='script',
constraint=models.UniqueConstraint(fields=('name', 'module'), name='extras_script_unique_name_module'),
),
- migrations.RunPython(
- code=update_scripts,
- reverse_code=migrations.RunPython.noop
- ),
- migrations.RunPython(
- code=update_event_rules,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=update_scripts, reverse_code=migrations.RunPython.noop),
+ migrations.RunPython(code=update_event_rules, reverse_code=migrations.RunPython.noop),
]
diff --git a/netbox/extras/migrations/0110_remove_eventrule_action_parameters.py b/netbox/extras/migrations/0110_remove_eventrule_action_parameters.py
index b7373bdce..494107643 100644
--- a/netbox/extras/migrations/0110_remove_eventrule_action_parameters.py
+++ b/netbox/extras/migrations/0110_remove_eventrule_action_parameters.py
@@ -2,7 +2,6 @@ from django.db import migrations
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0109_script_model'),
]
diff --git a/netbox/extras/migrations/0111_rename_content_types.py b/netbox/extras/migrations/0111_rename_content_types.py
index acd6aef0f..a9f80b146 100644
--- a/netbox/extras/migrations/0111_rename_content_types.py
+++ b/netbox/extras/migrations/0111_rename_content_types.py
@@ -3,7 +3,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('core', '0010_gfk_indexes'),
('extras', '0110_remove_eventrule_action_parameters'),
@@ -24,16 +23,19 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='customfield',
name='object_type',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='core.objecttype'),
- ),
- migrations.RunSQL(
- "ALTER TABLE IF EXISTS extras_customfield_content_types_id_seq RENAME TO extras_customfield_object_types_id_seq"
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='core.objecttype'
+ ),
),
+ migrations.RunSQL((
+ 'ALTER TABLE IF EXISTS extras_customfield_content_types_id_seq '
+ 'RENAME TO extras_customfield_object_types_id_seq'
+ )),
# Pre-v2.10 sequence name (see #15605)
- migrations.RunSQL(
- "ALTER TABLE IF EXISTS extras_customfield_obj_type_id_seq RENAME TO extras_customfield_object_types_id_seq"
- ),
-
+ migrations.RunSQL((
+ 'ALTER TABLE IF EXISTS extras_customfield_obj_type_id_seq '
+ 'RENAME TO extras_customfield_object_types_id_seq'
+ )),
# Custom links
migrations.RenameField(
model_name='customlink',
@@ -46,9 +48,8 @@ class Migration(migrations.Migration):
field=models.ManyToManyField(related_name='custom_links', to='core.objecttype'),
),
migrations.RunSQL(
- "ALTER TABLE extras_customlink_content_types_id_seq RENAME TO extras_customlink_object_types_id_seq"
+ 'ALTER TABLE extras_customlink_content_types_id_seq RENAME TO extras_customlink_object_types_id_seq'
),
-
# Event rules
migrations.RenameField(
model_name='eventrule',
@@ -61,9 +62,8 @@ class Migration(migrations.Migration):
field=models.ManyToManyField(related_name='event_rules', to='core.objecttype'),
),
migrations.RunSQL(
- "ALTER TABLE extras_eventrule_content_types_id_seq RENAME TO extras_eventrule_object_types_id_seq"
+ 'ALTER TABLE extras_eventrule_content_types_id_seq RENAME TO extras_eventrule_object_types_id_seq'
),
-
# Export templates
migrations.RenameField(
model_name='exporttemplate',
@@ -76,9 +76,8 @@ class Migration(migrations.Migration):
field=models.ManyToManyField(related_name='export_templates', to='core.objecttype'),
),
migrations.RunSQL(
- "ALTER TABLE extras_exporttemplate_content_types_id_seq RENAME TO extras_exporttemplate_object_types_id_seq"
+ 'ALTER TABLE extras_exporttemplate_content_types_id_seq RENAME TO extras_exporttemplate_object_types_id_seq'
),
-
# Saved filters
migrations.RenameField(
model_name='savedfilter',
@@ -91,9 +90,8 @@ class Migration(migrations.Migration):
field=models.ManyToManyField(related_name='saved_filters', to='core.objecttype'),
),
migrations.RunSQL(
- "ALTER TABLE extras_savedfilter_content_types_id_seq RENAME TO extras_savedfilter_object_types_id_seq"
+ 'ALTER TABLE extras_savedfilter_content_types_id_seq RENAME TO extras_savedfilter_object_types_id_seq'
),
-
# Image attachments
migrations.RemoveIndex(
model_name='imageattachment',
diff --git a/netbox/extras/migrations/0112_tag_update_object_types.py b/netbox/extras/migrations/0112_tag_update_object_types.py
index 87ec117a4..e863ba8c3 100644
--- a/netbox/extras/migrations/0112_tag_update_object_types.py
+++ b/netbox/extras/migrations/0112_tag_update_object_types.py
@@ -2,7 +2,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('core', '0010_gfk_indexes'),
('extras', '0111_rename_content_types'),
diff --git a/netbox/extras/migrations/0113_customfield_rename_object_type.py b/netbox/extras/migrations/0113_customfield_rename_object_type.py
index 73c4a2a61..9ad9fbbc4 100644
--- a/netbox/extras/migrations/0113_customfield_rename_object_type.py
+++ b/netbox/extras/migrations/0113_customfield_rename_object_type.py
@@ -2,7 +2,6 @@ from django.db import migrations
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0112_tag_update_object_types'),
]
diff --git a/netbox/extras/migrations/0114_customfield_add_comments.py b/netbox/extras/migrations/0114_customfield_add_comments.py
index cd85db1ba..ad9e3d46f 100644
--- a/netbox/extras/migrations/0114_customfield_add_comments.py
+++ b/netbox/extras/migrations/0114_customfield_add_comments.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0113_customfield_rename_object_type'),
]
diff --git a/netbox/extras/migrations/0115_convert_dashboard_widgets.py b/netbox/extras/migrations/0115_convert_dashboard_widgets.py
index c85c83ecf..28f6eade9 100644
--- a/netbox/extras/migrations/0115_convert_dashboard_widgets.py
+++ b/netbox/extras/migrations/0115_convert_dashboard_widgets.py
@@ -16,14 +16,10 @@ def update_dashboard_widgets(apps, schema_editor):
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0114_customfield_add_comments'),
]
operations = [
- migrations.RunPython(
- code=update_dashboard_widgets,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=update_dashboard_widgets, reverse_code=migrations.RunPython.noop),
]
diff --git a/netbox/extras/migrations/0116_custom_link_button_color.py b/netbox/extras/migrations/0116_custom_link_button_color.py
index 665d73017..ff47eab11 100644
--- a/netbox/extras/migrations/0116_custom_link_button_color.py
+++ b/netbox/extras/migrations/0116_custom_link_button_color.py
@@ -7,7 +7,6 @@ def update_link_buttons(apps, schema_editor):
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0115_convert_dashboard_widgets'),
]
@@ -18,8 +17,5 @@ class Migration(migrations.Migration):
name='button_class',
field=models.CharField(default='default', max_length=30),
),
- migrations.RunPython(
- code=update_link_buttons,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=update_link_buttons, reverse_code=migrations.RunPython.noop),
]
diff --git a/netbox/extras/migrations/0117_move_objectchange.py b/netbox/extras/migrations/0117_move_objectchange.py
index a69b5a711..62c7255e7 100644
--- a/netbox/extras/migrations/0117_move_objectchange.py
+++ b/netbox/extras/migrations/0117_move_objectchange.py
@@ -26,7 +26,6 @@ def update_dashboard_widgets(apps, schema_editor):
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0116_custom_link_button_color'),
('core', '0011_move_objectchange'),
@@ -44,81 +43,64 @@ class Migration(migrations.Migration):
name='ObjectChange',
table='core_objectchange',
),
-
# Rename PK sequence
- migrations.RunSQL(
- "ALTER TABLE extras_objectchange_id_seq"
- " RENAME TO core_objectchange_id_seq"
- ),
-
+ migrations.RunSQL('ALTER TABLE extras_objectchange_id_seq' ' RENAME TO core_objectchange_id_seq'),
# Rename indexes. Hashes generated by schema_editor._create_index_name()
+ migrations.RunSQL('ALTER INDEX extras_objectchange_pkey' ' RENAME TO core_objectchange_pkey'),
migrations.RunSQL(
- "ALTER INDEX extras_objectchange_pkey"
- " RENAME TO core_objectchange_pkey"
+ 'ALTER INDEX extras_obje_changed_927fe5_idx'
+ ' RENAME TO core_objectchange_changed_object_type_id_cha_79a9ed1e'
),
migrations.RunSQL(
- "ALTER INDEX extras_obje_changed_927fe5_idx"
- " RENAME TO core_objectchange_changed_object_type_id_cha_79a9ed1e"
+ 'ALTER INDEX extras_obje_related_bfcdef_idx'
+ ' RENAME TO core_objectchange_related_object_type_id_rel_a71d604a'
),
migrations.RunSQL(
- "ALTER INDEX extras_obje_related_bfcdef_idx"
- " RENAME TO core_objectchange_related_object_type_id_rel_a71d604a"
+ 'ALTER INDEX extras_objectchange_changed_object_type_id_b755bb60'
+ ' RENAME TO core_objectchange_changed_object_type_id_2070ade6'
),
migrations.RunSQL(
- "ALTER INDEX extras_objectchange_changed_object_type_id_b755bb60"
- " RENAME TO core_objectchange_changed_object_type_id_2070ade6"
+ 'ALTER INDEX extras_objectchange_related_object_type_id_fe6e521f'
+ ' RENAME TO core_objectchange_related_object_type_id_b80958af'
),
migrations.RunSQL(
- "ALTER INDEX extras_objectchange_related_object_type_id_fe6e521f"
- " RENAME TO core_objectchange_related_object_type_id_b80958af"
+ 'ALTER INDEX extras_objectchange_request_id_4ae21e90'
+ ' RENAME TO core_objectchange_request_id_d9d160ac'
),
migrations.RunSQL(
- "ALTER INDEX extras_objectchange_request_id_4ae21e90"
- " RENAME TO core_objectchange_request_id_d9d160ac"
+ 'ALTER INDEX extras_objectchange_time_224380ea' ' RENAME TO core_objectchange_time_800f60a5'
),
migrations.RunSQL(
- "ALTER INDEX extras_objectchange_time_224380ea"
- " RENAME TO core_objectchange_time_800f60a5"
+ 'ALTER INDEX extras_objectchange_user_id_7fdf8186' ' RENAME TO core_objectchange_user_id_2b2142be'
),
- migrations.RunSQL(
- "ALTER INDEX extras_objectchange_user_id_7fdf8186"
- " RENAME TO core_objectchange_user_id_2b2142be"
- ),
-
# Rename constraints
migrations.RunSQL(
- "ALTER TABLE core_objectchange RENAME CONSTRAINT "
- "extras_objectchange_changed_object_id_check TO "
- "core_objectchange_changed_object_id_check"
+ 'ALTER TABLE core_objectchange RENAME CONSTRAINT '
+ 'extras_objectchange_changed_object_id_check TO '
+ 'core_objectchange_changed_object_id_check'
),
migrations.RunSQL(
- "ALTER TABLE core_objectchange RENAME CONSTRAINT "
- "extras_objectchange_related_object_id_check TO "
- "core_objectchange_related_object_id_check"
+ 'ALTER TABLE core_objectchange RENAME CONSTRAINT '
+ 'extras_objectchange_related_object_id_check TO '
+ 'core_objectchange_related_object_id_check'
),
migrations.RunSQL(
- "ALTER TABLE core_objectchange RENAME CONSTRAINT "
- "extras_objectchange_changed_object_type__b755bb60_fk_django_co TO "
- "core_objectchange_changed_object_type_id_2070ade6"
+ 'ALTER TABLE core_objectchange RENAME CONSTRAINT '
+ 'extras_objectchange_changed_object_type__b755bb60_fk_django_co TO '
+ 'core_objectchange_changed_object_type_id_2070ade6'
),
migrations.RunSQL(
- "ALTER TABLE core_objectchange RENAME CONSTRAINT "
- "extras_objectchange_related_object_type__fe6e521f_fk_django_co TO "
- "core_objectchange_related_object_type_id_b80958af"
+ 'ALTER TABLE core_objectchange RENAME CONSTRAINT '
+ 'extras_objectchange_related_object_type__fe6e521f_fk_django_co TO '
+ 'core_objectchange_related_object_type_id_b80958af'
),
migrations.RunSQL(
- "ALTER TABLE core_objectchange RENAME CONSTRAINT "
- "extras_objectchange_user_id_7fdf8186_fk_auth_user_id TO "
- "core_objectchange_user_id_2b2142be"
+ 'ALTER TABLE core_objectchange RENAME CONSTRAINT '
+ 'extras_objectchange_user_id_7fdf8186_fk_auth_user_id TO '
+ 'core_objectchange_user_id_2b2142be'
),
],
),
- migrations.RunPython(
- code=update_content_types,
- reverse_code=migrations.RunPython.noop
- ),
- migrations.RunPython(
- code=update_dashboard_widgets,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=update_content_types, reverse_code=migrations.RunPython.noop),
+ migrations.RunPython(code=update_dashboard_widgets, reverse_code=migrations.RunPython.noop),
]
diff --git a/netbox/extras/migrations/0118_customfield_uniqueness.py b/netbox/extras/migrations/0118_customfield_uniqueness.py
index b7693aa24..7571e975a 100644
--- a/netbox/extras/migrations/0118_customfield_uniqueness.py
+++ b/netbox/extras/migrations/0118_customfield_uniqueness.py
@@ -2,7 +2,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0117_move_objectchange'),
]
diff --git a/netbox/extras/migrations/0119_notifications.py b/netbox/extras/migrations/0119_notifications.py
index c266f3b6c..2e6aefd20 100644
--- a/netbox/extras/migrations/0119_notifications.py
+++ b/netbox/extras/migrations/0119_notifications.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('extras', '0118_customfield_uniqueness'),
@@ -22,7 +21,10 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=100, unique=True)),
('description', models.CharField(blank=True, max_length=200)),
('groups', models.ManyToManyField(blank=True, related_name='notification_groups', to='users.group')),
- ('users', models.ManyToManyField(blank=True, related_name='notification_groups', to=settings.AUTH_USER_MODEL)),
+ (
+ 'users',
+ models.ManyToManyField(blank=True, related_name='notification_groups', to=settings.AUTH_USER_MODEL),
+ ),
],
options={
'verbose_name': 'notification group',
@@ -36,8 +38,18 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True)),
('object_id', models.PositiveBigIntegerField()),
- ('object_type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype')),
- ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='subscriptions', to=settings.AUTH_USER_MODEL)),
+ (
+ 'object_type',
+ models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype'),
+ ),
+ (
+ 'user',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='subscriptions',
+ to=settings.AUTH_USER_MODEL,
+ ),
+ ),
],
options={
'verbose_name': 'subscription',
@@ -53,9 +65,19 @@ class Migration(migrations.Migration):
('read', models.DateTimeField(blank=True, null=True)),
('object_id', models.PositiveBigIntegerField()),
('event_type', models.CharField(max_length=50)),
- ('object_type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype')),
+ (
+ 'object_type',
+ models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='contenttypes.contenttype'),
+ ),
('object_repr', models.CharField(editable=False, max_length=200)),
- ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notifications', to=settings.AUTH_USER_MODEL)),
+ (
+ 'user',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='notifications',
+ to=settings.AUTH_USER_MODEL,
+ ),
+ ),
],
options={
'verbose_name': 'notification',
@@ -66,7 +88,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='notification',
- constraint=models.UniqueConstraint(fields=('object_type', 'object_id', 'user'), name='extras_notification_unique_per_object_and_user'),
+ constraint=models.UniqueConstraint(
+ fields=('object_type', 'object_id', 'user'), name='extras_notification_unique_per_object_and_user'
+ ),
),
migrations.AddIndex(
model_name='subscription',
@@ -74,6 +98,8 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='subscription',
- constraint=models.UniqueConstraint(fields=('object_type', 'object_id', 'user'), name='extras_subscription_unique_per_object_and_user'),
+ constraint=models.UniqueConstraint(
+ fields=('object_type', 'object_id', 'user'), name='extras_subscription_unique_per_object_and_user'
+ ),
),
]
diff --git a/netbox/extras/migrations/0120_eventrule_event_types.py b/netbox/extras/migrations/0120_eventrule_event_types.py
index f62c83e4c..2bcc0a4e6 100644
--- a/netbox/extras/migrations/0120_eventrule_event_types.py
+++ b/netbox/extras/migrations/0120_eventrule_event_types.py
@@ -26,7 +26,6 @@ def set_event_types(apps, schema_editor):
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0119_notifications'),
]
@@ -36,16 +35,10 @@ class Migration(migrations.Migration):
model_name='eventrule',
name='event_types',
field=django.contrib.postgres.fields.ArrayField(
- base_field=models.CharField(max_length=50),
- blank=True,
- null=True,
- size=None
+ base_field=models.CharField(max_length=50), blank=True, null=True, size=None
),
),
- migrations.RunPython(
- code=set_event_types,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=set_event_types, reverse_code=migrations.RunPython.noop),
migrations.AlterField(
model_name='eventrule',
name='event_types',
diff --git a/netbox/extras/migrations/0121_customfield_related_object_filter.py b/netbox/extras/migrations/0121_customfield_related_object_filter.py
index d6e41fd7d..10eecd6cc 100644
--- a/netbox/extras/migrations/0121_customfield_related_object_filter.py
+++ b/netbox/extras/migrations/0121_customfield_related_object_filter.py
@@ -2,7 +2,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('extras', '0120_eventrule_event_types'),
]
diff --git a/netbox/extras/migrations/0122_charfield_null_choices.py b/netbox/extras/migrations/0122_charfield_null_choices.py
new file mode 100644
index 000000000..a32051cb1
--- /dev/null
+++ b/netbox/extras/migrations/0122_charfield_null_choices.py
@@ -0,0 +1,25 @@
+from django.db import migrations, models
+
+
+def set_null_values(apps, schema_editor):
+ """
+ Replace empty strings with null values.
+ """
+ CustomFieldChoiceSet = apps.get_model('extras', 'CustomFieldChoiceSet')
+
+ CustomFieldChoiceSet.objects.filter(base_choices='').update(base_choices=None)
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('extras', '0121_customfield_related_object_filter'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='customfieldchoiceset',
+ name='base_choices',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.RunPython(code=set_null_values, reverse_code=migrations.RunPython.noop),
+ ]
diff --git a/netbox/extras/models/customfields.py b/netbox/extras/models/customfields.py
index 8b7fc0cb6..e1ceaf7a6 100644
--- a/netbox/extras/models/customfields.py
+++ b/netbox/extras/models/customfields.py
@@ -760,6 +760,7 @@ class CustomFieldChoiceSet(CloningMixin, ExportTemplatesMixin, ChangeLoggedModel
max_length=50,
choices=CustomFieldChoiceSetBaseChoices,
blank=True,
+ null=True,
help_text=_('Base set of predefined choices (optional)')
)
extra_choices = ArrayField(
diff --git a/netbox/extras/models/models.py b/netbox/extras/models/models.py
index d8a274c89..d3e443b14 100644
--- a/netbox/extras/models/models.py
+++ b/netbox/extras/models/models.py
@@ -704,7 +704,10 @@ class JournalEntry(CustomFieldsMixin, CustomLinksMixin, TagsMixin, ExportTemplat
def __str__(self):
created = timezone.localtime(self.created)
- return f"{created.date().isoformat()} {created.time().isoformat(timespec='minutes')} ({self.get_kind_display()})"
+ return (
+ f"{created.date().isoformat()} {created.time().isoformat(timespec='minutes')} "
+ f"({self.get_kind_display()})"
+ )
def get_absolute_url(self):
return reverse('extras:journalentry', args=[self.pk])
diff --git a/netbox/extras/models/staging.py b/netbox/extras/models/staging.py
index b944a6fb9..68d37de7f 100644
--- a/netbox/extras/models/staging.py
+++ b/netbox/extras/models/staging.py
@@ -1,4 +1,5 @@
import logging
+import warnings
from django.contrib.contenttypes.fields import GenericForeignKey
from django.db import models, transaction
@@ -44,6 +45,13 @@ class Branch(ChangeLoggedModel):
verbose_name = _('branch')
verbose_name_plural = _('branches')
+ def __init__(self, *args, **kwargs):
+ warnings.warn(
+ 'The staged changes functionality has been deprecated and will be removed in a future release.',
+ DeprecationWarning
+ )
+ super().__init__(*args, **kwargs)
+
def __str__(self):
return f'{self.name} ({self.pk})'
@@ -97,6 +105,13 @@ class StagedChange(CustomValidationMixin, EventRulesMixin, models.Model):
verbose_name = _('staged change')
verbose_name_plural = _('staged changes')
+ def __init__(self, *args, **kwargs):
+ warnings.warn(
+ 'The staged changes functionality has been deprecated and will be removed in a future release.',
+ DeprecationWarning
+ )
+ super().__init__(*args, **kwargs)
+
def __str__(self):
action = self.get_action_display()
app_label, model_name = self.object_type.natural_key()
diff --git a/netbox/extras/querysets.py b/netbox/extras/querysets.py
index 9b3722eef..59be85734 100644
--- a/netbox/extras/querysets.py
+++ b/netbox/extras/querysets.py
@@ -120,11 +120,12 @@ class ConfigContextModelQuerySet(RestrictedQuerySet):
is_active=True,
)
+ # Apply Location & DeviceType filters only for VirtualMachines
if self.model._meta.model_name == 'device':
base_query.add((Q(locations=OuterRef('location')) | Q(locations=None)), Q.AND)
base_query.add((Q(device_types=OuterRef('device_type')) | Q(device_types=None)), Q.AND)
-
elif self.model._meta.model_name == 'virtualmachine':
+ base_query.add(Q(locations=None), Q.AND)
base_query.add(Q(device_types=None), Q.AND)
base_query.add((Q(roles=OuterRef('role')) | Q(roles=None)), Q.AND)
diff --git a/netbox/extras/tests/test_custom_validation.py b/netbox/extras/tests/test_custom_validation.py
index 652bc241b..6eb90e5b0 100644
--- a/netbox/extras/tests/test_custom_validation.py
+++ b/netbox/extras/tests/test_custom_validation.py
@@ -191,7 +191,7 @@ class BulkImportCustomValidationTest(ModelViewTestCase):
# Attempt to import providers without tags
request = {
- 'path': self._get_url('import'),
+ 'path': self._get_url('bulk_import'),
'data': post_data(data),
}
response = self.client.post(**request)
@@ -207,7 +207,7 @@ class BulkImportCustomValidationTest(ModelViewTestCase):
)
data['data'] = '\n'.join(csv_data)
request = {
- 'path': self._get_url('import'),
+ 'path': self._get_url('bulk_import'),
'data': post_data(data),
}
response = self.client.post(**request)
diff --git a/netbox/extras/tests/test_customfields.py b/netbox/extras/tests/test_customfields.py
index 2bc9b5acc..8bae8dfc9 100644
--- a/netbox/extras/tests/test_customfields.py
+++ b/netbox/extras/tests/test_customfields.py
@@ -637,15 +637,51 @@ class CustomFieldAPITest(APITestCase):
)
custom_fields = (
- CustomField(type=CustomFieldTypeChoices.TYPE_TEXT, name='text_field', default='foo'),
- CustomField(type=CustomFieldTypeChoices.TYPE_LONGTEXT, name='longtext_field', default='ABC'),
- CustomField(type=CustomFieldTypeChoices.TYPE_INTEGER, name='integer_field', default=123),
- CustomField(type=CustomFieldTypeChoices.TYPE_DECIMAL, name='decimal_field', default=123.45),
- CustomField(type=CustomFieldTypeChoices.TYPE_BOOLEAN, name='boolean_field', default=False),
- CustomField(type=CustomFieldTypeChoices.TYPE_DATE, name='date_field', default='2020-01-01'),
- CustomField(type=CustomFieldTypeChoices.TYPE_DATETIME, name='datetime_field', default='2020-01-01T01:23:45'),
- CustomField(type=CustomFieldTypeChoices.TYPE_URL, name='url_field', default='http://example.com/1'),
- CustomField(type=CustomFieldTypeChoices.TYPE_JSON, name='json_field', default='{"x": "y"}'),
+ CustomField(
+ type=CustomFieldTypeChoices.TYPE_TEXT,
+ name='text_field',
+ default='foo'
+ ),
+ CustomField(
+ type=CustomFieldTypeChoices.TYPE_LONGTEXT,
+ name='longtext_field',
+ default='ABC'
+ ),
+ CustomField(
+ type=CustomFieldTypeChoices.TYPE_INTEGER,
+ name='integer_field',
+ default=123
+ ),
+ CustomField(
+ type=CustomFieldTypeChoices.TYPE_DECIMAL,
+ name='decimal_field',
+ default=123.45
+ ),
+ CustomField(
+ type=CustomFieldTypeChoices.TYPE_BOOLEAN,
+ name='boolean_field',
+ default=False
+ ),
+ CustomField(
+ type=CustomFieldTypeChoices.TYPE_DATE,
+ name='date_field',
+ default='2020-01-01'
+ ),
+ CustomField(
+ type=CustomFieldTypeChoices.TYPE_DATETIME,
+ name='datetime_field',
+ default='2020-01-01T01:23:45'
+ ),
+ CustomField(
+ type=CustomFieldTypeChoices.TYPE_URL,
+ name='url_field',
+ default='http://example.com/1'
+ ),
+ CustomField(
+ type=CustomFieldTypeChoices.TYPE_JSON,
+ name='json_field',
+ default='{"x": "y"}'
+ ),
CustomField(
type=CustomFieldTypeChoices.TYPE_SELECT,
name='select_field',
@@ -656,7 +692,7 @@ class CustomFieldAPITest(APITestCase):
type=CustomFieldTypeChoices.TYPE_MULTISELECT,
name='multiselect_field',
default=['foo'],
- choice_set=choice_set
+ choice_set=choice_set,
),
CustomField(
type=CustomFieldTypeChoices.TYPE_OBJECT,
@@ -1273,14 +1309,23 @@ class CustomFieldImportTest(TestCase):
Import a Site in CSV format, including a value for each CustomField.
"""
data = (
- ('name', 'slug', 'status', 'cf_text', 'cf_longtext', 'cf_integer', 'cf_decimal', 'cf_boolean', 'cf_date', 'cf_datetime', 'cf_url', 'cf_json', 'cf_select', 'cf_multiselect'),
- ('Site 1', 'site-1', 'active', 'ABC', 'Foo', '123', '123.45', 'True', '2020-01-01', '2020-01-01 12:00:00', 'http://example.com/1', '{"foo": 123}', 'a', '"a,b"'),
- ('Site 2', 'site-2', 'active', 'DEF', 'Bar', '456', '456.78', 'False', '2020-01-02', '2020-01-02 12:00:00', 'http://example.com/2', '{"bar": 456}', 'b', '"b,c"'),
+ (
+ 'name', 'slug', 'status', 'cf_text', 'cf_longtext', 'cf_integer', 'cf_decimal', 'cf_boolean', 'cf_date',
+ 'cf_datetime', 'cf_url', 'cf_json', 'cf_select', 'cf_multiselect',
+ ),
+ (
+ 'Site 1', 'site-1', 'active', 'ABC', 'Foo', '123', '123.45', 'True', '2020-01-01',
+ '2020-01-01 12:00:00', 'http://example.com/1', '{"foo": 123}', 'a', '"a,b"',
+ ),
+ (
+ 'Site 2', 'site-2', 'active', 'DEF', 'Bar', '456', '456.78', 'False', '2020-01-02',
+ '2020-01-02 12:00:00', 'http://example.com/2', '{"bar": 456}', 'b', '"b,c"',
+ ),
('Site 3', 'site-3', 'active', '', '', '', '', '', '', '', '', '', '', ''),
)
csv_data = '\n'.join(','.join(row) for row in data)
- response = self.client.post(reverse('dcim:site_import'), {
+ response = self.client.post(reverse('dcim:site_bulk_import'), {
'data': csv_data,
'format': ImportFormatChoices.CSV,
'csv_delimiter': CSVDelimiterChoices.AUTO,
@@ -1616,7 +1661,10 @@ class CustomFieldModelFilterTest(TestCase):
self.assertEqual(self.filterset({'cf_cf6__lte': ['2016-06-27']}, self.queryset).qs.count(), 2)
def test_filter_url_strict(self):
- self.assertEqual(self.filterset({'cf_cf7': ['http://a.example.com', 'http://b.example.com']}, self.queryset).qs.count(), 2)
+ self.assertEqual(
+ self.filterset({'cf_cf7': ['http://a.example.com', 'http://b.example.com']}, self.queryset).qs.count(),
+ 2
+ )
self.assertEqual(self.filterset({'cf_cf7__n': ['http://b.example.com']}, self.queryset).qs.count(), 2)
self.assertEqual(self.filterset({'cf_cf7__ic': ['b']}, self.queryset).qs.count(), 1)
self.assertEqual(self.filterset({'cf_cf7__nic': ['b']}, self.queryset).qs.count(), 2)
@@ -1640,9 +1688,18 @@ class CustomFieldModelFilterTest(TestCase):
def test_filter_object(self):
manufacturer_ids = Manufacturer.objects.values_list('id', flat=True)
- self.assertEqual(self.filterset({'cf_cf11': [manufacturer_ids[0], manufacturer_ids[1]]}, self.queryset).qs.count(), 2)
+ self.assertEqual(
+ self.filterset({'cf_cf11': [manufacturer_ids[0], manufacturer_ids[1]]}, self.queryset).qs.count(),
+ 2
+ )
def test_filter_multiobject(self):
manufacturer_ids = Manufacturer.objects.values_list('id', flat=True)
- self.assertEqual(self.filterset({'cf_cf12': [manufacturer_ids[0], manufacturer_ids[1]]}, self.queryset).qs.count(), 2)
- self.assertEqual(self.filterset({'cf_cf12': [manufacturer_ids[3]]}, self.queryset).qs.count(), 3)
+ self.assertEqual(
+ self.filterset({'cf_cf12': [manufacturer_ids[0], manufacturer_ids[1]]}, self.queryset).qs.count(),
+ 2
+ )
+ self.assertEqual(
+ self.filterset({'cf_cf12': [manufacturer_ids[3]]}, self.queryset).qs.count(),
+ 3
+ )
diff --git a/netbox/extras/tests/test_event_rules.py b/netbox/extras/tests/test_event_rules.py
index 7f7b0b81f..2565e5bde 100644
--- a/netbox/extras/tests/test_event_rules.py
+++ b/netbox/extras/tests/test_event_rules.py
@@ -50,21 +50,24 @@ class EventRuleTest(APITestCase):
event_types=[OBJECT_CREATED],
action_type=EventRuleActionChoices.WEBHOOK,
action_object_type=webhook_type,
- action_object_id=webhooks[0].id
+ action_object_id=webhooks[0].id,
+ action_data={"foo": 1},
),
EventRule(
name='Event Rule 2',
event_types=[OBJECT_UPDATED],
action_type=EventRuleActionChoices.WEBHOOK,
action_object_type=webhook_type,
- action_object_id=webhooks[0].id
+ action_object_id=webhooks[0].id,
+ action_data={"foo": 2},
),
EventRule(
name='Event Rule 3',
event_types=[OBJECT_DELETED],
action_type=EventRuleActionChoices.WEBHOOK,
action_object_type=webhook_type,
- action_object_id=webhooks[0].id
+ action_object_id=webhooks[0].id,
+ action_data={"foo": 3},
),
))
for event_rule in event_rules:
@@ -134,6 +137,7 @@ class EventRuleTest(APITestCase):
self.assertEqual(job.kwargs['event_type'], OBJECT_CREATED)
self.assertEqual(job.kwargs['model_name'], 'site')
self.assertEqual(job.kwargs['data']['id'], response.data['id'])
+ self.assertEqual(job.kwargs['data']['foo'], 1)
self.assertEqual(len(job.kwargs['data']['tags']), len(response.data['tags']))
self.assertEqual(job.kwargs['snapshots']['postchange']['name'], 'Site 1')
self.assertEqual(job.kwargs['snapshots']['postchange']['tags'], ['Bar', 'Foo'])
@@ -184,6 +188,7 @@ class EventRuleTest(APITestCase):
self.assertEqual(job.kwargs['event_type'], OBJECT_CREATED)
self.assertEqual(job.kwargs['model_name'], 'site')
self.assertEqual(job.kwargs['data']['id'], response.data[i]['id'])
+ self.assertEqual(job.kwargs['data']['foo'], 1)
self.assertEqual(len(job.kwargs['data']['tags']), len(response.data[i]['tags']))
self.assertEqual(job.kwargs['snapshots']['postchange']['name'], response.data[i]['name'])
self.assertEqual(job.kwargs['snapshots']['postchange']['tags'], ['Bar', 'Foo'])
@@ -215,6 +220,7 @@ class EventRuleTest(APITestCase):
self.assertEqual(job.kwargs['event_type'], OBJECT_UPDATED)
self.assertEqual(job.kwargs['model_name'], 'site')
self.assertEqual(job.kwargs['data']['id'], site.pk)
+ self.assertEqual(job.kwargs['data']['foo'], 2)
self.assertEqual(len(job.kwargs['data']['tags']), len(response.data['tags']))
self.assertEqual(job.kwargs['snapshots']['prechange']['name'], 'Site 1')
self.assertEqual(job.kwargs['snapshots']['prechange']['tags'], ['Bar', 'Foo'])
@@ -271,6 +277,7 @@ class EventRuleTest(APITestCase):
self.assertEqual(job.kwargs['event_type'], OBJECT_UPDATED)
self.assertEqual(job.kwargs['model_name'], 'site')
self.assertEqual(job.kwargs['data']['id'], data[i]['id'])
+ self.assertEqual(job.kwargs['data']['foo'], 2)
self.assertEqual(len(job.kwargs['data']['tags']), len(response.data[i]['tags']))
self.assertEqual(job.kwargs['snapshots']['prechange']['name'], sites[i].name)
self.assertEqual(job.kwargs['snapshots']['prechange']['tags'], ['Bar', 'Foo'])
@@ -297,6 +304,7 @@ class EventRuleTest(APITestCase):
self.assertEqual(job.kwargs['event_type'], OBJECT_DELETED)
self.assertEqual(job.kwargs['model_name'], 'site')
self.assertEqual(job.kwargs['data']['id'], site.pk)
+ self.assertEqual(job.kwargs['data']['foo'], 3)
self.assertEqual(job.kwargs['snapshots']['prechange']['name'], 'Site 1')
self.assertEqual(job.kwargs['snapshots']['prechange']['tags'], ['Bar', 'Foo'])
@@ -330,6 +338,7 @@ class EventRuleTest(APITestCase):
self.assertEqual(job.kwargs['event_type'], OBJECT_DELETED)
self.assertEqual(job.kwargs['model_name'], 'site')
self.assertEqual(job.kwargs['data']['id'], sites[i].pk)
+ self.assertEqual(job.kwargs['data']['foo'], 3)
self.assertEqual(job.kwargs['snapshots']['prechange']['name'], sites[i].name)
self.assertEqual(job.kwargs['snapshots']['prechange']['tags'], ['Bar', 'Foo'])
@@ -358,6 +367,7 @@ class EventRuleTest(APITestCase):
self.assertEqual(body['username'], 'testuser')
self.assertEqual(body['request_id'], str(request_id))
self.assertEqual(body['data']['name'], 'Site 1')
+ self.assertEqual(body['data']['foo'], 1)
return HttpResponse()
diff --git a/netbox/extras/tests/test_filtersets.py b/netbox/extras/tests/test_filtersets.py
index 9048d5fd9..cf914e665 100644
--- a/netbox/extras/tests/test_filtersets.py
+++ b/netbox/extras/tests/test_filtersets.py
@@ -1135,6 +1135,7 @@ class TagTestCase(TestCase, ChangeLoggedFilterSetTests):
'l2vpn',
'l2vpntermination',
'location',
+ 'macaddress',
'manufacturer',
'module',
'modulebay',
@@ -1167,11 +1168,16 @@ class TagTestCase(TestCase, ChangeLoggedFilterSetTests):
'tunnelgroup',
'tunneltermination',
'virtualchassis',
+ 'virtualcircuit',
+ 'virtualcircuittermination',
+ 'virtualcircuittype',
'virtualdevicecontext',
'virtualdisk',
'virtualmachine',
'vlan',
'vlangroup',
+ 'vlantranslationpolicy',
+ 'vlantranslationrule',
'vminterface',
'vrf',
'webhook',
diff --git a/netbox/extras/tests/test_models.py b/netbox/extras/tests/test_models.py
index 188a06a3f..c90390dd1 100644
--- a/netbox/extras/tests/test_models.py
+++ b/netbox/extras/tests/test_models.py
@@ -274,7 +274,7 @@ class ConfigContextTest(TestCase):
name="Cluster",
group=cluster_group,
type=cluster_type,
- site=site,
+ scope=site,
)
region_context = ConfigContext.objects.create(
@@ -366,7 +366,7 @@ class ConfigContextTest(TestCase):
"""
site = Site.objects.first()
cluster_type = ClusterType.objects.create(name="Cluster Type")
- cluster = Cluster.objects.create(name="Cluster", type=cluster_type, site=site)
+ cluster = Cluster.objects.create(name="Cluster", type=cluster_type, scope=site)
vm_role = DeviceRole.objects.first()
# Create a ConfigContext associated with the site
diff --git a/netbox/extras/urls.py b/netbox/extras/urls.py
index b13af1db9..32633493f 100644
--- a/netbox/extras/urls.py
+++ b/netbox/extras/urls.py
@@ -7,128 +7,68 @@ from utilities.urls import get_model_urls
app_name = 'extras'
urlpatterns = [
- # Custom fields
- path('custom-fields/', views.CustomFieldListView.as_view(), name='customfield_list'),
- path('custom-fields/add/', views.CustomFieldEditView.as_view(), name='customfield_add'),
- path('custom-fields/import/', views.CustomFieldBulkImportView.as_view(), name='customfield_import'),
- path('custom-fields/edit/', views.CustomFieldBulkEditView.as_view(), name='customfield_bulk_edit'),
- path('custom-fields/delete/', views.CustomFieldBulkDeleteView.as_view(), name='customfield_bulk_delete'),
+ path('custom-fields/', include(get_model_urls('extras', 'customfield', detail=False))),
path('custom-fields//', include(get_model_urls('extras', 'customfield'))),
- # Custom field choices
- path('custom-field-choices/', views.CustomFieldChoiceSetListView.as_view(), name='customfieldchoiceset_list'),
- path('custom-field-choices/add/', views.CustomFieldChoiceSetEditView.as_view(), name='customfieldchoiceset_add'),
- path('custom-field-choices/import/', views.CustomFieldChoiceSetBulkImportView.as_view(), name='customfieldchoiceset_import'),
- path('custom-field-choices/edit/', views.CustomFieldChoiceSetBulkEditView.as_view(), name='customfieldchoiceset_bulk_edit'),
- path('custom-field-choices/delete/', views.CustomFieldChoiceSetBulkDeleteView.as_view(), name='customfieldchoiceset_bulk_delete'),
+ path('custom-field-choices/', include(get_model_urls('extras', 'customfieldchoiceset', detail=False))),
path('custom-field-choices//', include(get_model_urls('extras', 'customfieldchoiceset'))),
- # Custom links
- path('custom-links/', views.CustomLinkListView.as_view(), name='customlink_list'),
- path('custom-links/add/', views.CustomLinkEditView.as_view(), name='customlink_add'),
- path('custom-links/import/', views.CustomLinkBulkImportView.as_view(), name='customlink_import'),
- path('custom-links/edit/', views.CustomLinkBulkEditView.as_view(), name='customlink_bulk_edit'),
- path('custom-links/delete/', views.CustomLinkBulkDeleteView.as_view(), name='customlink_bulk_delete'),
+ path('custom-links/', include(get_model_urls('extras', 'customlink', detail=False))),
path('custom-links//', include(get_model_urls('extras', 'customlink'))),
- # Export templates
- path('export-templates/', views.ExportTemplateListView.as_view(), name='exporttemplate_list'),
- path('export-templates/add/', views.ExportTemplateEditView.as_view(), name='exporttemplate_add'),
- path('export-templates/import/', views.ExportTemplateBulkImportView.as_view(), name='exporttemplate_import'),
- path('export-templates/edit/', views.ExportTemplateBulkEditView.as_view(), name='exporttemplate_bulk_edit'),
- path('export-templates/delete/', views.ExportTemplateBulkDeleteView.as_view(), name='exporttemplate_bulk_delete'),
- path('export-templates/sync/', views.ExportTemplateBulkSyncDataView.as_view(), name='exporttemplate_bulk_sync'),
+ path('export-templates/', include(get_model_urls('extras', 'exporttemplate', detail=False))),
path('export-templates//', include(get_model_urls('extras', 'exporttemplate'))),
- # Saved filters
- path('saved-filters/', views.SavedFilterListView.as_view(), name='savedfilter_list'),
- path('saved-filters/add/', views.SavedFilterEditView.as_view(), name='savedfilter_add'),
- path('saved-filters/import/', views.SavedFilterBulkImportView.as_view(), name='savedfilter_import'),
- path('saved-filters/edit/', views.SavedFilterBulkEditView.as_view(), name='savedfilter_bulk_edit'),
- path('saved-filters/delete/', views.SavedFilterBulkDeleteView.as_view(), name='savedfilter_bulk_delete'),
+ path('saved-filters/', include(get_model_urls('extras', 'savedfilter', detail=False))),
path('saved-filters//', include(get_model_urls('extras', 'savedfilter'))),
- # Bookmarks
- path('bookmarks/add/', views.BookmarkCreateView.as_view(), name='bookmark_add'),
- path('bookmarks/delete/', views.BookmarkBulkDeleteView.as_view(), name='bookmark_bulk_delete'),
+ path('bookmarks/', include(get_model_urls('extras', 'bookmark', detail=False))),
path('bookmarks//', include(get_model_urls('extras', 'bookmark'))),
- # Notification groups
- path('notification-groups/', views.NotificationGroupListView.as_view(), name='notificationgroup_list'),
- path('notification-groups/add/', views.NotificationGroupEditView.as_view(), name='notificationgroup_add'),
- path('notification-groups/import/', views.NotificationGroupBulkImportView.as_view(), name='notificationgroup_import'),
- path('notification-groups/edit/', views.NotificationGroupBulkEditView.as_view(), name='notificationgroup_bulk_edit'),
- path('notification-groups/delete/', views.NotificationGroupBulkDeleteView.as_view(), name='notificationgroup_bulk_delete'),
+ path('notification-groups/', include(get_model_urls('extras', 'notificationgroup', detail=False))),
path('notification-groups//', include(get_model_urls('extras', 'notificationgroup'))),
- # Notifications
path('notifications/', views.NotificationsView.as_view(), name='notifications'),
- path('notifications/delete/', views.NotificationBulkDeleteView.as_view(), name='notification_bulk_delete'),
+ path('notifications/', include(get_model_urls('extras', 'notification', detail=False))),
path('notifications//', include(get_model_urls('extras', 'notification'))),
- # Subscriptions
- path('subscriptions/add/', views.SubscriptionCreateView.as_view(), name='subscription_add'),
- path('subscriptions/delete/', views.SubscriptionBulkDeleteView.as_view(), name='subscription_bulk_delete'),
+ path('subscriptions/', include(get_model_urls('extras', 'subscription', detail=False))),
path('subscriptions//', include(get_model_urls('extras', 'subscription'))),
- # Webhooks
- path('webhooks/', views.WebhookListView.as_view(), name='webhook_list'),
- path('webhooks/add/', views.WebhookEditView.as_view(), name='webhook_add'),
- path('webhooks/import/', views.WebhookBulkImportView.as_view(), name='webhook_import'),
- path('webhooks/edit/', views.WebhookBulkEditView.as_view(), name='webhook_bulk_edit'),
- path('webhooks/delete/', views.WebhookBulkDeleteView.as_view(), name='webhook_bulk_delete'),
+ path('webhooks/', include(get_model_urls('extras', 'webhook', detail=False))),
path('webhooks//', include(get_model_urls('extras', 'webhook'))),
- # Event rules
- path('event-rules/', views.EventRuleListView.as_view(), name='eventrule_list'),
- path('event-rules/add/', views.EventRuleEditView.as_view(), name='eventrule_add'),
- path('event-rules/import/', views.EventRuleBulkImportView.as_view(), name='eventrule_import'),
- path('event-rules/edit/', views.EventRuleBulkEditView.as_view(), name='eventrule_bulk_edit'),
- path('event-rules/delete/', views.EventRuleBulkDeleteView.as_view(), name='eventrule_bulk_delete'),
+ path('event-rules/', include(get_model_urls('extras', 'eventrule', detail=False))),
path('event-rules//', include(get_model_urls('extras', 'eventrule'))),
- # Tags
- path('tags/', views.TagListView.as_view(), name='tag_list'),
- path('tags/add/', views.TagEditView.as_view(), name='tag_add'),
- path('tags/import/', views.TagBulkImportView.as_view(), name='tag_import'),
- path('tags/edit/', views.TagBulkEditView.as_view(), name='tag_bulk_edit'),
- path('tags/delete/', views.TagBulkDeleteView.as_view(), name='tag_bulk_delete'),
+ path('tags/', include(get_model_urls('extras', 'tag', detail=False))),
path('tags//', include(get_model_urls('extras', 'tag'))),
- # Config contexts
- path('config-contexts/', views.ConfigContextListView.as_view(), name='configcontext_list'),
- path('config-contexts/add/', views.ConfigContextEditView.as_view(), name='configcontext_add'),
- path('config-contexts/edit/', views.ConfigContextBulkEditView.as_view(), name='configcontext_bulk_edit'),
- path('config-contexts/delete/', views.ConfigContextBulkDeleteView.as_view(), name='configcontext_bulk_delete'),
- path('config-contexts/sync/', views.ConfigContextBulkSyncDataView.as_view(), name='configcontext_bulk_sync'),
+ path('config-contexts/', include(get_model_urls('extras', 'configcontext', detail=False))),
path('config-contexts//', include(get_model_urls('extras', 'configcontext'))),
- # Config templates
- path('config-templates/', views.ConfigTemplateListView.as_view(), name='configtemplate_list'),
- path('config-templates/add/', views.ConfigTemplateEditView.as_view(), name='configtemplate_add'),
- path('config-templates/edit/', views.ConfigTemplateBulkEditView.as_view(), name='configtemplate_bulk_edit'),
- path('config-templates/delete/', views.ConfigTemplateBulkDeleteView.as_view(), name='configtemplate_bulk_delete'),
- path('config-templates/sync/', views.ConfigTemplateBulkSyncDataView.as_view(), name='configtemplate_bulk_sync'),
+ path('config-templates/', include(get_model_urls('extras', 'configtemplate', detail=False))),
path('config-templates//', include(get_model_urls('extras', 'configtemplate'))),
- # Image attachments
- path('image-attachments/', views.ImageAttachmentListView.as_view(), name='imageattachment_list'),
- path('image-attachments/add/', views.ImageAttachmentEditView.as_view(), name='imageattachment_add'),
+ path('image-attachments/', include(get_model_urls('extras', 'imageattachment', detail=False))),
path('image-attachments//', include(get_model_urls('extras', 'imageattachment'))),
- # Journal entries
- path('journal-entries/', views.JournalEntryListView.as_view(), name='journalentry_list'),
- path('journal-entries/add/', views.JournalEntryEditView.as_view(), name='journalentry_add'),
- path('journal-entries/edit/', views.JournalEntryBulkEditView.as_view(), name='journalentry_bulk_edit'),
- path('journal-entries/delete/', views.JournalEntryBulkDeleteView.as_view(), name='journalentry_bulk_delete'),
- path('journal-entries/import/', views.JournalEntryBulkImportView.as_view(), name='journalentry_import'),
+ path('journal-entries/', include(get_model_urls('extras', 'journalentry', detail=False))),
path('journal-entries//', include(get_model_urls('extras', 'journalentry'))),
# User dashboard
path('dashboard/reset/', views.DashboardResetView.as_view(), name='dashboard_reset'),
path('dashboard/widgets/add/', views.DashboardWidgetAddView.as_view(), name='dashboardwidget_add'),
- path('dashboard/widgets//configure/', views.DashboardWidgetConfigView.as_view(), name='dashboardwidget_config'),
- path('dashboard/widgets//delete/', views.DashboardWidgetDeleteView.as_view(), name='dashboardwidget_delete'),
+ path(
+ 'dashboard/widgets//configure/',
+ views.DashboardWidgetConfigView.as_view(),
+ name='dashboardwidget_config'
+ ),
+ path(
+ 'dashboard/widgets//delete/',
+ views.DashboardWidgetDeleteView.as_view(),
+ name='dashboardwidget_delete'
+ ),
# Scripts
path('scripts/', views.ScriptListView.as_view(), name='script_list'),
diff --git a/netbox/extras/views.py b/netbox/extras/views.py
index 0d98b1324..9cb9dd54a 100644
--- a/netbox/extras/views.py
+++ b/netbox/extras/views.py
@@ -42,6 +42,7 @@ from .tables import ReportResultsTable, ScriptResultsTable
# Custom fields
#
+@register_model_view(CustomField, 'list', path='', detail=False)
class CustomFieldListView(generic.ObjectListView):
queryset = CustomField.objects.select_related('choice_set')
filterset = filtersets.CustomFieldFilterSet
@@ -69,6 +70,7 @@ class CustomFieldView(generic.ObjectView):
}
+@register_model_view(CustomField, 'add', detail=False)
@register_model_view(CustomField, 'edit')
class CustomFieldEditView(generic.ObjectEditView):
queryset = CustomField.objects.select_related('choice_set')
@@ -80,11 +82,13 @@ class CustomFieldDeleteView(generic.ObjectDeleteView):
queryset = CustomField.objects.select_related('choice_set')
+@register_model_view(CustomField, 'bulk_import', detail=False)
class CustomFieldBulkImportView(generic.BulkImportView):
queryset = CustomField.objects.select_related('choice_set')
model_form = forms.CustomFieldImportForm
+@register_model_view(CustomField, 'bulk_edit', path='edit', detail=False)
class CustomFieldBulkEditView(generic.BulkEditView):
queryset = CustomField.objects.select_related('choice_set')
filterset = filtersets.CustomFieldFilterSet
@@ -92,6 +96,7 @@ class CustomFieldBulkEditView(generic.BulkEditView):
form = forms.CustomFieldBulkEditForm
+@register_model_view(CustomField, 'bulk_delete', path='delete', detail=False)
class CustomFieldBulkDeleteView(generic.BulkDeleteView):
queryset = CustomField.objects.select_related('choice_set')
filterset = filtersets.CustomFieldFilterSet
@@ -102,6 +107,7 @@ class CustomFieldBulkDeleteView(generic.BulkDeleteView):
# Custom field choices
#
+@register_model_view(CustomFieldChoiceSet, 'list', path='', detail=False)
class CustomFieldChoiceSetListView(generic.ObjectListView):
queryset = CustomFieldChoiceSet.objects.all()
filterset = filtersets.CustomFieldChoiceSetFilterSet
@@ -133,6 +139,7 @@ class CustomFieldChoiceSetView(generic.ObjectView):
}
+@register_model_view(CustomFieldChoiceSet, 'add', detail=False)
@register_model_view(CustomFieldChoiceSet, 'edit')
class CustomFieldChoiceSetEditView(generic.ObjectEditView):
queryset = CustomFieldChoiceSet.objects.all()
@@ -144,11 +151,13 @@ class CustomFieldChoiceSetDeleteView(generic.ObjectDeleteView):
queryset = CustomFieldChoiceSet.objects.all()
+@register_model_view(CustomFieldChoiceSet, 'bulk_import', detail=False)
class CustomFieldChoiceSetBulkImportView(generic.BulkImportView):
queryset = CustomFieldChoiceSet.objects.all()
model_form = forms.CustomFieldChoiceSetImportForm
+@register_model_view(CustomFieldChoiceSet, 'bulk_edit', path='edit', detail=False)
class CustomFieldChoiceSetBulkEditView(generic.BulkEditView):
queryset = CustomFieldChoiceSet.objects.all()
filterset = filtersets.CustomFieldChoiceSetFilterSet
@@ -156,6 +165,7 @@ class CustomFieldChoiceSetBulkEditView(generic.BulkEditView):
form = forms.CustomFieldChoiceSetBulkEditForm
+@register_model_view(CustomFieldChoiceSet, 'bulk_delete', path='delete', detail=False)
class CustomFieldChoiceSetBulkDeleteView(generic.BulkDeleteView):
queryset = CustomFieldChoiceSet.objects.all()
filterset = filtersets.CustomFieldChoiceSetFilterSet
@@ -166,6 +176,7 @@ class CustomFieldChoiceSetBulkDeleteView(generic.BulkDeleteView):
# Custom links
#
+@register_model_view(CustomLink, 'list', path='', detail=False)
class CustomLinkListView(generic.ObjectListView):
queryset = CustomLink.objects.all()
filterset = filtersets.CustomLinkFilterSet
@@ -178,6 +189,7 @@ class CustomLinkView(generic.ObjectView):
queryset = CustomLink.objects.all()
+@register_model_view(CustomLink, 'add', detail=False)
@register_model_view(CustomLink, 'edit')
class CustomLinkEditView(generic.ObjectEditView):
queryset = CustomLink.objects.all()
@@ -189,11 +201,13 @@ class CustomLinkDeleteView(generic.ObjectDeleteView):
queryset = CustomLink.objects.all()
+@register_model_view(CustomLink, 'bulk_import', detail=False)
class CustomLinkBulkImportView(generic.BulkImportView):
queryset = CustomLink.objects.all()
model_form = forms.CustomLinkImportForm
+@register_model_view(CustomLink, 'bulk_edit', path='edit', detail=False)
class CustomLinkBulkEditView(generic.BulkEditView):
queryset = CustomLink.objects.all()
filterset = filtersets.CustomLinkFilterSet
@@ -201,6 +215,7 @@ class CustomLinkBulkEditView(generic.BulkEditView):
form = forms.CustomLinkBulkEditForm
+@register_model_view(CustomLink, 'bulk_delete', path='delete', detail=False)
class CustomLinkBulkDeleteView(generic.BulkDeleteView):
queryset = CustomLink.objects.all()
filterset = filtersets.CustomLinkFilterSet
@@ -211,6 +226,7 @@ class CustomLinkBulkDeleteView(generic.BulkDeleteView):
# Export templates
#
+@register_model_view(ExportTemplate, 'list', path='', detail=False)
class ExportTemplateListView(generic.ObjectListView):
queryset = ExportTemplate.objects.all()
filterset = filtersets.ExportTemplateFilterSet
@@ -228,6 +244,7 @@ class ExportTemplateView(generic.ObjectView):
queryset = ExportTemplate.objects.all()
+@register_model_view(ExportTemplate, 'add', detail=False)
@register_model_view(ExportTemplate, 'edit')
class ExportTemplateEditView(generic.ObjectEditView):
queryset = ExportTemplate.objects.all()
@@ -239,11 +256,13 @@ class ExportTemplateDeleteView(generic.ObjectDeleteView):
queryset = ExportTemplate.objects.all()
+@register_model_view(ExportTemplate, 'bulk_import', detail=False)
class ExportTemplateBulkImportView(generic.BulkImportView):
queryset = ExportTemplate.objects.all()
model_form = forms.ExportTemplateImportForm
+@register_model_view(ExportTemplate, 'bulk_edit', path='edit', detail=False)
class ExportTemplateBulkEditView(generic.BulkEditView):
queryset = ExportTemplate.objects.all()
filterset = filtersets.ExportTemplateFilterSet
@@ -251,12 +270,14 @@ class ExportTemplateBulkEditView(generic.BulkEditView):
form = forms.ExportTemplateBulkEditForm
+@register_model_view(ExportTemplate, 'bulk_delete', path='delete', detail=False)
class ExportTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = ExportTemplate.objects.all()
filterset = filtersets.ExportTemplateFilterSet
table = tables.ExportTemplateTable
+@register_model_view(ExportTemplate, 'bulk_sync', path='sync', detail=False)
class ExportTemplateBulkSyncDataView(generic.BulkSyncDataView):
queryset = ExportTemplate.objects.all()
@@ -283,6 +304,7 @@ class SavedFilterMixin:
)
+@register_model_view(SavedFilter, 'list', path='', detail=False)
class SavedFilterListView(SavedFilterMixin, generic.ObjectListView):
filterset = filtersets.SavedFilterFilterSet
filterset_form = forms.SavedFilterFilterForm
@@ -294,6 +316,7 @@ class SavedFilterView(SavedFilterMixin, generic.ObjectView):
queryset = SavedFilter.objects.all()
+@register_model_view(SavedFilter, 'add', detail=False)
@register_model_view(SavedFilter, 'edit')
class SavedFilterEditView(SavedFilterMixin, generic.ObjectEditView):
queryset = SavedFilter.objects.all()
@@ -310,11 +333,13 @@ class SavedFilterDeleteView(SavedFilterMixin, generic.ObjectDeleteView):
queryset = SavedFilter.objects.all()
+@register_model_view(SavedFilter, 'bulk_import', detail=False)
class SavedFilterBulkImportView(SavedFilterMixin, generic.BulkImportView):
queryset = SavedFilter.objects.all()
model_form = forms.SavedFilterImportForm
+@register_model_view(SavedFilter, 'bulk_edit', path='edit', detail=False)
class SavedFilterBulkEditView(SavedFilterMixin, generic.BulkEditView):
queryset = SavedFilter.objects.all()
filterset = filtersets.SavedFilterFilterSet
@@ -322,6 +347,7 @@ class SavedFilterBulkEditView(SavedFilterMixin, generic.BulkEditView):
form = forms.SavedFilterBulkEditForm
+@register_model_view(SavedFilter, 'bulk_delete', path='delete', detail=False)
class SavedFilterBulkDeleteView(SavedFilterMixin, generic.BulkDeleteView):
queryset = SavedFilter.objects.all()
filterset = filtersets.SavedFilterFilterSet
@@ -332,6 +358,7 @@ class SavedFilterBulkDeleteView(SavedFilterMixin, generic.BulkDeleteView):
# Bookmarks
#
+@register_model_view(Bookmark, 'add', detail=False)
class BookmarkCreateView(generic.ObjectEditView):
form = forms.BookmarkForm
@@ -350,6 +377,7 @@ class BookmarkDeleteView(generic.ObjectDeleteView):
return Bookmark.objects.filter(user=request.user)
+@register_model_view(Bookmark, 'bulk_delete', path='delete', detail=False)
class BookmarkBulkDeleteView(generic.BulkDeleteView):
table = tables.BookmarkTable
@@ -361,6 +389,7 @@ class BookmarkBulkDeleteView(generic.BulkDeleteView):
# Notification groups
#
+@register_model_view(NotificationGroup, 'list', path='', detail=False)
class NotificationGroupListView(generic.ObjectListView):
queryset = NotificationGroup.objects.all()
filterset = filtersets.NotificationGroupFilterSet
@@ -373,6 +402,7 @@ class NotificationGroupView(generic.ObjectView):
queryset = NotificationGroup.objects.all()
+@register_model_view(NotificationGroup, 'add', detail=False)
@register_model_view(NotificationGroup, 'edit')
class NotificationGroupEditView(generic.ObjectEditView):
queryset = NotificationGroup.objects.all()
@@ -384,11 +414,13 @@ class NotificationGroupDeleteView(generic.ObjectDeleteView):
queryset = NotificationGroup.objects.all()
+@register_model_view(NotificationGroup, 'bulk_import', detail=False)
class NotificationGroupBulkImportView(generic.BulkImportView):
queryset = NotificationGroup.objects.all()
model_form = forms.NotificationGroupImportForm
+@register_model_view(NotificationGroup, 'bulk_edit', path='edit', detail=False)
class NotificationGroupBulkEditView(generic.BulkEditView):
queryset = NotificationGroup.objects.all()
filterset = filtersets.NotificationGroupFilterSet
@@ -396,6 +428,7 @@ class NotificationGroupBulkEditView(generic.BulkEditView):
form = forms.NotificationGroupBulkEditForm
+@register_model_view(NotificationGroup, 'bulk_delete', path='delete', detail=False)
class NotificationGroupBulkDeleteView(generic.BulkDeleteView):
queryset = NotificationGroup.objects.all()
filterset = filtersets.NotificationGroupFilterSet
@@ -459,6 +492,7 @@ class NotificationDeleteView(generic.ObjectDeleteView):
return Notification.objects.filter(user=request.user)
+@register_model_view(Notification, 'bulk_delete', path='delete', detail=False)
class NotificationBulkDeleteView(generic.BulkDeleteView):
table = tables.NotificationTable
@@ -470,6 +504,7 @@ class NotificationBulkDeleteView(generic.BulkDeleteView):
# Subscriptions
#
+@register_model_view(Subscription, 'add', detail=False)
class SubscriptionCreateView(generic.ObjectEditView):
form = forms.SubscriptionForm
@@ -488,6 +523,7 @@ class SubscriptionDeleteView(generic.ObjectDeleteView):
return Subscription.objects.filter(user=request.user)
+@register_model_view(Subscription, 'bulk_delete', path='delete', detail=False)
class SubscriptionBulkDeleteView(generic.BulkDeleteView):
table = tables.SubscriptionTable
@@ -499,6 +535,7 @@ class SubscriptionBulkDeleteView(generic.BulkDeleteView):
# Webhooks
#
+@register_model_view(Webhook, 'list', path='', detail=False)
class WebhookListView(generic.ObjectListView):
queryset = Webhook.objects.all()
filterset = filtersets.WebhookFilterSet
@@ -511,6 +548,7 @@ class WebhookView(generic.ObjectView):
queryset = Webhook.objects.all()
+@register_model_view(Webhook, 'add', detail=False)
@register_model_view(Webhook, 'edit')
class WebhookEditView(generic.ObjectEditView):
queryset = Webhook.objects.all()
@@ -522,11 +560,13 @@ class WebhookDeleteView(generic.ObjectDeleteView):
queryset = Webhook.objects.all()
+@register_model_view(Webhook, 'bulk_import', detail=False)
class WebhookBulkImportView(generic.BulkImportView):
queryset = Webhook.objects.all()
model_form = forms.WebhookImportForm
+@register_model_view(Webhook, 'bulk_edit', path='edit', detail=False)
class WebhookBulkEditView(generic.BulkEditView):
queryset = Webhook.objects.all()
filterset = filtersets.WebhookFilterSet
@@ -534,6 +574,7 @@ class WebhookBulkEditView(generic.BulkEditView):
form = forms.WebhookBulkEditForm
+@register_model_view(Webhook, 'bulk_delete', path='delete', detail=False)
class WebhookBulkDeleteView(generic.BulkDeleteView):
queryset = Webhook.objects.all()
filterset = filtersets.WebhookFilterSet
@@ -544,6 +585,7 @@ class WebhookBulkDeleteView(generic.BulkDeleteView):
# Event Rules
#
+@register_model_view(EventRule, 'list', path='', detail=False)
class EventRuleListView(generic.ObjectListView):
queryset = EventRule.objects.all()
filterset = filtersets.EventRuleFilterSet
@@ -556,6 +598,7 @@ class EventRuleView(generic.ObjectView):
queryset = EventRule.objects.all()
+@register_model_view(EventRule, 'add', detail=False)
@register_model_view(EventRule, 'edit')
class EventRuleEditView(generic.ObjectEditView):
queryset = EventRule.objects.all()
@@ -567,11 +610,13 @@ class EventRuleDeleteView(generic.ObjectDeleteView):
queryset = EventRule.objects.all()
+@register_model_view(EventRule, 'bulk_import', detail=False)
class EventRuleBulkImportView(generic.BulkImportView):
queryset = EventRule.objects.all()
model_form = forms.EventRuleImportForm
+@register_model_view(EventRule, 'bulk_edit', path='edit', detail=False)
class EventRuleBulkEditView(generic.BulkEditView):
queryset = EventRule.objects.all()
filterset = filtersets.EventRuleFilterSet
@@ -579,6 +624,7 @@ class EventRuleBulkEditView(generic.BulkEditView):
form = forms.EventRuleBulkEditForm
+@register_model_view(EventRule, 'bulk_delete', path='delete', detail=False)
class EventRuleBulkDeleteView(generic.BulkDeleteView):
queryset = EventRule.objects.all()
filterset = filtersets.EventRuleFilterSet
@@ -589,6 +635,7 @@ class EventRuleBulkDeleteView(generic.BulkDeleteView):
# Tags
#
+@register_model_view(Tag, 'list', path='', detail=False)
class TagListView(generic.ObjectListView):
queryset = Tag.objects.annotate(
items=count_related(TaggedItem, 'tag')
@@ -624,6 +671,7 @@ class TagView(generic.ObjectView):
}
+@register_model_view(Tag, 'add', detail=False)
@register_model_view(Tag, 'edit')
class TagEditView(generic.ObjectEditView):
queryset = Tag.objects.all()
@@ -635,11 +683,13 @@ class TagDeleteView(generic.ObjectDeleteView):
queryset = Tag.objects.all()
+@register_model_view(Tag, 'bulk_import', detail=False)
class TagBulkImportView(generic.BulkImportView):
queryset = Tag.objects.all()
model_form = forms.TagImportForm
+@register_model_view(Tag, 'bulk_edit', path='edit', detail=False)
class TagBulkEditView(generic.BulkEditView):
queryset = Tag.objects.annotate(
items=count_related(TaggedItem, 'tag')
@@ -648,6 +698,7 @@ class TagBulkEditView(generic.BulkEditView):
form = forms.TagBulkEditForm
+@register_model_view(Tag, 'bulk_delete', path='delete', detail=False)
class TagBulkDeleteView(generic.BulkDeleteView):
queryset = Tag.objects.annotate(
items=count_related(TaggedItem, 'tag')
@@ -659,6 +710,7 @@ class TagBulkDeleteView(generic.BulkDeleteView):
# Config contexts
#
+@register_model_view(ConfigContext, 'list', path='', detail=False)
class ConfigContextListView(generic.ObjectListView):
queryset = ConfigContext.objects.all()
filterset = filtersets.ConfigContextFilterSet
@@ -711,30 +763,34 @@ class ConfigContextView(generic.ObjectView):
}
+@register_model_view(ConfigContext, 'add', detail=False)
@register_model_view(ConfigContext, 'edit')
class ConfigContextEditView(generic.ObjectEditView):
queryset = ConfigContext.objects.all()
form = forms.ConfigContextForm
-class ConfigContextBulkEditView(generic.BulkEditView):
- queryset = ConfigContext.objects.all()
- filterset = filtersets.ConfigContextFilterSet
- table = tables.ConfigContextTable
- form = forms.ConfigContextBulkEditForm
-
-
@register_model_view(ConfigContext, 'delete')
class ConfigContextDeleteView(generic.ObjectDeleteView):
queryset = ConfigContext.objects.all()
+@register_model_view(ConfigContext, 'bulk_edit', path='edit', detail=False)
+class ConfigContextBulkEditView(generic.BulkEditView):
+ queryset = ConfigContext.objects.all()
+ filterset = filtersets.ConfigContextFilterSet
+ table = tables.ConfigContextTable
+ form = forms.ConfigContextBulkEditForm
+
+
+@register_model_view(ConfigContext, 'bulk_delete', path='delete', detail=False)
class ConfigContextBulkDeleteView(generic.BulkDeleteView):
queryset = ConfigContext.objects.all()
filterset = filtersets.ConfigContextFilterSet
table = tables.ConfigContextTable
+@register_model_view(ConfigContext, 'bulk_sync', path='sync', detail=False)
class ConfigContextBulkSyncDataView(generic.BulkSyncDataView):
queryset = ConfigContext.objects.all()
@@ -768,6 +824,7 @@ class ObjectConfigContextView(generic.ObjectView):
# Config templates
#
+@register_model_view(ConfigTemplate, 'list', path='', detail=False)
class ConfigTemplateListView(generic.ObjectListView):
queryset = ConfigTemplate.objects.annotate(
device_count=count_related(Device, 'config_template'),
@@ -790,6 +847,7 @@ class ConfigTemplateView(generic.ObjectView):
queryset = ConfigTemplate.objects.all()
+@register_model_view(ConfigTemplate, 'add', detail=False)
@register_model_view(ConfigTemplate, 'edit')
class ConfigTemplateEditView(generic.ObjectEditView):
queryset = ConfigTemplate.objects.all()
@@ -801,11 +859,13 @@ class ConfigTemplateDeleteView(generic.ObjectDeleteView):
queryset = ConfigTemplate.objects.all()
+@register_model_view(ConfigTemplate, 'bulk_import', detail=False)
class ConfigTemplateBulkImportView(generic.BulkImportView):
queryset = ConfigTemplate.objects.all()
model_form = forms.ConfigTemplateImportForm
+@register_model_view(ConfigTemplate, 'bulk_edit', path='edit', detail=False)
class ConfigTemplateBulkEditView(generic.BulkEditView):
queryset = ConfigTemplate.objects.all()
filterset = filtersets.ConfigTemplateFilterSet
@@ -813,12 +873,14 @@ class ConfigTemplateBulkEditView(generic.BulkEditView):
form = forms.ConfigTemplateBulkEditForm
+@register_model_view(ConfigTemplate, 'bulk_delete', path='delete', detail=False)
class ConfigTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = ConfigTemplate.objects.all()
filterset = filtersets.ConfigTemplateFilterSet
table = tables.ConfigTemplateTable
+@register_model_view(ConfigTemplate, 'bulk_sync', path='sync', detail=False)
class ConfigTemplateBulkSyncDataView(generic.BulkSyncDataView):
queryset = ConfigTemplate.objects.all()
@@ -827,6 +889,7 @@ class ConfigTemplateBulkSyncDataView(generic.BulkSyncDataView):
# Image attachments
#
+@register_model_view(ImageAttachment, 'list', path='', detail=False)
class ImageAttachmentListView(generic.ObjectListView):
queryset = ImageAttachment.objects.all()
filterset = filtersets.ImageAttachmentFilterSet
@@ -837,6 +900,7 @@ class ImageAttachmentListView(generic.ObjectListView):
}
+@register_model_view(ImageAttachment, 'add', detail=False)
@register_model_view(ImageAttachment, 'edit')
class ImageAttachmentEditView(generic.ObjectEditView):
queryset = ImageAttachment.objects.all()
@@ -871,14 +935,15 @@ class ImageAttachmentDeleteView(generic.ObjectDeleteView):
# Journal entries
#
+@register_model_view(JournalEntry, 'list', path='', detail=False)
class JournalEntryListView(generic.ObjectListView):
queryset = JournalEntry.objects.all()
filterset = filtersets.JournalEntryFilterSet
filterset_form = forms.JournalEntryFilterForm
table = tables.JournalEntryTable
actions = {
- 'import': {'add'},
'export': {'view'},
+ 'bulk_import': {'add'},
'bulk_edit': {'change'},
'bulk_delete': {'delete'},
}
@@ -889,6 +954,7 @@ class JournalEntryView(generic.ObjectView):
queryset = JournalEntry.objects.all()
+@register_model_view(JournalEntry, 'add', detail=False)
@register_model_view(JournalEntry, 'edit')
class JournalEntryEditView(generic.ObjectEditView):
queryset = JournalEntry.objects.all()
@@ -917,6 +983,13 @@ class JournalEntryDeleteView(generic.ObjectDeleteView):
return reverse(viewname, kwargs={'pk': obj.pk})
+@register_model_view(JournalEntry, 'bulk_import', detail=False)
+class JournalEntryBulkImportView(generic.BulkImportView):
+ queryset = JournalEntry.objects.all()
+ model_form = forms.JournalEntryImportForm
+
+
+@register_model_view(JournalEntry, 'bulk_edit', path='edit', detail=False)
class JournalEntryBulkEditView(generic.BulkEditView):
queryset = JournalEntry.objects.all()
filterset = filtersets.JournalEntryFilterSet
@@ -924,17 +997,13 @@ class JournalEntryBulkEditView(generic.BulkEditView):
form = forms.JournalEntryBulkEditForm
+@register_model_view(JournalEntry, 'bulk_delete', path='delete', detail=False)
class JournalEntryBulkDeleteView(generic.BulkDeleteView):
queryset = JournalEntry.objects.all()
filterset = filtersets.JournalEntryFilterSet
table = tables.JournalEntryTable
-class JournalEntryBulkImportView(generic.BulkImportView):
- queryset = JournalEntry.objects.all()
- model_form = forms.JournalEntryImportForm
-
-
#
# Dashboard & widgets
#
@@ -1141,12 +1210,14 @@ class ScriptView(BaseScriptView):
script_class = self._get_script_class(script)
if not script_class:
return render(request, 'extras/script.html', {
+ 'object': script,
'script': script,
})
form = script_class.as_form(initial=normalize_querydict(request.GET))
return render(request, 'extras/script.html', {
+ 'object': script,
'script': script,
'script_class': script_class,
'form': form,
@@ -1162,6 +1233,7 @@ class ScriptView(BaseScriptView):
script_class = self._get_script_class(script)
if not script_class:
return render(request, 'extras/script.html', {
+ 'object': script,
'script': script,
})
@@ -1181,12 +1253,12 @@ class ScriptView(BaseScriptView):
request=copy_safe_request(request),
job_timeout=script.python_class.job_timeout,
commit=form.cleaned_data.pop('_commit'),
- name=script.name
)
return redirect('extras:script_result', job_pk=job.pk)
return render(request, 'extras/script.html', {
+ 'object': script,
'script': script,
'script_class': script.python_class(),
'form': form,
diff --git a/netbox/ipam/api/nested_serializers.py b/netbox/ipam/api/nested_serializers.py
deleted file mode 100644
index 8b10f29df..000000000
--- a/netbox/ipam/api/nested_serializers.py
+++ /dev/null
@@ -1,204 +0,0 @@
-import warnings
-
-from drf_spectacular.utils import extend_schema_serializer
-from rest_framework import serializers
-
-from ipam import models
-from netbox.api.fields import RelatedObjectCountField
-from netbox.api.serializers import WritableNestedSerializer
-from .field_serializers import IPAddressField
-from .serializers_.nested import NestedIPAddressSerializer
-
-__all__ = [
- 'NestedAggregateSerializer',
- 'NestedASNSerializer',
- 'NestedASNRangeSerializer',
- 'NestedFHRPGroupSerializer',
- 'NestedFHRPGroupAssignmentSerializer',
- 'NestedIPAddressSerializer',
- 'NestedIPRangeSerializer',
- 'NestedPrefixSerializer',
- 'NestedRIRSerializer',
- 'NestedRoleSerializer',
- 'NestedRouteTargetSerializer',
- 'NestedServiceSerializer',
- 'NestedServiceTemplateSerializer',
- 'NestedVLANGroupSerializer',
- 'NestedVLANSerializer',
- 'NestedVRFSerializer',
-]
-
-# TODO: Remove in v4.2
-warnings.warn(
- "Dedicated nested serializers will be removed in NetBox v4.2. Use Serializer(nested=True) instead.",
- DeprecationWarning
-)
-
-
-#
-# ASN ranges
-#
-
-class NestedASNRangeSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ASNRange
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-#
-# ASNs
-#
-
-class NestedASNSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ASN
- fields = ['id', 'url', 'display_url', 'display', 'asn']
-
-
-#
-# VRFs
-#
-
-@extend_schema_serializer(
- exclude_fields=('prefix_count',),
-)
-class NestedVRFSerializer(WritableNestedSerializer):
- prefix_count = RelatedObjectCountField('prefixes')
-
- class Meta:
- model = models.VRF
- fields = ['id', 'url', 'display_url', 'display', 'name', 'rd', 'prefix_count']
-
-
-#
-# Route targets
-#
-
-class NestedRouteTargetSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.RouteTarget
- fields = ['id', 'url', 'display_url', 'display', 'name']
-
-
-#
-# RIRs/aggregates
-#
-
-@extend_schema_serializer(
- exclude_fields=('aggregate_count',),
-)
-class NestedRIRSerializer(WritableNestedSerializer):
- aggregate_count = RelatedObjectCountField('aggregates')
-
- class Meta:
- model = models.RIR
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'aggregate_count']
-
-
-class NestedAggregateSerializer(WritableNestedSerializer):
- family = serializers.IntegerField(read_only=True)
-
- class Meta:
- model = models.Aggregate
- fields = ['id', 'url', 'display_url', 'display', 'family', 'prefix']
-
-
-#
-# FHRP groups
-#
-
-class NestedFHRPGroupSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.FHRPGroup
- fields = ['id', 'url', 'display_url', 'display', 'protocol', 'group_id']
-
-
-class NestedFHRPGroupAssignmentSerializer(WritableNestedSerializer):
- group = NestedFHRPGroupSerializer()
-
- class Meta:
- model = models.FHRPGroupAssignment
- fields = ['id', 'url', 'display_url', 'display', 'group', 'interface_type', 'interface_id', 'priority']
-
-
-#
-# VLANs
-#
-
-@extend_schema_serializer(
- exclude_fields=('prefix_count', 'vlan_count'),
-)
-class NestedRoleSerializer(WritableNestedSerializer):
- prefix_count = RelatedObjectCountField('prefixes')
- vlan_count = RelatedObjectCountField('vlans')
-
- class Meta:
- model = models.Role
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'prefix_count', 'vlan_count']
-
-
-@extend_schema_serializer(
- exclude_fields=('vlan_count',),
-)
-class NestedVLANGroupSerializer(WritableNestedSerializer):
- vlan_count = RelatedObjectCountField('vlans')
-
- class Meta:
- model = models.VLANGroup
- fields = ['id', 'url', 'display_url', 'display', 'name', 'slug', 'vlan_count']
-
-
-class NestedVLANSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.VLAN
- fields = ['id', 'url', 'display_url', 'display', 'vid', 'name']
-
-
-#
-# Prefixes
-#
-
-class NestedPrefixSerializer(WritableNestedSerializer):
- family = serializers.IntegerField(read_only=True)
- _depth = serializers.IntegerField(read_only=True)
-
- class Meta:
- model = models.Prefix
- fields = ['id', 'url', 'display_url', 'display', 'family', 'prefix', '_depth']
-
-
-#
-# IP ranges
-#
-
-class NestedIPRangeSerializer(WritableNestedSerializer):
- family = serializers.IntegerField(read_only=True)
- start_address = IPAddressField()
- end_address = IPAddressField()
-
- class Meta:
- model = models.IPRange
- fields = ['id', 'url', 'display_url', 'display', 'family', 'start_address', 'end_address']
-
-
-#
-# Services
-#
-
-class NestedServiceTemplateSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.ServiceTemplate
- fields = ['id', 'url', 'display_url', 'display', 'name', 'protocol', 'ports']
-
-
-class NestedServiceSerializer(WritableNestedSerializer):
-
- class Meta:
- model = models.Service
- fields = ['id', 'url', 'display_url', 'display', 'name', 'protocol', 'ports']
diff --git a/netbox/ipam/api/serializers_/ip.py b/netbox/ipam/api/serializers_/ip.py
index 535ffcec1..bfc7ac546 100644
--- a/netbox/ipam/api/serializers_/ip.py
+++ b/netbox/ipam/api/serializers_/ip.py
@@ -2,7 +2,7 @@ from django.contrib.contenttypes.models import ContentType
from drf_spectacular.utils import extend_schema_field
from rest_framework import serializers
-from dcim.api.serializers_.sites import SiteSerializer
+from dcim.constants import LOCATION_SCOPE_TYPES
from ipam.choices import *
from ipam.constants import IPADDRESS_ASSIGNMENT_MODELS
from ipam.models import Aggregate, IPAddress, IPRange, Prefix
@@ -45,8 +45,17 @@ class AggregateSerializer(NetBoxModelSerializer):
class PrefixSerializer(NetBoxModelSerializer):
family = ChoiceField(choices=IPAddressFamilyChoices, read_only=True)
- site = SiteSerializer(nested=True, required=False, allow_null=True)
vrf = VRFSerializer(nested=True, required=False, allow_null=True)
+ scope_type = ContentTypeField(
+ queryset=ContentType.objects.filter(
+ model__in=LOCATION_SCOPE_TYPES
+ ),
+ allow_null=True,
+ required=False,
+ default=None
+ )
+ scope_id = serializers.IntegerField(allow_null=True, required=False, default=None)
+ scope = serializers.SerializerMethodField(read_only=True)
tenant = TenantSerializer(nested=True, required=False, allow_null=True)
vlan = VLANSerializer(nested=True, required=False, allow_null=True)
status = ChoiceField(choices=PrefixStatusChoices, required=False)
@@ -58,12 +67,20 @@ class PrefixSerializer(NetBoxModelSerializer):
class Meta:
model = Prefix
fields = [
- 'id', 'url', 'display_url', 'display', 'family', 'prefix', 'site', 'vrf', 'tenant', 'vlan', 'status',
- 'role', 'is_pool', 'mark_utilized', 'description', 'comments', 'tags', 'custom_fields',
- 'created', 'last_updated', 'children', '_depth',
+ 'id', 'url', 'display_url', 'display', 'family', 'prefix', 'vrf', 'scope_type', 'scope_id', 'scope',
+ 'tenant', 'vlan', 'status', 'role', 'is_pool', 'mark_utilized', 'description', 'comments', 'tags',
+ 'custom_fields', 'created', 'last_updated', 'children', '_depth',
]
brief_fields = ('id', 'url', 'display', 'family', 'prefix', 'description', '_depth')
+ @extend_schema_field(serializers.JSONField(allow_null=True))
+ def get_scope(self, obj):
+ if obj.scope_id is None:
+ return None
+ serializer = get_serializer_for_model(obj.scope)
+ context = {'request': self.context['request']}
+ return serializer(obj.scope, nested=True, context=context).data
+
class PrefixLengthSerializer(serializers.Serializer):
diff --git a/netbox/ipam/api/serializers_/nested.py b/netbox/ipam/api/serializers_/nested.py
index 5297565bb..b56b15984 100644
--- a/netbox/ipam/api/serializers_/nested.py
+++ b/netbox/ipam/api/serializers_/nested.py
@@ -6,6 +6,7 @@ from ..field_serializers import IPAddressField
__all__ = (
'NestedIPAddressSerializer',
+ 'NestedVLANSerializer',
)
@@ -16,3 +17,10 @@ class NestedIPAddressSerializer(WritableNestedSerializer):
class Meta:
model = models.IPAddress
fields = ['id', 'url', 'display_url', 'display', 'family', 'address']
+
+
+class NestedVLANSerializer(WritableNestedSerializer):
+
+ class Meta:
+ model = models.VLAN
+ fields = ['id', 'url', 'display', 'vid', 'name', 'description']
diff --git a/netbox/ipam/api/serializers_/vlans.py b/netbox/ipam/api/serializers_/vlans.py
index 608fcf0b4..9b5501dc5 100644
--- a/netbox/ipam/api/serializers_/vlans.py
+++ b/netbox/ipam/api/serializers_/vlans.py
@@ -5,12 +5,13 @@ from rest_framework import serializers
from dcim.api.serializers_.sites import SiteSerializer
from ipam.choices import *
from ipam.constants import VLANGROUP_SCOPE_TYPES
-from ipam.models import VLAN, VLANGroup
+from ipam.models import VLAN, VLANGroup, VLANTranslationPolicy, VLANTranslationRule
from netbox.api.fields import ChoiceField, ContentTypeField, IntegerRangeSerializer, RelatedObjectCountField
from netbox.api.serializers import NetBoxModelSerializer
from tenancy.api.serializers_.tenants import TenantSerializer
from utilities.api import get_serializer_for_model
from vpn.api.serializers_.l2vpn import L2VPNTerminationSerializer
+from .nested import NestedVLANSerializer
from .roles import RoleSerializer
__all__ = (
@@ -18,6 +19,8 @@ __all__ = (
'CreateAvailableVLANSerializer',
'VLANGroupSerializer',
'VLANSerializer',
+ 'VLANTranslationPolicySerializer',
+ 'VLANTranslationRuleSerializer',
)
@@ -62,6 +65,8 @@ class VLANSerializer(NetBoxModelSerializer):
tenant = TenantSerializer(nested=True, required=False, allow_null=True)
status = ChoiceField(choices=VLANStatusChoices, required=False)
role = RoleSerializer(nested=True, required=False, allow_null=True)
+ qinq_role = ChoiceField(choices=VLANQinQRoleChoices, required=False)
+ qinq_svlan = NestedVLANSerializer(required=False, allow_null=True, default=None)
l2vpn_termination = L2VPNTerminationSerializer(nested=True, read_only=True, allow_null=True)
# Related object counts
@@ -71,8 +76,8 @@ class VLANSerializer(NetBoxModelSerializer):
model = VLAN
fields = [
'id', 'url', 'display_url', 'display', 'site', 'group', 'vid', 'name', 'tenant', 'status', 'role',
- 'description', 'comments', 'l2vpn_termination', 'tags', 'custom_fields', 'created', 'last_updated',
- 'prefix_count',
+ 'description', 'qinq_role', 'qinq_svlan', 'comments', 'l2vpn_termination', 'tags', 'custom_fields',
+ 'created', 'last_updated', 'prefix_count',
]
brief_fields = ('id', 'url', 'display', 'vid', 'name', 'description')
@@ -110,3 +115,19 @@ class CreateAvailableVLANSerializer(NetBoxModelSerializer):
def validate(self, data):
# Bypass model validation since we don't have a VID yet
return data
+
+
+class VLANTranslationRuleSerializer(NetBoxModelSerializer):
+
+ class Meta:
+ model = VLANTranslationRule
+ fields = ['id', 'url', 'display', 'policy', 'local_vid', 'remote_vid', 'description']
+
+
+class VLANTranslationPolicySerializer(NetBoxModelSerializer):
+ rules = VLANTranslationRuleSerializer(many=True, read_only=True)
+
+ class Meta:
+ model = VLANTranslationPolicy
+ fields = ['id', 'url', 'display', 'name', 'description', 'display', 'rules']
+ brief_fields = ('id', 'url', 'display', 'name', 'description')
diff --git a/netbox/ipam/api/urls.py b/netbox/ipam/api/urls.py
index bae9d8048..ea76025ec 100644
--- a/netbox/ipam/api/urls.py
+++ b/netbox/ipam/api/urls.py
@@ -21,6 +21,8 @@ router.register('fhrp-groups', views.FHRPGroupViewSet)
router.register('fhrp-group-assignments', views.FHRPGroupAssignmentViewSet)
router.register('vlan-groups', views.VLANGroupViewSet)
router.register('vlans', views.VLANViewSet)
+router.register('vlan-translation-policies', views.VLANTranslationPolicyViewSet)
+router.register('vlan-translation-rules', views.VLANTranslationRuleViewSet)
router.register('service-templates', views.ServiceTemplateViewSet)
router.register('services', views.ServiceViewSet)
diff --git a/netbox/ipam/api/views.py b/netbox/ipam/api/views.py
index ffd4d5b7d..783d13523 100644
--- a/netbox/ipam/api/views.py
+++ b/netbox/ipam/api/views.py
@@ -143,6 +143,18 @@ class VLANViewSet(NetBoxModelViewSet):
filterset_class = filtersets.VLANFilterSet
+class VLANTranslationPolicyViewSet(NetBoxModelViewSet):
+ queryset = VLANTranslationPolicy.objects.all()
+ serializer_class = serializers.VLANTranslationPolicySerializer
+ filterset_class = filtersets.VLANTranslationPolicyFilterSet
+
+
+class VLANTranslationRuleViewSet(NetBoxModelViewSet):
+ queryset = VLANTranslationRule.objects.all()
+ serializer_class = serializers.VLANTranslationRuleSerializer
+ filterset_class = filtersets.VLANTranslationRuleFilterSet
+
+
class ServiceTemplateViewSet(NetBoxModelViewSet):
queryset = ServiceTemplate.objects.all()
serializer_class = serializers.ServiceTemplateSerializer
diff --git a/netbox/ipam/apps.py b/netbox/ipam/apps.py
index c118d5464..ae88d69a9 100644
--- a/netbox/ipam/apps.py
+++ b/netbox/ipam/apps.py
@@ -1,5 +1,7 @@
from django.apps import AppConfig
+from netbox import denormalized
+
class IPAMConfig(AppConfig):
name = "ipam"
@@ -8,6 +10,16 @@ class IPAMConfig(AppConfig):
def ready(self):
from netbox.models.features import register_models
from . import signals, search # noqa: F401
+ from .models import Prefix
# Register models
register_models(*self.get_models())
+
+ # Register denormalized fields
+ denormalized.register(Prefix, '_site', {
+ '_region': 'region',
+ '_site_group': 'group',
+ })
+ denormalized.register(Prefix, '_location', {
+ '_site': 'site',
+ })
diff --git a/netbox/ipam/choices.py b/netbox/ipam/choices.py
index 017fd0430..51b65a6da 100644
--- a/netbox/ipam/choices.py
+++ b/netbox/ipam/choices.py
@@ -157,6 +157,17 @@ class VLANStatusChoices(ChoiceSet):
]
+class VLANQinQRoleChoices(ChoiceSet):
+
+ ROLE_SERVICE = 'svlan'
+ ROLE_CUSTOMER = 'cvlan'
+
+ CHOICES = [
+ (ROLE_SERVICE, _('Service'), 'blue'),
+ (ROLE_CUSTOMER, _('Customer'), 'orange'),
+ ]
+
+
#
# Services
#
diff --git a/netbox/ipam/filtersets.py b/netbox/ipam/filtersets.py
index 894219c64..81cbd2ef8 100644
--- a/netbox/ipam/filtersets.py
+++ b/netbox/ipam/filtersets.py
@@ -1,5 +1,6 @@
import django_filters
import netaddr
+from dcim.base_filtersets import ScopedFilterSet
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.db.models import Q
@@ -37,6 +38,8 @@ __all__ = (
'ServiceTemplateFilterSet',
'VLANFilterSet',
'VLANGroupFilterSet',
+ 'VLANTranslationPolicyFilterSet',
+ 'VLANTranslationRuleFilterSet',
'VRFFilterSet',
)
@@ -211,8 +214,10 @@ class ASNRangeFilterSet(OrganizationalModelFilterSet, TenancyFilterSet):
def search(self, queryset, name, value):
if not value.strip():
return queryset
- qs_filter = Q(description__icontains=value)
- return queryset.filter(qs_filter)
+ return queryset.filter(
+ Q(name__icontains=value) |
+ Q(description__icontains=value)
+ )
class ASNFilterSet(OrganizationalModelFilterSet, TenancyFilterSet):
@@ -271,7 +276,7 @@ class RoleFilterSet(OrganizationalModelFilterSet):
fields = ('id', 'name', 'slug', 'description', 'weight')
-class PrefixFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
+class PrefixFilterSet(NetBoxModelFilterSet, ScopedFilterSet, TenancyFilterSet):
family = django_filters.NumberFilter(
field_name='prefix',
lookup_expr='family'
@@ -332,42 +337,6 @@ class PrefixFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
to_field_name='rd',
label=_('VRF (RD)'),
)
- region_id = TreeNodeMultipleChoiceFilter(
- queryset=Region.objects.all(),
- field_name='site__region',
- lookup_expr='in',
- label=_('Region (ID)'),
- )
- region = TreeNodeMultipleChoiceFilter(
- queryset=Region.objects.all(),
- field_name='site__region',
- lookup_expr='in',
- to_field_name='slug',
- label=_('Region (slug)'),
- )
- site_group_id = TreeNodeMultipleChoiceFilter(
- queryset=SiteGroup.objects.all(),
- field_name='site__group',
- lookup_expr='in',
- label=_('Site group (ID)'),
- )
- site_group = TreeNodeMultipleChoiceFilter(
- queryset=SiteGroup.objects.all(),
- field_name='site__group',
- lookup_expr='in',
- to_field_name='slug',
- label=_('Site group (slug)'),
- )
- site_id = django_filters.ModelMultipleChoiceFilter(
- queryset=Site.objects.all(),
- label=_('Site (ID)'),
- )
- site = django_filters.ModelMultipleChoiceFilter(
- field_name='site__slug',
- queryset=Site.objects.all(),
- to_field_name='slug',
- label=_('Site (slug)'),
- )
vlan_id = django_filters.ModelMultipleChoiceFilter(
queryset=VLAN.objects.all(),
label=_('VLAN (ID)'),
@@ -393,7 +362,7 @@ class PrefixFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
class Meta:
model = Prefix
- fields = ('id', 'is_pool', 'mark_utilized', 'description')
+ fields = ('id', 'scope_id', 'is_pool', 'mark_utilized', 'description')
def search(self, queryset, name, value):
if not value.strip():
@@ -1024,6 +993,17 @@ class VLANFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
queryset=VirtualMachine.objects.all(),
method='get_for_virtualmachine'
)
+ qinq_role = django_filters.MultipleChoiceFilter(
+ choices=VLANQinQRoleChoices
+ )
+ qinq_svlan_id = django_filters.ModelMultipleChoiceFilter(
+ queryset=VLAN.objects.all(),
+ label=_('Q-in-Q SVLAN (ID)'),
+ )
+ qinq_svlan_vid = MultiValueNumberFilter(
+ field_name='qinq_svlan__vid',
+ label=_('Q-in-Q SVLAN number (1-4094)'),
+ )
l2vpn_id = django_filters.ModelMultipleChoiceFilter(
field_name='l2vpn_terminations__l2vpn',
queryset=L2VPN.objects.all(),
@@ -1078,7 +1058,7 @@ class VLANFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
return queryset.filter(
Q(interfaces_as_tagged=value) |
Q(interfaces_as_untagged=value)
- )
+ ).distinct()
def filter_vminterface_id(self, queryset, name, value):
if value is None:
@@ -1086,7 +1066,54 @@ class VLANFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
return queryset.filter(
Q(vminterfaces_as_tagged=value) |
Q(vminterfaces_as_untagged=value)
+ ).distinct()
+
+
+class VLANTranslationPolicyFilterSet(NetBoxModelFilterSet):
+
+ class Meta:
+ model = VLANTranslationPolicy
+ fields = ('id', 'name', 'description')
+
+ def search(self, queryset, name, value):
+ if not value.strip():
+ return queryset
+ qs_filter = (
+ Q(name__icontains=value) |
+ Q(description__icontains=value)
)
+ return queryset.filter(qs_filter)
+
+
+class VLANTranslationRuleFilterSet(NetBoxModelFilterSet):
+ policy_id = django_filters.ModelMultipleChoiceFilter(
+ queryset=VLANTranslationPolicy.objects.all(),
+ label=_('VLAN Translation Policy (ID)'),
+ )
+ policy = django_filters.ModelMultipleChoiceFilter(
+ field_name='policy__name',
+ queryset=VLANTranslationPolicy.objects.all(),
+ to_field_name='name',
+ label=_('VLAN Translation Policy (name)'),
+ )
+
+ class Meta:
+ model = VLANTranslationRule
+ fields = ('id', 'policy_id', 'policy', 'local_vid', 'remote_vid', 'description')
+
+ def search(self, queryset, name, value):
+ if not value.strip():
+ return queryset
+ qs_filter = (
+ Q(policy__name__icontains=value)
+ )
+ try:
+ int_value = int(value.strip())
+ qs_filter |= Q(local_vid=int_value)
+ qs_filter |= Q(remote_vid=int_value)
+ except ValueError:
+ pass
+ return queryset.filter(qs_filter)
class ServiceTemplateFilterSet(NetBoxModelFilterSet):
diff --git a/netbox/ipam/forms/bulk_edit.py b/netbox/ipam/forms/bulk_edit.py
index 79debd0ed..7f3216cfd 100644
--- a/netbox/ipam/forms/bulk_edit.py
+++ b/netbox/ipam/forms/bulk_edit.py
@@ -3,6 +3,7 @@ from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ObjectDoesNotExist
from django.utils.translation import gettext_lazy as _
+from dcim.forms.mixins import ScopedBulkEditForm
from dcim.models import Region, Site, SiteGroup
from ipam.choices import *
from ipam.constants import *
@@ -34,6 +35,8 @@ __all__ = (
'ServiceTemplateBulkEditForm',
'VLANBulkEditForm',
'VLANGroupBulkEditForm',
+ 'VLANTranslationPolicyBulkEditForm',
+ 'VLANTranslationRuleBulkEditForm',
'VRFBulkEditForm',
)
@@ -203,26 +206,7 @@ class RoleBulkEditForm(NetBoxModelBulkEditForm):
nullable_fields = ('description',)
-class PrefixBulkEditForm(NetBoxModelBulkEditForm):
- region = DynamicModelChoiceField(
- label=_('Region'),
- queryset=Region.objects.all(),
- required=False
- )
- site_group = DynamicModelChoiceField(
- label=_('Site group'),
- queryset=SiteGroup.objects.all(),
- required=False
- )
- site = DynamicModelChoiceField(
- label=_('Site'),
- queryset=Site.objects.all(),
- required=False,
- query_params={
- 'region_id': '$region',
- 'group_id': '$site_group',
- }
- )
+class PrefixBulkEditForm(ScopedBulkEditForm, NetBoxModelBulkEditForm):
vlan_group = DynamicModelChoiceField(
queryset=VLANGroup.objects.all(),
required=False,
@@ -282,12 +266,12 @@ class PrefixBulkEditForm(NetBoxModelBulkEditForm):
model = Prefix
fieldsets = (
FieldSet('tenant', 'status', 'role', 'description'),
- FieldSet('region', 'site_group', 'site', name=_('Site')),
FieldSet('vrf', 'prefix_length', 'is_pool', 'mark_utilized', name=_('Addressing')),
+ FieldSet('scope_type', 'scope', name=_('Scope')),
FieldSet('vlan_group', 'vlan', name=_('VLAN Assignment')),
)
nullable_fields = (
- 'site', 'vlan', 'vrf', 'tenant', 'role', 'description', 'comments',
+ 'vlan', 'vrf', 'tenant', 'role', 'scope', 'description', 'comments',
)
@@ -517,18 +501,62 @@ class VLANBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
+ qinq_role = forms.ChoiceField(
+ label=_('Q-in-Q role'),
+ choices=add_blank_choice(VLANQinQRoleChoices),
+ required=False
+ )
+ qinq_svlan = DynamicModelChoiceField(
+ label=_('Q-in-Q SVLAN'),
+ queryset=VLAN.objects.all(),
+ required=False,
+ query_params={
+ 'qinq_role': VLANQinQRoleChoices.ROLE_SERVICE,
+ }
+ )
comments = CommentField()
model = VLAN
fieldsets = (
FieldSet('status', 'role', 'tenant', 'description'),
+ FieldSet('qinq_role', 'qinq_svlan', name=_('Q-in-Q')),
FieldSet('region', 'site_group', 'site', 'group', name=_('Site & Group')),
)
nullable_fields = (
- 'site', 'group', 'tenant', 'role', 'description', 'comments',
+ 'site', 'group', 'tenant', 'role', 'description', 'qinq_role', 'qinq_svlan', 'comments',
)
+class VLANTranslationPolicyBulkEditForm(NetBoxModelBulkEditForm):
+ description = forms.CharField(
+ label=_('Description'),
+ max_length=200,
+ required=False
+ )
+
+ model = VLANTranslationPolicy
+ fieldsets = (
+ FieldSet('description'),
+ )
+ nullable_fields = ('description',)
+
+
+class VLANTranslationRuleBulkEditForm(NetBoxModelBulkEditForm):
+ policy = DynamicModelChoiceField(
+ label=_('Policy'),
+ queryset=VLANTranslationPolicy.objects.all(),
+ selector=True
+ )
+ local_vid = forms.IntegerField(required=False)
+ remote_vid = forms.IntegerField(required=False)
+
+ model = VLANTranslationRule
+ fieldsets = (
+ FieldSet('policy', 'local_vid', 'remote_vid'),
+ )
+ fields = ('policy', 'local_vid', 'remote_vid')
+
+
class ServiceTemplateBulkEditForm(NetBoxModelBulkEditForm):
protocol = forms.ChoiceField(
label=_('Protocol'),
diff --git a/netbox/ipam/forms/bulk_import.py b/netbox/ipam/forms/bulk_import.py
index dea250c79..c1f2dedd7 100644
--- a/netbox/ipam/forms/bulk_import.py
+++ b/netbox/ipam/forms/bulk_import.py
@@ -3,6 +3,7 @@ from django.contrib.contenttypes.models import ContentType
from django.utils.translation import gettext_lazy as _
from dcim.models import Device, Interface, Site
+from dcim.forms.mixins import ScopedImportForm
from ipam.choices import *
from ipam.constants import *
from ipam.models import *
@@ -29,6 +30,8 @@ __all__ = (
'ServiceTemplateImportForm',
'VLANImportForm',
'VLANGroupImportForm',
+ 'VLANTranslationPolicyImportForm',
+ 'VLANTranslationRuleImportForm',
'VRFImportForm',
)
@@ -152,7 +155,7 @@ class RoleImportForm(NetBoxModelImportForm):
fields = ('name', 'slug', 'weight', 'description', 'tags')
-class PrefixImportForm(NetBoxModelImportForm):
+class PrefixImportForm(ScopedImportForm, NetBoxModelImportForm):
vrf = CSVModelChoiceField(
label=_('VRF'),
queryset=VRF.objects.all(),
@@ -167,13 +170,6 @@ class PrefixImportForm(NetBoxModelImportForm):
to_field_name='name',
help_text=_('Assigned tenant')
)
- site = CSVModelChoiceField(
- label=_('Site'),
- queryset=Site.objects.all(),
- required=False,
- to_field_name='name',
- help_text=_('Assigned site')
- )
vlan_group = CSVModelChoiceField(
label=_('VLAN group'),
queryset=VLANGroup.objects.all(),
@@ -204,9 +200,12 @@ class PrefixImportForm(NetBoxModelImportForm):
class Meta:
model = Prefix
fields = (
- 'prefix', 'vrf', 'tenant', 'site', 'vlan_group', 'vlan', 'status', 'role', 'is_pool', 'mark_utilized',
- 'description', 'comments', 'tags',
+ 'prefix', 'vrf', 'tenant', 'vlan_group', 'vlan', 'status', 'role', 'scope_type', 'scope_id', 'is_pool',
+ 'mark_utilized', 'description', 'comments', 'tags',
)
+ labels = {
+ 'scope_id': _('Scope ID'),
+ }
def __init__(self, data=None, *args, **kwargs):
super().__init__(data, *args, **kwargs)
@@ -326,12 +325,17 @@ class IPAddressImportForm(NetBoxModelImportForm):
help_text=_('Make this the primary IP for the assigned device'),
required=False
)
+ is_oob = forms.BooleanField(
+ label=_('Is out-of-band'),
+ help_text=_('Designate this as the out-of-band IP address for the assigned device'),
+ required=False
+ )
class Meta:
model = IPAddress
fields = [
'address', 'vrf', 'tenant', 'status', 'role', 'device', 'virtual_machine', 'interface', 'is_primary',
- 'dns_name', 'description', 'comments', 'tags',
+ 'is_oob', 'dns_name', 'description', 'comments', 'tags',
]
def __init__(self, data=None, *args, **kwargs):
@@ -345,7 +349,7 @@ class IPAddressImportForm(NetBoxModelImportForm):
**{f"device__{self.fields['device'].to_field_name}": data['device']}
)
- # Limit interface queryset by assigned device
+ # Limit interface queryset by assigned VM
elif data.get('virtual_machine'):
self.fields['interface'].queryset = VMInterface.objects.filter(
**{f"virtual_machine__{self.fields['virtual_machine'].to_field_name}": data['virtual_machine']}
@@ -358,16 +362,29 @@ class IPAddressImportForm(NetBoxModelImportForm):
virtual_machine = self.cleaned_data.get('virtual_machine')
interface = self.cleaned_data.get('interface')
is_primary = self.cleaned_data.get('is_primary')
+ is_oob = self.cleaned_data.get('is_oob')
- # Validate is_primary
+ # Validate is_primary and is_oob
if is_primary and not device and not virtual_machine:
raise forms.ValidationError({
"is_primary": _("No device or virtual machine specified; cannot set as primary IP")
})
+ if is_oob and not device:
+ raise forms.ValidationError({
+ "is_oob": _("No device specified; cannot set as out-of-band IP")
+ })
+ if is_oob and virtual_machine:
+ raise forms.ValidationError({
+ "is_oob": _("Cannot set out-of-band IP for virtual machines")
+ })
if is_primary and not interface:
raise forms.ValidationError({
"is_primary": _("No interface specified; cannot set as primary IP")
})
+ if is_oob and not interface:
+ raise forms.ValidationError({
+ "is_oob": _("No interface specified; cannot set as out-of-band IP")
+ })
def save(self, *args, **kwargs):
@@ -386,6 +403,12 @@ class IPAddressImportForm(NetBoxModelImportForm):
parent.primary_ip6 = ipaddress
parent.save()
+ # Set as OOB for device
+ if self.cleaned_data.get('is_oob'):
+ parent = self.cleaned_data.get('device')
+ parent.oob_ip = ipaddress
+ parent.save()
+
return ipaddress
@@ -458,10 +481,46 @@ class VLANImportForm(NetBoxModelImportForm):
to_field_name='name',
help_text=_('Functional role')
)
+ qinq_role = CSVChoiceField(
+ label=_('Q-in-Q role'),
+ choices=VLANQinQRoleChoices,
+ required=False,
+ help_text=_('Operational status')
+ )
+ qinq_svlan = CSVModelChoiceField(
+ label=_('Q-in-Q SVLAN'),
+ queryset=VLAN.objects.all(),
+ required=False,
+ to_field_name='vid',
+ help_text=_("Service VLAN (for Q-in-Q/802.1ad customer VLANs)")
+ )
class Meta:
model = VLAN
- fields = ('site', 'group', 'vid', 'name', 'tenant', 'status', 'role', 'description', 'comments', 'tags')
+ fields = (
+ 'site', 'group', 'vid', 'name', 'tenant', 'status', 'role', 'description', 'qinq_role', 'qinq_svlan',
+ 'comments', 'tags',
+ )
+
+
+class VLANTranslationPolicyImportForm(NetBoxModelImportForm):
+
+ class Meta:
+ model = VLANTranslationPolicy
+ fields = ('name', 'description', 'tags')
+
+
+class VLANTranslationRuleImportForm(NetBoxModelImportForm):
+ policy = CSVModelChoiceField(
+ label=_('Policy'),
+ queryset=VLANTranslationPolicy.objects.all(),
+ to_field_name='name',
+ help_text=_('VLAN translation policy')
+ )
+
+ class Meta:
+ model = VLANTranslationRule
+ fields = ('policy', 'local_vid', 'remote_vid')
class ServiceTemplateImportForm(NetBoxModelImportForm):
diff --git a/netbox/ipam/forms/filtersets.py b/netbox/ipam/forms/filtersets.py
index a32694321..3f951512b 100644
--- a/netbox/ipam/forms/filtersets.py
+++ b/netbox/ipam/forms/filtersets.py
@@ -28,6 +28,8 @@ __all__ = (
'ServiceTemplateFilterForm',
'VLANFilterForm',
'VLANGroupFilterForm',
+ 'VLANTranslationPolicyFilterForm',
+ 'VLANTranslationRuleFilterForm',
'VRFFilterForm',
)
@@ -170,7 +172,7 @@ class PrefixFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm):
),
FieldSet('vlan_id', name=_('VLAN Assignment')),
FieldSet('vrf_id', 'present_in_vrf_id', name=_('VRF')),
- FieldSet('region_id', 'site_group_id', 'site_id', name=_('Location')),
+ FieldSet('region_id', 'site_group_id', 'site_id', 'location_id', name=_('Scope')),
FieldSet('tenant_group_id', 'tenant_id', name=_('Tenant')),
)
mask_length__lte = forms.IntegerField(
@@ -224,12 +226,13 @@ class PrefixFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm):
site_id = DynamicModelMultipleChoiceField(
queryset=Site.objects.all(),
required=False,
- null_option='None',
- query_params={
- 'region_id': '$region_id'
- },
label=_('Site')
)
+ location_id = DynamicModelMultipleChoiceField(
+ queryset=Location.objects.all(),
+ required=False,
+ label=_('Location')
+ )
role_id = DynamicModelMultipleChoiceField(
queryset=Role.objects.all(),
required=False,
@@ -460,12 +463,50 @@ class VLANGroupFilterForm(NetBoxModelFilterSetForm):
tag = TagFilterField(model)
+class VLANTranslationPolicyFilterForm(NetBoxModelFilterSetForm):
+ model = VLANTranslationPolicy
+ fieldsets = (
+ FieldSet('q', 'filter_id', 'tag'),
+ FieldSet('name', name=_('Attributes')),
+ )
+ name = forms.CharField(
+ required=False,
+ label=_('Name')
+ )
+ tag = TagFilterField(model)
+
+
+class VLANTranslationRuleFilterForm(NetBoxModelFilterSetForm):
+ model = VLANTranslationRule
+ fieldsets = (
+ FieldSet('q', 'filter_id', 'tag'),
+ FieldSet('policy_id', 'local_vid', 'remote_vid', name=_('Attributes')),
+ )
+ tag = TagFilterField(model)
+ policy_id = DynamicModelMultipleChoiceField(
+ queryset=VLANTranslationPolicy.objects.all(),
+ required=False,
+ label=_('VLAN Translation Policy')
+ )
+ local_vid = forms.IntegerField(
+ min_value=1,
+ required=False,
+ label=_('Local VLAN ID')
+ )
+ remote_vid = forms.IntegerField(
+ min_value=1,
+ required=False,
+ label=_('Remote VLAN ID')
+ )
+
+
class VLANFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm):
model = VLAN
fieldsets = (
FieldSet('q', 'filter_id', 'tag'),
FieldSet('region_id', 'site_group_id', 'site_id', name=_('Location')),
FieldSet('group_id', 'status', 'role_id', 'vid', 'l2vpn_id', name=_('Attributes')),
+ FieldSet('qinq_role', 'qinq_svlan_id', name=_('Q-in-Q/802.1ad')),
FieldSet('tenant_group_id', 'tenant_id', name=_('Tenant')),
)
selector_fields = ('filter_id', 'q', 'site_id')
@@ -512,6 +553,17 @@ class VLANFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm):
required=False,
label=_('VLAN ID')
)
+ qinq_role = forms.MultipleChoiceField(
+ label=_('Q-in-Q role'),
+ choices=VLANQinQRoleChoices,
+ required=False
+ )
+ qinq_svlan_id = DynamicModelMultipleChoiceField(
+ queryset=VLAN.objects.all(),
+ required=False,
+ null_option='None',
+ label=_('Q-in-Q SVLAN')
+ )
l2vpn_id = DynamicModelMultipleChoiceField(
queryset=L2VPN.objects.all(),
required=False,
diff --git a/netbox/ipam/forms/model_forms.py b/netbox/ipam/forms/model_forms.py
index f98f8b24f..c381f99c9 100644
--- a/netbox/ipam/forms/model_forms.py
+++ b/netbox/ipam/forms/model_forms.py
@@ -4,6 +4,7 @@ from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.utils.translation import gettext_lazy as _
from dcim.models import Device, Interface, Site
+from dcim.forms.mixins import ScopedForm
from ipam.choices import *
from ipam.constants import *
from ipam.formfields import IPNetworkFormField
@@ -41,6 +42,8 @@ __all__ = (
'ServiceTemplateForm',
'VLANForm',
'VLANGroupForm',
+ 'VLANTranslationPolicyForm',
+ 'VLANTranslationRuleForm',
'VRFForm',
)
@@ -106,7 +109,8 @@ class RIRForm(NetBoxModelForm):
class AggregateForm(TenancyForm, NetBoxModelForm):
rir = DynamicModelChoiceField(
queryset=RIR.objects.all(),
- label=_('RIR')
+ label=_('RIR'),
+ quick_add=True
)
comments = CommentField()
@@ -129,6 +133,7 @@ class ASNRangeForm(TenancyForm, NetBoxModelForm):
rir = DynamicModelChoiceField(
queryset=RIR.objects.all(),
label=_('RIR'),
+ quick_add=True
)
slug = SlugField()
fieldsets = (
@@ -147,6 +152,7 @@ class ASNForm(TenancyForm, NetBoxModelForm):
rir = DynamicModelChoiceField(
queryset=RIR.objects.all(),
label=_('RIR'),
+ quick_add=True
)
sites = DynamicModelMultipleChoiceField(
queryset=Site.objects.all(),
@@ -195,19 +201,12 @@ class RoleForm(NetBoxModelForm):
]
-class PrefixForm(TenancyForm, NetBoxModelForm):
+class PrefixForm(TenancyForm, ScopedForm, NetBoxModelForm):
vrf = DynamicModelChoiceField(
queryset=VRF.objects.all(),
required=False,
label=_('VRF')
)
- site = DynamicModelChoiceField(
- label=_('Site'),
- queryset=Site.objects.all(),
- required=False,
- selector=True,
- null_option='None'
- )
vlan = DynamicModelChoiceField(
queryset=VLAN.objects.all(),
required=False,
@@ -220,7 +219,8 @@ class PrefixForm(TenancyForm, NetBoxModelForm):
role = DynamicModelChoiceField(
label=_('Role'),
queryset=Role.objects.all(),
- required=False
+ required=False,
+ quick_add=True
)
comments = CommentField()
@@ -228,15 +228,16 @@ class PrefixForm(TenancyForm, NetBoxModelForm):
FieldSet(
'prefix', 'status', 'vrf', 'role', 'is_pool', 'mark_utilized', 'description', 'tags', name=_('Prefix')
),
- FieldSet('site', 'vlan', name=_('Site/VLAN Assignment')),
+ FieldSet('scope_type', 'scope', name=_('Scope')),
+ FieldSet('vlan', name=_('VLAN Assignment')),
FieldSet('tenant_group', 'tenant', name=_('Tenancy')),
)
class Meta:
model = Prefix
fields = [
- 'prefix', 'vrf', 'site', 'vlan', 'status', 'role', 'is_pool', 'mark_utilized', 'tenant_group', 'tenant',
- 'description', 'comments', 'tags',
+ 'prefix', 'vrf', 'vlan', 'status', 'role', 'is_pool', 'mark_utilized', 'scope_type', 'tenant_group',
+ 'tenant', 'description', 'comments', 'tags',
]
@@ -249,7 +250,8 @@ class IPRangeForm(TenancyForm, NetBoxModelForm):
role = DynamicModelChoiceField(
label=_('Role'),
queryset=Role.objects.all(),
- required=False
+ required=False,
+ quick_add=True
)
comments = CommentField()
@@ -309,6 +311,10 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
required=False,
label=_('Make this the primary IP for the device/VM')
)
+ oob_for_parent = forms.BooleanField(
+ required=False,
+ label=_('Make this the out-of-band IP for the device')
+ )
comments = CommentField()
fieldsets = (
@@ -320,7 +326,7 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
FieldSet('vminterface', name=_('Virtual Machine')),
FieldSet('fhrpgroup', name=_('FHRP Group')),
),
- 'primary_for_parent', name=_('Assignment')
+ 'primary_for_parent', 'oob_for_parent', name=_('Assignment')
),
FieldSet('nat_inside', name=_('NAT IP (Inside)')),
)
@@ -328,8 +334,8 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
class Meta:
model = IPAddress
fields = [
- 'address', 'vrf', 'status', 'role', 'dns_name', 'primary_for_parent', 'nat_inside', 'tenant_group',
- 'tenant', 'description', 'comments', 'tags',
+ 'address', 'vrf', 'status', 'role', 'dns_name', 'primary_for_parent', 'oob_for_parent', 'nat_inside',
+ 'tenant_group', 'tenant', 'description', 'comments', 'tags',
]
def __init__(self, *args, **kwargs):
@@ -348,7 +354,7 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
super().__init__(*args, **kwargs)
- # Initialize primary_for_parent if IP address is already assigned
+ # Initialize parent object & fields if IP address is already assigned
if self.instance.pk and self.instance.assigned_object:
parent = getattr(self.instance.assigned_object, 'parent_object', None)
if parent and (
@@ -357,6 +363,9 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
):
self.initial['primary_for_parent'] = True
+ if parent and getattr(parent, 'oob_ip_id', None) == self.instance.pk:
+ self.initial['oob_for_parent'] = True
+
if type(instance.assigned_object) is Interface:
self.fields['interface'].widget.add_query_params({
'device_id': instance.assigned_object.device.pk,
@@ -385,10 +394,15 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
})
elif selected_objects:
assigned_object = self.cleaned_data[selected_objects[0]]
- if self.instance.pk and self.instance.assigned_object and self.cleaned_data['primary_for_parent'] and assigned_object != self.instance.assigned_object:
- raise ValidationError(
- _("Cannot reassign IP address while it is designated as the primary IP for the parent object")
- )
+ if self.instance.pk and self.instance.assigned_object and assigned_object != self.instance.assigned_object:
+ if self.cleaned_data['primary_for_parent']:
+ raise ValidationError(
+ _("Cannot reassign primary IP address for the parent device/VM")
+ )
+ if self.cleaned_data['oob_for_parent']:
+ raise ValidationError(
+ _("Cannot reassign out-of-Band IP address for the parent device")
+ )
self.instance.assigned_object = assigned_object
else:
self.instance.assigned_object = None
@@ -400,6 +414,16 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
'primary_for_parent', _("Only IP addresses assigned to an interface can be designated as primary IPs.")
)
+ # OOB IP assignment is only available if device interface has been assigned.
+ interface = self.cleaned_data.get('interface')
+ if self.cleaned_data.get('oob_for_parent') and not interface:
+ self.add_error(
+ 'oob_for_parent', _(
+ "Only IP addresses assigned to a device interface can be designated as the out-of-band IP for a "
+ "device."
+ )
+ )
+
def save(self, *args, **kwargs):
ipaddress = super().save(*args, **kwargs)
@@ -421,6 +445,17 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
parent.primary_ip6 = None
parent.save()
+ # Assign/clear this IPAddress as the OOB for the associated Device
+ if type(interface) is Interface:
+ parent = interface.parent_object
+ parent.snapshot()
+ if self.cleaned_data['oob_for_parent']:
+ parent.oob_ip = ipaddress
+ parent.save()
+ elif parent.oob_ip == ipaddress:
+ parent.oob_ip = None
+ parent.save()
+
return ipaddress
@@ -591,7 +626,7 @@ class VLANGroupForm(NetBoxModelForm):
class Meta:
model = VLANGroup
fields = [
- 'name', 'slug', 'description', 'vid_ranges', 'scope_type', 'scope', 'tags',
+ 'name', 'slug', 'description', 'vid_ranges', 'scope_type', 'tags',
]
def __init__(self, *args, **kwargs):
@@ -642,15 +677,55 @@ class VLANForm(TenancyForm, NetBoxModelForm):
role = DynamicModelChoiceField(
label=_('Role'),
queryset=Role.objects.all(),
- required=False
+ required=False,
+ quick_add=True
+ )
+ qinq_svlan = DynamicModelChoiceField(
+ label=_('Q-in-Q SVLAN'),
+ queryset=VLAN.objects.all(),
+ required=False,
+ query_params={
+ 'qinq_role': VLANQinQRoleChoices.ROLE_SERVICE,
+ }
)
comments = CommentField()
class Meta:
model = VLAN
fields = [
- 'site', 'group', 'vid', 'name', 'status', 'role', 'tenant_group', 'tenant', 'description', 'comments',
- 'tags',
+ 'site', 'group', 'vid', 'name', 'status', 'role', 'tenant_group', 'tenant', 'qinq_role', 'qinq_svlan',
+ 'description', 'comments', 'tags',
+ ]
+
+
+class VLANTranslationPolicyForm(NetBoxModelForm):
+
+ fieldsets = (
+ FieldSet('name', 'description', 'tags', name=_('VLAN Translation Policy')),
+ )
+
+ class Meta:
+ model = VLANTranslationPolicy
+ fields = [
+ 'name', 'description', 'tags',
+ ]
+
+
+class VLANTranslationRuleForm(NetBoxModelForm):
+ policy = DynamicModelChoiceField(
+ label=_('Policy'),
+ queryset=VLANTranslationPolicy.objects.all(),
+ selector=True
+ )
+
+ fieldsets = (
+ FieldSet('policy', 'local_vid', 'remote_vid', 'description', 'tags', name=_('VLAN Translation Rule')),
+ )
+
+ class Meta:
+ model = VLANTranslationRule
+ fields = [
+ 'policy', 'local_vid', 'remote_vid', 'description', 'tags',
]
diff --git a/netbox/ipam/graphql/filters.py b/netbox/ipam/graphql/filters.py
index 5f6602416..1b0e0133b 100644
--- a/netbox/ipam/graphql/filters.py
+++ b/netbox/ipam/graphql/filters.py
@@ -19,6 +19,8 @@ __all__ = (
'ServiceTemplateFilter',
'VLANFilter',
'VLANGroupFilter',
+ 'VLANTranslationPolicyFilter',
+ 'VLANTranslationRuleFilter',
'VRFFilter',
)
@@ -113,6 +115,18 @@ class VLANGroupFilter(BaseFilterMixin):
pass
+@strawberry_django.filter(models.VLANTranslationPolicy, lookups=True)
+@autotype_decorator(filtersets.VLANTranslationPolicyFilterSet)
+class VLANTranslationPolicyFilter(BaseFilterMixin):
+ pass
+
+
+@strawberry_django.filter(models.VLANTranslationRule, lookups=True)
+@autotype_decorator(filtersets.VLANTranslationRuleFilterSet)
+class VLANTranslationRuleFilter(BaseFilterMixin):
+ pass
+
+
@strawberry_django.filter(models.VRF, lookups=True)
@autotype_decorator(filtersets.VRFFilterSet)
class VRFFilter(BaseFilterMixin):
diff --git a/netbox/ipam/graphql/schema.py b/netbox/ipam/graphql/schema.py
index 072f8cbcd..5fcf78ea9 100644
--- a/netbox/ipam/graphql/schema.py
+++ b/netbox/ipam/graphql/schema.py
@@ -53,5 +53,11 @@ class IPAMQuery:
vlan_group: VLANGroupType = strawberry_django.field()
vlan_group_list: List[VLANGroupType] = strawberry_django.field()
+ vlan_translation_policy: VLANTranslationPolicyType = strawberry_django.field()
+ vlan_translation_policy_list: List[VLANTranslationPolicyType] = strawberry_django.field()
+
+ vlan_translation_rule: VLANTranslationRuleType = strawberry_django.field()
+ vlan_translation_rule_list: List[VLANTranslationRuleType] = strawberry_django.field()
+
vrf: VRFType = strawberry_django.field()
vrf_list: List[VRFType] = strawberry_django.field()
diff --git a/netbox/ipam/graphql/types.py b/netbox/ipam/graphql/types.py
index 46d45816e..e6ecca984 100644
--- a/netbox/ipam/graphql/types.py
+++ b/netbox/ipam/graphql/types.py
@@ -27,6 +27,8 @@ __all__ = (
'ServiceTemplateType',
'VLANType',
'VLANGroupType',
+ 'VLANTranslationPolicyType',
+ 'VLANTranslationRuleType',
'VRFType',
)
@@ -152,17 +154,25 @@ class IPRangeType(NetBoxObjectType):
@strawberry_django.type(
models.Prefix,
- fields='__all__',
+ exclude=('scope_type', 'scope_id', '_location', '_region', '_site', '_site_group'),
filters=PrefixFilter
)
class PrefixType(NetBoxObjectType, BaseIPAddressFamilyType):
prefix: str
- site: Annotated["SiteType", strawberry.lazy('dcim.graphql.types')] | None
vrf: Annotated["VRFType", strawberry.lazy('ipam.graphql.types')] | None
tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None
vlan: Annotated["VLANType", strawberry.lazy('ipam.graphql.types')] | None
role: Annotated["RoleType", strawberry.lazy('ipam.graphql.types')] | None
+ @strawberry_django.field
+ def scope(self) -> Annotated[Union[
+ Annotated["LocationType", strawberry.lazy('dcim.graphql.types')],
+ Annotated["RegionType", strawberry.lazy('dcim.graphql.types')],
+ Annotated["SiteGroupType", strawberry.lazy('dcim.graphql.types')],
+ Annotated["SiteType", strawberry.lazy('dcim.graphql.types')],
+ ], strawberry.union("PrefixScopeType")] | None:
+ return self.scope
+
@strawberry_django.type(
models.RIR,
@@ -226,7 +236,7 @@ class ServiceTemplateType(NetBoxObjectType):
@strawberry_django.type(
models.VLAN,
- fields='__all__',
+ exclude=('qinq_svlan',),
filters=VLANFilter
)
class VLANType(NetBoxObjectType):
@@ -242,6 +252,10 @@ class VLANType(NetBoxObjectType):
interfaces_as_tagged: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
vminterfaces_as_tagged: List[Annotated["VMInterfaceType", strawberry.lazy('virtualization.graphql.types')]]
+ @strawberry_django.field
+ def qinq_svlan(self) -> Annotated["VLANType", strawberry.lazy('ipam.graphql.types')] | None:
+ return self.qinq_svlan
+
@strawberry_django.type(
models.VLANGroup,
@@ -266,6 +280,27 @@ class VLANGroupType(OrganizationalObjectType):
return self.scope
+@strawberry_django.type(
+ models.VLANTranslationPolicy,
+ fields='__all__',
+ filters=VLANTranslationPolicyFilter
+)
+class VLANTranslationPolicyType(NetBoxObjectType):
+ rules: List[Annotated["VLANTranslationRuleType", strawberry.lazy('ipam.graphql.types')]]
+
+
+@strawberry_django.type(
+ models.VLANTranslationRule,
+ fields='__all__',
+ filters=VLANTranslationRuleFilter
+)
+class VLANTranslationRuleType(NetBoxObjectType):
+ policy: Annotated[
+ "VLANTranslationPolicyType",
+ strawberry.lazy('ipam.graphql.types')
+ ] = strawberry_django.field(select_related=["policy"])
+
+
@strawberry_django.type(
models.VRF,
fields='__all__',
diff --git a/netbox/ipam/lookups.py b/netbox/ipam/lookups.py
index c6abb5a26..c493b7876 100644
--- a/netbox/ipam/lookups.py
+++ b/netbox/ipam/lookups.py
@@ -108,8 +108,8 @@ class NetIn(Lookup):
return self.rhs
def as_sql(self, qn, connection):
- lhs, lhs_params = self.process_lhs(qn, connection)
- rhs, rhs_params = self.process_rhs(qn, connection)
+ lhs = self.process_lhs(qn, connection)[0]
+ rhs_params = self.process_rhs(qn, connection)[1]
with_mask, without_mask = [], []
for address in rhs_params[0]:
if '/' in address:
diff --git a/netbox/ipam/migrations/0001_squashed.py b/netbox/ipam/migrations/0001_squashed.py
index bef36e698..896d7c4c9 100644
--- a/netbox/ipam/migrations/0001_squashed.py
+++ b/netbox/ipam/migrations/0001_squashed.py
@@ -9,7 +9,6 @@ import taggit.managers
class Migration(migrations.Migration):
-
initial = True
dependencies = [
@@ -50,7 +49,23 @@ class Migration(migrations.Migration):
('status', models.CharField(default='active', max_length=50)),
('role', models.CharField(blank=True, max_length=50)),
('assigned_object_id', models.PositiveIntegerField(blank=True, null=True)),
- ('dns_name', models.CharField(blank=True, max_length=255, validators=[django.core.validators.RegexValidator(code='invalid', message='Only alphanumeric characters, asterisks, hyphens, periods, and underscores are allowed in DNS names', regex='^([0-9A-Za-z_-]+|\\*)(\\.[0-9A-Za-z_-]+)*\\.?$')])),
+ (
+ 'dns_name',
+ models.CharField(
+ blank=True,
+ max_length=255,
+ validators=[
+ django.core.validators.RegexValidator(
+ code='invalid',
+ message=(
+ 'Only alphanumeric characters, asterisks, hyphens, periods, and underscores are '
+ 'allowed in DNS names'
+ ),
+ regex='^([0-9A-Za-z_-]+|\\*)(\\.[0-9A-Za-z_-]+)*\\.?$',
+ )
+ ],
+ ),
+ ),
('description', models.CharField(blank=True, max_length=200)),
],
options={
@@ -73,7 +88,11 @@ class Migration(migrations.Migration):
],
options={
'verbose_name_plural': 'prefixes',
- 'ordering': (django.db.models.expressions.OrderBy(django.db.models.expressions.F('vrf'), nulls_first=True), 'prefix', 'pk'),
+ 'ordering': (
+ django.db.models.expressions.OrderBy(django.db.models.expressions.F('vrf'), nulls_first=True),
+ 'prefix',
+ 'pk',
+ ),
},
),
migrations.CreateModel(
@@ -135,10 +154,25 @@ class Migration(migrations.Migration):
('rd', models.CharField(blank=True, max_length=21, null=True, unique=True)),
('enforce_unique', models.BooleanField(default=True)),
('description', models.CharField(blank=True, max_length=200)),
- ('export_targets', models.ManyToManyField(blank=True, related_name='exporting_vrfs', to='ipam.RouteTarget')),
- ('import_targets', models.ManyToManyField(blank=True, related_name='importing_vrfs', to='ipam.RouteTarget')),
+ (
+ 'export_targets',
+ models.ManyToManyField(blank=True, related_name='exporting_vrfs', to='ipam.RouteTarget'),
+ ),
+ (
+ 'import_targets',
+ models.ManyToManyField(blank=True, related_name='importing_vrfs', to='ipam.RouteTarget'),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
- ('tenant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='vrfs', to='tenancy.tenant')),
+ (
+ 'tenant',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='vrfs',
+ to='tenancy.tenant',
+ ),
+ ),
],
options={
'verbose_name': 'VRF',
@@ -157,7 +191,21 @@ class Migration(migrations.Migration):
('slug', models.SlugField(max_length=100)),
('scope_id', models.PositiveBigIntegerField(blank=True, null=True)),
('description', models.CharField(blank=True, max_length=200)),
- ('scope_type', models.ForeignKey(blank=True, limit_choices_to=models.Q(('model__in', ('region', 'sitegroup', 'site', 'location', 'rack', 'clustergroup', 'cluster'))), null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
+ (
+ 'scope_type',
+ models.ForeignKey(
+ blank=True,
+ limit_choices_to=models.Q(
+ (
+ 'model__in',
+ ('region', 'sitegroup', 'site', 'location', 'rack', 'clustergroup', 'cluster'),
+ )
+ ),
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ to='contenttypes.contenttype',
+ ),
+ ),
],
options={
'verbose_name': 'VLAN group',
@@ -172,15 +220,59 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=CustomFieldJSONEncoder)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
- ('vid', models.PositiveSmallIntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(4094)])),
+ (
+ 'vid',
+ models.PositiveSmallIntegerField(
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(4094),
+ ]
+ ),
+ ),
('name', models.CharField(max_length=64)),
('status', models.CharField(default='active', max_length=50)),
('description', models.CharField(blank=True, max_length=200)),
- ('group', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='vlans', to='ipam.vlangroup')),
- ('role', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='vlans', to='ipam.role')),
- ('site', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='vlans', to='dcim.site')),
+ (
+ 'group',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='vlans',
+ to='ipam.vlangroup',
+ ),
+ ),
+ (
+ 'role',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='vlans',
+ to='ipam.role',
+ ),
+ ),
+ (
+ 'site',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='vlans',
+ to='dcim.site',
+ ),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
- ('tenant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='vlans', to='tenancy.tenant')),
+ (
+ 'tenant',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='vlans',
+ to='tenancy.tenant',
+ ),
+ ),
],
options={
'verbose_name': 'VLAN',
@@ -197,9 +289,29 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=100)),
('protocol', models.CharField(max_length=50)),
- ('ports', django.contrib.postgres.fields.ArrayField(base_field=models.PositiveIntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(65535)]), size=None)),
+ (
+ 'ports',
+ django.contrib.postgres.fields.ArrayField(
+ base_field=models.PositiveIntegerField(
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(65535),
+ ]
+ ),
+ size=None,
+ ),
+ ),
('description', models.CharField(blank=True, max_length=200)),
- ('device', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='services', to='dcim.device')),
+ (
+ 'device',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='services',
+ to='dcim.device',
+ ),
+ ),
('ipaddresses', models.ManyToManyField(blank=True, related_name='services', to='ipam.IPAddress')),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
diff --git a/netbox/ipam/migrations/0002_squashed_0046.py b/netbox/ipam/migrations/0002_squashed_0046.py
index 06bcd8741..6c03753d8 100644
--- a/netbox/ipam/migrations/0002_squashed_0046.py
+++ b/netbox/ipam/migrations/0002_squashed_0046.py
@@ -4,7 +4,6 @@ import taggit.managers
class Migration(migrations.Migration):
-
dependencies = [
('dcim', '0003_auto_20160628_1721'),
('virtualization', '0001_virtualization'),
@@ -66,7 +65,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='service',
name='virtual_machine',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='services', to='virtualization.virtualmachine'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='services',
+ to='virtualization.virtualmachine',
+ ),
),
migrations.AddField(
model_name='routetarget',
@@ -76,17 +81,35 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='routetarget',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='route_targets', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='route_targets',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='prefix',
name='role',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='prefixes', to='ipam.role'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='prefixes',
+ to='ipam.role',
+ ),
),
migrations.AddField(
model_name='prefix',
name='site',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='prefixes', to='dcim.site'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='prefixes',
+ to='dcim.site',
+ ),
),
migrations.AddField(
model_name='prefix',
@@ -96,27 +119,64 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='prefix',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='prefixes', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='prefixes',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='prefix',
name='vlan',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='prefixes', to='ipam.vlan'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='prefixes',
+ to='ipam.vlan',
+ ),
),
migrations.AddField(
model_name='prefix',
name='vrf',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='prefixes', to='ipam.vrf'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='prefixes',
+ to='ipam.vrf',
+ ),
),
migrations.AddField(
model_name='ipaddress',
name='assigned_object_type',
- field=models.ForeignKey(blank=True, limit_choices_to=models.Q(models.Q(models.Q(('app_label', 'dcim'), ('model', 'interface')), models.Q(('app_label', 'virtualization'), ('model', 'vminterface')), _connector='OR')), null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ limit_choices_to=models.Q(
+ models.Q(
+ models.Q(('app_label', 'dcim'), ('model', 'interface')),
+ models.Q(('app_label', 'virtualization'), ('model', 'vminterface')),
+ _connector='OR',
+ )
+ ),
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.AddField(
model_name='ipaddress',
name='nat_inside',
- field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='nat_outside', to='ipam.ipaddress'),
+ field=models.OneToOneField(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='nat_outside',
+ to='ipam.ipaddress',
+ ),
),
migrations.AddField(
model_name='ipaddress',
@@ -126,17 +186,31 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='ipaddress',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='ip_addresses', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='ip_addresses',
+ to='tenancy.tenant',
+ ),
),
migrations.AddField(
model_name='ipaddress',
name='vrf',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='ip_addresses', to='ipam.vrf'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='ip_addresses',
+ to='ipam.vrf',
+ ),
),
migrations.AddField(
model_name='aggregate',
name='rir',
- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='aggregates', to='ipam.rir'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='aggregates', to='ipam.rir'
+ ),
),
migrations.AddField(
model_name='aggregate',
@@ -146,7 +220,13 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='aggregate',
name='tenant',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='aggregates', to='tenancy.tenant'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='aggregates',
+ to='tenancy.tenant',
+ ),
),
migrations.AlterUniqueTogether(
name='vlangroup',
diff --git a/netbox/ipam/migrations/0047_squashed_0053.py b/netbox/ipam/migrations/0047_squashed_0053.py
index 470261316..a05d0cb81 100644
--- a/netbox/ipam/migrations/0047_squashed_0053.py
+++ b/netbox/ipam/migrations/0047_squashed_0053.py
@@ -8,7 +8,6 @@ import utilities.json
class Migration(migrations.Migration):
-
replaces = [
('ipam', '0047_prefix_depth_children'),
('ipam', '0048_prefix_populate_depth_children'),
@@ -16,7 +15,7 @@ class Migration(migrations.Migration):
('ipam', '0050_iprange'),
('ipam', '0051_extend_tag_support'),
('ipam', '0052_fhrpgroup'),
- ('ipam', '0053_asn_model')
+ ('ipam', '0053_asn_model'),
]
dependencies = [
@@ -47,17 +46,47 @@ class Migration(migrations.Migration):
fields=[
('created', models.DateField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('start_address', ipam.fields.IPAddressField()),
('end_address', ipam.fields.IPAddressField()),
('size', models.PositiveIntegerField(editable=False)),
('status', models.CharField(default='active', max_length=50)),
('description', models.CharField(blank=True, max_length=200)),
- ('role', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='ip_ranges', to='ipam.role')),
+ (
+ 'role',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='ip_ranges',
+ to='ipam.role',
+ ),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
- ('tenant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='ip_ranges', to='tenancy.tenant')),
- ('vrf', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='ip_ranges', to='ipam.vrf')),
+ (
+ 'tenant',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='ip_ranges',
+ to='tenancy.tenant',
+ ),
+ ),
+ (
+ 'vrf',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='ip_ranges',
+ to='ipam.vrf',
+ ),
+ ),
],
options={
'verbose_name': 'IP range',
@@ -85,7 +114,10 @@ class Migration(migrations.Migration):
fields=[
('created', models.DateField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('group_id', models.PositiveSmallIntegerField()),
('protocol', models.CharField(max_length=50)),
@@ -102,7 +134,21 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='ipaddress',
name='assigned_object_type',
- field=models.ForeignKey(blank=True, limit_choices_to=models.Q(models.Q(models.Q(('app_label', 'dcim'), ('model', 'interface')), models.Q(('app_label', 'ipam'), ('model', 'fhrpgroup')), models.Q(('app_label', 'virtualization'), ('model', 'vminterface')), _connector='OR')), null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype'),
+ field=models.ForeignKey(
+ blank=True,
+ limit_choices_to=models.Q(
+ models.Q(
+ models.Q(('app_label', 'dcim'), ('model', 'interface')),
+ models.Q(('app_label', 'ipam'), ('model', 'fhrpgroup')),
+ models.Q(('app_label', 'virtualization'), ('model', 'vminterface')),
+ _connector='OR',
+ )
+ ),
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
),
migrations.CreateModel(
name='FHRPGroupAssignment',
@@ -111,9 +157,20 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('interface_id', models.PositiveIntegerField()),
- ('priority', models.PositiveSmallIntegerField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(255)])),
+ (
+ 'priority',
+ models.PositiveSmallIntegerField(
+ validators=[
+ django.core.validators.MinValueValidator(0),
+ django.core.validators.MaxValueValidator(255),
+ ]
+ ),
+ ),
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ipam.fhrpgroup')),
- ('interface_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
+ (
+ 'interface_type',
+ models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype'),
+ ),
],
options={
'verbose_name': 'FHRP group assignment',
@@ -126,13 +183,28 @@ class Migration(migrations.Migration):
fields=[
('created', models.DateField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('asn', ipam.fields.ASNField(unique=True)),
('description', models.CharField(blank=True, max_length=200)),
- ('rir', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='asns', to='ipam.rir')),
+ (
+ 'rir',
+ models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='asns', to='ipam.rir'),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
- ('tenant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='asns', to='tenancy.tenant')),
+ (
+ 'tenant',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='asns',
+ to='tenancy.tenant',
+ ),
+ ),
],
options={
'verbose_name': 'ASN',
diff --git a/netbox/ipam/migrations/0054_squashed_0067.py b/netbox/ipam/migrations/0054_squashed_0067.py
index 40073ca29..929a27fda 100644
--- a/netbox/ipam/migrations/0054_squashed_0067.py
+++ b/netbox/ipam/migrations/0054_squashed_0067.py
@@ -10,7 +10,6 @@ import utilities.json
class Migration(migrations.Migration):
-
replaces = [
('ipam', '0054_vlangroup_min_max_vids'),
('ipam', '0055_servicetemplate'),
@@ -25,7 +24,7 @@ class Migration(migrations.Migration):
('ipam', '0064_clear_search_cache'),
('ipam', '0065_asnrange'),
('ipam', '0066_iprange_mark_utilized'),
- ('ipam', '0067_ipaddress_index_host')
+ ('ipam', '0067_ipaddress_index_host'),
]
dependencies = [
@@ -40,12 +39,24 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='vlangroup',
name='max_vid',
- field=models.PositiveSmallIntegerField(default=4094, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(4094)]),
+ field=models.PositiveSmallIntegerField(
+ default=4094,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(4094),
+ ],
+ ),
),
migrations.AddField(
model_name='vlangroup',
name='min_vid',
- field=models.PositiveSmallIntegerField(default=1, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(4094)]),
+ field=models.PositiveSmallIntegerField(
+ default=1,
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(4094),
+ ],
+ ),
),
migrations.AlterField(
model_name='aggregate',
@@ -187,10 +198,24 @@ class Migration(migrations.Migration):
fields=[
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('protocol', models.CharField(max_length=50)),
- ('ports', django.contrib.postgres.fields.ArrayField(base_field=models.PositiveIntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(65535)]), size=None)),
+ (
+ 'ports',
+ django.contrib.postgres.fields.ArrayField(
+ base_field=models.PositiveIntegerField(
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(65535),
+ ]
+ ),
+ size=None,
+ ),
+ ),
('description', models.CharField(blank=True, max_length=200)),
('name', models.CharField(max_length=100, unique=True)),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
@@ -217,7 +242,13 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='ipaddress',
name='nat_inside',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='nat_outside', to='ipam.ipaddress'),
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name='nat_outside',
+ to='ipam.ipaddress',
+ ),
),
migrations.CreateModel(
name='L2VPN',
@@ -225,16 +256,34 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('name', models.CharField(max_length=100, unique=True)),
('slug', models.SlugField(max_length=100, unique=True)),
('type', models.CharField(max_length=50)),
('identifier', models.BigIntegerField(blank=True, null=True)),
('description', models.CharField(blank=True, max_length=200)),
- ('export_targets', models.ManyToManyField(blank=True, related_name='exporting_l2vpns', to='ipam.routetarget')),
- ('import_targets', models.ManyToManyField(blank=True, related_name='importing_l2vpns', to='ipam.routetarget')),
+ (
+ 'export_targets',
+ models.ManyToManyField(blank=True, related_name='exporting_l2vpns', to='ipam.routetarget'),
+ ),
+ (
+ 'import_targets',
+ models.ManyToManyField(blank=True, related_name='importing_l2vpns', to='ipam.routetarget'),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
- ('tenant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='l2vpns', to='tenancy.tenant')),
+ (
+ 'tenant',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='l2vpns',
+ to='tenancy.tenant',
+ ),
+ ),
],
options={
'verbose_name': 'L2VPN',
@@ -247,10 +296,33 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('assigned_object_id', models.PositiveBigIntegerField()),
- ('assigned_object_type', models.ForeignKey(limit_choices_to=models.Q(models.Q(models.Q(('app_label', 'dcim'), ('model', 'interface')), models.Q(('app_label', 'ipam'), ('model', 'vlan')), models.Q(('app_label', 'virtualization'), ('model', 'vminterface')), _connector='OR')), on_delete=django.db.models.deletion.PROTECT, related_name='+', to='contenttypes.contenttype')),
- ('l2vpn', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='terminations', to='ipam.l2vpn')),
+ (
+ 'assigned_object_type',
+ models.ForeignKey(
+ limit_choices_to=models.Q(
+ models.Q(
+ models.Q(('app_label', 'dcim'), ('model', 'interface')),
+ models.Q(('app_label', 'ipam'), ('model', 'vlan')),
+ models.Q(('app_label', 'virtualization'), ('model', 'vminterface')),
+ _connector='OR',
+ )
+ ),
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ (
+ 'l2vpn',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, related_name='terminations', to='ipam.l2vpn'
+ ),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
options={
@@ -260,7 +332,9 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='l2vpntermination',
- constraint=models.UniqueConstraint(fields=('assigned_object_type', 'assigned_object_id'), name='ipam_l2vpntermination_assigned_object'),
+ constraint=models.UniqueConstraint(
+ fields=('assigned_object_type', 'assigned_object_id'), name='ipam_l2vpntermination_assigned_object'
+ ),
),
migrations.AddField(
model_name='fhrpgroup',
@@ -281,7 +355,10 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='fhrpgroupassignment',
- constraint=models.UniqueConstraint(fields=('interface_type', 'interface_id', 'group'), name='ipam_fhrpgroupassignment_unique_interface_group'),
+ constraint=models.UniqueConstraint(
+ fields=('interface_type', 'interface_id', 'group'),
+ name='ipam_fhrpgroupassignment_unique_interface_group',
+ ),
),
migrations.AddConstraint(
model_name='vlan',
@@ -293,11 +370,15 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='vlangroup',
- constraint=models.UniqueConstraint(fields=('scope_type', 'scope_id', 'name'), name='ipam_vlangroup_unique_scope_name'),
+ constraint=models.UniqueConstraint(
+ fields=('scope_type', 'scope_id', 'name'), name='ipam_vlangroup_unique_scope_name'
+ ),
),
migrations.AddConstraint(
model_name='vlangroup',
- constraint=models.UniqueConstraint(fields=('scope_type', 'scope_id', 'slug'), name='ipam_vlangroup_unique_scope_slug'),
+ constraint=models.UniqueConstraint(
+ fields=('scope_type', 'scope_id', 'slug'), name='ipam_vlangroup_unique_scope_slug'
+ ),
),
migrations.AddField(
model_name='aggregate',
@@ -365,15 +446,32 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
- ('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
('description', models.CharField(blank=True, max_length=200)),
('name', models.CharField(max_length=100, unique=True)),
('slug', models.SlugField(max_length=100, unique=True)),
('start', ipam.fields.ASNField()),
('end', ipam.fields.ASNField()),
- ('rir', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='asn_ranges', to='ipam.rir')),
+ (
+ 'rir',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT, related_name='asn_ranges', to='ipam.rir'
+ ),
+ ),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
- ('tenant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='asn_ranges', to='tenancy.tenant')),
+ (
+ 'tenant',
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='asn_ranges',
+ to='tenancy.tenant',
+ ),
+ ),
],
options={
'verbose_name': 'ASN range',
@@ -388,6 +486,11 @@ class Migration(migrations.Migration):
),
migrations.AddIndex(
model_name='ipaddress',
- index=models.Index(django.db.models.functions.comparison.Cast(ipam.lookups.Host('address'), output_field=ipam.fields.IPAddressField()), name='ipam_ipaddress_host'),
+ index=models.Index(
+ django.db.models.functions.comparison.Cast(
+ ipam.lookups.Host('address'), output_field=ipam.fields.IPAddressField()
+ ),
+ name='ipam_ipaddress_host',
+ ),
),
]
diff --git a/netbox/ipam/migrations/0068_move_l2vpn.py b/netbox/ipam/migrations/0068_move_l2vpn.py
index b1a059de1..9240240bc 100644
--- a/netbox/ipam/migrations/0068_move_l2vpn.py
+++ b/netbox/ipam/migrations/0068_move_l2vpn.py
@@ -15,7 +15,6 @@ def update_content_types(apps, schema_editor):
class Migration(migrations.Migration):
-
dependencies = [
('ipam', '0067_ipaddress_index_host'),
]
@@ -57,8 +56,5 @@ class Migration(migrations.Migration):
),
],
),
- migrations.RunPython(
- code=update_content_types,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=update_content_types, reverse_code=migrations.RunPython.noop),
]
diff --git a/netbox/ipam/migrations/0069_gfk_indexes.py b/netbox/ipam/migrations/0069_gfk_indexes.py
index 75c016102..d7ce48e35 100644
--- a/netbox/ipam/migrations/0069_gfk_indexes.py
+++ b/netbox/ipam/migrations/0069_gfk_indexes.py
@@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
dependencies = [
('ipam', '0068_move_l2vpn'),
]
@@ -16,7 +15,9 @@ class Migration(migrations.Migration):
),
migrations.AddIndex(
model_name='ipaddress',
- index=models.Index(fields=['assigned_object_type', 'assigned_object_id'], name='ipam_ipaddr_assigne_890ab8_idx'),
+ index=models.Index(
+ fields=['assigned_object_type', 'assigned_object_id'], name='ipam_ipaddr_assigne_890ab8_idx'
+ ),
),
migrations.AddIndex(
model_name='vlangroup',
diff --git a/netbox/ipam/migrations/0070_vlangroup_vlan_id_ranges.py b/netbox/ipam/migrations/0070_vlangroup_vlan_id_ranges.py
index b01941401..133173234 100644
--- a/netbox/ipam/migrations/0070_vlangroup_vlan_id_ranges.py
+++ b/netbox/ipam/migrations/0070_vlangroup_vlan_id_ranges.py
@@ -12,15 +12,12 @@ def set_vid_ranges(apps, schema_editor):
"""
VLANGroup = apps.get_model('ipam', 'VLANGroup')
for group in VLANGroup.objects.all():
- group.vid_ranges = [
- NumericRange(group.min_vid, group.max_vid, bounds='[]')
- ]
+ group.vid_ranges = [NumericRange(group.min_vid, group.max_vid, bounds='[]')]
group._total_vlan_ids = group.max_vid - group.min_vid + 1
group.save()
class Migration(migrations.Migration):
-
dependencies = [
('ipam', '0069_gfk_indexes'),
]
@@ -32,7 +29,7 @@ class Migration(migrations.Migration):
field=django.contrib.postgres.fields.ArrayField(
base_field=django.contrib.postgres.fields.ranges.IntegerRangeField(),
default=ipam.models.vlans.default_vid_ranges,
- size=None
+ size=None,
),
),
migrations.AddField(
@@ -40,10 +37,7 @@ class Migration(migrations.Migration):
name='_total_vlan_ids',
field=models.PositiveBigIntegerField(default=4094),
),
- migrations.RunPython(
- code=set_vid_ranges,
- reverse_code=migrations.RunPython.noop
- ),
+ migrations.RunPython(code=set_vid_ranges, reverse_code=migrations.RunPython.noop),
migrations.RemoveField(
model_name='vlangroup',
name='max_vid',
diff --git a/netbox/ipam/migrations/0071_prefix_scope.py b/netbox/ipam/migrations/0071_prefix_scope.py
new file mode 100644
index 000000000..2ab54d023
--- /dev/null
+++ b/netbox/ipam/migrations/0071_prefix_scope.py
@@ -0,0 +1,45 @@
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+def copy_site_assignments(apps, schema_editor):
+ """
+ Copy site ForeignKey values to the scope GFK.
+ """
+ ContentType = apps.get_model('contenttypes', 'ContentType')
+ Prefix = apps.get_model('ipam', 'Prefix')
+ Site = apps.get_model('dcim', 'Site')
+
+ Prefix.objects.filter(site__isnull=False).update(
+ scope_type=ContentType.objects.get_for_model(Site), scope_id=models.F('site_id')
+ )
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('contenttypes', '0002_remove_content_type_name'),
+ ('ipam', '0070_vlangroup_vlan_id_ranges'),
+ ]
+
+ operations = [
+ # Add the `scope` GenericForeignKey
+ migrations.AddField(
+ model_name='prefix',
+ name='scope_id',
+ field=models.PositiveBigIntegerField(blank=True, null=True),
+ ),
+ migrations.AddField(
+ model_name='prefix',
+ name='scope_type',
+ field=models.ForeignKey(
+ blank=True,
+ limit_choices_to=models.Q(('model__in', ('region', 'sitegroup', 'site', 'location'))),
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='+',
+ to='contenttypes.contenttype',
+ ),
+ ),
+ # Copy over existing site assignments
+ migrations.RunPython(code=copy_site_assignments, reverse_code=migrations.RunPython.noop),
+ ]
diff --git a/netbox/ipam/migrations/0072_prefix_cached_relations.py b/netbox/ipam/migrations/0072_prefix_cached_relations.py
new file mode 100644
index 000000000..58cefb12d
--- /dev/null
+++ b/netbox/ipam/migrations/0072_prefix_cached_relations.py
@@ -0,0 +1,61 @@
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+def populate_denormalized_fields(apps, schema_editor):
+ """
+ Copy site ForeignKey values to the scope GFK.
+ """
+ Prefix = apps.get_model('ipam', 'Prefix')
+
+ prefixes = Prefix.objects.filter(site__isnull=False).prefetch_related('site')
+ for prefix in prefixes:
+ prefix._region_id = prefix.site.region_id
+ prefix._site_group_id = prefix.site.group_id
+ prefix._site_id = prefix.site_id
+ # Note: Location cannot be set prior to migration
+
+ Prefix.objects.bulk_update(prefixes, ['_region', '_site_group', '_site'], batch_size=100)
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('dcim', '0193_poweroutlet_color'),
+ ('ipam', '0071_prefix_scope'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='prefix',
+ name='_location',
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.location'
+ ),
+ ),
+ migrations.AddField(
+ model_name='prefix',
+ name='_region',
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.region'
+ ),
+ ),
+ migrations.AddField(
+ model_name='prefix',
+ name='_site',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.site'),
+ ),
+ migrations.AddField(
+ model_name='prefix',
+ name='_site_group',
+ field=models.ForeignKey(
+ blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dcim.sitegroup'
+ ),
+ ),
+ # Populate denormalized FK values
+ migrations.RunPython(code=populate_denormalized_fields, reverse_code=migrations.RunPython.noop),
+ # Delete the site ForeignKey
+ migrations.RemoveField(
+ model_name='prefix',
+ name='site',
+ ),
+ ]
diff --git a/netbox/ipam/migrations/0073_charfield_null_choices.py b/netbox/ipam/migrations/0073_charfield_null_choices.py
new file mode 100644
index 000000000..cfb764b46
--- /dev/null
+++ b/netbox/ipam/migrations/0073_charfield_null_choices.py
@@ -0,0 +1,32 @@
+from django.db import migrations, models
+
+
+def set_null_values(apps, schema_editor):
+ """
+ Replace empty strings with null values.
+ """
+ FHRPGroup = apps.get_model('ipam', 'FHRPGroup')
+ IPAddress = apps.get_model('ipam', 'IPAddress')
+
+ FHRPGroup.objects.filter(auth_type='').update(auth_type=None)
+ IPAddress.objects.filter(role='').update(role=None)
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('ipam', '0072_prefix_cached_relations'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='fhrpgroup',
+ name='auth_type',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AlterField(
+ model_name='ipaddress',
+ name='role',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.RunPython(code=set_null_values, reverse_code=migrations.RunPython.noop),
+ ]
diff --git a/netbox/ipam/migrations/0074_vlantranslationpolicy_vlantranslationrule.py b/netbox/ipam/migrations/0074_vlantranslationpolicy_vlantranslationrule.py
new file mode 100644
index 000000000..5a13f18e6
--- /dev/null
+++ b/netbox/ipam/migrations/0074_vlantranslationpolicy_vlantranslationrule.py
@@ -0,0 +1,97 @@
+# Generated by Django 5.0.9 on 2024-10-11 19:45
+
+import django.core.validators
+import django.db.models.deletion
+import taggit.managers
+import utilities.json
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('extras', '0121_customfield_related_object_filter'),
+ ('ipam', '0073_charfield_null_choices'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='VLANTranslationPolicy',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
+ ('created', models.DateTimeField(auto_now_add=True, null=True)),
+ ('last_updated', models.DateTimeField(auto_now=True, null=True)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
+ ('comments', models.TextField(blank=True)),
+ ('name', models.CharField(max_length=100, unique=True)),
+ ('description', models.CharField(blank=True, max_length=200)),
+ ('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
+ ],
+ options={
+ 'verbose_name': 'VLAN translation policy',
+ 'verbose_name_plural': 'VLAN translation policies',
+ 'ordering': ('name',),
+ },
+ ),
+ migrations.CreateModel(
+ name='VLANTranslationRule',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
+ ('created', models.DateTimeField(auto_now_add=True, null=True)),
+ ('last_updated', models.DateTimeField(auto_now=True, null=True)),
+ (
+ 'custom_field_data',
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
+ ),
+ (
+ 'local_vid',
+ models.PositiveSmallIntegerField(
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(4094),
+ ]
+ ),
+ ),
+ (
+ 'remote_vid',
+ models.PositiveSmallIntegerField(
+ validators=[
+ django.core.validators.MinValueValidator(1),
+ django.core.validators.MaxValueValidator(4094),
+ ]
+ ),
+ ),
+ (
+ 'policy',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='rules',
+ to='ipam.vlantranslationpolicy',
+ ),
+ ),
+ ('description', models.CharField(blank=True, max_length=200)),
+ ('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
+ ],
+ options={
+ 'verbose_name': 'VLAN translation rule',
+ 'ordering': (
+ 'policy',
+ 'local_vid',
+ ),
+ },
+ ),
+ migrations.AddConstraint(
+ model_name='vlantranslationrule',
+ constraint=models.UniqueConstraint(
+ fields=('policy', 'local_vid'), name='ipam_vlantranslationrule_unique_policy_local_vid'
+ ),
+ ),
+ migrations.AddConstraint(
+ model_name='vlantranslationrule',
+ constraint=models.UniqueConstraint(
+ fields=('policy', 'remote_vid'), name='ipam_vlantranslationrule_unique_policy_remote_vid'
+ ),
+ ),
+ ]
diff --git a/netbox/ipam/migrations/0075_vlan_qinq.py b/netbox/ipam/migrations/0075_vlan_qinq.py
new file mode 100644
index 000000000..1e8f86c36
--- /dev/null
+++ b/netbox/ipam/migrations/0075_vlan_qinq.py
@@ -0,0 +1,35 @@
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('ipam', '0074_vlantranslationpolicy_vlantranslationrule'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='vlan',
+ name='qinq_role',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ migrations.AddField(
+ model_name='vlan',
+ name='qinq_svlan',
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name='qinq_cvlans',
+ to='ipam.vlan',
+ ),
+ ),
+ migrations.AddConstraint(
+ model_name='vlan',
+ constraint=models.UniqueConstraint(fields=('qinq_svlan', 'vid'), name='ipam_vlan_unique_qinq_svlan_vid'),
+ ),
+ migrations.AddConstraint(
+ model_name='vlan',
+ constraint=models.UniqueConstraint(fields=('qinq_svlan', 'name'), name='ipam_vlan_unique_qinq_svlan_name'),
+ ),
+ ]
diff --git a/netbox/ipam/migrations/0076_natural_ordering.py b/netbox/ipam/migrations/0076_natural_ordering.py
new file mode 100644
index 000000000..f6c9e5ccb
--- /dev/null
+++ b/netbox/ipam/migrations/0076_natural_ordering.py
@@ -0,0 +1,31 @@
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('ipam', '0075_vlan_qinq'),
+ ('dcim', '0197_natural_sort_collation'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='asnrange',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=100, unique=True),
+ ),
+ migrations.AlterField(
+ model_name='routetarget',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=21, unique=True),
+ ),
+ migrations.AlterField(
+ model_name='vlangroup',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='vrf',
+ name='name',
+ field=models.CharField(db_collation='natural_sort', max_length=100),
+ ),
+ ]
diff --git a/netbox/ipam/models/asns.py b/netbox/ipam/models/asns.py
index d02efd91c..c1d251301 100644
--- a/netbox/ipam/models/asns.py
+++ b/netbox/ipam/models/asns.py
@@ -1,6 +1,5 @@
from django.core.exceptions import ValidationError
from django.db import models
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from ipam.fields import ASNField
@@ -17,7 +16,8 @@ class ASNRange(OrganizationalModel):
name = models.CharField(
verbose_name=_('name'),
max_length=100,
- unique=True
+ unique=True,
+ db_collation="natural_sort"
)
slug = models.SlugField(
verbose_name=_('slug'),
@@ -54,9 +54,6 @@ class ASNRange(OrganizationalModel):
def __str__(self):
return f'{self.name} ({self.range_as_string()})'
- def get_absolute_url(self):
- return reverse('ipam:asnrange', args=[self.pk])
-
@property
def range(self):
return range(self.start, self.end + 1)
@@ -128,9 +125,6 @@ class ASN(PrimaryModel):
def __str__(self):
return f'AS{self.asn_with_asdot}'
- def get_absolute_url(self):
- return reverse('ipam:asn', args=[self.pk])
-
@property
def asn_asdot(self):
"""
diff --git a/netbox/ipam/models/fhrp.py b/netbox/ipam/models/fhrp.py
index c3a7084b6..f5982853e 100644
--- a/netbox/ipam/models/fhrp.py
+++ b/netbox/ipam/models/fhrp.py
@@ -1,7 +1,6 @@
from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from ipam.choices import *
@@ -35,6 +34,7 @@ class FHRPGroup(PrimaryModel):
max_length=50,
choices=FHRPGroupAuthTypeChoices,
blank=True,
+ null=True,
verbose_name=_('authentication type')
)
auth_key = models.CharField(
@@ -71,9 +71,6 @@ class FHRPGroup(PrimaryModel):
return name
- def get_absolute_url(self):
- return reverse('ipam:fhrpgroup', args=[self.pk])
-
class FHRPGroupAssignment(ChangeLoggedModel):
interface_type = models.ForeignKey(
diff --git a/netbox/ipam/models/ip.py b/netbox/ipam/models/ip.py
index 868b92450..e1a8d91e3 100644
--- a/netbox/ipam/models/ip.py
+++ b/netbox/ipam/models/ip.py
@@ -4,11 +4,11 @@ from django.core.exceptions import ValidationError
from django.db import models
from django.db.models import F
from django.db.models.functions import Cast
-from django.urls import reverse
from django.utils.functional import cached_property
from django.utils.translation import gettext_lazy as _
from core.models import ObjectType
+from dcim.models.mixins import CachedScopeMixin
from ipam.choices import *
from ipam.constants import *
from ipam.fields import IPNetworkField, IPAddressField
@@ -71,9 +71,6 @@ class RIR(OrganizationalModel):
verbose_name = _('RIR')
verbose_name_plural = _('RIRs')
- def get_absolute_url(self):
- return reverse('ipam:rir', args=[self.pk])
-
class Aggregate(ContactsMixin, GetAvailablePrefixesMixin, PrimaryModel):
"""
@@ -118,9 +115,6 @@ class Aggregate(ContactsMixin, GetAvailablePrefixesMixin, PrimaryModel):
def __str__(self):
return str(self.prefix)
- def get_absolute_url(self):
- return reverse('ipam:aggregate', args=[self.pk])
-
def clean(self):
super().clean()
@@ -203,27 +197,17 @@ class Role(OrganizationalModel):
def __str__(self):
return self.name
- def get_absolute_url(self):
- return reverse('ipam:role', args=[self.pk])
-
-class Prefix(ContactsMixin, GetAvailablePrefixesMixin, PrimaryModel):
+class Prefix(ContactsMixin, GetAvailablePrefixesMixin, CachedScopeMixin, PrimaryModel):
"""
- A Prefix represents an IPv4 or IPv6 network, including mask length. Prefixes can optionally be assigned to Sites and
- VRFs. A Prefix must be assigned a status and may optionally be assigned a used-define Role. A Prefix can also be
- assigned to a VLAN where appropriate.
+ A Prefix represents an IPv4 or IPv6 network, including mask length. Prefixes can optionally be scoped to certain
+ areas and/or assigned to VRFs. A Prefix must be assigned a status and may optionally be assigned a used-define Role.
+ A Prefix can also be assigned to a VLAN where appropriate.
"""
prefix = IPNetworkField(
verbose_name=_('prefix'),
help_text=_('IPv4 or IPv6 network with mask')
)
- site = models.ForeignKey(
- to='dcim.Site',
- on_delete=models.PROTECT,
- related_name='prefixes',
- blank=True,
- null=True
- )
vrf = models.ForeignKey(
to='ipam.VRF',
on_delete=models.PROTECT,
@@ -285,7 +269,7 @@ class Prefix(ContactsMixin, GetAvailablePrefixesMixin, PrimaryModel):
objects = PrefixQuerySet.as_manager()
clone_fields = (
- 'site', 'vrf', 'tenant', 'vlan', 'status', 'role', 'is_pool', 'mark_utilized', 'description',
+ 'scope_type', 'scope_id', 'vrf', 'tenant', 'vlan', 'status', 'role', 'is_pool', 'mark_utilized', 'description',
)
class Meta:
@@ -303,9 +287,6 @@ class Prefix(ContactsMixin, GetAvailablePrefixesMixin, PrimaryModel):
def __str__(self):
return str(self.prefix)
- def get_absolute_url(self):
- return reverse('ipam:prefix', args=[self.pk])
-
def clean(self):
super().clean()
@@ -336,6 +317,9 @@ class Prefix(ContactsMixin, GetAvailablePrefixesMixin, PrimaryModel):
# Clear host bits from prefix
self.prefix = self.prefix.cidr
+ # Cache objects associated with the terminating object (for filtering)
+ self.cache_related_objects()
+
super().save(*args, **kwargs)
@property
@@ -434,7 +418,9 @@ class Prefix(ContactsMixin, GetAvailablePrefixesMixin, PrimaryModel):
available_ips = prefix - child_ips - netaddr.IPSet(child_ranges)
# IPv6 /127's, pool, or IPv4 /31-/32 sets are fully usable
- if (self.family == 6 and self.prefix.prefixlen >= 127) or self.is_pool or (self.family == 4 and self.prefix.prefixlen >= 31):
+ if (self.family == 6 and self.prefix.prefixlen >= 127) or self.is_pool or (
+ self.family == 4 and self.prefix.prefixlen >= 31
+ ):
return available_ips
if self.family == 4:
@@ -551,9 +537,6 @@ class IPRange(ContactsMixin, PrimaryModel):
def __str__(self):
return self.name
- def get_absolute_url(self):
- return reverse('ipam:iprange', args=[self.pk])
-
def clean(self):
super().clean()
@@ -580,10 +563,26 @@ class IPRange(ContactsMixin, PrimaryModel):
})
# Check for overlapping ranges
- overlapping_ranges = IPRange.objects.exclude(pk=self.pk).filter(vrf=self.vrf).filter(
- Q(start_address__host__inet__gte=self.start_address.ip, start_address__host__inet__lte=self.end_address.ip) | # Starts inside
- Q(end_address__host__inet__gte=self.start_address.ip, end_address__host__inet__lte=self.end_address.ip) | # Ends inside
- Q(start_address__host__inet__lte=self.start_address.ip, end_address__host__inet__gte=self.end_address.ip) # Starts & ends outside
+ overlapping_ranges = (
+ IPRange.objects.exclude(pk=self.pk)
+ .filter(vrf=self.vrf)
+ .filter(
+ # Starts inside
+ Q(
+ start_address__host__inet__gte=self.start_address.ip,
+ start_address__host__inet__lte=self.end_address.ip,
+ ) |
+ # Ends inside
+ Q(
+ end_address__host__inet__gte=self.start_address.ip,
+ end_address__host__inet__lte=self.end_address.ip,
+ ) |
+ # Starts & ends outside
+ Q(
+ start_address__host__inet__lte=self.start_address.ip,
+ end_address__host__inet__gte=self.end_address.ip,
+ )
+ )
)
if overlapping_ranges.exists():
raise ValidationError(
@@ -738,6 +737,7 @@ class IPAddress(ContactsMixin, PrimaryModel):
max_length=50,
choices=IPAddressRoleChoices,
blank=True,
+ null=True,
help_text=_('The functional role of this IP')
)
assigned_object_type = models.ForeignKey(
@@ -798,9 +798,6 @@ class IPAddress(ContactsMixin, PrimaryModel):
self._original_assigned_object_id = self.__dict__.get('assigned_object_id')
self._original_assigned_object_type_id = self.__dict__.get('assigned_object_type_id')
- def get_absolute_url(self):
- return reverse('ipam:ipaddress', args=[self.pk])
-
def get_duplicates(self):
return IPAddress.objects.filter(
vrf=self.vrf,
@@ -887,10 +884,12 @@ class IPAddress(ContactsMixin, PrimaryModel):
# can't use is_primary_ip as self.assigned_object might be changed
is_primary = False
- if self.family == 4 and hasattr(original_parent, 'primary_ip4') and original_parent.primary_ip4_id == self.pk:
- is_primary = True
- if self.family == 6 and hasattr(original_parent, 'primary_ip6') and original_parent.primary_ip6_id == self.pk:
- is_primary = True
+ if self.family == 4 and hasattr(original_parent, 'primary_ip4'):
+ if original_parent.primary_ip4_id == self.pk:
+ is_primary = True
+ if self.family == 6 and hasattr(original_parent, 'primary_ip6'):
+ if original_parent.primary_ip6_id == self.pk:
+ is_primary = True
if is_primary and (parent != original_parent):
raise ValidationError(
diff --git a/netbox/ipam/models/services.py b/netbox/ipam/models/services.py
index 71f34c66c..bb4049781 100644
--- a/netbox/ipam/models/services.py
+++ b/netbox/ipam/models/services.py
@@ -2,7 +2,6 @@ from django.contrib.postgres.fields import ArrayField
from django.core.exceptions import ValidationError
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from ipam.choices import *
@@ -59,9 +58,6 @@ class ServiceTemplate(ServiceBase, PrimaryModel):
verbose_name = _('service template')
verbose_name_plural = _('service templates')
- def get_absolute_url(self):
- return reverse('ipam:servicetemplate', args=[self.pk])
-
class Service(ContactsMixin, ServiceBase, PrimaryModel):
"""
@@ -102,9 +98,6 @@ class Service(ContactsMixin, ServiceBase, PrimaryModel):
verbose_name = _('service')
verbose_name_plural = _('services')
- def get_absolute_url(self):
- return reverse('ipam:service', args=[self.pk])
-
@property
def parent(self):
return self.device or self.virtual_machine
diff --git a/netbox/ipam/models/vlans.py b/netbox/ipam/models/vlans.py
index 998bc9e2c..91e39c6d3 100644
--- a/netbox/ipam/models/vlans.py
+++ b/netbox/ipam/models/vlans.py
@@ -4,20 +4,21 @@ from django.core.exceptions import ValidationError
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from django.db.backends.postgresql.psycopg_any import NumericRange
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from dcim.models import Interface
from ipam.choices import *
from ipam.constants import *
from ipam.querysets import VLANQuerySet, VLANGroupQuerySet
-from netbox.models import OrganizationalModel, PrimaryModel
+from netbox.models import OrganizationalModel, PrimaryModel, NetBoxModel
from utilities.data import check_ranges_overlap, ranges_to_string
from virtualization.models import VMInterface
__all__ = (
'VLAN',
'VLANGroup',
+ 'VLANTranslationPolicy',
+ 'VLANTranslationRule',
)
@@ -34,7 +35,8 @@ class VLANGroup(OrganizationalModel):
"""
name = models.CharField(
verbose_name=_('name'),
- max_length=100
+ max_length=100,
+ db_collation="natural_sort"
)
slug = models.SlugField(
verbose_name=_('slug'),
@@ -84,9 +86,6 @@ class VLANGroup(OrganizationalModel):
verbose_name = _('VLAN group')
verbose_name_plural = _('VLAN groups')
- def get_absolute_url(self):
- return reverse('ipam:vlangroup', args=[self.pk])
-
def clean(self):
super().clean()
@@ -97,16 +96,32 @@ class VLANGroup(OrganizationalModel):
raise ValidationError(_("Cannot set scope_id without scope_type."))
# Validate VID ranges
- if self.vid_ranges and check_ranges_overlap(self.vid_ranges):
- raise ValidationError({'vid_ranges': _("Ranges cannot overlap.")})
for vid_range in self.vid_ranges:
- if vid_range.lower > vid_range.upper:
+ lower_vid = vid_range.lower if vid_range.lower_inc else vid_range.lower + 1
+ upper_vid = vid_range.upper if vid_range.upper_inc else vid_range.upper - 1
+ if lower_vid < VLAN_VID_MIN:
+ raise ValidationError({
+ 'vid_ranges': _("Starting VLAN ID in range ({value}) cannot be less than {minimum}").format(
+ value=lower_vid, minimum=VLAN_VID_MIN
+ )
+ })
+ if upper_vid > VLAN_VID_MAX:
+ raise ValidationError({
+ 'vid_ranges': _("Ending VLAN ID in range ({value}) cannot exceed {maximum}").format(
+ value=upper_vid, maximum=VLAN_VID_MAX
+ )
+ })
+ if lower_vid > upper_vid:
raise ValidationError({
'vid_ranges': _(
- "Maximum child VID must be greater than or equal to minimum child VID ({value})"
- ).format(value=vid_range)
+ "Ending VLAN ID in range must be greater than or equal to the starting VLAN ID ({range})"
+ ).format(range=f'{lower_vid}-{upper_vid}')
})
+ # Check for overlapping VID ranges
+ if self.vid_ranges and check_ranges_overlap(self.vid_ranges):
+ raise ValidationError({'vid_ranges': _("Ranges cannot overlap.")})
+
def save(self, *args, **kwargs):
self._total_vlan_ids = 0
for vid_range in self.vid_ranges:
@@ -206,6 +221,21 @@ class VLAN(PrimaryModel):
null=True,
help_text=_("The primary function of this VLAN")
)
+ qinq_svlan = models.ForeignKey(
+ to='self',
+ on_delete=models.PROTECT,
+ related_name='qinq_cvlans',
+ blank=True,
+ null=True
+ )
+ qinq_role = models.CharField(
+ verbose_name=_('Q-in-Q role'),
+ max_length=50,
+ choices=VLANQinQRoleChoices,
+ blank=True,
+ null=True,
+ help_text=_("Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad)")
+ )
l2vpn_terminations = GenericRelation(
to='vpn.L2VPNTermination',
content_type_field='assigned_object_type',
@@ -216,7 +246,7 @@ class VLAN(PrimaryModel):
objects = VLANQuerySet.as_manager()
clone_fields = [
- 'site', 'group', 'tenant', 'status', 'role', 'description',
+ 'site', 'group', 'tenant', 'status', 'role', 'description', 'qinq_role', 'qinq_svlan',
]
class Meta:
@@ -230,6 +260,14 @@ class VLAN(PrimaryModel):
fields=('group', 'name'),
name='%(app_label)s_%(class)s_unique_group_name'
),
+ models.UniqueConstraint(
+ fields=('qinq_svlan', 'vid'),
+ name='%(app_label)s_%(class)s_unique_qinq_svlan_vid'
+ ),
+ models.UniqueConstraint(
+ fields=('qinq_svlan', 'name'),
+ name='%(app_label)s_%(class)s_unique_qinq_svlan_name'
+ ),
)
verbose_name = _('VLAN')
verbose_name_plural = _('VLANs')
@@ -237,9 +275,6 @@ class VLAN(PrimaryModel):
def __str__(self):
return f'{self.name} ({self.vid})'
- def get_absolute_url(self):
- return reverse('ipam:vlan', args=[self.pk])
-
def clean(self):
super().clean()
@@ -260,9 +295,24 @@ class VLAN(PrimaryModel):
).format(ranges=ranges_to_string(self.group.vid_ranges), group=self.group)
})
+ # Only Q-in-Q customer VLANs may be assigned to a service VLAN
+ if self.qinq_svlan and self.qinq_role != VLANQinQRoleChoices.ROLE_CUSTOMER:
+ raise ValidationError({
+ 'qinq_svlan': _("Only Q-in-Q customer VLANs maybe assigned to a service VLAN.")
+ })
+
+ # A Q-in-Q customer VLAN must be assigned to a service VLAN
+ if self.qinq_role == VLANQinQRoleChoices.ROLE_CUSTOMER and not self.qinq_svlan:
+ raise ValidationError({
+ 'qinq_role': _("A Q-in-Q customer VLAN must be assigned to a service VLAN.")
+ })
+
def get_status_color(self):
return VLANStatusChoices.colors.get(self.status)
+ def get_qinq_role_color(self):
+ return VLANQinQRoleChoices.colors.get(self.qinq_role)
+
def get_interfaces(self):
# Return all device interfaces assigned to this VLAN
return Interface.objects.filter(
@@ -280,3 +330,75 @@ class VLAN(PrimaryModel):
@property
def l2vpn_termination(self):
return self.l2vpn_terminations.first()
+
+
+class VLANTranslationPolicy(PrimaryModel):
+ name = models.CharField(
+ verbose_name=_('name'),
+ max_length=100,
+ unique=True,
+ )
+
+ class Meta:
+ verbose_name = _('VLAN translation policy')
+ verbose_name_plural = _('VLAN translation policies')
+ ordering = ('name',)
+
+ def __str__(self):
+ return self.name
+
+
+class VLANTranslationRule(NetBoxModel):
+ policy = models.ForeignKey(
+ to=VLANTranslationPolicy,
+ related_name='rules',
+ on_delete=models.CASCADE,
+ )
+ description = models.CharField(
+ verbose_name=_('description'),
+ max_length=200,
+ blank=True
+ )
+ local_vid = models.PositiveSmallIntegerField(
+ verbose_name=_('Local VLAN ID'),
+ validators=(
+ MinValueValidator(VLAN_VID_MIN),
+ MaxValueValidator(VLAN_VID_MAX)
+ ),
+ help_text=_("Numeric VLAN ID (1-4094)")
+ )
+ remote_vid = models.PositiveSmallIntegerField(
+ verbose_name=_('Remote VLAN ID'),
+ validators=(
+ MinValueValidator(VLAN_VID_MIN),
+ MaxValueValidator(VLAN_VID_MAX)
+ ),
+ help_text=_("Numeric VLAN ID (1-4094)")
+ )
+ prerequisite_models = (
+ 'ipam.VLANTranslationPolicy',
+ )
+
+ clone_fields = ['policy']
+
+ class Meta:
+ verbose_name = _('VLAN translation rule')
+ ordering = ('policy', 'local_vid',)
+ constraints = (
+ models.UniqueConstraint(
+ fields=('policy', 'local_vid'),
+ name='%(app_label)s_%(class)s_unique_policy_local_vid'
+ ),
+ models.UniqueConstraint(
+ fields=('policy', 'remote_vid'),
+ name='%(app_label)s_%(class)s_unique_policy_remote_vid'
+ ),
+ )
+
+ def __str__(self):
+ return f'{self.local_vid} -> {self.remote_vid} ({self.policy})'
+
+ def to_objectchange(self, action):
+ objectchange = super().to_objectchange(action)
+ objectchange.related_object = self.policy
+ return objectchange
diff --git a/netbox/ipam/models/vrfs.py b/netbox/ipam/models/vrfs.py
index 1f9b928f5..6a8b8d649 100644
--- a/netbox/ipam/models/vrfs.py
+++ b/netbox/ipam/models/vrfs.py
@@ -1,11 +1,9 @@
from django.db import models
-from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from ipam.constants import *
from netbox.models import PrimaryModel
-
__all__ = (
'RouteTarget',
'VRF',
@@ -20,7 +18,8 @@ class VRF(PrimaryModel):
"""
name = models.CharField(
verbose_name=_('name'),
- max_length=100
+ max_length=100,
+ db_collation="natural_sort"
)
rd = models.CharField(
max_length=VRF_RD_MAX_LENGTH,
@@ -67,9 +66,6 @@ class VRF(PrimaryModel):
return f'{self.name} ({self.rd})'
return self.name
- def get_absolute_url(self):
- return reverse('ipam:vrf', args=[self.pk])
-
class RouteTarget(PrimaryModel):
"""
@@ -79,7 +75,8 @@ class RouteTarget(PrimaryModel):
verbose_name=_('name'),
max_length=VRF_RD_MAX_LENGTH, # Same format options as VRF RD (RFC 4360 section 4)
unique=True,
- help_text=_('Route target value (formatted in accordance with RFC 4360)')
+ help_text=_('Route target value (formatted in accordance with RFC 4360)'),
+ db_collation="natural_sort"
)
tenant = models.ForeignKey(
to='tenancy.Tenant',
@@ -96,6 +93,3 @@ class RouteTarget(PrimaryModel):
def __str__(self):
return self.name
-
- def get_absolute_url(self):
- return reverse('ipam:routetarget', args=[self.pk])
diff --git a/netbox/ipam/querysets.py b/netbox/ipam/querysets.py
index 771e9b3b9..77ab8194a 100644
--- a/netbox/ipam/querysets.py
+++ b/netbox/ipam/querysets.py
@@ -148,7 +148,7 @@ class VLANQuerySet(RestrictedQuerySet):
# Find all relevant VLANGroups
q = Q()
- site = vm.site or vm.cluster.site
+ site = vm.site or vm.cluster._site
if vm.cluster:
# Add VLANGroups scoped to the assigned cluster (or its group)
q |= Q(
diff --git a/netbox/ipam/search.py b/netbox/ipam/search.py
index 16a8eba3c..6e71d44a5 100644
--- a/netbox/ipam/search.py
+++ b/netbox/ipam/search.py
@@ -79,7 +79,7 @@ class PrefixIndex(SearchIndex):
('description', 500),
('comments', 5000),
)
- display_attrs = ('site', 'vrf', 'tenant', 'vlan', 'status', 'role', 'description')
+ display_attrs = ('scope', 'vrf', 'tenant', 'vlan', 'status', 'role', 'description')
@register_search
@@ -160,6 +160,27 @@ class VLANGroupIndex(SearchIndex):
display_attrs = ('scope_type', 'description')
+@register_search
+class VLANTranslationPolicyIndex(SearchIndex):
+ model = models.VLANTranslationPolicy
+ fields = (
+ ('name', 100),
+ ('description', 500),
+ )
+ display_attrs = ('description',)
+
+
+@register_search
+class VLANTranslationRuleIndex(SearchIndex):
+ model = models.VLANTranslationRule
+ fields = (
+ ('policy', 100),
+ ('local_vid', 200),
+ ('remote_vid', 200),
+ )
+ display_attrs = ('policy', 'local_vid', 'remote_vid')
+
+
@register_search
class VRFIndex(SearchIndex):
model = models.VRF
diff --git a/netbox/ipam/tables/ip.py b/netbox/ipam/tables/ip.py
index 8ec7a5967..1eefa6b3a 100644
--- a/netbox/ipam/tables/ip.py
+++ b/netbox/ipam/tables/ip.py
@@ -6,6 +6,7 @@ from django_tables2.utils import Accessor
from ipam.models import *
from netbox.tables import NetBoxTable, columns
from tenancy.tables import TenancyColumnsMixin, TenantColumn
+from .template_code import *
__all__ = (
'AggregateTable',
@@ -20,61 +21,6 @@ __all__ = (
AVAILABLE_LABEL = mark_safe('Available ')
-AGGREGATE_COPY_BUTTON = """
-{% copy_content record.pk prefix="aggregate_" %}
-"""
-
-PREFIX_LINK = """
-{% if record.pk %}
- {{ record.prefix }}
-{% else %}
- {{ record.prefix }}
-{% endif %}
-"""
-
-PREFIX_COPY_BUTTON = """
-{% copy_content record.pk prefix="prefix_" %}
-"""
-
-PREFIX_LINK_WITH_DEPTH = """
-{% load helpers %}
-{% if record.depth %}
-
- {% for i in record.depth|as_range %}
- •
- {% endfor %}
-
-{% endif %}
-""" + PREFIX_LINK
-
-IPADDRESS_LINK = """
-{% if record.pk %}
- {{ record.address }}
-{% elif perms.ipam.add_ipaddress %}
- {% if record.0 <= 65536 %}{{ record.0 }}{% else %}Many{% endif %} IP{{ record.0|pluralize }} available
-{% else %}
- {% if record.0 <= 65536 %}{{ record.0 }}{% else %}Many{% endif %} IP{{ record.0|pluralize }} available
-{% endif %}
-"""
-
-IPADDRESS_COPY_BUTTON = """
-{% copy_content record.pk prefix="ipaddress_" %}
-"""
-
-IPADDRESS_ASSIGN_LINK = """
-{{ record }}
-"""
-
-VRF_LINK = """
-{% if value %}
- {{ record.vrf }}
-{% elif object.vrf %}
- {{ object.vrf }}
-{% else %}
- Global
-{% endif %}
-"""
-
#
# RIRs
@@ -241,9 +187,13 @@ class PrefixTable(TenancyColumnsMixin, NetBoxTable):
template_code=VRF_LINK,
verbose_name=_('VRF')
)
- site = tables.Column(
- verbose_name=_('Site'),
- linkify=True
+ scope_type = columns.ContentTypeColumn(
+ verbose_name=_('Scope Type'),
+ )
+ scope = tables.Column(
+ verbose_name=_('Scope'),
+ linkify=True,
+ orderable=False
)
vlan_group = tables.Column(
accessor='vlan__group',
@@ -251,6 +201,7 @@ class PrefixTable(TenancyColumnsMixin, NetBoxTable):
verbose_name=_('VLAN Group')
)
vlan = tables.Column(
+ order_by=('vlan__vid', 'vlan__pk'),
linkify=True,
verbose_name=_('VLAN')
)
@@ -285,11 +236,12 @@ class PrefixTable(TenancyColumnsMixin, NetBoxTable):
model = Prefix
fields = (
'pk', 'id', 'prefix', 'prefix_flat', 'status', 'children', 'vrf', 'utilization', 'tenant', 'tenant_group',
- 'site', 'vlan_group', 'vlan', 'role', 'is_pool', 'mark_utilized', 'description', 'comments', 'tags',
- 'created', 'last_updated',
+ 'scope', 'scope_type', 'vlan_group', 'vlan', 'role', 'is_pool', 'mark_utilized', 'description', 'comments',
+ 'tags', 'created', 'last_updated',
)
default_columns = (
- 'pk', 'prefix', 'status', 'children', 'vrf', 'utilization', 'tenant', 'site', 'vlan', 'role', 'description',
+ 'pk', 'prefix', 'status', 'children', 'vrf', 'utilization', 'tenant', 'scope', 'vlan', 'role',
+ 'description',
)
row_attrs = {
'class': lambda record: 'success' if not record.pk else '',
diff --git a/netbox/ipam/tables/template_code.py b/netbox/ipam/tables/template_code.py
new file mode 100644
index 000000000..fb969345e
--- /dev/null
+++ b/netbox/ipam/tables/template_code.py
@@ -0,0 +1,88 @@
+AGGREGATE_COPY_BUTTON = """
+{% copy_content record.pk prefix="aggregate_" %}
+"""
+
+PREFIX_LINK = """
+{% if record.pk %}
+ {{ record.prefix }}
+{% else %}
+ {{ record.prefix }}
+{% endif %}
+"""
+
+PREFIX_COPY_BUTTON = """
+{% copy_content record.pk prefix="prefix_" %}
+"""
+
+PREFIX_LINK_WITH_DEPTH = """
+{% load helpers %}
+{% if record.depth %}
+
+ {% for i in record.depth|as_range %}
+ •
+ {% endfor %}
+
+{% endif %}
+""" + PREFIX_LINK
+
+IPADDRESS_LINK = """
+{% if record.pk %}
+ {{ record.address }}
+{% elif perms.ipam.add_ipaddress %}
+ {% if record.0 <= 65536 %}{{ record.0 }}{% else %}Many{% endif %} IP{{ record.0|pluralize }} available
+{% else %}
+ {% if record.0 <= 65536 %}{{ record.0 }}{% else %}Many{% endif %} IP{{ record.0|pluralize }} available
+{% endif %}
+"""
+
+IPADDRESS_COPY_BUTTON = """
+{% copy_content record.pk prefix="ipaddress_" %}
+"""
+
+IPADDRESS_ASSIGN_LINK = """
+{{ record }}
+"""
+
+VRF_LINK = """
+{% if value %}
+ {{ record.vrf }}
+{% elif object.vrf %}
+ {{ object.vrf }}
+{% else %}
+ Global
+{% endif %}
+"""
+
+VLAN_LINK = """
+{% if record.pk %}
+ {{ record.vid }}
+{% elif perms.ipam.add_vlan %}
+ {{ record.available }} VLAN{{ record.available|pluralize }} available
+{% else %}
+ {{ record.available }} VLAN{{ record.available|pluralize }} available
+{% endif %}
+"""
+
+VLAN_PREFIXES = """
+{% for prefix in value.all %}
+ {{ prefix }} {% if not forloop.last %} {% endif %}
+{% endfor %}
+"""
+
+VLANGROUP_BUTTONS = """
+{% with next_vid=record.get_next_available_vid %}
+ {% if next_vid and perms.ipam.add_vlan %}
+
+
+
+ {% endif %}
+{% endwith %}
+"""
+
+VLAN_MEMBER_TAGGED = """
+{% if record.untagged_vlan_id == object.pk %}
+
+{% else %}
+
+{% endif %}
+"""
diff --git a/netbox/ipam/tables/vlans.py b/netbox/ipam/tables/vlans.py
index 5387ce24c..aa1900e41 100644
--- a/netbox/ipam/tables/vlans.py
+++ b/netbox/ipam/tables/vlans.py
@@ -8,6 +8,7 @@ from ipam.models import *
from netbox.tables import NetBoxTable, columns
from tenancy.tables import TenancyColumnsMixin, TenantColumn
from virtualization.models import VMInterface
+from .template_code import *
__all__ = (
'InterfaceVLANTable',
@@ -16,44 +17,12 @@ __all__ = (
'VLANMembersTable',
'VLANTable',
'VLANVirtualMachinesTable',
+ 'VLANTranslationPolicyTable',
+ 'VLANTranslationRuleTable',
)
AVAILABLE_LABEL = mark_safe('Available ')
-VLAN_LINK = """
-{% if record.pk %}
- {{ record.vid }}
-{% elif perms.ipam.add_vlan %}
- {{ record.available }} VLAN{{ record.available|pluralize }} available
-{% else %}
- {{ record.available }} VLAN{{ record.available|pluralize }} available
-{% endif %}
-"""
-
-VLAN_PREFIXES = """
-{% for prefix in value.all %}
- {{ prefix }} {% if not forloop.last %} {% endif %}
-{% endfor %}
-"""
-
-VLANGROUP_BUTTONS = """
-{% with next_vid=record.get_next_available_vid %}
- {% if next_vid and perms.ipam.add_vlan %}
-
-
-
- {% endif %}
-{% endwith %}
-"""
-
-VLAN_MEMBER_TAGGED = """
-{% if record.untagged_vlan_id == object.pk %}
-
-{% else %}
-
-{% endif %}
-"""
-
#
# VLAN groups
@@ -130,6 +99,13 @@ class VLANTable(TenancyColumnsMixin, NetBoxTable):
verbose_name=_('Role'),
linkify=True
)
+ qinq_role = columns.ChoiceFieldColumn(
+ verbose_name=_('Q-in-Q role')
+ )
+ qinq_svlan = tables.Column(
+ verbose_name=_('Q-in-Q SVLAN'),
+ linkify=True
+ )
l2vpn = tables.Column(
accessor=tables.A('l2vpn_termination__l2vpn'),
linkify=True,
@@ -152,7 +128,7 @@ class VLANTable(TenancyColumnsMixin, NetBoxTable):
model = VLAN
fields = (
'pk', 'id', 'vid', 'name', 'site', 'group', 'prefixes', 'tenant', 'tenant_group', 'status', 'role',
- 'description', 'comments', 'tags', 'l2vpn', 'created', 'last_updated',
+ 'qinq_role', 'qinq_svlan', 'description', 'comments', 'tags', 'l2vpn', 'created', 'last_updated',
)
default_columns = ('pk', 'vid', 'name', 'site', 'group', 'prefixes', 'tenant', 'status', 'role', 'description')
row_attrs = {
@@ -244,3 +220,59 @@ class InterfaceVLANTable(NetBoxTable):
def __init__(self, interface, *args, **kwargs):
self.interface = interface
super().__init__(*args, **kwargs)
+
+
+#
+# VLAN Translation
+#
+
+class VLANTranslationPolicyTable(NetBoxTable):
+ name = tables.Column(
+ verbose_name=_('Name'),
+ linkify=True
+ )
+ rule_count = columns.LinkedCountColumn(
+ viewname='ipam:vlantranslationrule_list',
+ url_params={'policy_id': 'pk'},
+ verbose_name=_('Rules')
+ )
+ description = tables.Column(
+ verbose_name=_('Description'),
+ )
+ tags = columns.TagColumn(
+ url_name='ipam:vlantranslationpolicy_list'
+ )
+
+ class Meta(NetBoxTable.Meta):
+ model = VLANTranslationPolicy
+ fields = (
+ 'pk', 'id', 'name', 'rule_count', 'description', 'tags', 'created', 'last_updated',
+ )
+ default_columns = ('pk', 'name', 'rule_count', 'description')
+
+
+class VLANTranslationRuleTable(NetBoxTable):
+ policy = tables.Column(
+ verbose_name=_('Policy'),
+ linkify=True
+ )
+ local_vid = tables.Column(
+ verbose_name=_('Local VID'),
+ linkify=True
+ )
+ remote_vid = tables.Column(
+ verbose_name=_('Remote VID'),
+ )
+ description = tables.Column(
+ verbose_name=_('Description'),
+ )
+ tags = columns.TagColumn(
+ url_name='ipam:vlantranslationrule_list'
+ )
+
+ class Meta(NetBoxTable.Meta):
+ model = VLANTranslationRule
+ fields = (
+ 'pk', 'id', 'name', 'policy', 'local_vid', 'remote_vid', 'description', 'tags', 'created', 'last_updated',
+ )
+ default_columns = ('pk', 'policy', 'local_vid', 'remote_vid', 'description')
diff --git a/netbox/ipam/tests/test_api.py b/netbox/ipam/tests/test_api.py
index 1d2cdf1b7..e9dcacc16 100644
--- a/netbox/ipam/tests/test_api.py
+++ b/netbox/ipam/tests/test_api.py
@@ -732,10 +732,19 @@ class FHRPGroupTest(APIViewTestCases.APIViewTestCase):
@classmethod
def setUpTestData(cls):
-
fhrp_groups = (
- FHRPGroup(protocol=FHRPGroupProtocolChoices.PROTOCOL_VRRP2, group_id=10, auth_type=FHRPGroupAuthTypeChoices.AUTHENTICATION_PLAINTEXT, auth_key='foobar123'),
- FHRPGroup(protocol=FHRPGroupProtocolChoices.PROTOCOL_VRRP3, group_id=20, auth_type=FHRPGroupAuthTypeChoices.AUTHENTICATION_MD5, auth_key='foobar123'),
+ FHRPGroup(
+ protocol=FHRPGroupProtocolChoices.PROTOCOL_VRRP2,
+ group_id=10,
+ auth_type=FHRPGroupAuthTypeChoices.AUTHENTICATION_PLAINTEXT,
+ auth_key='foobar123',
+ ),
+ FHRPGroup(
+ protocol=FHRPGroupProtocolChoices.PROTOCOL_VRRP3,
+ group_id=20,
+ auth_type=FHRPGroupAuthTypeChoices.AUTHENTICATION_MD5,
+ auth_key='foobar123',
+ ),
FHRPGroup(protocol=FHRPGroupProtocolChoices.PROTOCOL_HSRP, group_id=30),
)
FHRPGroup.objects.bulk_create(fhrp_groups)
@@ -980,6 +989,7 @@ class VLANTest(APIViewTestCases.APIViewTestCase):
VLAN(name='VLAN 1', vid=1, group=vlan_groups[0]),
VLAN(name='VLAN 2', vid=2, group=vlan_groups[0]),
VLAN(name='VLAN 3', vid=3, group=vlan_groups[0]),
+ VLAN(name='SVLAN 1', vid=1001, qinq_role=VLANQinQRoleChoices.ROLE_SERVICE),
)
VLAN.objects.bulk_create(vlans)
@@ -999,6 +1009,12 @@ class VLANTest(APIViewTestCases.APIViewTestCase):
'name': 'VLAN 6',
'group': vlan_groups[1].pk,
},
+ {
+ 'vid': 2001,
+ 'name': 'CVLAN 1',
+ 'qinq_role': VLANQinQRoleChoices.ROLE_CUSTOMER,
+ 'qinq_svlan': vlans[3].pk,
+ },
]
def test_delete_vlan_with_prefix(self):
@@ -1020,6 +1036,112 @@ class VLANTest(APIViewTestCases.APIViewTestCase):
self.assertTrue(content['detail'].startswith('Unable to delete object.'))
+class VLANTranslationPolicyTest(APIViewTestCases.APIViewTestCase):
+ model = VLANTranslationPolicy
+ brief_fields = ['description', 'display', 'id', 'name', 'url',]
+ bulk_update_data = {
+ 'description': 'New description',
+ }
+
+ @classmethod
+ def setUpTestData(cls):
+
+ vlan_translation_policies = (
+ VLANTranslationPolicy(
+ name='Policy 1',
+ description='foobar1',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 2',
+ description='foobar2',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 3',
+ description='foobar3',
+ ),
+ )
+ VLANTranslationPolicy.objects.bulk_create(vlan_translation_policies)
+
+ cls.create_data = [
+ {
+ 'name': 'Policy 4',
+ 'description': 'foobar4',
+ },
+ {
+ 'name': 'Policy 5',
+ 'description': 'foobar5',
+ },
+ {
+ 'name': 'Policy 6',
+ 'description': 'foobar6',
+ },
+ ]
+
+
+class VLANTranslationRuleTest(APIViewTestCases.APIViewTestCase):
+ model = VLANTranslationRule
+ brief_fields = ['description', 'display', 'id', 'local_vid', 'policy', 'remote_vid', 'url']
+
+ @classmethod
+ def setUpTestData(cls):
+
+ vlan_translation_policies = (
+ VLANTranslationPolicy(
+ name='Policy 1',
+ description='foobar1',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 2',
+ description='foobar2',
+ ),
+ )
+ VLANTranslationPolicy.objects.bulk_create(vlan_translation_policies)
+
+ vlan_translation_rules = (
+ VLANTranslationRule(
+ policy=vlan_translation_policies[0],
+ local_vid=100,
+ remote_vid=200,
+ description='foo',
+ ),
+ VLANTranslationRule(
+ policy=vlan_translation_policies[0],
+ local_vid=101,
+ remote_vid=201,
+ description='bar',
+ ),
+ VLANTranslationRule(
+ policy=vlan_translation_policies[1],
+ local_vid=102,
+ remote_vid=202,
+ description='baz',
+ ),
+ )
+ VLANTranslationRule.objects.bulk_create(vlan_translation_rules)
+
+ cls.create_data = [
+ {
+ 'policy': vlan_translation_policies[0].pk,
+ 'local_vid': 300,
+ 'remote_vid': 400,
+ },
+ {
+ 'policy': vlan_translation_policies[0].pk,
+ 'local_vid': 301,
+ 'remote_vid': 401,
+ },
+ {
+ 'policy': vlan_translation_policies[1].pk,
+ 'local_vid': 302,
+ 'remote_vid': 402,
+ },
+ ]
+
+ cls.bulk_update_data = {
+ 'policy': vlan_translation_policies[1].pk,
+ }
+
+
class ServiceTemplateTest(APIViewTestCases.APIViewTestCase):
model = ServiceTemplate
brief_fields = ['description', 'display', 'id', 'name', 'ports', 'protocol', 'url']
diff --git a/netbox/ipam/tests/test_filtersets.py b/netbox/ipam/tests/test_filtersets.py
index 4e38b1450..5455beb9c 100644
--- a/netbox/ipam/tests/test_filtersets.py
+++ b/netbox/ipam/tests/test_filtersets.py
@@ -496,8 +496,12 @@ class AggregateTestCase(TestCase, ChangeLoggedFilterSetTests):
Tenant.objects.bulk_create(tenants)
aggregates = (
- Aggregate(prefix='10.1.0.0/16', rir=rirs[0], tenant=tenants[0], date_added='2020-01-01', description='foobar1'),
- Aggregate(prefix='10.2.0.0/16', rir=rirs[0], tenant=tenants[1], date_added='2020-01-02', description='foobar2'),
+ Aggregate(
+ prefix='10.1.0.0/16', rir=rirs[0], tenant=tenants[0], date_added='2020-01-01', description='foobar1'
+ ),
+ Aggregate(
+ prefix='10.2.0.0/16', rir=rirs[0], tenant=tenants[1], date_added='2020-01-02', description='foobar2'
+ ),
Aggregate(prefix='10.3.0.0/16', rir=rirs[1], tenant=tenants[2], date_added='2020-01-03'),
Aggregate(prefix='2001:db8:1::/48', rir=rirs[1], tenant=tenants[0], date_added='2020-01-04'),
Aggregate(prefix='2001:db8:2::/48', rir=rirs[2], tenant=tenants[1], date_added='2020-01-05'),
@@ -656,14 +660,80 @@ class PrefixTestCase(TestCase, ChangeLoggedFilterSetTests):
Tenant.objects.bulk_create(tenants)
prefixes = (
- Prefix(prefix='10.0.0.0/24', tenant=None, site=None, vrf=None, vlan=None, role=None, is_pool=True, mark_utilized=True, description='foobar1'),
- Prefix(prefix='10.0.1.0/24', tenant=tenants[0], site=sites[0], vrf=vrfs[0], vlan=vlans[0], role=roles[0], description='foobar2'),
- Prefix(prefix='10.0.2.0/24', tenant=tenants[1], site=sites[1], vrf=vrfs[1], vlan=vlans[1], role=roles[1], status=PrefixStatusChoices.STATUS_DEPRECATED),
- Prefix(prefix='10.0.3.0/24', tenant=tenants[2], site=sites[2], vrf=vrfs[2], vlan=vlans[2], role=roles[2], status=PrefixStatusChoices.STATUS_RESERVED),
- Prefix(prefix='2001:db8::/64', tenant=None, site=None, vrf=None, vlan=None, role=None, is_pool=True, mark_utilized=True),
- Prefix(prefix='2001:db8:0:1::/64', tenant=tenants[0], site=sites[0], vrf=vrfs[0], vlan=vlans[0], role=roles[0]),
- Prefix(prefix='2001:db8:0:2::/64', tenant=tenants[1], site=sites[1], vrf=vrfs[1], vlan=vlans[1], role=roles[1], status=PrefixStatusChoices.STATUS_DEPRECATED),
- Prefix(prefix='2001:db8:0:3::/64', tenant=tenants[2], site=sites[2], vrf=vrfs[2], vlan=vlans[2], role=roles[2], status=PrefixStatusChoices.STATUS_RESERVED),
+ Prefix(
+ prefix='10.0.0.0/24',
+ tenant=None,
+ scope=None,
+ vrf=None,
+ vlan=None,
+ role=None,
+ is_pool=True,
+ mark_utilized=True,
+ description='foobar1',
+ ),
+ Prefix(
+ prefix='10.0.1.0/24',
+ tenant=tenants[0],
+ scope=sites[0],
+ vrf=vrfs[0],
+ vlan=vlans[0],
+ role=roles[0],
+ description='foobar2',
+ ),
+ Prefix(
+ prefix='10.0.2.0/24',
+ tenant=tenants[1],
+ scope=sites[1],
+ vrf=vrfs[1],
+ vlan=vlans[1],
+ role=roles[1],
+ status=PrefixStatusChoices.STATUS_DEPRECATED,
+ ),
+ Prefix(
+ prefix='10.0.3.0/24',
+ tenant=tenants[2],
+ scope=sites[2],
+ vrf=vrfs[2],
+ vlan=vlans[2],
+ role=roles[2],
+ status=PrefixStatusChoices.STATUS_RESERVED,
+ ),
+ Prefix(
+ prefix='2001:db8::/64',
+ tenant=None,
+ scope=None,
+ vrf=None,
+ vlan=None,
+ role=None,
+ is_pool=True,
+ mark_utilized=True,
+ ),
+ Prefix(
+ prefix='2001:db8:0:1::/64',
+ tenant=tenants[0],
+ scope=sites[0],
+ vrf=vrfs[0],
+ vlan=vlans[0],
+ role=roles[0]
+ ),
+ Prefix(
+ prefix='2001:db8:0:2::/64',
+ tenant=tenants[1],
+ scope=sites[1],
+ vrf=vrfs[1],
+ vlan=vlans[1],
+ role=roles[1],
+ status=PrefixStatusChoices.STATUS_DEPRECATED,
+ ),
+ Prefix(
+ prefix='2001:db8:0:3::/64',
+ tenant=tenants[2],
+ scope=sites[2],
+ vrf=vrfs[2],
+ vlan=vlans[2],
+ role=roles[2],
+ status=PrefixStatusChoices.STATUS_RESERVED,
+ ),
Prefix(prefix='10.0.0.0/16'),
Prefix(prefix='2001:db8::/32'),
)
@@ -1365,7 +1435,10 @@ class FHRPGroupTestCase(TestCase, ChangeLoggedFilterSetTests):
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
def test_auth_type(self):
- params = {'auth_type': [FHRPGroupAuthTypeChoices.AUTHENTICATION_PLAINTEXT, FHRPGroupAuthTypeChoices.AUTHENTICATION_MD5]}
+ params = {'auth_type': [
+ FHRPGroupAuthTypeChoices.AUTHENTICATION_PLAINTEXT,
+ FHRPGroupAuthTypeChoices.AUTHENTICATION_MD5,
+ ]}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
def test_auth_key(self):
@@ -1630,6 +1703,7 @@ class VLANTestCase(TestCase, ChangeLoggedFilterSetTests):
Site(name='Site 4', slug='site-4', region=regions[0], group=site_groups[0]),
Site(name='Site 5', slug='site-5', region=regions[1], group=site_groups[1]),
Site(name='Site 6', slug='site-6', region=regions[2], group=site_groups[2]),
+ Site(name='Site 7', slug='site-7'),
)
Site.objects.bulk_create(sites)
@@ -1652,9 +1726,15 @@ class VLANTestCase(TestCase, ChangeLoggedFilterSetTests):
device_type = DeviceType.objects.create(manufacturer=manufacturer, model='Device Type 1')
role = DeviceRole.objects.create(name='Device Role 1', slug='device-role-1')
devices = (
- Device(name='Device 1', site=sites[0], location=locations[0], rack=racks[0], device_type=device_type, role=role),
- Device(name='Device 2', site=sites[1], location=locations[1], rack=racks[1], device_type=device_type, role=role),
- Device(name='Device 3', site=sites[2], location=locations[2], rack=racks[2], device_type=device_type, role=role),
+ Device(
+ name='Device 1', site=sites[0], location=locations[0], rack=racks[0], device_type=device_type, role=role
+ ),
+ Device(
+ name='Device 2', site=sites[1], location=locations[1], rack=racks[1], device_type=device_type, role=role
+ ),
+ Device(
+ name='Device 3', site=sites[2], location=locations[2], rack=racks[2], device_type=device_type, role=role
+ ),
)
Device.objects.bulk_create(devices)
@@ -1674,11 +1754,12 @@ class VLANTestCase(TestCase, ChangeLoggedFilterSetTests):
cluster_type = ClusterType.objects.create(name='Cluster Type 1', slug='cluster-type-1')
clusters = (
- Cluster(name='Cluster 1', type=cluster_type, group=cluster_groups[0], site=sites[0]),
- Cluster(name='Cluster 2', type=cluster_type, group=cluster_groups[1], site=sites[1]),
- Cluster(name='Cluster 3', type=cluster_type, group=cluster_groups[2], site=sites[2]),
+ Cluster(name='Cluster 1', type=cluster_type, group=cluster_groups[0], scope=sites[0]),
+ Cluster(name='Cluster 2', type=cluster_type, group=cluster_groups[1], scope=sites[1]),
+ Cluster(name='Cluster 3', type=cluster_type, group=cluster_groups[2], scope=sites[2]),
)
- Cluster.objects.bulk_create(clusters)
+ for cluster in clusters:
+ cluster.save()
virtual_machines = (
VirtualMachine(name='Virtual Machine 1', cluster=clusters[0]),
@@ -1771,22 +1852,98 @@ class VLANTestCase(TestCase, ChangeLoggedFilterSetTests):
VLAN(vid=19, name='Cluster 1', group=groups[18]),
VLAN(vid=20, name='Cluster 2', group=groups[19]),
VLAN(vid=21, name='Cluster 3', group=groups[20]),
-
- VLAN(vid=101, name='VLAN 101', site=sites[3], group=groups[21], role=roles[0], tenant=tenants[0], status=VLANStatusChoices.STATUS_ACTIVE),
- VLAN(vid=102, name='VLAN 102', site=sites[3], group=groups[21], role=roles[0], tenant=tenants[0], status=VLANStatusChoices.STATUS_ACTIVE),
- VLAN(vid=201, name='VLAN 201', site=sites[4], group=groups[22], role=roles[1], tenant=tenants[1], status=VLANStatusChoices.STATUS_DEPRECATED),
- VLAN(vid=202, name='VLAN 202', site=sites[4], group=groups[22], role=roles[1], tenant=tenants[1], status=VLANStatusChoices.STATUS_DEPRECATED),
- VLAN(vid=301, name='VLAN 301', site=sites[5], group=groups[23], role=roles[2], tenant=tenants[2], status=VLANStatusChoices.STATUS_RESERVED),
- VLAN(vid=302, name='VLAN 302', site=sites[5], group=groups[23], role=roles[2], tenant=tenants[2], status=VLANStatusChoices.STATUS_RESERVED),
-
+ VLAN(
+ vid=101,
+ name='VLAN 101',
+ site=sites[3],
+ group=groups[21],
+ role=roles[0],
+ tenant=tenants[0],
+ status=VLANStatusChoices.STATUS_ACTIVE,
+ ),
+ VLAN(
+ vid=102,
+ name='VLAN 102',
+ site=sites[3],
+ group=groups[21],
+ role=roles[0],
+ tenant=tenants[0],
+ status=VLANStatusChoices.STATUS_ACTIVE,
+ ),
+ VLAN(
+ vid=201,
+ name='VLAN 201',
+ site=sites[4],
+ group=groups[22],
+ role=roles[1],
+ tenant=tenants[1],
+ status=VLANStatusChoices.STATUS_DEPRECATED,
+ ),
+ VLAN(
+ vid=202,
+ name='VLAN 202',
+ site=sites[4],
+ group=groups[22],
+ role=roles[1],
+ tenant=tenants[1],
+ status=VLANStatusChoices.STATUS_DEPRECATED,
+ ),
+ VLAN(
+ vid=301,
+ name='VLAN 301',
+ site=sites[5],
+ group=groups[23],
+ role=roles[2],
+ tenant=tenants[2],
+ status=VLANStatusChoices.STATUS_RESERVED,
+ ),
+ VLAN(
+ vid=302,
+ name='VLAN 302',
+ site=sites[5],
+ group=groups[23],
+ role=roles[2],
+ tenant=tenants[2],
+ status=VLANStatusChoices.STATUS_RESERVED,
+ ),
# Create one globally available VLAN on a VLAN group
VLAN(vid=500, name='VLAN Group 1', group=groups[24]),
-
# Create one globally available VLAN
VLAN(vid=1000, name='Global VLAN'),
+ # Create some Q-in-Q service VLANs
+ VLAN(vid=2001, name='SVLAN 1', site=sites[6], qinq_role=VLANQinQRoleChoices.ROLE_SERVICE),
+ VLAN(vid=2002, name='SVLAN 2', site=sites[6], qinq_role=VLANQinQRoleChoices.ROLE_SERVICE),
+ VLAN(vid=2003, name='SVLAN 3', site=sites[6], qinq_role=VLANQinQRoleChoices.ROLE_SERVICE),
)
VLAN.objects.bulk_create(vlans)
+ # Create Q-in-Q customer VLANs
+ VLAN.objects.bulk_create(
+ [
+ VLAN(
+ vid=3001,
+ name='CVLAN 1',
+ site=sites[6],
+ qinq_svlan=vlans[29],
+ qinq_role=VLANQinQRoleChoices.ROLE_CUSTOMER,
+ ),
+ VLAN(
+ vid=3002,
+ name='CVLAN 2',
+ site=sites[6],
+ qinq_svlan=vlans[30],
+ qinq_role=VLANQinQRoleChoices.ROLE_CUSTOMER,
+ ),
+ VLAN(
+ vid=3003,
+ name='CVLAN 3',
+ site=sites[6],
+ qinq_svlan=vlans[31],
+ qinq_role=VLANQinQRoleChoices.ROLE_CUSTOMER,
+ ),
+ ]
+ )
+
# Assign VLANs to device interfaces
interfaces[0].untagged_vlan = vlans[0]
interfaces[0].tagged_vlans.add(vlans[1])
@@ -1897,6 +2054,110 @@ class VLANTestCase(TestCase, ChangeLoggedFilterSetTests):
params = {'vminterface_id': vminterface_id}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
+ def test_qinq_role(self):
+ params = {'qinq_role': [VLANQinQRoleChoices.ROLE_SERVICE, VLANQinQRoleChoices.ROLE_CUSTOMER]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 6)
+
+ def test_qinq_svlan(self):
+ vlans = VLAN.objects.filter(qinq_role=VLANQinQRoleChoices.ROLE_SERVICE)[:2]
+ params = {'qinq_svlan_id': [vlans[0].pk, vlans[1].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'qinq_svlan_vid': [vlans[0].vid, vlans[1].vid]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+
+class VLANTranslationPolicyTestCase(TestCase, ChangeLoggedFilterSetTests):
+ queryset = VLANTranslationPolicy.objects.all()
+ filterset = VLANTranslationPolicyFilterSet
+
+ @classmethod
+ def setUpTestData(cls):
+
+ vlan_translation_policies = (
+ VLANTranslationPolicy(
+ name='Policy 1',
+ description='foobar1',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 2',
+ description='foobar2',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 3',
+ description='foobar3',
+ ),
+ )
+ VLANTranslationPolicy.objects.bulk_create(vlan_translation_policies)
+
+ def test_name(self):
+ params = {'name': ['Policy 1', 'Policy 2']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_description(self):
+ params = {'description': ['foobar1', 'foobar2']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+
+class VLANTranslationRuleTestCase(TestCase, ChangeLoggedFilterSetTests):
+ queryset = VLANTranslationRule.objects.all()
+ filterset = VLANTranslationRuleFilterSet
+
+ @classmethod
+ def setUpTestData(cls):
+
+ vlan_translation_policies = (
+ VLANTranslationPolicy(
+ name='Policy 1',
+ description='foobar1',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 2',
+ description='foobar2',
+ ),
+ )
+ VLANTranslationPolicy.objects.bulk_create(vlan_translation_policies)
+
+ vlan_translation_rules = (
+ VLANTranslationRule(
+ policy=vlan_translation_policies[0],
+ local_vid=100,
+ remote_vid=200,
+ description='foo',
+ ),
+ VLANTranslationRule(
+ policy=vlan_translation_policies[0],
+ local_vid=101,
+ remote_vid=201,
+ description='bar',
+ ),
+ VLANTranslationRule(
+ policy=vlan_translation_policies[1],
+ local_vid=100,
+ remote_vid=200,
+ description='baz',
+ ),
+ )
+ VLANTranslationRule.objects.bulk_create(vlan_translation_rules)
+
+ def test_policy_id(self):
+ policies = VLANTranslationPolicy.objects.all()[:2]
+ params = {'policy_id': [policies[0].pk]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+ params = {'policy': [policies[0].name]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_local_vid(self):
+ params = {'local_vid': [100]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_remote_vid(self):
+ params = {'remote_vid': [200]}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
+ def test_description(self):
+ params = {'description': ['foo', 'bar']}
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
+
class ServiceTemplateTestCase(TestCase, ChangeLoggedFilterSetTests):
queryset = ServiceTemplate.objects.all()
@@ -2007,12 +2268,39 @@ class ServiceTestCase(TestCase, ChangeLoggedFilterSetTests):
VirtualMachine.objects.bulk_create(virtual_machines)
services = (
- Service(device=devices[0], name='Service 1', protocol=ServiceProtocolChoices.PROTOCOL_TCP, ports=[1001], description='foobar1'),
- Service(device=devices[1], name='Service 2', protocol=ServiceProtocolChoices.PROTOCOL_TCP, ports=[1002], description='foobar2'),
+ Service(
+ device=devices[0],
+ name='Service 1',
+ protocol=ServiceProtocolChoices.PROTOCOL_TCP,
+ ports=[1001],
+ description='foobar1',
+ ),
+ Service(
+ device=devices[1],
+ name='Service 2',
+ protocol=ServiceProtocolChoices.PROTOCOL_TCP,
+ ports=[1002],
+ description='foobar2',
+ ),
Service(device=devices[2], name='Service 3', protocol=ServiceProtocolChoices.PROTOCOL_UDP, ports=[1003]),
- Service(virtual_machine=virtual_machines[0], name='Service 4', protocol=ServiceProtocolChoices.PROTOCOL_TCP, ports=[2001]),
- Service(virtual_machine=virtual_machines[1], name='Service 5', protocol=ServiceProtocolChoices.PROTOCOL_TCP, ports=[2002]),
- Service(virtual_machine=virtual_machines[2], name='Service 6', protocol=ServiceProtocolChoices.PROTOCOL_UDP, ports=[2003]),
+ Service(
+ virtual_machine=virtual_machines[0],
+ name='Service 4',
+ protocol=ServiceProtocolChoices.PROTOCOL_TCP,
+ ports=[2001],
+ ),
+ Service(
+ virtual_machine=virtual_machines[1],
+ name='Service 5',
+ protocol=ServiceProtocolChoices.PROTOCOL_TCP,
+ ports=[2002],
+ ),
+ Service(
+ virtual_machine=virtual_machines[2],
+ name='Service 6',
+ protocol=ServiceProtocolChoices.PROTOCOL_UDP,
+ ports=[2003],
+ ),
)
Service.objects.bulk_create(services)
services[0].ipaddresses.add(ip_addresses[0])
diff --git a/netbox/ipam/tests/test_models.py b/netbox/ipam/tests/test_models.py
index d14fa0657..62eb74123 100644
--- a/netbox/ipam/tests/test_models.py
+++ b/netbox/ipam/tests/test_models.py
@@ -39,29 +39,50 @@ class TestAggregate(TestCase):
class TestIPRange(TestCase):
def test_overlapping_range(self):
- iprange_192_168 = IPRange.objects.create(start_address=IPNetwork('192.168.0.1/22'), end_address=IPNetwork('192.168.0.49/22'))
+ iprange_192_168 = IPRange.objects.create(
+ start_address=IPNetwork('192.168.0.1/22'), end_address=IPNetwork('192.168.0.49/22')
+ )
iprange_192_168.clean()
- iprange_3_1_99 = IPRange.objects.create(start_address=IPNetwork('1.2.3.1/24'), end_address=IPNetwork('1.2.3.99/24'))
+ iprange_3_1_99 = IPRange.objects.create(
+ start_address=IPNetwork('1.2.3.1/24'), end_address=IPNetwork('1.2.3.99/24')
+ )
iprange_3_1_99.clean()
- iprange_3_100_199 = IPRange.objects.create(start_address=IPNetwork('1.2.3.100/24'), end_address=IPNetwork('1.2.3.199/24'))
+ iprange_3_100_199 = IPRange.objects.create(
+ start_address=IPNetwork('1.2.3.100/24'), end_address=IPNetwork('1.2.3.199/24')
+ )
iprange_3_100_199.clean()
- iprange_3_200_255 = IPRange.objects.create(start_address=IPNetwork('1.2.3.200/24'), end_address=IPNetwork('1.2.3.255/24'))
+ iprange_3_200_255 = IPRange.objects.create(
+ start_address=IPNetwork('1.2.3.200/24'), end_address=IPNetwork('1.2.3.255/24')
+ )
iprange_3_200_255.clean()
- iprange_4_1_99 = IPRange.objects.create(start_address=IPNetwork('1.2.4.1/24'), end_address=IPNetwork('1.2.4.99/24'))
+ iprange_4_1_99 = IPRange.objects.create(
+ start_address=IPNetwork('1.2.4.1/24'), end_address=IPNetwork('1.2.4.99/24')
+ )
iprange_4_1_99.clean()
- iprange_4_200 = IPRange.objects.create(start_address=IPNetwork('1.2.4.200/24'), end_address=IPNetwork('1.2.4.255/24'))
+ iprange_4_200 = IPRange.objects.create(
+ start_address=IPNetwork('1.2.4.200/24'), end_address=IPNetwork('1.2.4.255/24')
+ )
iprange_4_200.clean()
+
# Overlapping range entirely within existing
with self.assertRaises(ValidationError):
- iprange_3_123_124 = IPRange.objects.create(start_address=IPNetwork('1.2.3.123/26'), end_address=IPNetwork('1.2.3.124/26'))
+ iprange_3_123_124 = IPRange.objects.create(
+ start_address=IPNetwork('1.2.3.123/26'), end_address=IPNetwork('1.2.3.124/26')
+ )
iprange_3_123_124.clean()
+
# Overlapping range starting within existing
with self.assertRaises(ValidationError):
- iprange_4_98_101 = IPRange.objects.create(start_address=IPNetwork('1.2.4.98/24'), end_address=IPNetwork('1.2.4.101/24'))
+ iprange_4_98_101 = IPRange.objects.create(
+ start_address=IPNetwork('1.2.4.98/24'), end_address=IPNetwork('1.2.4.101/24')
+ )
iprange_4_98_101.clean()
+
# Overlapping range ending within existing
with self.assertRaises(ValidationError):
- iprange_4_198_201 = IPRange.objects.create(start_address=IPNetwork('1.2.4.198/24'), end_address=IPNetwork('1.2.4.201/24'))
+ iprange_4_198_201 = IPRange.objects.create(
+ start_address=IPNetwork('1.2.4.198/24'), end_address=IPNetwork('1.2.4.201/24')
+ )
iprange_4_198_201.clean()
@@ -105,13 +126,30 @@ class TestPrefix(TestCase):
def test_get_child_ranges(self):
prefix = Prefix(prefix='192.168.0.16/28')
prefix.save()
- ranges = IPRange.objects.bulk_create((
- IPRange(start_address=IPNetwork('192.168.0.1/24'), end_address=IPNetwork('192.168.0.10/24'), size=10), # No overlap
- IPRange(start_address=IPNetwork('192.168.0.11/24'), end_address=IPNetwork('192.168.0.17/24'), size=7), # Partial overlap
- IPRange(start_address=IPNetwork('192.168.0.18/24'), end_address=IPNetwork('192.168.0.23/24'), size=6), # Full overlap
- IPRange(start_address=IPNetwork('192.168.0.24/24'), end_address=IPNetwork('192.168.0.30/24'), size=7), # Full overlap
- IPRange(start_address=IPNetwork('192.168.0.31/24'), end_address=IPNetwork('192.168.0.40/24'), size=10), # Partial overlap
- ))
+ ranges = IPRange.objects.bulk_create(
+ (
+ # No overlap
+ IPRange(
+ start_address=IPNetwork('192.168.0.1/24'), end_address=IPNetwork('192.168.0.10/24'), size=10
+ ),
+ # Partial overlap
+ IPRange(
+ start_address=IPNetwork('192.168.0.11/24'), end_address=IPNetwork('192.168.0.17/24'), size=7
+ ),
+ # Full overlap
+ IPRange(
+ start_address=IPNetwork('192.168.0.18/24'), end_address=IPNetwork('192.168.0.23/24'), size=6
+ ),
+ # Full overlap
+ IPRange(
+ start_address=IPNetwork('192.168.0.24/24'), end_address=IPNetwork('192.168.0.30/24'), size=7
+ ),
+ # Partial overlap
+ IPRange(
+ start_address=IPNetwork('192.168.0.31/24'), end_address=IPNetwork('192.168.0.40/24'), size=10
+ ),
+ )
+ )
child_ranges = prefix.get_child_ranges()
@@ -586,3 +624,24 @@ class TestVLANGroup(TestCase):
vlangroup.vid_ranges = string_to_ranges('2-2')
vlangroup.full_clean()
vlangroup.save()
+
+
+class TestVLAN(TestCase):
+
+ @classmethod
+ def setUpTestData(cls):
+ VLAN.objects.bulk_create((
+ VLAN(name='VLAN 1', vid=1, qinq_role=VLANQinQRoleChoices.ROLE_SERVICE),
+ ))
+
+ def test_qinq_role(self):
+ svlan = VLAN.objects.filter(qinq_role=VLANQinQRoleChoices.ROLE_SERVICE).first()
+
+ vlan = VLAN(
+ name='VLAN X',
+ vid=999,
+ qinq_role=VLANQinQRoleChoices.ROLE_SERVICE,
+ qinq_svlan=svlan
+ )
+ with self.assertRaises(ValidationError):
+ vlan.full_clean()
diff --git a/netbox/ipam/tests/test_ordering.py b/netbox/ipam/tests/test_ordering.py
index 8d69af847..2f7a5342d 100644
--- a/netbox/ipam/tests/test_ordering.py
+++ b/netbox/ipam/tests/test_ordering.py
@@ -42,7 +42,7 @@ class PrefixOrderingTestCase(OrderingTestBase):
"""
This is a very basic test, which tests both prefixes without VRFs and prefixes with VRFs
"""
- vrf1, vrf2, vrf3 = list(VRF.objects.all())
+ vrf1, vrf2 = VRF.objects.all()[:2]
prefixes = (
Prefix(status=PrefixStatusChoices.STATUS_CONTAINER, vrf=None, prefix=netaddr.IPNetwork('192.168.0.0/16')),
Prefix(status=PrefixStatusChoices.STATUS_ACTIVE, vrf=None, prefix=netaddr.IPNetwork('192.168.0.0/24')),
@@ -92,8 +92,8 @@ class PrefixOrderingTestCase(OrderingTestBase):
def test_prefix_complex_ordering(self):
"""
- This function tests a complex ordering of interwoven prefixes and vrfs. This is the current expected ordering of VRFs
- This includes the testing of the Container status.
+ This function tests a complex ordering of interwoven prefixes and vrfs. This is the current expected ordering
+ of VRFs. This includes the testing of the Container status.
The proper ordering, to get proper containerization should be:
None:10.0.0.0/8
@@ -106,7 +106,7 @@ class PrefixOrderingTestCase(OrderingTestBase):
VRF A:10.1.1.0/24
None: 192.168.0.0/16
"""
- vrf1, vrf2, vrf3 = list(VRF.objects.all())
+ vrf1 = VRF.objects.first()
prefixes = [
Prefix(status=PrefixStatusChoices.STATUS_CONTAINER, vrf=None, prefix=netaddr.IPNetwork('10.0.0.0/8')),
Prefix(status=PrefixStatusChoices.STATUS_CONTAINER, vrf=None, prefix=netaddr.IPNetwork('10.0.0.0/16')),
@@ -125,12 +125,11 @@ class PrefixOrderingTestCase(OrderingTestBase):
class IPAddressOrderingTestCase(OrderingTestBase):
-
def test_address_vrf_ordering(self):
"""
This function tests ordering with the inclusion of vrfs
"""
- vrf1, vrf2, vrf3 = list(VRF.objects.all())
+ vrf1, vrf2 = VRF.objects.all()[:2]
addresses = (
IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf1, address=netaddr.IPNetwork('10.0.0.1/24')),
IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf1, address=netaddr.IPNetwork('10.0.1.1/24')),
@@ -147,24 +146,54 @@ class IPAddressOrderingTestCase(OrderingTestBase):
IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf1, address=netaddr.IPNetwork('10.2.2.1/24')),
IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf1, address=netaddr.IPNetwork('10.2.3.1/24')),
IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf1, address=netaddr.IPNetwork('10.2.4.1/24')),
-
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.0.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.1.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.2.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.3.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.4.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.0.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.1.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.2.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.3.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.4.1/24')),
-
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.0.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.1.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.2.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.3.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.4.1/24')),
- IPAddress(status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.5.1/24')),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.0.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.1.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.2.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.3.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.16.4.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.0.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.1.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.2.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.3.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=vrf2, address=netaddr.IPNetwork('172.17.4.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.0.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.1.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.2.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.3.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.4.1/24')
+ ),
+ IPAddress(
+ status=IPAddressStatusChoices.STATUS_ACTIVE, vrf=None, address=netaddr.IPNetwork('192.168.5.1/24')
+ ),
)
IPAddress.objects.bulk_create(addresses)
diff --git a/netbox/ipam/tests/test_views.py b/netbox/ipam/tests/test_views.py
index 95b311878..d7d367bb7 100644
--- a/netbox/ipam/tests/test_views.py
+++ b/netbox/ipam/tests/test_views.py
@@ -1,5 +1,6 @@
import datetime
+from django.contrib.contenttypes.models import ContentType
from django.test import override_settings
from django.urls import reverse
from netaddr import IPNetwork
@@ -409,9 +410,9 @@ class PrefixTestCase(ViewTestCases.PrimaryObjectViewTestCase):
Role.objects.bulk_create(roles)
prefixes = (
- Prefix(prefix=IPNetwork('10.1.0.0/16'), vrf=vrfs[0], site=sites[0], role=roles[0]),
- Prefix(prefix=IPNetwork('10.2.0.0/16'), vrf=vrfs[0], site=sites[0], role=roles[0]),
- Prefix(prefix=IPNetwork('10.3.0.0/16'), vrf=vrfs[0], site=sites[0], role=roles[0]),
+ Prefix(prefix=IPNetwork('10.1.0.0/16'), vrf=vrfs[0], scope=sites[0], role=roles[0]),
+ Prefix(prefix=IPNetwork('10.2.0.0/16'), vrf=vrfs[0], scope=sites[0], role=roles[0]),
+ Prefix(prefix=IPNetwork('10.3.0.0/16'), vrf=vrfs[0], scope=sites[0], role=roles[0]),
)
Prefix.objects.bulk_create(prefixes)
@@ -419,7 +420,8 @@ class PrefixTestCase(ViewTestCases.PrimaryObjectViewTestCase):
cls.form_data = {
'prefix': IPNetwork('192.0.2.0/24'),
- 'site': sites[1].pk,
+ 'scope_type': ContentType.objects.get_for_model(Site).pk,
+ 'scope': sites[1].pk,
'vrf': vrfs[1].pk,
'tenant': None,
'vlan': None,
@@ -430,11 +432,12 @@ class PrefixTestCase(ViewTestCases.PrimaryObjectViewTestCase):
'tags': [t.pk for t in tags],
}
+ site = sites[0].pk
cls.csv_data = (
- "vrf,prefix,status",
- "VRF 1,10.4.0.0/16,active",
- "VRF 1,10.5.0.0/16,active",
- "VRF 1,10.6.0.0/16,active",
+ "vrf,prefix,status,scope_type,scope_id",
+ f"VRF 1,10.4.0.0/16,active,dcim.site,{site}",
+ f"VRF 1,10.5.0.0/16,active,dcim.site,{site}",
+ f"VRF 1,10.6.0.0/16,active,dcim.site,{site}",
)
cls.csv_update_data = (
@@ -445,7 +448,6 @@ class PrefixTestCase(ViewTestCases.PrimaryObjectViewTestCase):
)
cls.bulk_edit_data = {
- 'site': sites[1].pk,
'vrf': vrfs[1].pk,
'tenant': None,
'status': PrefixStatusChoices.STATUS_RESERVED,
@@ -501,11 +503,13 @@ class PrefixTestCase(ViewTestCases.PrimaryObjectViewTestCase):
"""
Custom import test for YAML-based imports (versus CSV)
"""
- IMPORT_DATA = """
+ site = Site.objects.get(name='Site 1')
+ IMPORT_DATA = f"""
prefix: 10.1.1.0/24
status: active
vlan: 101
-site: Site 1
+scope_type: dcim.site
+scope_id: {site.pk}
"""
# Note, a site is not tied to the VLAN to verify the fix for #12622
VLAN.objects.create(vid=101, name='VLAN101')
@@ -517,25 +521,27 @@ site: Site 1
'data': IMPORT_DATA,
'format': 'yaml'
}
- response = self.client.post(reverse('ipam:prefix_import'), data=form_data, follow=True)
+ response = self.client.post(reverse('ipam:prefix_bulk_import'), data=form_data, follow=True)
self.assertHttpStatus(response, 200)
prefix = Prefix.objects.get(prefix='10.1.1.0/24')
self.assertEqual(prefix.status, PrefixStatusChoices.STATUS_ACTIVE)
self.assertEqual(prefix.vlan.vid, 101)
- self.assertEqual(prefix.site.name, "Site 1")
+ self.assertEqual(prefix.scope, site)
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'])
def test_prefix_import_with_vlan_group(self):
"""
This test covers a unique import edge case where VLAN group is specified during the import.
"""
- IMPORT_DATA = """
+ site = Site.objects.get(name='Site 1')
+ IMPORT_DATA = f"""
prefix: 10.1.2.0/24
status: active
-vlan: 102
-site: Site 1
+scope_type: dcim.site
+scope_id: {site.pk}
vlan_group: Group 1
+vlan: 102
"""
vlan_group = VLANGroup.objects.create(name='Group 1', slug='group-1', scope=Site.objects.get(name="Site 1"))
VLAN.objects.create(vid=102, name='VLAN102', group=vlan_group)
@@ -547,13 +553,13 @@ vlan_group: Group 1
'data': IMPORT_DATA,
'format': 'yaml'
}
- response = self.client.post(reverse('ipam:prefix_import'), data=form_data, follow=True)
+ response = self.client.post(reverse('ipam:prefix_bulk_import'), data=form_data, follow=True)
self.assertHttpStatus(response, 200)
prefix = Prefix.objects.get(prefix='10.1.2.0/24')
self.assertEqual(prefix.status, PrefixStatusChoices.STATUS_ACTIVE)
self.assertEqual(prefix.vlan.vid, 102)
- self.assertEqual(prefix.site.name, "Site 1")
+ self.assertEqual(prefix.scope, site)
class IPRangeTestCase(ViewTestCases.PrimaryObjectViewTestCase):
@@ -701,11 +707,23 @@ class FHRPGroupTestCase(ViewTestCases.PrimaryObjectViewTestCase):
@classmethod
def setUpTestData(cls):
-
fhrp_groups = (
- FHRPGroup(protocol=FHRPGroupProtocolChoices.PROTOCOL_VRRP2, group_id=10, auth_type=FHRPGroupAuthTypeChoices.AUTHENTICATION_PLAINTEXT, auth_key='foobar123'),
- FHRPGroup(protocol=FHRPGroupProtocolChoices.PROTOCOL_VRRP3, group_id=20, auth_type=FHRPGroupAuthTypeChoices.AUTHENTICATION_MD5, auth_key='foobar123'),
- FHRPGroup(protocol=FHRPGroupProtocolChoices.PROTOCOL_HSRP, group_id=30),
+ FHRPGroup(
+ protocol=FHRPGroupProtocolChoices.PROTOCOL_VRRP2,
+ group_id=10,
+ auth_type=FHRPGroupAuthTypeChoices.AUTHENTICATION_PLAINTEXT,
+ auth_key='foobar123',
+ ),
+ FHRPGroup(
+ protocol=FHRPGroupProtocolChoices.PROTOCOL_VRRP3,
+ group_id=20,
+ auth_type=FHRPGroupAuthTypeChoices.AUTHENTICATION_MD5,
+ auth_key='foobar123',
+ ),
+ FHRPGroup(
+ protocol=FHRPGroupProtocolChoices.PROTOCOL_HSRP,
+ group_id=30
+ ),
)
FHRPGroup.objects.bulk_create(fhrp_groups)
@@ -857,6 +875,121 @@ class VLANTestCase(ViewTestCases.PrimaryObjectViewTestCase):
}
+class VLANTranslationPolicyTestCase(ViewTestCases.PrimaryObjectViewTestCase):
+ model = VLANTranslationPolicy
+
+ @classmethod
+ def setUpTestData(cls):
+
+ vlan_translation_policies = (
+ VLANTranslationPolicy(
+ name='Policy 1',
+ description='foobar1',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 2',
+ description='foobar2',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 3',
+ description='foobar3',
+ ),
+ )
+ VLANTranslationPolicy.objects.bulk_create(vlan_translation_policies)
+
+ tags = create_tags('Alpha', 'Bravo', 'Charlie')
+
+ cls.form_data = {
+ 'name': 'Policy999',
+ 'description': 'A new VLAN Translation Policy',
+ 'tags': [t.pk for t in tags],
+ }
+
+ cls.csv_data = (
+ "name,description",
+ "Policy101,foobar1",
+ "Policy102,foobar2",
+ "Policy103,foobar3",
+ )
+
+ cls.csv_update_data = (
+ "id,name,description",
+ f"{vlan_translation_policies[0].pk},Policy101,New description 1",
+ f"{vlan_translation_policies[1].pk},Policy102,New description 2",
+ f"{vlan_translation_policies[2].pk},Policy103,New description 3",
+ )
+
+ cls.bulk_edit_data = {
+ 'description': 'New description',
+ }
+
+
+class VLANTranslationRuleTestCase(ViewTestCases.PrimaryObjectViewTestCase):
+ model = VLANTranslationRule
+
+ @classmethod
+ def setUpTestData(cls):
+
+ vlan_translation_policies = (
+ VLANTranslationPolicy(
+ name='Policy 1',
+ description='foobar1',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 2',
+ description='foobar2',
+ ),
+ VLANTranslationPolicy(
+ name='Policy 3',
+ description='foobar3',
+ ),
+ )
+ VLANTranslationPolicy.objects.bulk_create(vlan_translation_policies)
+
+ vlan_translation_rules = (
+ VLANTranslationRule(
+ policy=vlan_translation_policies[0],
+ local_vid=100,
+ remote_vid=200,
+ ),
+ VLANTranslationRule(
+ policy=vlan_translation_policies[0],
+ local_vid=101,
+ remote_vid=201,
+ ),
+ VLANTranslationRule(
+ policy=vlan_translation_policies[1],
+ local_vid=102,
+ remote_vid=202,
+ ),
+ )
+ VLANTranslationRule.objects.bulk_create(vlan_translation_rules)
+
+ cls.form_data = {
+ 'policy': vlan_translation_policies[0].pk,
+ 'local_vid': 300,
+ 'remote_vid': 400,
+ }
+
+ cls.csv_data = (
+ "policy,local_vid,remote_vid",
+ f"{vlan_translation_policies[0].name},103,203",
+ f"{vlan_translation_policies[0].name},104,204",
+ f"{vlan_translation_policies[1].name},105,205",
+ )
+
+ cls.csv_update_data = (
+ "id,local_vid,remote_vid",
+ f"{vlan_translation_rules[0].pk},105,205",
+ f"{vlan_translation_rules[1].pk},106,206",
+ f"{vlan_translation_rules[2].pk},107,207",
+ )
+
+ cls.bulk_edit_data = {
+ 'policy': vlan_translation_policies[2].pk,
+ }
+
+
class ServiceTemplateTestCase(ViewTestCases.PrimaryObjectViewTestCase):
model = ServiceTemplate
diff --git a/netbox/ipam/urls.py b/netbox/ipam/urls.py
index 61deeff4b..c55e874a1 100644
--- a/netbox/ipam/urls.py
+++ b/netbox/ipam/urls.py
@@ -1,134 +1,62 @@
from django.urls import include, path
from utilities.urls import get_model_urls
-from . import views
+from . import views # noqa F401
app_name = 'ipam'
urlpatterns = [
- # ASN ranges
- path('asn-ranges/', views.ASNRangeListView.as_view(), name='asnrange_list'),
- path('asn-ranges/add/', views.ASNRangeEditView.as_view(), name='asnrange_add'),
- path('asn-ranges/import/', views.ASNRangeBulkImportView.as_view(), name='asnrange_import'),
- path('asn-ranges/edit/', views.ASNRangeBulkEditView.as_view(), name='asnrange_bulk_edit'),
- path('asn-ranges/delete/', views.ASNRangeBulkDeleteView.as_view(), name='asnrange_bulk_delete'),
+ path('asn-ranges/', include(get_model_urls('ipam', 'asnrange', detail=False))),
path('asn-ranges//', include(get_model_urls('ipam', 'asnrange'))),
- # ASNs
- path('asns/', views.ASNListView.as_view(), name='asn_list'),
- path('asns/add/', views.ASNEditView.as_view(), name='asn_add'),
- path('asns/import/', views.ASNBulkImportView.as_view(), name='asn_import'),
- path('asns/edit/', views.ASNBulkEditView.as_view(), name='asn_bulk_edit'),
- path('asns/delete/', views.ASNBulkDeleteView.as_view(), name='asn_bulk_delete'),
+ path('asns/', include(get_model_urls('ipam', 'asn', detail=False))),
path('asns//', include(get_model_urls('ipam', 'asn'))),
- # VRFs
- path('vrfs/', views.VRFListView.as_view(), name='vrf_list'),
- path('vrfs/add/', views.VRFEditView.as_view(), name='vrf_add'),
- path('vrfs/import/', views.VRFBulkImportView.as_view(), name='vrf_import'),
- path('vrfs/edit/', views.VRFBulkEditView.as_view(), name='vrf_bulk_edit'),
- path('vrfs/delete/', views.VRFBulkDeleteView.as_view(), name='vrf_bulk_delete'),
+ path('vrfs/', include(get_model_urls('ipam', 'vrf', detail=False))),
path('vrfs//', include(get_model_urls('ipam', 'vrf'))),
- # Route targets
- path('route-targets/', views.RouteTargetListView.as_view(), name='routetarget_list'),
- path('route-targets/add/', views.RouteTargetEditView.as_view(), name='routetarget_add'),
- path('route-targets/import/', views.RouteTargetBulkImportView.as_view(), name='routetarget_import'),
- path('route-targets/edit/', views.RouteTargetBulkEditView.as_view(), name='routetarget_bulk_edit'),
- path('route-targets/delete/', views.RouteTargetBulkDeleteView.as_view(), name='routetarget_bulk_delete'),
+ path('route-targets/', include(get_model_urls('ipam', 'routetarget', detail=False))),
path('route-targets//', include(get_model_urls('ipam', 'routetarget'))),
- # RIRs
- path('rirs/', views.RIRListView.as_view(), name='rir_list'),
- path('rirs/add/', views.RIREditView.as_view(), name='rir_add'),
- path('rirs/import/', views.RIRBulkImportView.as_view(), name='rir_import'),
- path('rirs/edit/', views.RIRBulkEditView.as_view(), name='rir_bulk_edit'),
- path('rirs/delete/', views.RIRBulkDeleteView.as_view(), name='rir_bulk_delete'),
+ path('rirs/', include(get_model_urls('ipam', 'rir', detail=False))),
path('rirs//', include(get_model_urls('ipam', 'rir'))),
- # Aggregates
- path('aggregates/', views.AggregateListView.as_view(), name='aggregate_list'),
- path('aggregates/add/', views.AggregateEditView.as_view(), name='aggregate_add'),
- path('aggregates/import/', views.AggregateBulkImportView.as_view(), name='aggregate_import'),
- path('aggregates/edit/', views.AggregateBulkEditView.as_view(), name='aggregate_bulk_edit'),
- path('aggregates/delete/', views.AggregateBulkDeleteView.as_view(), name='aggregate_bulk_delete'),
+ path('aggregates/', include(get_model_urls('ipam', 'aggregate', detail=False))),
path('aggregates//', include(get_model_urls('ipam', 'aggregate'))),
- # Roles
- path('roles/', views.RoleListView.as_view(), name='role_list'),
- path('roles/add/', views.RoleEditView.as_view(), name='role_add'),
- path('roles/import/', views.RoleBulkImportView.as_view(), name='role_import'),
- path('roles/edit/', views.RoleBulkEditView.as_view(), name='role_bulk_edit'),
- path('roles/delete/', views.RoleBulkDeleteView.as_view(), name='role_bulk_delete'),
+ path('roles/', include(get_model_urls('ipam', 'role', detail=False))),
path('roles//', include(get_model_urls('ipam', 'role'))),
- # Prefixes
- path('prefixes/', views.PrefixListView.as_view(), name='prefix_list'),
- path('prefixes/add/', views.PrefixEditView.as_view(), name='prefix_add'),
- path('prefixes/import/', views.PrefixBulkImportView.as_view(), name='prefix_import'),
- path('prefixes/edit/', views.PrefixBulkEditView.as_view(), name='prefix_bulk_edit'),
- path('prefixes/delete/', views.PrefixBulkDeleteView.as_view(), name='prefix_bulk_delete'),
+ path('prefixes/', include(get_model_urls('ipam', 'prefix', detail=False))),
path('prefixes//', include(get_model_urls('ipam', 'prefix'))),
- # IP ranges
- path('ip-ranges/', views.IPRangeListView.as_view(), name='iprange_list'),
- path('ip-ranges/add/', views.IPRangeEditView.as_view(), name='iprange_add'),
- path('ip-ranges/import/', views.IPRangeBulkImportView.as_view(), name='iprange_import'),
- path('ip-ranges/edit/', views.IPRangeBulkEditView.as_view(), name='iprange_bulk_edit'),
- path('ip-ranges/delete/', views.IPRangeBulkDeleteView.as_view(), name='iprange_bulk_delete'),
+ path('ip-ranges/', include(get_model_urls('ipam', 'iprange', detail=False))),
path('ip-ranges//', include(get_model_urls('ipam', 'iprange'))),
- # IP addresses
- path('ip-addresses/', views.IPAddressListView.as_view(), name='ipaddress_list'),
- path('ip-addresses/add/', views.IPAddressEditView.as_view(), name='ipaddress_add'),
- path('ip-addresses/bulk-add/', views.IPAddressBulkCreateView.as_view(), name='ipaddress_bulk_add'),
- path('ip-addresses/import/', views.IPAddressBulkImportView.as_view(), name='ipaddress_import'),
- path('ip-addresses/edit/', views.IPAddressBulkEditView.as_view(), name='ipaddress_bulk_edit'),
- path('ip-addresses/delete/', views.IPAddressBulkDeleteView.as_view(), name='ipaddress_bulk_delete'),
- path('ip-addresses/assign/', views.IPAddressAssignView.as_view(), name='ipaddress_assign'),
+ path('ip-addresses/', include(get_model_urls('ipam', 'ipaddress', detail=False))),
path('ip-addresses//', include(get_model_urls('ipam', 'ipaddress'))),
- # FHRP groups
- path('fhrp-groups/', views.FHRPGroupListView.as_view(), name='fhrpgroup_list'),
- path('fhrp-groups/add/', views.FHRPGroupEditView.as_view(), name='fhrpgroup_add'),
- path('fhrp-groups/import/', views.FHRPGroupBulkImportView.as_view(), name='fhrpgroup_import'),
- path('fhrp-groups/edit/', views.FHRPGroupBulkEditView.as_view(), name='fhrpgroup_bulk_edit'),
- path('fhrp-groups/delete/', views.FHRPGroupBulkDeleteView.as_view(), name='fhrpgroup_bulk_delete'),
+ path('fhrp-groups/', include(get_model_urls('ipam', 'fhrpgroup', detail=False))),
path('fhrp-groups//', include(get_model_urls('ipam', 'fhrpgroup'))),
- # FHRP group assignments
- path('fhrp-group-assignments/add/', views.FHRPGroupAssignmentEditView.as_view(), name='fhrpgroupassignment_add'),
+ path('fhrp-group-assignments/', include(get_model_urls('ipam', 'fhrpgroupassignment', detail=False))),
path('fhrp-group-assignments//', include(get_model_urls('ipam', 'fhrpgroupassignment'))),
- # VLAN groups
- path('vlan-groups/', views.VLANGroupListView.as_view(), name='vlangroup_list'),
- path('vlan-groups/add/', views.VLANGroupEditView.as_view(), name='vlangroup_add'),
- path('vlan-groups/import/', views.VLANGroupBulkImportView.as_view(), name='vlangroup_import'),
- path('vlan-groups/edit/', views.VLANGroupBulkEditView.as_view(), name='vlangroup_bulk_edit'),
- path('vlan-groups/delete/', views.VLANGroupBulkDeleteView.as_view(), name='vlangroup_bulk_delete'),
+ path('vlan-groups/', include(get_model_urls('ipam', 'vlangroup', detail=False))),
path('vlan-groups//', include(get_model_urls('ipam', 'vlangroup'))),
- # VLANs
- path('vlans/', views.VLANListView.as_view(), name='vlan_list'),
- path('vlans/add/', views.VLANEditView.as_view(), name='vlan_add'),
- path('vlans/import/', views.VLANBulkImportView.as_view(), name='vlan_import'),
- path('vlans/edit/', views.VLANBulkEditView.as_view(), name='vlan_bulk_edit'),
- path('vlans/delete/', views.VLANBulkDeleteView.as_view(), name='vlan_bulk_delete'),
+ path('vlans/', include(get_model_urls('ipam', 'vlan', detail=False))),
path('vlans//', include(get_model_urls('ipam', 'vlan'))),
- # Service templates
- path('service-templates/', views.ServiceTemplateListView.as_view(), name='servicetemplate_list'),
- path('service-templates/add/', views.ServiceTemplateEditView.as_view(), name='servicetemplate_add'),
- path('service-templates/import/', views.ServiceTemplateBulkImportView.as_view(), name='servicetemplate_import'),
- path('service-templates/edit/', views.ServiceTemplateBulkEditView.as_view(), name='servicetemplate_bulk_edit'),
- path('service-templates/delete/', views.ServiceTemplateBulkDeleteView.as_view(), name='servicetemplate_bulk_delete'),
+ path('vlan-translation-policies/', include(get_model_urls('ipam', 'vlantranslationpolicy', detail=False))),
+ path('vlan-translation-policies//', include(get_model_urls('ipam', 'vlantranslationpolicy'))),
+
+ path('vlan-translation-rules/', include(get_model_urls('ipam', 'vlantranslationrule', detail=False))),
+ path('vlan-translation-rules//', include(get_model_urls('ipam', 'vlantranslationrule'))),
+
+ path('service-templates/', include(get_model_urls('ipam', 'servicetemplate', detail=False))),
path('service-templates//', include(get_model_urls('ipam', 'servicetemplate'))),
- # Services
- path('services/', views.ServiceListView.as_view(), name='service_list'),
- path('services/add/', views.ServiceCreateView.as_view(), name='service_add'),
- path('services/import/', views.ServiceBulkImportView.as_view(), name='service_import'),
- path('services/edit/', views.ServiceBulkEditView.as_view(), name='service_bulk_edit'),
- path('services/delete/', views.ServiceBulkDeleteView.as_view(), name='service_bulk_delete'),
+ path('services/', include(get_model_urls('ipam', 'service', detail=False))),
path('services//', include(get_model_urls('ipam', 'service'))),
]
diff --git a/netbox/ipam/views.py b/netbox/ipam/views.py
index a2df4bcf2..c606c1088 100644
--- a/netbox/ipam/views.py
+++ b/netbox/ipam/views.py
@@ -9,6 +9,7 @@ from circuits.models import Provider
from dcim.filtersets import InterfaceFilterSet
from dcim.forms import InterfaceFilterForm
from dcim.models import Interface, Site
+from ipam.tables import VLANTranslationRuleTable
from netbox.views import generic
from tenancy.views import ObjectContactsView
from utilities.query import count_related
@@ -28,6 +29,7 @@ from .utils import add_requested_prefixes, add_available_ipaddresses, add_availa
# VRFs
#
+@register_model_view(VRF, 'list', path='', detail=False)
class VRFListView(generic.ObjectListView):
queryset = VRF.objects.all()
filterset = filtersets.VRFFilterSet
@@ -56,6 +58,7 @@ class VRFView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(VRF, 'add', detail=False)
@register_model_view(VRF, 'edit')
class VRFEditView(generic.ObjectEditView):
queryset = VRF.objects.all()
@@ -67,11 +70,13 @@ class VRFDeleteView(generic.ObjectDeleteView):
queryset = VRF.objects.all()
+@register_model_view(VRF, 'bulk_import', detail=False)
class VRFBulkImportView(generic.BulkImportView):
queryset = VRF.objects.all()
model_form = forms.VRFImportForm
+@register_model_view(VRF, 'bulk_edit', path='edit', detail=False)
class VRFBulkEditView(generic.BulkEditView):
queryset = VRF.objects.all()
filterset = filtersets.VRFFilterSet
@@ -79,6 +84,7 @@ class VRFBulkEditView(generic.BulkEditView):
form = forms.VRFBulkEditForm
+@register_model_view(VRF, 'bulk_delete', path='delete', detail=False)
class VRFBulkDeleteView(generic.BulkDeleteView):
queryset = VRF.objects.all()
filterset = filtersets.VRFFilterSet
@@ -89,6 +95,7 @@ class VRFBulkDeleteView(generic.BulkDeleteView):
# Route targets
#
+@register_model_view(RouteTarget, 'list', path='', detail=False)
class RouteTargetListView(generic.ObjectListView):
queryset = RouteTarget.objects.all()
filterset = filtersets.RouteTargetFilterSet
@@ -101,6 +108,7 @@ class RouteTargetView(generic.ObjectView):
queryset = RouteTarget.objects.all()
+@register_model_view(RouteTarget, 'add', detail=False)
@register_model_view(RouteTarget, 'edit')
class RouteTargetEditView(generic.ObjectEditView):
queryset = RouteTarget.objects.all()
@@ -112,11 +120,13 @@ class RouteTargetDeleteView(generic.ObjectDeleteView):
queryset = RouteTarget.objects.all()
+@register_model_view(RouteTarget, 'bulk_import', detail=False)
class RouteTargetBulkImportView(generic.BulkImportView):
queryset = RouteTarget.objects.all()
model_form = forms.RouteTargetImportForm
+@register_model_view(RouteTarget, 'bulk_edit', path='edit', detail=False)
class RouteTargetBulkEditView(generic.BulkEditView):
queryset = RouteTarget.objects.all()
filterset = filtersets.RouteTargetFilterSet
@@ -124,6 +134,7 @@ class RouteTargetBulkEditView(generic.BulkEditView):
form = forms.RouteTargetBulkEditForm
+@register_model_view(RouteTarget, 'bulk_delete', path='delete', detail=False)
class RouteTargetBulkDeleteView(generic.BulkDeleteView):
queryset = RouteTarget.objects.all()
filterset = filtersets.RouteTargetFilterSet
@@ -134,6 +145,7 @@ class RouteTargetBulkDeleteView(generic.BulkDeleteView):
# RIRs
#
+@register_model_view(RIR, 'list', path='', detail=False)
class RIRListView(generic.ObjectListView):
queryset = RIR.objects.annotate(
aggregate_count=count_related(Aggregate, 'rir')
@@ -153,6 +165,7 @@ class RIRView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(RIR, 'add', detail=False)
@register_model_view(RIR, 'edit')
class RIREditView(generic.ObjectEditView):
queryset = RIR.objects.all()
@@ -164,11 +177,13 @@ class RIRDeleteView(generic.ObjectDeleteView):
queryset = RIR.objects.all()
+@register_model_view(RIR, 'bulk_import', detail=False)
class RIRBulkImportView(generic.BulkImportView):
queryset = RIR.objects.all()
model_form = forms.RIRImportForm
+@register_model_view(RIR, 'bulk_edit', path='edit', detail=False)
class RIRBulkEditView(generic.BulkEditView):
queryset = RIR.objects.annotate(
aggregate_count=count_related(Aggregate, 'rir')
@@ -178,6 +193,7 @@ class RIRBulkEditView(generic.BulkEditView):
form = forms.RIRBulkEditForm
+@register_model_view(RIR, 'bulk_delete', path='delete', detail=False)
class RIRBulkDeleteView(generic.BulkDeleteView):
queryset = RIR.objects.annotate(
aggregate_count=count_related(Aggregate, 'rir')
@@ -190,6 +206,7 @@ class RIRBulkDeleteView(generic.BulkDeleteView):
# ASN ranges
#
+@register_model_view(ASNRange, 'list', path='', detail=False)
class ASNRangeListView(generic.ObjectListView):
queryset = ASNRange.objects.annotate_asn_counts()
filterset = filtersets.ASNRangeFilterSet
@@ -223,6 +240,7 @@ class ASNRangeASNsView(generic.ObjectChildrenView):
)
+@register_model_view(ASNRange, 'add', detail=False)
@register_model_view(ASNRange, 'edit')
class ASNRangeEditView(generic.ObjectEditView):
queryset = ASNRange.objects.all()
@@ -234,11 +252,13 @@ class ASNRangeDeleteView(generic.ObjectDeleteView):
queryset = ASNRange.objects.all()
+@register_model_view(ASNRange, 'bulk_import', detail=False)
class ASNRangeBulkImportView(generic.BulkImportView):
queryset = ASNRange.objects.all()
model_form = forms.ASNRangeImportForm
+@register_model_view(ASNRange, 'bulk_edit', path='edit', detail=False)
class ASNRangeBulkEditView(generic.BulkEditView):
queryset = ASNRange.objects.annotate_asn_counts()
filterset = filtersets.ASNRangeFilterSet
@@ -246,6 +266,7 @@ class ASNRangeBulkEditView(generic.BulkEditView):
form = forms.ASNRangeBulkEditForm
+@register_model_view(ASNRange, 'bulk_delete', path='delete', detail=False)
class ASNRangeBulkDeleteView(generic.BulkDeleteView):
queryset = ASNRange.objects.annotate_asn_counts()
filterset = filtersets.ASNRangeFilterSet
@@ -256,6 +277,7 @@ class ASNRangeBulkDeleteView(generic.BulkDeleteView):
# ASNs
#
+@register_model_view(ASN, 'list', path='', detail=False)
class ASNListView(generic.ObjectListView):
queryset = ASN.objects.annotate(
site_count=count_related(Site, 'asns'),
@@ -283,6 +305,7 @@ class ASNView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(ASN, 'add', detail=False)
@register_model_view(ASN, 'edit')
class ASNEditView(generic.ObjectEditView):
queryset = ASN.objects.all()
@@ -294,11 +317,13 @@ class ASNDeleteView(generic.ObjectDeleteView):
queryset = ASN.objects.all()
+@register_model_view(ASN, 'bulk_import', detail=False)
class ASNBulkImportView(generic.BulkImportView):
queryset = ASN.objects.all()
model_form = forms.ASNImportForm
+@register_model_view(ASN, 'bulk_edit', path='edit', detail=False)
class ASNBulkEditView(generic.BulkEditView):
queryset = ASN.objects.annotate(
site_count=count_related(Site, 'asns')
@@ -308,6 +333,7 @@ class ASNBulkEditView(generic.BulkEditView):
form = forms.ASNBulkEditForm
+@register_model_view(ASN, 'bulk_delete', path='delete', detail=False)
class ASNBulkDeleteView(generic.BulkDeleteView):
queryset = ASN.objects.annotate(
site_count=count_related(Site, 'asns')
@@ -320,6 +346,7 @@ class ASNBulkDeleteView(generic.BulkDeleteView):
# Aggregates
#
+@register_model_view(Aggregate, 'list', path='', detail=False)
class AggregateListView(generic.ObjectListView):
queryset = Aggregate.objects.annotate(
child_count=RawSQL('SELECT COUNT(*) FROM ipam_prefix WHERE ipam_prefix.prefix <<= ipam_aggregate.prefix', ())
@@ -352,7 +379,7 @@ class AggregatePrefixesView(generic.ObjectChildrenView):
def get_children(self, request, parent):
return Prefix.objects.restrict(request.user, 'view').filter(
prefix__net_contained_or_equal=str(parent.prefix)
- ).prefetch_related('site', 'role', 'tenant', 'tenant__group', 'vlan')
+ ).prefetch_related('scope', 'role', 'tenant', 'tenant__group', 'vlan')
def prep_table_data(self, request, queryset, parent):
# Determine whether to show assigned prefixes, available prefixes, or both
@@ -370,6 +397,7 @@ class AggregatePrefixesView(generic.ObjectChildrenView):
}
+@register_model_view(Aggregate, 'add', detail=False)
@register_model_view(Aggregate, 'edit')
class AggregateEditView(generic.ObjectEditView):
queryset = Aggregate.objects.all()
@@ -381,11 +409,13 @@ class AggregateDeleteView(generic.ObjectDeleteView):
queryset = Aggregate.objects.all()
+@register_model_view(Aggregate, 'bulk_import', detail=False)
class AggregateBulkImportView(generic.BulkImportView):
queryset = Aggregate.objects.all()
model_form = forms.AggregateImportForm
+@register_model_view(Aggregate, 'bulk_edit', path='edit', detail=False)
class AggregateBulkEditView(generic.BulkEditView):
queryset = Aggregate.objects.annotate(
child_count=RawSQL('SELECT COUNT(*) FROM ipam_prefix WHERE ipam_prefix.prefix <<= ipam_aggregate.prefix', ())
@@ -395,6 +425,7 @@ class AggregateBulkEditView(generic.BulkEditView):
form = forms.AggregateBulkEditForm
+@register_model_view(Aggregate, 'bulk_delete', path='delete', detail=False)
class AggregateBulkDeleteView(generic.BulkDeleteView):
queryset = Aggregate.objects.annotate(
child_count=RawSQL('SELECT COUNT(*) FROM ipam_prefix WHERE ipam_prefix.prefix <<= ipam_aggregate.prefix', ())
@@ -412,6 +443,7 @@ class AggregateContactsView(ObjectContactsView):
# Prefix/VLAN roles
#
+@register_model_view(Role, 'list', path='', detail=False)
class RoleListView(generic.ObjectListView):
queryset = Role.objects.annotate(
prefix_count=count_related(Prefix, 'role'),
@@ -433,6 +465,7 @@ class RoleView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(Role, 'add', detail=False)
@register_model_view(Role, 'edit')
class RoleEditView(generic.ObjectEditView):
queryset = Role.objects.all()
@@ -444,11 +477,13 @@ class RoleDeleteView(generic.ObjectDeleteView):
queryset = Role.objects.all()
+@register_model_view(Role, 'bulk_import', detail=False)
class RoleBulkImportView(generic.BulkImportView):
queryset = Role.objects.all()
model_form = forms.RoleImportForm
+@register_model_view(Role, 'bulk_edit', path='edit', detail=False)
class RoleBulkEditView(generic.BulkEditView):
queryset = Role.objects.all()
filterset = filtersets.RoleFilterSet
@@ -456,6 +491,7 @@ class RoleBulkEditView(generic.BulkEditView):
form = forms.RoleBulkEditForm
+@register_model_view(Role, 'bulk_delete', path='delete', detail=False)
class RoleBulkDeleteView(generic.BulkDeleteView):
queryset = Role.objects.all()
filterset = filtersets.RoleFilterSet
@@ -466,6 +502,7 @@ class RoleBulkDeleteView(generic.BulkDeleteView):
# Prefixes
#
+@register_model_view(Prefix, 'list', path='', detail=False)
class PrefixListView(generic.ObjectListView):
queryset = Prefix.objects.all()
filterset = filtersets.PrefixFilterSet
@@ -492,7 +529,7 @@ class PrefixView(generic.ObjectView):
).filter(
prefix__net_contains=str(instance.prefix)
).prefetch_related(
- 'site', 'role', 'tenant', 'vlan',
+ 'scope', 'role', 'tenant', 'vlan',
)
parent_prefix_table = tables.PrefixTable(
list(parent_prefixes),
@@ -506,7 +543,7 @@ class PrefixView(generic.ObjectView):
).exclude(
pk=instance.pk
).prefetch_related(
- 'site', 'role', 'tenant', 'vlan',
+ 'scope', 'role', 'tenant', 'vlan',
)
duplicate_prefix_table = tables.PrefixTable(
list(duplicate_prefixes),
@@ -538,7 +575,7 @@ class PrefixPrefixesView(generic.ObjectChildrenView):
def get_children(self, request, parent):
return parent.get_child_prefixes().restrict(request.user, 'view').prefetch_related(
- 'site', 'vrf', 'vlan', 'role', 'tenant', 'tenant__group'
+ 'scope', 'vrf', 'vlan', 'role', 'tenant', 'tenant__group'
)
def prep_table_data(self, request, queryset, parent):
@@ -614,6 +651,7 @@ class PrefixIPAddressesView(generic.ObjectChildrenView):
}
+@register_model_view(Prefix, 'add', detail=False)
@register_model_view(Prefix, 'edit')
class PrefixEditView(generic.ObjectEditView):
queryset = Prefix.objects.all()
@@ -625,11 +663,13 @@ class PrefixDeleteView(generic.ObjectDeleteView):
queryset = Prefix.objects.all()
+@register_model_view(Prefix, 'bulk_import', detail=False)
class PrefixBulkImportView(generic.BulkImportView):
queryset = Prefix.objects.all()
model_form = forms.PrefixImportForm
+@register_model_view(Prefix, 'bulk_edit', path='edit', detail=False)
class PrefixBulkEditView(generic.BulkEditView):
queryset = Prefix.objects.prefetch_related('vrf__tenant')
filterset = filtersets.PrefixFilterSet
@@ -637,6 +677,7 @@ class PrefixBulkEditView(generic.BulkEditView):
form = forms.PrefixBulkEditForm
+@register_model_view(Prefix, 'bulk_delete', path='delete', detail=False)
class PrefixBulkDeleteView(generic.BulkDeleteView):
queryset = Prefix.objects.prefetch_related('vrf__tenant')
filterset = filtersets.PrefixFilterSet
@@ -652,6 +693,7 @@ class PrefixContactsView(ObjectContactsView):
# IP Ranges
#
+@register_model_view(IPRange, 'list', path='', detail=False)
class IPRangeListView(generic.ObjectListView):
queryset = IPRange.objects.all()
filterset = filtersets.IPRangeFilterSet
@@ -671,7 +713,7 @@ class IPRangeView(generic.ObjectView):
Q(prefix__net_contains_or_equals=str(instance.end_address.ip)),
vrf=instance.vrf
).prefetch_related(
- 'site', 'role', 'tenant', 'vlan', 'role'
+ 'scope', 'role', 'tenant', 'vlan', 'role'
)
parent_prefixes_table = tables.PrefixTable(
list(parent_prefixes),
@@ -703,6 +745,7 @@ class IPRangeIPAddressesView(generic.ObjectChildrenView):
return parent.get_child_ips().restrict(request.user, 'view')
+@register_model_view(IPRange, 'add', detail=False)
@register_model_view(IPRange, 'edit')
class IPRangeEditView(generic.ObjectEditView):
queryset = IPRange.objects.all()
@@ -714,11 +757,13 @@ class IPRangeDeleteView(generic.ObjectDeleteView):
queryset = IPRange.objects.all()
+@register_model_view(IPRange, 'bulk_import', detail=False)
class IPRangeBulkImportView(generic.BulkImportView):
queryset = IPRange.objects.all()
model_form = forms.IPRangeImportForm
+@register_model_view(IPRange, 'bulk_edit', path='edit', detail=False)
class IPRangeBulkEditView(generic.BulkEditView):
queryset = IPRange.objects.all()
filterset = filtersets.IPRangeFilterSet
@@ -726,6 +771,7 @@ class IPRangeBulkEditView(generic.BulkEditView):
form = forms.IPRangeBulkEditForm
+@register_model_view(IPRange, 'bulk_delete', path='delete', detail=False)
class IPRangeBulkDeleteView(generic.BulkDeleteView):
queryset = IPRange.objects.all()
filterset = filtersets.IPRangeFilterSet
@@ -741,6 +787,7 @@ class IPRangeContactsView(ObjectContactsView):
# IP addresses
#
+@register_model_view(IPAddress, 'list', path='', detail=False)
class IPAddressListView(generic.ObjectListView):
queryset = IPAddress.objects.all()
filterset = filtersets.IPAddressFilterSet
@@ -758,7 +805,7 @@ class IPAddressView(generic.ObjectView):
vrf=instance.vrf,
prefix__net_contains_or_equals=str(instance.address.ip)
).prefetch_related(
- 'site', 'role'
+ 'scope', 'role'
)
parent_prefixes_table = tables.PrefixTable(
list(parent_prefixes),
@@ -787,6 +834,7 @@ class IPAddressView(generic.ObjectView):
}
+@register_model_view(IPAddress, 'add', detail=False)
@register_model_view(IPAddress, 'edit')
class IPAddressEditView(generic.ObjectEditView):
queryset = IPAddress.objects.all()
@@ -817,6 +865,7 @@ class IPAddressEditView(generic.ObjectEditView):
# TODO: Standardize or remove this view
+@register_model_view(IPAddress, 'assign', path='assign', detail=False)
class IPAddressAssignView(generic.ObjectView):
"""
Search for IPAddresses to be assigned to an Interface.
@@ -861,6 +910,7 @@ class IPAddressDeleteView(generic.ObjectDeleteView):
queryset = IPAddress.objects.all()
+@register_model_view(IPAddress, 'bulk_add', path='bulk-add', detail=False)
class IPAddressBulkCreateView(generic.BulkCreateView):
queryset = IPAddress.objects.all()
form = forms.IPAddressBulkCreateForm
@@ -869,11 +919,13 @@ class IPAddressBulkCreateView(generic.BulkCreateView):
template_name = 'ipam/ipaddress_bulk_add.html'
+@register_model_view(IPAddress, 'bulk_import', detail=False)
class IPAddressBulkImportView(generic.BulkImportView):
queryset = IPAddress.objects.all()
model_form = forms.IPAddressImportForm
+@register_model_view(IPAddress, 'bulk_edit', path='edit', detail=False)
class IPAddressBulkEditView(generic.BulkEditView):
queryset = IPAddress.objects.prefetch_related('vrf__tenant')
filterset = filtersets.IPAddressFilterSet
@@ -881,6 +933,7 @@ class IPAddressBulkEditView(generic.BulkEditView):
form = forms.IPAddressBulkEditForm
+@register_model_view(IPAddress, 'bulk_delete', path='delete', detail=False)
class IPAddressBulkDeleteView(generic.BulkDeleteView):
queryset = IPAddress.objects.prefetch_related('vrf__tenant')
filterset = filtersets.IPAddressFilterSet
@@ -914,6 +967,7 @@ class IPAddressContactsView(ObjectContactsView):
# VLAN groups
#
+@register_model_view(VLANGroup, 'list', path='', detail=False)
class VLANGroupListView(generic.ObjectListView):
queryset = VLANGroup.objects.annotate_utilization()
filterset = filtersets.VLANGroupFilterSet
@@ -931,6 +985,7 @@ class VLANGroupView(GetRelatedModelsMixin, generic.ObjectView):
}
+@register_model_view(VLANGroup, 'add', detail=False)
@register_model_view(VLANGroup, 'edit')
class VLANGroupEditView(generic.ObjectEditView):
queryset = VLANGroup.objects.all()
@@ -942,11 +997,13 @@ class VLANGroupDeleteView(generic.ObjectDeleteView):
queryset = VLANGroup.objects.all()
+@register_model_view(VLANGroup, 'bulk_import', detail=False)
class VLANGroupBulkImportView(generic.BulkImportView):
queryset = VLANGroup.objects.all()
model_form = forms.VLANGroupImportForm
+@register_model_view(VLANGroup, 'bulk_edit', path='edit', detail=False)
class VLANGroupBulkEditView(generic.BulkEditView):
queryset = VLANGroup.objects.annotate_utilization().prefetch_related('tags')
filterset = filtersets.VLANGroupFilterSet
@@ -954,6 +1011,7 @@ class VLANGroupBulkEditView(generic.BulkEditView):
form = forms.VLANGroupBulkEditForm
+@register_model_view(VLANGroup, 'bulk_delete', path='delete', detail=False)
class VLANGroupBulkDeleteView(generic.BulkDeleteView):
queryset = VLANGroup.objects.annotate_utilization().prefetch_related('tags')
filterset = filtersets.VLANGroupFilterSet
@@ -986,10 +1044,127 @@ class VLANGroupVLANsView(generic.ObjectChildrenView):
return queryset
+#
+# VLAN Translation Policies
+#
+
+@register_model_view(VLANTranslationPolicy, 'list', path='', detail=False)
+class VLANTranslationPolicyListView(generic.ObjectListView):
+ queryset = VLANTranslationPolicy.objects.annotate(
+ rule_count=count_related(VLANTranslationRule, 'policy'),
+ )
+ filterset = filtersets.VLANTranslationPolicyFilterSet
+ filterset_form = forms.VLANTranslationPolicyFilterForm
+ table = tables.VLANTranslationPolicyTable
+
+
+@register_model_view(VLANTranslationPolicy)
+class VLANTranslationPolicyView(GetRelatedModelsMixin, generic.ObjectView):
+ queryset = VLANTranslationPolicy.objects.all()
+
+ def get_extra_context(self, request, instance):
+ vlan_translation_table = VLANTranslationRuleTable(
+ data=instance.rules.all(),
+ orderable=False
+ )
+ return {
+ 'vlan_translation_table': vlan_translation_table,
+ }
+
+
+@register_model_view(VLANTranslationPolicy, 'add', detail=False)
+@register_model_view(VLANTranslationPolicy, 'edit')
+class VLANTranslationPolicyEditView(generic.ObjectEditView):
+ queryset = VLANTranslationPolicy.objects.all()
+ form = forms.VLANTranslationPolicyForm
+
+
+@register_model_view(VLANTranslationPolicy, 'delete')
+class VLANTranslationPolicyDeleteView(generic.ObjectDeleteView):
+ queryset = VLANTranslationPolicy.objects.all()
+
+
+@register_model_view(VLANTranslationPolicy, 'bulk_import', detail=False)
+class VLANTranslationPolicyBulkImportView(generic.BulkImportView):
+ queryset = VLANTranslationPolicy.objects.all()
+ model_form = forms.VLANTranslationPolicyImportForm
+
+
+@register_model_view(VLANTranslationPolicy, 'bulk_edit', path='edit', detail=False)
+class VLANTranslationPolicyBulkEditView(generic.BulkEditView):
+ queryset = VLANTranslationPolicy.objects.all()
+ filterset = filtersets.VLANTranslationPolicyFilterSet
+ table = tables.VLANTranslationPolicyTable
+ form = forms.VLANTranslationPolicyBulkEditForm
+
+
+@register_model_view(VLANTranslationPolicy, 'bulk_delete', path='delete', detail=False)
+class VLANTranslationPolicyBulkDeleteView(generic.BulkDeleteView):
+ queryset = VLANTranslationPolicy.objects.all()
+ filterset = filtersets.VLANTranslationPolicyFilterSet
+ table = tables.VLANTranslationPolicyTable
+
+
+#
+# VLAN Translation Rules
+#
+
+@register_model_view(VLANTranslationRule, 'list', path='', detail=False)
+class VLANTranslationRuleListView(generic.ObjectListView):
+ queryset = VLANTranslationRule.objects.all()
+ filterset = filtersets.VLANTranslationRuleFilterSet
+ filterset_form = forms.VLANTranslationRuleFilterForm
+ table = tables.VLANTranslationRuleTable
+
+
+@register_model_view(VLANTranslationRule)
+class VLANTranslationRuleView(GetRelatedModelsMixin, generic.ObjectView):
+ queryset = VLANTranslationRule.objects.all()
+
+ def get_extra_context(self, request, instance):
+ return {
+ 'related_models': self.get_related_models(request, instance),
+ }
+
+
+@register_model_view(VLANTranslationRule, 'add', detail=False)
+@register_model_view(VLANTranslationRule, 'edit')
+class VLANTranslationRuleEditView(generic.ObjectEditView):
+ queryset = VLANTranslationRule.objects.all()
+ form = forms.VLANTranslationRuleForm
+
+
+@register_model_view(VLANTranslationRule, 'delete')
+class VLANTranslationRuleDeleteView(generic.ObjectDeleteView):
+ queryset = VLANTranslationRule.objects.all()
+
+
+@register_model_view(VLANTranslationRule, 'bulk_import', detail=False)
+class VLANTranslationRuleBulkImportView(generic.BulkImportView):
+ queryset = VLANTranslationRule.objects.all()
+ model_form = forms.VLANTranslationRuleImportForm
+
+
+@register_model_view(VLANTranslationRule, 'bulk_edit', path='edit', detail=False)
+class VLANTranslationRuleBulkEditView(generic.BulkEditView):
+ queryset = VLANTranslationRule.objects.all()
+ filterset = filtersets.VLANTranslationRuleFilterSet
+ table = tables.VLANTranslationRuleTable
+ form = forms.VLANTranslationRuleBulkEditForm
+
+
+@register_model_view(VLANTranslationRule, 'bulk_delete', path='delete', detail=False)
+class VLANTranslationRuleBulkDeleteView(generic.BulkDeleteView):
+ queryset = VLANTranslationRule.objects.all()
+ filterset = filtersets.VLANTranslationRuleFilterSet
+ table = tables.VLANTranslationRuleTable
+
+
#
# FHRP groups
#
+@register_model_view(FHRPGroup, 'list', path='', detail=False)
class FHRPGroupListView(generic.ObjectListView):
queryset = FHRPGroup.objects.annotate(
member_count=count_related(FHRPGroupAssignment, 'group')
@@ -1017,6 +1192,7 @@ class FHRPGroupView(generic.ObjectView):
}
+@register_model_view(FHRPGroup, 'add', detail=False)
@register_model_view(FHRPGroup, 'edit')
class FHRPGroupEditView(generic.ObjectEditView):
queryset = FHRPGroup.objects.all()
@@ -1044,11 +1220,13 @@ class FHRPGroupDeleteView(generic.ObjectDeleteView):
queryset = FHRPGroup.objects.all()
+@register_model_view(FHRPGroup, 'bulk_import', detail=False)
class FHRPGroupBulkImportView(generic.BulkImportView):
queryset = FHRPGroup.objects.all()
model_form = forms.FHRPGroupImportForm
+@register_model_view(FHRPGroup, 'bulk_edit', path='edit', detail=False)
class FHRPGroupBulkEditView(generic.BulkEditView):
queryset = FHRPGroup.objects.all()
filterset = filtersets.FHRPGroupFilterSet
@@ -1056,6 +1234,7 @@ class FHRPGroupBulkEditView(generic.BulkEditView):
form = forms.FHRPGroupBulkEditForm
+@register_model_view(FHRPGroup, 'bulk_delete', path='delete', detail=False)
class FHRPGroupBulkDeleteView(generic.BulkDeleteView):
queryset = FHRPGroup.objects.all()
filterset = filtersets.FHRPGroupFilterSet
@@ -1066,6 +1245,7 @@ class FHRPGroupBulkDeleteView(generic.BulkDeleteView):
# FHRP group assignments
#
+@register_model_view(FHRPGroupAssignment, 'add', detail=False)
@register_model_view(FHRPGroupAssignment, 'edit')
class FHRPGroupAssignmentEditView(generic.ObjectEditView):
queryset = FHRPGroupAssignment.objects.all()
@@ -1094,6 +1274,7 @@ class FHRPGroupAssignmentDeleteView(generic.ObjectDeleteView):
# VLANs
#
+@register_model_view(VLAN, 'list', path='', detail=False)
class VLANListView(generic.ObjectListView):
queryset = VLAN.objects.all()
filterset = filtersets.VLANFilterSet
@@ -1107,7 +1288,7 @@ class VLANView(generic.ObjectView):
def get_extra_context(self, request, instance):
prefixes = Prefix.objects.restrict(request.user, 'view').filter(vlan=instance).prefetch_related(
- 'vrf', 'site', 'role', 'tenant'
+ 'vrf', 'scope', 'role', 'tenant'
)
prefix_table = tables.PrefixTable(list(prefixes), exclude=('vlan', 'utilization'), orderable=False)
@@ -1152,6 +1333,7 @@ class VLANVMInterfacesView(generic.ObjectChildrenView):
return parent.get_vminterfaces().restrict(request.user, 'view')
+@register_model_view(VLAN, 'add', detail=False)
@register_model_view(VLAN, 'edit')
class VLANEditView(generic.ObjectEditView):
queryset = VLAN.objects.all()
@@ -1164,11 +1346,13 @@ class VLANDeleteView(generic.ObjectDeleteView):
queryset = VLAN.objects.all()
+@register_model_view(VLAN, 'bulk_import', detail=False)
class VLANBulkImportView(generic.BulkImportView):
queryset = VLAN.objects.all()
model_form = forms.VLANImportForm
+@register_model_view(VLAN, 'bulk_edit', path='edit', detail=False)
class VLANBulkEditView(generic.BulkEditView):
queryset = VLAN.objects.all()
filterset = filtersets.VLANFilterSet
@@ -1176,6 +1360,7 @@ class VLANBulkEditView(generic.BulkEditView):
form = forms.VLANBulkEditForm
+@register_model_view(VLAN, 'bulk_delete', path='delete', detail=False)
class VLANBulkDeleteView(generic.BulkDeleteView):
queryset = VLAN.objects.all()
filterset = filtersets.VLANFilterSet
@@ -1186,6 +1371,7 @@ class VLANBulkDeleteView(generic.BulkDeleteView):
# Service templates
#
+@register_model_view(ServiceTemplate, 'list', path='', detail=False)
class ServiceTemplateListView(generic.ObjectListView):
queryset = ServiceTemplate.objects.all()
filterset = filtersets.ServiceTemplateFilterSet
@@ -1198,6 +1384,7 @@ class ServiceTemplateView(generic.ObjectView):
queryset = ServiceTemplate.objects.all()
+@register_model_view(ServiceTemplate, 'add', detail=False)
@register_model_view(ServiceTemplate, 'edit')
class ServiceTemplateEditView(generic.ObjectEditView):
queryset = ServiceTemplate.objects.all()
@@ -1209,11 +1396,13 @@ class ServiceTemplateDeleteView(generic.ObjectDeleteView):
queryset = ServiceTemplate.objects.all()
+@register_model_view(ServiceTemplate, 'bulk_import', detail=False)
class ServiceTemplateBulkImportView(generic.BulkImportView):
queryset = ServiceTemplate.objects.all()
model_form = forms.ServiceTemplateImportForm
+@register_model_view(ServiceTemplate, 'bulk_edit', path='edit', detail=False)
class ServiceTemplateBulkEditView(generic.BulkEditView):
queryset = ServiceTemplate.objects.all()
filterset = filtersets.ServiceTemplateFilterSet
@@ -1221,6 +1410,7 @@ class ServiceTemplateBulkEditView(generic.BulkEditView):
form = forms.ServiceTemplateBulkEditForm
+@register_model_view(ServiceTemplate, 'bulk_delete', path='delete', detail=False)
class ServiceTemplateBulkDeleteView(generic.BulkDeleteView):
queryset = ServiceTemplate.objects.all()
filterset = filtersets.ServiceTemplateFilterSet
@@ -1231,6 +1421,7 @@ class ServiceTemplateBulkDeleteView(generic.BulkDeleteView):
# Services
#
+@register_model_view(Service, 'list', path='', detail=False)
class ServiceListView(generic.ObjectListView):
queryset = Service.objects.prefetch_related('device', 'virtual_machine')
filterset = filtersets.ServiceFilterSet
@@ -1243,6 +1434,7 @@ class ServiceView(generic.ObjectView):
queryset = Service.objects.all()
+@register_model_view(Service, 'add', detail=False)
class ServiceCreateView(generic.ObjectEditView):
queryset = Service.objects.all()
form = forms.ServiceCreateForm
@@ -1259,11 +1451,13 @@ class ServiceDeleteView(generic.ObjectDeleteView):
queryset = Service.objects.all()
+@register_model_view(Service, 'bulk_import', detail=False)
class ServiceBulkImportView(generic.BulkImportView):
queryset = Service.objects.all()
model_form = forms.ServiceImportForm
+@register_model_view(Service, 'bulk_edit', path='edit', detail=False)
class ServiceBulkEditView(generic.BulkEditView):
queryset = Service.objects.prefetch_related('device', 'virtual_machine')
filterset = filtersets.ServiceFilterSet
@@ -1271,6 +1465,7 @@ class ServiceBulkEditView(generic.BulkEditView):
form = forms.ServiceBulkEditForm
+@register_model_view(Service, 'bulk_delete', path='delete', detail=False)
class ServiceBulkDeleteView(generic.BulkDeleteView):
queryset = Service.objects.prefetch_related('device', 'virtual_machine')
filterset = filtersets.ServiceFilterSet
diff --git a/netbox/netbox/admin.py b/netbox/netbox/admin.py
deleted file mode 100644
index cdfacc141..000000000
--- a/netbox/netbox/admin.py
+++ /dev/null
@@ -1,14 +0,0 @@
-from django.conf import settings
-from django.contrib.admin import site as admin_site
-from taggit.models import Tag
-
-
-# Override default AdminSite attributes so we can avoid creating and
-# registering our own class
-admin_site.site_header = 'NetBox Administration'
-admin_site.site_title = 'NetBox'
-admin_site.site_url = '/{}'.format(settings.BASE_PATH)
-admin_site.index_template = 'admin/index.html'
-
-# Unregister the unused stock Tag model provided by django-taggit
-admin_site.unregister(Tag)
diff --git a/netbox/netbox/api/pagination.py b/netbox/netbox/api/pagination.py
index 5ecade264..f1430a9fd 100644
--- a/netbox/netbox/api/pagination.py
+++ b/netbox/netbox/api/pagination.py
@@ -38,12 +38,14 @@ class OptionalLimitOffsetPagination(LimitOffsetPagination):
def get_limit(self, request):
if self.limit_query_param:
+ MAX_PAGE_SIZE = get_config().MAX_PAGE_SIZE
+ if MAX_PAGE_SIZE:
+ MAX_PAGE_SIZE = max(MAX_PAGE_SIZE, self.default_limit)
try:
limit = int(request.query_params[self.limit_query_param])
if limit < 0:
raise ValueError()
# Enforce maximum page size, if defined
- MAX_PAGE_SIZE = get_config().MAX_PAGE_SIZE
if MAX_PAGE_SIZE:
return MAX_PAGE_SIZE if limit == 0 else min(limit, MAX_PAGE_SIZE)
return limit
@@ -83,3 +85,28 @@ class StripCountAnnotationsPaginator(OptionalLimitOffsetPagination):
cloned_queryset.query.annotations.clear()
return cloned_queryset.count()
+
+
+class LimitOffsetListPagination(LimitOffsetPagination):
+ """
+ DRF LimitOffset Paginator but for list instead of queryset
+ """
+ count = 0
+ offset = 0
+
+ def paginate_list(self, data, request, view=None):
+ self.request = request
+ self.limit = self.get_limit(request)
+ self.count = len(data)
+ self.offset = self.get_offset(request)
+
+ if self.limit is None:
+ self.limit = self.count
+
+ if self.count == 0 or self.offset > self.count:
+ return []
+
+ if self.count > self.limit and self.template is not None:
+ self.display_page_controls = True
+
+ return data[self.offset:self.offset + self.limit]
diff --git a/netbox/netbox/api/serializers/base.py b/netbox/netbox/api/serializers/base.py
index 8115fe020..6cd4e5738 100644
--- a/netbox/netbox/api/serializers/base.py
+++ b/netbox/netbox/api/serializers/base.py
@@ -76,6 +76,12 @@ class ValidatedModelSerializer(BaseModelSerializer):
Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
"""
+
+ # Bypass DRF's built-in validation of unique constraints due to DRF bug #9410. Rely instead
+ # on our own custom model validation (below).
+ def get_unique_together_constraints(self, model):
+ return []
+
def validate(self, data):
# Skip validation if we're being used to represent a nested object
diff --git a/netbox/netbox/authentication/__init__.py b/netbox/netbox/authentication/__init__.py
index 7c2df4200..83f699e42 100644
--- a/netbox/netbox/authentication/__init__.py
+++ b/netbox/netbox/authentication/__init__.py
@@ -107,7 +107,7 @@ class ObjectPermissionMixin:
return perms
def has_perm(self, user_obj, perm, obj=None):
- app_label, action, model_name = resolve_permission(perm)
+ app_label, __, model_name = resolve_permission(perm)
# Superusers implicitly have all permissions
if user_obj.is_active and user_obj.is_superuser:
diff --git a/netbox/netbox/choices.py b/netbox/netbox/choices.py
index 4fd730255..5c3110745 100644
--- a/netbox/netbox/choices.py
+++ b/netbox/netbox/choices.py
@@ -7,8 +7,10 @@ __all__ = (
'ButtonColorChoices',
'ColorChoices',
'CSVDelimiterChoices',
+ 'DistanceUnitChoices',
'ImportFormatChoices',
'ImportMethodChoices',
+ 'WeightUnitChoices',
)
@@ -157,3 +159,39 @@ class CSVDelimiterChoices(ChoiceSet):
(SEMICOLON, _('Semicolon')),
(TAB, _('Tab')),
]
+
+
+class DistanceUnitChoices(ChoiceSet):
+
+ # Metric
+ UNIT_KILOMETER = 'km'
+ UNIT_METER = 'm'
+
+ # Imperial
+ UNIT_MILE = 'mi'
+ UNIT_FOOT = 'ft'
+
+ CHOICES = (
+ (UNIT_KILOMETER, _('Kilometers')),
+ (UNIT_METER, _('Meters')),
+ (UNIT_MILE, _('Miles')),
+ (UNIT_FOOT, _('Feet')),
+ )
+
+
+class WeightUnitChoices(ChoiceSet):
+
+ # Metric
+ UNIT_KILOGRAM = 'kg'
+ UNIT_GRAM = 'g'
+
+ # Imperial
+ UNIT_POUND = 'lb'
+ UNIT_OUNCE = 'oz'
+
+ CHOICES = (
+ (UNIT_KILOGRAM, _('Kilograms')),
+ (UNIT_GRAM, _('Grams')),
+ (UNIT_POUND, _('Pounds')),
+ (UNIT_OUNCE, _('Ounces')),
+ )
diff --git a/netbox/netbox/configuration_testing.py b/netbox/netbox/configuration_testing.py
index 346cd89d2..cec05cabb 100644
--- a/netbox/netbox/configuration_testing.py
+++ b/netbox/netbox/configuration_testing.py
@@ -39,8 +39,6 @@ REDIS = {
SECRET_KEY = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
-DJANGO_ADMIN_ENABLED = True
-
DEFAULT_PERMISSIONS = {}
LOGGING = {
diff --git a/netbox/netbox/constants.py b/netbox/netbox/constants.py
index b8c679ec0..8d20fed45 100644
--- a/netbox/netbox/constants.py
+++ b/netbox/netbox/constants.py
@@ -31,8 +31,8 @@ ADVISORY_LOCK_KEYS = {
# Default view action permission mapping
DEFAULT_ACTION_PERMISSIONS = {
'add': {'add'},
- 'import': {'add'},
'export': {'view'},
+ 'bulk_import': {'add'},
'bulk_edit': {'change'},
'bulk_delete': {'delete'},
}
diff --git a/netbox/netbox/context_managers.py b/netbox/netbox/context_managers.py
index ca434df82..7b01cce94 100644
--- a/netbox/netbox/context_managers.py
+++ b/netbox/netbox/context_managers.py
@@ -1,9 +1,11 @@
from contextlib import contextmanager
from netbox.context import current_request, events_queue
+from netbox.utils import register_request_processor
from extras.events import flush_events
+@register_request_processor
@contextmanager
def event_tracking(request):
"""
diff --git a/netbox/netbox/filtersets.py b/netbox/netbox/filtersets.py
index 637a40bf1..b8fbe7ad5 100644
--- a/netbox/netbox/filtersets.py
+++ b/netbox/netbox/filtersets.py
@@ -179,6 +179,8 @@ class BaseFilterSet(django_filters.FilterSet):
# The filter field has been explicitly defined on the filterset class so we must manually
# create the new filter with the same type because there is no guarantee the defined type
# is the same as the default type for the field
+ if field is None:
+ raise ValueError('Invalid field name/lookup on {}: {}'.format(existing_filter_name, field_name))
resolve_field(field, lookup_expr) # Will raise FieldLookupError if the lookup is invalid
filter_cls = type(existing_filter)
if lookup_expr == 'empty':
@@ -262,7 +264,9 @@ class ChangeLoggedModelFilterSet(BaseFilterSet):
action = {
'created_by_request': Q(action=ObjectChangeActionChoices.ACTION_CREATE),
'updated_by_request': Q(action=ObjectChangeActionChoices.ACTION_UPDATE),
- 'modified_by_request': Q(action__in=[ObjectChangeActionChoices.ACTION_CREATE, ObjectChangeActionChoices.ACTION_UPDATE]),
+ 'modified_by_request': Q(
+ action__in=[ObjectChangeActionChoices.ACTION_CREATE, ObjectChangeActionChoices.ACTION_UPDATE]
+ ),
}.get(name)
request_id = value
pks = ObjectChange.objects.filter(
diff --git a/netbox/netbox/jobs.py b/netbox/netbox/jobs.py
index ae8f2f109..3af3af554 100644
--- a/netbox/netbox/jobs.py
+++ b/netbox/netbox/jobs.py
@@ -2,6 +2,7 @@ import logging
from abc import ABC, abstractmethod
from datetime import timedelta
+from django.core.exceptions import ImproperlyConfigured
from django.utils.functional import classproperty
from django_pglocks import advisory_lock
from rq.timeouts import JobTimeoutException
@@ -9,12 +10,30 @@ from rq.timeouts import JobTimeoutException
from core.choices import JobStatusChoices
from core.models import Job, ObjectType
from netbox.constants import ADVISORY_LOCK_KEYS
+from netbox.registry import registry
__all__ = (
'JobRunner',
+ 'system_job',
)
+def system_job(interval):
+ """
+ Decorator for registering a `JobRunner` class as system background job.
+ """
+ if type(interval) is not int:
+ raise ImproperlyConfigured("System job interval must be an integer (minutes).")
+
+ def _wrapper(cls):
+ registry['system_jobs'][cls] = {
+ 'interval': interval
+ }
+ return cls
+
+ return _wrapper
+
+
class JobRunner(ABC):
"""
Background Job helper class.
@@ -72,6 +91,7 @@ class JobRunner(ABC):
kwargs["job_timeout"] = job.object.python_class.job_timeout
cls.enqueue(
instance=job.object,
+ name=job.name,
user=job.user,
schedule_at=new_scheduled_time,
interval=job.interval,
@@ -129,7 +149,7 @@ class JobRunner(ABC):
if job:
# If the job parameters haven't changed, don't schedule a new job and keep the current schedule. Otherwise,
# delete the existing job and schedule a new job instead.
- if (schedule_at and job.scheduled == schedule_at) and (job.interval == interval):
+ if (not schedule_at or job.scheduled == schedule_at) and (job.interval == interval):
return job
job.delete()
diff --git a/netbox/netbox/middleware.py b/netbox/netbox/middleware.py
index 8012965a4..b9424bd7c 100644
--- a/netbox/netbox/middleware.py
+++ b/netbox/netbox/middleware.py
@@ -1,3 +1,5 @@
+from contextlib import ExitStack
+
import logging
import uuid
@@ -10,7 +12,7 @@ from django.db.utils import InternalError
from django.http import Http404, HttpResponseRedirect
from netbox.config import clear_config, get_config
-from netbox.context_managers import event_tracking
+from netbox.registry import registry
from netbox.views import handler_500
from utilities.api import is_api_request
from utilities.error_handlers import handle_rest_api_exception
@@ -32,8 +34,10 @@ class CoreMiddleware:
# Assign a random unique ID to the request. This will be used for change logging.
request.id = uuid.uuid4()
- # Enable the event_tracking context manager and process the request.
- with event_tracking(request):
+ # Apply all registered request processors
+ with ExitStack() as stack:
+ for request_processor in registry['request_processors']:
+ stack.enter_context(request_processor(request))
response = self.get_response(request)
# Check if language cookie should be renewed
diff --git a/netbox/netbox/models/__init__.py b/netbox/netbox/models/__init__.py
index aea5f00cc..b1f7cfd48 100644
--- a/netbox/netbox/models/__init__.py
+++ b/netbox/netbox/models/__init__.py
@@ -3,6 +3,7 @@ from django.contrib.contenttypes.fields import GenericForeignKey
from django.core.exceptions import ObjectDoesNotExist
from django.core.validators import ValidationError
from django.db import models
+from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from mptt.models import MPTTModel, TreeForeignKey
@@ -40,6 +41,9 @@ class NetBoxFeatureSet(
def docs_url(self):
return f'{settings.STATIC_URL}docs/models/{self._meta.app_label}/{self._meta.model_name}/'
+ def get_absolute_url(self):
+ return reverse(f'{self._meta.app_label}:{self._meta.model_name}', args=[self.pk])
+
#
# Base model classes
diff --git a/netbox/netbox/models/mixins.py b/netbox/netbox/models/mixins.py
new file mode 100644
index 000000000..dc706c7c2
--- /dev/null
+++ b/netbox/netbox/models/mixins.py
@@ -0,0 +1,99 @@
+from django.core.exceptions import ValidationError
+from django.db import models
+from django.utils.translation import gettext_lazy as _
+from netbox.choices import *
+from utilities.conversion import to_grams, to_meters
+
+__all__ = (
+ 'DistanceMixin',
+ 'WeightMixin',
+)
+
+
+class WeightMixin(models.Model):
+ weight = models.DecimalField(
+ verbose_name=_('weight'),
+ max_digits=8,
+ decimal_places=2,
+ blank=True,
+ null=True
+ )
+ weight_unit = models.CharField(
+ verbose_name=_('weight unit'),
+ max_length=50,
+ choices=WeightUnitChoices,
+ blank=True,
+ null=True,
+ )
+ # Stores the normalized weight (in grams) for database ordering
+ _abs_weight = models.PositiveBigIntegerField(
+ blank=True,
+ null=True
+ )
+
+ class Meta:
+ abstract = True
+
+ def save(self, *args, **kwargs):
+
+ # Store the given weight (if any) in grams for use in database ordering
+ if self.weight and self.weight_unit:
+ self._abs_weight = to_grams(self.weight, self.weight_unit)
+ else:
+ self._abs_weight = None
+
+ super().save(*args, **kwargs)
+
+ def clean(self):
+ super().clean()
+
+ # Validate weight and weight_unit
+ if self.weight and not self.weight_unit:
+ raise ValidationError(_("Must specify a unit when setting a weight"))
+
+
+class DistanceMixin(models.Model):
+ distance = models.DecimalField(
+ verbose_name=_('distance'),
+ max_digits=8,
+ decimal_places=2,
+ blank=True,
+ null=True
+ )
+ distance_unit = models.CharField(
+ verbose_name=_('distance unit'),
+ max_length=50,
+ choices=DistanceUnitChoices,
+ blank=True,
+ null=True,
+ )
+ # Stores the normalized distance (in meters) for database ordering
+ _abs_distance = models.DecimalField(
+ max_digits=10,
+ decimal_places=4,
+ blank=True,
+ null=True
+ )
+
+ class Meta:
+ abstract = True
+
+ def save(self, *args, **kwargs):
+ # Store the given distance (if any) in meters for use in database ordering
+ if self.distance is not None and self.distance_unit:
+ self._abs_distance = to_meters(self.distance, self.distance_unit)
+ else:
+ self._abs_distance = None
+
+ # Clear distance_unit if no distance is defined
+ if self.distance is None:
+ self.distance_unit = None
+
+ super().save(*args, **kwargs)
+
+ def clean(self):
+ super().clean()
+
+ # Validate distance and distance_unit
+ if self.distance and not self.distance_unit:
+ raise ValidationError(_("Must specify a unit when setting a distance"))
diff --git a/netbox/netbox/navigation/__init__.py b/netbox/netbox/navigation/__init__.py
index b4f7dbd9f..75ca8f440 100644
--- a/netbox/netbox/navigation/__init__.py
+++ b/netbox/netbox/navigation/__init__.py
@@ -60,7 +60,7 @@ class Menu:
# Utility functions
#
-def get_model_item(app_label, model_name, label, actions=('add', 'import')):
+def get_model_item(app_label, model_name, label, actions=('add', 'bulk_import')):
return MenuItem(
link=f'{app_label}:{model_name}_list',
link_text=label,
@@ -69,7 +69,7 @@ def get_model_item(app_label, model_name, label, actions=('add', 'import')):
)
-def get_model_buttons(app_label, model_name, actions=('add', 'import')):
+def get_model_buttons(app_label, model_name, actions=('add', 'bulk_import')):
buttons = []
if 'add' in actions:
@@ -81,10 +81,10 @@ def get_model_buttons(app_label, model_name, actions=('add', 'import')):
permissions=[f'{app_label}.add_{model_name}']
)
)
- if 'import' in actions:
+ if 'bulk_import' in actions:
buttons.append(
MenuItemButton(
- link=f'{app_label}:{model_name}_import',
+ link=f'{app_label}:{model_name}_bulk_import',
title='Import',
icon_class='mdi mdi-upload',
permissions=[f'{app_label}.add_{model_name}']
diff --git a/netbox/netbox/navigation/menu.py b/netbox/netbox/navigation/menu.py
index 9d8ffaaf8..9148caa8e 100644
--- a/netbox/netbox/navigation/menu.py
+++ b/netbox/netbox/navigation/menu.py
@@ -33,7 +33,7 @@ ORGANIZATION_MENU = Menu(
get_model_item('tenancy', 'contact', _('Contacts')),
get_model_item('tenancy', 'contactgroup', _('Contact Groups')),
get_model_item('tenancy', 'contactrole', _('Contact Roles')),
- get_model_item('tenancy', 'contactassignment', _('Contact Assignments'), actions=['import']),
+ get_model_item('tenancy', 'contactassignment', _('Contact Assignments'), actions=['bulk_import']),
),
),
),
@@ -104,6 +104,12 @@ DEVICES_MENU = Menu(
get_model_item('dcim', 'inventoryitemrole', _('Inventory Item Roles')),
),
),
+ MenuGroup(
+ label=_('Addressing'),
+ items=(
+ get_model_item('dcim', 'macaddress', _('MAC Addresses')),
+ ),
+ ),
),
)
@@ -194,6 +200,8 @@ IPAM_MENU = Menu(
items=(
get_model_item('ipam', 'vlan', _('VLANs')),
get_model_item('ipam', 'vlangroup', _('VLAN Groups')),
+ get_model_item('ipam', 'vlantranslationpolicy', _('VLAN Translation Policies')),
+ get_model_item('ipam', 'vlantranslationrule', _('VLAN Translation Rules')),
),
),
MenuGroup(
@@ -271,9 +279,22 @@ CIRCUITS_MENU = Menu(
items=(
get_model_item('circuits', 'circuit', _('Circuits')),
get_model_item('circuits', 'circuittype', _('Circuit Types')),
+ get_model_item('circuits', 'circuittermination', _('Circuit Terminations')),
+ ),
+ ),
+ MenuGroup(
+ label=_('Virtual Circuits'),
+ items=(
+ get_model_item('circuits', 'virtualcircuit', _('Virtual Circuits')),
+ get_model_item('circuits', 'virtualcircuittype', _('Virtual Circuit Types')),
+ get_model_item('circuits', 'virtualcircuittermination', _('Virtual Circuit Terminations')),
+ ),
+ ),
+ MenuGroup(
+ label=_('Groups'),
+ items=(
get_model_item('circuits', 'circuitgroup', _('Circuit Groups')),
get_model_item('circuits', 'circuitgroupassignment', _('Group Assignments')),
- get_model_item('circuits', 'circuittermination', _('Circuit Terminations')),
),
),
MenuGroup(
@@ -371,7 +392,7 @@ OPERATIONS_MENU = Menu(
label=_('Logging'),
items=(
get_model_item('extras', 'notificationgroup', _('Notification Groups')),
- get_model_item('extras', 'journalentry', _('Journal Entries'), actions=['import']),
+ get_model_item('extras', 'journalentry', _('Journal Entries'), actions=['bulk_import']),
get_model_item('core', 'objectchange', _('Change Log'), actions=[]),
),
),
@@ -398,7 +419,7 @@ ADMIN_MENU = Menu(
permissions=['users.add_user']
),
MenuItemButton(
- link='users:user_import',
+ link='users:user_bulk_import',
title='Import',
icon_class='mdi mdi-upload',
permissions=['users.add_user']
@@ -418,7 +439,7 @@ ADMIN_MENU = Menu(
permissions=['users.add_group']
),
MenuItemButton(
- link='users:group_import',
+ link='users:group_bulk_import',
title='Import',
icon_class='mdi mdi-upload',
permissions=['users.add_group']
diff --git a/netbox/netbox/plugins/__init__.py b/netbox/netbox/plugins/__init__.py
index e2f0f22fc..69881a251 100644
--- a/netbox/netbox/plugins/__init__.py
+++ b/netbox/netbox/plugins/__init__.py
@@ -78,6 +78,7 @@ class PluginConfig(AppConfig):
menu_items = None
template_extensions = None
user_preferences = None
+ events_pipeline = []
def _load_resource(self, name):
# Import from the configured path, if defined.
diff --git a/netbox/netbox/plugins/registration.py b/netbox/netbox/plugins/registration.py
index c84572794..515405f1b 100644
--- a/netbox/netbox/plugins/registration.py
+++ b/netbox/netbox/plugins/registration.py
@@ -1,4 +1,5 @@
import inspect
+import warnings
from django.utils.translation import gettext_lazy as _
from netbox.registry import registry
@@ -37,7 +38,12 @@ def register_template_extensions(class_list):
# Registration for multiple models
models = template_extension.models
elif template_extension.model:
- # Registration for a single model
+ # Registration for a single model (deprecated)
+ warnings.warn(
+ "PluginTemplateExtension.model is deprecated and will be removed in a future release. Use "
+ "'models' instead.",
+ DeprecationWarning
+ )
models = [template_extension.model]
else:
# Global registration (no specific models)
diff --git a/netbox/netbox/plugins/templates.py b/netbox/netbox/plugins/templates.py
index e1f4b7a47..4ea90b4db 100644
--- a/netbox/netbox/plugins/templates.py
+++ b/netbox/netbox/plugins/templates.py
@@ -21,7 +21,7 @@ class PluginTemplateExtension:
* config - Plugin-specific configuration parameters
"""
models = None
- model = None
+ model = None # Deprecated; use `models` instead
def __init__(self, context):
self.context = context
diff --git a/netbox/netbox/plugins/urls.py b/netbox/netbox/plugins/urls.py
index deb20732f..7a9f30c7e 100644
--- a/netbox/netbox/plugins/urls.py
+++ b/netbox/netbox/plugins/urls.py
@@ -8,7 +8,6 @@ from django.utils.module_loading import import_string, module_has_submodule
from . import views
-# Initialize URL base, API, and admin URL patterns for plugins
plugin_patterns = []
plugin_api_patterns = [
path('', views.PluginsAPIRootView.as_view(), name='api-root'),
diff --git a/netbox/netbox/registry.py b/netbox/netbox/registry.py
index 0920cbccf..02b741779 100644
--- a/netbox/netbox/registry.py
+++ b/netbox/netbox/registry.py
@@ -29,7 +29,9 @@ registry = Registry({
'model_features': dict(),
'models': collections.defaultdict(set),
'plugins': dict(),
+ 'request_processors': list(),
'search': dict(),
+ 'system_jobs': dict(),
'tables': collections.defaultdict(dict),
'views': collections.defaultdict(dict),
'widgets': dict(),
diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py
index a8ac68d4d..84b86ba13 100644
--- a/netbox/netbox/settings.py
+++ b/netbox/netbox/settings.py
@@ -5,9 +5,7 @@ import os
import platform
import sys
import warnings
-from urllib.parse import urlencode
-import requests
from django.contrib.messages import constants as messages
from django.core.exceptions import ImproperlyConfigured, ValidationError
from django.core.validators import URLValidator
@@ -108,12 +106,11 @@ DEFAULT_PERMISSIONS = getattr(configuration, 'DEFAULT_PERMISSIONS', {
'users.delete_token': ({'user': '$user'},),
})
DEVELOPER = getattr(configuration, 'DEVELOPER', False)
-DJANGO_ADMIN_ENABLED = getattr(configuration, 'DJANGO_ADMIN_ENABLED', False)
DOCS_ROOT = getattr(configuration, 'DOCS_ROOT', os.path.join(os.path.dirname(BASE_DIR), 'docs'))
EMAIL = getattr(configuration, 'EMAIL', {})
-EVENTS_PIPELINE = getattr(configuration, 'EVENTS_PIPELINE', (
+EVENTS_PIPELINE = getattr(configuration, 'EVENTS_PIPELINE', [
'extras.events.process_event_queue',
-))
+])
EXEMPT_VIEW_PERMISSIONS = getattr(configuration, 'EXEMPT_VIEW_PERMISSIONS', [])
FIELD_CHOICES = getattr(configuration, 'FIELD_CHOICES', {})
FILE_UPLOAD_MAX_MEMORY_SIZE = getattr(configuration, 'FILE_UPLOAD_MAX_MEMORY_SIZE', 2621440)
@@ -225,8 +222,18 @@ DATABASES = {
# Storage backend
#
+# Default STORAGES for Django
+STORAGES = {
+ "default": {
+ "BACKEND": "django.core.files.storage.FileSystemStorage",
+ },
+ "staticfiles": {
+ "BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
+ },
+}
+
if STORAGE_BACKEND is not None:
- DEFAULT_FILE_STORAGE = STORAGE_BACKEND
+ STORAGES['default']['BACKEND'] = STORAGE_BACKEND
# django-storages
if STORAGE_BACKEND.startswith('storages.'):
@@ -371,7 +378,6 @@ SERVER_EMAIL = EMAIL.get('FROM_EMAIL')
#
INSTALLED_APPS = [
- 'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
@@ -409,8 +415,6 @@ INSTALLED_APPS = [
]
if not DEBUG:
INSTALLED_APPS.remove('debug_toolbar')
-if not DJANGO_ADMIN_ENABLED:
- INSTALLED_APPS.remove('django.contrib.admin')
# Middleware
MIDDLEWARE = [
@@ -547,7 +551,6 @@ EXEMPT_EXCLUDE_MODELS = (
# All URLs starting with a string listed here are exempt from maintenance mode enforcement
MAINTENANCE_EXEMPT_PATHS = (
- f'/{BASE_PATH}admin/',
f'/{BASE_PATH}extras/config-revisions/', # Allow modifying the configuration
LOGIN_URL,
LOGIN_REDIRECT_URL,
@@ -588,17 +591,6 @@ if SENTRY_ENABLED:
# Calculate a unique deployment ID from the secret key
DEPLOYMENT_ID = hashlib.sha256(SECRET_KEY.encode('utf-8')).hexdigest()[:16]
CENSUS_URL = 'https://census.netbox.oss.netboxlabs.com/api/v1/'
-CENSUS_PARAMS = {
- 'version': RELEASE.full_version,
- 'python_version': sys.version.split()[0],
- 'deployment_id': DEPLOYMENT_ID,
-}
-if CENSUS_REPORTING_ENABLED and not ISOLATED_DEPLOYMENT and not DEBUG and 'test' not in sys.argv:
- try:
- # Report anonymous census data
- requests.get(f'{CENSUS_URL}?{urlencode(CENSUS_PARAMS)}', timeout=3, proxies=HTTP_PROXIES)
- except requests.exceptions.RequestException:
- pass
#
@@ -792,6 +784,10 @@ STRAWBERRY_DJANGO = {
PLUGIN_CATALOG_URL = 'https://api.netbox.oss.netboxlabs.com/v1/plugins'
+EVENTS_PIPELINE = list(EVENTS_PIPELINE)
+if 'extras.events.process_event_queue' not in EVENTS_PIPELINE:
+ EVENTS_PIPELINE.insert(0, 'extras.events.process_event_queue')
+
# Register any configured plugins
for plugin_name in PLUGINS:
try:
@@ -862,6 +858,13 @@ for plugin_name in PLUGINS:
f"{plugin_name}.{queue}": RQ_PARAMS for queue in plugin_config.queues
})
+ events_pipeline = plugin_config.events_pipeline
+ if events_pipeline:
+ if type(events_pipeline) in (list, tuple):
+ EVENTS_PIPELINE.extend(events_pipeline)
+ else:
+ raise ImproperlyConfigured(f"events_pipline in plugin: {plugin_name} must be a list or tuple")
+
# UNSUPPORTED FUNCTIONALITY: Import any local overrides.
try:
from .local_settings import *
diff --git a/netbox/netbox/tables/columns.py b/netbox/netbox/tables/columns.py
index 0e70a1624..cf6e1f133 100644
--- a/netbox/netbox/tables/columns.py
+++ b/netbox/netbox/tables/columns.py
@@ -35,6 +35,7 @@ __all__ = (
'ContentTypesColumn',
'CustomFieldColumn',
'CustomLinkColumn',
+ 'DistanceColumn',
'DurationColumn',
'LinkedCountColumn',
'MarkdownColumn',
@@ -285,7 +286,8 @@ class ActionsColumn(tables.Column):
if len(self.actions) == 1 or (self.split_actions and idx == 0):
dropdown_class = attrs.css_class
button = (
- f''
+ f' '
f' '
)
@@ -302,7 +304,8 @@ class ActionsColumn(tables.Column):
html += (
f''
f' {button}'
- f' '
+ f' '
f' {toggle_text} '
f' '
f' '
@@ -691,3 +694,16 @@ class ChoicesColumn(tables.Column):
value.append(f'({omitted_count} more)')
return ', '.join(value)
+
+
+class DistanceColumn(TemplateColumn):
+ """
+ Distance with template code for formatting
+ """
+ template_code = """
+ {% load helpers %}
+ {% if record.distance %}{{ record.distance|floatformat:"-2" }} {{ record.distance_unit }}{% endif %}
+ """
+
+ def __init__(self, template_code=template_code, order_by='_abs_distance', **kwargs):
+ super().__init__(template_code=template_code, order_by=order_by, **kwargs)
diff --git a/netbox/netbox/tests/dummy_plugin/__init__.py b/netbox/netbox/tests/dummy_plugin/__init__.py
index 3ade8f9df..2ca7c290c 100644
--- a/netbox/netbox/tests/dummy_plugin/__init__.py
+++ b/netbox/netbox/tests/dummy_plugin/__init__.py
@@ -17,6 +17,14 @@ class DummyPluginConfig(PluginConfig):
'testing-medium',
'testing-high'
]
+ events_pipeline = [
+ 'netbox.tests.dummy_plugin.events.process_events_queue'
+ ]
+
+ def ready(self):
+ super().ready()
+
+ from . import jobs # noqa: F401
config = DummyPluginConfig
diff --git a/netbox/netbox/tests/dummy_plugin/admin.py b/netbox/netbox/tests/dummy_plugin/admin.py
deleted file mode 100644
index 83bc22ad8..000000000
--- a/netbox/netbox/tests/dummy_plugin/admin.py
+++ /dev/null
@@ -1,9 +0,0 @@
-from django.contrib import admin
-
-from netbox.admin import admin_site
-from .models import DummyModel
-
-
-@admin.register(DummyModel, site=admin_site)
-class DummyModelAdmin(admin.ModelAdmin):
- list_display = ('name', 'number')
diff --git a/netbox/netbox/tests/dummy_plugin/events.py b/netbox/netbox/tests/dummy_plugin/events.py
new file mode 100644
index 000000000..934594643
--- /dev/null
+++ b/netbox/netbox/tests/dummy_plugin/events.py
@@ -0,0 +1,2 @@
+def process_events_queue(events):
+ pass
diff --git a/netbox/netbox/tests/dummy_plugin/jobs.py b/netbox/netbox/tests/dummy_plugin/jobs.py
new file mode 100644
index 000000000..3b9dc7a5f
--- /dev/null
+++ b/netbox/netbox/tests/dummy_plugin/jobs.py
@@ -0,0 +1,9 @@
+from core.choices import JobIntervalChoices
+from netbox.jobs import JobRunner, system_job
+
+
+@system_job(interval=JobIntervalChoices.INTERVAL_HOURLY)
+class DummySystemJob(JobRunner):
+
+ def run(self, *args, **kwargs):
+ pass
diff --git a/netbox/netbox/tests/test_authentication.py b/netbox/netbox/tests/test_authentication.py
index ae6d3f4c2..9eb21661d 100644
--- a/netbox/netbox/tests/test_authentication.py
+++ b/netbox/netbox/tests/test_authentication.py
@@ -4,12 +4,10 @@ from django.conf import settings
from django.test import Client
from django.test.utils import override_settings
from django.urls import reverse
-from netaddr import IPNetwork
from rest_framework.test import APIClient
from core.models import ObjectType
-from dcim.models import Site
-from ipam.models import Prefix
+from dcim.models import Rack, Site
from users.models import Group, ObjectPermission, Token, User
from utilities.testing import TestCase
from utilities.testing.api import APITestCase
@@ -410,18 +408,18 @@ class ObjectPermissionAPIViewTestCase(TestCase):
)
Site.objects.bulk_create(cls.sites)
- cls.prefixes = (
- Prefix(prefix=IPNetwork('10.0.0.0/24'), site=cls.sites[0]),
- Prefix(prefix=IPNetwork('10.0.1.0/24'), site=cls.sites[0]),
- Prefix(prefix=IPNetwork('10.0.2.0/24'), site=cls.sites[0]),
- Prefix(prefix=IPNetwork('10.0.3.0/24'), site=cls.sites[1]),
- Prefix(prefix=IPNetwork('10.0.4.0/24'), site=cls.sites[1]),
- Prefix(prefix=IPNetwork('10.0.5.0/24'), site=cls.sites[1]),
- Prefix(prefix=IPNetwork('10.0.6.0/24'), site=cls.sites[2]),
- Prefix(prefix=IPNetwork('10.0.7.0/24'), site=cls.sites[2]),
- Prefix(prefix=IPNetwork('10.0.8.0/24'), site=cls.sites[2]),
+ cls.racks = (
+ Rack(name='Rack 1', site=cls.sites[0]),
+ Rack(name='Rack 2', site=cls.sites[0]),
+ Rack(name='Rack 3', site=cls.sites[0]),
+ Rack(name='Rack 4', site=cls.sites[1]),
+ Rack(name='Rack 5', site=cls.sites[1]),
+ Rack(name='Rack 6', site=cls.sites[1]),
+ Rack(name='Rack 7', site=cls.sites[2]),
+ Rack(name='Rack 8', site=cls.sites[2]),
+ Rack(name='Rack 9', site=cls.sites[2]),
)
- Prefix.objects.bulk_create(cls.prefixes)
+ Rack.objects.bulk_create(cls.racks)
def setUp(self):
"""
@@ -435,8 +433,7 @@ class ObjectPermissionAPIViewTestCase(TestCase):
def test_get_object(self):
# Attempt to retrieve object without permission
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[0].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[0].pk})
response = self.client.get(url, **self.header)
self.assertEqual(response.status_code, 403)
@@ -448,23 +445,21 @@ class ObjectPermissionAPIViewTestCase(TestCase):
)
obj_perm.save()
obj_perm.users.add(self.user)
- obj_perm.object_types.add(ObjectType.objects.get_for_model(Prefix))
+ obj_perm.object_types.add(ObjectType.objects.get_for_model(Rack))
# Retrieve permitted object
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[0].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[0].pk})
response = self.client.get(url, **self.header)
self.assertEqual(response.status_code, 200)
# Attempt to retrieve non-permitted object
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[3].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[3].pk})
response = self.client.get(url, **self.header)
self.assertEqual(response.status_code, 404)
@override_settings(EXEMPT_VIEW_PERMISSIONS=[])
def test_list_objects(self):
- url = reverse('ipam-api:prefix-list')
+ url = reverse('dcim-api:rack-list')
# Attempt to list objects without permission
response = self.client.get(url, **self.header)
@@ -478,7 +473,7 @@ class ObjectPermissionAPIViewTestCase(TestCase):
)
obj_perm.save()
obj_perm.users.add(self.user)
- obj_perm.object_types.add(ObjectType.objects.get_for_model(Prefix))
+ obj_perm.object_types.add(ObjectType.objects.get_for_model(Rack))
# Retrieve all objects. Only permitted objects should be returned.
response = self.client.get(url, **self.header)
@@ -487,12 +482,12 @@ class ObjectPermissionAPIViewTestCase(TestCase):
@override_settings(EXEMPT_VIEW_PERMISSIONS=[])
def test_create_object(self):
- url = reverse('ipam-api:prefix-list')
+ url = reverse('dcim-api:rack-list')
data = {
- 'prefix': '10.0.9.0/24',
+ 'name': 'Rack 10',
'site': self.sites[1].pk,
}
- initial_count = Prefix.objects.count()
+ initial_count = Rack.objects.count()
# Attempt to create an object without permission
response = self.client.post(url, data, format='json', **self.header)
@@ -506,26 +501,25 @@ class ObjectPermissionAPIViewTestCase(TestCase):
)
obj_perm.save()
obj_perm.users.add(self.user)
- obj_perm.object_types.add(ObjectType.objects.get_for_model(Prefix))
+ obj_perm.object_types.add(ObjectType.objects.get_for_model(Rack))
# Attempt to create a non-permitted object
response = self.client.post(url, data, format='json', **self.header)
self.assertEqual(response.status_code, 403)
- self.assertEqual(Prefix.objects.count(), initial_count)
+ self.assertEqual(Rack.objects.count(), initial_count)
# Create a permitted object
data['site'] = self.sites[0].pk
response = self.client.post(url, data, format='json', **self.header)
self.assertEqual(response.status_code, 201)
- self.assertEqual(Prefix.objects.count(), initial_count + 1)
+ self.assertEqual(Rack.objects.count(), initial_count + 1)
@override_settings(EXEMPT_VIEW_PERMISSIONS=[])
def test_edit_object(self):
# Attempt to edit an object without permission
data = {'site': self.sites[0].pk}
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[0].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[0].pk})
response = self.client.patch(url, data, format='json', **self.header)
self.assertEqual(response.status_code, 403)
@@ -537,26 +531,23 @@ class ObjectPermissionAPIViewTestCase(TestCase):
)
obj_perm.save()
obj_perm.users.add(self.user)
- obj_perm.object_types.add(ObjectType.objects.get_for_model(Prefix))
+ obj_perm.object_types.add(ObjectType.objects.get_for_model(Rack))
# Attempt to edit a non-permitted object
data = {'site': self.sites[0].pk}
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[3].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[3].pk})
response = self.client.patch(url, data, format='json', **self.header)
self.assertEqual(response.status_code, 404)
# Edit a permitted object
data['status'] = 'reserved'
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[0].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[0].pk})
response = self.client.patch(url, data, format='json', **self.header)
self.assertEqual(response.status_code, 200)
# Attempt to modify a permitted object to a non-permitted object
data['site'] = self.sites[1].pk
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[0].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[0].pk})
response = self.client.patch(url, data, format='json', **self.header)
self.assertEqual(response.status_code, 403)
@@ -564,8 +555,7 @@ class ObjectPermissionAPIViewTestCase(TestCase):
def test_delete_object(self):
# Attempt to delete an object without permission
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[0].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[0].pk})
response = self.client.delete(url, format='json', **self.header)
self.assertEqual(response.status_code, 403)
@@ -577,16 +567,14 @@ class ObjectPermissionAPIViewTestCase(TestCase):
)
obj_perm.save()
obj_perm.users.add(self.user)
- obj_perm.object_types.add(ObjectType.objects.get_for_model(Prefix))
+ obj_perm.object_types.add(ObjectType.objects.get_for_model(Rack))
# Attempt to delete a non-permitted object
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[3].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[3].pk})
response = self.client.delete(url, format='json', **self.header)
self.assertEqual(response.status_code, 404)
# Delete a permitted object
- url = reverse('ipam-api:prefix-detail',
- kwargs={'pk': self.prefixes[0].pk})
+ url = reverse('dcim-api:rack-detail', kwargs={'pk': self.racks[0].pk})
response = self.client.delete(url, format='json', **self.header)
self.assertEqual(response.status_code, 204)
diff --git a/netbox/netbox/tests/test_import.py b/netbox/netbox/tests/test_import.py
index 16711ef72..690a6dc14 100644
--- a/netbox/netbox/tests/test_import.py
+++ b/netbox/netbox/tests/test_import.py
@@ -37,7 +37,7 @@ class CSVImportTestCase(ModelViewTestCase):
}
# Form validation should fail with invalid header present
- self.assertHttpStatus(self.client.post(self._get_url('import'), data), 200)
+ self.assertHttpStatus(self.client.post(self._get_url('bulk_import'), data), 200)
self.assertEqual(Region.objects.count(), 0)
# Correct the CSV header name
@@ -45,7 +45,7 @@ class CSVImportTestCase(ModelViewTestCase):
data['data'] = self._get_csv_data(csv_data)
# Validation should succeed
- self.assertHttpStatus(self.client.post(self._get_url('import'), data), 302)
+ self.assertHttpStatus(self.client.post(self._get_url('bulk_import'), data), 302)
self.assertEqual(Region.objects.count(), 3)
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'])
@@ -71,10 +71,10 @@ class CSVImportTestCase(ModelViewTestCase):
obj_perm.object_types.add(ObjectType.objects.get_for_model(self.model))
# Try GET with model-level permission
- self.assertHttpStatus(self.client.get(self._get_url('import')), 200)
+ self.assertHttpStatus(self.client.get(self._get_url('bulk_import')), 200)
# Test POST with permission
- self.assertHttpStatus(self.client.post(self._get_url('import'), data), 302)
+ self.assertHttpStatus(self.client.post(self._get_url('bulk_import'), data), 302)
regions = Region.objects.all()
self.assertEqual(regions.count(), 4)
self.assertEqual(
@@ -111,10 +111,10 @@ class CSVImportTestCase(ModelViewTestCase):
obj_perm.object_types.add(ObjectType.objects.get_for_model(self.model))
# Try GET with model-level permission
- self.assertHttpStatus(self.client.get(self._get_url('import')), 200)
+ self.assertHttpStatus(self.client.get(self._get_url('bulk_import')), 200)
# Test POST with permission
- self.assertHttpStatus(self.client.post(self._get_url('import'), data), 200)
+ self.assertHttpStatus(self.client.post(self._get_url('bulk_import'), data), 200)
self.assertEqual(Region.objects.count(), 0)
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'])
@@ -138,6 +138,6 @@ class CSVImportTestCase(ModelViewTestCase):
)
cf.object_types.set([ObjectType.objects.get_for_model(self.model)])
- self.assertHttpStatus(self.client.post(self._get_url('import'), data), 302)
+ self.assertHttpStatus(self.client.post(self._get_url('bulk_import'), data), 302)
region = Region.objects.get(slug='region-1')
self.assertEqual(region.cf['tcf'], 'def-cf-text')
diff --git a/netbox/netbox/tests/test_jobs.py b/netbox/netbox/tests/test_jobs.py
index 52a7bd97a..e3e24a235 100644
--- a/netbox/netbox/tests/test_jobs.py
+++ b/netbox/netbox/tests/test_jobs.py
@@ -90,6 +90,15 @@ class EnqueueTest(JobRunnerTestCase):
self.assertEqual(job1, job2)
self.assertEqual(TestJobRunner.get_jobs(instance).count(), 1)
+ def test_enqueue_once_twice_same_no_schedule_at(self):
+ instance = DataSource()
+ schedule_at = self.get_schedule_at()
+ job1 = TestJobRunner.enqueue_once(instance, schedule_at=schedule_at)
+ job2 = TestJobRunner.enqueue_once(instance)
+
+ self.assertEqual(job1, job2)
+ self.assertEqual(TestJobRunner.get_jobs(instance).count(), 1)
+
def test_enqueue_once_twice_different_schedule_at(self):
instance = DataSource()
job1 = TestJobRunner.enqueue_once(instance, schedule_at=self.get_schedule_at())
@@ -127,3 +136,30 @@ class EnqueueTest(JobRunnerTestCase):
self.assertNotEqual(job1, job2)
self.assertRaises(Job.DoesNotExist, job1.refresh_from_db)
self.assertEqual(TestJobRunner.get_jobs(instance).count(), 1)
+
+
+class SystemJobTest(JobRunnerTestCase):
+ """
+ Test that system jobs can be scheduled.
+
+ General functionality already tested by `JobRunnerTest` and `EnqueueTest`.
+ """
+
+ def test_scheduling(self):
+ # Can job be enqueued?
+ job = TestJobRunner.enqueue(schedule_at=self.get_schedule_at())
+ self.assertIsInstance(job, Job)
+ self.assertEqual(TestJobRunner.get_jobs().count(), 1)
+
+ # Can job be deleted again?
+ job.delete()
+ self.assertRaises(Job.DoesNotExist, job.refresh_from_db)
+ self.assertEqual(TestJobRunner.get_jobs().count(), 0)
+
+ def test_enqueue_once(self):
+ schedule_at = self.get_schedule_at()
+ job1 = TestJobRunner.enqueue_once(schedule_at=schedule_at)
+ job2 = TestJobRunner.enqueue_once(schedule_at=schedule_at)
+
+ self.assertEqual(job1, job2)
+ self.assertEqual(TestJobRunner.get_jobs().count(), 1)
diff --git a/netbox/netbox/tests/test_plugins.py b/netbox/netbox/tests/test_plugins.py
index 351fef9e2..264c8e6f9 100644
--- a/netbox/netbox/tests/test_plugins.py
+++ b/netbox/netbox/tests/test_plugins.py
@@ -5,8 +5,10 @@ from django.core.exceptions import ImproperlyConfigured
from django.test import Client, TestCase, override_settings
from django.urls import reverse
+from core.choices import JobIntervalChoices
from netbox.tests.dummy_plugin import config as dummy_config
from netbox.tests.dummy_plugin.data_backends import DummyBackend
+from netbox.tests.dummy_plugin.jobs import DummySystemJob
from netbox.plugins.navigation import PluginMenu
from netbox.plugins.utils import get_plugin_config
from netbox.graphql.schema import Query
@@ -36,12 +38,6 @@ class PluginTest(TestCase):
instance.delete()
self.assertIsNone(instance.pk)
- def test_admin(self):
-
- # Test admin view URL resolution
- url = reverse('admin:dummy_plugin_dummymodel_add')
- self.assertEqual(url, '/admin/dummy_plugin/dummymodel/add/')
-
@override_settings(LOGIN_REQUIRED=False)
def test_views(self):
@@ -136,6 +132,13 @@ class PluginTest(TestCase):
self.assertIn('dummy', registry['data_backends'])
self.assertIs(registry['data_backends']['dummy'], DummyBackend)
+ def test_system_jobs(self):
+ """
+ Check registered system jobs.
+ """
+ self.assertIn(DummySystemJob, registry['system_jobs'])
+ self.assertEqual(registry['system_jobs'][DummySystemJob]['interval'], JobIntervalChoices.INTERVAL_HOURLY)
+
def test_queues(self):
"""
Check that plugin queues are registered with the accurate name.
@@ -209,3 +212,9 @@ class PluginTest(TestCase):
self.assertEqual(get_plugin_config(plugin, 'foo'), 123)
self.assertEqual(get_plugin_config(plugin, 'bar'), None)
self.assertEqual(get_plugin_config(plugin, 'bar', default=456), 456)
+
+ def test_events_pipeline(self):
+ """
+ Check that events pipeline is registered.
+ """
+ self.assertIn('netbox.tests.dummy_plugin.events.process_events_queue', settings.EVENTS_PIPELINE)
diff --git a/netbox/netbox/tests/test_views.py b/netbox/netbox/tests/test_views.py
index ccba73baa..50cfa5755 100644
--- a/netbox/netbox/tests/test_views.py
+++ b/netbox/netbox/tests/test_views.py
@@ -1,7 +1,7 @@
import urllib.parse
from django.urls import reverse
-from django.test import override_settings
+from django.test import Client, override_settings
from dcim.models import Site
from netbox.constants import EMPTY_TABLE_TEXT
@@ -74,3 +74,21 @@ class SearchViewTestCase(TestCase):
self.assertHttpStatus(response, 200)
content = str(response.content)
self.assertIn(EMPTY_TABLE_TEXT, content)
+
+
+class MediaViewTestCase(TestCase):
+
+ def test_media_login_required(self):
+ url = reverse('media', kwargs={'path': 'foo.txt'})
+ response = Client().get(url)
+
+ # Unauthenticated request should redirect to login page
+ self.assertHttpStatus(response, 302)
+
+ @override_settings(LOGIN_REQUIRED=False)
+ def test_media_login_not_required(self):
+ url = reverse('media', kwargs={'path': 'foo.txt'})
+ response = Client().get(url)
+
+ # Unauthenticated request should return a 404 (not found)
+ self.assertHttpStatus(response, 404)
diff --git a/netbox/netbox/urls.py b/netbox/netbox/urls.py
index b0175ec04..90d70a357 100644
--- a/netbox/netbox/urls.py
+++ b/netbox/netbox/urls.py
@@ -2,7 +2,6 @@ from django.conf import settings
from django.conf.urls import include
from django.urls import path
from django.views.decorators.cache import cache_page
-from django.views.static import serve
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView
from account.views import LoginView, LogoutView
@@ -10,7 +9,7 @@ from netbox.api.views import APIRootView, StatusView
from netbox.graphql.schema import schema
from netbox.graphql.views import NetBoxGraphQLView
from netbox.plugins.urls import plugin_patterns, plugin_api_patterns
-from netbox.views import HomeView, StaticMediaFailureView, SearchView, htmx
+from netbox.views import HomeView, MediaView, StaticMediaFailureView, SearchView, htmx
_patterns = [
@@ -69,7 +68,7 @@ _patterns = [
path('graphql/', NetBoxGraphQLView.as_view(schema=schema), name='graphql'),
# Serving static media in Django to pipe it through LoginRequiredMiddleware
- path('media/', serve, {'document_root': settings.MEDIA_ROOT}),
+ path('media/', MediaView.as_view(), name='media'),
path('media-failure/', StaticMediaFailureView.as_view(), name='media_failure'),
# Plugins
@@ -77,11 +76,6 @@ _patterns = [
path('api/plugins/', include((plugin_api_patterns, 'plugins-api'))),
]
-# Django admin UI
-if settings.DJANGO_ADMIN_ENABLED:
- from .admin import admin_site
- _patterns.append(path('admin/', admin_site.urls))
-
# django-debug-toolbar
if settings.DEBUG:
import debug_toolbar
diff --git a/netbox/netbox/utils.py b/netbox/netbox/utils.py
index f27d1b5f7..f2c34722c 100644
--- a/netbox/netbox/utils.py
+++ b/netbox/netbox/utils.py
@@ -3,6 +3,7 @@ from netbox.registry import registry
__all__ = (
'get_data_backend_choices',
'register_data_backend',
+ 'register_request_processor',
)
@@ -24,3 +25,12 @@ def register_data_backend():
return cls
return _wrapper
+
+
+def register_request_processor(func):
+ """
+ Decorator for registering a request processor.
+ """
+ registry['request_processors'].append(func)
+
+ return func
diff --git a/netbox/netbox/views/errors.py b/netbox/netbox/views/errors.py
index 9e8ed5a3a..5872a59cd 100644
--- a/netbox/netbox/views/errors.py
+++ b/netbox/netbox/views/errors.py
@@ -49,7 +49,7 @@ def handler_500(request, template_name=ERROR_500_TEMPLATE_NAME):
template = loader.get_template(template_name)
except TemplateDoesNotExist:
return HttpResponseServerError('Server Error (500) ', content_type='text/html')
- type_, error, traceback = sys.exc_info()
+ type_, error = sys.exc_info()[:2]
return HttpResponseServerError(template.render({
'error': error,
diff --git a/netbox/netbox/views/generic/bulk_views.py b/netbox/netbox/views/generic/bulk_views.py
index 4b2f1ae28..88857ad54 100644
--- a/netbox/netbox/views/generic/bulk_views.py
+++ b/netbox/netbox/views/generic/bulk_views.py
@@ -661,15 +661,13 @@ class BulkEditView(GetReturnURLMixin, BaseMultiObjectView):
elif 'virtual_machine' in request.GET:
initial_data['virtual_machine'] = request.GET.get('virtual_machine')
- if '_apply' in request.POST:
- form = self.form(request.POST, initial=initial_data)
- restrict_form_fields(form, request.user)
+ form = self.form(request.POST, initial=initial_data)
+ restrict_form_fields(form, request.user)
+ if '_apply' in request.POST:
if form.is_valid():
logger.debug("Form validation was successful")
-
try:
-
with transaction.atomic():
updated_objects = self._update_objects(form, request)
@@ -697,10 +695,6 @@ class BulkEditView(GetReturnURLMixin, BaseMultiObjectView):
else:
logger.debug("Form validation failed")
- else:
- form = self.form(request.POST, initial=initial_data)
- restrict_form_fields(form, request.user)
-
# Retrieve objects being edited
table = self.table(self.queryset.filter(pk__in=pk_list), orderable=False)
if not table.rows:
@@ -744,7 +738,6 @@ class BulkRenameView(GetReturnURLMixin, BaseMultiObjectView):
renamed_pks = []
for obj in selected_objects:
-
# Take a snapshot of change-logged models
if hasattr(obj, 'snapshot'):
obj.snapshot()
@@ -758,7 +751,7 @@ class BulkRenameView(GetReturnURLMixin, BaseMultiObjectView):
except re.error:
obj.new_name = obj.name
else:
- obj.new_name = obj.name.replace(find, replace)
+ obj.new_name = (obj.name or '').replace(find, replace)
renamed_pks.append(obj.pk)
return renamed_pks
@@ -793,6 +786,10 @@ class BulkRenameView(GetReturnURLMixin, BaseMultiObjectView):
)
return redirect(self.get_return_url(request))
+ except IntegrityError as e:
+ messages.error(self.request, ", ".join(e.args))
+ clear_events.send(sender=self)
+
except (AbortRequest, PermissionsViolation) as e:
logger.debug(e.message)
form.add_error(None, e.message)
@@ -995,7 +992,8 @@ class BulkComponentCreateView(GetReturnURLMixin, BaseMultiObjectView):
form.add_error(field, '{}: {}'.format(obj, ', '.join(e)))
# Enforce object-level permissions
- if self.queryset.filter(pk__in=[obj.pk for obj in new_components]).count() != len(new_components):
+ component_ids = [obj.pk for obj in new_components]
+ if self.queryset.filter(pk__in=component_ids).count() != len(new_components):
raise PermissionsViolation
except IntegrityError:
diff --git a/netbox/netbox/views/generic/feature_views.py b/netbox/netbox/views/generic/feature_views.py
index 49862e83f..1e17d5354 100644
--- a/netbox/netbox/views/generic/feature_views.py
+++ b/netbox/netbox/views/generic/feature_views.py
@@ -143,7 +143,12 @@ class ObjectJobsView(ConditionalLoginRequiredMixin, View):
"""
Render a list of all Job assigned to an object. For example:
- path('data-sources//jobs/', ObjectJobsView.as_view(), name='datasource_jobs', kwargs={'model': DataSource}),
+ path(
+ 'data-sources//jobs/',
+ ObjectJobsView.as_view(),
+ name='datasource_jobs',
+ kwargs={'model': DataSource}
+ )
Attributes:
base_template: The name of the template to extend. If not provided, "{app}/{model}.html" will be used.
diff --git a/netbox/netbox/views/generic/object_views.py b/netbox/netbox/views/generic/object_views.py
index 0686e52b7..fb554ca4f 100644
--- a/netbox/netbox/views/generic/object_views.py
+++ b/netbox/netbox/views/generic/object_views.py
@@ -233,18 +233,23 @@ class ObjectEditView(GetReturnURLMixin, BaseObjectView):
form = self.form(instance=obj, initial=initial_data)
restrict_form_fields(form, request.user)
- # If this is an HTMX request, return only the rendered form HTML
- if htmx_partial(request):
- return render(request, self.htmx_template_name, {
- 'model': model,
- 'object': obj,
- 'form': form,
- })
-
- return render(request, self.template_name, {
+ context = {
'model': model,
'object': obj,
'form': form,
+ }
+
+ # If the form is being displayed within a "quick add" widget,
+ # use the appropriate template
+ if request.GET.get('_quickadd'):
+ return render(request, 'htmx/quick_add.html', context)
+
+ # If this is an HTMX request, return only the rendered form HTML
+ if htmx_partial(request):
+ return render(request, self.htmx_template_name, context)
+
+ return render(request, self.template_name, {
+ **context,
'return_url': self.get_return_url(request, obj),
'prerequisite_model': get_prerequisite_model(self.queryset),
**self.get_extra_context(request, obj),
@@ -259,6 +264,7 @@ class ObjectEditView(GetReturnURLMixin, BaseObjectView):
"""
logger = logging.getLogger('netbox.views.ObjectEditView')
obj = self.get_object(**kwargs)
+ model = self.queryset.model
# Take a snapshot for change logging (if editing an existing object)
if obj.pk and hasattr(obj, 'snapshot'):
@@ -292,6 +298,12 @@ class ObjectEditView(GetReturnURLMixin, BaseObjectView):
msg = f'{msg} {obj}'
messages.success(request, msg)
+ # Object was created via "quick add" modal
+ if '_quickadd' in request.POST:
+ return render(request, 'htmx/quick_add_created.html', {
+ 'object': obj,
+ })
+
# If adding another object, redirect back to the edit form
if '_addanother' in request.POST:
redirect_url = request.path
@@ -324,12 +336,19 @@ class ObjectEditView(GetReturnURLMixin, BaseObjectView):
else:
logger.debug("Form validation failed")
- return render(request, self.template_name, {
+ context = {
+ 'model': model,
'object': obj,
'form': form,
'return_url': self.get_return_url(request, obj),
**self.get_extra_context(request, obj),
- })
+ }
+
+ # Form was submitted via a "quick add" widget
+ if '_quickadd' in request.POST:
+ return render(request, 'htmx/quick_add.html', context)
+
+ return render(request, self.template_name, context)
class ObjectDeleteView(GetReturnURLMixin, BaseObjectView):
diff --git a/netbox/netbox/views/misc.py b/netbox/netbox/views/misc.py
index c584e99e4..f28b0f7b1 100644
--- a/netbox/netbox/views/misc.py
+++ b/netbox/netbox/views/misc.py
@@ -8,6 +8,7 @@ from django.core.cache import cache
from django.shortcuts import redirect, render
from django.utils.translation import gettext_lazy as _
from django.views.generic import View
+from django.views.static import serve
from django_tables2 import RequestConfig
from packaging import version
@@ -23,6 +24,7 @@ from utilities.views import ConditionalLoginRequiredMixin
__all__ = (
'HomeView',
+ 'MediaView',
'SearchView',
)
@@ -115,3 +117,11 @@ class SearchView(ConditionalLoginRequiredMixin, View):
'form': form,
'table': table,
})
+
+
+class MediaView(ConditionalLoginRequiredMixin, View):
+ """
+ Wrap Django's serve() view to enforce LOGIN_REQUIRED for static media.
+ """
+ def get(self, request, path):
+ return serve(request, path, document_root=settings.MEDIA_ROOT)
diff --git a/netbox/project-static/dist/graphiql/graphiql.min.js b/netbox/project-static/dist/graphiql/graphiql.min.js
index 862ce3a80..229d3ebe6 100644
--- a/netbox/project-static/dist/graphiql/graphiql.min.js
+++ b/netbox/project-static/dist/graphiql/graphiql.min.js
@@ -1,5 +1,4 @@
/******/ (function() { // webpackBootstrap
-/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js":
@@ -8,6 +7,7 @@
\**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -34,6 +34,7 @@ var _default = exports["default"] = index;
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -57,6 +58,7 @@ var _default = exports["default"] = memoize;
\****************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -1194,6 +1196,7 @@ exports.size = size;
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -1901,6 +1904,7 @@ exports.computePosition = computePosition;
\**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2256,6 +2260,7 @@ function useFloating(options) {
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2432,6 +2437,7 @@ exports.Animation = Animation;
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2460,6 +2466,7 @@ var _easingEs = __webpack_require__(/*! ./utils/easing.es.js */ "../../../node_m
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2501,6 +2508,7 @@ function getEasingFunction(definition) {
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2698,6 +2706,7 @@ function animateStyle(element, key, keyframesDefinition, options = {}) {
\********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2731,6 +2740,7 @@ function getMotionValue(motionValues, name) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2779,6 +2789,7 @@ function animate(elements, keyframes, options = {}) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2816,6 +2827,7 @@ const style = exports.style = {
\******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2895,6 +2907,7 @@ const selectFinished = animation => animation.finished;
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2932,6 +2945,7 @@ function registerCssVariable(name) {
\****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2952,6 +2966,7 @@ exports.cubicBezierAsString = cubicBezierAsString;
\***************************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -2995,6 +3010,7 @@ for (const key in featureTests) {
\************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3015,6 +3031,7 @@ function getStyleName(key) {
\*******************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3041,6 +3058,7 @@ exports.keyframesList = keyframesList;
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3064,6 +3082,7 @@ exports.getOptions = getOptions;
\************************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3091,6 +3110,7 @@ function stopAnimation(animation, needsCommit = true) {
\**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3134,6 +3154,7 @@ function createStyles(keyframes) {
\**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3161,6 +3182,7 @@ function createStyleString(target = {}) {
\********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3253,6 +3275,7 @@ const transformListToString = (template, name) => `${template} ${name}(var(${asT
\**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3346,6 +3369,7 @@ const isNumberOrNull = value => typeof value !== "string";
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3364,6 +3388,7 @@ const glide = exports.glide = (0, _createGeneratorEasingEs.createGeneratorEasing
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3382,6 +3407,7 @@ const spring = exports.spring = (0, _createGeneratorEasingEs.createGeneratorEasi
\************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3447,6 +3473,7 @@ function inView(elementOrSelector, onStart, {
\**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3529,6 +3556,7 @@ function resizeElement(target, handler) {
\*************************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3571,6 +3599,7 @@ function resizeWindow(callback) {
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3591,6 +3620,7 @@ function resize(a, b) {
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3682,6 +3712,7 @@ function scroll(onScroll, _a = {}) {
\****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3751,6 +3782,7 @@ function updateScrollInfo(element, info, time) {
\************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3807,6 +3839,7 @@ function resolveEdge(edge, length, inset = 0) {
\*************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3884,6 +3917,7 @@ function resolveOffsets(container, info, options) {
\*************************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3927,6 +3961,7 @@ function calcInset(element, container) {
\**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3973,6 +4008,7 @@ function resolveOffset(offset, containerLength, targetLength, targetInset) {
\***************************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -3994,6 +4030,7 @@ const ScrollOffset = exports.ScrollOffset = {
\*****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4065,6 +4102,7 @@ function scrubAnimation(controls, axisInfo) {
\*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4204,6 +4242,7 @@ var _styleStringEs = __webpack_require__(/*! ./animate/utils/style-string.es.js
\****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4241,6 +4280,7 @@ const hover = exports.hover = {
\******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4283,6 +4323,7 @@ const inView = exports.inView = {
\****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4322,6 +4363,7 @@ const press = exports.press = {
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4511,6 +4553,7 @@ function createMotionState(options = {}, parent) {
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4548,6 +4591,7 @@ function dispatchViewEvent(element, name, entry) {
\*******************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4577,6 +4621,7 @@ function shallowCompare(next, prev) {
\******************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4595,6 +4640,7 @@ function isVariant(definition) {
\***********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4618,6 +4664,7 @@ function resolveVariant(definition, variants) {
\****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4657,6 +4704,7 @@ const fireNext = iterator => iterator.next();
\**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4869,6 +4917,7 @@ function getValueSequence(name, sequences) {
\********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4897,6 +4946,7 @@ function calcNextTime(current, next, prev, labels) {
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4939,6 +4989,7 @@ function addKeyframes(sequence, keyframes, easing, offset, startTime, endTime) {
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4961,6 +5012,7 @@ function compareByTime(a, b) {
\******************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -4993,6 +5045,7 @@ function resolveElements(elements, selectorCache) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5040,6 +5093,7 @@ function resolveOption(option, i, total) {
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5102,6 +5156,7 @@ function cubicBezier(mX1, mY1, mX2, mY2) {
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5130,6 +5185,7 @@ var _stepsEs = __webpack_require__(/*! ./steps.es.js */ "../../../node_modules/@
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5153,6 +5209,7 @@ exports.steps = steps;
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5264,6 +5321,7 @@ exports.glide = glide;
\********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5306,6 +5364,7 @@ var _velocityEs = __webpack_require__(/*! ./utils/velocity.es.js */ "../../../no
\******************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5326,6 +5385,7 @@ const defaults = exports.defaults = {
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5388,6 +5448,7 @@ exports.spring = spring;
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5406,6 +5467,7 @@ exports.calcDampingRatio = calcDampingRatio;
\***************************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5424,6 +5486,7 @@ function hasReachedTarget(origin, target, current) {
\******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5467,6 +5530,7 @@ function pregenerateKeyframes(generator, toUnit = _utils.noopReturn) {
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5488,6 +5552,7 @@ function calcGeneratorVelocity(resolveValue, t, current) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5519,6 +5584,7 @@ exports.MotionValue = MotionValue;
\***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5540,6 +5606,7 @@ var _MotionValueEs = __webpack_require__(/*! ./MotionValue.es.js */ "../../../no
\***************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5563,6 +5630,7 @@ function removeItem(arr, item) {
\***************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5580,6 +5648,7 @@ exports.clamp = clamp;
\******************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5602,6 +5671,7 @@ const defaults = exports.defaults = {
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5622,6 +5692,7 @@ function getEasingForSegment(easing, i) {
\***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5780,6 +5851,7 @@ var _wrapEs = __webpack_require__(/*! ./wrap.es.js */ "../../../node_modules/@mo
\*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5822,6 +5894,7 @@ function interpolate(output, input = (0, _offsetEs.defaultOffset)(output.length)
\*************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5840,6 +5913,7 @@ exports.isCubicBezier = isCubicBezier;
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5857,6 +5931,7 @@ exports.isEasingGenerator = isEasingGenerator;
\************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5875,6 +5950,7 @@ exports.isEasingList = isEasingList;
\*********************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5892,6 +5968,7 @@ exports.isFunction = isFunction;
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5909,6 +5986,7 @@ exports.isNumber = isNumber;
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5926,6 +6004,7 @@ exports.isString = isString;
\*************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5943,6 +6022,7 @@ exports.mix = mix;
\**************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5962,6 +6042,7 @@ exports.noopReturn = noopReturn;
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -5992,6 +6073,7 @@ function defaultOffset(length) {
\******************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -6009,6 +6091,7 @@ exports.progress = progress;
\**************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -6028,6 +6111,7 @@ const time = exports.time = {
\******************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -6052,6 +6136,7 @@ function velocityPerSecond(velocity, frameDuration) {
\**************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -6072,6 +6157,7 @@ exports.wrap = wrap;
\********************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -6214,6 +6300,7 @@ exports.makePushPullAsyncIterableIterator = makePushPullAsyncIterableIterator;
\***************************************************************/
/***/ (function(module) {
+"use strict";
function $parcel$export(e, n, v, s) {
@@ -6242,6 +6329,7 @@ function $1a6a90a521dcd173$export$b9ecd428b558ff10(originalEventHandler, ourEven
\*****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $eQpDd$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -6297,6 +6385,7 @@ const $09f4ad68a9251bc3$export$be92b6f5f03c0fe9 = $09f4ad68a9251bc3$export$21b07
\**********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $hnlpS$react = __webpack_require__(/*! react */ "react");
@@ -6428,6 +6517,7 @@ function $1a96635ec239608b$export$c74125a8e3af6bb2(name) {
\************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $dJwbH$react = __webpack_require__(/*! react */ "react");
@@ -6473,6 +6563,7 @@ function $9c2aaba23466b352$export$c7b2cbe3552a0d05(...refs) {
\*******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $4O1Ne$react = __webpack_require__(/*! react */ "react");
@@ -6606,6 +6697,7 @@ function $dec3cc0142d4f286$var$composeContextScopes(...scopes) {
\******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $aJCrN$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -7041,6 +7133,7 @@ const $f4833395aa1bca1a$export$f39c2d165cd861fe = $f4833395aa1bca1a$export$fba2f
\*********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $9g4ps$react = __webpack_require__(/*! react */ "react");
@@ -7083,6 +7176,7 @@ const $cc45c1b701a63adc$export$2881499e37b75b9a = $cc45c1b701a63adc$export$c760c
\*****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $g2vWm$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -7366,6 +7460,7 @@ const $d715e0554b679f1f$export$aecb2ddcb55c95be = $d715e0554b679f1f$export$4d5eb
\*************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $7dQ7Q$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -7826,6 +7921,7 @@ const $d1bf075a6b218014$export$6d4de93b380beddf = $d1bf075a6b218014$export$f34ec
\************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $cnctE$react = __webpack_require__(/*! react */ "react");
@@ -7881,6 +7977,7 @@ const $71476a6ed7dbbaf3$export$be92b6f5f03c0fe9 = $71476a6ed7dbbaf3$export$ac5b5
\***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $buum9$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -8186,6 +8283,7 @@ const $2bc01e66e04aa9ed$export$be92b6f5f03c0fe9 = $2bc01e66e04aa9ed$export$20e40
\**************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $47woD$react = __webpack_require__(/*! react */ "react");
@@ -8217,6 +8315,7 @@ function $dc478e4659f630c5$export$f680877a34711e37(deterministicId) {
\****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $cnSS2$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -9284,6 +9383,7 @@ const $213e4d2df823067d$export$6d4de93b380beddf = $213e4d2df823067d$export$e7142
\******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $50Iv9$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -9639,6 +9739,7 @@ const $34310caa050a8d63$export$21b07c8f274aebd5 = $34310caa050a8d63$export$79d62
\******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $amzHf$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -9688,6 +9789,7 @@ const $913a70b877676c16$export$be92b6f5f03c0fe9 = $913a70b877676c16$export$602ea
\********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $fnLeV$react = __webpack_require__(/*! react */ "react");
@@ -9829,6 +9931,7 @@ function $a2fa0214bb2735a1$var$getAnimationName(styles) {
\*********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $iMixA$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -9927,6 +10030,7 @@ const $c3def6332c2749a6$export$be92b6f5f03c0fe9 = $c3def6332c2749a6$export$250ff
\************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $9QJ9Y$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -10180,6 +10284,7 @@ const $0063afae63b3fa70$export$6d08773d2e66f8f2 = $0063afae63b3fa70$export$ab9df
\****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $dAvBt$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -10292,6 +10397,7 @@ const $82dc8d030dec7549$export$be92b6f5f03c0fe9 = $82dc8d030dec7549$export$8c6ed
\*******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $iVrL9$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -10873,6 +10979,7 @@ const $c34afbc43c90cc6f$export$21b07c8f274aebd5 = $c34afbc43c90cc6f$export$c27ee
\****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $92muK$react = __webpack_require__(/*! react */ "react");
@@ -10909,6 +11016,7 @@ function $28e03942f763e819$export$25bec8c6f54ee79a(callback) {
\**********************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $ijazI$react = __webpack_require__(/*! react */ "react");
@@ -10968,6 +11076,7 @@ function $b84d42d44371bff7$var$useUncontrolledState({
\******************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $b0gz3$react = __webpack_require__(/*! react */ "react");
@@ -11004,6 +11113,7 @@ function $24c84e9f83c4454f$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDoc
\*****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $caHyQ$react = __webpack_require__(/*! react */ "react");
@@ -11034,6 +11144,7 @@ const $ca21affb0542a8a4$export$e5c5a5f917a5871c = Boolean(globalThis === null ||
\********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $ksDzM$react = __webpack_require__(/*! react */ "react");
@@ -11100,6 +11211,7 @@ function $d2c1d285af17635b$export$1ab7ae714698c4b8(element) {
\***************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var $awrN2$babelruntimehelpersextends = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../../node_modules/@babel/runtime/helpers/extends.js");
@@ -11157,6 +11269,7 @@ const $685371e9c20848e2$export$be92b6f5f03c0fe9 = $685371e9c20848e2$export$439d2
\**************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -11346,6 +11459,7 @@ exports.suppressOthers = suppressOthers;
\*************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -11368,12 +11482,17149 @@ var _default = exports["default"] = clsx;
/***/ }),
+/***/ "../../../node_modules/codemirror/addon/comment/comment.js":
+/*!*****************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/comment/comment.js ***!
+ \*****************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ var noOptions = {};
+ var nonWS = /[^\s\u00a0]/;
+ var Pos = CodeMirror.Pos,
+ cmp = CodeMirror.cmpPos;
+ function firstNonWS(str) {
+ var found = str.search(nonWS);
+ return found == -1 ? 0 : found;
+ }
+ CodeMirror.commands.toggleComment = function (cm) {
+ cm.toggleComment();
+ };
+ CodeMirror.defineExtension("toggleComment", function (options) {
+ if (!options) options = noOptions;
+ var cm = this;
+ var minLine = Infinity,
+ ranges = this.listSelections(),
+ mode = null;
+ for (var i = ranges.length - 1; i >= 0; i--) {
+ var from = ranges[i].from(),
+ to = ranges[i].to();
+ if (from.line >= minLine) continue;
+ if (to.line >= minLine) to = Pos(minLine, 0);
+ minLine = from.line;
+ if (mode == null) {
+ if (cm.uncomment(from, to, options)) mode = "un";else {
+ cm.lineComment(from, to, options);
+ mode = "line";
+ }
+ } else if (mode == "un") {
+ cm.uncomment(from, to, options);
+ } else {
+ cm.lineComment(from, to, options);
+ }
+ }
+ });
+
+ // Rough heuristic to try and detect lines that are part of multi-line string
+ function probablyInsideString(cm, pos, line) {
+ return /\bstring\b/.test(cm.getTokenTypeAt(Pos(pos.line, 0))) && !/^[\'\"\`]/.test(line);
+ }
+ function getMode(cm, pos) {
+ var mode = cm.getMode();
+ return mode.useInnerComments === false || !mode.innerMode ? mode : cm.getModeAt(pos);
+ }
+ CodeMirror.defineExtension("lineComment", function (from, to, options) {
+ if (!options) options = noOptions;
+ var self = this,
+ mode = getMode(self, from);
+ var firstLine = self.getLine(from.line);
+ if (firstLine == null || probablyInsideString(self, from, firstLine)) return;
+ var commentString = options.lineComment || mode.lineComment;
+ if (!commentString) {
+ if (options.blockCommentStart || mode.blockCommentStart) {
+ options.fullLines = true;
+ self.blockComment(from, to, options);
+ }
+ return;
+ }
+ var end = Math.min(to.ch != 0 || to.line == from.line ? to.line + 1 : to.line, self.lastLine() + 1);
+ var pad = options.padding == null ? " " : options.padding;
+ var blankLines = options.commentBlankLines || from.line == to.line;
+ self.operation(function () {
+ if (options.indent) {
+ var baseString = null;
+ for (var i = from.line; i < end; ++i) {
+ var line = self.getLine(i);
+ var whitespace = line.slice(0, firstNonWS(line));
+ if (baseString == null || baseString.length > whitespace.length) {
+ baseString = whitespace;
+ }
+ }
+ for (var i = from.line; i < end; ++i) {
+ var line = self.getLine(i),
+ cut = baseString.length;
+ if (!blankLines && !nonWS.test(line)) continue;
+ if (line.slice(0, cut) != baseString) cut = firstNonWS(line);
+ self.replaceRange(baseString + commentString + pad, Pos(i, 0), Pos(i, cut));
+ }
+ } else {
+ for (var i = from.line; i < end; ++i) {
+ if (blankLines || nonWS.test(self.getLine(i))) self.replaceRange(commentString + pad, Pos(i, 0));
+ }
+ }
+ });
+ });
+ CodeMirror.defineExtension("blockComment", function (from, to, options) {
+ if (!options) options = noOptions;
+ var self = this,
+ mode = getMode(self, from);
+ var startString = options.blockCommentStart || mode.blockCommentStart;
+ var endString = options.blockCommentEnd || mode.blockCommentEnd;
+ if (!startString || !endString) {
+ if ((options.lineComment || mode.lineComment) && options.fullLines != false) self.lineComment(from, to, options);
+ return;
+ }
+ if (/\bcomment\b/.test(self.getTokenTypeAt(Pos(from.line, 0)))) return;
+ var end = Math.min(to.line, self.lastLine());
+ if (end != from.line && to.ch == 0 && nonWS.test(self.getLine(end))) --end;
+ var pad = options.padding == null ? " " : options.padding;
+ if (from.line > end) return;
+ self.operation(function () {
+ if (options.fullLines != false) {
+ var lastLineHasText = nonWS.test(self.getLine(end));
+ self.replaceRange(pad + endString, Pos(end));
+ self.replaceRange(startString + pad, Pos(from.line, 0));
+ var lead = options.blockCommentLead || mode.blockCommentLead;
+ if (lead != null) for (var i = from.line + 1; i <= end; ++i) if (i != end || lastLineHasText) self.replaceRange(lead + pad, Pos(i, 0));
+ } else {
+ var atCursor = cmp(self.getCursor("to"), to) == 0,
+ empty = !self.somethingSelected();
+ self.replaceRange(endString, to);
+ if (atCursor) self.setSelection(empty ? to : self.getCursor("from"), to);
+ self.replaceRange(startString, from);
+ }
+ });
+ });
+ CodeMirror.defineExtension("uncomment", function (from, to, options) {
+ if (!options) options = noOptions;
+ var self = this,
+ mode = getMode(self, from);
+ var end = Math.min(to.ch != 0 || to.line == from.line ? to.line : to.line - 1, self.lastLine()),
+ start = Math.min(from.line, end);
+
+ // Try finding line comments
+ var lineString = options.lineComment || mode.lineComment,
+ lines = [];
+ var pad = options.padding == null ? " " : options.padding,
+ didSomething;
+ lineComment: {
+ if (!lineString) break lineComment;
+ for (var i = start; i <= end; ++i) {
+ var line = self.getLine(i);
+ var found = line.indexOf(lineString);
+ if (found > -1 && !/comment/.test(self.getTokenTypeAt(Pos(i, found + 1)))) found = -1;
+ if (found == -1 && nonWS.test(line)) break lineComment;
+ if (found > -1 && nonWS.test(line.slice(0, found))) break lineComment;
+ lines.push(line);
+ }
+ self.operation(function () {
+ for (var i = start; i <= end; ++i) {
+ var line = lines[i - start];
+ var pos = line.indexOf(lineString),
+ endPos = pos + lineString.length;
+ if (pos < 0) continue;
+ if (line.slice(endPos, endPos + pad.length) == pad) endPos += pad.length;
+ didSomething = true;
+ self.replaceRange("", Pos(i, pos), Pos(i, endPos));
+ }
+ });
+ if (didSomething) return true;
+ }
+
+ // Try block comments
+ var startString = options.blockCommentStart || mode.blockCommentStart;
+ var endString = options.blockCommentEnd || mode.blockCommentEnd;
+ if (!startString || !endString) return false;
+ var lead = options.blockCommentLead || mode.blockCommentLead;
+ var startLine = self.getLine(start),
+ open = startLine.indexOf(startString);
+ if (open == -1) return false;
+ var endLine = end == start ? startLine : self.getLine(end);
+ var close = endLine.indexOf(endString, end == start ? open + startString.length : 0);
+ var insideStart = Pos(start, open + 1),
+ insideEnd = Pos(end, close + 1);
+ if (close == -1 || !/comment/.test(self.getTokenTypeAt(insideStart)) || !/comment/.test(self.getTokenTypeAt(insideEnd)) || self.getRange(insideStart, insideEnd, "\n").indexOf(endString) > -1) return false;
+
+ // Avoid killing block comments completely outside the selection.
+ // Positions of the last startString before the start of the selection, and the first endString after it.
+ var lastStart = startLine.lastIndexOf(startString, from.ch);
+ var firstEnd = lastStart == -1 ? -1 : startLine.slice(0, from.ch).indexOf(endString, lastStart + startString.length);
+ if (lastStart != -1 && firstEnd != -1 && firstEnd + endString.length != from.ch) return false;
+ // Positions of the first endString after the end of the selection, and the last startString before it.
+ firstEnd = endLine.indexOf(endString, to.ch);
+ var almostLastStart = endLine.slice(to.ch).lastIndexOf(startString, firstEnd - to.ch);
+ lastStart = firstEnd == -1 || almostLastStart == -1 ? -1 : to.ch + almostLastStart;
+ if (firstEnd != -1 && lastStart != -1 && lastStart != to.ch) return false;
+ self.operation(function () {
+ self.replaceRange("", Pos(end, close - (pad && endLine.slice(close - pad.length, close) == pad ? pad.length : 0)), Pos(end, close + endString.length));
+ var openEnd = open + startString.length;
+ if (pad && startLine.slice(openEnd, openEnd + pad.length) == pad) openEnd += pad.length;
+ self.replaceRange("", Pos(start, open), Pos(start, openEnd));
+ if (lead) for (var i = start + 1; i <= end; ++i) {
+ var line = self.getLine(i),
+ found = line.indexOf(lead);
+ if (found == -1 || nonWS.test(line.slice(0, found))) continue;
+ var foundEnd = found + lead.length;
+ if (pad && line.slice(foundEnd, foundEnd + pad.length) == pad) foundEnd += pad.length;
+ self.replaceRange("", Pos(i, found), Pos(i, foundEnd));
+ }
+ });
+ return true;
+ });
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/dialog/dialog.js":
+/*!***************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/dialog/dialog.js ***!
+ \***************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+// Open simple dialogs on top of an editor. Relies on dialog.css.
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ function dialogDiv(cm, template, bottom) {
+ var wrap = cm.getWrapperElement();
+ var dialog;
+ dialog = wrap.appendChild(document.createElement("div"));
+ if (bottom) dialog.className = "CodeMirror-dialog CodeMirror-dialog-bottom";else dialog.className = "CodeMirror-dialog CodeMirror-dialog-top";
+ if (typeof template == "string") {
+ dialog.innerHTML = template;
+ } else {
+ // Assuming it's a detached DOM element.
+ dialog.appendChild(template);
+ }
+ CodeMirror.addClass(wrap, 'dialog-opened');
+ return dialog;
+ }
+ function closeNotification(cm, newVal) {
+ if (cm.state.currentNotificationClose) cm.state.currentNotificationClose();
+ cm.state.currentNotificationClose = newVal;
+ }
+ CodeMirror.defineExtension("openDialog", function (template, callback, options) {
+ if (!options) options = {};
+ closeNotification(this, null);
+ var dialog = dialogDiv(this, template, options.bottom);
+ var closed = false,
+ me = this;
+ function close(newVal) {
+ if (typeof newVal == 'string') {
+ inp.value = newVal;
+ } else {
+ if (closed) return;
+ closed = true;
+ CodeMirror.rmClass(dialog.parentNode, 'dialog-opened');
+ dialog.parentNode.removeChild(dialog);
+ me.focus();
+ if (options.onClose) options.onClose(dialog);
+ }
+ }
+ var inp = dialog.getElementsByTagName("input")[0],
+ button;
+ if (inp) {
+ inp.focus();
+ if (options.value) {
+ inp.value = options.value;
+ if (options.selectValueOnOpen !== false) {
+ inp.select();
+ }
+ }
+ if (options.onInput) CodeMirror.on(inp, "input", function (e) {
+ options.onInput(e, inp.value, close);
+ });
+ if (options.onKeyUp) CodeMirror.on(inp, "keyup", function (e) {
+ options.onKeyUp(e, inp.value, close);
+ });
+ CodeMirror.on(inp, "keydown", function (e) {
+ if (options && options.onKeyDown && options.onKeyDown(e, inp.value, close)) {
+ return;
+ }
+ if (e.keyCode == 27 || options.closeOnEnter !== false && e.keyCode == 13) {
+ inp.blur();
+ CodeMirror.e_stop(e);
+ close();
+ }
+ if (e.keyCode == 13) callback(inp.value, e);
+ });
+ if (options.closeOnBlur !== false) CodeMirror.on(dialog, "focusout", function (evt) {
+ if (evt.relatedTarget !== null) close();
+ });
+ } else if (button = dialog.getElementsByTagName("button")[0]) {
+ CodeMirror.on(button, "click", function () {
+ close();
+ me.focus();
+ });
+ if (options.closeOnBlur !== false) CodeMirror.on(button, "blur", close);
+ button.focus();
+ }
+ return close;
+ });
+ CodeMirror.defineExtension("openConfirm", function (template, callbacks, options) {
+ closeNotification(this, null);
+ var dialog = dialogDiv(this, template, options && options.bottom);
+ var buttons = dialog.getElementsByTagName("button");
+ var closed = false,
+ me = this,
+ blurring = 1;
+ function close() {
+ if (closed) return;
+ closed = true;
+ CodeMirror.rmClass(dialog.parentNode, 'dialog-opened');
+ dialog.parentNode.removeChild(dialog);
+ me.focus();
+ }
+ buttons[0].focus();
+ for (var i = 0; i < buttons.length; ++i) {
+ var b = buttons[i];
+ (function (callback) {
+ CodeMirror.on(b, "click", function (e) {
+ CodeMirror.e_preventDefault(e);
+ close();
+ if (callback) callback(me);
+ });
+ })(callbacks[i]);
+ CodeMirror.on(b, "blur", function () {
+ --blurring;
+ setTimeout(function () {
+ if (blurring <= 0) close();
+ }, 200);
+ });
+ CodeMirror.on(b, "focus", function () {
+ ++blurring;
+ });
+ }
+ });
+
+ /*
+ * openNotification
+ * Opens a notification, that can be closed with an optional timer
+ * (default 5000ms timer) and always closes on click.
+ *
+ * If a notification is opened while another is opened, it will close the
+ * currently opened one and open the new one immediately.
+ */
+ CodeMirror.defineExtension("openNotification", function (template, options) {
+ closeNotification(this, close);
+ var dialog = dialogDiv(this, template, options && options.bottom);
+ var closed = false,
+ doneTimer;
+ var duration = options && typeof options.duration !== "undefined" ? options.duration : 5000;
+ function close() {
+ if (closed) return;
+ closed = true;
+ clearTimeout(doneTimer);
+ CodeMirror.rmClass(dialog.parentNode, 'dialog-opened');
+ dialog.parentNode.removeChild(dialog);
+ }
+ CodeMirror.on(dialog, 'click', function (e) {
+ CodeMirror.e_preventDefault(e);
+ close();
+ });
+ if (duration) doneTimer = setTimeout(close, duration);
+ return close;
+ });
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/edit/closebrackets.js":
+/*!********************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/edit/closebrackets.js ***!
+ \********************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ var defaults = {
+ pairs: "()[]{}''\"\"",
+ closeBefore: ")]}'\":;>",
+ triples: "",
+ explode: "[]{}"
+ };
+ var Pos = CodeMirror.Pos;
+ CodeMirror.defineOption("autoCloseBrackets", false, function (cm, val, old) {
+ if (old && old != CodeMirror.Init) {
+ cm.removeKeyMap(keyMap);
+ cm.state.closeBrackets = null;
+ }
+ if (val) {
+ ensureBound(getOption(val, "pairs"));
+ cm.state.closeBrackets = val;
+ cm.addKeyMap(keyMap);
+ }
+ });
+ function getOption(conf, name) {
+ if (name == "pairs" && typeof conf == "string") return conf;
+ if (typeof conf == "object" && conf[name] != null) return conf[name];
+ return defaults[name];
+ }
+ var keyMap = {
+ Backspace: handleBackspace,
+ Enter: handleEnter
+ };
+ function ensureBound(chars) {
+ for (var i = 0; i < chars.length; i++) {
+ var ch = chars.charAt(i),
+ key = "'" + ch + "'";
+ if (!keyMap[key]) keyMap[key] = handler(ch);
+ }
+ }
+ ensureBound(defaults.pairs + "`");
+ function handler(ch) {
+ return function (cm) {
+ return handleChar(cm, ch);
+ };
+ }
+ function getConfig(cm) {
+ var deflt = cm.state.closeBrackets;
+ if (!deflt || deflt.override) return deflt;
+ var mode = cm.getModeAt(cm.getCursor());
+ return mode.closeBrackets || deflt;
+ }
+ function handleBackspace(cm) {
+ var conf = getConfig(cm);
+ if (!conf || cm.getOption("disableInput")) return CodeMirror.Pass;
+ var pairs = getOption(conf, "pairs");
+ var ranges = cm.listSelections();
+ for (var i = 0; i < ranges.length; i++) {
+ if (!ranges[i].empty()) return CodeMirror.Pass;
+ var around = charsAround(cm, ranges[i].head);
+ if (!around || pairs.indexOf(around) % 2 != 0) return CodeMirror.Pass;
+ }
+ for (var i = ranges.length - 1; i >= 0; i--) {
+ var cur = ranges[i].head;
+ cm.replaceRange("", Pos(cur.line, cur.ch - 1), Pos(cur.line, cur.ch + 1), "+delete");
+ }
+ }
+ function handleEnter(cm) {
+ var conf = getConfig(cm);
+ var explode = conf && getOption(conf, "explode");
+ if (!explode || cm.getOption("disableInput")) return CodeMirror.Pass;
+ var ranges = cm.listSelections();
+ for (var i = 0; i < ranges.length; i++) {
+ if (!ranges[i].empty()) return CodeMirror.Pass;
+ var around = charsAround(cm, ranges[i].head);
+ if (!around || explode.indexOf(around) % 2 != 0) return CodeMirror.Pass;
+ }
+ cm.operation(function () {
+ var linesep = cm.lineSeparator() || "\n";
+ cm.replaceSelection(linesep + linesep, null);
+ moveSel(cm, -1);
+ ranges = cm.listSelections();
+ for (var i = 0; i < ranges.length; i++) {
+ var line = ranges[i].head.line;
+ cm.indentLine(line, null, true);
+ cm.indentLine(line + 1, null, true);
+ }
+ });
+ }
+ function moveSel(cm, dir) {
+ var newRanges = [],
+ ranges = cm.listSelections(),
+ primary = 0;
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i];
+ if (range.head == cm.getCursor()) primary = i;
+ var pos = range.head.ch || dir > 0 ? {
+ line: range.head.line,
+ ch: range.head.ch + dir
+ } : {
+ line: range.head.line - 1
+ };
+ newRanges.push({
+ anchor: pos,
+ head: pos
+ });
+ }
+ cm.setSelections(newRanges, primary);
+ }
+ function contractSelection(sel) {
+ var inverted = CodeMirror.cmpPos(sel.anchor, sel.head) > 0;
+ return {
+ anchor: new Pos(sel.anchor.line, sel.anchor.ch + (inverted ? -1 : 1)),
+ head: new Pos(sel.head.line, sel.head.ch + (inverted ? 1 : -1))
+ };
+ }
+ function handleChar(cm, ch) {
+ var conf = getConfig(cm);
+ if (!conf || cm.getOption("disableInput")) return CodeMirror.Pass;
+ var pairs = getOption(conf, "pairs");
+ var pos = pairs.indexOf(ch);
+ if (pos == -1) return CodeMirror.Pass;
+ var closeBefore = getOption(conf, "closeBefore");
+ var triples = getOption(conf, "triples");
+ var identical = pairs.charAt(pos + 1) == ch;
+ var ranges = cm.listSelections();
+ var opening = pos % 2 == 0;
+ var type;
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i],
+ cur = range.head,
+ curType;
+ var next = cm.getRange(cur, Pos(cur.line, cur.ch + 1));
+ if (opening && !range.empty()) {
+ curType = "surround";
+ } else if ((identical || !opening) && next == ch) {
+ if (identical && stringStartsAfter(cm, cur)) curType = "both";else if (triples.indexOf(ch) >= 0 && cm.getRange(cur, Pos(cur.line, cur.ch + 3)) == ch + ch + ch) curType = "skipThree";else curType = "skip";
+ } else if (identical && cur.ch > 1 && triples.indexOf(ch) >= 0 && cm.getRange(Pos(cur.line, cur.ch - 2), cur) == ch + ch) {
+ if (cur.ch > 2 && /\bstring/.test(cm.getTokenTypeAt(Pos(cur.line, cur.ch - 2)))) return CodeMirror.Pass;
+ curType = "addFour";
+ } else if (identical) {
+ var prev = cur.ch == 0 ? " " : cm.getRange(Pos(cur.line, cur.ch - 1), cur);
+ if (!CodeMirror.isWordChar(next) && prev != ch && !CodeMirror.isWordChar(prev)) curType = "both";else return CodeMirror.Pass;
+ } else if (opening && (next.length === 0 || /\s/.test(next) || closeBefore.indexOf(next) > -1)) {
+ curType = "both";
+ } else {
+ return CodeMirror.Pass;
+ }
+ if (!type) type = curType;else if (type != curType) return CodeMirror.Pass;
+ }
+ var left = pos % 2 ? pairs.charAt(pos - 1) : ch;
+ var right = pos % 2 ? ch : pairs.charAt(pos + 1);
+ cm.operation(function () {
+ if (type == "skip") {
+ moveSel(cm, 1);
+ } else if (type == "skipThree") {
+ moveSel(cm, 3);
+ } else if (type == "surround") {
+ var sels = cm.getSelections();
+ for (var i = 0; i < sels.length; i++) sels[i] = left + sels[i] + right;
+ cm.replaceSelections(sels, "around");
+ sels = cm.listSelections().slice();
+ for (var i = 0; i < sels.length; i++) sels[i] = contractSelection(sels[i]);
+ cm.setSelections(sels);
+ } else if (type == "both") {
+ cm.replaceSelection(left + right, null);
+ cm.triggerElectric(left + right);
+ moveSel(cm, -1);
+ } else if (type == "addFour") {
+ cm.replaceSelection(left + left + left + left, "before");
+ moveSel(cm, 1);
+ }
+ });
+ }
+ function charsAround(cm, pos) {
+ var str = cm.getRange(Pos(pos.line, pos.ch - 1), Pos(pos.line, pos.ch + 1));
+ return str.length == 2 ? str : null;
+ }
+ function stringStartsAfter(cm, pos) {
+ var token = cm.getTokenAt(Pos(pos.line, pos.ch + 1));
+ return /\bstring/.test(token.type) && token.start == pos.ch && (pos.ch == 0 || !/\bstring/.test(cm.getTokenTypeAt(pos)));
+ }
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/edit/matchbrackets.js":
+/*!********************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/edit/matchbrackets.js ***!
+ \********************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ var ie_lt8 = /MSIE \d/.test(navigator.userAgent) && (document.documentMode == null || document.documentMode < 8);
+ var Pos = CodeMirror.Pos;
+ var matching = {
+ "(": ")>",
+ ")": "(<",
+ "[": "]>",
+ "]": "[<",
+ "{": "}>",
+ "}": "{<",
+ "<": ">>",
+ ">": "<<"
+ };
+ function bracketRegex(config) {
+ return config && config.bracketRegex || /[(){}[\]]/;
+ }
+ function findMatchingBracket(cm, where, config) {
+ var line = cm.getLineHandle(where.line),
+ pos = where.ch - 1;
+ var afterCursor = config && config.afterCursor;
+ if (afterCursor == null) afterCursor = /(^| )cm-fat-cursor($| )/.test(cm.getWrapperElement().className);
+ var re = bracketRegex(config);
+
+ // A cursor is defined as between two characters, but in in vim command mode
+ // (i.e. not insert mode), the cursor is visually represented as a
+ // highlighted box on top of the 2nd character. Otherwise, we allow matches
+ // from before or after the cursor.
+ var match = !afterCursor && pos >= 0 && re.test(line.text.charAt(pos)) && matching[line.text.charAt(pos)] || re.test(line.text.charAt(pos + 1)) && matching[line.text.charAt(++pos)];
+ if (!match) return null;
+ var dir = match.charAt(1) == ">" ? 1 : -1;
+ if (config && config.strict && dir > 0 != (pos == where.ch)) return null;
+ var style = cm.getTokenTypeAt(Pos(where.line, pos + 1));
+ var found = scanForBracket(cm, Pos(where.line, pos + (dir > 0 ? 1 : 0)), dir, style, config);
+ if (found == null) return null;
+ return {
+ from: Pos(where.line, pos),
+ to: found && found.pos,
+ match: found && found.ch == match.charAt(0),
+ forward: dir > 0
+ };
+ }
+
+ // bracketRegex is used to specify which type of bracket to scan
+ // should be a regexp, e.g. /[[\]]/
+ //
+ // Note: If "where" is on an open bracket, then this bracket is ignored.
+ //
+ // Returns false when no bracket was found, null when it reached
+ // maxScanLines and gave up
+ function scanForBracket(cm, where, dir, style, config) {
+ var maxScanLen = config && config.maxScanLineLength || 10000;
+ var maxScanLines = config && config.maxScanLines || 1000;
+ var stack = [];
+ var re = bracketRegex(config);
+ var lineEnd = dir > 0 ? Math.min(where.line + maxScanLines, cm.lastLine() + 1) : Math.max(cm.firstLine() - 1, where.line - maxScanLines);
+ for (var lineNo = where.line; lineNo != lineEnd; lineNo += dir) {
+ var line = cm.getLine(lineNo);
+ if (!line) continue;
+ var pos = dir > 0 ? 0 : line.length - 1,
+ end = dir > 0 ? line.length : -1;
+ if (line.length > maxScanLen) continue;
+ if (lineNo == where.line) pos = where.ch - (dir < 0 ? 1 : 0);
+ for (; pos != end; pos += dir) {
+ var ch = line.charAt(pos);
+ if (re.test(ch) && (style === undefined || (cm.getTokenTypeAt(Pos(lineNo, pos + 1)) || "") == (style || ""))) {
+ var match = matching[ch];
+ if (match && match.charAt(1) == ">" == dir > 0) stack.push(ch);else if (!stack.length) return {
+ pos: Pos(lineNo, pos),
+ ch: ch
+ };else stack.pop();
+ }
+ }
+ }
+ return lineNo - dir == (dir > 0 ? cm.lastLine() : cm.firstLine()) ? false : null;
+ }
+ function matchBrackets(cm, autoclear, config) {
+ // Disable brace matching in long lines, since it'll cause hugely slow updates
+ var maxHighlightLen = cm.state.matchBrackets.maxHighlightLineLength || 1000,
+ highlightNonMatching = config && config.highlightNonMatching;
+ var marks = [],
+ ranges = cm.listSelections();
+ for (var i = 0; i < ranges.length; i++) {
+ var match = ranges[i].empty() && findMatchingBracket(cm, ranges[i].head, config);
+ if (match && (match.match || highlightNonMatching !== false) && cm.getLine(match.from.line).length <= maxHighlightLen) {
+ var style = match.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
+ marks.push(cm.markText(match.from, Pos(match.from.line, match.from.ch + 1), {
+ className: style
+ }));
+ if (match.to && cm.getLine(match.to.line).length <= maxHighlightLen) marks.push(cm.markText(match.to, Pos(match.to.line, match.to.ch + 1), {
+ className: style
+ }));
+ }
+ }
+ if (marks.length) {
+ // Kludge to work around the IE bug from issue #1193, where text
+ // input stops going to the textarea whenever this fires.
+ if (ie_lt8 && cm.state.focused) cm.focus();
+ var clear = function () {
+ cm.operation(function () {
+ for (var i = 0; i < marks.length; i++) marks[i].clear();
+ });
+ };
+ if (autoclear) setTimeout(clear, 800);else return clear;
+ }
+ }
+ function doMatchBrackets(cm) {
+ cm.operation(function () {
+ if (cm.state.matchBrackets.currentlyHighlighted) {
+ cm.state.matchBrackets.currentlyHighlighted();
+ cm.state.matchBrackets.currentlyHighlighted = null;
+ }
+ cm.state.matchBrackets.currentlyHighlighted = matchBrackets(cm, false, cm.state.matchBrackets);
+ });
+ }
+ function clearHighlighted(cm) {
+ if (cm.state.matchBrackets && cm.state.matchBrackets.currentlyHighlighted) {
+ cm.state.matchBrackets.currentlyHighlighted();
+ cm.state.matchBrackets.currentlyHighlighted = null;
+ }
+ }
+ CodeMirror.defineOption("matchBrackets", false, function (cm, val, old) {
+ if (old && old != CodeMirror.Init) {
+ cm.off("cursorActivity", doMatchBrackets);
+ cm.off("focus", doMatchBrackets);
+ cm.off("blur", clearHighlighted);
+ clearHighlighted(cm);
+ }
+ if (val) {
+ cm.state.matchBrackets = typeof val == "object" ? val : {};
+ cm.on("cursorActivity", doMatchBrackets);
+ cm.on("focus", doMatchBrackets);
+ cm.on("blur", clearHighlighted);
+ }
+ });
+ CodeMirror.defineExtension("matchBrackets", function () {
+ matchBrackets(this, true);
+ });
+ CodeMirror.defineExtension("findMatchingBracket", function (pos, config, oldConfig) {
+ // Backwards-compatibility kludge
+ if (oldConfig || typeof config == "boolean") {
+ if (!oldConfig) {
+ config = config ? {
+ strict: true
+ } : null;
+ } else {
+ oldConfig.strict = config;
+ config = oldConfig;
+ }
+ }
+ return findMatchingBracket(this, pos, config);
+ });
+ CodeMirror.defineExtension("scanForBracket", function (pos, dir, style, config) {
+ return scanForBracket(this, pos, dir, style, config);
+ });
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/fold/brace-fold.js":
+/*!*****************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/fold/brace-fold.js ***!
+ \*****************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ function bracketFolding(pairs) {
+ return function (cm, start) {
+ var line = start.line,
+ lineText = cm.getLine(line);
+ function findOpening(pair) {
+ var tokenType;
+ for (var at = start.ch, pass = 0;;) {
+ var found = at <= 0 ? -1 : lineText.lastIndexOf(pair[0], at - 1);
+ if (found == -1) {
+ if (pass == 1) break;
+ pass = 1;
+ at = lineText.length;
+ continue;
+ }
+ if (pass == 1 && found < start.ch) break;
+ tokenType = cm.getTokenTypeAt(CodeMirror.Pos(line, found + 1));
+ if (!/^(comment|string)/.test(tokenType)) return {
+ ch: found + 1,
+ tokenType: tokenType,
+ pair: pair
+ };
+ at = found - 1;
+ }
+ }
+ function findRange(found) {
+ var count = 1,
+ lastLine = cm.lastLine(),
+ end,
+ startCh = found.ch,
+ endCh;
+ outer: for (var i = line; i <= lastLine; ++i) {
+ var text = cm.getLine(i),
+ pos = i == line ? startCh : 0;
+ for (;;) {
+ var nextOpen = text.indexOf(found.pair[0], pos),
+ nextClose = text.indexOf(found.pair[1], pos);
+ if (nextOpen < 0) nextOpen = text.length;
+ if (nextClose < 0) nextClose = text.length;
+ pos = Math.min(nextOpen, nextClose);
+ if (pos == text.length) break;
+ if (cm.getTokenTypeAt(CodeMirror.Pos(i, pos + 1)) == found.tokenType) {
+ if (pos == nextOpen) ++count;else if (! --count) {
+ end = i;
+ endCh = pos;
+ break outer;
+ }
+ }
+ ++pos;
+ }
+ }
+ if (end == null || line == end) return null;
+ return {
+ from: CodeMirror.Pos(line, startCh),
+ to: CodeMirror.Pos(end, endCh)
+ };
+ }
+ var found = [];
+ for (var i = 0; i < pairs.length; i++) {
+ var open = findOpening(pairs[i]);
+ if (open) found.push(open);
+ }
+ found.sort(function (a, b) {
+ return a.ch - b.ch;
+ });
+ for (var i = 0; i < found.length; i++) {
+ var range = findRange(found[i]);
+ if (range) return range;
+ }
+ return null;
+ };
+ }
+ CodeMirror.registerHelper("fold", "brace", bracketFolding([["{", "}"], ["[", "]"]]));
+ CodeMirror.registerHelper("fold", "brace-paren", bracketFolding([["{", "}"], ["[", "]"], ["(", ")"]]));
+ CodeMirror.registerHelper("fold", "import", function (cm, start) {
+ function hasImport(line) {
+ if (line < cm.firstLine() || line > cm.lastLine()) return null;
+ var start = cm.getTokenAt(CodeMirror.Pos(line, 1));
+ if (!/\S/.test(start.string)) start = cm.getTokenAt(CodeMirror.Pos(line, start.end + 1));
+ if (start.type != "keyword" || start.string != "import") return null;
+ // Now find closing semicolon, return its position
+ for (var i = line, e = Math.min(cm.lastLine(), line + 10); i <= e; ++i) {
+ var text = cm.getLine(i),
+ semi = text.indexOf(";");
+ if (semi != -1) return {
+ startCh: start.end,
+ end: CodeMirror.Pos(i, semi)
+ };
+ }
+ }
+ var startLine = start.line,
+ has = hasImport(startLine),
+ prev;
+ if (!has || hasImport(startLine - 1) || (prev = hasImport(startLine - 2)) && prev.end.line == startLine - 1) return null;
+ for (var end = has.end;;) {
+ var next = hasImport(end.line + 1);
+ if (next == null) break;
+ end = next.end;
+ }
+ return {
+ from: cm.clipPos(CodeMirror.Pos(startLine, has.startCh + 1)),
+ to: end
+ };
+ });
+ CodeMirror.registerHelper("fold", "include", function (cm, start) {
+ function hasInclude(line) {
+ if (line < cm.firstLine() || line > cm.lastLine()) return null;
+ var start = cm.getTokenAt(CodeMirror.Pos(line, 1));
+ if (!/\S/.test(start.string)) start = cm.getTokenAt(CodeMirror.Pos(line, start.end + 1));
+ if (start.type == "meta" && start.string.slice(0, 8) == "#include") return start.start + 8;
+ }
+ var startLine = start.line,
+ has = hasInclude(startLine);
+ if (has == null || hasInclude(startLine - 1) != null) return null;
+ for (var end = startLine;;) {
+ var next = hasInclude(end + 1);
+ if (next == null) break;
+ ++end;
+ }
+ return {
+ from: CodeMirror.Pos(startLine, has + 1),
+ to: cm.clipPos(CodeMirror.Pos(end))
+ };
+ });
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/fold/foldcode.js":
+/*!***************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/fold/foldcode.js ***!
+ \***************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ function doFold(cm, pos, options, force) {
+ if (options && options.call) {
+ var finder = options;
+ options = null;
+ } else {
+ var finder = getOption(cm, options, "rangeFinder");
+ }
+ if (typeof pos == "number") pos = CodeMirror.Pos(pos, 0);
+ var minSize = getOption(cm, options, "minFoldSize");
+ function getRange(allowFolded) {
+ var range = finder(cm, pos);
+ if (!range || range.to.line - range.from.line < minSize) return null;
+ if (force === "fold") return range;
+ var marks = cm.findMarksAt(range.from);
+ for (var i = 0; i < marks.length; ++i) {
+ if (marks[i].__isFold) {
+ if (!allowFolded) return null;
+ range.cleared = true;
+ marks[i].clear();
+ }
+ }
+ return range;
+ }
+ var range = getRange(true);
+ if (getOption(cm, options, "scanUp")) while (!range && pos.line > cm.firstLine()) {
+ pos = CodeMirror.Pos(pos.line - 1, 0);
+ range = getRange(false);
+ }
+ if (!range || range.cleared || force === "unfold") return;
+ var myWidget = makeWidget(cm, options, range);
+ CodeMirror.on(myWidget, "mousedown", function (e) {
+ myRange.clear();
+ CodeMirror.e_preventDefault(e);
+ });
+ var myRange = cm.markText(range.from, range.to, {
+ replacedWith: myWidget,
+ clearOnEnter: getOption(cm, options, "clearOnEnter"),
+ __isFold: true
+ });
+ myRange.on("clear", function (from, to) {
+ CodeMirror.signal(cm, "unfold", cm, from, to);
+ });
+ CodeMirror.signal(cm, "fold", cm, range.from, range.to);
+ }
+ function makeWidget(cm, options, range) {
+ var widget = getOption(cm, options, "widget");
+ if (typeof widget == "function") {
+ widget = widget(range.from, range.to);
+ }
+ if (typeof widget == "string") {
+ var text = document.createTextNode(widget);
+ widget = document.createElement("span");
+ widget.appendChild(text);
+ widget.className = "CodeMirror-foldmarker";
+ } else if (widget) {
+ widget = widget.cloneNode(true);
+ }
+ return widget;
+ }
+
+ // Clumsy backwards-compatible interface
+ CodeMirror.newFoldFunction = function (rangeFinder, widget) {
+ return function (cm, pos) {
+ doFold(cm, pos, {
+ rangeFinder: rangeFinder,
+ widget: widget
+ });
+ };
+ };
+
+ // New-style interface
+ CodeMirror.defineExtension("foldCode", function (pos, options, force) {
+ doFold(this, pos, options, force);
+ });
+ CodeMirror.defineExtension("isFolded", function (pos) {
+ var marks = this.findMarksAt(pos);
+ for (var i = 0; i < marks.length; ++i) if (marks[i].__isFold) return true;
+ });
+ CodeMirror.commands.toggleFold = function (cm) {
+ cm.foldCode(cm.getCursor());
+ };
+ CodeMirror.commands.fold = function (cm) {
+ cm.foldCode(cm.getCursor(), null, "fold");
+ };
+ CodeMirror.commands.unfold = function (cm) {
+ cm.foldCode(cm.getCursor(), {
+ scanUp: false
+ }, "unfold");
+ };
+ CodeMirror.commands.foldAll = function (cm) {
+ cm.operation(function () {
+ for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++) cm.foldCode(CodeMirror.Pos(i, 0), {
+ scanUp: false
+ }, "fold");
+ });
+ };
+ CodeMirror.commands.unfoldAll = function (cm) {
+ cm.operation(function () {
+ for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++) cm.foldCode(CodeMirror.Pos(i, 0), {
+ scanUp: false
+ }, "unfold");
+ });
+ };
+ CodeMirror.registerHelper("fold", "combine", function () {
+ var funcs = Array.prototype.slice.call(arguments, 0);
+ return function (cm, start) {
+ for (var i = 0; i < funcs.length; ++i) {
+ var found = funcs[i](cm, start);
+ if (found) return found;
+ }
+ };
+ });
+ CodeMirror.registerHelper("fold", "auto", function (cm, start) {
+ var helpers = cm.getHelpers(start, "fold");
+ for (var i = 0; i < helpers.length; i++) {
+ var cur = helpers[i](cm, start);
+ if (cur) return cur;
+ }
+ });
+ var defaultOptions = {
+ rangeFinder: CodeMirror.fold.auto,
+ widget: "\u2194",
+ minFoldSize: 0,
+ scanUp: false,
+ clearOnEnter: true
+ };
+ CodeMirror.defineOption("foldOptions", null);
+ function getOption(cm, options, name) {
+ if (options && options[name] !== undefined) return options[name];
+ var editorOptions = cm.options.foldOptions;
+ if (editorOptions && editorOptions[name] !== undefined) return editorOptions[name];
+ return defaultOptions[name];
+ }
+ CodeMirror.defineExtension("foldOption", function (options, name) {
+ return getOption(this, options, name);
+ });
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/fold/foldgutter.js":
+/*!*****************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/fold/foldgutter.js ***!
+ \*****************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"), __webpack_require__(/*! ./foldcode */ "../../../node_modules/codemirror/addon/fold/foldcode.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ CodeMirror.defineOption("foldGutter", false, function (cm, val, old) {
+ if (old && old != CodeMirror.Init) {
+ cm.clearGutter(cm.state.foldGutter.options.gutter);
+ cm.state.foldGutter = null;
+ cm.off("gutterClick", onGutterClick);
+ cm.off("changes", onChange);
+ cm.off("viewportChange", onViewportChange);
+ cm.off("fold", onFold);
+ cm.off("unfold", onFold);
+ cm.off("swapDoc", onChange);
+ }
+ if (val) {
+ cm.state.foldGutter = new State(parseOptions(val));
+ updateInViewport(cm);
+ cm.on("gutterClick", onGutterClick);
+ cm.on("changes", onChange);
+ cm.on("viewportChange", onViewportChange);
+ cm.on("fold", onFold);
+ cm.on("unfold", onFold);
+ cm.on("swapDoc", onChange);
+ }
+ });
+ var Pos = CodeMirror.Pos;
+ function State(options) {
+ this.options = options;
+ this.from = this.to = 0;
+ }
+ function parseOptions(opts) {
+ if (opts === true) opts = {};
+ if (opts.gutter == null) opts.gutter = "CodeMirror-foldgutter";
+ if (opts.indicatorOpen == null) opts.indicatorOpen = "CodeMirror-foldgutter-open";
+ if (opts.indicatorFolded == null) opts.indicatorFolded = "CodeMirror-foldgutter-folded";
+ return opts;
+ }
+ function isFolded(cm, line) {
+ var marks = cm.findMarks(Pos(line, 0), Pos(line + 1, 0));
+ for (var i = 0; i < marks.length; ++i) {
+ if (marks[i].__isFold) {
+ var fromPos = marks[i].find(-1);
+ if (fromPos && fromPos.line === line) return marks[i];
+ }
+ }
+ }
+ function marker(spec) {
+ if (typeof spec == "string") {
+ var elt = document.createElement("div");
+ elt.className = spec + " CodeMirror-guttermarker-subtle";
+ return elt;
+ } else {
+ return spec.cloneNode(true);
+ }
+ }
+ function updateFoldInfo(cm, from, to) {
+ var opts = cm.state.foldGutter.options,
+ cur = from - 1;
+ var minSize = cm.foldOption(opts, "minFoldSize");
+ var func = cm.foldOption(opts, "rangeFinder");
+ // we can reuse the built-in indicator element if its className matches the new state
+ var clsFolded = typeof opts.indicatorFolded == "string" && classTest(opts.indicatorFolded);
+ var clsOpen = typeof opts.indicatorOpen == "string" && classTest(opts.indicatorOpen);
+ cm.eachLine(from, to, function (line) {
+ ++cur;
+ var mark = null;
+ var old = line.gutterMarkers;
+ if (old) old = old[opts.gutter];
+ if (isFolded(cm, cur)) {
+ if (clsFolded && old && clsFolded.test(old.className)) return;
+ mark = marker(opts.indicatorFolded);
+ } else {
+ var pos = Pos(cur, 0);
+ var range = func && func(cm, pos);
+ if (range && range.to.line - range.from.line >= minSize) {
+ if (clsOpen && old && clsOpen.test(old.className)) return;
+ mark = marker(opts.indicatorOpen);
+ }
+ }
+ if (!mark && !old) return;
+ cm.setGutterMarker(line, opts.gutter, mark);
+ });
+ }
+
+ // copied from CodeMirror/src/util/dom.js
+ function classTest(cls) {
+ return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*");
+ }
+ function updateInViewport(cm) {
+ var vp = cm.getViewport(),
+ state = cm.state.foldGutter;
+ if (!state) return;
+ cm.operation(function () {
+ updateFoldInfo(cm, vp.from, vp.to);
+ });
+ state.from = vp.from;
+ state.to = vp.to;
+ }
+ function onGutterClick(cm, line, gutter) {
+ var state = cm.state.foldGutter;
+ if (!state) return;
+ var opts = state.options;
+ if (gutter != opts.gutter) return;
+ var folded = isFolded(cm, line);
+ if (folded) folded.clear();else cm.foldCode(Pos(line, 0), opts);
+ }
+ function onChange(cm) {
+ var state = cm.state.foldGutter;
+ if (!state) return;
+ var opts = state.options;
+ state.from = state.to = 0;
+ clearTimeout(state.changeUpdate);
+ state.changeUpdate = setTimeout(function () {
+ updateInViewport(cm);
+ }, opts.foldOnChangeTimeSpan || 600);
+ }
+ function onViewportChange(cm) {
+ var state = cm.state.foldGutter;
+ if (!state) return;
+ var opts = state.options;
+ clearTimeout(state.changeUpdate);
+ state.changeUpdate = setTimeout(function () {
+ var vp = cm.getViewport();
+ if (state.from == state.to || vp.from - state.to > 20 || state.from - vp.to > 20) {
+ updateInViewport(cm);
+ } else {
+ cm.operation(function () {
+ if (vp.from < state.from) {
+ updateFoldInfo(cm, vp.from, state.from);
+ state.from = vp.from;
+ }
+ if (vp.to > state.to) {
+ updateFoldInfo(cm, state.to, vp.to);
+ state.to = vp.to;
+ }
+ });
+ }
+ }, opts.updateViewportTimeSpan || 400);
+ }
+ function onFold(cm, from) {
+ var state = cm.state.foldGutter;
+ if (!state) return;
+ var line = from.line;
+ if (line >= state.from && line < state.to) updateFoldInfo(cm, line, line + 1);
+ }
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/hint/show-hint.js":
+/*!****************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/hint/show-hint.js ***!
+ \****************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+// declare global: DOMRect
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ var HINT_ELEMENT_CLASS = "CodeMirror-hint";
+ var ACTIVE_HINT_ELEMENT_CLASS = "CodeMirror-hint-active";
+
+ // This is the old interface, kept around for now to stay
+ // backwards-compatible.
+ CodeMirror.showHint = function (cm, getHints, options) {
+ if (!getHints) return cm.showHint(options);
+ if (options && options.async) getHints.async = true;
+ var newOpts = {
+ hint: getHints
+ };
+ if (options) for (var prop in options) newOpts[prop] = options[prop];
+ return cm.showHint(newOpts);
+ };
+ CodeMirror.defineExtension("showHint", function (options) {
+ options = parseOptions(this, this.getCursor("start"), options);
+ var selections = this.listSelections();
+ if (selections.length > 1) return;
+ // By default, don't allow completion when something is selected.
+ // A hint function can have a `supportsSelection` property to
+ // indicate that it can handle selections.
+ if (this.somethingSelected()) {
+ if (!options.hint.supportsSelection) return;
+ // Don't try with cross-line selections
+ for (var i = 0; i < selections.length; i++) if (selections[i].head.line != selections[i].anchor.line) return;
+ }
+ if (this.state.completionActive) this.state.completionActive.close();
+ var completion = this.state.completionActive = new Completion(this, options);
+ if (!completion.options.hint) return;
+ CodeMirror.signal(this, "startCompletion", this);
+ completion.update(true);
+ });
+ CodeMirror.defineExtension("closeHint", function () {
+ if (this.state.completionActive) this.state.completionActive.close();
+ });
+ function Completion(cm, options) {
+ this.cm = cm;
+ this.options = options;
+ this.widget = null;
+ this.debounce = 0;
+ this.tick = 0;
+ this.startPos = this.cm.getCursor("start");
+ this.startLen = this.cm.getLine(this.startPos.line).length - this.cm.getSelection().length;
+ if (this.options.updateOnCursorActivity) {
+ var self = this;
+ cm.on("cursorActivity", this.activityFunc = function () {
+ self.cursorActivity();
+ });
+ }
+ }
+ var requestAnimationFrame = window.requestAnimationFrame || function (fn) {
+ return setTimeout(fn, 1000 / 60);
+ };
+ var cancelAnimationFrame = window.cancelAnimationFrame || clearTimeout;
+ Completion.prototype = {
+ close: function () {
+ if (!this.active()) return;
+ this.cm.state.completionActive = null;
+ this.tick = null;
+ if (this.options.updateOnCursorActivity) {
+ this.cm.off("cursorActivity", this.activityFunc);
+ }
+ if (this.widget && this.data) CodeMirror.signal(this.data, "close");
+ if (this.widget) this.widget.close();
+ CodeMirror.signal(this.cm, "endCompletion", this.cm);
+ },
+ active: function () {
+ return this.cm.state.completionActive == this;
+ },
+ pick: function (data, i) {
+ var completion = data.list[i],
+ self = this;
+ this.cm.operation(function () {
+ if (completion.hint) completion.hint(self.cm, data, completion);else self.cm.replaceRange(getText(completion), completion.from || data.from, completion.to || data.to, "complete");
+ CodeMirror.signal(data, "pick", completion);
+ self.cm.scrollIntoView();
+ });
+ if (this.options.closeOnPick) {
+ this.close();
+ }
+ },
+ cursorActivity: function () {
+ if (this.debounce) {
+ cancelAnimationFrame(this.debounce);
+ this.debounce = 0;
+ }
+ var identStart = this.startPos;
+ if (this.data) {
+ identStart = this.data.from;
+ }
+ var pos = this.cm.getCursor(),
+ line = this.cm.getLine(pos.line);
+ if (pos.line != this.startPos.line || line.length - pos.ch != this.startLen - this.startPos.ch || pos.ch < identStart.ch || this.cm.somethingSelected() || !pos.ch || this.options.closeCharacters.test(line.charAt(pos.ch - 1))) {
+ this.close();
+ } else {
+ var self = this;
+ this.debounce = requestAnimationFrame(function () {
+ self.update();
+ });
+ if (this.widget) this.widget.disable();
+ }
+ },
+ update: function (first) {
+ if (this.tick == null) return;
+ var self = this,
+ myTick = ++this.tick;
+ fetchHints(this.options.hint, this.cm, this.options, function (data) {
+ if (self.tick == myTick) self.finishUpdate(data, first);
+ });
+ },
+ finishUpdate: function (data, first) {
+ if (this.data) CodeMirror.signal(this.data, "update");
+ var picked = this.widget && this.widget.picked || first && this.options.completeSingle;
+ if (this.widget) this.widget.close();
+ this.data = data;
+ if (data && data.list.length) {
+ if (picked && data.list.length == 1) {
+ this.pick(data, 0);
+ } else {
+ this.widget = new Widget(this, data);
+ CodeMirror.signal(data, "shown");
+ }
+ }
+ }
+ };
+ function parseOptions(cm, pos, options) {
+ var editor = cm.options.hintOptions;
+ var out = {};
+ for (var prop in defaultOptions) out[prop] = defaultOptions[prop];
+ if (editor) for (var prop in editor) if (editor[prop] !== undefined) out[prop] = editor[prop];
+ if (options) for (var prop in options) if (options[prop] !== undefined) out[prop] = options[prop];
+ if (out.hint.resolve) out.hint = out.hint.resolve(cm, pos);
+ return out;
+ }
+ function getText(completion) {
+ if (typeof completion == "string") return completion;else return completion.text;
+ }
+ function buildKeyMap(completion, handle) {
+ var baseMap = {
+ Up: function () {
+ handle.moveFocus(-1);
+ },
+ Down: function () {
+ handle.moveFocus(1);
+ },
+ PageUp: function () {
+ handle.moveFocus(-handle.menuSize() + 1, true);
+ },
+ PageDown: function () {
+ handle.moveFocus(handle.menuSize() - 1, true);
+ },
+ Home: function () {
+ handle.setFocus(0);
+ },
+ End: function () {
+ handle.setFocus(handle.length - 1);
+ },
+ Enter: handle.pick,
+ Tab: handle.pick,
+ Esc: handle.close
+ };
+ var mac = /Mac/.test(navigator.platform);
+ if (mac) {
+ baseMap["Ctrl-P"] = function () {
+ handle.moveFocus(-1);
+ };
+ baseMap["Ctrl-N"] = function () {
+ handle.moveFocus(1);
+ };
+ }
+ var custom = completion.options.customKeys;
+ var ourMap = custom ? {} : baseMap;
+ function addBinding(key, val) {
+ var bound;
+ if (typeof val != "string") bound = function (cm) {
+ return val(cm, handle);
+ };
+ // This mechanism is deprecated
+ else if (baseMap.hasOwnProperty(val)) bound = baseMap[val];else bound = val;
+ ourMap[key] = bound;
+ }
+ if (custom) for (var key in custom) if (custom.hasOwnProperty(key)) addBinding(key, custom[key]);
+ var extra = completion.options.extraKeys;
+ if (extra) for (var key in extra) if (extra.hasOwnProperty(key)) addBinding(key, extra[key]);
+ return ourMap;
+ }
+ function getHintElement(hintsElement, el) {
+ while (el && el != hintsElement) {
+ if (el.nodeName.toUpperCase() === "LI" && el.parentNode == hintsElement) return el;
+ el = el.parentNode;
+ }
+ }
+ function Widget(completion, data) {
+ this.id = "cm-complete-" + Math.floor(Math.random(1e6));
+ this.completion = completion;
+ this.data = data;
+ this.picked = false;
+ var widget = this,
+ cm = completion.cm;
+ var ownerDocument = cm.getInputField().ownerDocument;
+ var parentWindow = ownerDocument.defaultView || ownerDocument.parentWindow;
+ var hints = this.hints = ownerDocument.createElement("ul");
+ hints.setAttribute("role", "listbox");
+ hints.setAttribute("aria-expanded", "true");
+ hints.id = this.id;
+ var theme = completion.cm.options.theme;
+ hints.className = "CodeMirror-hints " + theme;
+ this.selectedHint = data.selectedHint || 0;
+ var completions = data.list;
+ for (var i = 0; i < completions.length; ++i) {
+ var elt = hints.appendChild(ownerDocument.createElement("li")),
+ cur = completions[i];
+ var className = HINT_ELEMENT_CLASS + (i != this.selectedHint ? "" : " " + ACTIVE_HINT_ELEMENT_CLASS);
+ if (cur.className != null) className = cur.className + " " + className;
+ elt.className = className;
+ if (i == this.selectedHint) elt.setAttribute("aria-selected", "true");
+ elt.id = this.id + "-" + i;
+ elt.setAttribute("role", "option");
+ if (cur.render) cur.render(elt, data, cur);else elt.appendChild(ownerDocument.createTextNode(cur.displayText || getText(cur)));
+ elt.hintId = i;
+ }
+ var container = completion.options.container || ownerDocument.body;
+ var pos = cm.cursorCoords(completion.options.alignWithWord ? data.from : null);
+ var left = pos.left,
+ top = pos.bottom,
+ below = true;
+ var offsetLeft = 0,
+ offsetTop = 0;
+ if (container !== ownerDocument.body) {
+ // We offset the cursor position because left and top are relative to the offsetParent's top left corner.
+ var isContainerPositioned = ['absolute', 'relative', 'fixed'].indexOf(parentWindow.getComputedStyle(container).position) !== -1;
+ var offsetParent = isContainerPositioned ? container : container.offsetParent;
+ var offsetParentPosition = offsetParent.getBoundingClientRect();
+ var bodyPosition = ownerDocument.body.getBoundingClientRect();
+ offsetLeft = offsetParentPosition.left - bodyPosition.left - offsetParent.scrollLeft;
+ offsetTop = offsetParentPosition.top - bodyPosition.top - offsetParent.scrollTop;
+ }
+ hints.style.left = left - offsetLeft + "px";
+ hints.style.top = top - offsetTop + "px";
+
+ // If we're at the edge of the screen, then we want the menu to appear on the left of the cursor.
+ var winW = parentWindow.innerWidth || Math.max(ownerDocument.body.offsetWidth, ownerDocument.documentElement.offsetWidth);
+ var winH = parentWindow.innerHeight || Math.max(ownerDocument.body.offsetHeight, ownerDocument.documentElement.offsetHeight);
+ container.appendChild(hints);
+ cm.getInputField().setAttribute("aria-autocomplete", "list");
+ cm.getInputField().setAttribute("aria-owns", this.id);
+ cm.getInputField().setAttribute("aria-activedescendant", this.id + "-" + this.selectedHint);
+ var box = completion.options.moveOnOverlap ? hints.getBoundingClientRect() : new DOMRect();
+ var scrolls = completion.options.paddingForScrollbar ? hints.scrollHeight > hints.clientHeight + 1 : false;
+
+ // Compute in the timeout to avoid reflow on init
+ var startScroll;
+ setTimeout(function () {
+ startScroll = cm.getScrollInfo();
+ });
+ var overlapY = box.bottom - winH;
+ if (overlapY > 0) {
+ var height = box.bottom - box.top,
+ curTop = pos.top - (pos.bottom - box.top);
+ if (curTop - height > 0) {
+ // Fits above cursor
+ hints.style.top = (top = pos.top - height - offsetTop) + "px";
+ below = false;
+ } else if (height > winH) {
+ hints.style.height = winH - 5 + "px";
+ hints.style.top = (top = pos.bottom - box.top - offsetTop) + "px";
+ var cursor = cm.getCursor();
+ if (data.from.ch != cursor.ch) {
+ pos = cm.cursorCoords(cursor);
+ hints.style.left = (left = pos.left - offsetLeft) + "px";
+ box = hints.getBoundingClientRect();
+ }
+ }
+ }
+ var overlapX = box.right - winW;
+ if (scrolls) overlapX += cm.display.nativeBarWidth;
+ if (overlapX > 0) {
+ if (box.right - box.left > winW) {
+ hints.style.width = winW - 5 + "px";
+ overlapX -= box.right - box.left - winW;
+ }
+ hints.style.left = (left = pos.left - overlapX - offsetLeft) + "px";
+ }
+ if (scrolls) for (var node = hints.firstChild; node; node = node.nextSibling) node.style.paddingRight = cm.display.nativeBarWidth + "px";
+ cm.addKeyMap(this.keyMap = buildKeyMap(completion, {
+ moveFocus: function (n, avoidWrap) {
+ widget.changeActive(widget.selectedHint + n, avoidWrap);
+ },
+ setFocus: function (n) {
+ widget.changeActive(n);
+ },
+ menuSize: function () {
+ return widget.screenAmount();
+ },
+ length: completions.length,
+ close: function () {
+ completion.close();
+ },
+ pick: function () {
+ widget.pick();
+ },
+ data: data
+ }));
+ if (completion.options.closeOnUnfocus) {
+ var closingOnBlur;
+ cm.on("blur", this.onBlur = function () {
+ closingOnBlur = setTimeout(function () {
+ completion.close();
+ }, 100);
+ });
+ cm.on("focus", this.onFocus = function () {
+ clearTimeout(closingOnBlur);
+ });
+ }
+ cm.on("scroll", this.onScroll = function () {
+ var curScroll = cm.getScrollInfo(),
+ editor = cm.getWrapperElement().getBoundingClientRect();
+ if (!startScroll) startScroll = cm.getScrollInfo();
+ var newTop = top + startScroll.top - curScroll.top;
+ var point = newTop - (parentWindow.pageYOffset || (ownerDocument.documentElement || ownerDocument.body).scrollTop);
+ if (!below) point += hints.offsetHeight;
+ if (point <= editor.top || point >= editor.bottom) return completion.close();
+ hints.style.top = newTop + "px";
+ hints.style.left = left + startScroll.left - curScroll.left + "px";
+ });
+ CodeMirror.on(hints, "dblclick", function (e) {
+ var t = getHintElement(hints, e.target || e.srcElement);
+ if (t && t.hintId != null) {
+ widget.changeActive(t.hintId);
+ widget.pick();
+ }
+ });
+ CodeMirror.on(hints, "click", function (e) {
+ var t = getHintElement(hints, e.target || e.srcElement);
+ if (t && t.hintId != null) {
+ widget.changeActive(t.hintId);
+ if (completion.options.completeOnSingleClick) widget.pick();
+ }
+ });
+ CodeMirror.on(hints, "mousedown", function () {
+ setTimeout(function () {
+ cm.focus();
+ }, 20);
+ });
+
+ // The first hint doesn't need to be scrolled to on init
+ var selectedHintRange = this.getSelectedHintRange();
+ if (selectedHintRange.from !== 0 || selectedHintRange.to !== 0) {
+ this.scrollToActive();
+ }
+ CodeMirror.signal(data, "select", completions[this.selectedHint], hints.childNodes[this.selectedHint]);
+ return true;
+ }
+ Widget.prototype = {
+ close: function () {
+ if (this.completion.widget != this) return;
+ this.completion.widget = null;
+ if (this.hints.parentNode) this.hints.parentNode.removeChild(this.hints);
+ this.completion.cm.removeKeyMap(this.keyMap);
+ var input = this.completion.cm.getInputField();
+ input.removeAttribute("aria-activedescendant");
+ input.removeAttribute("aria-owns");
+ var cm = this.completion.cm;
+ if (this.completion.options.closeOnUnfocus) {
+ cm.off("blur", this.onBlur);
+ cm.off("focus", this.onFocus);
+ }
+ cm.off("scroll", this.onScroll);
+ },
+ disable: function () {
+ this.completion.cm.removeKeyMap(this.keyMap);
+ var widget = this;
+ this.keyMap = {
+ Enter: function () {
+ widget.picked = true;
+ }
+ };
+ this.completion.cm.addKeyMap(this.keyMap);
+ },
+ pick: function () {
+ this.completion.pick(this.data, this.selectedHint);
+ },
+ changeActive: function (i, avoidWrap) {
+ if (i >= this.data.list.length) i = avoidWrap ? this.data.list.length - 1 : 0;else if (i < 0) i = avoidWrap ? 0 : this.data.list.length - 1;
+ if (this.selectedHint == i) return;
+ var node = this.hints.childNodes[this.selectedHint];
+ if (node) {
+ node.className = node.className.replace(" " + ACTIVE_HINT_ELEMENT_CLASS, "");
+ node.removeAttribute("aria-selected");
+ }
+ node = this.hints.childNodes[this.selectedHint = i];
+ node.className += " " + ACTIVE_HINT_ELEMENT_CLASS;
+ node.setAttribute("aria-selected", "true");
+ this.completion.cm.getInputField().setAttribute("aria-activedescendant", node.id);
+ this.scrollToActive();
+ CodeMirror.signal(this.data, "select", this.data.list[this.selectedHint], node);
+ },
+ scrollToActive: function () {
+ var selectedHintRange = this.getSelectedHintRange();
+ var node1 = this.hints.childNodes[selectedHintRange.from];
+ var node2 = this.hints.childNodes[selectedHintRange.to];
+ var firstNode = this.hints.firstChild;
+ if (node1.offsetTop < this.hints.scrollTop) this.hints.scrollTop = node1.offsetTop - firstNode.offsetTop;else if (node2.offsetTop + node2.offsetHeight > this.hints.scrollTop + this.hints.clientHeight) this.hints.scrollTop = node2.offsetTop + node2.offsetHeight - this.hints.clientHeight + firstNode.offsetTop;
+ },
+ screenAmount: function () {
+ return Math.floor(this.hints.clientHeight / this.hints.firstChild.offsetHeight) || 1;
+ },
+ getSelectedHintRange: function () {
+ var margin = this.completion.options.scrollMargin || 0;
+ return {
+ from: Math.max(0, this.selectedHint - margin),
+ to: Math.min(this.data.list.length - 1, this.selectedHint + margin)
+ };
+ }
+ };
+ function applicableHelpers(cm, helpers) {
+ if (!cm.somethingSelected()) return helpers;
+ var result = [];
+ for (var i = 0; i < helpers.length; i++) if (helpers[i].supportsSelection) result.push(helpers[i]);
+ return result;
+ }
+ function fetchHints(hint, cm, options, callback) {
+ if (hint.async) {
+ hint(cm, callback, options);
+ } else {
+ var result = hint(cm, options);
+ if (result && result.then) result.then(callback);else callback(result);
+ }
+ }
+ function resolveAutoHints(cm, pos) {
+ var helpers = cm.getHelpers(pos, "hint"),
+ words;
+ if (helpers.length) {
+ var resolved = function (cm, callback, options) {
+ var app = applicableHelpers(cm, helpers);
+ function run(i) {
+ if (i == app.length) return callback(null);
+ fetchHints(app[i], cm, options, function (result) {
+ if (result && result.list.length > 0) callback(result);else run(i + 1);
+ });
+ }
+ run(0);
+ };
+ resolved.async = true;
+ resolved.supportsSelection = true;
+ return resolved;
+ } else if (words = cm.getHelper(cm.getCursor(), "hintWords")) {
+ return function (cm) {
+ return CodeMirror.hint.fromList(cm, {
+ words: words
+ });
+ };
+ } else if (CodeMirror.hint.anyword) {
+ return function (cm, options) {
+ return CodeMirror.hint.anyword(cm, options);
+ };
+ } else {
+ return function () {};
+ }
+ }
+ CodeMirror.registerHelper("hint", "auto", {
+ resolve: resolveAutoHints
+ });
+ CodeMirror.registerHelper("hint", "fromList", function (cm, options) {
+ var cur = cm.getCursor(),
+ token = cm.getTokenAt(cur);
+ var term,
+ from = CodeMirror.Pos(cur.line, token.start),
+ to = cur;
+ if (token.start < cur.ch && /\w/.test(token.string.charAt(cur.ch - token.start - 1))) {
+ term = token.string.substr(0, cur.ch - token.start);
+ } else {
+ term = "";
+ from = cur;
+ }
+ var found = [];
+ for (var i = 0; i < options.words.length; i++) {
+ var word = options.words[i];
+ if (word.slice(0, term.length) == term) found.push(word);
+ }
+ if (found.length) return {
+ list: found,
+ from: from,
+ to: to
+ };
+ });
+ CodeMirror.commands.autocomplete = CodeMirror.showHint;
+ var defaultOptions = {
+ hint: CodeMirror.hint.auto,
+ completeSingle: true,
+ alignWithWord: true,
+ closeCharacters: /[\s()\[\]{};:>,]/,
+ closeOnPick: true,
+ closeOnUnfocus: true,
+ updateOnCursorActivity: true,
+ completeOnSingleClick: true,
+ container: null,
+ customKeys: null,
+ extraKeys: null,
+ paddingForScrollbar: true,
+ moveOnOverlap: true
+ };
+ CodeMirror.defineOption("hintOptions", null);
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/lint/lint.js":
+/*!***********************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/lint/lint.js ***!
+ \***********************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ var GUTTER_ID = "CodeMirror-lint-markers";
+ var LINT_LINE_ID = "CodeMirror-lint-line-";
+ function showTooltip(cm, e, content) {
+ var tt = document.createElement("div");
+ tt.className = "CodeMirror-lint-tooltip cm-s-" + cm.options.theme;
+ tt.appendChild(content.cloneNode(true));
+ if (cm.state.lint.options.selfContain) cm.getWrapperElement().appendChild(tt);else document.body.appendChild(tt);
+ function position(e) {
+ if (!tt.parentNode) return CodeMirror.off(document, "mousemove", position);
+ tt.style.top = Math.max(0, e.clientY - tt.offsetHeight - 5) + "px";
+ tt.style.left = e.clientX + 5 + "px";
+ }
+ CodeMirror.on(document, "mousemove", position);
+ position(e);
+ if (tt.style.opacity != null) tt.style.opacity = 1;
+ return tt;
+ }
+ function rm(elt) {
+ if (elt.parentNode) elt.parentNode.removeChild(elt);
+ }
+ function hideTooltip(tt) {
+ if (!tt.parentNode) return;
+ if (tt.style.opacity == null) rm(tt);
+ tt.style.opacity = 0;
+ setTimeout(function () {
+ rm(tt);
+ }, 600);
+ }
+ function showTooltipFor(cm, e, content, node) {
+ var tooltip = showTooltip(cm, e, content);
+ function hide() {
+ CodeMirror.off(node, "mouseout", hide);
+ if (tooltip) {
+ hideTooltip(tooltip);
+ tooltip = null;
+ }
+ }
+ var poll = setInterval(function () {
+ if (tooltip) for (var n = node;; n = n.parentNode) {
+ if (n && n.nodeType == 11) n = n.host;
+ if (n == document.body) return;
+ if (!n) {
+ hide();
+ break;
+ }
+ }
+ if (!tooltip) return clearInterval(poll);
+ }, 400);
+ CodeMirror.on(node, "mouseout", hide);
+ }
+ function LintState(cm, conf, hasGutter) {
+ this.marked = [];
+ if (conf instanceof Function) conf = {
+ getAnnotations: conf
+ };
+ if (!conf || conf === true) conf = {};
+ this.options = {};
+ this.linterOptions = conf.options || {};
+ for (var prop in defaults) this.options[prop] = defaults[prop];
+ for (var prop in conf) {
+ if (defaults.hasOwnProperty(prop)) {
+ if (conf[prop] != null) this.options[prop] = conf[prop];
+ } else if (!conf.options) {
+ this.linterOptions[prop] = conf[prop];
+ }
+ }
+ this.timeout = null;
+ this.hasGutter = hasGutter;
+ this.onMouseOver = function (e) {
+ onMouseOver(cm, e);
+ };
+ this.waitingFor = 0;
+ }
+ var defaults = {
+ highlightLines: false,
+ tooltips: true,
+ delay: 500,
+ lintOnChange: true,
+ getAnnotations: null,
+ async: false,
+ selfContain: null,
+ formatAnnotation: null,
+ onUpdateLinting: null
+ };
+ function clearMarks(cm) {
+ var state = cm.state.lint;
+ if (state.hasGutter) cm.clearGutter(GUTTER_ID);
+ if (state.options.highlightLines) clearErrorLines(cm);
+ for (var i = 0; i < state.marked.length; ++i) state.marked[i].clear();
+ state.marked.length = 0;
+ }
+ function clearErrorLines(cm) {
+ cm.eachLine(function (line) {
+ var has = line.wrapClass && /\bCodeMirror-lint-line-\w+\b/.exec(line.wrapClass);
+ if (has) cm.removeLineClass(line, "wrap", has[0]);
+ });
+ }
+ function makeMarker(cm, labels, severity, multiple, tooltips) {
+ var marker = document.createElement("div"),
+ inner = marker;
+ marker.className = "CodeMirror-lint-marker CodeMirror-lint-marker-" + severity;
+ if (multiple) {
+ inner = marker.appendChild(document.createElement("div"));
+ inner.className = "CodeMirror-lint-marker CodeMirror-lint-marker-multiple";
+ }
+ if (tooltips != false) CodeMirror.on(inner, "mouseover", function (e) {
+ showTooltipFor(cm, e, labels, inner);
+ });
+ return marker;
+ }
+ function getMaxSeverity(a, b) {
+ if (a == "error") return a;else return b;
+ }
+ function groupByLine(annotations) {
+ var lines = [];
+ for (var i = 0; i < annotations.length; ++i) {
+ var ann = annotations[i],
+ line = ann.from.line;
+ (lines[line] || (lines[line] = [])).push(ann);
+ }
+ return lines;
+ }
+ function annotationTooltip(ann) {
+ var severity = ann.severity;
+ if (!severity) severity = "error";
+ var tip = document.createElement("div");
+ tip.className = "CodeMirror-lint-message CodeMirror-lint-message-" + severity;
+ if (typeof ann.messageHTML != 'undefined') {
+ tip.innerHTML = ann.messageHTML;
+ } else {
+ tip.appendChild(document.createTextNode(ann.message));
+ }
+ return tip;
+ }
+ function lintAsync(cm, getAnnotations) {
+ var state = cm.state.lint;
+ var id = ++state.waitingFor;
+ function abort() {
+ id = -1;
+ cm.off("change", abort);
+ }
+ cm.on("change", abort);
+ getAnnotations(cm.getValue(), function (annotations, arg2) {
+ cm.off("change", abort);
+ if (state.waitingFor != id) return;
+ if (arg2 && annotations instanceof CodeMirror) annotations = arg2;
+ cm.operation(function () {
+ updateLinting(cm, annotations);
+ });
+ }, state.linterOptions, cm);
+ }
+ function startLinting(cm) {
+ var state = cm.state.lint;
+ if (!state) return;
+ var options = state.options;
+ /*
+ * Passing rules in `options` property prevents JSHint (and other linters) from complaining
+ * about unrecognized rules like `onUpdateLinting`, `delay`, `lintOnChange`, etc.
+ */
+ var getAnnotations = options.getAnnotations || cm.getHelper(CodeMirror.Pos(0, 0), "lint");
+ if (!getAnnotations) return;
+ if (options.async || getAnnotations.async) {
+ lintAsync(cm, getAnnotations);
+ } else {
+ var annotations = getAnnotations(cm.getValue(), state.linterOptions, cm);
+ if (!annotations) return;
+ if (annotations.then) annotations.then(function (issues) {
+ cm.operation(function () {
+ updateLinting(cm, issues);
+ });
+ });else cm.operation(function () {
+ updateLinting(cm, annotations);
+ });
+ }
+ }
+ function updateLinting(cm, annotationsNotSorted) {
+ var state = cm.state.lint;
+ if (!state) return;
+ var options = state.options;
+ clearMarks(cm);
+ var annotations = groupByLine(annotationsNotSorted);
+ for (var line = 0; line < annotations.length; ++line) {
+ var anns = annotations[line];
+ if (!anns) continue;
+
+ // filter out duplicate messages
+ var message = [];
+ anns = anns.filter(function (item) {
+ return message.indexOf(item.message) > -1 ? false : message.push(item.message);
+ });
+ var maxSeverity = null;
+ var tipLabel = state.hasGutter && document.createDocumentFragment();
+ for (var i = 0; i < anns.length; ++i) {
+ var ann = anns[i];
+ var severity = ann.severity;
+ if (!severity) severity = "error";
+ maxSeverity = getMaxSeverity(maxSeverity, severity);
+ if (options.formatAnnotation) ann = options.formatAnnotation(ann);
+ if (state.hasGutter) tipLabel.appendChild(annotationTooltip(ann));
+ if (ann.to) state.marked.push(cm.markText(ann.from, ann.to, {
+ className: "CodeMirror-lint-mark CodeMirror-lint-mark-" + severity,
+ __annotation: ann
+ }));
+ }
+ // use original annotations[line] to show multiple messages
+ if (state.hasGutter) cm.setGutterMarker(line, GUTTER_ID, makeMarker(cm, tipLabel, maxSeverity, annotations[line].length > 1, options.tooltips));
+ if (options.highlightLines) cm.addLineClass(line, "wrap", LINT_LINE_ID + maxSeverity);
+ }
+ if (options.onUpdateLinting) options.onUpdateLinting(annotationsNotSorted, annotations, cm);
+ }
+ function onChange(cm) {
+ var state = cm.state.lint;
+ if (!state) return;
+ clearTimeout(state.timeout);
+ state.timeout = setTimeout(function () {
+ startLinting(cm);
+ }, state.options.delay);
+ }
+ function popupTooltips(cm, annotations, e) {
+ var target = e.target || e.srcElement;
+ var tooltip = document.createDocumentFragment();
+ for (var i = 0; i < annotations.length; i++) {
+ var ann = annotations[i];
+ tooltip.appendChild(annotationTooltip(ann));
+ }
+ showTooltipFor(cm, e, tooltip, target);
+ }
+ function onMouseOver(cm, e) {
+ var target = e.target || e.srcElement;
+ if (!/\bCodeMirror-lint-mark-/.test(target.className)) return;
+ var box = target.getBoundingClientRect(),
+ x = (box.left + box.right) / 2,
+ y = (box.top + box.bottom) / 2;
+ var spans = cm.findMarksAt(cm.coordsChar({
+ left: x,
+ top: y
+ }, "client"));
+ var annotations = [];
+ for (var i = 0; i < spans.length; ++i) {
+ var ann = spans[i].__annotation;
+ if (ann) annotations.push(ann);
+ }
+ if (annotations.length) popupTooltips(cm, annotations, e);
+ }
+ CodeMirror.defineOption("lint", false, function (cm, val, old) {
+ if (old && old != CodeMirror.Init) {
+ clearMarks(cm);
+ if (cm.state.lint.options.lintOnChange !== false) cm.off("change", onChange);
+ CodeMirror.off(cm.getWrapperElement(), "mouseover", cm.state.lint.onMouseOver);
+ clearTimeout(cm.state.lint.timeout);
+ delete cm.state.lint;
+ }
+ if (val) {
+ var gutters = cm.getOption("gutters"),
+ hasLintGutter = false;
+ for (var i = 0; i < gutters.length; ++i) if (gutters[i] == GUTTER_ID) hasLintGutter = true;
+ var state = cm.state.lint = new LintState(cm, val, hasLintGutter);
+ if (state.options.lintOnChange) cm.on("change", onChange);
+ if (state.options.tooltips != false && state.options.tooltips != "gutter") CodeMirror.on(cm.getWrapperElement(), "mouseover", state.onMouseOver);
+ startLinting(cm);
+ }
+ });
+ CodeMirror.defineExtension("performLint", function () {
+ startLinting(this);
+ });
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/search/jump-to-line.js":
+/*!*********************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/search/jump-to-line.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+// Defines jumpToLine command. Uses dialog.js if present.
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"), __webpack_require__(/*! ../dialog/dialog */ "../../../node_modules/codemirror/addon/dialog/dialog.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ // default search panel location
+ CodeMirror.defineOption("search", {
+ bottom: false
+ });
+ function dialog(cm, text, shortText, deflt, f) {
+ if (cm.openDialog) cm.openDialog(text, f, {
+ value: deflt,
+ selectValueOnOpen: true,
+ bottom: cm.options.search.bottom
+ });else f(prompt(shortText, deflt));
+ }
+ function getJumpDialog(cm) {
+ return cm.phrase("Jump to line:") + ' ' + cm.phrase("(Use line:column or scroll% syntax)") + ' ';
+ }
+ function interpretLine(cm, string) {
+ var num = Number(string);
+ if (/^[-+]/.test(string)) return cm.getCursor().line + num;else return num - 1;
+ }
+ CodeMirror.commands.jumpToLine = function (cm) {
+ var cur = cm.getCursor();
+ dialog(cm, getJumpDialog(cm), cm.phrase("Jump to line:"), cur.line + 1 + ":" + cur.ch, function (posStr) {
+ if (!posStr) return;
+ var match;
+ if (match = /^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(posStr)) {
+ cm.setCursor(interpretLine(cm, match[1]), Number(match[2]));
+ } else if (match = /^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(posStr)) {
+ var line = Math.round(cm.lineCount() * Number(match[1]) / 100);
+ if (/^[-+]/.test(match[1])) line = cur.line + line + 1;
+ cm.setCursor(line - 1, cur.ch);
+ } else if (match = /^\s*\:?\s*([\+\-]?\d+)\s*/.exec(posStr)) {
+ cm.setCursor(interpretLine(cm, match[1]), cur.ch);
+ }
+ });
+ };
+ CodeMirror.keyMap["default"]["Alt-G"] = "jumpToLine";
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/search/search.js":
+/*!***************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/search/search.js ***!
+ \***************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+// Define search commands. Depends on dialog.js or another
+// implementation of the openDialog method.
+
+// Replace works a little oddly -- it will do the replace on the next
+// Ctrl-G (or whatever is bound to findNext) press. You prevent a
+// replace by making sure the match is no longer selected when hitting
+// Ctrl-G.
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"), __webpack_require__(/*! ./searchcursor */ "../../../node_modules/codemirror/addon/search/searchcursor.js"), __webpack_require__(/*! ../dialog/dialog */ "../../../node_modules/codemirror/addon/dialog/dialog.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ // default search panel location
+ CodeMirror.defineOption("search", {
+ bottom: false
+ });
+ function searchOverlay(query, caseInsensitive) {
+ if (typeof query == "string") query = new RegExp(query.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), caseInsensitive ? "gi" : "g");else if (!query.global) query = new RegExp(query.source, query.ignoreCase ? "gi" : "g");
+ return {
+ token: function (stream) {
+ query.lastIndex = stream.pos;
+ var match = query.exec(stream.string);
+ if (match && match.index == stream.pos) {
+ stream.pos += match[0].length || 1;
+ return "searching";
+ } else if (match) {
+ stream.pos = match.index;
+ } else {
+ stream.skipToEnd();
+ }
+ }
+ };
+ }
+ function SearchState() {
+ this.posFrom = this.posTo = this.lastQuery = this.query = null;
+ this.overlay = null;
+ }
+ function getSearchState(cm) {
+ return cm.state.search || (cm.state.search = new SearchState());
+ }
+ function queryCaseInsensitive(query) {
+ return typeof query == "string" && query == query.toLowerCase();
+ }
+ function getSearchCursor(cm, query, pos) {
+ // Heuristic: if the query string is all lowercase, do a case insensitive search.
+ return cm.getSearchCursor(query, pos, {
+ caseFold: queryCaseInsensitive(query),
+ multiline: true
+ });
+ }
+ function persistentDialog(cm, text, deflt, onEnter, onKeyDown) {
+ cm.openDialog(text, onEnter, {
+ value: deflt,
+ selectValueOnOpen: true,
+ closeOnEnter: false,
+ onClose: function () {
+ clearSearch(cm);
+ },
+ onKeyDown: onKeyDown,
+ bottom: cm.options.search.bottom
+ });
+ }
+ function dialog(cm, text, shortText, deflt, f) {
+ if (cm.openDialog) cm.openDialog(text, f, {
+ value: deflt,
+ selectValueOnOpen: true,
+ bottom: cm.options.search.bottom
+ });else f(prompt(shortText, deflt));
+ }
+ function confirmDialog(cm, text, shortText, fs) {
+ if (cm.openConfirm) cm.openConfirm(text, fs);else if (confirm(shortText)) fs[0]();
+ }
+ function parseString(string) {
+ return string.replace(/\\([nrt\\])/g, function (match, ch) {
+ if (ch == "n") return "\n";
+ if (ch == "r") return "\r";
+ if (ch == "t") return "\t";
+ if (ch == "\\") return "\\";
+ return match;
+ });
+ }
+ function parseQuery(query) {
+ var isRE = query.match(/^\/(.*)\/([a-z]*)$/);
+ if (isRE) {
+ try {
+ query = new RegExp(isRE[1], isRE[2].indexOf("i") == -1 ? "" : "i");
+ } catch (e) {} // Not a regular expression after all, do a string search
+ } else {
+ query = parseString(query);
+ }
+ if (typeof query == "string" ? query == "" : query.test("")) query = /x^/;
+ return query;
+ }
+ function startSearch(cm, state, query) {
+ state.queryText = query;
+ state.query = parseQuery(query);
+ cm.removeOverlay(state.overlay, queryCaseInsensitive(state.query));
+ state.overlay = searchOverlay(state.query, queryCaseInsensitive(state.query));
+ cm.addOverlay(state.overlay);
+ if (cm.showMatchesOnScrollbar) {
+ if (state.annotate) {
+ state.annotate.clear();
+ state.annotate = null;
+ }
+ state.annotate = cm.showMatchesOnScrollbar(state.query, queryCaseInsensitive(state.query));
+ }
+ }
+ function doSearch(cm, rev, persistent, immediate) {
+ var state = getSearchState(cm);
+ if (state.query) return findNext(cm, rev);
+ var q = cm.getSelection() || state.lastQuery;
+ if (q instanceof RegExp && q.source == "x^") q = null;
+ if (persistent && cm.openDialog) {
+ var hiding = null;
+ var searchNext = function (query, event) {
+ CodeMirror.e_stop(event);
+ if (!query) return;
+ if (query != state.queryText) {
+ startSearch(cm, state, query);
+ state.posFrom = state.posTo = cm.getCursor();
+ }
+ if (hiding) hiding.style.opacity = 1;
+ findNext(cm, event.shiftKey, function (_, to) {
+ var dialog;
+ if (to.line < 3 && document.querySelector && (dialog = cm.display.wrapper.querySelector(".CodeMirror-dialog")) && dialog.getBoundingClientRect().bottom - 4 > cm.cursorCoords(to, "window").top) (hiding = dialog).style.opacity = .4;
+ });
+ };
+ persistentDialog(cm, getQueryDialog(cm), q, searchNext, function (event, query) {
+ var keyName = CodeMirror.keyName(event);
+ var extra = cm.getOption('extraKeys'),
+ cmd = extra && extra[keyName] || CodeMirror.keyMap[cm.getOption("keyMap")][keyName];
+ if (cmd == "findNext" || cmd == "findPrev" || cmd == "findPersistentNext" || cmd == "findPersistentPrev") {
+ CodeMirror.e_stop(event);
+ startSearch(cm, getSearchState(cm), query);
+ cm.execCommand(cmd);
+ } else if (cmd == "find" || cmd == "findPersistent") {
+ CodeMirror.e_stop(event);
+ searchNext(query, event);
+ }
+ });
+ if (immediate && q) {
+ startSearch(cm, state, q);
+ findNext(cm, rev);
+ }
+ } else {
+ dialog(cm, getQueryDialog(cm), "Search for:", q, function (query) {
+ if (query && !state.query) cm.operation(function () {
+ startSearch(cm, state, query);
+ state.posFrom = state.posTo = cm.getCursor();
+ findNext(cm, rev);
+ });
+ });
+ }
+ }
+ function findNext(cm, rev, callback) {
+ cm.operation(function () {
+ var state = getSearchState(cm);
+ var cursor = getSearchCursor(cm, state.query, rev ? state.posFrom : state.posTo);
+ if (!cursor.find(rev)) {
+ cursor = getSearchCursor(cm, state.query, rev ? CodeMirror.Pos(cm.lastLine()) : CodeMirror.Pos(cm.firstLine(), 0));
+ if (!cursor.find(rev)) return;
+ }
+ cm.setSelection(cursor.from(), cursor.to());
+ cm.scrollIntoView({
+ from: cursor.from(),
+ to: cursor.to()
+ }, 20);
+ state.posFrom = cursor.from();
+ state.posTo = cursor.to();
+ if (callback) callback(cursor.from(), cursor.to());
+ });
+ }
+ function clearSearch(cm) {
+ cm.operation(function () {
+ var state = getSearchState(cm);
+ state.lastQuery = state.query;
+ if (!state.query) return;
+ state.query = state.queryText = null;
+ cm.removeOverlay(state.overlay);
+ if (state.annotate) {
+ state.annotate.clear();
+ state.annotate = null;
+ }
+ });
+ }
+ function el(tag, attrs) {
+ var element = tag ? document.createElement(tag) : document.createDocumentFragment();
+ for (var key in attrs) {
+ element[key] = attrs[key];
+ }
+ for (var i = 2; i < arguments.length; i++) {
+ var child = arguments[i];
+ element.appendChild(typeof child == "string" ? document.createTextNode(child) : child);
+ }
+ return element;
+ }
+ function getQueryDialog(cm) {
+ return el("", null, el("span", {
+ className: "CodeMirror-search-label"
+ }, cm.phrase("Search:")), " ", el("input", {
+ type: "text",
+ "style": "width: 10em",
+ className: "CodeMirror-search-field"
+ }), " ", el("span", {
+ style: "color: #888",
+ className: "CodeMirror-search-hint"
+ }, cm.phrase("(Use /re/ syntax for regexp search)")));
+ }
+ function getReplaceQueryDialog(cm) {
+ return el("", null, " ", el("input", {
+ type: "text",
+ "style": "width: 10em",
+ className: "CodeMirror-search-field"
+ }), " ", el("span", {
+ style: "color: #888",
+ className: "CodeMirror-search-hint"
+ }, cm.phrase("(Use /re/ syntax for regexp search)")));
+ }
+ function getReplacementQueryDialog(cm) {
+ return el("", null, el("span", {
+ className: "CodeMirror-search-label"
+ }, cm.phrase("With:")), " ", el("input", {
+ type: "text",
+ "style": "width: 10em",
+ className: "CodeMirror-search-field"
+ }));
+ }
+ function getDoReplaceConfirm(cm) {
+ return el("", null, el("span", {
+ className: "CodeMirror-search-label"
+ }, cm.phrase("Replace?")), " ", el("button", {}, cm.phrase("Yes")), " ", el("button", {}, cm.phrase("No")), " ", el("button", {}, cm.phrase("All")), " ", el("button", {}, cm.phrase("Stop")));
+ }
+ function replaceAll(cm, query, text) {
+ cm.operation(function () {
+ for (var cursor = getSearchCursor(cm, query); cursor.findNext();) {
+ if (typeof query != "string") {
+ var match = cm.getRange(cursor.from(), cursor.to()).match(query);
+ cursor.replace(text.replace(/\$(\d)/g, function (_, i) {
+ return match[i];
+ }));
+ } else cursor.replace(text);
+ }
+ });
+ }
+ function replace(cm, all) {
+ if (cm.getOption("readOnly")) return;
+ var query = cm.getSelection() || getSearchState(cm).lastQuery;
+ var dialogText = all ? cm.phrase("Replace all:") : cm.phrase("Replace:");
+ var fragment = el("", null, el("span", {
+ className: "CodeMirror-search-label"
+ }, dialogText), getReplaceQueryDialog(cm));
+ dialog(cm, fragment, dialogText, query, function (query) {
+ if (!query) return;
+ query = parseQuery(query);
+ dialog(cm, getReplacementQueryDialog(cm), cm.phrase("Replace with:"), "", function (text) {
+ text = parseString(text);
+ if (all) {
+ replaceAll(cm, query, text);
+ } else {
+ clearSearch(cm);
+ var cursor = getSearchCursor(cm, query, cm.getCursor("from"));
+ var advance = function () {
+ var start = cursor.from(),
+ match;
+ if (!(match = cursor.findNext())) {
+ cursor = getSearchCursor(cm, query);
+ if (!(match = cursor.findNext()) || start && cursor.from().line == start.line && cursor.from().ch == start.ch) return;
+ }
+ cm.setSelection(cursor.from(), cursor.to());
+ cm.scrollIntoView({
+ from: cursor.from(),
+ to: cursor.to()
+ });
+ confirmDialog(cm, getDoReplaceConfirm(cm), cm.phrase("Replace?"), [function () {
+ doReplace(match);
+ }, advance, function () {
+ replaceAll(cm, query, text);
+ }]);
+ };
+ var doReplace = function (match) {
+ cursor.replace(typeof query == "string" ? text : text.replace(/\$(\d)/g, function (_, i) {
+ return match[i];
+ }));
+ advance();
+ };
+ advance();
+ }
+ });
+ });
+ }
+ CodeMirror.commands.find = function (cm) {
+ clearSearch(cm);
+ doSearch(cm);
+ };
+ CodeMirror.commands.findPersistent = function (cm) {
+ clearSearch(cm);
+ doSearch(cm, false, true);
+ };
+ CodeMirror.commands.findPersistentNext = function (cm) {
+ doSearch(cm, false, true, true);
+ };
+ CodeMirror.commands.findPersistentPrev = function (cm) {
+ doSearch(cm, true, true, true);
+ };
+ CodeMirror.commands.findNext = doSearch;
+ CodeMirror.commands.findPrev = function (cm) {
+ doSearch(cm, true);
+ };
+ CodeMirror.commands.clearSearch = clearSearch;
+ CodeMirror.commands.replace = replace;
+ CodeMirror.commands.replaceAll = function (cm) {
+ replace(cm, true);
+ };
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/addon/search/searchcursor.js":
+/*!*********************************************************************!*\
+ !*** ../../../node_modules/codemirror/addon/search/searchcursor.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ var Pos = CodeMirror.Pos;
+ function regexpFlags(regexp) {
+ var flags = regexp.flags;
+ return flags != null ? flags : (regexp.ignoreCase ? "i" : "") + (regexp.global ? "g" : "") + (regexp.multiline ? "m" : "");
+ }
+ function ensureFlags(regexp, flags) {
+ var current = regexpFlags(regexp),
+ target = current;
+ for (var i = 0; i < flags.length; i++) if (target.indexOf(flags.charAt(i)) == -1) target += flags.charAt(i);
+ return current == target ? regexp : new RegExp(regexp.source, target);
+ }
+ function maybeMultiline(regexp) {
+ return /\\s|\\n|\n|\\W|\\D|\[\^/.test(regexp.source);
+ }
+ function searchRegexpForward(doc, regexp, start) {
+ regexp = ensureFlags(regexp, "g");
+ for (var line = start.line, ch = start.ch, last = doc.lastLine(); line <= last; line++, ch = 0) {
+ regexp.lastIndex = ch;
+ var string = doc.getLine(line),
+ match = regexp.exec(string);
+ if (match) return {
+ from: Pos(line, match.index),
+ to: Pos(line, match.index + match[0].length),
+ match: match
+ };
+ }
+ }
+ function searchRegexpForwardMultiline(doc, regexp, start) {
+ if (!maybeMultiline(regexp)) return searchRegexpForward(doc, regexp, start);
+ regexp = ensureFlags(regexp, "gm");
+ var string,
+ chunk = 1;
+ for (var line = start.line, last = doc.lastLine(); line <= last;) {
+ // This grows the search buffer in exponentially-sized chunks
+ // between matches, so that nearby matches are fast and don't
+ // require concatenating the whole document (in case we're
+ // searching for something that has tons of matches), but at the
+ // same time, the amount of retries is limited.
+ for (var i = 0; i < chunk; i++) {
+ if (line > last) break;
+ var curLine = doc.getLine(line++);
+ string = string == null ? curLine : string + "\n" + curLine;
+ }
+ chunk = chunk * 2;
+ regexp.lastIndex = start.ch;
+ var match = regexp.exec(string);
+ if (match) {
+ var before = string.slice(0, match.index).split("\n"),
+ inside = match[0].split("\n");
+ var startLine = start.line + before.length - 1,
+ startCh = before[before.length - 1].length;
+ return {
+ from: Pos(startLine, startCh),
+ to: Pos(startLine + inside.length - 1, inside.length == 1 ? startCh + inside[0].length : inside[inside.length - 1].length),
+ match: match
+ };
+ }
+ }
+ }
+ function lastMatchIn(string, regexp, endMargin) {
+ var match,
+ from = 0;
+ while (from <= string.length) {
+ regexp.lastIndex = from;
+ var newMatch = regexp.exec(string);
+ if (!newMatch) break;
+ var end = newMatch.index + newMatch[0].length;
+ if (end > string.length - endMargin) break;
+ if (!match || end > match.index + match[0].length) match = newMatch;
+ from = newMatch.index + 1;
+ }
+ return match;
+ }
+ function searchRegexpBackward(doc, regexp, start) {
+ regexp = ensureFlags(regexp, "g");
+ for (var line = start.line, ch = start.ch, first = doc.firstLine(); line >= first; line--, ch = -1) {
+ var string = doc.getLine(line);
+ var match = lastMatchIn(string, regexp, ch < 0 ? 0 : string.length - ch);
+ if (match) return {
+ from: Pos(line, match.index),
+ to: Pos(line, match.index + match[0].length),
+ match: match
+ };
+ }
+ }
+ function searchRegexpBackwardMultiline(doc, regexp, start) {
+ if (!maybeMultiline(regexp)) return searchRegexpBackward(doc, regexp, start);
+ regexp = ensureFlags(regexp, "gm");
+ var string,
+ chunkSize = 1,
+ endMargin = doc.getLine(start.line).length - start.ch;
+ for (var line = start.line, first = doc.firstLine(); line >= first;) {
+ for (var i = 0; i < chunkSize && line >= first; i++) {
+ var curLine = doc.getLine(line--);
+ string = string == null ? curLine : curLine + "\n" + string;
+ }
+ chunkSize *= 2;
+ var match = lastMatchIn(string, regexp, endMargin);
+ if (match) {
+ var before = string.slice(0, match.index).split("\n"),
+ inside = match[0].split("\n");
+ var startLine = line + before.length,
+ startCh = before[before.length - 1].length;
+ return {
+ from: Pos(startLine, startCh),
+ to: Pos(startLine + inside.length - 1, inside.length == 1 ? startCh + inside[0].length : inside[inside.length - 1].length),
+ match: match
+ };
+ }
+ }
+ }
+ var doFold, noFold;
+ if (String.prototype.normalize) {
+ doFold = function (str) {
+ return str.normalize("NFD").toLowerCase();
+ };
+ noFold = function (str) {
+ return str.normalize("NFD");
+ };
+ } else {
+ doFold = function (str) {
+ return str.toLowerCase();
+ };
+ noFold = function (str) {
+ return str;
+ };
+ }
+
+ // Maps a position in a case-folded line back to a position in the original line
+ // (compensating for codepoints increasing in number during folding)
+ function adjustPos(orig, folded, pos, foldFunc) {
+ if (orig.length == folded.length) return pos;
+ for (var min = 0, max = pos + Math.max(0, orig.length - folded.length);;) {
+ if (min == max) return min;
+ var mid = min + max >> 1;
+ var len = foldFunc(orig.slice(0, mid)).length;
+ if (len == pos) return mid;else if (len > pos) max = mid;else min = mid + 1;
+ }
+ }
+ function searchStringForward(doc, query, start, caseFold) {
+ // Empty string would match anything and never progress, so we
+ // define it to match nothing instead.
+ if (!query.length) return null;
+ var fold = caseFold ? doFold : noFold;
+ var lines = fold(query).split(/\r|\n\r?/);
+ search: for (var line = start.line, ch = start.ch, last = doc.lastLine() + 1 - lines.length; line <= last; line++, ch = 0) {
+ var orig = doc.getLine(line).slice(ch),
+ string = fold(orig);
+ if (lines.length == 1) {
+ var found = string.indexOf(lines[0]);
+ if (found == -1) continue search;
+ var start = adjustPos(orig, string, found, fold) + ch;
+ return {
+ from: Pos(line, adjustPos(orig, string, found, fold) + ch),
+ to: Pos(line, adjustPos(orig, string, found + lines[0].length, fold) + ch)
+ };
+ } else {
+ var cutFrom = string.length - lines[0].length;
+ if (string.slice(cutFrom) != lines[0]) continue search;
+ for (var i = 1; i < lines.length - 1; i++) if (fold(doc.getLine(line + i)) != lines[i]) continue search;
+ var end = doc.getLine(line + lines.length - 1),
+ endString = fold(end),
+ lastLine = lines[lines.length - 1];
+ if (endString.slice(0, lastLine.length) != lastLine) continue search;
+ return {
+ from: Pos(line, adjustPos(orig, string, cutFrom, fold) + ch),
+ to: Pos(line + lines.length - 1, adjustPos(end, endString, lastLine.length, fold))
+ };
+ }
+ }
+ }
+ function searchStringBackward(doc, query, start, caseFold) {
+ if (!query.length) return null;
+ var fold = caseFold ? doFold : noFold;
+ var lines = fold(query).split(/\r|\n\r?/);
+ search: for (var line = start.line, ch = start.ch, first = doc.firstLine() - 1 + lines.length; line >= first; line--, ch = -1) {
+ var orig = doc.getLine(line);
+ if (ch > -1) orig = orig.slice(0, ch);
+ var string = fold(orig);
+ if (lines.length == 1) {
+ var found = string.lastIndexOf(lines[0]);
+ if (found == -1) continue search;
+ return {
+ from: Pos(line, adjustPos(orig, string, found, fold)),
+ to: Pos(line, adjustPos(orig, string, found + lines[0].length, fold))
+ };
+ } else {
+ var lastLine = lines[lines.length - 1];
+ if (string.slice(0, lastLine.length) != lastLine) continue search;
+ for (var i = 1, start = line - lines.length + 1; i < lines.length - 1; i++) if (fold(doc.getLine(start + i)) != lines[i]) continue search;
+ var top = doc.getLine(line + 1 - lines.length),
+ topString = fold(top);
+ if (topString.slice(topString.length - lines[0].length) != lines[0]) continue search;
+ return {
+ from: Pos(line + 1 - lines.length, adjustPos(top, topString, top.length - lines[0].length, fold)),
+ to: Pos(line, adjustPos(orig, string, lastLine.length, fold))
+ };
+ }
+ }
+ }
+ function SearchCursor(doc, query, pos, options) {
+ this.atOccurrence = false;
+ this.afterEmptyMatch = false;
+ this.doc = doc;
+ pos = pos ? doc.clipPos(pos) : Pos(0, 0);
+ this.pos = {
+ from: pos,
+ to: pos
+ };
+ var caseFold;
+ if (typeof options == "object") {
+ caseFold = options.caseFold;
+ } else {
+ // Backwards compat for when caseFold was the 4th argument
+ caseFold = options;
+ options = null;
+ }
+ if (typeof query == "string") {
+ if (caseFold == null) caseFold = false;
+ this.matches = function (reverse, pos) {
+ return (reverse ? searchStringBackward : searchStringForward)(doc, query, pos, caseFold);
+ };
+ } else {
+ query = ensureFlags(query, "gm");
+ if (!options || options.multiline !== false) this.matches = function (reverse, pos) {
+ return (reverse ? searchRegexpBackwardMultiline : searchRegexpForwardMultiline)(doc, query, pos);
+ };else this.matches = function (reverse, pos) {
+ return (reverse ? searchRegexpBackward : searchRegexpForward)(doc, query, pos);
+ };
+ }
+ }
+ SearchCursor.prototype = {
+ findNext: function () {
+ return this.find(false);
+ },
+ findPrevious: function () {
+ return this.find(true);
+ },
+ find: function (reverse) {
+ var head = this.doc.clipPos(reverse ? this.pos.from : this.pos.to);
+ if (this.afterEmptyMatch && this.atOccurrence) {
+ // do not return the same 0 width match twice
+ head = Pos(head.line, head.ch);
+ if (reverse) {
+ head.ch--;
+ if (head.ch < 0) {
+ head.line--;
+ head.ch = (this.doc.getLine(head.line) || "").length;
+ }
+ } else {
+ head.ch++;
+ if (head.ch > (this.doc.getLine(head.line) || "").length) {
+ head.ch = 0;
+ head.line++;
+ }
+ }
+ if (CodeMirror.cmpPos(head, this.doc.clipPos(head)) != 0) {
+ return this.atOccurrence = false;
+ }
+ }
+ var result = this.matches(reverse, head);
+ this.afterEmptyMatch = result && CodeMirror.cmpPos(result.from, result.to) == 0;
+ if (result) {
+ this.pos = result;
+ this.atOccurrence = true;
+ return this.pos.match || true;
+ } else {
+ var end = Pos(reverse ? this.doc.firstLine() : this.doc.lastLine() + 1, 0);
+ this.pos = {
+ from: end,
+ to: end
+ };
+ return this.atOccurrence = false;
+ }
+ },
+ from: function () {
+ if (this.atOccurrence) return this.pos.from;
+ },
+ to: function () {
+ if (this.atOccurrence) return this.pos.to;
+ },
+ replace: function (newText, origin) {
+ if (!this.atOccurrence) return;
+ var lines = CodeMirror.splitLines(newText);
+ this.doc.replaceRange(lines, this.pos.from, this.pos.to, origin);
+ this.pos.to = Pos(this.pos.from.line + lines.length - 1, lines[lines.length - 1].length + (lines.length == 1 ? this.pos.from.ch : 0));
+ }
+ };
+ CodeMirror.defineExtension("getSearchCursor", function (query, pos, caseFold) {
+ return new SearchCursor(this.doc, query, pos, caseFold);
+ });
+ CodeMirror.defineDocExtension("getSearchCursor", function (query, pos, caseFold) {
+ return new SearchCursor(this, query, pos, caseFold);
+ });
+ CodeMirror.defineExtension("selectMatches", function (query, caseFold) {
+ var ranges = [];
+ var cur = this.getSearchCursor(query, this.getCursor("from"), caseFold);
+ while (cur.findNext()) {
+ if (CodeMirror.cmpPos(cur.to(), this.getCursor("to")) > 0) break;
+ ranges.push({
+ anchor: cur.from(),
+ head: cur.to()
+ });
+ }
+ if (ranges.length) this.setSelections(ranges, 0);
+ });
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/keymap/sublime.js":
+/*!**********************************************************!*\
+ !*** ../../../node_modules/codemirror/keymap/sublime.js ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+// A rough approximation of Sublime Text's keybindings
+// Depends on addon/search/searchcursor.js and optionally addon/dialog/dialogs.js
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"), __webpack_require__(/*! ../addon/search/searchcursor */ "../../../node_modules/codemirror/addon/search/searchcursor.js"), __webpack_require__(/*! ../addon/edit/matchbrackets */ "../../../node_modules/codemirror/addon/edit/matchbrackets.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ var cmds = CodeMirror.commands;
+ var Pos = CodeMirror.Pos;
+
+ // This is not exactly Sublime's algorithm. I couldn't make heads or tails of that.
+ function findPosSubword(doc, start, dir) {
+ if (dir < 0 && start.ch == 0) return doc.clipPos(Pos(start.line - 1));
+ var line = doc.getLine(start.line);
+ if (dir > 0 && start.ch >= line.length) return doc.clipPos(Pos(start.line + 1, 0));
+ var state = "start",
+ type,
+ startPos = start.ch;
+ for (var pos = startPos, e = dir < 0 ? 0 : line.length, i = 0; pos != e; pos += dir, i++) {
+ var next = line.charAt(dir < 0 ? pos - 1 : pos);
+ var cat = next != "_" && CodeMirror.isWordChar(next) ? "w" : "o";
+ if (cat == "w" && next.toUpperCase() == next) cat = "W";
+ if (state == "start") {
+ if (cat != "o") {
+ state = "in";
+ type = cat;
+ } else startPos = pos + dir;
+ } else if (state == "in") {
+ if (type != cat) {
+ if (type == "w" && cat == "W" && dir < 0) pos--;
+ if (type == "W" && cat == "w" && dir > 0) {
+ // From uppercase to lowercase
+ if (pos == startPos + 1) {
+ type = "w";
+ continue;
+ } else pos--;
+ }
+ break;
+ }
+ }
+ }
+ return Pos(start.line, pos);
+ }
+ function moveSubword(cm, dir) {
+ cm.extendSelectionsBy(function (range) {
+ if (cm.display.shift || cm.doc.extend || range.empty()) return findPosSubword(cm.doc, range.head, dir);else return dir < 0 ? range.from() : range.to();
+ });
+ }
+ cmds.goSubwordLeft = function (cm) {
+ moveSubword(cm, -1);
+ };
+ cmds.goSubwordRight = function (cm) {
+ moveSubword(cm, 1);
+ };
+ cmds.scrollLineUp = function (cm) {
+ var info = cm.getScrollInfo();
+ if (!cm.somethingSelected()) {
+ var visibleBottomLine = cm.lineAtHeight(info.top + info.clientHeight, "local");
+ if (cm.getCursor().line >= visibleBottomLine) cm.execCommand("goLineUp");
+ }
+ cm.scrollTo(null, info.top - cm.defaultTextHeight());
+ };
+ cmds.scrollLineDown = function (cm) {
+ var info = cm.getScrollInfo();
+ if (!cm.somethingSelected()) {
+ var visibleTopLine = cm.lineAtHeight(info.top, "local") + 1;
+ if (cm.getCursor().line <= visibleTopLine) cm.execCommand("goLineDown");
+ }
+ cm.scrollTo(null, info.top + cm.defaultTextHeight());
+ };
+ cmds.splitSelectionByLine = function (cm) {
+ var ranges = cm.listSelections(),
+ lineRanges = [];
+ for (var i = 0; i < ranges.length; i++) {
+ var from = ranges[i].from(),
+ to = ranges[i].to();
+ for (var line = from.line; line <= to.line; ++line) if (!(to.line > from.line && line == to.line && to.ch == 0)) lineRanges.push({
+ anchor: line == from.line ? from : Pos(line, 0),
+ head: line == to.line ? to : Pos(line)
+ });
+ }
+ cm.setSelections(lineRanges, 0);
+ };
+ cmds.singleSelectionTop = function (cm) {
+ var range = cm.listSelections()[0];
+ cm.setSelection(range.anchor, range.head, {
+ scroll: false
+ });
+ };
+ cmds.selectLine = function (cm) {
+ var ranges = cm.listSelections(),
+ extended = [];
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i];
+ extended.push({
+ anchor: Pos(range.from().line, 0),
+ head: Pos(range.to().line + 1, 0)
+ });
+ }
+ cm.setSelections(extended);
+ };
+ function insertLine(cm, above) {
+ if (cm.isReadOnly()) return CodeMirror.Pass;
+ cm.operation(function () {
+ var len = cm.listSelections().length,
+ newSelection = [],
+ last = -1;
+ for (var i = 0; i < len; i++) {
+ var head = cm.listSelections()[i].head;
+ if (head.line <= last) continue;
+ var at = Pos(head.line + (above ? 0 : 1), 0);
+ cm.replaceRange("\n", at, null, "+insertLine");
+ cm.indentLine(at.line, null, true);
+ newSelection.push({
+ head: at,
+ anchor: at
+ });
+ last = head.line + 1;
+ }
+ cm.setSelections(newSelection);
+ });
+ cm.execCommand("indentAuto");
+ }
+ cmds.insertLineAfter = function (cm) {
+ return insertLine(cm, false);
+ };
+ cmds.insertLineBefore = function (cm) {
+ return insertLine(cm, true);
+ };
+ function wordAt(cm, pos) {
+ var start = pos.ch,
+ end = start,
+ line = cm.getLine(pos.line);
+ while (start && CodeMirror.isWordChar(line.charAt(start - 1))) --start;
+ while (end < line.length && CodeMirror.isWordChar(line.charAt(end))) ++end;
+ return {
+ from: Pos(pos.line, start),
+ to: Pos(pos.line, end),
+ word: line.slice(start, end)
+ };
+ }
+ cmds.selectNextOccurrence = function (cm) {
+ var from = cm.getCursor("from"),
+ to = cm.getCursor("to");
+ var fullWord = cm.state.sublimeFindFullWord == cm.doc.sel;
+ if (CodeMirror.cmpPos(from, to) == 0) {
+ var word = wordAt(cm, from);
+ if (!word.word) return;
+ cm.setSelection(word.from, word.to);
+ fullWord = true;
+ } else {
+ var text = cm.getRange(from, to);
+ var query = fullWord ? new RegExp("\\b" + text + "\\b") : text;
+ var cur = cm.getSearchCursor(query, to);
+ var found = cur.findNext();
+ if (!found) {
+ cur = cm.getSearchCursor(query, Pos(cm.firstLine(), 0));
+ found = cur.findNext();
+ }
+ if (!found || isSelectedRange(cm.listSelections(), cur.from(), cur.to())) return;
+ cm.addSelection(cur.from(), cur.to());
+ }
+ if (fullWord) cm.state.sublimeFindFullWord = cm.doc.sel;
+ };
+ cmds.skipAndSelectNextOccurrence = function (cm) {
+ var prevAnchor = cm.getCursor("anchor"),
+ prevHead = cm.getCursor("head");
+ cmds.selectNextOccurrence(cm);
+ if (CodeMirror.cmpPos(prevAnchor, prevHead) != 0) {
+ cm.doc.setSelections(cm.doc.listSelections().filter(function (sel) {
+ return sel.anchor != prevAnchor || sel.head != prevHead;
+ }));
+ }
+ };
+ function addCursorToSelection(cm, dir) {
+ var ranges = cm.listSelections(),
+ newRanges = [];
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i];
+ var newAnchor = cm.findPosV(range.anchor, dir, "line", range.anchor.goalColumn);
+ var newHead = cm.findPosV(range.head, dir, "line", range.head.goalColumn);
+ newAnchor.goalColumn = range.anchor.goalColumn != null ? range.anchor.goalColumn : cm.cursorCoords(range.anchor, "div").left;
+ newHead.goalColumn = range.head.goalColumn != null ? range.head.goalColumn : cm.cursorCoords(range.head, "div").left;
+ var newRange = {
+ anchor: newAnchor,
+ head: newHead
+ };
+ newRanges.push(range);
+ newRanges.push(newRange);
+ }
+ cm.setSelections(newRanges);
+ }
+ cmds.addCursorToPrevLine = function (cm) {
+ addCursorToSelection(cm, -1);
+ };
+ cmds.addCursorToNextLine = function (cm) {
+ addCursorToSelection(cm, 1);
+ };
+ function isSelectedRange(ranges, from, to) {
+ for (var i = 0; i < ranges.length; i++) if (CodeMirror.cmpPos(ranges[i].from(), from) == 0 && CodeMirror.cmpPos(ranges[i].to(), to) == 0) return true;
+ return false;
+ }
+ var mirror = "(){}[]";
+ function selectBetweenBrackets(cm) {
+ var ranges = cm.listSelections(),
+ newRanges = [];
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i],
+ pos = range.head,
+ opening = cm.scanForBracket(pos, -1);
+ if (!opening) return false;
+ for (;;) {
+ var closing = cm.scanForBracket(pos, 1);
+ if (!closing) return false;
+ if (closing.ch == mirror.charAt(mirror.indexOf(opening.ch) + 1)) {
+ var startPos = Pos(opening.pos.line, opening.pos.ch + 1);
+ if (CodeMirror.cmpPos(startPos, range.from()) == 0 && CodeMirror.cmpPos(closing.pos, range.to()) == 0) {
+ opening = cm.scanForBracket(opening.pos, -1);
+ if (!opening) return false;
+ } else {
+ newRanges.push({
+ anchor: startPos,
+ head: closing.pos
+ });
+ break;
+ }
+ }
+ pos = Pos(closing.pos.line, closing.pos.ch + 1);
+ }
+ }
+ cm.setSelections(newRanges);
+ return true;
+ }
+ cmds.selectScope = function (cm) {
+ selectBetweenBrackets(cm) || cm.execCommand("selectAll");
+ };
+ cmds.selectBetweenBrackets = function (cm) {
+ if (!selectBetweenBrackets(cm)) return CodeMirror.Pass;
+ };
+ function puncType(type) {
+ return !type ? null : /\bpunctuation\b/.test(type) ? type : undefined;
+ }
+ cmds.goToBracket = function (cm) {
+ cm.extendSelectionsBy(function (range) {
+ var next = cm.scanForBracket(range.head, 1, puncType(cm.getTokenTypeAt(range.head)));
+ if (next && CodeMirror.cmpPos(next.pos, range.head) != 0) return next.pos;
+ var prev = cm.scanForBracket(range.head, -1, puncType(cm.getTokenTypeAt(Pos(range.head.line, range.head.ch + 1))));
+ return prev && Pos(prev.pos.line, prev.pos.ch + 1) || range.head;
+ });
+ };
+ cmds.swapLineUp = function (cm) {
+ if (cm.isReadOnly()) return CodeMirror.Pass;
+ var ranges = cm.listSelections(),
+ linesToMove = [],
+ at = cm.firstLine() - 1,
+ newSels = [];
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i],
+ from = range.from().line - 1,
+ to = range.to().line;
+ newSels.push({
+ anchor: Pos(range.anchor.line - 1, range.anchor.ch),
+ head: Pos(range.head.line - 1, range.head.ch)
+ });
+ if (range.to().ch == 0 && !range.empty()) --to;
+ if (from > at) linesToMove.push(from, to);else if (linesToMove.length) linesToMove[linesToMove.length - 1] = to;
+ at = to;
+ }
+ cm.operation(function () {
+ for (var i = 0; i < linesToMove.length; i += 2) {
+ var from = linesToMove[i],
+ to = linesToMove[i + 1];
+ var line = cm.getLine(from);
+ cm.replaceRange("", Pos(from, 0), Pos(from + 1, 0), "+swapLine");
+ if (to > cm.lastLine()) cm.replaceRange("\n" + line, Pos(cm.lastLine()), null, "+swapLine");else cm.replaceRange(line + "\n", Pos(to, 0), null, "+swapLine");
+ }
+ cm.setSelections(newSels);
+ cm.scrollIntoView();
+ });
+ };
+ cmds.swapLineDown = function (cm) {
+ if (cm.isReadOnly()) return CodeMirror.Pass;
+ var ranges = cm.listSelections(),
+ linesToMove = [],
+ at = cm.lastLine() + 1;
+ for (var i = ranges.length - 1; i >= 0; i--) {
+ var range = ranges[i],
+ from = range.to().line + 1,
+ to = range.from().line;
+ if (range.to().ch == 0 && !range.empty()) from--;
+ if (from < at) linesToMove.push(from, to);else if (linesToMove.length) linesToMove[linesToMove.length - 1] = to;
+ at = to;
+ }
+ cm.operation(function () {
+ for (var i = linesToMove.length - 2; i >= 0; i -= 2) {
+ var from = linesToMove[i],
+ to = linesToMove[i + 1];
+ var line = cm.getLine(from);
+ if (from == cm.lastLine()) cm.replaceRange("", Pos(from - 1), Pos(from), "+swapLine");else cm.replaceRange("", Pos(from, 0), Pos(from + 1, 0), "+swapLine");
+ cm.replaceRange(line + "\n", Pos(to, 0), null, "+swapLine");
+ }
+ cm.scrollIntoView();
+ });
+ };
+ cmds.toggleCommentIndented = function (cm) {
+ cm.toggleComment({
+ indent: true
+ });
+ };
+ cmds.joinLines = function (cm) {
+ var ranges = cm.listSelections(),
+ joined = [];
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i],
+ from = range.from();
+ var start = from.line,
+ end = range.to().line;
+ while (i < ranges.length - 1 && ranges[i + 1].from().line == end) end = ranges[++i].to().line;
+ joined.push({
+ start: start,
+ end: end,
+ anchor: !range.empty() && from
+ });
+ }
+ cm.operation(function () {
+ var offset = 0,
+ ranges = [];
+ for (var i = 0; i < joined.length; i++) {
+ var obj = joined[i];
+ var anchor = obj.anchor && Pos(obj.anchor.line - offset, obj.anchor.ch),
+ head;
+ for (var line = obj.start; line <= obj.end; line++) {
+ var actual = line - offset;
+ if (line == obj.end) head = Pos(actual, cm.getLine(actual).length + 1);
+ if (actual < cm.lastLine()) {
+ cm.replaceRange(" ", Pos(actual), Pos(actual + 1, /^\s*/.exec(cm.getLine(actual + 1))[0].length));
+ ++offset;
+ }
+ }
+ ranges.push({
+ anchor: anchor || head,
+ head: head
+ });
+ }
+ cm.setSelections(ranges, 0);
+ });
+ };
+ cmds.duplicateLine = function (cm) {
+ cm.operation(function () {
+ var rangeCount = cm.listSelections().length;
+ for (var i = 0; i < rangeCount; i++) {
+ var range = cm.listSelections()[i];
+ if (range.empty()) cm.replaceRange(cm.getLine(range.head.line) + "\n", Pos(range.head.line, 0));else cm.replaceRange(cm.getRange(range.from(), range.to()), range.from());
+ }
+ cm.scrollIntoView();
+ });
+ };
+ function sortLines(cm, caseSensitive, direction) {
+ if (cm.isReadOnly()) return CodeMirror.Pass;
+ var ranges = cm.listSelections(),
+ toSort = [],
+ selected;
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i];
+ if (range.empty()) continue;
+ var from = range.from().line,
+ to = range.to().line;
+ while (i < ranges.length - 1 && ranges[i + 1].from().line == to) to = ranges[++i].to().line;
+ if (!ranges[i].to().ch) to--;
+ toSort.push(from, to);
+ }
+ if (toSort.length) selected = true;else toSort.push(cm.firstLine(), cm.lastLine());
+ cm.operation(function () {
+ var ranges = [];
+ for (var i = 0; i < toSort.length; i += 2) {
+ var from = toSort[i],
+ to = toSort[i + 1];
+ var start = Pos(from, 0),
+ end = Pos(to);
+ var lines = cm.getRange(start, end, false);
+ if (caseSensitive) lines.sort(function (a, b) {
+ return a < b ? -direction : a == b ? 0 : direction;
+ });else lines.sort(function (a, b) {
+ var au = a.toUpperCase(),
+ bu = b.toUpperCase();
+ if (au != bu) {
+ a = au;
+ b = bu;
+ }
+ return a < b ? -direction : a == b ? 0 : direction;
+ });
+ cm.replaceRange(lines, start, end);
+ if (selected) ranges.push({
+ anchor: start,
+ head: Pos(to + 1, 0)
+ });
+ }
+ if (selected) cm.setSelections(ranges, 0);
+ });
+ }
+ cmds.sortLines = function (cm) {
+ sortLines(cm, true, 1);
+ };
+ cmds.reverseSortLines = function (cm) {
+ sortLines(cm, true, -1);
+ };
+ cmds.sortLinesInsensitive = function (cm) {
+ sortLines(cm, false, 1);
+ };
+ cmds.reverseSortLinesInsensitive = function (cm) {
+ sortLines(cm, false, -1);
+ };
+ cmds.nextBookmark = function (cm) {
+ var marks = cm.state.sublimeBookmarks;
+ if (marks) while (marks.length) {
+ var current = marks.shift();
+ var found = current.find();
+ if (found) {
+ marks.push(current);
+ return cm.setSelection(found.from, found.to);
+ }
+ }
+ };
+ cmds.prevBookmark = function (cm) {
+ var marks = cm.state.sublimeBookmarks;
+ if (marks) while (marks.length) {
+ marks.unshift(marks.pop());
+ var found = marks[marks.length - 1].find();
+ if (!found) marks.pop();else return cm.setSelection(found.from, found.to);
+ }
+ };
+ cmds.toggleBookmark = function (cm) {
+ var ranges = cm.listSelections();
+ var marks = cm.state.sublimeBookmarks || (cm.state.sublimeBookmarks = []);
+ for (var i = 0; i < ranges.length; i++) {
+ var from = ranges[i].from(),
+ to = ranges[i].to();
+ var found = ranges[i].empty() ? cm.findMarksAt(from) : cm.findMarks(from, to);
+ for (var j = 0; j < found.length; j++) {
+ if (found[j].sublimeBookmark) {
+ found[j].clear();
+ for (var k = 0; k < marks.length; k++) if (marks[k] == found[j]) marks.splice(k--, 1);
+ break;
+ }
+ }
+ if (j == found.length) marks.push(cm.markText(from, to, {
+ sublimeBookmark: true,
+ clearWhenEmpty: false
+ }));
+ }
+ };
+ cmds.clearBookmarks = function (cm) {
+ var marks = cm.state.sublimeBookmarks;
+ if (marks) for (var i = 0; i < marks.length; i++) marks[i].clear();
+ marks.length = 0;
+ };
+ cmds.selectBookmarks = function (cm) {
+ var marks = cm.state.sublimeBookmarks,
+ ranges = [];
+ if (marks) for (var i = 0; i < marks.length; i++) {
+ var found = marks[i].find();
+ if (!found) marks.splice(i--, 0);else ranges.push({
+ anchor: found.from,
+ head: found.to
+ });
+ }
+ if (ranges.length) cm.setSelections(ranges, 0);
+ };
+ function modifyWordOrSelection(cm, mod) {
+ cm.operation(function () {
+ var ranges = cm.listSelections(),
+ indices = [],
+ replacements = [];
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i];
+ if (range.empty()) {
+ indices.push(i);
+ replacements.push("");
+ } else replacements.push(mod(cm.getRange(range.from(), range.to())));
+ }
+ cm.replaceSelections(replacements, "around", "case");
+ for (var i = indices.length - 1, at; i >= 0; i--) {
+ var range = ranges[indices[i]];
+ if (at && CodeMirror.cmpPos(range.head, at) > 0) continue;
+ var word = wordAt(cm, range.head);
+ at = word.from;
+ cm.replaceRange(mod(word.word), word.from, word.to);
+ }
+ });
+ }
+ cmds.smartBackspace = function (cm) {
+ if (cm.somethingSelected()) return CodeMirror.Pass;
+ cm.operation(function () {
+ var cursors = cm.listSelections();
+ var indentUnit = cm.getOption("indentUnit");
+ for (var i = cursors.length - 1; i >= 0; i--) {
+ var cursor = cursors[i].head;
+ var toStartOfLine = cm.getRange({
+ line: cursor.line,
+ ch: 0
+ }, cursor);
+ var column = CodeMirror.countColumn(toStartOfLine, null, cm.getOption("tabSize"));
+
+ // Delete by one character by default
+ var deletePos = cm.findPosH(cursor, -1, "char", false);
+ if (toStartOfLine && !/\S/.test(toStartOfLine) && column % indentUnit == 0) {
+ var prevIndent = new Pos(cursor.line, CodeMirror.findColumn(toStartOfLine, column - indentUnit, indentUnit));
+
+ // Smart delete only if we found a valid prevIndent location
+ if (prevIndent.ch != cursor.ch) deletePos = prevIndent;
+ }
+ cm.replaceRange("", deletePos, cursor, "+delete");
+ }
+ });
+ };
+ cmds.delLineRight = function (cm) {
+ cm.operation(function () {
+ var ranges = cm.listSelections();
+ for (var i = ranges.length - 1; i >= 0; i--) cm.replaceRange("", ranges[i].anchor, Pos(ranges[i].to().line), "+delete");
+ cm.scrollIntoView();
+ });
+ };
+ cmds.upcaseAtCursor = function (cm) {
+ modifyWordOrSelection(cm, function (str) {
+ return str.toUpperCase();
+ });
+ };
+ cmds.downcaseAtCursor = function (cm) {
+ modifyWordOrSelection(cm, function (str) {
+ return str.toLowerCase();
+ });
+ };
+ cmds.setSublimeMark = function (cm) {
+ if (cm.state.sublimeMark) cm.state.sublimeMark.clear();
+ cm.state.sublimeMark = cm.setBookmark(cm.getCursor());
+ };
+ cmds.selectToSublimeMark = function (cm) {
+ var found = cm.state.sublimeMark && cm.state.sublimeMark.find();
+ if (found) cm.setSelection(cm.getCursor(), found);
+ };
+ cmds.deleteToSublimeMark = function (cm) {
+ var found = cm.state.sublimeMark && cm.state.sublimeMark.find();
+ if (found) {
+ var from = cm.getCursor(),
+ to = found;
+ if (CodeMirror.cmpPos(from, to) > 0) {
+ var tmp = to;
+ to = from;
+ from = tmp;
+ }
+ cm.state.sublimeKilled = cm.getRange(from, to);
+ cm.replaceRange("", from, to);
+ }
+ };
+ cmds.swapWithSublimeMark = function (cm) {
+ var found = cm.state.sublimeMark && cm.state.sublimeMark.find();
+ if (found) {
+ cm.state.sublimeMark.clear();
+ cm.state.sublimeMark = cm.setBookmark(cm.getCursor());
+ cm.setCursor(found);
+ }
+ };
+ cmds.sublimeYank = function (cm) {
+ if (cm.state.sublimeKilled != null) cm.replaceSelection(cm.state.sublimeKilled, null, "paste");
+ };
+ cmds.showInCenter = function (cm) {
+ var pos = cm.cursorCoords(null, "local");
+ cm.scrollTo(null, (pos.top + pos.bottom) / 2 - cm.getScrollInfo().clientHeight / 2);
+ };
+ function getTarget(cm) {
+ var from = cm.getCursor("from"),
+ to = cm.getCursor("to");
+ if (CodeMirror.cmpPos(from, to) == 0) {
+ var word = wordAt(cm, from);
+ if (!word.word) return;
+ from = word.from;
+ to = word.to;
+ }
+ return {
+ from: from,
+ to: to,
+ query: cm.getRange(from, to),
+ word: word
+ };
+ }
+ function findAndGoTo(cm, forward) {
+ var target = getTarget(cm);
+ if (!target) return;
+ var query = target.query;
+ var cur = cm.getSearchCursor(query, forward ? target.to : target.from);
+ if (forward ? cur.findNext() : cur.findPrevious()) {
+ cm.setSelection(cur.from(), cur.to());
+ } else {
+ cur = cm.getSearchCursor(query, forward ? Pos(cm.firstLine(), 0) : cm.clipPos(Pos(cm.lastLine())));
+ if (forward ? cur.findNext() : cur.findPrevious()) cm.setSelection(cur.from(), cur.to());else if (target.word) cm.setSelection(target.from, target.to);
+ }
+ }
+ ;
+ cmds.findUnder = function (cm) {
+ findAndGoTo(cm, true);
+ };
+ cmds.findUnderPrevious = function (cm) {
+ findAndGoTo(cm, false);
+ };
+ cmds.findAllUnder = function (cm) {
+ var target = getTarget(cm);
+ if (!target) return;
+ var cur = cm.getSearchCursor(target.query);
+ var matches = [];
+ var primaryIndex = -1;
+ while (cur.findNext()) {
+ matches.push({
+ anchor: cur.from(),
+ head: cur.to()
+ });
+ if (cur.from().line <= target.from.line && cur.from().ch <= target.from.ch) primaryIndex++;
+ }
+ cm.setSelections(matches, primaryIndex);
+ };
+ var keyMap = CodeMirror.keyMap;
+ keyMap.macSublime = {
+ "Cmd-Left": "goLineStartSmart",
+ "Shift-Tab": "indentLess",
+ "Shift-Ctrl-K": "deleteLine",
+ "Alt-Q": "wrapLines",
+ "Ctrl-Left": "goSubwordLeft",
+ "Ctrl-Right": "goSubwordRight",
+ "Ctrl-Alt-Up": "scrollLineUp",
+ "Ctrl-Alt-Down": "scrollLineDown",
+ "Cmd-L": "selectLine",
+ "Shift-Cmd-L": "splitSelectionByLine",
+ "Esc": "singleSelectionTop",
+ "Cmd-Enter": "insertLineAfter",
+ "Shift-Cmd-Enter": "insertLineBefore",
+ "Cmd-D": "selectNextOccurrence",
+ "Shift-Cmd-Space": "selectScope",
+ "Shift-Cmd-M": "selectBetweenBrackets",
+ "Cmd-M": "goToBracket",
+ "Cmd-Ctrl-Up": "swapLineUp",
+ "Cmd-Ctrl-Down": "swapLineDown",
+ "Cmd-/": "toggleCommentIndented",
+ "Cmd-J": "joinLines",
+ "Shift-Cmd-D": "duplicateLine",
+ "F5": "sortLines",
+ "Shift-F5": "reverseSortLines",
+ "Cmd-F5": "sortLinesInsensitive",
+ "Shift-Cmd-F5": "reverseSortLinesInsensitive",
+ "F2": "nextBookmark",
+ "Shift-F2": "prevBookmark",
+ "Cmd-F2": "toggleBookmark",
+ "Shift-Cmd-F2": "clearBookmarks",
+ "Alt-F2": "selectBookmarks",
+ "Backspace": "smartBackspace",
+ "Cmd-K Cmd-D": "skipAndSelectNextOccurrence",
+ "Cmd-K Cmd-K": "delLineRight",
+ "Cmd-K Cmd-U": "upcaseAtCursor",
+ "Cmd-K Cmd-L": "downcaseAtCursor",
+ "Cmd-K Cmd-Space": "setSublimeMark",
+ "Cmd-K Cmd-A": "selectToSublimeMark",
+ "Cmd-K Cmd-W": "deleteToSublimeMark",
+ "Cmd-K Cmd-X": "swapWithSublimeMark",
+ "Cmd-K Cmd-Y": "sublimeYank",
+ "Cmd-K Cmd-C": "showInCenter",
+ "Cmd-K Cmd-G": "clearBookmarks",
+ "Cmd-K Cmd-Backspace": "delLineLeft",
+ "Cmd-K Cmd-1": "foldAll",
+ "Cmd-K Cmd-0": "unfoldAll",
+ "Cmd-K Cmd-J": "unfoldAll",
+ "Ctrl-Shift-Up": "addCursorToPrevLine",
+ "Ctrl-Shift-Down": "addCursorToNextLine",
+ "Cmd-F3": "findUnder",
+ "Shift-Cmd-F3": "findUnderPrevious",
+ "Alt-F3": "findAllUnder",
+ "Shift-Cmd-[": "fold",
+ "Shift-Cmd-]": "unfold",
+ "Cmd-I": "findIncremental",
+ "Shift-Cmd-I": "findIncrementalReverse",
+ "Cmd-H": "replace",
+ "F3": "findNext",
+ "Shift-F3": "findPrev",
+ "fallthrough": "macDefault"
+ };
+ CodeMirror.normalizeKeyMap(keyMap.macSublime);
+ keyMap.pcSublime = {
+ "Shift-Tab": "indentLess",
+ "Shift-Ctrl-K": "deleteLine",
+ "Alt-Q": "wrapLines",
+ "Ctrl-T": "transposeChars",
+ "Alt-Left": "goSubwordLeft",
+ "Alt-Right": "goSubwordRight",
+ "Ctrl-Up": "scrollLineUp",
+ "Ctrl-Down": "scrollLineDown",
+ "Ctrl-L": "selectLine",
+ "Shift-Ctrl-L": "splitSelectionByLine",
+ "Esc": "singleSelectionTop",
+ "Ctrl-Enter": "insertLineAfter",
+ "Shift-Ctrl-Enter": "insertLineBefore",
+ "Ctrl-D": "selectNextOccurrence",
+ "Shift-Ctrl-Space": "selectScope",
+ "Shift-Ctrl-M": "selectBetweenBrackets",
+ "Ctrl-M": "goToBracket",
+ "Shift-Ctrl-Up": "swapLineUp",
+ "Shift-Ctrl-Down": "swapLineDown",
+ "Ctrl-/": "toggleCommentIndented",
+ "Ctrl-J": "joinLines",
+ "Shift-Ctrl-D": "duplicateLine",
+ "F9": "sortLines",
+ "Shift-F9": "reverseSortLines",
+ "Ctrl-F9": "sortLinesInsensitive",
+ "Shift-Ctrl-F9": "reverseSortLinesInsensitive",
+ "F2": "nextBookmark",
+ "Shift-F2": "prevBookmark",
+ "Ctrl-F2": "toggleBookmark",
+ "Shift-Ctrl-F2": "clearBookmarks",
+ "Alt-F2": "selectBookmarks",
+ "Backspace": "smartBackspace",
+ "Ctrl-K Ctrl-D": "skipAndSelectNextOccurrence",
+ "Ctrl-K Ctrl-K": "delLineRight",
+ "Ctrl-K Ctrl-U": "upcaseAtCursor",
+ "Ctrl-K Ctrl-L": "downcaseAtCursor",
+ "Ctrl-K Ctrl-Space": "setSublimeMark",
+ "Ctrl-K Ctrl-A": "selectToSublimeMark",
+ "Ctrl-K Ctrl-W": "deleteToSublimeMark",
+ "Ctrl-K Ctrl-X": "swapWithSublimeMark",
+ "Ctrl-K Ctrl-Y": "sublimeYank",
+ "Ctrl-K Ctrl-C": "showInCenter",
+ "Ctrl-K Ctrl-G": "clearBookmarks",
+ "Ctrl-K Ctrl-Backspace": "delLineLeft",
+ "Ctrl-K Ctrl-1": "foldAll",
+ "Ctrl-K Ctrl-0": "unfoldAll",
+ "Ctrl-K Ctrl-J": "unfoldAll",
+ "Ctrl-Alt-Up": "addCursorToPrevLine",
+ "Ctrl-Alt-Down": "addCursorToNextLine",
+ "Ctrl-F3": "findUnder",
+ "Shift-Ctrl-F3": "findUnderPrevious",
+ "Alt-F3": "findAllUnder",
+ "Shift-Ctrl-[": "fold",
+ "Shift-Ctrl-]": "unfold",
+ "Ctrl-I": "findIncremental",
+ "Shift-Ctrl-I": "findIncrementalReverse",
+ "Ctrl-H": "replace",
+ "F3": "findNext",
+ "Shift-F3": "findPrev",
+ "fallthrough": "pcDefault"
+ };
+ CodeMirror.normalizeKeyMap(keyMap.pcSublime);
+ var mac = keyMap.default == keyMap.macDefault;
+ keyMap.sublime = mac ? keyMap.macSublime : keyMap.pcSublime;
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/lib/codemirror.js":
+/*!**********************************************************!*\
+ !*** ../../../node_modules/codemirror/lib/codemirror.js ***!
+ \**********************************************************/
+/***/ (function(module) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+// This is CodeMirror (https://codemirror.net), a code editor
+// implemented in JavaScript on top of the browser's DOM.
+//
+// You can find some technical background for some of the code below
+// at http://marijnhaverbeke.nl/blog/#cm-internals .
+
+(function (global, factory) {
+ true ? module.exports = factory() : 0;
+})(void 0, function () {
+ 'use strict';
+
+ // Kludges for bugs and behavior differences that can't be feature
+ // detected are enabled based on userAgent etc sniffing.
+ var userAgent = navigator.userAgent;
+ var platform = navigator.platform;
+ var gecko = /gecko\/\d/i.test(userAgent);
+ var ie_upto10 = /MSIE \d/.test(userAgent);
+ var ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(userAgent);
+ var edge = /Edge\/(\d+)/.exec(userAgent);
+ var ie = ie_upto10 || ie_11up || edge;
+ var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]);
+ var webkit = !edge && /WebKit\//.test(userAgent);
+ var qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent);
+ var chrome = !edge && /Chrome\//.test(userAgent);
+ var presto = /Opera\//.test(userAgent);
+ var safari = /Apple Computer/.test(navigator.vendor);
+ var mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent);
+ var phantom = /PhantomJS/.test(userAgent);
+ var ios = safari && (/Mobile\/\w+/.test(userAgent) || navigator.maxTouchPoints > 2);
+ var android = /Android/.test(userAgent);
+ // This is woefully incomplete. Suggestions for alternative methods welcome.
+ var mobile = ios || android || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent);
+ var mac = ios || /Mac/.test(platform);
+ var chromeOS = /\bCrOS\b/.test(userAgent);
+ var windows = /win/i.test(platform);
+ var presto_version = presto && userAgent.match(/Version\/(\d*\.\d*)/);
+ if (presto_version) {
+ presto_version = Number(presto_version[1]);
+ }
+ if (presto_version && presto_version >= 15) {
+ presto = false;
+ webkit = true;
+ }
+ // Some browsers use the wrong event properties to signal cmd/ctrl on OS X
+ var flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11));
+ var captureRightClick = gecko || ie && ie_version >= 9;
+ function classTest(cls) {
+ return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*");
+ }
+ var rmClass = function (node, cls) {
+ var current = node.className;
+ var match = classTest(cls).exec(current);
+ if (match) {
+ var after = current.slice(match.index + match[0].length);
+ node.className = current.slice(0, match.index) + (after ? match[1] + after : "");
+ }
+ };
+ function removeChildren(e) {
+ for (var count = e.childNodes.length; count > 0; --count) {
+ e.removeChild(e.firstChild);
+ }
+ return e;
+ }
+ function removeChildrenAndAdd(parent, e) {
+ return removeChildren(parent).appendChild(e);
+ }
+ function elt(tag, content, className, style) {
+ var e = document.createElement(tag);
+ if (className) {
+ e.className = className;
+ }
+ if (style) {
+ e.style.cssText = style;
+ }
+ if (typeof content == "string") {
+ e.appendChild(document.createTextNode(content));
+ } else if (content) {
+ for (var i = 0; i < content.length; ++i) {
+ e.appendChild(content[i]);
+ }
+ }
+ return e;
+ }
+ // wrapper for elt, which removes the elt from the accessibility tree
+ function eltP(tag, content, className, style) {
+ var e = elt(tag, content, className, style);
+ e.setAttribute("role", "presentation");
+ return e;
+ }
+ var range;
+ if (document.createRange) {
+ range = function (node, start, end, endNode) {
+ var r = document.createRange();
+ r.setEnd(endNode || node, end);
+ r.setStart(node, start);
+ return r;
+ };
+ } else {
+ range = function (node, start, end) {
+ var r = document.body.createTextRange();
+ try {
+ r.moveToElementText(node.parentNode);
+ } catch (e) {
+ return r;
+ }
+ r.collapse(true);
+ r.moveEnd("character", end);
+ r.moveStart("character", start);
+ return r;
+ };
+ }
+ function contains(parent, child) {
+ if (child.nodeType == 3)
+ // Android browser always returns false when child is a textnode
+ {
+ child = child.parentNode;
+ }
+ if (parent.contains) {
+ return parent.contains(child);
+ }
+ do {
+ if (child.nodeType == 11) {
+ child = child.host;
+ }
+ if (child == parent) {
+ return true;
+ }
+ } while (child = child.parentNode);
+ }
+ function activeElt() {
+ // IE and Edge may throw an "Unspecified Error" when accessing document.activeElement.
+ // IE < 10 will throw when accessed while the page is loading or in an iframe.
+ // IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable.
+ var activeElement;
+ try {
+ activeElement = document.activeElement;
+ } catch (e) {
+ activeElement = document.body || null;
+ }
+ while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement) {
+ activeElement = activeElement.shadowRoot.activeElement;
+ }
+ return activeElement;
+ }
+ function addClass(node, cls) {
+ var current = node.className;
+ if (!classTest(cls).test(current)) {
+ node.className += (current ? " " : "") + cls;
+ }
+ }
+ function joinClasses(a, b) {
+ var as = a.split(" ");
+ for (var i = 0; i < as.length; i++) {
+ if (as[i] && !classTest(as[i]).test(b)) {
+ b += " " + as[i];
+ }
+ }
+ return b;
+ }
+ var selectInput = function (node) {
+ node.select();
+ };
+ if (ios)
+ // Mobile Safari apparently has a bug where select() is broken.
+ {
+ selectInput = function (node) {
+ node.selectionStart = 0;
+ node.selectionEnd = node.value.length;
+ };
+ } else if (ie)
+ // Suppress mysterious IE10 errors
+ {
+ selectInput = function (node) {
+ try {
+ node.select();
+ } catch (_e) {}
+ };
+ }
+ function bind(f) {
+ var args = Array.prototype.slice.call(arguments, 1);
+ return function () {
+ return f.apply(null, args);
+ };
+ }
+ function copyObj(obj, target, overwrite) {
+ if (!target) {
+ target = {};
+ }
+ for (var prop in obj) {
+ if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop))) {
+ target[prop] = obj[prop];
+ }
+ }
+ return target;
+ }
+
+ // Counts the column offset in a string, taking tabs into account.
+ // Used mostly to find indentation.
+ function countColumn(string, end, tabSize, startIndex, startValue) {
+ if (end == null) {
+ end = string.search(/[^\s\u00a0]/);
+ if (end == -1) {
+ end = string.length;
+ }
+ }
+ for (var i = startIndex || 0, n = startValue || 0;;) {
+ var nextTab = string.indexOf("\t", i);
+ if (nextTab < 0 || nextTab >= end) {
+ return n + (end - i);
+ }
+ n += nextTab - i;
+ n += tabSize - n % tabSize;
+ i = nextTab + 1;
+ }
+ }
+ var Delayed = function () {
+ this.id = null;
+ this.f = null;
+ this.time = 0;
+ this.handler = bind(this.onTimeout, this);
+ };
+ Delayed.prototype.onTimeout = function (self) {
+ self.id = 0;
+ if (self.time <= +new Date()) {
+ self.f();
+ } else {
+ setTimeout(self.handler, self.time - +new Date());
+ }
+ };
+ Delayed.prototype.set = function (ms, f) {
+ this.f = f;
+ var time = +new Date() + ms;
+ if (!this.id || time < this.time) {
+ clearTimeout(this.id);
+ this.id = setTimeout(this.handler, ms);
+ this.time = time;
+ }
+ };
+ function indexOf(array, elt) {
+ for (var i = 0; i < array.length; ++i) {
+ if (array[i] == elt) {
+ return i;
+ }
+ }
+ return -1;
+ }
+
+ // Number of pixels added to scroller and sizer to hide scrollbar
+ var scrollerGap = 50;
+
+ // Returned or thrown by various protocols to signal 'I'm not
+ // handling this'.
+ var Pass = {
+ toString: function () {
+ return "CodeMirror.Pass";
+ }
+ };
+
+ // Reused option objects for setSelection & friends
+ var sel_dontScroll = {
+ scroll: false
+ },
+ sel_mouse = {
+ origin: "*mouse"
+ },
+ sel_move = {
+ origin: "+move"
+ };
+
+ // The inverse of countColumn -- find the offset that corresponds to
+ // a particular column.
+ function findColumn(string, goal, tabSize) {
+ for (var pos = 0, col = 0;;) {
+ var nextTab = string.indexOf("\t", pos);
+ if (nextTab == -1) {
+ nextTab = string.length;
+ }
+ var skipped = nextTab - pos;
+ if (nextTab == string.length || col + skipped >= goal) {
+ return pos + Math.min(skipped, goal - col);
+ }
+ col += nextTab - pos;
+ col += tabSize - col % tabSize;
+ pos = nextTab + 1;
+ if (col >= goal) {
+ return pos;
+ }
+ }
+ }
+ var spaceStrs = [""];
+ function spaceStr(n) {
+ while (spaceStrs.length <= n) {
+ spaceStrs.push(lst(spaceStrs) + " ");
+ }
+ return spaceStrs[n];
+ }
+ function lst(arr) {
+ return arr[arr.length - 1];
+ }
+ function map(array, f) {
+ var out = [];
+ for (var i = 0; i < array.length; i++) {
+ out[i] = f(array[i], i);
+ }
+ return out;
+ }
+ function insertSorted(array, value, score) {
+ var pos = 0,
+ priority = score(value);
+ while (pos < array.length && score(array[pos]) <= priority) {
+ pos++;
+ }
+ array.splice(pos, 0, value);
+ }
+ function nothing() {}
+ function createObj(base, props) {
+ var inst;
+ if (Object.create) {
+ inst = Object.create(base);
+ } else {
+ nothing.prototype = base;
+ inst = new nothing();
+ }
+ if (props) {
+ copyObj(props, inst);
+ }
+ return inst;
+ }
+ var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
+ function isWordCharBasic(ch) {
+ return /\w/.test(ch) || ch > "\x80" && (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
+ }
+ function isWordChar(ch, helper) {
+ if (!helper) {
+ return isWordCharBasic(ch);
+ }
+ if (helper.source.indexOf("\\w") > -1 && isWordCharBasic(ch)) {
+ return true;
+ }
+ return helper.test(ch);
+ }
+ function isEmpty(obj) {
+ for (var n in obj) {
+ if (obj.hasOwnProperty(n) && obj[n]) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ // Extending unicode characters. A series of a non-extending char +
+ // any number of extending chars is treated as a single unit as far
+ // as editing and measuring is concerned. This is not fully correct,
+ // since some scripts/fonts/browsers also treat other configurations
+ // of code points as a group.
+ var extendingChars = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;
+ function isExtendingChar(ch) {
+ return ch.charCodeAt(0) >= 768 && extendingChars.test(ch);
+ }
+
+ // Returns a number from the range [`0`; `str.length`] unless `pos` is outside that range.
+ function skipExtendingChars(str, pos, dir) {
+ while ((dir < 0 ? pos > 0 : pos < str.length) && isExtendingChar(str.charAt(pos))) {
+ pos += dir;
+ }
+ return pos;
+ }
+
+ // Returns the value from the range [`from`; `to`] that satisfies
+ // `pred` and is closest to `from`. Assumes that at least `to`
+ // satisfies `pred`. Supports `from` being greater than `to`.
+ function findFirst(pred, from, to) {
+ // At any point we are certain `to` satisfies `pred`, don't know
+ // whether `from` does.
+ var dir = from > to ? -1 : 1;
+ for (;;) {
+ if (from == to) {
+ return from;
+ }
+ var midF = (from + to) / 2,
+ mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);
+ if (mid == from) {
+ return pred(mid) ? from : to;
+ }
+ if (pred(mid)) {
+ to = mid;
+ } else {
+ from = mid + dir;
+ }
+ }
+ }
+
+ // BIDI HELPERS
+
+ function iterateBidiSections(order, from, to, f) {
+ if (!order) {
+ return f(from, to, "ltr", 0);
+ }
+ var found = false;
+ for (var i = 0; i < order.length; ++i) {
+ var part = order[i];
+ if (part.from < to && part.to > from || from == to && part.to == from) {
+ f(Math.max(part.from, from), Math.min(part.to, to), part.level == 1 ? "rtl" : "ltr", i);
+ found = true;
+ }
+ }
+ if (!found) {
+ f(from, to, "ltr");
+ }
+ }
+ var bidiOther = null;
+ function getBidiPartAt(order, ch, sticky) {
+ var found;
+ bidiOther = null;
+ for (var i = 0; i < order.length; ++i) {
+ var cur = order[i];
+ if (cur.from < ch && cur.to > ch) {
+ return i;
+ }
+ if (cur.to == ch) {
+ if (cur.from != cur.to && sticky == "before") {
+ found = i;
+ } else {
+ bidiOther = i;
+ }
+ }
+ if (cur.from == ch) {
+ if (cur.from != cur.to && sticky != "before") {
+ found = i;
+ } else {
+ bidiOther = i;
+ }
+ }
+ }
+ return found != null ? found : bidiOther;
+ }
+
+ // Bidirectional ordering algorithm
+ // See http://unicode.org/reports/tr9/tr9-13.html for the algorithm
+ // that this (partially) implements.
+
+ // One-char codes used for character types:
+ // L (L): Left-to-Right
+ // R (R): Right-to-Left
+ // r (AL): Right-to-Left Arabic
+ // 1 (EN): European Number
+ // + (ES): European Number Separator
+ // % (ET): European Number Terminator
+ // n (AN): Arabic Number
+ // , (CS): Common Number Separator
+ // m (NSM): Non-Spacing Mark
+ // b (BN): Boundary Neutral
+ // s (B): Paragraph Separator
+ // t (S): Segment Separator
+ // w (WS): Whitespace
+ // N (ON): Other Neutrals
+
+ // Returns null if characters are ordered as they appear
+ // (left-to-right), or an array of sections ({from, to, level}
+ // objects) in the order in which they occur visually.
+ var bidiOrdering = function () {
+ // Character types for codepoints 0 to 0xff
+ var lowTypes = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";
+ // Character types for codepoints 0x600 to 0x6f9
+ var arabicTypes = "nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";
+ function charType(code) {
+ if (code <= 0xf7) {
+ return lowTypes.charAt(code);
+ } else if (0x590 <= code && code <= 0x5f4) {
+ return "R";
+ } else if (0x600 <= code && code <= 0x6f9) {
+ return arabicTypes.charAt(code - 0x600);
+ } else if (0x6ee <= code && code <= 0x8ac) {
+ return "r";
+ } else if (0x2000 <= code && code <= 0x200b) {
+ return "w";
+ } else if (code == 0x200c) {
+ return "b";
+ } else {
+ return "L";
+ }
+ }
+ var bidiRE = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
+ var isNeutral = /[stwN]/,
+ isStrong = /[LRr]/,
+ countsAsLeft = /[Lb1n]/,
+ countsAsNum = /[1n]/;
+ function BidiSpan(level, from, to) {
+ this.level = level;
+ this.from = from;
+ this.to = to;
+ }
+ return function (str, direction) {
+ var outerType = direction == "ltr" ? "L" : "R";
+ if (str.length == 0 || direction == "ltr" && !bidiRE.test(str)) {
+ return false;
+ }
+ var len = str.length,
+ types = [];
+ for (var i = 0; i < len; ++i) {
+ types.push(charType(str.charCodeAt(i)));
+ }
+
+ // W1. Examine each non-spacing mark (NSM) in the level run, and
+ // change the type of the NSM to the type of the previous
+ // character. If the NSM is at the start of the level run, it will
+ // get the type of sor.
+ for (var i$1 = 0, prev = outerType; i$1 < len; ++i$1) {
+ var type = types[i$1];
+ if (type == "m") {
+ types[i$1] = prev;
+ } else {
+ prev = type;
+ }
+ }
+
+ // W2. Search backwards from each instance of a European number
+ // until the first strong type (R, L, AL, or sor) is found. If an
+ // AL is found, change the type of the European number to Arabic
+ // number.
+ // W3. Change all ALs to R.
+ for (var i$2 = 0, cur = outerType; i$2 < len; ++i$2) {
+ var type$1 = types[i$2];
+ if (type$1 == "1" && cur == "r") {
+ types[i$2] = "n";
+ } else if (isStrong.test(type$1)) {
+ cur = type$1;
+ if (type$1 == "r") {
+ types[i$2] = "R";
+ }
+ }
+ }
+
+ // W4. A single European separator between two European numbers
+ // changes to a European number. A single common separator between
+ // two numbers of the same type changes to that type.
+ for (var i$3 = 1, prev$1 = types[0]; i$3 < len - 1; ++i$3) {
+ var type$2 = types[i$3];
+ if (type$2 == "+" && prev$1 == "1" && types[i$3 + 1] == "1") {
+ types[i$3] = "1";
+ } else if (type$2 == "," && prev$1 == types[i$3 + 1] && (prev$1 == "1" || prev$1 == "n")) {
+ types[i$3] = prev$1;
+ }
+ prev$1 = type$2;
+ }
+
+ // W5. A sequence of European terminators adjacent to European
+ // numbers changes to all European numbers.
+ // W6. Otherwise, separators and terminators change to Other
+ // Neutral.
+ for (var i$4 = 0; i$4 < len; ++i$4) {
+ var type$3 = types[i$4];
+ if (type$3 == ",") {
+ types[i$4] = "N";
+ } else if (type$3 == "%") {
+ var end = void 0;
+ for (end = i$4 + 1; end < len && types[end] == "%"; ++end) {}
+ var replace = i$4 && types[i$4 - 1] == "!" || end < len && types[end] == "1" ? "1" : "N";
+ for (var j = i$4; j < end; ++j) {
+ types[j] = replace;
+ }
+ i$4 = end - 1;
+ }
+ }
+
+ // W7. Search backwards from each instance of a European number
+ // until the first strong type (R, L, or sor) is found. If an L is
+ // found, then change the type of the European number to L.
+ for (var i$5 = 0, cur$1 = outerType; i$5 < len; ++i$5) {
+ var type$4 = types[i$5];
+ if (cur$1 == "L" && type$4 == "1") {
+ types[i$5] = "L";
+ } else if (isStrong.test(type$4)) {
+ cur$1 = type$4;
+ }
+ }
+
+ // N1. A sequence of neutrals takes the direction of the
+ // surrounding strong text if the text on both sides has the same
+ // direction. European and Arabic numbers act as if they were R in
+ // terms of their influence on neutrals. Start-of-level-run (sor)
+ // and end-of-level-run (eor) are used at level run boundaries.
+ // N2. Any remaining neutrals take the embedding direction.
+ for (var i$6 = 0; i$6 < len; ++i$6) {
+ if (isNeutral.test(types[i$6])) {
+ var end$1 = void 0;
+ for (end$1 = i$6 + 1; end$1 < len && isNeutral.test(types[end$1]); ++end$1) {}
+ var before = (i$6 ? types[i$6 - 1] : outerType) == "L";
+ var after = (end$1 < len ? types[end$1] : outerType) == "L";
+ var replace$1 = before == after ? before ? "L" : "R" : outerType;
+ for (var j$1 = i$6; j$1 < end$1; ++j$1) {
+ types[j$1] = replace$1;
+ }
+ i$6 = end$1 - 1;
+ }
+ }
+
+ // Here we depart from the documented algorithm, in order to avoid
+ // building up an actual levels array. Since there are only three
+ // levels (0, 1, 2) in an implementation that doesn't take
+ // explicit embedding into account, we can build up the order on
+ // the fly, without following the level-based algorithm.
+ var order = [],
+ m;
+ for (var i$7 = 0; i$7 < len;) {
+ if (countsAsLeft.test(types[i$7])) {
+ var start = i$7;
+ for (++i$7; i$7 < len && countsAsLeft.test(types[i$7]); ++i$7) {}
+ order.push(new BidiSpan(0, start, i$7));
+ } else {
+ var pos = i$7,
+ at = order.length,
+ isRTL = direction == "rtl" ? 1 : 0;
+ for (++i$7; i$7 < len && types[i$7] != "L"; ++i$7) {}
+ for (var j$2 = pos; j$2 < i$7;) {
+ if (countsAsNum.test(types[j$2])) {
+ if (pos < j$2) {
+ order.splice(at, 0, new BidiSpan(1, pos, j$2));
+ at += isRTL;
+ }
+ var nstart = j$2;
+ for (++j$2; j$2 < i$7 && countsAsNum.test(types[j$2]); ++j$2) {}
+ order.splice(at, 0, new BidiSpan(2, nstart, j$2));
+ at += isRTL;
+ pos = j$2;
+ } else {
+ ++j$2;
+ }
+ }
+ if (pos < i$7) {
+ order.splice(at, 0, new BidiSpan(1, pos, i$7));
+ }
+ }
+ }
+ if (direction == "ltr") {
+ if (order[0].level == 1 && (m = str.match(/^\s+/))) {
+ order[0].from = m[0].length;
+ order.unshift(new BidiSpan(0, 0, m[0].length));
+ }
+ if (lst(order).level == 1 && (m = str.match(/\s+$/))) {
+ lst(order).to -= m[0].length;
+ order.push(new BidiSpan(0, len - m[0].length, len));
+ }
+ }
+ return direction == "rtl" ? order.reverse() : order;
+ };
+ }();
+
+ // Get the bidi ordering for the given line (and cache it). Returns
+ // false for lines that are fully left-to-right, and an array of
+ // BidiSpan objects otherwise.
+ function getOrder(line, direction) {
+ var order = line.order;
+ if (order == null) {
+ order = line.order = bidiOrdering(line.text, direction);
+ }
+ return order;
+ }
+
+ // EVENT HANDLING
+
+ // Lightweight event framework. on/off also work on DOM nodes,
+ // registering native DOM handlers.
+
+ var noHandlers = [];
+ var on = function (emitter, type, f) {
+ if (emitter.addEventListener) {
+ emitter.addEventListener(type, f, false);
+ } else if (emitter.attachEvent) {
+ emitter.attachEvent("on" + type, f);
+ } else {
+ var map = emitter._handlers || (emitter._handlers = {});
+ map[type] = (map[type] || noHandlers).concat(f);
+ }
+ };
+ function getHandlers(emitter, type) {
+ return emitter._handlers && emitter._handlers[type] || noHandlers;
+ }
+ function off(emitter, type, f) {
+ if (emitter.removeEventListener) {
+ emitter.removeEventListener(type, f, false);
+ } else if (emitter.detachEvent) {
+ emitter.detachEvent("on" + type, f);
+ } else {
+ var map = emitter._handlers,
+ arr = map && map[type];
+ if (arr) {
+ var index = indexOf(arr, f);
+ if (index > -1) {
+ map[type] = arr.slice(0, index).concat(arr.slice(index + 1));
+ }
+ }
+ }
+ }
+ function signal(emitter, type /*, values...*/) {
+ var handlers = getHandlers(emitter, type);
+ if (!handlers.length) {
+ return;
+ }
+ var args = Array.prototype.slice.call(arguments, 2);
+ for (var i = 0; i < handlers.length; ++i) {
+ handlers[i].apply(null, args);
+ }
+ }
+
+ // The DOM events that CodeMirror handles can be overridden by
+ // registering a (non-DOM) handler on the editor for the event name,
+ // and preventDefault-ing the event in that handler.
+ function signalDOMEvent(cm, e, override) {
+ if (typeof e == "string") {
+ e = {
+ type: e,
+ preventDefault: function () {
+ this.defaultPrevented = true;
+ }
+ };
+ }
+ signal(cm, override || e.type, cm, e);
+ return e_defaultPrevented(e) || e.codemirrorIgnore;
+ }
+ function signalCursorActivity(cm) {
+ var arr = cm._handlers && cm._handlers.cursorActivity;
+ if (!arr) {
+ return;
+ }
+ var set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []);
+ for (var i = 0; i < arr.length; ++i) {
+ if (indexOf(set, arr[i]) == -1) {
+ set.push(arr[i]);
+ }
+ }
+ }
+ function hasHandler(emitter, type) {
+ return getHandlers(emitter, type).length > 0;
+ }
+
+ // Add on and off methods to a constructor's prototype, to make
+ // registering events on such objects more convenient.
+ function eventMixin(ctor) {
+ ctor.prototype.on = function (type, f) {
+ on(this, type, f);
+ };
+ ctor.prototype.off = function (type, f) {
+ off(this, type, f);
+ };
+ }
+
+ // Due to the fact that we still support jurassic IE versions, some
+ // compatibility wrappers are needed.
+
+ function e_preventDefault(e) {
+ if (e.preventDefault) {
+ e.preventDefault();
+ } else {
+ e.returnValue = false;
+ }
+ }
+ function e_stopPropagation(e) {
+ if (e.stopPropagation) {
+ e.stopPropagation();
+ } else {
+ e.cancelBubble = true;
+ }
+ }
+ function e_defaultPrevented(e) {
+ return e.defaultPrevented != null ? e.defaultPrevented : e.returnValue == false;
+ }
+ function e_stop(e) {
+ e_preventDefault(e);
+ e_stopPropagation(e);
+ }
+ function e_target(e) {
+ return e.target || e.srcElement;
+ }
+ function e_button(e) {
+ var b = e.which;
+ if (b == null) {
+ if (e.button & 1) {
+ b = 1;
+ } else if (e.button & 2) {
+ b = 3;
+ } else if (e.button & 4) {
+ b = 2;
+ }
+ }
+ if (mac && e.ctrlKey && b == 1) {
+ b = 3;
+ }
+ return b;
+ }
+
+ // Detect drag-and-drop
+ var dragAndDrop = function () {
+ // There is *some* kind of drag-and-drop support in IE6-8, but I
+ // couldn't get it to work yet.
+ if (ie && ie_version < 9) {
+ return false;
+ }
+ var div = elt('div');
+ return "draggable" in div || "dragDrop" in div;
+ }();
+ var zwspSupported;
+ function zeroWidthElement(measure) {
+ if (zwspSupported == null) {
+ var test = elt("span", "\u200b");
+ removeChildrenAndAdd(measure, elt("span", [test, document.createTextNode("x")]));
+ if (measure.firstChild.offsetHeight != 0) {
+ zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8);
+ }
+ }
+ var node = zwspSupported ? elt("span", "\u200b") : elt("span", "\u00a0", null, "display: inline-block; width: 1px; margin-right: -1px");
+ node.setAttribute("cm-text", "");
+ return node;
+ }
+
+ // Feature-detect IE's crummy client rect reporting for bidi text
+ var badBidiRects;
+ function hasBadBidiRects(measure) {
+ if (badBidiRects != null) {
+ return badBidiRects;
+ }
+ var txt = removeChildrenAndAdd(measure, document.createTextNode("A\u062eA"));
+ var r0 = range(txt, 0, 1).getBoundingClientRect();
+ var r1 = range(txt, 1, 2).getBoundingClientRect();
+ removeChildren(measure);
+ if (!r0 || r0.left == r0.right) {
+ return false;
+ } // Safari returns null in some cases (#2780)
+ return badBidiRects = r1.right - r0.right < 3;
+ }
+
+ // See if "".split is the broken IE version, if so, provide an
+ // alternative way to split lines.
+ var splitLinesAuto = "\n\nb".split(/\n/).length != 3 ? function (string) {
+ var pos = 0,
+ result = [],
+ l = string.length;
+ while (pos <= l) {
+ var nl = string.indexOf("\n", pos);
+ if (nl == -1) {
+ nl = string.length;
+ }
+ var line = string.slice(pos, string.charAt(nl - 1) == "\r" ? nl - 1 : nl);
+ var rt = line.indexOf("\r");
+ if (rt != -1) {
+ result.push(line.slice(0, rt));
+ pos += rt + 1;
+ } else {
+ result.push(line);
+ pos = nl + 1;
+ }
+ }
+ return result;
+ } : function (string) {
+ return string.split(/\r\n?|\n/);
+ };
+ var hasSelection = window.getSelection ? function (te) {
+ try {
+ return te.selectionStart != te.selectionEnd;
+ } catch (e) {
+ return false;
+ }
+ } : function (te) {
+ var range;
+ try {
+ range = te.ownerDocument.selection.createRange();
+ } catch (e) {}
+ if (!range || range.parentElement() != te) {
+ return false;
+ }
+ return range.compareEndPoints("StartToEnd", range) != 0;
+ };
+ var hasCopyEvent = function () {
+ var e = elt("div");
+ if ("oncopy" in e) {
+ return true;
+ }
+ e.setAttribute("oncopy", "return;");
+ return typeof e.oncopy == "function";
+ }();
+ var badZoomedRects = null;
+ function hasBadZoomedRects(measure) {
+ if (badZoomedRects != null) {
+ return badZoomedRects;
+ }
+ var node = removeChildrenAndAdd(measure, elt("span", "x"));
+ var normal = node.getBoundingClientRect();
+ var fromRange = range(node, 0, 1).getBoundingClientRect();
+ return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1;
+ }
+
+ // Known modes, by name and by MIME
+ var modes = {},
+ mimeModes = {};
+
+ // Extra arguments are stored as the mode's dependencies, which is
+ // used by (legacy) mechanisms like loadmode.js to automatically
+ // load a mode. (Preferred mechanism is the require/define calls.)
+ function defineMode(name, mode) {
+ if (arguments.length > 2) {
+ mode.dependencies = Array.prototype.slice.call(arguments, 2);
+ }
+ modes[name] = mode;
+ }
+ function defineMIME(mime, spec) {
+ mimeModes[mime] = spec;
+ }
+
+ // Given a MIME type, a {name, ...options} config object, or a name
+ // string, return a mode config object.
+ function resolveMode(spec) {
+ if (typeof spec == "string" && mimeModes.hasOwnProperty(spec)) {
+ spec = mimeModes[spec];
+ } else if (spec && typeof spec.name == "string" && mimeModes.hasOwnProperty(spec.name)) {
+ var found = mimeModes[spec.name];
+ if (typeof found == "string") {
+ found = {
+ name: found
+ };
+ }
+ spec = createObj(found, spec);
+ spec.name = found.name;
+ } else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(spec)) {
+ return resolveMode("application/xml");
+ } else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+json$/.test(spec)) {
+ return resolveMode("application/json");
+ }
+ if (typeof spec == "string") {
+ return {
+ name: spec
+ };
+ } else {
+ return spec || {
+ name: "null"
+ };
+ }
+ }
+
+ // Given a mode spec (anything that resolveMode accepts), find and
+ // initialize an actual mode object.
+ function getMode(options, spec) {
+ spec = resolveMode(spec);
+ var mfactory = modes[spec.name];
+ if (!mfactory) {
+ return getMode(options, "text/plain");
+ }
+ var modeObj = mfactory(options, spec);
+ if (modeExtensions.hasOwnProperty(spec.name)) {
+ var exts = modeExtensions[spec.name];
+ for (var prop in exts) {
+ if (!exts.hasOwnProperty(prop)) {
+ continue;
+ }
+ if (modeObj.hasOwnProperty(prop)) {
+ modeObj["_" + prop] = modeObj[prop];
+ }
+ modeObj[prop] = exts[prop];
+ }
+ }
+ modeObj.name = spec.name;
+ if (spec.helperType) {
+ modeObj.helperType = spec.helperType;
+ }
+ if (spec.modeProps) {
+ for (var prop$1 in spec.modeProps) {
+ modeObj[prop$1] = spec.modeProps[prop$1];
+ }
+ }
+ return modeObj;
+ }
+
+ // This can be used to attach properties to mode objects from
+ // outside the actual mode definition.
+ var modeExtensions = {};
+ function extendMode(mode, properties) {
+ var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : modeExtensions[mode] = {};
+ copyObj(properties, exts);
+ }
+ function copyState(mode, state) {
+ if (state === true) {
+ return state;
+ }
+ if (mode.copyState) {
+ return mode.copyState(state);
+ }
+ var nstate = {};
+ for (var n in state) {
+ var val = state[n];
+ if (val instanceof Array) {
+ val = val.concat([]);
+ }
+ nstate[n] = val;
+ }
+ return nstate;
+ }
+
+ // Given a mode and a state (for that mode), find the inner mode and
+ // state at the position that the state refers to.
+ function innerMode(mode, state) {
+ var info;
+ while (mode.innerMode) {
+ info = mode.innerMode(state);
+ if (!info || info.mode == mode) {
+ break;
+ }
+ state = info.state;
+ mode = info.mode;
+ }
+ return info || {
+ mode: mode,
+ state: state
+ };
+ }
+ function startState(mode, a1, a2) {
+ return mode.startState ? mode.startState(a1, a2) : true;
+ }
+
+ // STRING STREAM
+
+ // Fed to the mode parsers, provides helper functions to make
+ // parsers more succinct.
+
+ var StringStream = function (string, tabSize, lineOracle) {
+ this.pos = this.start = 0;
+ this.string = string;
+ this.tabSize = tabSize || 8;
+ this.lastColumnPos = this.lastColumnValue = 0;
+ this.lineStart = 0;
+ this.lineOracle = lineOracle;
+ };
+ StringStream.prototype.eol = function () {
+ return this.pos >= this.string.length;
+ };
+ StringStream.prototype.sol = function () {
+ return this.pos == this.lineStart;
+ };
+ StringStream.prototype.peek = function () {
+ return this.string.charAt(this.pos) || undefined;
+ };
+ StringStream.prototype.next = function () {
+ if (this.pos < this.string.length) {
+ return this.string.charAt(this.pos++);
+ }
+ };
+ StringStream.prototype.eat = function (match) {
+ var ch = this.string.charAt(this.pos);
+ var ok;
+ if (typeof match == "string") {
+ ok = ch == match;
+ } else {
+ ok = ch && (match.test ? match.test(ch) : match(ch));
+ }
+ if (ok) {
+ ++this.pos;
+ return ch;
+ }
+ };
+ StringStream.prototype.eatWhile = function (match) {
+ var start = this.pos;
+ while (this.eat(match)) {}
+ return this.pos > start;
+ };
+ StringStream.prototype.eatSpace = function () {
+ var start = this.pos;
+ while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) {
+ ++this.pos;
+ }
+ return this.pos > start;
+ };
+ StringStream.prototype.skipToEnd = function () {
+ this.pos = this.string.length;
+ };
+ StringStream.prototype.skipTo = function (ch) {
+ var found = this.string.indexOf(ch, this.pos);
+ if (found > -1) {
+ this.pos = found;
+ return true;
+ }
+ };
+ StringStream.prototype.backUp = function (n) {
+ this.pos -= n;
+ };
+ StringStream.prototype.column = function () {
+ if (this.lastColumnPos < this.start) {
+ this.lastColumnValue = countColumn(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue);
+ this.lastColumnPos = this.start;
+ }
+ return this.lastColumnValue - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0);
+ };
+ StringStream.prototype.indentation = function () {
+ return countColumn(this.string, null, this.tabSize) - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0);
+ };
+ StringStream.prototype.match = function (pattern, consume, caseInsensitive) {
+ if (typeof pattern == "string") {
+ var cased = function (str) {
+ return caseInsensitive ? str.toLowerCase() : str;
+ };
+ var substr = this.string.substr(this.pos, pattern.length);
+ if (cased(substr) == cased(pattern)) {
+ if (consume !== false) {
+ this.pos += pattern.length;
+ }
+ return true;
+ }
+ } else {
+ var match = this.string.slice(this.pos).match(pattern);
+ if (match && match.index > 0) {
+ return null;
+ }
+ if (match && consume !== false) {
+ this.pos += match[0].length;
+ }
+ return match;
+ }
+ };
+ StringStream.prototype.current = function () {
+ return this.string.slice(this.start, this.pos);
+ };
+ StringStream.prototype.hideFirstChars = function (n, inner) {
+ this.lineStart += n;
+ try {
+ return inner();
+ } finally {
+ this.lineStart -= n;
+ }
+ };
+ StringStream.prototype.lookAhead = function (n) {
+ var oracle = this.lineOracle;
+ return oracle && oracle.lookAhead(n);
+ };
+ StringStream.prototype.baseToken = function () {
+ var oracle = this.lineOracle;
+ return oracle && oracle.baseToken(this.pos);
+ };
+
+ // Find the line object corresponding to the given line number.
+ function getLine(doc, n) {
+ n -= doc.first;
+ if (n < 0 || n >= doc.size) {
+ throw new Error("There is no line " + (n + doc.first) + " in the document.");
+ }
+ var chunk = doc;
+ while (!chunk.lines) {
+ for (var i = 0;; ++i) {
+ var child = chunk.children[i],
+ sz = child.chunkSize();
+ if (n < sz) {
+ chunk = child;
+ break;
+ }
+ n -= sz;
+ }
+ }
+ return chunk.lines[n];
+ }
+
+ // Get the part of a document between two positions, as an array of
+ // strings.
+ function getBetween(doc, start, end) {
+ var out = [],
+ n = start.line;
+ doc.iter(start.line, end.line + 1, function (line) {
+ var text = line.text;
+ if (n == end.line) {
+ text = text.slice(0, end.ch);
+ }
+ if (n == start.line) {
+ text = text.slice(start.ch);
+ }
+ out.push(text);
+ ++n;
+ });
+ return out;
+ }
+ // Get the lines between from and to, as array of strings.
+ function getLines(doc, from, to) {
+ var out = [];
+ doc.iter(from, to, function (line) {
+ out.push(line.text);
+ }); // iter aborts when callback returns truthy value
+ return out;
+ }
+
+ // Update the height of a line, propagating the height change
+ // upwards to parent nodes.
+ function updateLineHeight(line, height) {
+ var diff = height - line.height;
+ if (diff) {
+ for (var n = line; n; n = n.parent) {
+ n.height += diff;
+ }
+ }
+ }
+
+ // Given a line object, find its line number by walking up through
+ // its parent links.
+ function lineNo(line) {
+ if (line.parent == null) {
+ return null;
+ }
+ var cur = line.parent,
+ no = indexOf(cur.lines, line);
+ for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {
+ for (var i = 0;; ++i) {
+ if (chunk.children[i] == cur) {
+ break;
+ }
+ no += chunk.children[i].chunkSize();
+ }
+ }
+ return no + cur.first;
+ }
+
+ // Find the line at the given vertical position, using the height
+ // information in the document tree.
+ function lineAtHeight(chunk, h) {
+ var n = chunk.first;
+ outer: do {
+ for (var i$1 = 0; i$1 < chunk.children.length; ++i$1) {
+ var child = chunk.children[i$1],
+ ch = child.height;
+ if (h < ch) {
+ chunk = child;
+ continue outer;
+ }
+ h -= ch;
+ n += child.chunkSize();
+ }
+ return n;
+ } while (!chunk.lines);
+ var i = 0;
+ for (; i < chunk.lines.length; ++i) {
+ var line = chunk.lines[i],
+ lh = line.height;
+ if (h < lh) {
+ break;
+ }
+ h -= lh;
+ }
+ return n + i;
+ }
+ function isLine(doc, l) {
+ return l >= doc.first && l < doc.first + doc.size;
+ }
+ function lineNumberFor(options, i) {
+ return String(options.lineNumberFormatter(i + options.firstLineNumber));
+ }
+
+ // A Pos instance represents a position within the text.
+ function Pos(line, ch, sticky) {
+ if (sticky === void 0) sticky = null;
+ if (!(this instanceof Pos)) {
+ return new Pos(line, ch, sticky);
+ }
+ this.line = line;
+ this.ch = ch;
+ this.sticky = sticky;
+ }
+
+ // Compare two positions, return 0 if they are the same, a negative
+ // number when a is less, and a positive number otherwise.
+ function cmp(a, b) {
+ return a.line - b.line || a.ch - b.ch;
+ }
+ function equalCursorPos(a, b) {
+ return a.sticky == b.sticky && cmp(a, b) == 0;
+ }
+ function copyPos(x) {
+ return Pos(x.line, x.ch);
+ }
+ function maxPos(a, b) {
+ return cmp(a, b) < 0 ? b : a;
+ }
+ function minPos(a, b) {
+ return cmp(a, b) < 0 ? a : b;
+ }
+
+ // Most of the external API clips given positions to make sure they
+ // actually exist within the document.
+ function clipLine(doc, n) {
+ return Math.max(doc.first, Math.min(n, doc.first + doc.size - 1));
+ }
+ function clipPos(doc, pos) {
+ if (pos.line < doc.first) {
+ return Pos(doc.first, 0);
+ }
+ var last = doc.first + doc.size - 1;
+ if (pos.line > last) {
+ return Pos(last, getLine(doc, last).text.length);
+ }
+ return clipToLen(pos, getLine(doc, pos.line).text.length);
+ }
+ function clipToLen(pos, linelen) {
+ var ch = pos.ch;
+ if (ch == null || ch > linelen) {
+ return Pos(pos.line, linelen);
+ } else if (ch < 0) {
+ return Pos(pos.line, 0);
+ } else {
+ return pos;
+ }
+ }
+ function clipPosArray(doc, array) {
+ var out = [];
+ for (var i = 0; i < array.length; i++) {
+ out[i] = clipPos(doc, array[i]);
+ }
+ return out;
+ }
+ var SavedContext = function (state, lookAhead) {
+ this.state = state;
+ this.lookAhead = lookAhead;
+ };
+ var Context = function (doc, state, line, lookAhead) {
+ this.state = state;
+ this.doc = doc;
+ this.line = line;
+ this.maxLookAhead = lookAhead || 0;
+ this.baseTokens = null;
+ this.baseTokenPos = 1;
+ };
+ Context.prototype.lookAhead = function (n) {
+ var line = this.doc.getLine(this.line + n);
+ if (line != null && n > this.maxLookAhead) {
+ this.maxLookAhead = n;
+ }
+ return line;
+ };
+ Context.prototype.baseToken = function (n) {
+ if (!this.baseTokens) {
+ return null;
+ }
+ while (this.baseTokens[this.baseTokenPos] <= n) {
+ this.baseTokenPos += 2;
+ }
+ var type = this.baseTokens[this.baseTokenPos + 1];
+ return {
+ type: type && type.replace(/( |^)overlay .*/, ""),
+ size: this.baseTokens[this.baseTokenPos] - n
+ };
+ };
+ Context.prototype.nextLine = function () {
+ this.line++;
+ if (this.maxLookAhead > 0) {
+ this.maxLookAhead--;
+ }
+ };
+ Context.fromSaved = function (doc, saved, line) {
+ if (saved instanceof SavedContext) {
+ return new Context(doc, copyState(doc.mode, saved.state), line, saved.lookAhead);
+ } else {
+ return new Context(doc, copyState(doc.mode, saved), line);
+ }
+ };
+ Context.prototype.save = function (copy) {
+ var state = copy !== false ? copyState(this.doc.mode, this.state) : this.state;
+ return this.maxLookAhead > 0 ? new SavedContext(state, this.maxLookAhead) : state;
+ };
+
+ // Compute a style array (an array starting with a mode generation
+ // -- for invalidation -- followed by pairs of end positions and
+ // style strings), which is used to highlight the tokens on the
+ // line.
+ function highlightLine(cm, line, context, forceToEnd) {
+ // A styles array always starts with a number identifying the
+ // mode/overlays that it is based on (for easy invalidation).
+ var st = [cm.state.modeGen],
+ lineClasses = {};
+ // Compute the base array of styles
+ runMode(cm, line.text, cm.doc.mode, context, function (end, style) {
+ return st.push(end, style);
+ }, lineClasses, forceToEnd);
+ var state = context.state;
+
+ // Run overlays, adjust style array.
+ var loop = function (o) {
+ context.baseTokens = st;
+ var overlay = cm.state.overlays[o],
+ i = 1,
+ at = 0;
+ context.state = true;
+ runMode(cm, line.text, overlay.mode, context, function (end, style) {
+ var start = i;
+ // Ensure there's a token end at the current position, and that i points at it
+ while (at < end) {
+ var i_end = st[i];
+ if (i_end > end) {
+ st.splice(i, 1, end, st[i + 1], i_end);
+ }
+ i += 2;
+ at = Math.min(end, i_end);
+ }
+ if (!style) {
+ return;
+ }
+ if (overlay.opaque) {
+ st.splice(start, i - start, end, "overlay " + style);
+ i = start + 2;
+ } else {
+ for (; start < i; start += 2) {
+ var cur = st[start + 1];
+ st[start + 1] = (cur ? cur + " " : "") + "overlay " + style;
+ }
+ }
+ }, lineClasses);
+ context.state = state;
+ context.baseTokens = null;
+ context.baseTokenPos = 1;
+ };
+ for (var o = 0; o < cm.state.overlays.length; ++o) loop(o);
+ return {
+ styles: st,
+ classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null
+ };
+ }
+ function getLineStyles(cm, line, updateFrontier) {
+ if (!line.styles || line.styles[0] != cm.state.modeGen) {
+ var context = getContextBefore(cm, lineNo(line));
+ var resetState = line.text.length > cm.options.maxHighlightLength && copyState(cm.doc.mode, context.state);
+ var result = highlightLine(cm, line, context);
+ if (resetState) {
+ context.state = resetState;
+ }
+ line.stateAfter = context.save(!resetState);
+ line.styles = result.styles;
+ if (result.classes) {
+ line.styleClasses = result.classes;
+ } else if (line.styleClasses) {
+ line.styleClasses = null;
+ }
+ if (updateFrontier === cm.doc.highlightFrontier) {
+ cm.doc.modeFrontier = Math.max(cm.doc.modeFrontier, ++cm.doc.highlightFrontier);
+ }
+ }
+ return line.styles;
+ }
+ function getContextBefore(cm, n, precise) {
+ var doc = cm.doc,
+ display = cm.display;
+ if (!doc.mode.startState) {
+ return new Context(doc, true, n);
+ }
+ var start = findStartLine(cm, n, precise);
+ var saved = start > doc.first && getLine(doc, start - 1).stateAfter;
+ var context = saved ? Context.fromSaved(doc, saved, start) : new Context(doc, startState(doc.mode), start);
+ doc.iter(start, n, function (line) {
+ processLine(cm, line.text, context);
+ var pos = context.line;
+ line.stateAfter = pos == n - 1 || pos % 5 == 0 || pos >= display.viewFrom && pos < display.viewTo ? context.save() : null;
+ context.nextLine();
+ });
+ if (precise) {
+ doc.modeFrontier = context.line;
+ }
+ return context;
+ }
+
+ // Lightweight form of highlight -- proceed over this line and
+ // update state, but don't save a style array. Used for lines that
+ // aren't currently visible.
+ function processLine(cm, text, context, startAt) {
+ var mode = cm.doc.mode;
+ var stream = new StringStream(text, cm.options.tabSize, context);
+ stream.start = stream.pos = startAt || 0;
+ if (text == "") {
+ callBlankLine(mode, context.state);
+ }
+ while (!stream.eol()) {
+ readToken(mode, stream, context.state);
+ stream.start = stream.pos;
+ }
+ }
+ function callBlankLine(mode, state) {
+ if (mode.blankLine) {
+ return mode.blankLine(state);
+ }
+ if (!mode.innerMode) {
+ return;
+ }
+ var inner = innerMode(mode, state);
+ if (inner.mode.blankLine) {
+ return inner.mode.blankLine(inner.state);
+ }
+ }
+ function readToken(mode, stream, state, inner) {
+ for (var i = 0; i < 10; i++) {
+ if (inner) {
+ inner[0] = innerMode(mode, state).mode;
+ }
+ var style = mode.token(stream, state);
+ if (stream.pos > stream.start) {
+ return style;
+ }
+ }
+ throw new Error("Mode " + mode.name + " failed to advance stream.");
+ }
+ var Token = function (stream, type, state) {
+ this.start = stream.start;
+ this.end = stream.pos;
+ this.string = stream.current();
+ this.type = type || null;
+ this.state = state;
+ };
+
+ // Utility for getTokenAt and getLineTokens
+ function takeToken(cm, pos, precise, asArray) {
+ var doc = cm.doc,
+ mode = doc.mode,
+ style;
+ pos = clipPos(doc, pos);
+ var line = getLine(doc, pos.line),
+ context = getContextBefore(cm, pos.line, precise);
+ var stream = new StringStream(line.text, cm.options.tabSize, context),
+ tokens;
+ if (asArray) {
+ tokens = [];
+ }
+ while ((asArray || stream.pos < pos.ch) && !stream.eol()) {
+ stream.start = stream.pos;
+ style = readToken(mode, stream, context.state);
+ if (asArray) {
+ tokens.push(new Token(stream, style, copyState(doc.mode, context.state)));
+ }
+ }
+ return asArray ? tokens : new Token(stream, style, context.state);
+ }
+ function extractLineClasses(type, output) {
+ if (type) {
+ for (;;) {
+ var lineClass = type.match(/(?:^|\s+)line-(background-)?(\S+)/);
+ if (!lineClass) {
+ break;
+ }
+ type = type.slice(0, lineClass.index) + type.slice(lineClass.index + lineClass[0].length);
+ var prop = lineClass[1] ? "bgClass" : "textClass";
+ if (output[prop] == null) {
+ output[prop] = lineClass[2];
+ } else if (!new RegExp("(?:^|\\s)" + lineClass[2] + "(?:$|\\s)").test(output[prop])) {
+ output[prop] += " " + lineClass[2];
+ }
+ }
+ }
+ return type;
+ }
+
+ // Run the given mode's parser over a line, calling f for each token.
+ function runMode(cm, text, mode, context, f, lineClasses, forceToEnd) {
+ var flattenSpans = mode.flattenSpans;
+ if (flattenSpans == null) {
+ flattenSpans = cm.options.flattenSpans;
+ }
+ var curStart = 0,
+ curStyle = null;
+ var stream = new StringStream(text, cm.options.tabSize, context),
+ style;
+ var inner = cm.options.addModeClass && [null];
+ if (text == "") {
+ extractLineClasses(callBlankLine(mode, context.state), lineClasses);
+ }
+ while (!stream.eol()) {
+ if (stream.pos > cm.options.maxHighlightLength) {
+ flattenSpans = false;
+ if (forceToEnd) {
+ processLine(cm, text, context, stream.pos);
+ }
+ stream.pos = text.length;
+ style = null;
+ } else {
+ style = extractLineClasses(readToken(mode, stream, context.state, inner), lineClasses);
+ }
+ if (inner) {
+ var mName = inner[0].name;
+ if (mName) {
+ style = "m-" + (style ? mName + " " + style : mName);
+ }
+ }
+ if (!flattenSpans || curStyle != style) {
+ while (curStart < stream.start) {
+ curStart = Math.min(stream.start, curStart + 5000);
+ f(curStart, curStyle);
+ }
+ curStyle = style;
+ }
+ stream.start = stream.pos;
+ }
+ while (curStart < stream.pos) {
+ // Webkit seems to refuse to render text nodes longer than 57444
+ // characters, and returns inaccurate measurements in nodes
+ // starting around 5000 chars.
+ var pos = Math.min(stream.pos, curStart + 5000);
+ f(pos, curStyle);
+ curStart = pos;
+ }
+ }
+
+ // Finds the line to start with when starting a parse. Tries to
+ // find a line with a stateAfter, so that it can start with a
+ // valid state. If that fails, it returns the line with the
+ // smallest indentation, which tends to need the least context to
+ // parse correctly.
+ function findStartLine(cm, n, precise) {
+ var minindent,
+ minline,
+ doc = cm.doc;
+ var lim = precise ? -1 : n - (cm.doc.mode.innerMode ? 1000 : 100);
+ for (var search = n; search > lim; --search) {
+ if (search <= doc.first) {
+ return doc.first;
+ }
+ var line = getLine(doc, search - 1),
+ after = line.stateAfter;
+ if (after && (!precise || search + (after instanceof SavedContext ? after.lookAhead : 0) <= doc.modeFrontier)) {
+ return search;
+ }
+ var indented = countColumn(line.text, null, cm.options.tabSize);
+ if (minline == null || minindent > indented) {
+ minline = search - 1;
+ minindent = indented;
+ }
+ }
+ return minline;
+ }
+ function retreatFrontier(doc, n) {
+ doc.modeFrontier = Math.min(doc.modeFrontier, n);
+ if (doc.highlightFrontier < n - 10) {
+ return;
+ }
+ var start = doc.first;
+ for (var line = n - 1; line > start; line--) {
+ var saved = getLine(doc, line).stateAfter;
+ // change is on 3
+ // state on line 1 looked ahead 2 -- so saw 3
+ // test 1 + 2 < 3 should cover this
+ if (saved && (!(saved instanceof SavedContext) || line + saved.lookAhead < n)) {
+ start = line + 1;
+ break;
+ }
+ }
+ doc.highlightFrontier = Math.min(doc.highlightFrontier, start);
+ }
+
+ // Optimize some code when these features are not used.
+ var sawReadOnlySpans = false,
+ sawCollapsedSpans = false;
+ function seeReadOnlySpans() {
+ sawReadOnlySpans = true;
+ }
+ function seeCollapsedSpans() {
+ sawCollapsedSpans = true;
+ }
+
+ // TEXTMARKER SPANS
+
+ function MarkedSpan(marker, from, to) {
+ this.marker = marker;
+ this.from = from;
+ this.to = to;
+ }
+
+ // Search an array of spans for a span matching the given marker.
+ function getMarkedSpanFor(spans, marker) {
+ if (spans) {
+ for (var i = 0; i < spans.length; ++i) {
+ var span = spans[i];
+ if (span.marker == marker) {
+ return span;
+ }
+ }
+ }
+ }
+
+ // Remove a span from an array, returning undefined if no spans are
+ // left (we don't store arrays for lines without spans).
+ function removeMarkedSpan(spans, span) {
+ var r;
+ for (var i = 0; i < spans.length; ++i) {
+ if (spans[i] != span) {
+ (r || (r = [])).push(spans[i]);
+ }
+ }
+ return r;
+ }
+
+ // Add a span to a line.
+ function addMarkedSpan(line, span, op) {
+ var inThisOp = op && window.WeakSet && (op.markedSpans || (op.markedSpans = new WeakSet()));
+ if (inThisOp && line.markedSpans && inThisOp.has(line.markedSpans)) {
+ line.markedSpans.push(span);
+ } else {
+ line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
+ if (inThisOp) {
+ inThisOp.add(line.markedSpans);
+ }
+ }
+ span.marker.attachLine(line);
+ }
+
+ // Used for the algorithm that adjusts markers for a change in the
+ // document. These functions cut an array of spans at a given
+ // character position, returning an array of remaining chunks (or
+ // undefined if nothing remains).
+ function markedSpansBefore(old, startCh, isInsert) {
+ var nw;
+ if (old) {
+ for (var i = 0; i < old.length; ++i) {
+ var span = old[i],
+ marker = span.marker;
+ var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);
+ if (startsBefore || span.from == startCh && marker.type == "bookmark" && (!isInsert || !span.marker.insertLeft)) {
+ var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh);
+ (nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to));
+ }
+ }
+ }
+ return nw;
+ }
+ function markedSpansAfter(old, endCh, isInsert) {
+ var nw;
+ if (old) {
+ for (var i = 0; i < old.length; ++i) {
+ var span = old[i],
+ marker = span.marker;
+ var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh);
+ if (endsAfter || span.from == endCh && marker.type == "bookmark" && (!isInsert || span.marker.insertLeft)) {
+ var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh);
+ (nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh, span.to == null ? null : span.to - endCh));
+ }
+ }
+ }
+ return nw;
+ }
+
+ // Given a change object, compute the new set of marker spans that
+ // cover the line in which the change took place. Removes spans
+ // entirely within the change, reconnects spans belonging to the
+ // same marker that appear on both sides of the change, and cuts off
+ // spans partially within the change. Returns an array of span
+ // arrays with one element for each line in (after) the change.
+ function stretchSpansOverChange(doc, change) {
+ if (change.full) {
+ return null;
+ }
+ var oldFirst = isLine(doc, change.from.line) && getLine(doc, change.from.line).markedSpans;
+ var oldLast = isLine(doc, change.to.line) && getLine(doc, change.to.line).markedSpans;
+ if (!oldFirst && !oldLast) {
+ return null;
+ }
+ var startCh = change.from.ch,
+ endCh = change.to.ch,
+ isInsert = cmp(change.from, change.to) == 0;
+ // Get the spans that 'stick out' on both sides
+ var first = markedSpansBefore(oldFirst, startCh, isInsert);
+ var last = markedSpansAfter(oldLast, endCh, isInsert);
+
+ // Next, merge those two ends
+ var sameLine = change.text.length == 1,
+ offset = lst(change.text).length + (sameLine ? startCh : 0);
+ if (first) {
+ // Fix up .to properties of first
+ for (var i = 0; i < first.length; ++i) {
+ var span = first[i];
+ if (span.to == null) {
+ var found = getMarkedSpanFor(last, span.marker);
+ if (!found) {
+ span.to = startCh;
+ } else if (sameLine) {
+ span.to = found.to == null ? null : found.to + offset;
+ }
+ }
+ }
+ }
+ if (last) {
+ // Fix up .from in last (or move them into first in case of sameLine)
+ for (var i$1 = 0; i$1 < last.length; ++i$1) {
+ var span$1 = last[i$1];
+ if (span$1.to != null) {
+ span$1.to += offset;
+ }
+ if (span$1.from == null) {
+ var found$1 = getMarkedSpanFor(first, span$1.marker);
+ if (!found$1) {
+ span$1.from = offset;
+ if (sameLine) {
+ (first || (first = [])).push(span$1);
+ }
+ }
+ } else {
+ span$1.from += offset;
+ if (sameLine) {
+ (first || (first = [])).push(span$1);
+ }
+ }
+ }
+ }
+ // Make sure we didn't create any zero-length spans
+ if (first) {
+ first = clearEmptySpans(first);
+ }
+ if (last && last != first) {
+ last = clearEmptySpans(last);
+ }
+ var newMarkers = [first];
+ if (!sameLine) {
+ // Fill gap with whole-line-spans
+ var gap = change.text.length - 2,
+ gapMarkers;
+ if (gap > 0 && first) {
+ for (var i$2 = 0; i$2 < first.length; ++i$2) {
+ if (first[i$2].to == null) {
+ (gapMarkers || (gapMarkers = [])).push(new MarkedSpan(first[i$2].marker, null, null));
+ }
+ }
+ }
+ for (var i$3 = 0; i$3 < gap; ++i$3) {
+ newMarkers.push(gapMarkers);
+ }
+ newMarkers.push(last);
+ }
+ return newMarkers;
+ }
+
+ // Remove spans that are empty and don't have a clearWhenEmpty
+ // option of false.
+ function clearEmptySpans(spans) {
+ for (var i = 0; i < spans.length; ++i) {
+ var span = spans[i];
+ if (span.from != null && span.from == span.to && span.marker.clearWhenEmpty !== false) {
+ spans.splice(i--, 1);
+ }
+ }
+ if (!spans.length) {
+ return null;
+ }
+ return spans;
+ }
+
+ // Used to 'clip' out readOnly ranges when making a change.
+ function removeReadOnlyRanges(doc, from, to) {
+ var markers = null;
+ doc.iter(from.line, to.line + 1, function (line) {
+ if (line.markedSpans) {
+ for (var i = 0; i < line.markedSpans.length; ++i) {
+ var mark = line.markedSpans[i].marker;
+ if (mark.readOnly && (!markers || indexOf(markers, mark) == -1)) {
+ (markers || (markers = [])).push(mark);
+ }
+ }
+ }
+ });
+ if (!markers) {
+ return null;
+ }
+ var parts = [{
+ from: from,
+ to: to
+ }];
+ for (var i = 0; i < markers.length; ++i) {
+ var mk = markers[i],
+ m = mk.find(0);
+ for (var j = 0; j < parts.length; ++j) {
+ var p = parts[j];
+ if (cmp(p.to, m.from) < 0 || cmp(p.from, m.to) > 0) {
+ continue;
+ }
+ var newParts = [j, 1],
+ dfrom = cmp(p.from, m.from),
+ dto = cmp(p.to, m.to);
+ if (dfrom < 0 || !mk.inclusiveLeft && !dfrom) {
+ newParts.push({
+ from: p.from,
+ to: m.from
+ });
+ }
+ if (dto > 0 || !mk.inclusiveRight && !dto) {
+ newParts.push({
+ from: m.to,
+ to: p.to
+ });
+ }
+ parts.splice.apply(parts, newParts);
+ j += newParts.length - 3;
+ }
+ }
+ return parts;
+ }
+
+ // Connect or disconnect spans from a line.
+ function detachMarkedSpans(line) {
+ var spans = line.markedSpans;
+ if (!spans) {
+ return;
+ }
+ for (var i = 0; i < spans.length; ++i) {
+ spans[i].marker.detachLine(line);
+ }
+ line.markedSpans = null;
+ }
+ function attachMarkedSpans(line, spans) {
+ if (!spans) {
+ return;
+ }
+ for (var i = 0; i < spans.length; ++i) {
+ spans[i].marker.attachLine(line);
+ }
+ line.markedSpans = spans;
+ }
+
+ // Helpers used when computing which overlapping collapsed span
+ // counts as the larger one.
+ function extraLeft(marker) {
+ return marker.inclusiveLeft ? -1 : 0;
+ }
+ function extraRight(marker) {
+ return marker.inclusiveRight ? 1 : 0;
+ }
+
+ // Returns a number indicating which of two overlapping collapsed
+ // spans is larger (and thus includes the other). Falls back to
+ // comparing ids when the spans cover exactly the same range.
+ function compareCollapsedMarkers(a, b) {
+ var lenDiff = a.lines.length - b.lines.length;
+ if (lenDiff != 0) {
+ return lenDiff;
+ }
+ var aPos = a.find(),
+ bPos = b.find();
+ var fromCmp = cmp(aPos.from, bPos.from) || extraLeft(a) - extraLeft(b);
+ if (fromCmp) {
+ return -fromCmp;
+ }
+ var toCmp = cmp(aPos.to, bPos.to) || extraRight(a) - extraRight(b);
+ if (toCmp) {
+ return toCmp;
+ }
+ return b.id - a.id;
+ }
+
+ // Find out whether a line ends or starts in a collapsed span. If
+ // so, return the marker for that span.
+ function collapsedSpanAtSide(line, start) {
+ var sps = sawCollapsedSpans && line.markedSpans,
+ found;
+ if (sps) {
+ for (var sp = void 0, i = 0; i < sps.length; ++i) {
+ sp = sps[i];
+ if (sp.marker.collapsed && (start ? sp.from : sp.to) == null && (!found || compareCollapsedMarkers(found, sp.marker) < 0)) {
+ found = sp.marker;
+ }
+ }
+ }
+ return found;
+ }
+ function collapsedSpanAtStart(line) {
+ return collapsedSpanAtSide(line, true);
+ }
+ function collapsedSpanAtEnd(line) {
+ return collapsedSpanAtSide(line, false);
+ }
+ function collapsedSpanAround(line, ch) {
+ var sps = sawCollapsedSpans && line.markedSpans,
+ found;
+ if (sps) {
+ for (var i = 0; i < sps.length; ++i) {
+ var sp = sps[i];
+ if (sp.marker.collapsed && (sp.from == null || sp.from < ch) && (sp.to == null || sp.to > ch) && (!found || compareCollapsedMarkers(found, sp.marker) < 0)) {
+ found = sp.marker;
+ }
+ }
+ }
+ return found;
+ }
+
+ // Test whether there exists a collapsed span that partially
+ // overlaps (covers the start or end, but not both) of a new span.
+ // Such overlap is not allowed.
+ function conflictingCollapsedRange(doc, lineNo, from, to, marker) {
+ var line = getLine(doc, lineNo);
+ var sps = sawCollapsedSpans && line.markedSpans;
+ if (sps) {
+ for (var i = 0; i < sps.length; ++i) {
+ var sp = sps[i];
+ if (!sp.marker.collapsed) {
+ continue;
+ }
+ var found = sp.marker.find(0);
+ var fromCmp = cmp(found.from, from) || extraLeft(sp.marker) - extraLeft(marker);
+ var toCmp = cmp(found.to, to) || extraRight(sp.marker) - extraRight(marker);
+ if (fromCmp >= 0 && toCmp <= 0 || fromCmp <= 0 && toCmp >= 0) {
+ continue;
+ }
+ if (fromCmp <= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.to, from) >= 0 : cmp(found.to, from) > 0) || fromCmp >= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.from, to) <= 0 : cmp(found.from, to) < 0)) {
+ return true;
+ }
+ }
+ }
+ }
+
+ // A visual line is a line as drawn on the screen. Folding, for
+ // example, can cause multiple logical lines to appear on the same
+ // visual line. This finds the start of the visual line that the
+ // given line is part of (usually that is the line itself).
+ function visualLine(line) {
+ var merged;
+ while (merged = collapsedSpanAtStart(line)) {
+ line = merged.find(-1, true).line;
+ }
+ return line;
+ }
+ function visualLineEnd(line) {
+ var merged;
+ while (merged = collapsedSpanAtEnd(line)) {
+ line = merged.find(1, true).line;
+ }
+ return line;
+ }
+
+ // Returns an array of logical lines that continue the visual line
+ // started by the argument, or undefined if there are no such lines.
+ function visualLineContinued(line) {
+ var merged, lines;
+ while (merged = collapsedSpanAtEnd(line)) {
+ line = merged.find(1, true).line;
+ (lines || (lines = [])).push(line);
+ }
+ return lines;
+ }
+
+ // Get the line number of the start of the visual line that the
+ // given line number is part of.
+ function visualLineNo(doc, lineN) {
+ var line = getLine(doc, lineN),
+ vis = visualLine(line);
+ if (line == vis) {
+ return lineN;
+ }
+ return lineNo(vis);
+ }
+
+ // Get the line number of the start of the next visual line after
+ // the given line.
+ function visualLineEndNo(doc, lineN) {
+ if (lineN > doc.lastLine()) {
+ return lineN;
+ }
+ var line = getLine(doc, lineN),
+ merged;
+ if (!lineIsHidden(doc, line)) {
+ return lineN;
+ }
+ while (merged = collapsedSpanAtEnd(line)) {
+ line = merged.find(1, true).line;
+ }
+ return lineNo(line) + 1;
+ }
+
+ // Compute whether a line is hidden. Lines count as hidden when they
+ // are part of a visual line that starts with another line, or when
+ // they are entirely covered by collapsed, non-widget span.
+ function lineIsHidden(doc, line) {
+ var sps = sawCollapsedSpans && line.markedSpans;
+ if (sps) {
+ for (var sp = void 0, i = 0; i < sps.length; ++i) {
+ sp = sps[i];
+ if (!sp.marker.collapsed) {
+ continue;
+ }
+ if (sp.from == null) {
+ return true;
+ }
+ if (sp.marker.widgetNode) {
+ continue;
+ }
+ if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp)) {
+ return true;
+ }
+ }
+ }
+ }
+ function lineIsHiddenInner(doc, line, span) {
+ if (span.to == null) {
+ var end = span.marker.find(1, true);
+ return lineIsHiddenInner(doc, end.line, getMarkedSpanFor(end.line.markedSpans, span.marker));
+ }
+ if (span.marker.inclusiveRight && span.to == line.text.length) {
+ return true;
+ }
+ for (var sp = void 0, i = 0; i < line.markedSpans.length; ++i) {
+ sp = line.markedSpans[i];
+ if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to && (sp.to == null || sp.to != span.from) && (sp.marker.inclusiveLeft || span.marker.inclusiveRight) && lineIsHiddenInner(doc, line, sp)) {
+ return true;
+ }
+ }
+ }
+
+ // Find the height above the given line.
+ function heightAtLine(lineObj) {
+ lineObj = visualLine(lineObj);
+ var h = 0,
+ chunk = lineObj.parent;
+ for (var i = 0; i < chunk.lines.length; ++i) {
+ var line = chunk.lines[i];
+ if (line == lineObj) {
+ break;
+ } else {
+ h += line.height;
+ }
+ }
+ for (var p = chunk.parent; p; chunk = p, p = chunk.parent) {
+ for (var i$1 = 0; i$1 < p.children.length; ++i$1) {
+ var cur = p.children[i$1];
+ if (cur == chunk) {
+ break;
+ } else {
+ h += cur.height;
+ }
+ }
+ }
+ return h;
+ }
+
+ // Compute the character length of a line, taking into account
+ // collapsed ranges (see markText) that might hide parts, and join
+ // other lines onto it.
+ function lineLength(line) {
+ if (line.height == 0) {
+ return 0;
+ }
+ var len = line.text.length,
+ merged,
+ cur = line;
+ while (merged = collapsedSpanAtStart(cur)) {
+ var found = merged.find(0, true);
+ cur = found.from.line;
+ len += found.from.ch - found.to.ch;
+ }
+ cur = line;
+ while (merged = collapsedSpanAtEnd(cur)) {
+ var found$1 = merged.find(0, true);
+ len -= cur.text.length - found$1.from.ch;
+ cur = found$1.to.line;
+ len += cur.text.length - found$1.to.ch;
+ }
+ return len;
+ }
+
+ // Find the longest line in the document.
+ function findMaxLine(cm) {
+ var d = cm.display,
+ doc = cm.doc;
+ d.maxLine = getLine(doc, doc.first);
+ d.maxLineLength = lineLength(d.maxLine);
+ d.maxLineChanged = true;
+ doc.iter(function (line) {
+ var len = lineLength(line);
+ if (len > d.maxLineLength) {
+ d.maxLineLength = len;
+ d.maxLine = line;
+ }
+ });
+ }
+
+ // LINE DATA STRUCTURE
+
+ // Line objects. These hold state related to a line, including
+ // highlighting info (the styles array).
+ var Line = function (text, markedSpans, estimateHeight) {
+ this.text = text;
+ attachMarkedSpans(this, markedSpans);
+ this.height = estimateHeight ? estimateHeight(this) : 1;
+ };
+ Line.prototype.lineNo = function () {
+ return lineNo(this);
+ };
+ eventMixin(Line);
+
+ // Change the content (text, markers) of a line. Automatically
+ // invalidates cached information and tries to re-estimate the
+ // line's height.
+ function updateLine(line, text, markedSpans, estimateHeight) {
+ line.text = text;
+ if (line.stateAfter) {
+ line.stateAfter = null;
+ }
+ if (line.styles) {
+ line.styles = null;
+ }
+ if (line.order != null) {
+ line.order = null;
+ }
+ detachMarkedSpans(line);
+ attachMarkedSpans(line, markedSpans);
+ var estHeight = estimateHeight ? estimateHeight(line) : 1;
+ if (estHeight != line.height) {
+ updateLineHeight(line, estHeight);
+ }
+ }
+
+ // Detach a line from the document tree and its markers.
+ function cleanUpLine(line) {
+ line.parent = null;
+ detachMarkedSpans(line);
+ }
+
+ // Convert a style as returned by a mode (either null, or a string
+ // containing one or more styles) to a CSS style. This is cached,
+ // and also looks for line-wide styles.
+ var styleToClassCache = {},
+ styleToClassCacheWithMode = {};
+ function interpretTokenStyle(style, options) {
+ if (!style || /^\s*$/.test(style)) {
+ return null;
+ }
+ var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache;
+ return cache[style] || (cache[style] = style.replace(/\S+/g, "cm-$&"));
+ }
+
+ // Render the DOM representation of the text of a line. Also builds
+ // up a 'line map', which points at the DOM nodes that represent
+ // specific stretches of text, and is used by the measuring code.
+ // The returned object contains the DOM node, this map, and
+ // information about line-wide styles that were set by the mode.
+ function buildLineContent(cm, lineView) {
+ // The padding-right forces the element to have a 'border', which
+ // is needed on Webkit to be able to get line-level bounding
+ // rectangles for it (in measureChar).
+ var content = eltP("span", null, null, webkit ? "padding-right: .1px" : null);
+ var builder = {
+ pre: eltP("pre", [content], "CodeMirror-line"),
+ content: content,
+ col: 0,
+ pos: 0,
+ cm: cm,
+ trailingSpace: false,
+ splitSpaces: cm.getOption("lineWrapping")
+ };
+ lineView.measure = {};
+
+ // Iterate over the logical lines that make up this visual line.
+ for (var i = 0; i <= (lineView.rest ? lineView.rest.length : 0); i++) {
+ var line = i ? lineView.rest[i - 1] : lineView.line,
+ order = void 0;
+ builder.pos = 0;
+ builder.addToken = buildToken;
+ // Optionally wire in some hacks into the token-rendering
+ // algorithm, to deal with browser quirks.
+ if (hasBadBidiRects(cm.display.measure) && (order = getOrder(line, cm.doc.direction))) {
+ builder.addToken = buildTokenBadBidi(builder.addToken, order);
+ }
+ builder.map = [];
+ var allowFrontierUpdate = lineView != cm.display.externalMeasured && lineNo(line);
+ insertLineContent(line, builder, getLineStyles(cm, line, allowFrontierUpdate));
+ if (line.styleClasses) {
+ if (line.styleClasses.bgClass) {
+ builder.bgClass = joinClasses(line.styleClasses.bgClass, builder.bgClass || "");
+ }
+ if (line.styleClasses.textClass) {
+ builder.textClass = joinClasses(line.styleClasses.textClass, builder.textClass || "");
+ }
+ }
+
+ // Ensure at least a single node is present, for measuring.
+ if (builder.map.length == 0) {
+ builder.map.push(0, 0, builder.content.appendChild(zeroWidthElement(cm.display.measure)));
+ }
+
+ // Store the map and a cache object for the current logical line
+ if (i == 0) {
+ lineView.measure.map = builder.map;
+ lineView.measure.cache = {};
+ } else {
+ (lineView.measure.maps || (lineView.measure.maps = [])).push(builder.map);
+ (lineView.measure.caches || (lineView.measure.caches = [])).push({});
+ }
+ }
+
+ // See issue #2901
+ if (webkit) {
+ var last = builder.content.lastChild;
+ if (/\bcm-tab\b/.test(last.className) || last.querySelector && last.querySelector(".cm-tab")) {
+ builder.content.className = "cm-tab-wrap-hack";
+ }
+ }
+ signal(cm, "renderLine", cm, lineView.line, builder.pre);
+ if (builder.pre.className) {
+ builder.textClass = joinClasses(builder.pre.className, builder.textClass || "");
+ }
+ return builder;
+ }
+ function defaultSpecialCharPlaceholder(ch) {
+ var token = elt("span", "\u2022", "cm-invalidchar");
+ token.title = "\\u" + ch.charCodeAt(0).toString(16);
+ token.setAttribute("aria-label", token.title);
+ return token;
+ }
+
+ // Build up the DOM representation for a single token, and add it to
+ // the line map. Takes care to render special characters separately.
+ function buildToken(builder, text, style, startStyle, endStyle, css, attributes) {
+ if (!text) {
+ return;
+ }
+ var displayText = builder.splitSpaces ? splitSpaces(text, builder.trailingSpace) : text;
+ var special = builder.cm.state.specialChars,
+ mustWrap = false;
+ var content;
+ if (!special.test(text)) {
+ builder.col += text.length;
+ content = document.createTextNode(displayText);
+ builder.map.push(builder.pos, builder.pos + text.length, content);
+ if (ie && ie_version < 9) {
+ mustWrap = true;
+ }
+ builder.pos += text.length;
+ } else {
+ content = document.createDocumentFragment();
+ var pos = 0;
+ while (true) {
+ special.lastIndex = pos;
+ var m = special.exec(text);
+ var skipped = m ? m.index - pos : text.length - pos;
+ if (skipped) {
+ var txt = document.createTextNode(displayText.slice(pos, pos + skipped));
+ if (ie && ie_version < 9) {
+ content.appendChild(elt("span", [txt]));
+ } else {
+ content.appendChild(txt);
+ }
+ builder.map.push(builder.pos, builder.pos + skipped, txt);
+ builder.col += skipped;
+ builder.pos += skipped;
+ }
+ if (!m) {
+ break;
+ }
+ pos += skipped + 1;
+ var txt$1 = void 0;
+ if (m[0] == "\t") {
+ var tabSize = builder.cm.options.tabSize,
+ tabWidth = tabSize - builder.col % tabSize;
+ txt$1 = content.appendChild(elt("span", spaceStr(tabWidth), "cm-tab"));
+ txt$1.setAttribute("role", "presentation");
+ txt$1.setAttribute("cm-text", "\t");
+ builder.col += tabWidth;
+ } else if (m[0] == "\r" || m[0] == "\n") {
+ txt$1 = content.appendChild(elt("span", m[0] == "\r" ? "\u240d" : "\u2424", "cm-invalidchar"));
+ txt$1.setAttribute("cm-text", m[0]);
+ builder.col += 1;
+ } else {
+ txt$1 = builder.cm.options.specialCharPlaceholder(m[0]);
+ txt$1.setAttribute("cm-text", m[0]);
+ if (ie && ie_version < 9) {
+ content.appendChild(elt("span", [txt$1]));
+ } else {
+ content.appendChild(txt$1);
+ }
+ builder.col += 1;
+ }
+ builder.map.push(builder.pos, builder.pos + 1, txt$1);
+ builder.pos++;
+ }
+ }
+ builder.trailingSpace = displayText.charCodeAt(text.length - 1) == 32;
+ if (style || startStyle || endStyle || mustWrap || css || attributes) {
+ var fullStyle = style || "";
+ if (startStyle) {
+ fullStyle += startStyle;
+ }
+ if (endStyle) {
+ fullStyle += endStyle;
+ }
+ var token = elt("span", [content], fullStyle, css);
+ if (attributes) {
+ for (var attr in attributes) {
+ if (attributes.hasOwnProperty(attr) && attr != "style" && attr != "class") {
+ token.setAttribute(attr, attributes[attr]);
+ }
+ }
+ }
+ return builder.content.appendChild(token);
+ }
+ builder.content.appendChild(content);
+ }
+
+ // Change some spaces to NBSP to prevent the browser from collapsing
+ // trailing spaces at the end of a line when rendering text (issue #1362).
+ function splitSpaces(text, trailingBefore) {
+ if (text.length > 1 && !/ /.test(text)) {
+ return text;
+ }
+ var spaceBefore = trailingBefore,
+ result = "";
+ for (var i = 0; i < text.length; i++) {
+ var ch = text.charAt(i);
+ if (ch == " " && spaceBefore && (i == text.length - 1 || text.charCodeAt(i + 1) == 32)) {
+ ch = "\u00a0";
+ }
+ result += ch;
+ spaceBefore = ch == " ";
+ }
+ return result;
+ }
+
+ // Work around nonsense dimensions being reported for stretches of
+ // right-to-left text.
+ function buildTokenBadBidi(inner, order) {
+ return function (builder, text, style, startStyle, endStyle, css, attributes) {
+ style = style ? style + " cm-force-border" : "cm-force-border";
+ var start = builder.pos,
+ end = start + text.length;
+ for (;;) {
+ // Find the part that overlaps with the start of this text
+ var part = void 0;
+ for (var i = 0; i < order.length; i++) {
+ part = order[i];
+ if (part.to > start && part.from <= start) {
+ break;
+ }
+ }
+ if (part.to >= end) {
+ return inner(builder, text, style, startStyle, endStyle, css, attributes);
+ }
+ inner(builder, text.slice(0, part.to - start), style, startStyle, null, css, attributes);
+ startStyle = null;
+ text = text.slice(part.to - start);
+ start = part.to;
+ }
+ };
+ }
+ function buildCollapsedSpan(builder, size, marker, ignoreWidget) {
+ var widget = !ignoreWidget && marker.widgetNode;
+ if (widget) {
+ builder.map.push(builder.pos, builder.pos + size, widget);
+ }
+ if (!ignoreWidget && builder.cm.display.input.needsContentAttribute) {
+ if (!widget) {
+ widget = builder.content.appendChild(document.createElement("span"));
+ }
+ widget.setAttribute("cm-marker", marker.id);
+ }
+ if (widget) {
+ builder.cm.display.input.setUneditable(widget);
+ builder.content.appendChild(widget);
+ }
+ builder.pos += size;
+ builder.trailingSpace = false;
+ }
+
+ // Outputs a number of spans to make up a line, taking highlighting
+ // and marked text into account.
+ function insertLineContent(line, builder, styles) {
+ var spans = line.markedSpans,
+ allText = line.text,
+ at = 0;
+ if (!spans) {
+ for (var i$1 = 1; i$1 < styles.length; i$1 += 2) {
+ builder.addToken(builder, allText.slice(at, at = styles[i$1]), interpretTokenStyle(styles[i$1 + 1], builder.cm.options));
+ }
+ return;
+ }
+ var len = allText.length,
+ pos = 0,
+ i = 1,
+ text = "",
+ style,
+ css;
+ var nextChange = 0,
+ spanStyle,
+ spanEndStyle,
+ spanStartStyle,
+ collapsed,
+ attributes;
+ for (;;) {
+ if (nextChange == pos) {
+ // Update current marker set
+ spanStyle = spanEndStyle = spanStartStyle = css = "";
+ attributes = null;
+ collapsed = null;
+ nextChange = Infinity;
+ var foundBookmarks = [],
+ endStyles = void 0;
+ for (var j = 0; j < spans.length; ++j) {
+ var sp = spans[j],
+ m = sp.marker;
+ if (m.type == "bookmark" && sp.from == pos && m.widgetNode) {
+ foundBookmarks.push(m);
+ } else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {
+ if (sp.to != null && sp.to != pos && nextChange > sp.to) {
+ nextChange = sp.to;
+ spanEndStyle = "";
+ }
+ if (m.className) {
+ spanStyle += " " + m.className;
+ }
+ if (m.css) {
+ css = (css ? css + ";" : "") + m.css;
+ }
+ if (m.startStyle && sp.from == pos) {
+ spanStartStyle += " " + m.startStyle;
+ }
+ if (m.endStyle && sp.to == nextChange) {
+ (endStyles || (endStyles = [])).push(m.endStyle, sp.to);
+ }
+ // support for the old title property
+ // https://github.com/codemirror/CodeMirror/pull/5673
+ if (m.title) {
+ (attributes || (attributes = {})).title = m.title;
+ }
+ if (m.attributes) {
+ for (var attr in m.attributes) {
+ (attributes || (attributes = {}))[attr] = m.attributes[attr];
+ }
+ }
+ if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0)) {
+ collapsed = sp;
+ }
+ } else if (sp.from > pos && nextChange > sp.from) {
+ nextChange = sp.from;
+ }
+ }
+ if (endStyles) {
+ for (var j$1 = 0; j$1 < endStyles.length; j$1 += 2) {
+ if (endStyles[j$1 + 1] == nextChange) {
+ spanEndStyle += " " + endStyles[j$1];
+ }
+ }
+ }
+ if (!collapsed || collapsed.from == pos) {
+ for (var j$2 = 0; j$2 < foundBookmarks.length; ++j$2) {
+ buildCollapsedSpan(builder, 0, foundBookmarks[j$2]);
+ }
+ }
+ if (collapsed && (collapsed.from || 0) == pos) {
+ buildCollapsedSpan(builder, (collapsed.to == null ? len + 1 : collapsed.to) - pos, collapsed.marker, collapsed.from == null);
+ if (collapsed.to == null) {
+ return;
+ }
+ if (collapsed.to == pos) {
+ collapsed = false;
+ }
+ }
+ }
+ if (pos >= len) {
+ break;
+ }
+ var upto = Math.min(len, nextChange);
+ while (true) {
+ if (text) {
+ var end = pos + text.length;
+ if (!collapsed) {
+ var tokenText = end > upto ? text.slice(0, upto - pos) : text;
+ builder.addToken(builder, tokenText, style ? style + spanStyle : spanStyle, spanStartStyle, pos + tokenText.length == nextChange ? spanEndStyle : "", css, attributes);
+ }
+ if (end >= upto) {
+ text = text.slice(upto - pos);
+ pos = upto;
+ break;
+ }
+ pos = end;
+ spanStartStyle = "";
+ }
+ text = allText.slice(at, at = styles[i++]);
+ style = interpretTokenStyle(styles[i++], builder.cm.options);
+ }
+ }
+ }
+
+ // These objects are used to represent the visible (currently drawn)
+ // part of the document. A LineView may correspond to multiple
+ // logical lines, if those are connected by collapsed ranges.
+ function LineView(doc, line, lineN) {
+ // The starting line
+ this.line = line;
+ // Continuing lines, if any
+ this.rest = visualLineContinued(line);
+ // Number of logical lines in this visual line
+ this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
+ this.node = this.text = null;
+ this.hidden = lineIsHidden(doc, line);
+ }
+
+ // Create a range of LineView objects for the given lines.
+ function buildViewArray(cm, from, to) {
+ var array = [],
+ nextPos;
+ for (var pos = from; pos < to; pos = nextPos) {
+ var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);
+ nextPos = pos + view.size;
+ array.push(view);
+ }
+ return array;
+ }
+ var operationGroup = null;
+ function pushOperation(op) {
+ if (operationGroup) {
+ operationGroup.ops.push(op);
+ } else {
+ op.ownsGroup = operationGroup = {
+ ops: [op],
+ delayedCallbacks: []
+ };
+ }
+ }
+ function fireCallbacksForOps(group) {
+ // Calls delayed callbacks and cursorActivity handlers until no
+ // new ones appear
+ var callbacks = group.delayedCallbacks,
+ i = 0;
+ do {
+ for (; i < callbacks.length; i++) {
+ callbacks[i].call(null);
+ }
+ for (var j = 0; j < group.ops.length; j++) {
+ var op = group.ops[j];
+ if (op.cursorActivityHandlers) {
+ while (op.cursorActivityCalled < op.cursorActivityHandlers.length) {
+ op.cursorActivityHandlers[op.cursorActivityCalled++].call(null, op.cm);
+ }
+ }
+ }
+ } while (i < callbacks.length);
+ }
+ function finishOperation(op, endCb) {
+ var group = op.ownsGroup;
+ if (!group) {
+ return;
+ }
+ try {
+ fireCallbacksForOps(group);
+ } finally {
+ operationGroup = null;
+ endCb(group);
+ }
+ }
+ var orphanDelayedCallbacks = null;
+
+ // Often, we want to signal events at a point where we are in the
+ // middle of some work, but don't want the handler to start calling
+ // other methods on the editor, which might be in an inconsistent
+ // state or simply not expect any other events to happen.
+ // signalLater looks whether there are any handlers, and schedules
+ // them to be executed when the last operation ends, or, if no
+ // operation is active, when a timeout fires.
+ function signalLater(emitter, type /*, values...*/) {
+ var arr = getHandlers(emitter, type);
+ if (!arr.length) {
+ return;
+ }
+ var args = Array.prototype.slice.call(arguments, 2),
+ list;
+ if (operationGroup) {
+ list = operationGroup.delayedCallbacks;
+ } else if (orphanDelayedCallbacks) {
+ list = orphanDelayedCallbacks;
+ } else {
+ list = orphanDelayedCallbacks = [];
+ setTimeout(fireOrphanDelayed, 0);
+ }
+ var loop = function (i) {
+ list.push(function () {
+ return arr[i].apply(null, args);
+ });
+ };
+ for (var i = 0; i < arr.length; ++i) loop(i);
+ }
+ function fireOrphanDelayed() {
+ var delayed = orphanDelayedCallbacks;
+ orphanDelayedCallbacks = null;
+ for (var i = 0; i < delayed.length; ++i) {
+ delayed[i]();
+ }
+ }
+
+ // When an aspect of a line changes, a string is added to
+ // lineView.changes. This updates the relevant part of the line's
+ // DOM structure.
+ function updateLineForChanges(cm, lineView, lineN, dims) {
+ for (var j = 0; j < lineView.changes.length; j++) {
+ var type = lineView.changes[j];
+ if (type == "text") {
+ updateLineText(cm, lineView);
+ } else if (type == "gutter") {
+ updateLineGutter(cm, lineView, lineN, dims);
+ } else if (type == "class") {
+ updateLineClasses(cm, lineView);
+ } else if (type == "widget") {
+ updateLineWidgets(cm, lineView, dims);
+ }
+ }
+ lineView.changes = null;
+ }
+
+ // Lines with gutter elements, widgets or a background class need to
+ // be wrapped, and have the extra elements added to the wrapper div
+ function ensureLineWrapped(lineView) {
+ if (lineView.node == lineView.text) {
+ lineView.node = elt("div", null, null, "position: relative");
+ if (lineView.text.parentNode) {
+ lineView.text.parentNode.replaceChild(lineView.node, lineView.text);
+ }
+ lineView.node.appendChild(lineView.text);
+ if (ie && ie_version < 8) {
+ lineView.node.style.zIndex = 2;
+ }
+ }
+ return lineView.node;
+ }
+ function updateLineBackground(cm, lineView) {
+ var cls = lineView.bgClass ? lineView.bgClass + " " + (lineView.line.bgClass || "") : lineView.line.bgClass;
+ if (cls) {
+ cls += " CodeMirror-linebackground";
+ }
+ if (lineView.background) {
+ if (cls) {
+ lineView.background.className = cls;
+ } else {
+ lineView.background.parentNode.removeChild(lineView.background);
+ lineView.background = null;
+ }
+ } else if (cls) {
+ var wrap = ensureLineWrapped(lineView);
+ lineView.background = wrap.insertBefore(elt("div", null, cls), wrap.firstChild);
+ cm.display.input.setUneditable(lineView.background);
+ }
+ }
+
+ // Wrapper around buildLineContent which will reuse the structure
+ // in display.externalMeasured when possible.
+ function getLineContent(cm, lineView) {
+ var ext = cm.display.externalMeasured;
+ if (ext && ext.line == lineView.line) {
+ cm.display.externalMeasured = null;
+ lineView.measure = ext.measure;
+ return ext.built;
+ }
+ return buildLineContent(cm, lineView);
+ }
+
+ // Redraw the line's text. Interacts with the background and text
+ // classes because the mode may output tokens that influence these
+ // classes.
+ function updateLineText(cm, lineView) {
+ var cls = lineView.text.className;
+ var built = getLineContent(cm, lineView);
+ if (lineView.text == lineView.node) {
+ lineView.node = built.pre;
+ }
+ lineView.text.parentNode.replaceChild(built.pre, lineView.text);
+ lineView.text = built.pre;
+ if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {
+ lineView.bgClass = built.bgClass;
+ lineView.textClass = built.textClass;
+ updateLineClasses(cm, lineView);
+ } else if (cls) {
+ lineView.text.className = cls;
+ }
+ }
+ function updateLineClasses(cm, lineView) {
+ updateLineBackground(cm, lineView);
+ if (lineView.line.wrapClass) {
+ ensureLineWrapped(lineView).className = lineView.line.wrapClass;
+ } else if (lineView.node != lineView.text) {
+ lineView.node.className = "";
+ }
+ var textClass = lineView.textClass ? lineView.textClass + " " + (lineView.line.textClass || "") : lineView.line.textClass;
+ lineView.text.className = textClass || "";
+ }
+ function updateLineGutter(cm, lineView, lineN, dims) {
+ if (lineView.gutter) {
+ lineView.node.removeChild(lineView.gutter);
+ lineView.gutter = null;
+ }
+ if (lineView.gutterBackground) {
+ lineView.node.removeChild(lineView.gutterBackground);
+ lineView.gutterBackground = null;
+ }
+ if (lineView.line.gutterClass) {
+ var wrap = ensureLineWrapped(lineView);
+ lineView.gutterBackground = elt("div", null, "CodeMirror-gutter-background " + lineView.line.gutterClass, "left: " + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + "px; width: " + dims.gutterTotalWidth + "px");
+ cm.display.input.setUneditable(lineView.gutterBackground);
+ wrap.insertBefore(lineView.gutterBackground, lineView.text);
+ }
+ var markers = lineView.line.gutterMarkers;
+ if (cm.options.lineNumbers || markers) {
+ var wrap$1 = ensureLineWrapped(lineView);
+ var gutterWrap = lineView.gutter = elt("div", null, "CodeMirror-gutter-wrapper", "left: " + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + "px");
+ gutterWrap.setAttribute("aria-hidden", "true");
+ cm.display.input.setUneditable(gutterWrap);
+ wrap$1.insertBefore(gutterWrap, lineView.text);
+ if (lineView.line.gutterClass) {
+ gutterWrap.className += " " + lineView.line.gutterClass;
+ }
+ if (cm.options.lineNumbers && (!markers || !markers["CodeMirror-linenumbers"])) {
+ lineView.lineNumber = gutterWrap.appendChild(elt("div", lineNumberFor(cm.options, lineN), "CodeMirror-linenumber CodeMirror-gutter-elt", "left: " + dims.gutterLeft["CodeMirror-linenumbers"] + "px; width: " + cm.display.lineNumInnerWidth + "px"));
+ }
+ if (markers) {
+ for (var k = 0; k < cm.display.gutterSpecs.length; ++k) {
+ var id = cm.display.gutterSpecs[k].className,
+ found = markers.hasOwnProperty(id) && markers[id];
+ if (found) {
+ gutterWrap.appendChild(elt("div", [found], "CodeMirror-gutter-elt", "left: " + dims.gutterLeft[id] + "px; width: " + dims.gutterWidth[id] + "px"));
+ }
+ }
+ }
+ }
+ }
+ function updateLineWidgets(cm, lineView, dims) {
+ if (lineView.alignable) {
+ lineView.alignable = null;
+ }
+ var isWidget = classTest("CodeMirror-linewidget");
+ for (var node = lineView.node.firstChild, next = void 0; node; node = next) {
+ next = node.nextSibling;
+ if (isWidget.test(node.className)) {
+ lineView.node.removeChild(node);
+ }
+ }
+ insertLineWidgets(cm, lineView, dims);
+ }
+
+ // Build a line's DOM representation from scratch
+ function buildLineElement(cm, lineView, lineN, dims) {
+ var built = getLineContent(cm, lineView);
+ lineView.text = lineView.node = built.pre;
+ if (built.bgClass) {
+ lineView.bgClass = built.bgClass;
+ }
+ if (built.textClass) {
+ lineView.textClass = built.textClass;
+ }
+ updateLineClasses(cm, lineView);
+ updateLineGutter(cm, lineView, lineN, dims);
+ insertLineWidgets(cm, lineView, dims);
+ return lineView.node;
+ }
+
+ // A lineView may contain multiple logical lines (when merged by
+ // collapsed spans). The widgets for all of them need to be drawn.
+ function insertLineWidgets(cm, lineView, dims) {
+ insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);
+ if (lineView.rest) {
+ for (var i = 0; i < lineView.rest.length; i++) {
+ insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false);
+ }
+ }
+ }
+ function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {
+ if (!line.widgets) {
+ return;
+ }
+ var wrap = ensureLineWrapped(lineView);
+ for (var i = 0, ws = line.widgets; i < ws.length; ++i) {
+ var widget = ws[i],
+ node = elt("div", [widget.node], "CodeMirror-linewidget" + (widget.className ? " " + widget.className : ""));
+ if (!widget.handleMouseEvents) {
+ node.setAttribute("cm-ignore-events", "true");
+ }
+ positionLineWidget(widget, node, lineView, dims);
+ cm.display.input.setUneditable(node);
+ if (allowAbove && widget.above) {
+ wrap.insertBefore(node, lineView.gutter || lineView.text);
+ } else {
+ wrap.appendChild(node);
+ }
+ signalLater(widget, "redraw");
+ }
+ }
+ function positionLineWidget(widget, node, lineView, dims) {
+ if (widget.noHScroll) {
+ (lineView.alignable || (lineView.alignable = [])).push(node);
+ var width = dims.wrapperWidth;
+ node.style.left = dims.fixedPos + "px";
+ if (!widget.coverGutter) {
+ width -= dims.gutterTotalWidth;
+ node.style.paddingLeft = dims.gutterTotalWidth + "px";
+ }
+ node.style.width = width + "px";
+ }
+ if (widget.coverGutter) {
+ node.style.zIndex = 5;
+ node.style.position = "relative";
+ if (!widget.noHScroll) {
+ node.style.marginLeft = -dims.gutterTotalWidth + "px";
+ }
+ }
+ }
+ function widgetHeight(widget) {
+ if (widget.height != null) {
+ return widget.height;
+ }
+ var cm = widget.doc.cm;
+ if (!cm) {
+ return 0;
+ }
+ if (!contains(document.body, widget.node)) {
+ var parentStyle = "position: relative;";
+ if (widget.coverGutter) {
+ parentStyle += "margin-left: -" + cm.display.gutters.offsetWidth + "px;";
+ }
+ if (widget.noHScroll) {
+ parentStyle += "width: " + cm.display.wrapper.clientWidth + "px;";
+ }
+ removeChildrenAndAdd(cm.display.measure, elt("div", [widget.node], null, parentStyle));
+ }
+ return widget.height = widget.node.parentNode.offsetHeight;
+ }
+
+ // Return true when the given mouse event happened in a widget
+ function eventInWidget(display, e) {
+ for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
+ if (!n || n.nodeType == 1 && n.getAttribute("cm-ignore-events") == "true" || n.parentNode == display.sizer && n != display.mover) {
+ return true;
+ }
+ }
+ }
+
+ // POSITION MEASUREMENT
+
+ function paddingTop(display) {
+ return display.lineSpace.offsetTop;
+ }
+ function paddingVert(display) {
+ return display.mover.offsetHeight - display.lineSpace.offsetHeight;
+ }
+ function paddingH(display) {
+ if (display.cachedPaddingH) {
+ return display.cachedPaddingH;
+ }
+ var e = removeChildrenAndAdd(display.measure, elt("pre", "x", "CodeMirror-line-like"));
+ var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;
+ var data = {
+ left: parseInt(style.paddingLeft),
+ right: parseInt(style.paddingRight)
+ };
+ if (!isNaN(data.left) && !isNaN(data.right)) {
+ display.cachedPaddingH = data;
+ }
+ return data;
+ }
+ function scrollGap(cm) {
+ return scrollerGap - cm.display.nativeBarWidth;
+ }
+ function displayWidth(cm) {
+ return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth;
+ }
+ function displayHeight(cm) {
+ return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight;
+ }
+
+ // Ensure the lineView.wrapping.heights array is populated. This is
+ // an array of bottom offsets for the lines that make up a drawn
+ // line. When lineWrapping is on, there might be more than one
+ // height.
+ function ensureLineHeights(cm, lineView, rect) {
+ var wrapping = cm.options.lineWrapping;
+ var curWidth = wrapping && displayWidth(cm);
+ if (!lineView.measure.heights || wrapping && lineView.measure.width != curWidth) {
+ var heights = lineView.measure.heights = [];
+ if (wrapping) {
+ lineView.measure.width = curWidth;
+ var rects = lineView.text.firstChild.getClientRects();
+ for (var i = 0; i < rects.length - 1; i++) {
+ var cur = rects[i],
+ next = rects[i + 1];
+ if (Math.abs(cur.bottom - next.bottom) > 2) {
+ heights.push((cur.bottom + next.top) / 2 - rect.top);
+ }
+ }
+ }
+ heights.push(rect.bottom - rect.top);
+ }
+ }
+
+ // Find a line map (mapping character offsets to text nodes) and a
+ // measurement cache for the given line number. (A line view might
+ // contain multiple lines when collapsed ranges are present.)
+ function mapFromLineView(lineView, line, lineN) {
+ if (lineView.line == line) {
+ return {
+ map: lineView.measure.map,
+ cache: lineView.measure.cache
+ };
+ }
+ if (lineView.rest) {
+ for (var i = 0; i < lineView.rest.length; i++) {
+ if (lineView.rest[i] == line) {
+ return {
+ map: lineView.measure.maps[i],
+ cache: lineView.measure.caches[i]
+ };
+ }
+ }
+ for (var i$1 = 0; i$1 < lineView.rest.length; i$1++) {
+ if (lineNo(lineView.rest[i$1]) > lineN) {
+ return {
+ map: lineView.measure.maps[i$1],
+ cache: lineView.measure.caches[i$1],
+ before: true
+ };
+ }
+ }
+ }
+ }
+
+ // Render a line into the hidden node display.externalMeasured. Used
+ // when measurement is needed for a line that's not in the viewport.
+ function updateExternalMeasurement(cm, line) {
+ line = visualLine(line);
+ var lineN = lineNo(line);
+ var view = cm.display.externalMeasured = new LineView(cm.doc, line, lineN);
+ view.lineN = lineN;
+ var built = view.built = buildLineContent(cm, view);
+ view.text = built.pre;
+ removeChildrenAndAdd(cm.display.lineMeasure, built.pre);
+ return view;
+ }
+
+ // Get a {top, bottom, left, right} box (in line-local coordinates)
+ // for a given character.
+ function measureChar(cm, line, ch, bias) {
+ return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias);
+ }
+
+ // Find a line view that corresponds to the given line number.
+ function findViewForLine(cm, lineN) {
+ if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo) {
+ return cm.display.view[findViewIndex(cm, lineN)];
+ }
+ var ext = cm.display.externalMeasured;
+ if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size) {
+ return ext;
+ }
+ }
+
+ // Measurement can be split in two steps, the set-up work that
+ // applies to the whole line, and the measurement of the actual
+ // character. Functions like coordsChar, that need to do a lot of
+ // measurements in a row, can thus ensure that the set-up work is
+ // only done once.
+ function prepareMeasureForLine(cm, line) {
+ var lineN = lineNo(line);
+ var view = findViewForLine(cm, lineN);
+ if (view && !view.text) {
+ view = null;
+ } else if (view && view.changes) {
+ updateLineForChanges(cm, view, lineN, getDimensions(cm));
+ cm.curOp.forceUpdate = true;
+ }
+ if (!view) {
+ view = updateExternalMeasurement(cm, line);
+ }
+ var info = mapFromLineView(view, line, lineN);
+ return {
+ line: line,
+ view: view,
+ rect: null,
+ map: info.map,
+ cache: info.cache,
+ before: info.before,
+ hasHeights: false
+ };
+ }
+
+ // Given a prepared measurement object, measures the position of an
+ // actual character (or fetches it from the cache).
+ function measureCharPrepared(cm, prepared, ch, bias, varHeight) {
+ if (prepared.before) {
+ ch = -1;
+ }
+ var key = ch + (bias || ""),
+ found;
+ if (prepared.cache.hasOwnProperty(key)) {
+ found = prepared.cache[key];
+ } else {
+ if (!prepared.rect) {
+ prepared.rect = prepared.view.text.getBoundingClientRect();
+ }
+ if (!prepared.hasHeights) {
+ ensureLineHeights(cm, prepared.view, prepared.rect);
+ prepared.hasHeights = true;
+ }
+ found = measureCharInner(cm, prepared, ch, bias);
+ if (!found.bogus) {
+ prepared.cache[key] = found;
+ }
+ }
+ return {
+ left: found.left,
+ right: found.right,
+ top: varHeight ? found.rtop : found.top,
+ bottom: varHeight ? found.rbottom : found.bottom
+ };
+ }
+ var nullRect = {
+ left: 0,
+ right: 0,
+ top: 0,
+ bottom: 0
+ };
+ function nodeAndOffsetInLineMap(map, ch, bias) {
+ var node, start, end, collapse, mStart, mEnd;
+ // First, search the line map for the text node corresponding to,
+ // or closest to, the target character.
+ for (var i = 0; i < map.length; i += 3) {
+ mStart = map[i];
+ mEnd = map[i + 1];
+ if (ch < mStart) {
+ start = 0;
+ end = 1;
+ collapse = "left";
+ } else if (ch < mEnd) {
+ start = ch - mStart;
+ end = start + 1;
+ } else if (i == map.length - 3 || ch == mEnd && map[i + 3] > ch) {
+ end = mEnd - mStart;
+ start = end - 1;
+ if (ch >= mEnd) {
+ collapse = "right";
+ }
+ }
+ if (start != null) {
+ node = map[i + 2];
+ if (mStart == mEnd && bias == (node.insertLeft ? "left" : "right")) {
+ collapse = bias;
+ }
+ if (bias == "left" && start == 0) {
+ while (i && map[i - 2] == map[i - 3] && map[i - 1].insertLeft) {
+ node = map[(i -= 3) + 2];
+ collapse = "left";
+ }
+ }
+ if (bias == "right" && start == mEnd - mStart) {
+ while (i < map.length - 3 && map[i + 3] == map[i + 4] && !map[i + 5].insertLeft) {
+ node = map[(i += 3) + 2];
+ collapse = "right";
+ }
+ }
+ break;
+ }
+ }
+ return {
+ node: node,
+ start: start,
+ end: end,
+ collapse: collapse,
+ coverStart: mStart,
+ coverEnd: mEnd
+ };
+ }
+ function getUsefulRect(rects, bias) {
+ var rect = nullRect;
+ if (bias == "left") {
+ for (var i = 0; i < rects.length; i++) {
+ if ((rect = rects[i]).left != rect.right) {
+ break;
+ }
+ }
+ } else {
+ for (var i$1 = rects.length - 1; i$1 >= 0; i$1--) {
+ if ((rect = rects[i$1]).left != rect.right) {
+ break;
+ }
+ }
+ }
+ return rect;
+ }
+ function measureCharInner(cm, prepared, ch, bias) {
+ var place = nodeAndOffsetInLineMap(prepared.map, ch, bias);
+ var node = place.node,
+ start = place.start,
+ end = place.end,
+ collapse = place.collapse;
+ var rect;
+ if (node.nodeType == 3) {
+ // If it is a text node, use a range to retrieve the coordinates.
+ for (var i$1 = 0; i$1 < 4; i$1++) {
+ // Retry a maximum of 4 times when nonsense rectangles are returned
+ while (start && isExtendingChar(prepared.line.text.charAt(place.coverStart + start))) {
+ --start;
+ }
+ while (place.coverStart + end < place.coverEnd && isExtendingChar(prepared.line.text.charAt(place.coverStart + end))) {
+ ++end;
+ }
+ if (ie && ie_version < 9 && start == 0 && end == place.coverEnd - place.coverStart) {
+ rect = node.parentNode.getBoundingClientRect();
+ } else {
+ rect = getUsefulRect(range(node, start, end).getClientRects(), bias);
+ }
+ if (rect.left || rect.right || start == 0) {
+ break;
+ }
+ end = start;
+ start = start - 1;
+ collapse = "right";
+ }
+ if (ie && ie_version < 11) {
+ rect = maybeUpdateRectForZooming(cm.display.measure, rect);
+ }
+ } else {
+ // If it is a widget, simply get the box for the whole widget.
+ if (start > 0) {
+ collapse = bias = "right";
+ }
+ var rects;
+ if (cm.options.lineWrapping && (rects = node.getClientRects()).length > 1) {
+ rect = rects[bias == "right" ? rects.length - 1 : 0];
+ } else {
+ rect = node.getBoundingClientRect();
+ }
+ }
+ if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) {
+ var rSpan = node.parentNode.getClientRects()[0];
+ if (rSpan) {
+ rect = {
+ left: rSpan.left,
+ right: rSpan.left + charWidth(cm.display),
+ top: rSpan.top,
+ bottom: rSpan.bottom
+ };
+ } else {
+ rect = nullRect;
+ }
+ }
+ var rtop = rect.top - prepared.rect.top,
+ rbot = rect.bottom - prepared.rect.top;
+ var mid = (rtop + rbot) / 2;
+ var heights = prepared.view.measure.heights;
+ var i = 0;
+ for (; i < heights.length - 1; i++) {
+ if (mid < heights[i]) {
+ break;
+ }
+ }
+ var top = i ? heights[i - 1] : 0,
+ bot = heights[i];
+ var result = {
+ left: (collapse == "right" ? rect.right : rect.left) - prepared.rect.left,
+ right: (collapse == "left" ? rect.left : rect.right) - prepared.rect.left,
+ top: top,
+ bottom: bot
+ };
+ if (!rect.left && !rect.right) {
+ result.bogus = true;
+ }
+ if (!cm.options.singleCursorHeightPerLine) {
+ result.rtop = rtop;
+ result.rbottom = rbot;
+ }
+ return result;
+ }
+
+ // Work around problem with bounding client rects on ranges being
+ // returned incorrectly when zoomed on IE10 and below.
+ function maybeUpdateRectForZooming(measure, rect) {
+ if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !hasBadZoomedRects(measure)) {
+ return rect;
+ }
+ var scaleX = screen.logicalXDPI / screen.deviceXDPI;
+ var scaleY = screen.logicalYDPI / screen.deviceYDPI;
+ return {
+ left: rect.left * scaleX,
+ right: rect.right * scaleX,
+ top: rect.top * scaleY,
+ bottom: rect.bottom * scaleY
+ };
+ }
+ function clearLineMeasurementCacheFor(lineView) {
+ if (lineView.measure) {
+ lineView.measure.cache = {};
+ lineView.measure.heights = null;
+ if (lineView.rest) {
+ for (var i = 0; i < lineView.rest.length; i++) {
+ lineView.measure.caches[i] = {};
+ }
+ }
+ }
+ }
+ function clearLineMeasurementCache(cm) {
+ cm.display.externalMeasure = null;
+ removeChildren(cm.display.lineMeasure);
+ for (var i = 0; i < cm.display.view.length; i++) {
+ clearLineMeasurementCacheFor(cm.display.view[i]);
+ }
+ }
+ function clearCaches(cm) {
+ clearLineMeasurementCache(cm);
+ cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;
+ if (!cm.options.lineWrapping) {
+ cm.display.maxLineChanged = true;
+ }
+ cm.display.lineNumChars = null;
+ }
+ function pageScrollX() {
+ // Work around https://bugs.chromium.org/p/chromium/issues/detail?id=489206
+ // which causes page_Offset and bounding client rects to use
+ // different reference viewports and invalidate our calculations.
+ if (chrome && android) {
+ return -(document.body.getBoundingClientRect().left - parseInt(getComputedStyle(document.body).marginLeft));
+ }
+ return window.pageXOffset || (document.documentElement || document.body).scrollLeft;
+ }
+ function pageScrollY() {
+ if (chrome && android) {
+ return -(document.body.getBoundingClientRect().top - parseInt(getComputedStyle(document.body).marginTop));
+ }
+ return window.pageYOffset || (document.documentElement || document.body).scrollTop;
+ }
+ function widgetTopHeight(lineObj) {
+ var ref = visualLine(lineObj);
+ var widgets = ref.widgets;
+ var height = 0;
+ if (widgets) {
+ for (var i = 0; i < widgets.length; ++i) {
+ if (widgets[i].above) {
+ height += widgetHeight(widgets[i]);
+ }
+ }
+ }
+ return height;
+ }
+
+ // Converts a {top, bottom, left, right} box from line-local
+ // coordinates into another coordinate system. Context may be one of
+ // "line", "div" (display.lineDiv), "local"./null (editor), "window",
+ // or "page".
+ function intoCoordSystem(cm, lineObj, rect, context, includeWidgets) {
+ if (!includeWidgets) {
+ var height = widgetTopHeight(lineObj);
+ rect.top += height;
+ rect.bottom += height;
+ }
+ if (context == "line") {
+ return rect;
+ }
+ if (!context) {
+ context = "local";
+ }
+ var yOff = heightAtLine(lineObj);
+ if (context == "local") {
+ yOff += paddingTop(cm.display);
+ } else {
+ yOff -= cm.display.viewOffset;
+ }
+ if (context == "page" || context == "window") {
+ var lOff = cm.display.lineSpace.getBoundingClientRect();
+ yOff += lOff.top + (context == "window" ? 0 : pageScrollY());
+ var xOff = lOff.left + (context == "window" ? 0 : pageScrollX());
+ rect.left += xOff;
+ rect.right += xOff;
+ }
+ rect.top += yOff;
+ rect.bottom += yOff;
+ return rect;
+ }
+
+ // Coverts a box from "div" coords to another coordinate system.
+ // Context may be "window", "page", "div", or "local"./null.
+ function fromCoordSystem(cm, coords, context) {
+ if (context == "div") {
+ return coords;
+ }
+ var left = coords.left,
+ top = coords.top;
+ // First move into "page" coordinate system
+ if (context == "page") {
+ left -= pageScrollX();
+ top -= pageScrollY();
+ } else if (context == "local" || !context) {
+ var localBox = cm.display.sizer.getBoundingClientRect();
+ left += localBox.left;
+ top += localBox.top;
+ }
+ var lineSpaceBox = cm.display.lineSpace.getBoundingClientRect();
+ return {
+ left: left - lineSpaceBox.left,
+ top: top - lineSpaceBox.top
+ };
+ }
+ function charCoords(cm, pos, context, lineObj, bias) {
+ if (!lineObj) {
+ lineObj = getLine(cm.doc, pos.line);
+ }
+ return intoCoordSystem(cm, lineObj, measureChar(cm, lineObj, pos.ch, bias), context);
+ }
+
+ // Returns a box for a given cursor position, which may have an
+ // 'other' property containing the position of the secondary cursor
+ // on a bidi boundary.
+ // A cursor Pos(line, char, "before") is on the same visual line as `char - 1`
+ // and after `char - 1` in writing order of `char - 1`
+ // A cursor Pos(line, char, "after") is on the same visual line as `char`
+ // and before `char` in writing order of `char`
+ // Examples (upper-case letters are RTL, lower-case are LTR):
+ // Pos(0, 1, ...)
+ // before after
+ // ab a|b a|b
+ // aB a|B aB|
+ // Ab |Ab A|b
+ // AB B|A B|A
+ // Every position after the last character on a line is considered to stick
+ // to the last character on the line.
+ function cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) {
+ lineObj = lineObj || getLine(cm.doc, pos.line);
+ if (!preparedMeasure) {
+ preparedMeasure = prepareMeasureForLine(cm, lineObj);
+ }
+ function get(ch, right) {
+ var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight);
+ if (right) {
+ m.left = m.right;
+ } else {
+ m.right = m.left;
+ }
+ return intoCoordSystem(cm, lineObj, m, context);
+ }
+ var order = getOrder(lineObj, cm.doc.direction),
+ ch = pos.ch,
+ sticky = pos.sticky;
+ if (ch >= lineObj.text.length) {
+ ch = lineObj.text.length;
+ sticky = "before";
+ } else if (ch <= 0) {
+ ch = 0;
+ sticky = "after";
+ }
+ if (!order) {
+ return get(sticky == "before" ? ch - 1 : ch, sticky == "before");
+ }
+ function getBidi(ch, partPos, invert) {
+ var part = order[partPos],
+ right = part.level == 1;
+ return get(invert ? ch - 1 : ch, right != invert);
+ }
+ var partPos = getBidiPartAt(order, ch, sticky);
+ var other = bidiOther;
+ var val = getBidi(ch, partPos, sticky == "before");
+ if (other != null) {
+ val.other = getBidi(ch, other, sticky != "before");
+ }
+ return val;
+ }
+
+ // Used to cheaply estimate the coordinates for a position. Used for
+ // intermediate scroll updates.
+ function estimateCoords(cm, pos) {
+ var left = 0;
+ pos = clipPos(cm.doc, pos);
+ if (!cm.options.lineWrapping) {
+ left = charWidth(cm.display) * pos.ch;
+ }
+ var lineObj = getLine(cm.doc, pos.line);
+ var top = heightAtLine(lineObj) + paddingTop(cm.display);
+ return {
+ left: left,
+ right: left,
+ top: top,
+ bottom: top + lineObj.height
+ };
+ }
+
+ // Positions returned by coordsChar contain some extra information.
+ // xRel is the relative x position of the input coordinates compared
+ // to the found position (so xRel > 0 means the coordinates are to
+ // the right of the character position, for example). When outside
+ // is true, that means the coordinates lie outside the line's
+ // vertical range.
+ function PosWithInfo(line, ch, sticky, outside, xRel) {
+ var pos = Pos(line, ch, sticky);
+ pos.xRel = xRel;
+ if (outside) {
+ pos.outside = outside;
+ }
+ return pos;
+ }
+
+ // Compute the character position closest to the given coordinates.
+ // Input must be lineSpace-local ("div" coordinate system).
+ function coordsChar(cm, x, y) {
+ var doc = cm.doc;
+ y += cm.display.viewOffset;
+ if (y < 0) {
+ return PosWithInfo(doc.first, 0, null, -1, -1);
+ }
+ var lineN = lineAtHeight(doc, y),
+ last = doc.first + doc.size - 1;
+ if (lineN > last) {
+ return PosWithInfo(doc.first + doc.size - 1, getLine(doc, last).text.length, null, 1, 1);
+ }
+ if (x < 0) {
+ x = 0;
+ }
+ var lineObj = getLine(doc, lineN);
+ for (;;) {
+ var found = coordsCharInner(cm, lineObj, lineN, x, y);
+ var collapsed = collapsedSpanAround(lineObj, found.ch + (found.xRel > 0 || found.outside > 0 ? 1 : 0));
+ if (!collapsed) {
+ return found;
+ }
+ var rangeEnd = collapsed.find(1);
+ if (rangeEnd.line == lineN) {
+ return rangeEnd;
+ }
+ lineObj = getLine(doc, lineN = rangeEnd.line);
+ }
+ }
+ function wrappedLineExtent(cm, lineObj, preparedMeasure, y) {
+ y -= widgetTopHeight(lineObj);
+ var end = lineObj.text.length;
+ var begin = findFirst(function (ch) {
+ return measureCharPrepared(cm, preparedMeasure, ch - 1).bottom <= y;
+ }, end, 0);
+ end = findFirst(function (ch) {
+ return measureCharPrepared(cm, preparedMeasure, ch).top > y;
+ }, begin, end);
+ return {
+ begin: begin,
+ end: end
+ };
+ }
+ function wrappedLineExtentChar(cm, lineObj, preparedMeasure, target) {
+ if (!preparedMeasure) {
+ preparedMeasure = prepareMeasureForLine(cm, lineObj);
+ }
+ var targetTop = intoCoordSystem(cm, lineObj, measureCharPrepared(cm, preparedMeasure, target), "line").top;
+ return wrappedLineExtent(cm, lineObj, preparedMeasure, targetTop);
+ }
+
+ // Returns true if the given side of a box is after the given
+ // coordinates, in top-to-bottom, left-to-right order.
+ function boxIsAfter(box, x, y, left) {
+ return box.bottom <= y ? false : box.top > y ? true : (left ? box.left : box.right) > x;
+ }
+ function coordsCharInner(cm, lineObj, lineNo, x, y) {
+ // Move y into line-local coordinate space
+ y -= heightAtLine(lineObj);
+ var preparedMeasure = prepareMeasureForLine(cm, lineObj);
+ // When directly calling `measureCharPrepared`, we have to adjust
+ // for the widgets at this line.
+ var widgetHeight = widgetTopHeight(lineObj);
+ var begin = 0,
+ end = lineObj.text.length,
+ ltr = true;
+ var order = getOrder(lineObj, cm.doc.direction);
+ // If the line isn't plain left-to-right text, first figure out
+ // which bidi section the coordinates fall into.
+ if (order) {
+ var part = (cm.options.lineWrapping ? coordsBidiPartWrapped : coordsBidiPart)(cm, lineObj, lineNo, preparedMeasure, order, x, y);
+ ltr = part.level != 1;
+ // The awkward -1 offsets are needed because findFirst (called
+ // on these below) will treat its first bound as inclusive,
+ // second as exclusive, but we want to actually address the
+ // characters in the part's range
+ begin = ltr ? part.from : part.to - 1;
+ end = ltr ? part.to : part.from - 1;
+ }
+
+ // A binary search to find the first character whose bounding box
+ // starts after the coordinates. If we run across any whose box wrap
+ // the coordinates, store that.
+ var chAround = null,
+ boxAround = null;
+ var ch = findFirst(function (ch) {
+ var box = measureCharPrepared(cm, preparedMeasure, ch);
+ box.top += widgetHeight;
+ box.bottom += widgetHeight;
+ if (!boxIsAfter(box, x, y, false)) {
+ return false;
+ }
+ if (box.top <= y && box.left <= x) {
+ chAround = ch;
+ boxAround = box;
+ }
+ return true;
+ }, begin, end);
+ var baseX,
+ sticky,
+ outside = false;
+ // If a box around the coordinates was found, use that
+ if (boxAround) {
+ // Distinguish coordinates nearer to the left or right side of the box
+ var atLeft = x - boxAround.left < boxAround.right - x,
+ atStart = atLeft == ltr;
+ ch = chAround + (atStart ? 0 : 1);
+ sticky = atStart ? "after" : "before";
+ baseX = atLeft ? boxAround.left : boxAround.right;
+ } else {
+ // (Adjust for extended bound, if necessary.)
+ if (!ltr && (ch == end || ch == begin)) {
+ ch++;
+ }
+ // To determine which side to associate with, get the box to the
+ // left of the character and compare it's vertical position to the
+ // coordinates
+ sticky = ch == 0 ? "after" : ch == lineObj.text.length ? "before" : measureCharPrepared(cm, preparedMeasure, ch - (ltr ? 1 : 0)).bottom + widgetHeight <= y == ltr ? "after" : "before";
+ // Now get accurate coordinates for this place, in order to get a
+ // base X position
+ var coords = cursorCoords(cm, Pos(lineNo, ch, sticky), "line", lineObj, preparedMeasure);
+ baseX = coords.left;
+ outside = y < coords.top ? -1 : y >= coords.bottom ? 1 : 0;
+ }
+ ch = skipExtendingChars(lineObj.text, ch, 1);
+ return PosWithInfo(lineNo, ch, sticky, outside, x - baseX);
+ }
+ function coordsBidiPart(cm, lineObj, lineNo, preparedMeasure, order, x, y) {
+ // Bidi parts are sorted left-to-right, and in a non-line-wrapping
+ // situation, we can take this ordering to correspond to the visual
+ // ordering. This finds the first part whose end is after the given
+ // coordinates.
+ var index = findFirst(function (i) {
+ var part = order[i],
+ ltr = part.level != 1;
+ return boxIsAfter(cursorCoords(cm, Pos(lineNo, ltr ? part.to : part.from, ltr ? "before" : "after"), "line", lineObj, preparedMeasure), x, y, true);
+ }, 0, order.length - 1);
+ var part = order[index];
+ // If this isn't the first part, the part's start is also after
+ // the coordinates, and the coordinates aren't on the same line as
+ // that start, move one part back.
+ if (index > 0) {
+ var ltr = part.level != 1;
+ var start = cursorCoords(cm, Pos(lineNo, ltr ? part.from : part.to, ltr ? "after" : "before"), "line", lineObj, preparedMeasure);
+ if (boxIsAfter(start, x, y, true) && start.top > y) {
+ part = order[index - 1];
+ }
+ }
+ return part;
+ }
+ function coordsBidiPartWrapped(cm, lineObj, _lineNo, preparedMeasure, order, x, y) {
+ // In a wrapped line, rtl text on wrapping boundaries can do things
+ // that don't correspond to the ordering in our `order` array at
+ // all, so a binary search doesn't work, and we want to return a
+ // part that only spans one line so that the binary search in
+ // coordsCharInner is safe. As such, we first find the extent of the
+ // wrapped line, and then do a flat search in which we discard any
+ // spans that aren't on the line.
+ var ref = wrappedLineExtent(cm, lineObj, preparedMeasure, y);
+ var begin = ref.begin;
+ var end = ref.end;
+ if (/\s/.test(lineObj.text.charAt(end - 1))) {
+ end--;
+ }
+ var part = null,
+ closestDist = null;
+ for (var i = 0; i < order.length; i++) {
+ var p = order[i];
+ if (p.from >= end || p.to <= begin) {
+ continue;
+ }
+ var ltr = p.level != 1;
+ var endX = measureCharPrepared(cm, preparedMeasure, ltr ? Math.min(end, p.to) - 1 : Math.max(begin, p.from)).right;
+ // Weigh against spans ending before this, so that they are only
+ // picked if nothing ends after
+ var dist = endX < x ? x - endX + 1e9 : endX - x;
+ if (!part || closestDist > dist) {
+ part = p;
+ closestDist = dist;
+ }
+ }
+ if (!part) {
+ part = order[order.length - 1];
+ }
+ // Clip the part to the wrapped line.
+ if (part.from < begin) {
+ part = {
+ from: begin,
+ to: part.to,
+ level: part.level
+ };
+ }
+ if (part.to > end) {
+ part = {
+ from: part.from,
+ to: end,
+ level: part.level
+ };
+ }
+ return part;
+ }
+ var measureText;
+ // Compute the default text height.
+ function textHeight(display) {
+ if (display.cachedTextHeight != null) {
+ return display.cachedTextHeight;
+ }
+ if (measureText == null) {
+ measureText = elt("pre", null, "CodeMirror-line-like");
+ // Measure a bunch of lines, for browsers that compute
+ // fractional heights.
+ for (var i = 0; i < 49; ++i) {
+ measureText.appendChild(document.createTextNode("x"));
+ measureText.appendChild(elt("br"));
+ }
+ measureText.appendChild(document.createTextNode("x"));
+ }
+ removeChildrenAndAdd(display.measure, measureText);
+ var height = measureText.offsetHeight / 50;
+ if (height > 3) {
+ display.cachedTextHeight = height;
+ }
+ removeChildren(display.measure);
+ return height || 1;
+ }
+
+ // Compute the default character width.
+ function charWidth(display) {
+ if (display.cachedCharWidth != null) {
+ return display.cachedCharWidth;
+ }
+ var anchor = elt("span", "xxxxxxxxxx");
+ var pre = elt("pre", [anchor], "CodeMirror-line-like");
+ removeChildrenAndAdd(display.measure, pre);
+ var rect = anchor.getBoundingClientRect(),
+ width = (rect.right - rect.left) / 10;
+ if (width > 2) {
+ display.cachedCharWidth = width;
+ }
+ return width || 10;
+ }
+
+ // Do a bulk-read of the DOM positions and sizes needed to draw the
+ // view, so that we don't interleave reading and writing to the DOM.
+ function getDimensions(cm) {
+ var d = cm.display,
+ left = {},
+ width = {};
+ var gutterLeft = d.gutters.clientLeft;
+ for (var n = d.gutters.firstChild, i = 0; n; n = n.nextSibling, ++i) {
+ var id = cm.display.gutterSpecs[i].className;
+ left[id] = n.offsetLeft + n.clientLeft + gutterLeft;
+ width[id] = n.clientWidth;
+ }
+ return {
+ fixedPos: compensateForHScroll(d),
+ gutterTotalWidth: d.gutters.offsetWidth,
+ gutterLeft: left,
+ gutterWidth: width,
+ wrapperWidth: d.wrapper.clientWidth
+ };
+ }
+
+ // Computes display.scroller.scrollLeft + display.gutters.offsetWidth,
+ // but using getBoundingClientRect to get a sub-pixel-accurate
+ // result.
+ function compensateForHScroll(display) {
+ return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left;
+ }
+
+ // Returns a function that estimates the height of a line, to use as
+ // first approximation until the line becomes visible (and is thus
+ // properly measurable).
+ function estimateHeight(cm) {
+ var th = textHeight(cm.display),
+ wrapping = cm.options.lineWrapping;
+ var perLine = wrapping && Math.max(5, cm.display.scroller.clientWidth / charWidth(cm.display) - 3);
+ return function (line) {
+ if (lineIsHidden(cm.doc, line)) {
+ return 0;
+ }
+ var widgetsHeight = 0;
+ if (line.widgets) {
+ for (var i = 0; i < line.widgets.length; i++) {
+ if (line.widgets[i].height) {
+ widgetsHeight += line.widgets[i].height;
+ }
+ }
+ }
+ if (wrapping) {
+ return widgetsHeight + (Math.ceil(line.text.length / perLine) || 1) * th;
+ } else {
+ return widgetsHeight + th;
+ }
+ };
+ }
+ function estimateLineHeights(cm) {
+ var doc = cm.doc,
+ est = estimateHeight(cm);
+ doc.iter(function (line) {
+ var estHeight = est(line);
+ if (estHeight != line.height) {
+ updateLineHeight(line, estHeight);
+ }
+ });
+ }
+
+ // Given a mouse event, find the corresponding position. If liberal
+ // is false, it checks whether a gutter or scrollbar was clicked,
+ // and returns null if it was. forRect is used by rectangular
+ // selections, and tries to estimate a character position even for
+ // coordinates beyond the right of the text.
+ function posFromMouse(cm, e, liberal, forRect) {
+ var display = cm.display;
+ if (!liberal && e_target(e).getAttribute("cm-not-content") == "true") {
+ return null;
+ }
+ var x,
+ y,
+ space = display.lineSpace.getBoundingClientRect();
+ // Fails unpredictably on IE[67] when mouse is dragged around quickly.
+ try {
+ x = e.clientX - space.left;
+ y = e.clientY - space.top;
+ } catch (e$1) {
+ return null;
+ }
+ var coords = coordsChar(cm, x, y),
+ line;
+ if (forRect && coords.xRel > 0 && (line = getLine(cm.doc, coords.line).text).length == coords.ch) {
+ var colDiff = countColumn(line, line.length, cm.options.tabSize) - line.length;
+ coords = Pos(coords.line, Math.max(0, Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) - colDiff));
+ }
+ return coords;
+ }
+
+ // Find the view element corresponding to a given line. Return null
+ // when the line isn't visible.
+ function findViewIndex(cm, n) {
+ if (n >= cm.display.viewTo) {
+ return null;
+ }
+ n -= cm.display.viewFrom;
+ if (n < 0) {
+ return null;
+ }
+ var view = cm.display.view;
+ for (var i = 0; i < view.length; i++) {
+ n -= view[i].size;
+ if (n < 0) {
+ return i;
+ }
+ }
+ }
+
+ // Updates the display.view data structure for a given change to the
+ // document. From and to are in pre-change coordinates. Lendiff is
+ // the amount of lines added or subtracted by the change. This is
+ // used for changes that span multiple lines, or change the way
+ // lines are divided into visual lines. regLineChange (below)
+ // registers single-line changes.
+ function regChange(cm, from, to, lendiff) {
+ if (from == null) {
+ from = cm.doc.first;
+ }
+ if (to == null) {
+ to = cm.doc.first + cm.doc.size;
+ }
+ if (!lendiff) {
+ lendiff = 0;
+ }
+ var display = cm.display;
+ if (lendiff && to < display.viewTo && (display.updateLineNumbers == null || display.updateLineNumbers > from)) {
+ display.updateLineNumbers = from;
+ }
+ cm.curOp.viewChanged = true;
+ if (from >= display.viewTo) {
+ // Change after
+ if (sawCollapsedSpans && visualLineNo(cm.doc, from) < display.viewTo) {
+ resetView(cm);
+ }
+ } else if (to <= display.viewFrom) {
+ // Change before
+ if (sawCollapsedSpans && visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom) {
+ resetView(cm);
+ } else {
+ display.viewFrom += lendiff;
+ display.viewTo += lendiff;
+ }
+ } else if (from <= display.viewFrom && to >= display.viewTo) {
+ // Full overlap
+ resetView(cm);
+ } else if (from <= display.viewFrom) {
+ // Top overlap
+ var cut = viewCuttingPoint(cm, to, to + lendiff, 1);
+ if (cut) {
+ display.view = display.view.slice(cut.index);
+ display.viewFrom = cut.lineN;
+ display.viewTo += lendiff;
+ } else {
+ resetView(cm);
+ }
+ } else if (to >= display.viewTo) {
+ // Bottom overlap
+ var cut$1 = viewCuttingPoint(cm, from, from, -1);
+ if (cut$1) {
+ display.view = display.view.slice(0, cut$1.index);
+ display.viewTo = cut$1.lineN;
+ } else {
+ resetView(cm);
+ }
+ } else {
+ // Gap in the middle
+ var cutTop = viewCuttingPoint(cm, from, from, -1);
+ var cutBot = viewCuttingPoint(cm, to, to + lendiff, 1);
+ if (cutTop && cutBot) {
+ display.view = display.view.slice(0, cutTop.index).concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN)).concat(display.view.slice(cutBot.index));
+ display.viewTo += lendiff;
+ } else {
+ resetView(cm);
+ }
+ }
+ var ext = display.externalMeasured;
+ if (ext) {
+ if (to < ext.lineN) {
+ ext.lineN += lendiff;
+ } else if (from < ext.lineN + ext.size) {
+ display.externalMeasured = null;
+ }
+ }
+ }
+
+ // Register a change to a single line. Type must be one of "text",
+ // "gutter", "class", "widget"
+ function regLineChange(cm, line, type) {
+ cm.curOp.viewChanged = true;
+ var display = cm.display,
+ ext = cm.display.externalMeasured;
+ if (ext && line >= ext.lineN && line < ext.lineN + ext.size) {
+ display.externalMeasured = null;
+ }
+ if (line < display.viewFrom || line >= display.viewTo) {
+ return;
+ }
+ var lineView = display.view[findViewIndex(cm, line)];
+ if (lineView.node == null) {
+ return;
+ }
+ var arr = lineView.changes || (lineView.changes = []);
+ if (indexOf(arr, type) == -1) {
+ arr.push(type);
+ }
+ }
+
+ // Clear the view.
+ function resetView(cm) {
+ cm.display.viewFrom = cm.display.viewTo = cm.doc.first;
+ cm.display.view = [];
+ cm.display.viewOffset = 0;
+ }
+ function viewCuttingPoint(cm, oldN, newN, dir) {
+ var index = findViewIndex(cm, oldN),
+ diff,
+ view = cm.display.view;
+ if (!sawCollapsedSpans || newN == cm.doc.first + cm.doc.size) {
+ return {
+ index: index,
+ lineN: newN
+ };
+ }
+ var n = cm.display.viewFrom;
+ for (var i = 0; i < index; i++) {
+ n += view[i].size;
+ }
+ if (n != oldN) {
+ if (dir > 0) {
+ if (index == view.length - 1) {
+ return null;
+ }
+ diff = n + view[index].size - oldN;
+ index++;
+ } else {
+ diff = n - oldN;
+ }
+ oldN += diff;
+ newN += diff;
+ }
+ while (visualLineNo(cm.doc, newN) != newN) {
+ if (index == (dir < 0 ? 0 : view.length - 1)) {
+ return null;
+ }
+ newN += dir * view[index - (dir < 0 ? 1 : 0)].size;
+ index += dir;
+ }
+ return {
+ index: index,
+ lineN: newN
+ };
+ }
+
+ // Force the view to cover a given range, adding empty view element
+ // or clipping off existing ones as needed.
+ function adjustView(cm, from, to) {
+ var display = cm.display,
+ view = display.view;
+ if (view.length == 0 || from >= display.viewTo || to <= display.viewFrom) {
+ display.view = buildViewArray(cm, from, to);
+ display.viewFrom = from;
+ } else {
+ if (display.viewFrom > from) {
+ display.view = buildViewArray(cm, from, display.viewFrom).concat(display.view);
+ } else if (display.viewFrom < from) {
+ display.view = display.view.slice(findViewIndex(cm, from));
+ }
+ display.viewFrom = from;
+ if (display.viewTo < to) {
+ display.view = display.view.concat(buildViewArray(cm, display.viewTo, to));
+ } else if (display.viewTo > to) {
+ display.view = display.view.slice(0, findViewIndex(cm, to));
+ }
+ }
+ display.viewTo = to;
+ }
+
+ // Count the number of lines in the view whose DOM representation is
+ // out of date (or nonexistent).
+ function countDirtyView(cm) {
+ var view = cm.display.view,
+ dirty = 0;
+ for (var i = 0; i < view.length; i++) {
+ var lineView = view[i];
+ if (!lineView.hidden && (!lineView.node || lineView.changes)) {
+ ++dirty;
+ }
+ }
+ return dirty;
+ }
+ function updateSelection(cm) {
+ cm.display.input.showSelection(cm.display.input.prepareSelection());
+ }
+ function prepareSelection(cm, primary) {
+ if (primary === void 0) primary = true;
+ var doc = cm.doc,
+ result = {};
+ var curFragment = result.cursors = document.createDocumentFragment();
+ var selFragment = result.selection = document.createDocumentFragment();
+ var customCursor = cm.options.$customCursor;
+ if (customCursor) {
+ primary = true;
+ }
+ for (var i = 0; i < doc.sel.ranges.length; i++) {
+ if (!primary && i == doc.sel.primIndex) {
+ continue;
+ }
+ var range = doc.sel.ranges[i];
+ if (range.from().line >= cm.display.viewTo || range.to().line < cm.display.viewFrom) {
+ continue;
+ }
+ var collapsed = range.empty();
+ if (customCursor) {
+ var head = customCursor(cm, range);
+ if (head) {
+ drawSelectionCursor(cm, head, curFragment);
+ }
+ } else if (collapsed || cm.options.showCursorWhenSelecting) {
+ drawSelectionCursor(cm, range.head, curFragment);
+ }
+ if (!collapsed) {
+ drawSelectionRange(cm, range, selFragment);
+ }
+ }
+ return result;
+ }
+
+ // Draws a cursor for the given range
+ function drawSelectionCursor(cm, head, output) {
+ var pos = cursorCoords(cm, head, "div", null, null, !cm.options.singleCursorHeightPerLine);
+ var cursor = output.appendChild(elt("div", "\u00a0", "CodeMirror-cursor"));
+ cursor.style.left = pos.left + "px";
+ cursor.style.top = pos.top + "px";
+ cursor.style.height = Math.max(0, pos.bottom - pos.top) * cm.options.cursorHeight + "px";
+ if (/\bcm-fat-cursor\b/.test(cm.getWrapperElement().className)) {
+ var charPos = charCoords(cm, head, "div", null, null);
+ var width = charPos.right - charPos.left;
+ cursor.style.width = (width > 0 ? width : cm.defaultCharWidth()) + "px";
+ }
+ if (pos.other) {
+ // Secondary cursor, shown when on a 'jump' in bi-directional text
+ var otherCursor = output.appendChild(elt("div", "\u00a0", "CodeMirror-cursor CodeMirror-secondarycursor"));
+ otherCursor.style.display = "";
+ otherCursor.style.left = pos.other.left + "px";
+ otherCursor.style.top = pos.other.top + "px";
+ otherCursor.style.height = (pos.other.bottom - pos.other.top) * .85 + "px";
+ }
+ }
+ function cmpCoords(a, b) {
+ return a.top - b.top || a.left - b.left;
+ }
+
+ // Draws the given range as a highlighted selection
+ function drawSelectionRange(cm, range, output) {
+ var display = cm.display,
+ doc = cm.doc;
+ var fragment = document.createDocumentFragment();
+ var padding = paddingH(cm.display),
+ leftSide = padding.left;
+ var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right;
+ var docLTR = doc.direction == "ltr";
+ function add(left, top, width, bottom) {
+ if (top < 0) {
+ top = 0;
+ }
+ top = Math.round(top);
+ bottom = Math.round(bottom);
+ fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left + "px;\n top: " + top + "px; width: " + (width == null ? rightSide - left : width) + "px;\n height: " + (bottom - top) + "px"));
+ }
+ function drawForLine(line, fromArg, toArg) {
+ var lineObj = getLine(doc, line);
+ var lineLen = lineObj.text.length;
+ var start, end;
+ function coords(ch, bias) {
+ return charCoords(cm, Pos(line, ch), "div", lineObj, bias);
+ }
+ function wrapX(pos, dir, side) {
+ var extent = wrappedLineExtentChar(cm, lineObj, null, pos);
+ var prop = dir == "ltr" == (side == "after") ? "left" : "right";
+ var ch = side == "after" ? extent.begin : extent.end - (/\s/.test(lineObj.text.charAt(extent.end - 1)) ? 2 : 1);
+ return coords(ch, prop)[prop];
+ }
+ var order = getOrder(lineObj, doc.direction);
+ iterateBidiSections(order, fromArg || 0, toArg == null ? lineLen : toArg, function (from, to, dir, i) {
+ var ltr = dir == "ltr";
+ var fromPos = coords(from, ltr ? "left" : "right");
+ var toPos = coords(to - 1, ltr ? "right" : "left");
+ var openStart = fromArg == null && from == 0,
+ openEnd = toArg == null && to == lineLen;
+ var first = i == 0,
+ last = !order || i == order.length - 1;
+ if (toPos.top - fromPos.top <= 3) {
+ // Single line
+ var openLeft = (docLTR ? openStart : openEnd) && first;
+ var openRight = (docLTR ? openEnd : openStart) && last;
+ var left = openLeft ? leftSide : (ltr ? fromPos : toPos).left;
+ var right = openRight ? rightSide : (ltr ? toPos : fromPos).right;
+ add(left, fromPos.top, right - left, fromPos.bottom);
+ } else {
+ // Multiple lines
+ var topLeft, topRight, botLeft, botRight;
+ if (ltr) {
+ topLeft = docLTR && openStart && first ? leftSide : fromPos.left;
+ topRight = docLTR ? rightSide : wrapX(from, dir, "before");
+ botLeft = docLTR ? leftSide : wrapX(to, dir, "after");
+ botRight = docLTR && openEnd && last ? rightSide : toPos.right;
+ } else {
+ topLeft = !docLTR ? leftSide : wrapX(from, dir, "before");
+ topRight = !docLTR && openStart && first ? rightSide : fromPos.right;
+ botLeft = !docLTR && openEnd && last ? leftSide : toPos.left;
+ botRight = !docLTR ? rightSide : wrapX(to, dir, "after");
+ }
+ add(topLeft, fromPos.top, topRight - topLeft, fromPos.bottom);
+ if (fromPos.bottom < toPos.top) {
+ add(leftSide, fromPos.bottom, null, toPos.top);
+ }
+ add(botLeft, toPos.top, botRight - botLeft, toPos.bottom);
+ }
+ if (!start || cmpCoords(fromPos, start) < 0) {
+ start = fromPos;
+ }
+ if (cmpCoords(toPos, start) < 0) {
+ start = toPos;
+ }
+ if (!end || cmpCoords(fromPos, end) < 0) {
+ end = fromPos;
+ }
+ if (cmpCoords(toPos, end) < 0) {
+ end = toPos;
+ }
+ });
+ return {
+ start: start,
+ end: end
+ };
+ }
+ var sFrom = range.from(),
+ sTo = range.to();
+ if (sFrom.line == sTo.line) {
+ drawForLine(sFrom.line, sFrom.ch, sTo.ch);
+ } else {
+ var fromLine = getLine(doc, sFrom.line),
+ toLine = getLine(doc, sTo.line);
+ var singleVLine = visualLine(fromLine) == visualLine(toLine);
+ var leftEnd = drawForLine(sFrom.line, sFrom.ch, singleVLine ? fromLine.text.length + 1 : null).end;
+ var rightStart = drawForLine(sTo.line, singleVLine ? 0 : null, sTo.ch).start;
+ if (singleVLine) {
+ if (leftEnd.top < rightStart.top - 2) {
+ add(leftEnd.right, leftEnd.top, null, leftEnd.bottom);
+ add(leftSide, rightStart.top, rightStart.left, rightStart.bottom);
+ } else {
+ add(leftEnd.right, leftEnd.top, rightStart.left - leftEnd.right, leftEnd.bottom);
+ }
+ }
+ if (leftEnd.bottom < rightStart.top) {
+ add(leftSide, leftEnd.bottom, null, rightStart.top);
+ }
+ }
+ output.appendChild(fragment);
+ }
+
+ // Cursor-blinking
+ function restartBlink(cm) {
+ if (!cm.state.focused) {
+ return;
+ }
+ var display = cm.display;
+ clearInterval(display.blinker);
+ var on = true;
+ display.cursorDiv.style.visibility = "";
+ if (cm.options.cursorBlinkRate > 0) {
+ display.blinker = setInterval(function () {
+ if (!cm.hasFocus()) {
+ onBlur(cm);
+ }
+ display.cursorDiv.style.visibility = (on = !on) ? "" : "hidden";
+ }, cm.options.cursorBlinkRate);
+ } else if (cm.options.cursorBlinkRate < 0) {
+ display.cursorDiv.style.visibility = "hidden";
+ }
+ }
+ function ensureFocus(cm) {
+ if (!cm.hasFocus()) {
+ cm.display.input.focus();
+ if (!cm.state.focused) {
+ onFocus(cm);
+ }
+ }
+ }
+ function delayBlurEvent(cm) {
+ cm.state.delayingBlurEvent = true;
+ setTimeout(function () {
+ if (cm.state.delayingBlurEvent) {
+ cm.state.delayingBlurEvent = false;
+ if (cm.state.focused) {
+ onBlur(cm);
+ }
+ }
+ }, 100);
+ }
+ function onFocus(cm, e) {
+ if (cm.state.delayingBlurEvent && !cm.state.draggingText) {
+ cm.state.delayingBlurEvent = false;
+ }
+ if (cm.options.readOnly == "nocursor") {
+ return;
+ }
+ if (!cm.state.focused) {
+ signal(cm, "focus", cm, e);
+ cm.state.focused = true;
+ addClass(cm.display.wrapper, "CodeMirror-focused");
+ // This test prevents this from firing when a context
+ // menu is closed (since the input reset would kill the
+ // select-all detection hack)
+ if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) {
+ cm.display.input.reset();
+ if (webkit) {
+ setTimeout(function () {
+ return cm.display.input.reset(true);
+ }, 20);
+ } // Issue #1730
+ }
+ cm.display.input.receivedFocus();
+ }
+ restartBlink(cm);
+ }
+ function onBlur(cm, e) {
+ if (cm.state.delayingBlurEvent) {
+ return;
+ }
+ if (cm.state.focused) {
+ signal(cm, "blur", cm, e);
+ cm.state.focused = false;
+ rmClass(cm.display.wrapper, "CodeMirror-focused");
+ }
+ clearInterval(cm.display.blinker);
+ setTimeout(function () {
+ if (!cm.state.focused) {
+ cm.display.shift = false;
+ }
+ }, 150);
+ }
+
+ // Read the actual heights of the rendered lines, and update their
+ // stored heights to match.
+ function updateHeightsInViewport(cm) {
+ var display = cm.display;
+ var prevBottom = display.lineDiv.offsetTop;
+ var viewTop = Math.max(0, display.scroller.getBoundingClientRect().top);
+ var oldHeight = display.lineDiv.getBoundingClientRect().top;
+ var mustScroll = 0;
+ for (var i = 0; i < display.view.length; i++) {
+ var cur = display.view[i],
+ wrapping = cm.options.lineWrapping;
+ var height = void 0,
+ width = 0;
+ if (cur.hidden) {
+ continue;
+ }
+ oldHeight += cur.line.height;
+ if (ie && ie_version < 8) {
+ var bot = cur.node.offsetTop + cur.node.offsetHeight;
+ height = bot - prevBottom;
+ prevBottom = bot;
+ } else {
+ var box = cur.node.getBoundingClientRect();
+ height = box.bottom - box.top;
+ // Check that lines don't extend past the right of the current
+ // editor width
+ if (!wrapping && cur.text.firstChild) {
+ width = cur.text.firstChild.getBoundingClientRect().right - box.left - 1;
+ }
+ }
+ var diff = cur.line.height - height;
+ if (diff > .005 || diff < -.005) {
+ if (oldHeight < viewTop) {
+ mustScroll -= diff;
+ }
+ updateLineHeight(cur.line, height);
+ updateWidgetHeight(cur.line);
+ if (cur.rest) {
+ for (var j = 0; j < cur.rest.length; j++) {
+ updateWidgetHeight(cur.rest[j]);
+ }
+ }
+ }
+ if (width > cm.display.sizerWidth) {
+ var chWidth = Math.ceil(width / charWidth(cm.display));
+ if (chWidth > cm.display.maxLineLength) {
+ cm.display.maxLineLength = chWidth;
+ cm.display.maxLine = cur.line;
+ cm.display.maxLineChanged = true;
+ }
+ }
+ }
+ if (Math.abs(mustScroll) > 2) {
+ display.scroller.scrollTop += mustScroll;
+ }
+ }
+
+ // Read and store the height of line widgets associated with the
+ // given line.
+ function updateWidgetHeight(line) {
+ if (line.widgets) {
+ for (var i = 0; i < line.widgets.length; ++i) {
+ var w = line.widgets[i],
+ parent = w.node.parentNode;
+ if (parent) {
+ w.height = parent.offsetHeight;
+ }
+ }
+ }
+ }
+
+ // Compute the lines that are visible in a given viewport (defaults
+ // the the current scroll position). viewport may contain top,
+ // height, and ensure (see op.scrollToPos) properties.
+ function visibleLines(display, doc, viewport) {
+ var top = viewport && viewport.top != null ? Math.max(0, viewport.top) : display.scroller.scrollTop;
+ top = Math.floor(top - paddingTop(display));
+ var bottom = viewport && viewport.bottom != null ? viewport.bottom : top + display.wrapper.clientHeight;
+ var from = lineAtHeight(doc, top),
+ to = lineAtHeight(doc, bottom);
+ // Ensure is a {from: {line, ch}, to: {line, ch}} object, and
+ // forces those lines into the viewport (if possible).
+ if (viewport && viewport.ensure) {
+ var ensureFrom = viewport.ensure.from.line,
+ ensureTo = viewport.ensure.to.line;
+ if (ensureFrom < from) {
+ from = ensureFrom;
+ to = lineAtHeight(doc, heightAtLine(getLine(doc, ensureFrom)) + display.wrapper.clientHeight);
+ } else if (Math.min(ensureTo, doc.lastLine()) >= to) {
+ from = lineAtHeight(doc, heightAtLine(getLine(doc, ensureTo)) - display.wrapper.clientHeight);
+ to = ensureTo;
+ }
+ }
+ return {
+ from: from,
+ to: Math.max(to, from + 1)
+ };
+ }
+
+ // SCROLLING THINGS INTO VIEW
+
+ // If an editor sits on the top or bottom of the window, partially
+ // scrolled out of view, this ensures that the cursor is visible.
+ function maybeScrollWindow(cm, rect) {
+ if (signalDOMEvent(cm, "scrollCursorIntoView")) {
+ return;
+ }
+ var display = cm.display,
+ box = display.sizer.getBoundingClientRect(),
+ doScroll = null;
+ if (rect.top + box.top < 0) {
+ doScroll = true;
+ } else if (rect.bottom + box.top > (window.innerHeight || document.documentElement.clientHeight)) {
+ doScroll = false;
+ }
+ if (doScroll != null && !phantom) {
+ var scrollNode = elt("div", "\u200b", null, "position: absolute;\n top: " + (rect.top - display.viewOffset - paddingTop(cm.display)) + "px;\n height: " + (rect.bottom - rect.top + scrollGap(cm) + display.barHeight) + "px;\n left: " + rect.left + "px; width: " + Math.max(2, rect.right - rect.left) + "px;");
+ cm.display.lineSpace.appendChild(scrollNode);
+ scrollNode.scrollIntoView(doScroll);
+ cm.display.lineSpace.removeChild(scrollNode);
+ }
+ }
+
+ // Scroll a given position into view (immediately), verifying that
+ // it actually became visible (as line heights are accurately
+ // measured, the position of something may 'drift' during drawing).
+ function scrollPosIntoView(cm, pos, end, margin) {
+ if (margin == null) {
+ margin = 0;
+ }
+ var rect;
+ if (!cm.options.lineWrapping && pos == end) {
+ // Set pos and end to the cursor positions around the character pos sticks to
+ // If pos.sticky == "before", that is around pos.ch - 1, otherwise around pos.ch
+ // If pos == Pos(_, 0, "before"), pos and end are unchanged
+ end = pos.sticky == "before" ? Pos(pos.line, pos.ch + 1, "before") : pos;
+ pos = pos.ch ? Pos(pos.line, pos.sticky == "before" ? pos.ch - 1 : pos.ch, "after") : pos;
+ }
+ for (var limit = 0; limit < 5; limit++) {
+ var changed = false;
+ var coords = cursorCoords(cm, pos);
+ var endCoords = !end || end == pos ? coords : cursorCoords(cm, end);
+ rect = {
+ left: Math.min(coords.left, endCoords.left),
+ top: Math.min(coords.top, endCoords.top) - margin,
+ right: Math.max(coords.left, endCoords.left),
+ bottom: Math.max(coords.bottom, endCoords.bottom) + margin
+ };
+ var scrollPos = calculateScrollPos(cm, rect);
+ var startTop = cm.doc.scrollTop,
+ startLeft = cm.doc.scrollLeft;
+ if (scrollPos.scrollTop != null) {
+ updateScrollTop(cm, scrollPos.scrollTop);
+ if (Math.abs(cm.doc.scrollTop - startTop) > 1) {
+ changed = true;
+ }
+ }
+ if (scrollPos.scrollLeft != null) {
+ setScrollLeft(cm, scrollPos.scrollLeft);
+ if (Math.abs(cm.doc.scrollLeft - startLeft) > 1) {
+ changed = true;
+ }
+ }
+ if (!changed) {
+ break;
+ }
+ }
+ return rect;
+ }
+
+ // Scroll a given set of coordinates into view (immediately).
+ function scrollIntoView(cm, rect) {
+ var scrollPos = calculateScrollPos(cm, rect);
+ if (scrollPos.scrollTop != null) {
+ updateScrollTop(cm, scrollPos.scrollTop);
+ }
+ if (scrollPos.scrollLeft != null) {
+ setScrollLeft(cm, scrollPos.scrollLeft);
+ }
+ }
+
+ // Calculate a new scroll position needed to scroll the given
+ // rectangle into view. Returns an object with scrollTop and
+ // scrollLeft properties. When these are undefined, the
+ // vertical/horizontal position does not need to be adjusted.
+ function calculateScrollPos(cm, rect) {
+ var display = cm.display,
+ snapMargin = textHeight(cm.display);
+ if (rect.top < 0) {
+ rect.top = 0;
+ }
+ var screentop = cm.curOp && cm.curOp.scrollTop != null ? cm.curOp.scrollTop : display.scroller.scrollTop;
+ var screen = displayHeight(cm),
+ result = {};
+ if (rect.bottom - rect.top > screen) {
+ rect.bottom = rect.top + screen;
+ }
+ var docBottom = cm.doc.height + paddingVert(display);
+ var atTop = rect.top < snapMargin,
+ atBottom = rect.bottom > docBottom - snapMargin;
+ if (rect.top < screentop) {
+ result.scrollTop = atTop ? 0 : rect.top;
+ } else if (rect.bottom > screentop + screen) {
+ var newTop = Math.min(rect.top, (atBottom ? docBottom : rect.bottom) - screen);
+ if (newTop != screentop) {
+ result.scrollTop = newTop;
+ }
+ }
+ var gutterSpace = cm.options.fixedGutter ? 0 : display.gutters.offsetWidth;
+ var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft - gutterSpace;
+ var screenw = displayWidth(cm) - display.gutters.offsetWidth;
+ var tooWide = rect.right - rect.left > screenw;
+ if (tooWide) {
+ rect.right = rect.left + screenw;
+ }
+ if (rect.left < 10) {
+ result.scrollLeft = 0;
+ } else if (rect.left < screenleft) {
+ result.scrollLeft = Math.max(0, rect.left + gutterSpace - (tooWide ? 0 : 10));
+ } else if (rect.right > screenw + screenleft - 3) {
+ result.scrollLeft = rect.right + (tooWide ? 0 : 10) - screenw;
+ }
+ return result;
+ }
+
+ // Store a relative adjustment to the scroll position in the current
+ // operation (to be applied when the operation finishes).
+ function addToScrollTop(cm, top) {
+ if (top == null) {
+ return;
+ }
+ resolveScrollToPos(cm);
+ cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;
+ }
+
+ // Make sure that at the end of the operation the current cursor is
+ // shown.
+ function ensureCursorVisible(cm) {
+ resolveScrollToPos(cm);
+ var cur = cm.getCursor();
+ cm.curOp.scrollToPos = {
+ from: cur,
+ to: cur,
+ margin: cm.options.cursorScrollMargin
+ };
+ }
+ function scrollToCoords(cm, x, y) {
+ if (x != null || y != null) {
+ resolveScrollToPos(cm);
+ }
+ if (x != null) {
+ cm.curOp.scrollLeft = x;
+ }
+ if (y != null) {
+ cm.curOp.scrollTop = y;
+ }
+ }
+ function scrollToRange(cm, range) {
+ resolveScrollToPos(cm);
+ cm.curOp.scrollToPos = range;
+ }
+
+ // When an operation has its scrollToPos property set, and another
+ // scroll action is applied before the end of the operation, this
+ // 'simulates' scrolling that position into view in a cheap way, so
+ // that the effect of intermediate scroll commands is not ignored.
+ function resolveScrollToPos(cm) {
+ var range = cm.curOp.scrollToPos;
+ if (range) {
+ cm.curOp.scrollToPos = null;
+ var from = estimateCoords(cm, range.from),
+ to = estimateCoords(cm, range.to);
+ scrollToCoordsRange(cm, from, to, range.margin);
+ }
+ }
+ function scrollToCoordsRange(cm, from, to, margin) {
+ var sPos = calculateScrollPos(cm, {
+ left: Math.min(from.left, to.left),
+ top: Math.min(from.top, to.top) - margin,
+ right: Math.max(from.right, to.right),
+ bottom: Math.max(from.bottom, to.bottom) + margin
+ });
+ scrollToCoords(cm, sPos.scrollLeft, sPos.scrollTop);
+ }
+
+ // Sync the scrollable area and scrollbars, ensure the viewport
+ // covers the visible area.
+ function updateScrollTop(cm, val) {
+ if (Math.abs(cm.doc.scrollTop - val) < 2) {
+ return;
+ }
+ if (!gecko) {
+ updateDisplaySimple(cm, {
+ top: val
+ });
+ }
+ setScrollTop(cm, val, true);
+ if (gecko) {
+ updateDisplaySimple(cm);
+ }
+ startWorker(cm, 100);
+ }
+ function setScrollTop(cm, val, forceScroll) {
+ val = Math.max(0, Math.min(cm.display.scroller.scrollHeight - cm.display.scroller.clientHeight, val));
+ if (cm.display.scroller.scrollTop == val && !forceScroll) {
+ return;
+ }
+ cm.doc.scrollTop = val;
+ cm.display.scrollbars.setScrollTop(val);
+ if (cm.display.scroller.scrollTop != val) {
+ cm.display.scroller.scrollTop = val;
+ }
+ }
+
+ // Sync scroller and scrollbar, ensure the gutter elements are
+ // aligned.
+ function setScrollLeft(cm, val, isScroller, forceScroll) {
+ val = Math.max(0, Math.min(val, cm.display.scroller.scrollWidth - cm.display.scroller.clientWidth));
+ if ((isScroller ? val == cm.doc.scrollLeft : Math.abs(cm.doc.scrollLeft - val) < 2) && !forceScroll) {
+ return;
+ }
+ cm.doc.scrollLeft = val;
+ alignHorizontally(cm);
+ if (cm.display.scroller.scrollLeft != val) {
+ cm.display.scroller.scrollLeft = val;
+ }
+ cm.display.scrollbars.setScrollLeft(val);
+ }
+
+ // SCROLLBARS
+
+ // Prepare DOM reads needed to update the scrollbars. Done in one
+ // shot to minimize update/measure roundtrips.
+ function measureForScrollbars(cm) {
+ var d = cm.display,
+ gutterW = d.gutters.offsetWidth;
+ var docH = Math.round(cm.doc.height + paddingVert(cm.display));
+ return {
+ clientHeight: d.scroller.clientHeight,
+ viewHeight: d.wrapper.clientHeight,
+ scrollWidth: d.scroller.scrollWidth,
+ clientWidth: d.scroller.clientWidth,
+ viewWidth: d.wrapper.clientWidth,
+ barLeft: cm.options.fixedGutter ? gutterW : 0,
+ docHeight: docH,
+ scrollHeight: docH + scrollGap(cm) + d.barHeight,
+ nativeBarWidth: d.nativeBarWidth,
+ gutterWidth: gutterW
+ };
+ }
+ var NativeScrollbars = function (place, scroll, cm) {
+ this.cm = cm;
+ var vert = this.vert = elt("div", [elt("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar");
+ var horiz = this.horiz = elt("div", [elt("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar");
+ vert.tabIndex = horiz.tabIndex = -1;
+ place(vert);
+ place(horiz);
+ on(vert, "scroll", function () {
+ if (vert.clientHeight) {
+ scroll(vert.scrollTop, "vertical");
+ }
+ });
+ on(horiz, "scroll", function () {
+ if (horiz.clientWidth) {
+ scroll(horiz.scrollLeft, "horizontal");
+ }
+ });
+ this.checkedZeroWidth = false;
+ // Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).
+ if (ie && ie_version < 8) {
+ this.horiz.style.minHeight = this.vert.style.minWidth = "18px";
+ }
+ };
+ NativeScrollbars.prototype.update = function (measure) {
+ var needsH = measure.scrollWidth > measure.clientWidth + 1;
+ var needsV = measure.scrollHeight > measure.clientHeight + 1;
+ var sWidth = measure.nativeBarWidth;
+ if (needsV) {
+ this.vert.style.display = "block";
+ this.vert.style.bottom = needsH ? sWidth + "px" : "0";
+ var totalHeight = measure.viewHeight - (needsH ? sWidth : 0);
+ // A bug in IE8 can cause this value to be negative, so guard it.
+ this.vert.firstChild.style.height = Math.max(0, measure.scrollHeight - measure.clientHeight + totalHeight) + "px";
+ } else {
+ this.vert.scrollTop = 0;
+ this.vert.style.display = "";
+ this.vert.firstChild.style.height = "0";
+ }
+ if (needsH) {
+ this.horiz.style.display = "block";
+ this.horiz.style.right = needsV ? sWidth + "px" : "0";
+ this.horiz.style.left = measure.barLeft + "px";
+ var totalWidth = measure.viewWidth - measure.barLeft - (needsV ? sWidth : 0);
+ this.horiz.firstChild.style.width = Math.max(0, measure.scrollWidth - measure.clientWidth + totalWidth) + "px";
+ } else {
+ this.horiz.style.display = "";
+ this.horiz.firstChild.style.width = "0";
+ }
+ if (!this.checkedZeroWidth && measure.clientHeight > 0) {
+ if (sWidth == 0) {
+ this.zeroWidthHack();
+ }
+ this.checkedZeroWidth = true;
+ }
+ return {
+ right: needsV ? sWidth : 0,
+ bottom: needsH ? sWidth : 0
+ };
+ };
+ NativeScrollbars.prototype.setScrollLeft = function (pos) {
+ if (this.horiz.scrollLeft != pos) {
+ this.horiz.scrollLeft = pos;
+ }
+ if (this.disableHoriz) {
+ this.enableZeroWidthBar(this.horiz, this.disableHoriz, "horiz");
+ }
+ };
+ NativeScrollbars.prototype.setScrollTop = function (pos) {
+ if (this.vert.scrollTop != pos) {
+ this.vert.scrollTop = pos;
+ }
+ if (this.disableVert) {
+ this.enableZeroWidthBar(this.vert, this.disableVert, "vert");
+ }
+ };
+ NativeScrollbars.prototype.zeroWidthHack = function () {
+ var w = mac && !mac_geMountainLion ? "12px" : "18px";
+ this.horiz.style.height = this.vert.style.width = w;
+ this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none";
+ this.disableHoriz = new Delayed();
+ this.disableVert = new Delayed();
+ };
+ NativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay, type) {
+ bar.style.pointerEvents = "auto";
+ function maybeDisable() {
+ // To find out whether the scrollbar is still visible, we
+ // check whether the element under the pixel in the bottom
+ // right corner of the scrollbar box is the scrollbar box
+ // itself (when the bar is still visible) or its filler child
+ // (when the bar is hidden). If it is still visible, we keep
+ // it enabled, if it's hidden, we disable pointer events.
+ var box = bar.getBoundingClientRect();
+ var elt = type == "vert" ? document.elementFromPoint(box.right - 1, (box.top + box.bottom) / 2) : document.elementFromPoint((box.right + box.left) / 2, box.bottom - 1);
+ if (elt != bar) {
+ bar.style.pointerEvents = "none";
+ } else {
+ delay.set(1000, maybeDisable);
+ }
+ }
+ delay.set(1000, maybeDisable);
+ };
+ NativeScrollbars.prototype.clear = function () {
+ var parent = this.horiz.parentNode;
+ parent.removeChild(this.horiz);
+ parent.removeChild(this.vert);
+ };
+ var NullScrollbars = function () {};
+ NullScrollbars.prototype.update = function () {
+ return {
+ bottom: 0,
+ right: 0
+ };
+ };
+ NullScrollbars.prototype.setScrollLeft = function () {};
+ NullScrollbars.prototype.setScrollTop = function () {};
+ NullScrollbars.prototype.clear = function () {};
+ function updateScrollbars(cm, measure) {
+ if (!measure) {
+ measure = measureForScrollbars(cm);
+ }
+ var startWidth = cm.display.barWidth,
+ startHeight = cm.display.barHeight;
+ updateScrollbarsInner(cm, measure);
+ for (var i = 0; i < 4 && startWidth != cm.display.barWidth || startHeight != cm.display.barHeight; i++) {
+ if (startWidth != cm.display.barWidth && cm.options.lineWrapping) {
+ updateHeightsInViewport(cm);
+ }
+ updateScrollbarsInner(cm, measureForScrollbars(cm));
+ startWidth = cm.display.barWidth;
+ startHeight = cm.display.barHeight;
+ }
+ }
+
+ // Re-synchronize the fake scrollbars with the actual size of the
+ // content.
+ function updateScrollbarsInner(cm, measure) {
+ var d = cm.display;
+ var sizes = d.scrollbars.update(measure);
+ d.sizer.style.paddingRight = (d.barWidth = sizes.right) + "px";
+ d.sizer.style.paddingBottom = (d.barHeight = sizes.bottom) + "px";
+ d.heightForcer.style.borderBottom = sizes.bottom + "px solid transparent";
+ if (sizes.right && sizes.bottom) {
+ d.scrollbarFiller.style.display = "block";
+ d.scrollbarFiller.style.height = sizes.bottom + "px";
+ d.scrollbarFiller.style.width = sizes.right + "px";
+ } else {
+ d.scrollbarFiller.style.display = "";
+ }
+ if (sizes.bottom && cm.options.coverGutterNextToScrollbar && cm.options.fixedGutter) {
+ d.gutterFiller.style.display = "block";
+ d.gutterFiller.style.height = sizes.bottom + "px";
+ d.gutterFiller.style.width = measure.gutterWidth + "px";
+ } else {
+ d.gutterFiller.style.display = "";
+ }
+ }
+ var scrollbarModel = {
+ "native": NativeScrollbars,
+ "null": NullScrollbars
+ };
+ function initScrollbars(cm) {
+ if (cm.display.scrollbars) {
+ cm.display.scrollbars.clear();
+ if (cm.display.scrollbars.addClass) {
+ rmClass(cm.display.wrapper, cm.display.scrollbars.addClass);
+ }
+ }
+ cm.display.scrollbars = new scrollbarModel[cm.options.scrollbarStyle](function (node) {
+ cm.display.wrapper.insertBefore(node, cm.display.scrollbarFiller);
+ // Prevent clicks in the scrollbars from killing focus
+ on(node, "mousedown", function () {
+ if (cm.state.focused) {
+ setTimeout(function () {
+ return cm.display.input.focus();
+ }, 0);
+ }
+ });
+ node.setAttribute("cm-not-content", "true");
+ }, function (pos, axis) {
+ if (axis == "horizontal") {
+ setScrollLeft(cm, pos);
+ } else {
+ updateScrollTop(cm, pos);
+ }
+ }, cm);
+ if (cm.display.scrollbars.addClass) {
+ addClass(cm.display.wrapper, cm.display.scrollbars.addClass);
+ }
+ }
+
+ // Operations are used to wrap a series of changes to the editor
+ // state in such a way that each change won't have to update the
+ // cursor and display (which would be awkward, slow, and
+ // error-prone). Instead, display updates are batched and then all
+ // combined and executed at once.
+
+ var nextOpId = 0;
+ // Start a new operation.
+ function startOperation(cm) {
+ cm.curOp = {
+ cm: cm,
+ viewChanged: false,
+ // Flag that indicates that lines might need to be redrawn
+ startHeight: cm.doc.height,
+ // Used to detect need to update scrollbar
+ forceUpdate: false,
+ // Used to force a redraw
+ updateInput: 0,
+ // Whether to reset the input textarea
+ typing: false,
+ // Whether this reset should be careful to leave existing text (for compositing)
+ changeObjs: null,
+ // Accumulated changes, for firing change events
+ cursorActivityHandlers: null,
+ // Set of handlers to fire cursorActivity on
+ cursorActivityCalled: 0,
+ // Tracks which cursorActivity handlers have been called already
+ selectionChanged: false,
+ // Whether the selection needs to be redrawn
+ updateMaxLine: false,
+ // Set when the widest line needs to be determined anew
+ scrollLeft: null,
+ scrollTop: null,
+ // Intermediate scroll position, not pushed to DOM yet
+ scrollToPos: null,
+ // Used to scroll to a specific position
+ focus: false,
+ id: ++nextOpId,
+ // Unique ID
+ markArrays: null // Used by addMarkedSpan
+ };
+ pushOperation(cm.curOp);
+ }
+
+ // Finish an operation, updating the display and signalling delayed events
+ function endOperation(cm) {
+ var op = cm.curOp;
+ if (op) {
+ finishOperation(op, function (group) {
+ for (var i = 0; i < group.ops.length; i++) {
+ group.ops[i].cm.curOp = null;
+ }
+ endOperations(group);
+ });
+ }
+ }
+
+ // The DOM updates done when an operation finishes are batched so
+ // that the minimum number of relayouts are required.
+ function endOperations(group) {
+ var ops = group.ops;
+ for (var i = 0; i < ops.length; i++)
+ // Read DOM
+ {
+ endOperation_R1(ops[i]);
+ }
+ for (var i$1 = 0; i$1 < ops.length; i$1++)
+ // Write DOM (maybe)
+ {
+ endOperation_W1(ops[i$1]);
+ }
+ for (var i$2 = 0; i$2 < ops.length; i$2++)
+ // Read DOM
+ {
+ endOperation_R2(ops[i$2]);
+ }
+ for (var i$3 = 0; i$3 < ops.length; i$3++)
+ // Write DOM (maybe)
+ {
+ endOperation_W2(ops[i$3]);
+ }
+ for (var i$4 = 0; i$4 < ops.length; i$4++)
+ // Read DOM
+ {
+ endOperation_finish(ops[i$4]);
+ }
+ }
+ function endOperation_R1(op) {
+ var cm = op.cm,
+ display = cm.display;
+ maybeClipScrollbars(cm);
+ if (op.updateMaxLine) {
+ findMaxLine(cm);
+ }
+ op.mustUpdate = op.viewChanged || op.forceUpdate || op.scrollTop != null || op.scrollToPos && (op.scrollToPos.from.line < display.viewFrom || op.scrollToPos.to.line >= display.viewTo) || display.maxLineChanged && cm.options.lineWrapping;
+ op.update = op.mustUpdate && new DisplayUpdate(cm, op.mustUpdate && {
+ top: op.scrollTop,
+ ensure: op.scrollToPos
+ }, op.forceUpdate);
+ }
+ function endOperation_W1(op) {
+ op.updatedDisplay = op.mustUpdate && updateDisplayIfNeeded(op.cm, op.update);
+ }
+ function endOperation_R2(op) {
+ var cm = op.cm,
+ display = cm.display;
+ if (op.updatedDisplay) {
+ updateHeightsInViewport(cm);
+ }
+ op.barMeasure = measureForScrollbars(cm);
+
+ // If the max line changed since it was last measured, measure it,
+ // and ensure the document's width matches it.
+ // updateDisplay_W2 will use these properties to do the actual resizing
+ if (display.maxLineChanged && !cm.options.lineWrapping) {
+ op.adjustWidthTo = measureChar(cm, display.maxLine, display.maxLine.text.length).left + 3;
+ cm.display.sizerWidth = op.adjustWidthTo;
+ op.barMeasure.scrollWidth = Math.max(display.scroller.clientWidth, display.sizer.offsetLeft + op.adjustWidthTo + scrollGap(cm) + cm.display.barWidth);
+ op.maxScrollLeft = Math.max(0, display.sizer.offsetLeft + op.adjustWidthTo - displayWidth(cm));
+ }
+ if (op.updatedDisplay || op.selectionChanged) {
+ op.preparedSelection = display.input.prepareSelection();
+ }
+ }
+ function endOperation_W2(op) {
+ var cm = op.cm;
+ if (op.adjustWidthTo != null) {
+ cm.display.sizer.style.minWidth = op.adjustWidthTo + "px";
+ if (op.maxScrollLeft < cm.doc.scrollLeft) {
+ setScrollLeft(cm, Math.min(cm.display.scroller.scrollLeft, op.maxScrollLeft), true);
+ }
+ cm.display.maxLineChanged = false;
+ }
+ var takeFocus = op.focus && op.focus == activeElt();
+ if (op.preparedSelection) {
+ cm.display.input.showSelection(op.preparedSelection, takeFocus);
+ }
+ if (op.updatedDisplay || op.startHeight != cm.doc.height) {
+ updateScrollbars(cm, op.barMeasure);
+ }
+ if (op.updatedDisplay) {
+ setDocumentHeight(cm, op.barMeasure);
+ }
+ if (op.selectionChanged) {
+ restartBlink(cm);
+ }
+ if (cm.state.focused && op.updateInput) {
+ cm.display.input.reset(op.typing);
+ }
+ if (takeFocus) {
+ ensureFocus(op.cm);
+ }
+ }
+ function endOperation_finish(op) {
+ var cm = op.cm,
+ display = cm.display,
+ doc = cm.doc;
+ if (op.updatedDisplay) {
+ postUpdateDisplay(cm, op.update);
+ }
+
+ // Abort mouse wheel delta measurement, when scrolling explicitly
+ if (display.wheelStartX != null && (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos)) {
+ display.wheelStartX = display.wheelStartY = null;
+ }
+
+ // Propagate the scroll position to the actual DOM scroller
+ if (op.scrollTop != null) {
+ setScrollTop(cm, op.scrollTop, op.forceScroll);
+ }
+ if (op.scrollLeft != null) {
+ setScrollLeft(cm, op.scrollLeft, true, true);
+ }
+ // If we need to scroll a specific position into view, do so.
+ if (op.scrollToPos) {
+ var rect = scrollPosIntoView(cm, clipPos(doc, op.scrollToPos.from), clipPos(doc, op.scrollToPos.to), op.scrollToPos.margin);
+ maybeScrollWindow(cm, rect);
+ }
+
+ // Fire events for markers that are hidden/unidden by editing or
+ // undoing
+ var hidden = op.maybeHiddenMarkers,
+ unhidden = op.maybeUnhiddenMarkers;
+ if (hidden) {
+ for (var i = 0; i < hidden.length; ++i) {
+ if (!hidden[i].lines.length) {
+ signal(hidden[i], "hide");
+ }
+ }
+ }
+ if (unhidden) {
+ for (var i$1 = 0; i$1 < unhidden.length; ++i$1) {
+ if (unhidden[i$1].lines.length) {
+ signal(unhidden[i$1], "unhide");
+ }
+ }
+ }
+ if (display.wrapper.offsetHeight) {
+ doc.scrollTop = cm.display.scroller.scrollTop;
+ }
+
+ // Fire change events, and delayed event handlers
+ if (op.changeObjs) {
+ signal(cm, "changes", cm, op.changeObjs);
+ }
+ if (op.update) {
+ op.update.finish();
+ }
+ }
+
+ // Run the given function in an operation
+ function runInOp(cm, f) {
+ if (cm.curOp) {
+ return f();
+ }
+ startOperation(cm);
+ try {
+ return f();
+ } finally {
+ endOperation(cm);
+ }
+ }
+ // Wraps a function in an operation. Returns the wrapped function.
+ function operation(cm, f) {
+ return function () {
+ if (cm.curOp) {
+ return f.apply(cm, arguments);
+ }
+ startOperation(cm);
+ try {
+ return f.apply(cm, arguments);
+ } finally {
+ endOperation(cm);
+ }
+ };
+ }
+ // Used to add methods to editor and doc instances, wrapping them in
+ // operations.
+ function methodOp(f) {
+ return function () {
+ if (this.curOp) {
+ return f.apply(this, arguments);
+ }
+ startOperation(this);
+ try {
+ return f.apply(this, arguments);
+ } finally {
+ endOperation(this);
+ }
+ };
+ }
+ function docMethodOp(f) {
+ return function () {
+ var cm = this.cm;
+ if (!cm || cm.curOp) {
+ return f.apply(this, arguments);
+ }
+ startOperation(cm);
+ try {
+ return f.apply(this, arguments);
+ } finally {
+ endOperation(cm);
+ }
+ };
+ }
+
+ // HIGHLIGHT WORKER
+
+ function startWorker(cm, time) {
+ if (cm.doc.highlightFrontier < cm.display.viewTo) {
+ cm.state.highlight.set(time, bind(highlightWorker, cm));
+ }
+ }
+ function highlightWorker(cm) {
+ var doc = cm.doc;
+ if (doc.highlightFrontier >= cm.display.viewTo) {
+ return;
+ }
+ var end = +new Date() + cm.options.workTime;
+ var context = getContextBefore(cm, doc.highlightFrontier);
+ var changedLines = [];
+ doc.iter(context.line, Math.min(doc.first + doc.size, cm.display.viewTo + 500), function (line) {
+ if (context.line >= cm.display.viewFrom) {
+ // Visible
+ var oldStyles = line.styles;
+ var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null;
+ var highlighted = highlightLine(cm, line, context, true);
+ if (resetState) {
+ context.state = resetState;
+ }
+ line.styles = highlighted.styles;
+ var oldCls = line.styleClasses,
+ newCls = highlighted.classes;
+ if (newCls) {
+ line.styleClasses = newCls;
+ } else if (oldCls) {
+ line.styleClasses = null;
+ }
+ var ischange = !oldStyles || oldStyles.length != line.styles.length || oldCls != newCls && (!oldCls || !newCls || oldCls.bgClass != newCls.bgClass || oldCls.textClass != newCls.textClass);
+ for (var i = 0; !ischange && i < oldStyles.length; ++i) {
+ ischange = oldStyles[i] != line.styles[i];
+ }
+ if (ischange) {
+ changedLines.push(context.line);
+ }
+ line.stateAfter = context.save();
+ context.nextLine();
+ } else {
+ if (line.text.length <= cm.options.maxHighlightLength) {
+ processLine(cm, line.text, context);
+ }
+ line.stateAfter = context.line % 5 == 0 ? context.save() : null;
+ context.nextLine();
+ }
+ if (+new Date() > end) {
+ startWorker(cm, cm.options.workDelay);
+ return true;
+ }
+ });
+ doc.highlightFrontier = context.line;
+ doc.modeFrontier = Math.max(doc.modeFrontier, context.line);
+ if (changedLines.length) {
+ runInOp(cm, function () {
+ for (var i = 0; i < changedLines.length; i++) {
+ regLineChange(cm, changedLines[i], "text");
+ }
+ });
+ }
+ }
+
+ // DISPLAY DRAWING
+
+ var DisplayUpdate = function (cm, viewport, force) {
+ var display = cm.display;
+ this.viewport = viewport;
+ // Store some values that we'll need later (but don't want to force a relayout for)
+ this.visible = visibleLines(display, cm.doc, viewport);
+ this.editorIsHidden = !display.wrapper.offsetWidth;
+ this.wrapperHeight = display.wrapper.clientHeight;
+ this.wrapperWidth = display.wrapper.clientWidth;
+ this.oldDisplayWidth = displayWidth(cm);
+ this.force = force;
+ this.dims = getDimensions(cm);
+ this.events = [];
+ };
+ DisplayUpdate.prototype.signal = function (emitter, type) {
+ if (hasHandler(emitter, type)) {
+ this.events.push(arguments);
+ }
+ };
+ DisplayUpdate.prototype.finish = function () {
+ for (var i = 0; i < this.events.length; i++) {
+ signal.apply(null, this.events[i]);
+ }
+ };
+ function maybeClipScrollbars(cm) {
+ var display = cm.display;
+ if (!display.scrollbarsClipped && display.scroller.offsetWidth) {
+ display.nativeBarWidth = display.scroller.offsetWidth - display.scroller.clientWidth;
+ display.heightForcer.style.height = scrollGap(cm) + "px";
+ display.sizer.style.marginBottom = -display.nativeBarWidth + "px";
+ display.sizer.style.borderRightWidth = scrollGap(cm) + "px";
+ display.scrollbarsClipped = true;
+ }
+ }
+ function selectionSnapshot(cm) {
+ if (cm.hasFocus()) {
+ return null;
+ }
+ var active = activeElt();
+ if (!active || !contains(cm.display.lineDiv, active)) {
+ return null;
+ }
+ var result = {
+ activeElt: active
+ };
+ if (window.getSelection) {
+ var sel = window.getSelection();
+ if (sel.anchorNode && sel.extend && contains(cm.display.lineDiv, sel.anchorNode)) {
+ result.anchorNode = sel.anchorNode;
+ result.anchorOffset = sel.anchorOffset;
+ result.focusNode = sel.focusNode;
+ result.focusOffset = sel.focusOffset;
+ }
+ }
+ return result;
+ }
+ function restoreSelection(snapshot) {
+ if (!snapshot || !snapshot.activeElt || snapshot.activeElt == activeElt()) {
+ return;
+ }
+ snapshot.activeElt.focus();
+ if (!/^(INPUT|TEXTAREA)$/.test(snapshot.activeElt.nodeName) && snapshot.anchorNode && contains(document.body, snapshot.anchorNode) && contains(document.body, snapshot.focusNode)) {
+ var sel = window.getSelection(),
+ range = document.createRange();
+ range.setEnd(snapshot.anchorNode, snapshot.anchorOffset);
+ range.collapse(false);
+ sel.removeAllRanges();
+ sel.addRange(range);
+ sel.extend(snapshot.focusNode, snapshot.focusOffset);
+ }
+ }
+
+ // Does the actual updating of the line display. Bails out
+ // (returning false) when there is nothing to be done and forced is
+ // false.
+ function updateDisplayIfNeeded(cm, update) {
+ var display = cm.display,
+ doc = cm.doc;
+ if (update.editorIsHidden) {
+ resetView(cm);
+ return false;
+ }
+
+ // Bail out if the visible area is already rendered and nothing changed.
+ if (!update.force && update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo && (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) && display.renderedView == display.view && countDirtyView(cm) == 0) {
+ return false;
+ }
+ if (maybeUpdateLineNumberWidth(cm)) {
+ resetView(cm);
+ update.dims = getDimensions(cm);
+ }
+
+ // Compute a suitable new viewport (from & to)
+ var end = doc.first + doc.size;
+ var from = Math.max(update.visible.from - cm.options.viewportMargin, doc.first);
+ var to = Math.min(end, update.visible.to + cm.options.viewportMargin);
+ if (display.viewFrom < from && from - display.viewFrom < 20) {
+ from = Math.max(doc.first, display.viewFrom);
+ }
+ if (display.viewTo > to && display.viewTo - to < 20) {
+ to = Math.min(end, display.viewTo);
+ }
+ if (sawCollapsedSpans) {
+ from = visualLineNo(cm.doc, from);
+ to = visualLineEndNo(cm.doc, to);
+ }
+ var different = from != display.viewFrom || to != display.viewTo || display.lastWrapHeight != update.wrapperHeight || display.lastWrapWidth != update.wrapperWidth;
+ adjustView(cm, from, to);
+ display.viewOffset = heightAtLine(getLine(cm.doc, display.viewFrom));
+ // Position the mover div to align with the current scroll position
+ cm.display.mover.style.top = display.viewOffset + "px";
+ var toUpdate = countDirtyView(cm);
+ if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view && (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo)) {
+ return false;
+ }
+
+ // For big changes, we hide the enclosing element during the
+ // update, since that speeds up the operations on most browsers.
+ var selSnapshot = selectionSnapshot(cm);
+ if (toUpdate > 4) {
+ display.lineDiv.style.display = "none";
+ }
+ patchDisplay(cm, display.updateLineNumbers, update.dims);
+ if (toUpdate > 4) {
+ display.lineDiv.style.display = "";
+ }
+ display.renderedView = display.view;
+ // There might have been a widget with a focused element that got
+ // hidden or updated, if so re-focus it.
+ restoreSelection(selSnapshot);
+
+ // Prevent selection and cursors from interfering with the scroll
+ // width and height.
+ removeChildren(display.cursorDiv);
+ removeChildren(display.selectionDiv);
+ display.gutters.style.height = display.sizer.style.minHeight = 0;
+ if (different) {
+ display.lastWrapHeight = update.wrapperHeight;
+ display.lastWrapWidth = update.wrapperWidth;
+ startWorker(cm, 400);
+ }
+ display.updateLineNumbers = null;
+ return true;
+ }
+ function postUpdateDisplay(cm, update) {
+ var viewport = update.viewport;
+ for (var first = true;; first = false) {
+ if (!first || !cm.options.lineWrapping || update.oldDisplayWidth == displayWidth(cm)) {
+ // Clip forced viewport to actual scrollable area.
+ if (viewport && viewport.top != null) {
+ viewport = {
+ top: Math.min(cm.doc.height + paddingVert(cm.display) - displayHeight(cm), viewport.top)
+ };
+ }
+ // Updated line heights might result in the drawn area not
+ // actually covering the viewport. Keep looping until it does.
+ update.visible = visibleLines(cm.display, cm.doc, viewport);
+ if (update.visible.from >= cm.display.viewFrom && update.visible.to <= cm.display.viewTo) {
+ break;
+ }
+ } else if (first) {
+ update.visible = visibleLines(cm.display, cm.doc, viewport);
+ }
+ if (!updateDisplayIfNeeded(cm, update)) {
+ break;
+ }
+ updateHeightsInViewport(cm);
+ var barMeasure = measureForScrollbars(cm);
+ updateSelection(cm);
+ updateScrollbars(cm, barMeasure);
+ setDocumentHeight(cm, barMeasure);
+ update.force = false;
+ }
+ update.signal(cm, "update", cm);
+ if (cm.display.viewFrom != cm.display.reportedViewFrom || cm.display.viewTo != cm.display.reportedViewTo) {
+ update.signal(cm, "viewportChange", cm, cm.display.viewFrom, cm.display.viewTo);
+ cm.display.reportedViewFrom = cm.display.viewFrom;
+ cm.display.reportedViewTo = cm.display.viewTo;
+ }
+ }
+ function updateDisplaySimple(cm, viewport) {
+ var update = new DisplayUpdate(cm, viewport);
+ if (updateDisplayIfNeeded(cm, update)) {
+ updateHeightsInViewport(cm);
+ postUpdateDisplay(cm, update);
+ var barMeasure = measureForScrollbars(cm);
+ updateSelection(cm);
+ updateScrollbars(cm, barMeasure);
+ setDocumentHeight(cm, barMeasure);
+ update.finish();
+ }
+ }
+
+ // Sync the actual display DOM structure with display.view, removing
+ // nodes for lines that are no longer in view, and creating the ones
+ // that are not there yet, and updating the ones that are out of
+ // date.
+ function patchDisplay(cm, updateNumbersFrom, dims) {
+ var display = cm.display,
+ lineNumbers = cm.options.lineNumbers;
+ var container = display.lineDiv,
+ cur = container.firstChild;
+ function rm(node) {
+ var next = node.nextSibling;
+ // Works around a throw-scroll bug in OS X Webkit
+ if (webkit && mac && cm.display.currentWheelTarget == node) {
+ node.style.display = "none";
+ } else {
+ node.parentNode.removeChild(node);
+ }
+ return next;
+ }
+ var view = display.view,
+ lineN = display.viewFrom;
+ // Loop over the elements in the view, syncing cur (the DOM nodes
+ // in display.lineDiv) with the view as we go.
+ for (var i = 0; i < view.length; i++) {
+ var lineView = view[i];
+ if (lineView.hidden) ;else if (!lineView.node || lineView.node.parentNode != container) {
+ // Not drawn yet
+ var node = buildLineElement(cm, lineView, lineN, dims);
+ container.insertBefore(node, cur);
+ } else {
+ // Already drawn
+ while (cur != lineView.node) {
+ cur = rm(cur);
+ }
+ var updateNumber = lineNumbers && updateNumbersFrom != null && updateNumbersFrom <= lineN && lineView.lineNumber;
+ if (lineView.changes) {
+ if (indexOf(lineView.changes, "gutter") > -1) {
+ updateNumber = false;
+ }
+ updateLineForChanges(cm, lineView, lineN, dims);
+ }
+ if (updateNumber) {
+ removeChildren(lineView.lineNumber);
+ lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));
+ }
+ cur = lineView.node.nextSibling;
+ }
+ lineN += lineView.size;
+ }
+ while (cur) {
+ cur = rm(cur);
+ }
+ }
+ function updateGutterSpace(display) {
+ var width = display.gutters.offsetWidth;
+ display.sizer.style.marginLeft = width + "px";
+ // Send an event to consumers responding to changes in gutter width.
+ signalLater(display, "gutterChanged", display);
+ }
+ function setDocumentHeight(cm, measure) {
+ cm.display.sizer.style.minHeight = measure.docHeight + "px";
+ cm.display.heightForcer.style.top = measure.docHeight + "px";
+ cm.display.gutters.style.height = measure.docHeight + cm.display.barHeight + scrollGap(cm) + "px";
+ }
+
+ // Re-align line numbers and gutter marks to compensate for
+ // horizontal scrolling.
+ function alignHorizontally(cm) {
+ var display = cm.display,
+ view = display.view;
+ if (!display.alignWidgets && (!display.gutters.firstChild || !cm.options.fixedGutter)) {
+ return;
+ }
+ var comp = compensateForHScroll(display) - display.scroller.scrollLeft + cm.doc.scrollLeft;
+ var gutterW = display.gutters.offsetWidth,
+ left = comp + "px";
+ for (var i = 0; i < view.length; i++) {
+ if (!view[i].hidden) {
+ if (cm.options.fixedGutter) {
+ if (view[i].gutter) {
+ view[i].gutter.style.left = left;
+ }
+ if (view[i].gutterBackground) {
+ view[i].gutterBackground.style.left = left;
+ }
+ }
+ var align = view[i].alignable;
+ if (align) {
+ for (var j = 0; j < align.length; j++) {
+ align[j].style.left = left;
+ }
+ }
+ }
+ }
+ if (cm.options.fixedGutter) {
+ display.gutters.style.left = comp + gutterW + "px";
+ }
+ }
+
+ // Used to ensure that the line number gutter is still the right
+ // size for the current document size. Returns true when an update
+ // is needed.
+ function maybeUpdateLineNumberWidth(cm) {
+ if (!cm.options.lineNumbers) {
+ return false;
+ }
+ var doc = cm.doc,
+ last = lineNumberFor(cm.options, doc.first + doc.size - 1),
+ display = cm.display;
+ if (last.length != display.lineNumChars) {
+ var test = display.measure.appendChild(elt("div", [elt("div", last)], "CodeMirror-linenumber CodeMirror-gutter-elt"));
+ var innerW = test.firstChild.offsetWidth,
+ padding = test.offsetWidth - innerW;
+ display.lineGutter.style.width = "";
+ display.lineNumInnerWidth = Math.max(innerW, display.lineGutter.offsetWidth - padding) + 1;
+ display.lineNumWidth = display.lineNumInnerWidth + padding;
+ display.lineNumChars = display.lineNumInnerWidth ? last.length : -1;
+ display.lineGutter.style.width = display.lineNumWidth + "px";
+ updateGutterSpace(cm.display);
+ return true;
+ }
+ return false;
+ }
+ function getGutters(gutters, lineNumbers) {
+ var result = [],
+ sawLineNumbers = false;
+ for (var i = 0; i < gutters.length; i++) {
+ var name = gutters[i],
+ style = null;
+ if (typeof name != "string") {
+ style = name.style;
+ name = name.className;
+ }
+ if (name == "CodeMirror-linenumbers") {
+ if (!lineNumbers) {
+ continue;
+ } else {
+ sawLineNumbers = true;
+ }
+ }
+ result.push({
+ className: name,
+ style: style
+ });
+ }
+ if (lineNumbers && !sawLineNumbers) {
+ result.push({
+ className: "CodeMirror-linenumbers",
+ style: null
+ });
+ }
+ return result;
+ }
+
+ // Rebuild the gutter elements, ensure the margin to the left of the
+ // code matches their width.
+ function renderGutters(display) {
+ var gutters = display.gutters,
+ specs = display.gutterSpecs;
+ removeChildren(gutters);
+ display.lineGutter = null;
+ for (var i = 0; i < specs.length; ++i) {
+ var ref = specs[i];
+ var className = ref.className;
+ var style = ref.style;
+ var gElt = gutters.appendChild(elt("div", null, "CodeMirror-gutter " + className));
+ if (style) {
+ gElt.style.cssText = style;
+ }
+ if (className == "CodeMirror-linenumbers") {
+ display.lineGutter = gElt;
+ gElt.style.width = (display.lineNumWidth || 1) + "px";
+ }
+ }
+ gutters.style.display = specs.length ? "" : "none";
+ updateGutterSpace(display);
+ }
+ function updateGutters(cm) {
+ renderGutters(cm.display);
+ regChange(cm);
+ alignHorizontally(cm);
+ }
+
+ // The display handles the DOM integration, both for input reading
+ // and content drawing. It holds references to DOM nodes and
+ // display-related state.
+
+ function Display(place, doc, input, options) {
+ var d = this;
+ this.input = input;
+
+ // Covers bottom-right square when both scrollbars are present.
+ d.scrollbarFiller = elt("div", null, "CodeMirror-scrollbar-filler");
+ d.scrollbarFiller.setAttribute("cm-not-content", "true");
+ // Covers bottom of gutter when coverGutterNextToScrollbar is on
+ // and h scrollbar is present.
+ d.gutterFiller = elt("div", null, "CodeMirror-gutter-filler");
+ d.gutterFiller.setAttribute("cm-not-content", "true");
+ // Will contain the actual code, positioned to cover the viewport.
+ d.lineDiv = eltP("div", null, "CodeMirror-code");
+ // Elements are added to these to represent selection and cursors.
+ d.selectionDiv = elt("div", null, null, "position: relative; z-index: 1");
+ d.cursorDiv = elt("div", null, "CodeMirror-cursors");
+ // A visibility: hidden element used to find the size of things.
+ d.measure = elt("div", null, "CodeMirror-measure");
+ // When lines outside of the viewport are measured, they are drawn in this.
+ d.lineMeasure = elt("div", null, "CodeMirror-measure");
+ // Wraps everything that needs to exist inside the vertically-padded coordinate system
+ d.lineSpace = eltP("div", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.lineDiv], null, "position: relative; outline: none");
+ var lines = eltP("div", [d.lineSpace], "CodeMirror-lines");
+ // Moved around its parent to cover visible view.
+ d.mover = elt("div", [lines], null, "position: relative");
+ // Set to the height of the document, allowing scrolling.
+ d.sizer = elt("div", [d.mover], "CodeMirror-sizer");
+ d.sizerWidth = null;
+ // Behavior of elts with overflow: auto and padding is
+ // inconsistent across browsers. This is used to ensure the
+ // scrollable area is big enough.
+ d.heightForcer = elt("div", null, null, "position: absolute; height: " + scrollerGap + "px; width: 1px;");
+ // Will contain the gutters, if any.
+ d.gutters = elt("div", null, "CodeMirror-gutters");
+ d.lineGutter = null;
+ // Actual scrollable element.
+ d.scroller = elt("div", [d.sizer, d.heightForcer, d.gutters], "CodeMirror-scroll");
+ d.scroller.setAttribute("tabIndex", "-1");
+ // The element in which the editor lives.
+ d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror");
+
+ // This attribute is respected by automatic translation systems such as Google Translate,
+ // and may also be respected by tools used by human translators.
+ d.wrapper.setAttribute('translate', 'no');
+
+ // Work around IE7 z-index bug (not perfect, hence IE7 not really being supported)
+ if (ie && ie_version < 8) {
+ d.gutters.style.zIndex = -1;
+ d.scroller.style.paddingRight = 0;
+ }
+ if (!webkit && !(gecko && mobile)) {
+ d.scroller.draggable = true;
+ }
+ if (place) {
+ if (place.appendChild) {
+ place.appendChild(d.wrapper);
+ } else {
+ place(d.wrapper);
+ }
+ }
+
+ // Current rendered range (may be bigger than the view window).
+ d.viewFrom = d.viewTo = doc.first;
+ d.reportedViewFrom = d.reportedViewTo = doc.first;
+ // Information about the rendered lines.
+ d.view = [];
+ d.renderedView = null;
+ // Holds info about a single rendered line when it was rendered
+ // for measurement, while not in view.
+ d.externalMeasured = null;
+ // Empty space (in pixels) above the view
+ d.viewOffset = 0;
+ d.lastWrapHeight = d.lastWrapWidth = 0;
+ d.updateLineNumbers = null;
+ d.nativeBarWidth = d.barHeight = d.barWidth = 0;
+ d.scrollbarsClipped = false;
+
+ // Used to only resize the line number gutter when necessary (when
+ // the amount of lines crosses a boundary that makes its width change)
+ d.lineNumWidth = d.lineNumInnerWidth = d.lineNumChars = null;
+ // Set to true when a non-horizontal-scrolling line widget is
+ // added. As an optimization, line widget aligning is skipped when
+ // this is false.
+ d.alignWidgets = false;
+ d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;
+
+ // Tracks the maximum line length so that the horizontal scrollbar
+ // can be kept static when scrolling.
+ d.maxLine = null;
+ d.maxLineLength = 0;
+ d.maxLineChanged = false;
+
+ // Used for measuring wheel scrolling granularity
+ d.wheelDX = d.wheelDY = d.wheelStartX = d.wheelStartY = null;
+
+ // True when shift is held down.
+ d.shift = false;
+
+ // Used to track whether anything happened since the context menu
+ // was opened.
+ d.selForContextMenu = null;
+ d.activeTouch = null;
+ d.gutterSpecs = getGutters(options.gutters, options.lineNumbers);
+ renderGutters(d);
+ input.init(d);
+ }
+
+ // Since the delta values reported on mouse wheel events are
+ // unstandardized between browsers and even browser versions, and
+ // generally horribly unpredictable, this code starts by measuring
+ // the scroll effect that the first few mouse wheel events have,
+ // and, from that, detects the way it can convert deltas to pixel
+ // offsets afterwards.
+ //
+ // The reason we want to know the amount a wheel event will scroll
+ // is that it gives us a chance to update the display before the
+ // actual scrolling happens, reducing flickering.
+
+ var wheelSamples = 0,
+ wheelPixelsPerUnit = null;
+ // Fill in a browser-detected starting value on browsers where we
+ // know one. These don't have to be accurate -- the result of them
+ // being wrong would just be a slight flicker on the first wheel
+ // scroll (if it is large enough).
+ if (ie) {
+ wheelPixelsPerUnit = -.53;
+ } else if (gecko) {
+ wheelPixelsPerUnit = 15;
+ } else if (chrome) {
+ wheelPixelsPerUnit = -.7;
+ } else if (safari) {
+ wheelPixelsPerUnit = -1 / 3;
+ }
+ function wheelEventDelta(e) {
+ var dx = e.wheelDeltaX,
+ dy = e.wheelDeltaY;
+ if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) {
+ dx = e.detail;
+ }
+ if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) {
+ dy = e.detail;
+ } else if (dy == null) {
+ dy = e.wheelDelta;
+ }
+ return {
+ x: dx,
+ y: dy
+ };
+ }
+ function wheelEventPixels(e) {
+ var delta = wheelEventDelta(e);
+ delta.x *= wheelPixelsPerUnit;
+ delta.y *= wheelPixelsPerUnit;
+ return delta;
+ }
+ function onScrollWheel(cm, e) {
+ var delta = wheelEventDelta(e),
+ dx = delta.x,
+ dy = delta.y;
+ var pixelsPerUnit = wheelPixelsPerUnit;
+ if (e.deltaMode === 0) {
+ dx = e.deltaX;
+ dy = e.deltaY;
+ pixelsPerUnit = 1;
+ }
+ var display = cm.display,
+ scroll = display.scroller;
+ // Quit if there's nothing to scroll here
+ var canScrollX = scroll.scrollWidth > scroll.clientWidth;
+ var canScrollY = scroll.scrollHeight > scroll.clientHeight;
+ if (!(dx && canScrollX || dy && canScrollY)) {
+ return;
+ }
+
+ // Webkit browsers on OS X abort momentum scrolls when the target
+ // of the scroll event is removed from the scrollable element.
+ // This hack (see related code in patchDisplay) makes sure the
+ // element is kept around.
+ if (dy && mac && webkit) {
+ outer: for (var cur = e.target, view = display.view; cur != scroll; cur = cur.parentNode) {
+ for (var i = 0; i < view.length; i++) {
+ if (view[i].node == cur) {
+ cm.display.currentWheelTarget = cur;
+ break outer;
+ }
+ }
+ }
+ }
+
+ // On some browsers, horizontal scrolling will cause redraws to
+ // happen before the gutter has been realigned, causing it to
+ // wriggle around in a most unseemly way. When we have an
+ // estimated pixels/delta value, we just handle horizontal
+ // scrolling entirely here. It'll be slightly off from native, but
+ // better than glitching out.
+ if (dx && !gecko && !presto && pixelsPerUnit != null) {
+ if (dy && canScrollY) {
+ updateScrollTop(cm, Math.max(0, scroll.scrollTop + dy * pixelsPerUnit));
+ }
+ setScrollLeft(cm, Math.max(0, scroll.scrollLeft + dx * pixelsPerUnit));
+ // Only prevent default scrolling if vertical scrolling is
+ // actually possible. Otherwise, it causes vertical scroll
+ // jitter on OSX trackpads when deltaX is small and deltaY
+ // is large (issue #3579)
+ if (!dy || dy && canScrollY) {
+ e_preventDefault(e);
+ }
+ display.wheelStartX = null; // Abort measurement, if in progress
+ return;
+ }
+
+ // 'Project' the visible viewport to cover the area that is being
+ // scrolled into view (if we know enough to estimate it).
+ if (dy && pixelsPerUnit != null) {
+ var pixels = dy * pixelsPerUnit;
+ var top = cm.doc.scrollTop,
+ bot = top + display.wrapper.clientHeight;
+ if (pixels < 0) {
+ top = Math.max(0, top + pixels - 50);
+ } else {
+ bot = Math.min(cm.doc.height, bot + pixels + 50);
+ }
+ updateDisplaySimple(cm, {
+ top: top,
+ bottom: bot
+ });
+ }
+ if (wheelSamples < 20 && e.deltaMode !== 0) {
+ if (display.wheelStartX == null) {
+ display.wheelStartX = scroll.scrollLeft;
+ display.wheelStartY = scroll.scrollTop;
+ display.wheelDX = dx;
+ display.wheelDY = dy;
+ setTimeout(function () {
+ if (display.wheelStartX == null) {
+ return;
+ }
+ var movedX = scroll.scrollLeft - display.wheelStartX;
+ var movedY = scroll.scrollTop - display.wheelStartY;
+ var sample = movedY && display.wheelDY && movedY / display.wheelDY || movedX && display.wheelDX && movedX / display.wheelDX;
+ display.wheelStartX = display.wheelStartY = null;
+ if (!sample) {
+ return;
+ }
+ wheelPixelsPerUnit = (wheelPixelsPerUnit * wheelSamples + sample) / (wheelSamples + 1);
+ ++wheelSamples;
+ }, 200);
+ } else {
+ display.wheelDX += dx;
+ display.wheelDY += dy;
+ }
+ }
+ }
+
+ // Selection objects are immutable. A new one is created every time
+ // the selection changes. A selection is one or more non-overlapping
+ // (and non-touching) ranges, sorted, and an integer that indicates
+ // which one is the primary selection (the one that's scrolled into
+ // view, that getCursor returns, etc).
+ var Selection = function (ranges, primIndex) {
+ this.ranges = ranges;
+ this.primIndex = primIndex;
+ };
+ Selection.prototype.primary = function () {
+ return this.ranges[this.primIndex];
+ };
+ Selection.prototype.equals = function (other) {
+ if (other == this) {
+ return true;
+ }
+ if (other.primIndex != this.primIndex || other.ranges.length != this.ranges.length) {
+ return false;
+ }
+ for (var i = 0; i < this.ranges.length; i++) {
+ var here = this.ranges[i],
+ there = other.ranges[i];
+ if (!equalCursorPos(here.anchor, there.anchor) || !equalCursorPos(here.head, there.head)) {
+ return false;
+ }
+ }
+ return true;
+ };
+ Selection.prototype.deepCopy = function () {
+ var out = [];
+ for (var i = 0; i < this.ranges.length; i++) {
+ out[i] = new Range(copyPos(this.ranges[i].anchor), copyPos(this.ranges[i].head));
+ }
+ return new Selection(out, this.primIndex);
+ };
+ Selection.prototype.somethingSelected = function () {
+ for (var i = 0; i < this.ranges.length; i++) {
+ if (!this.ranges[i].empty()) {
+ return true;
+ }
+ }
+ return false;
+ };
+ Selection.prototype.contains = function (pos, end) {
+ if (!end) {
+ end = pos;
+ }
+ for (var i = 0; i < this.ranges.length; i++) {
+ var range = this.ranges[i];
+ if (cmp(end, range.from()) >= 0 && cmp(pos, range.to()) <= 0) {
+ return i;
+ }
+ }
+ return -1;
+ };
+ var Range = function (anchor, head) {
+ this.anchor = anchor;
+ this.head = head;
+ };
+ Range.prototype.from = function () {
+ return minPos(this.anchor, this.head);
+ };
+ Range.prototype.to = function () {
+ return maxPos(this.anchor, this.head);
+ };
+ Range.prototype.empty = function () {
+ return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch;
+ };
+
+ // Take an unsorted, potentially overlapping set of ranges, and
+ // build a selection out of it. 'Consumes' ranges array (modifying
+ // it).
+ function normalizeSelection(cm, ranges, primIndex) {
+ var mayTouch = cm && cm.options.selectionsMayTouch;
+ var prim = ranges[primIndex];
+ ranges.sort(function (a, b) {
+ return cmp(a.from(), b.from());
+ });
+ primIndex = indexOf(ranges, prim);
+ for (var i = 1; i < ranges.length; i++) {
+ var cur = ranges[i],
+ prev = ranges[i - 1];
+ var diff = cmp(prev.to(), cur.from());
+ if (mayTouch && !cur.empty() ? diff > 0 : diff >= 0) {
+ var from = minPos(prev.from(), cur.from()),
+ to = maxPos(prev.to(), cur.to());
+ var inv = prev.empty() ? cur.from() == cur.head : prev.from() == prev.head;
+ if (i <= primIndex) {
+ --primIndex;
+ }
+ ranges.splice(--i, 2, new Range(inv ? to : from, inv ? from : to));
+ }
+ }
+ return new Selection(ranges, primIndex);
+ }
+ function simpleSelection(anchor, head) {
+ return new Selection([new Range(anchor, head || anchor)], 0);
+ }
+
+ // Compute the position of the end of a change (its 'to' property
+ // refers to the pre-change end).
+ function changeEnd(change) {
+ if (!change.text) {
+ return change.to;
+ }
+ return Pos(change.from.line + change.text.length - 1, lst(change.text).length + (change.text.length == 1 ? change.from.ch : 0));
+ }
+
+ // Adjust a position to refer to the post-change position of the
+ // same text, or the end of the change if the change covers it.
+ function adjustForChange(pos, change) {
+ if (cmp(pos, change.from) < 0) {
+ return pos;
+ }
+ if (cmp(pos, change.to) <= 0) {
+ return changeEnd(change);
+ }
+ var line = pos.line + change.text.length - (change.to.line - change.from.line) - 1,
+ ch = pos.ch;
+ if (pos.line == change.to.line) {
+ ch += changeEnd(change).ch - change.to.ch;
+ }
+ return Pos(line, ch);
+ }
+ function computeSelAfterChange(doc, change) {
+ var out = [];
+ for (var i = 0; i < doc.sel.ranges.length; i++) {
+ var range = doc.sel.ranges[i];
+ out.push(new Range(adjustForChange(range.anchor, change), adjustForChange(range.head, change)));
+ }
+ return normalizeSelection(doc.cm, out, doc.sel.primIndex);
+ }
+ function offsetPos(pos, old, nw) {
+ if (pos.line == old.line) {
+ return Pos(nw.line, pos.ch - old.ch + nw.ch);
+ } else {
+ return Pos(nw.line + (pos.line - old.line), pos.ch);
+ }
+ }
+
+ // Used by replaceSelections to allow moving the selection to the
+ // start or around the replaced test. Hint may be "start" or "around".
+ function computeReplacedSel(doc, changes, hint) {
+ var out = [];
+ var oldPrev = Pos(doc.first, 0),
+ newPrev = oldPrev;
+ for (var i = 0; i < changes.length; i++) {
+ var change = changes[i];
+ var from = offsetPos(change.from, oldPrev, newPrev);
+ var to = offsetPos(changeEnd(change), oldPrev, newPrev);
+ oldPrev = change.to;
+ newPrev = to;
+ if (hint == "around") {
+ var range = doc.sel.ranges[i],
+ inv = cmp(range.head, range.anchor) < 0;
+ out[i] = new Range(inv ? to : from, inv ? from : to);
+ } else {
+ out[i] = new Range(from, from);
+ }
+ }
+ return new Selection(out, doc.sel.primIndex);
+ }
+
+ // Used to get the editor into a consistent state again when options change.
+
+ function loadMode(cm) {
+ cm.doc.mode = getMode(cm.options, cm.doc.modeOption);
+ resetModeState(cm);
+ }
+ function resetModeState(cm) {
+ cm.doc.iter(function (line) {
+ if (line.stateAfter) {
+ line.stateAfter = null;
+ }
+ if (line.styles) {
+ line.styles = null;
+ }
+ });
+ cm.doc.modeFrontier = cm.doc.highlightFrontier = cm.doc.first;
+ startWorker(cm, 100);
+ cm.state.modeGen++;
+ if (cm.curOp) {
+ regChange(cm);
+ }
+ }
+
+ // DOCUMENT DATA STRUCTURE
+
+ // By default, updates that start and end at the beginning of a line
+ // are treated specially, in order to make the association of line
+ // widgets and marker elements with the text behave more intuitive.
+ function isWholeLineUpdate(doc, change) {
+ return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" && (!doc.cm || doc.cm.options.wholeLineUpdateBefore);
+ }
+
+ // Perform a change on the document data structure.
+ function updateDoc(doc, change, markedSpans, estimateHeight) {
+ function spansFor(n) {
+ return markedSpans ? markedSpans[n] : null;
+ }
+ function update(line, text, spans) {
+ updateLine(line, text, spans, estimateHeight);
+ signalLater(line, "change", line, change);
+ }
+ function linesFor(start, end) {
+ var result = [];
+ for (var i = start; i < end; ++i) {
+ result.push(new Line(text[i], spansFor(i), estimateHeight));
+ }
+ return result;
+ }
+ var from = change.from,
+ to = change.to,
+ text = change.text;
+ var firstLine = getLine(doc, from.line),
+ lastLine = getLine(doc, to.line);
+ var lastText = lst(text),
+ lastSpans = spansFor(text.length - 1),
+ nlines = to.line - from.line;
+
+ // Adjust the line structure
+ if (change.full) {
+ doc.insert(0, linesFor(0, text.length));
+ doc.remove(text.length, doc.size - text.length);
+ } else if (isWholeLineUpdate(doc, change)) {
+ // This is a whole-line replace. Treated specially to make
+ // sure line objects move the way they are supposed to.
+ var added = linesFor(0, text.length - 1);
+ update(lastLine, lastLine.text, lastSpans);
+ if (nlines) {
+ doc.remove(from.line, nlines);
+ }
+ if (added.length) {
+ doc.insert(from.line, added);
+ }
+ } else if (firstLine == lastLine) {
+ if (text.length == 1) {
+ update(firstLine, firstLine.text.slice(0, from.ch) + lastText + firstLine.text.slice(to.ch), lastSpans);
+ } else {
+ var added$1 = linesFor(1, text.length - 1);
+ added$1.push(new Line(lastText + firstLine.text.slice(to.ch), lastSpans, estimateHeight));
+ update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));
+ doc.insert(from.line + 1, added$1);
+ }
+ } else if (text.length == 1) {
+ update(firstLine, firstLine.text.slice(0, from.ch) + text[0] + lastLine.text.slice(to.ch), spansFor(0));
+ doc.remove(from.line + 1, nlines);
+ } else {
+ update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));
+ update(lastLine, lastText + lastLine.text.slice(to.ch), lastSpans);
+ var added$2 = linesFor(1, text.length - 1);
+ if (nlines > 1) {
+ doc.remove(from.line + 1, nlines - 1);
+ }
+ doc.insert(from.line + 1, added$2);
+ }
+ signalLater(doc, "change", doc, change);
+ }
+
+ // Call f for all linked documents.
+ function linkedDocs(doc, f, sharedHistOnly) {
+ function propagate(doc, skip, sharedHist) {
+ if (doc.linked) {
+ for (var i = 0; i < doc.linked.length; ++i) {
+ var rel = doc.linked[i];
+ if (rel.doc == skip) {
+ continue;
+ }
+ var shared = sharedHist && rel.sharedHist;
+ if (sharedHistOnly && !shared) {
+ continue;
+ }
+ f(rel.doc, shared);
+ propagate(rel.doc, doc, shared);
+ }
+ }
+ }
+ propagate(doc, null, true);
+ }
+
+ // Attach a document to an editor.
+ function attachDoc(cm, doc) {
+ if (doc.cm) {
+ throw new Error("This document is already in use.");
+ }
+ cm.doc = doc;
+ doc.cm = cm;
+ estimateLineHeights(cm);
+ loadMode(cm);
+ setDirectionClass(cm);
+ cm.options.direction = doc.direction;
+ if (!cm.options.lineWrapping) {
+ findMaxLine(cm);
+ }
+ cm.options.mode = doc.modeOption;
+ regChange(cm);
+ }
+ function setDirectionClass(cm) {
+ (cm.doc.direction == "rtl" ? addClass : rmClass)(cm.display.lineDiv, "CodeMirror-rtl");
+ }
+ function directionChanged(cm) {
+ runInOp(cm, function () {
+ setDirectionClass(cm);
+ regChange(cm);
+ });
+ }
+ function History(prev) {
+ // Arrays of change events and selections. Doing something adds an
+ // event to done and clears undo. Undoing moves events from done
+ // to undone, redoing moves them in the other direction.
+ this.done = [];
+ this.undone = [];
+ this.undoDepth = prev ? prev.undoDepth : Infinity;
+ // Used to track when changes can be merged into a single undo
+ // event
+ this.lastModTime = this.lastSelTime = 0;
+ this.lastOp = this.lastSelOp = null;
+ this.lastOrigin = this.lastSelOrigin = null;
+ // Used by the isClean() method
+ this.generation = this.maxGeneration = prev ? prev.maxGeneration : 1;
+ }
+
+ // Create a history change event from an updateDoc-style change
+ // object.
+ function historyChangeFromChange(doc, change) {
+ var histChange = {
+ from: copyPos(change.from),
+ to: changeEnd(change),
+ text: getBetween(doc, change.from, change.to)
+ };
+ attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);
+ linkedDocs(doc, function (doc) {
+ return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);
+ }, true);
+ return histChange;
+ }
+
+ // Pop all selection events off the end of a history array. Stop at
+ // a change event.
+ function clearSelectionEvents(array) {
+ while (array.length) {
+ var last = lst(array);
+ if (last.ranges) {
+ array.pop();
+ } else {
+ break;
+ }
+ }
+ }
+
+ // Find the top change event in the history. Pop off selection
+ // events that are in the way.
+ function lastChangeEvent(hist, force) {
+ if (force) {
+ clearSelectionEvents(hist.done);
+ return lst(hist.done);
+ } else if (hist.done.length && !lst(hist.done).ranges) {
+ return lst(hist.done);
+ } else if (hist.done.length > 1 && !hist.done[hist.done.length - 2].ranges) {
+ hist.done.pop();
+ return lst(hist.done);
+ }
+ }
+
+ // Register a change in the history. Merges changes that are within
+ // a single operation, or are close together with an origin that
+ // allows merging (starting with "+") into a single event.
+ function addChangeToHistory(doc, change, selAfter, opId) {
+ var hist = doc.history;
+ hist.undone.length = 0;
+ var time = +new Date(),
+ cur;
+ var last;
+ if ((hist.lastOp == opId || hist.lastOrigin == change.origin && change.origin && (change.origin.charAt(0) == "+" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500) || change.origin.charAt(0) == "*")) && (cur = lastChangeEvent(hist, hist.lastOp == opId))) {
+ // Merge this change into the last event
+ last = lst(cur.changes);
+ if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {
+ // Optimized case for simple insertion -- don't want to add
+ // new changesets for every character typed
+ last.to = changeEnd(change);
+ } else {
+ // Add new sub-event
+ cur.changes.push(historyChangeFromChange(doc, change));
+ }
+ } else {
+ // Can not be merged, start a new event.
+ var before = lst(hist.done);
+ if (!before || !before.ranges) {
+ pushSelectionToHistory(doc.sel, hist.done);
+ }
+ cur = {
+ changes: [historyChangeFromChange(doc, change)],
+ generation: hist.generation
+ };
+ hist.done.push(cur);
+ while (hist.done.length > hist.undoDepth) {
+ hist.done.shift();
+ if (!hist.done[0].ranges) {
+ hist.done.shift();
+ }
+ }
+ }
+ hist.done.push(selAfter);
+ hist.generation = ++hist.maxGeneration;
+ hist.lastModTime = hist.lastSelTime = time;
+ hist.lastOp = hist.lastSelOp = opId;
+ hist.lastOrigin = hist.lastSelOrigin = change.origin;
+ if (!last) {
+ signal(doc, "historyAdded");
+ }
+ }
+ function selectionEventCanBeMerged(doc, origin, prev, sel) {
+ var ch = origin.charAt(0);
+ return ch == "*" || ch == "+" && prev.ranges.length == sel.ranges.length && prev.somethingSelected() == sel.somethingSelected() && new Date() - doc.history.lastSelTime <= (doc.cm ? doc.cm.options.historyEventDelay : 500);
+ }
+
+ // Called whenever the selection changes, sets the new selection as
+ // the pending selection in the history, and pushes the old pending
+ // selection into the 'done' array when it was significantly
+ // different (in number of selected ranges, emptiness, or time).
+ function addSelectionToHistory(doc, sel, opId, options) {
+ var hist = doc.history,
+ origin = options && options.origin;
+
+ // A new event is started when the previous origin does not match
+ // the current, or the origins don't allow matching. Origins
+ // starting with * are always merged, those starting with + are
+ // merged when similar and close together in time.
+ if (opId == hist.lastSelOp || origin && hist.lastSelOrigin == origin && (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin || selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))) {
+ hist.done[hist.done.length - 1] = sel;
+ } else {
+ pushSelectionToHistory(sel, hist.done);
+ }
+ hist.lastSelTime = +new Date();
+ hist.lastSelOrigin = origin;
+ hist.lastSelOp = opId;
+ if (options && options.clearRedo !== false) {
+ clearSelectionEvents(hist.undone);
+ }
+ }
+ function pushSelectionToHistory(sel, dest) {
+ var top = lst(dest);
+ if (!(top && top.ranges && top.equals(sel))) {
+ dest.push(sel);
+ }
+ }
+
+ // Used to store marked span information in the history.
+ function attachLocalSpans(doc, change, from, to) {
+ var existing = change["spans_" + doc.id],
+ n = 0;
+ doc.iter(Math.max(doc.first, from), Math.min(doc.first + doc.size, to), function (line) {
+ if (line.markedSpans) {
+ (existing || (existing = change["spans_" + doc.id] = {}))[n] = line.markedSpans;
+ }
+ ++n;
+ });
+ }
+
+ // When un/re-doing restores text containing marked spans, those
+ // that have been explicitly cleared should not be restored.
+ function removeClearedSpans(spans) {
+ if (!spans) {
+ return null;
+ }
+ var out;
+ for (var i = 0; i < spans.length; ++i) {
+ if (spans[i].marker.explicitlyCleared) {
+ if (!out) {
+ out = spans.slice(0, i);
+ }
+ } else if (out) {
+ out.push(spans[i]);
+ }
+ }
+ return !out ? spans : out.length ? out : null;
+ }
+
+ // Retrieve and filter the old marked spans stored in a change event.
+ function getOldSpans(doc, change) {
+ var found = change["spans_" + doc.id];
+ if (!found) {
+ return null;
+ }
+ var nw = [];
+ for (var i = 0; i < change.text.length; ++i) {
+ nw.push(removeClearedSpans(found[i]));
+ }
+ return nw;
+ }
+
+ // Used for un/re-doing changes from the history. Combines the
+ // result of computing the existing spans with the set of spans that
+ // existed in the history (so that deleting around a span and then
+ // undoing brings back the span).
+ function mergeOldSpans(doc, change) {
+ var old = getOldSpans(doc, change);
+ var stretched = stretchSpansOverChange(doc, change);
+ if (!old) {
+ return stretched;
+ }
+ if (!stretched) {
+ return old;
+ }
+ for (var i = 0; i < old.length; ++i) {
+ var oldCur = old[i],
+ stretchCur = stretched[i];
+ if (oldCur && stretchCur) {
+ spans: for (var j = 0; j < stretchCur.length; ++j) {
+ var span = stretchCur[j];
+ for (var k = 0; k < oldCur.length; ++k) {
+ if (oldCur[k].marker == span.marker) {
+ continue spans;
+ }
+ }
+ oldCur.push(span);
+ }
+ } else if (stretchCur) {
+ old[i] = stretchCur;
+ }
+ }
+ return old;
+ }
+
+ // Used both to provide a JSON-safe object in .getHistory, and, when
+ // detaching a document, to split the history in two
+ function copyHistoryArray(events, newGroup, instantiateSel) {
+ var copy = [];
+ for (var i = 0; i < events.length; ++i) {
+ var event = events[i];
+ if (event.ranges) {
+ copy.push(instantiateSel ? Selection.prototype.deepCopy.call(event) : event);
+ continue;
+ }
+ var changes = event.changes,
+ newChanges = [];
+ copy.push({
+ changes: newChanges
+ });
+ for (var j = 0; j < changes.length; ++j) {
+ var change = changes[j],
+ m = void 0;
+ newChanges.push({
+ from: change.from,
+ to: change.to,
+ text: change.text
+ });
+ if (newGroup) {
+ for (var prop in change) {
+ if (m = prop.match(/^spans_(\d+)$/)) {
+ if (indexOf(newGroup, Number(m[1])) > -1) {
+ lst(newChanges)[prop] = change[prop];
+ delete change[prop];
+ }
+ }
+ }
+ }
+ }
+ }
+ return copy;
+ }
+
+ // The 'scroll' parameter given to many of these indicated whether
+ // the new cursor position should be scrolled into view after
+ // modifying the selection.
+
+ // If shift is held or the extend flag is set, extends a range to
+ // include a given position (and optionally a second position).
+ // Otherwise, simply returns the range between the given positions.
+ // Used for cursor motion and such.
+ function extendRange(range, head, other, extend) {
+ if (extend) {
+ var anchor = range.anchor;
+ if (other) {
+ var posBefore = cmp(head, anchor) < 0;
+ if (posBefore != cmp(other, anchor) < 0) {
+ anchor = head;
+ head = other;
+ } else if (posBefore != cmp(head, other) < 0) {
+ head = other;
+ }
+ }
+ return new Range(anchor, head);
+ } else {
+ return new Range(other || head, head);
+ }
+ }
+
+ // Extend the primary selection range, discard the rest.
+ function extendSelection(doc, head, other, options, extend) {
+ if (extend == null) {
+ extend = doc.cm && (doc.cm.display.shift || doc.extend);
+ }
+ setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options);
+ }
+
+ // Extend all selections (pos is an array of selections with length
+ // equal the number of selections)
+ function extendSelections(doc, heads, options) {
+ var out = [];
+ var extend = doc.cm && (doc.cm.display.shift || doc.extend);
+ for (var i = 0; i < doc.sel.ranges.length; i++) {
+ out[i] = extendRange(doc.sel.ranges[i], heads[i], null, extend);
+ }
+ var newSel = normalizeSelection(doc.cm, out, doc.sel.primIndex);
+ setSelection(doc, newSel, options);
+ }
+
+ // Updates a single range in the selection.
+ function replaceOneSelection(doc, i, range, options) {
+ var ranges = doc.sel.ranges.slice(0);
+ ranges[i] = range;
+ setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);
+ }
+
+ // Reset the selection to a single range.
+ function setSimpleSelection(doc, anchor, head, options) {
+ setSelection(doc, simpleSelection(anchor, head), options);
+ }
+
+ // Give beforeSelectionChange handlers a change to influence a
+ // selection update.
+ function filterSelectionChange(doc, sel, options) {
+ var obj = {
+ ranges: sel.ranges,
+ update: function (ranges) {
+ this.ranges = [];
+ for (var i = 0; i < ranges.length; i++) {
+ this.ranges[i] = new Range(clipPos(doc, ranges[i].anchor), clipPos(doc, ranges[i].head));
+ }
+ },
+ origin: options && options.origin
+ };
+ signal(doc, "beforeSelectionChange", doc, obj);
+ if (doc.cm) {
+ signal(doc.cm, "beforeSelectionChange", doc.cm, obj);
+ }
+ if (obj.ranges != sel.ranges) {
+ return normalizeSelection(doc.cm, obj.ranges, obj.ranges.length - 1);
+ } else {
+ return sel;
+ }
+ }
+ function setSelectionReplaceHistory(doc, sel, options) {
+ var done = doc.history.done,
+ last = lst(done);
+ if (last && last.ranges) {
+ done[done.length - 1] = sel;
+ setSelectionNoUndo(doc, sel, options);
+ } else {
+ setSelection(doc, sel, options);
+ }
+ }
+
+ // Set a new selection.
+ function setSelection(doc, sel, options) {
+ setSelectionNoUndo(doc, sel, options);
+ addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options);
+ }
+ function setSelectionNoUndo(doc, sel, options) {
+ if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange")) {
+ sel = filterSelectionChange(doc, sel, options);
+ }
+ var bias = options && options.bias || (cmp(sel.primary().head, doc.sel.primary().head) < 0 ? -1 : 1);
+ setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, true));
+ if (!(options && options.scroll === false) && doc.cm && doc.cm.getOption("readOnly") != "nocursor") {
+ ensureCursorVisible(doc.cm);
+ }
+ }
+ function setSelectionInner(doc, sel) {
+ if (sel.equals(doc.sel)) {
+ return;
+ }
+ doc.sel = sel;
+ if (doc.cm) {
+ doc.cm.curOp.updateInput = 1;
+ doc.cm.curOp.selectionChanged = true;
+ signalCursorActivity(doc.cm);
+ }
+ signalLater(doc, "cursorActivity", doc);
+ }
+
+ // Verify that the selection does not partially select any atomic
+ // marked ranges.
+ function reCheckSelection(doc) {
+ setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));
+ }
+
+ // Return a selection that does not partially select any atomic
+ // ranges.
+ function skipAtomicInSelection(doc, sel, bias, mayClear) {
+ var out;
+ for (var i = 0; i < sel.ranges.length; i++) {
+ var range = sel.ranges[i];
+ var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];
+ var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);
+ var newHead = skipAtomic(doc, range.head, old && old.head, bias, mayClear);
+ if (out || newAnchor != range.anchor || newHead != range.head) {
+ if (!out) {
+ out = sel.ranges.slice(0, i);
+ }
+ out[i] = new Range(newAnchor, newHead);
+ }
+ }
+ return out ? normalizeSelection(doc.cm, out, sel.primIndex) : sel;
+ }
+ function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {
+ var line = getLine(doc, pos.line);
+ if (line.markedSpans) {
+ for (var i = 0; i < line.markedSpans.length; ++i) {
+ var sp = line.markedSpans[i],
+ m = sp.marker;
+
+ // Determine if we should prevent the cursor being placed to the left/right of an atomic marker
+ // Historically this was determined using the inclusiveLeft/Right option, but the new way to control it
+ // is with selectLeft/Right
+ var preventCursorLeft = "selectLeft" in m ? !m.selectLeft : m.inclusiveLeft;
+ var preventCursorRight = "selectRight" in m ? !m.selectRight : m.inclusiveRight;
+ if ((sp.from == null || (preventCursorLeft ? sp.from <= pos.ch : sp.from < pos.ch)) && (sp.to == null || (preventCursorRight ? sp.to >= pos.ch : sp.to > pos.ch))) {
+ if (mayClear) {
+ signal(m, "beforeCursorEnter");
+ if (m.explicitlyCleared) {
+ if (!line.markedSpans) {
+ break;
+ } else {
+ --i;
+ continue;
+ }
+ }
+ }
+ if (!m.atomic) {
+ continue;
+ }
+ if (oldPos) {
+ var near = m.find(dir < 0 ? 1 : -1),
+ diff = void 0;
+ if (dir < 0 ? preventCursorRight : preventCursorLeft) {
+ near = movePos(doc, near, -dir, near && near.line == pos.line ? line : null);
+ }
+ if (near && near.line == pos.line && (diff = cmp(near, oldPos)) && (dir < 0 ? diff < 0 : diff > 0)) {
+ return skipAtomicInner(doc, near, pos, dir, mayClear);
+ }
+ }
+ var far = m.find(dir < 0 ? -1 : 1);
+ if (dir < 0 ? preventCursorLeft : preventCursorRight) {
+ far = movePos(doc, far, dir, far.line == pos.line ? line : null);
+ }
+ return far ? skipAtomicInner(doc, far, pos, dir, mayClear) : null;
+ }
+ }
+ }
+ return pos;
+ }
+
+ // Ensure a given position is not inside an atomic range.
+ function skipAtomic(doc, pos, oldPos, bias, mayClear) {
+ var dir = bias || 1;
+ var found = skipAtomicInner(doc, pos, oldPos, dir, mayClear) || !mayClear && skipAtomicInner(doc, pos, oldPos, dir, true) || skipAtomicInner(doc, pos, oldPos, -dir, mayClear) || !mayClear && skipAtomicInner(doc, pos, oldPos, -dir, true);
+ if (!found) {
+ doc.cantEdit = true;
+ return Pos(doc.first, 0);
+ }
+ return found;
+ }
+ function movePos(doc, pos, dir, line) {
+ if (dir < 0 && pos.ch == 0) {
+ if (pos.line > doc.first) {
+ return clipPos(doc, Pos(pos.line - 1));
+ } else {
+ return null;
+ }
+ } else if (dir > 0 && pos.ch == (line || getLine(doc, pos.line)).text.length) {
+ if (pos.line < doc.first + doc.size - 1) {
+ return Pos(pos.line + 1, 0);
+ } else {
+ return null;
+ }
+ } else {
+ return new Pos(pos.line, pos.ch + dir);
+ }
+ }
+ function selectAll(cm) {
+ cm.setSelection(Pos(cm.firstLine(), 0), Pos(cm.lastLine()), sel_dontScroll);
+ }
+
+ // UPDATING
+
+ // Allow "beforeChange" event handlers to influence a change
+ function filterChange(doc, change, update) {
+ var obj = {
+ canceled: false,
+ from: change.from,
+ to: change.to,
+ text: change.text,
+ origin: change.origin,
+ cancel: function () {
+ return obj.canceled = true;
+ }
+ };
+ if (update) {
+ obj.update = function (from, to, text, origin) {
+ if (from) {
+ obj.from = clipPos(doc, from);
+ }
+ if (to) {
+ obj.to = clipPos(doc, to);
+ }
+ if (text) {
+ obj.text = text;
+ }
+ if (origin !== undefined) {
+ obj.origin = origin;
+ }
+ };
+ }
+ signal(doc, "beforeChange", doc, obj);
+ if (doc.cm) {
+ signal(doc.cm, "beforeChange", doc.cm, obj);
+ }
+ if (obj.canceled) {
+ if (doc.cm) {
+ doc.cm.curOp.updateInput = 2;
+ }
+ return null;
+ }
+ return {
+ from: obj.from,
+ to: obj.to,
+ text: obj.text,
+ origin: obj.origin
+ };
+ }
+
+ // Apply a change to a document, and add it to the document's
+ // history, and propagating it to all linked documents.
+ function makeChange(doc, change, ignoreReadOnly) {
+ if (doc.cm) {
+ if (!doc.cm.curOp) {
+ return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly);
+ }
+ if (doc.cm.state.suppressEdits) {
+ return;
+ }
+ }
+ if (hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange")) {
+ change = filterChange(doc, change, true);
+ if (!change) {
+ return;
+ }
+ }
+
+ // Possibly split or suppress the update based on the presence
+ // of read-only spans in its range.
+ var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);
+ if (split) {
+ for (var i = split.length - 1; i >= 0; --i) {
+ makeChangeInner(doc, {
+ from: split[i].from,
+ to: split[i].to,
+ text: i ? [""] : change.text,
+ origin: change.origin
+ });
+ }
+ } else {
+ makeChangeInner(doc, change);
+ }
+ }
+ function makeChangeInner(doc, change) {
+ if (change.text.length == 1 && change.text[0] == "" && cmp(change.from, change.to) == 0) {
+ return;
+ }
+ var selAfter = computeSelAfterChange(doc, change);
+ addChangeToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN);
+ makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change));
+ var rebased = [];
+ linkedDocs(doc, function (doc, sharedHist) {
+ if (!sharedHist && indexOf(rebased, doc.history) == -1) {
+ rebaseHist(doc.history, change);
+ rebased.push(doc.history);
+ }
+ makeChangeSingleDoc(doc, change, null, stretchSpansOverChange(doc, change));
+ });
+ }
+
+ // Revert a change stored in a document's history.
+ function makeChangeFromHistory(doc, type, allowSelectionOnly) {
+ var suppress = doc.cm && doc.cm.state.suppressEdits;
+ if (suppress && !allowSelectionOnly) {
+ return;
+ }
+ var hist = doc.history,
+ event,
+ selAfter = doc.sel;
+ var source = type == "undo" ? hist.done : hist.undone,
+ dest = type == "undo" ? hist.undone : hist.done;
+
+ // Verify that there is a useable event (so that ctrl-z won't
+ // needlessly clear selection events)
+ var i = 0;
+ for (; i < source.length; i++) {
+ event = source[i];
+ if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges) {
+ break;
+ }
+ }
+ if (i == source.length) {
+ return;
+ }
+ hist.lastOrigin = hist.lastSelOrigin = null;
+ for (;;) {
+ event = source.pop();
+ if (event.ranges) {
+ pushSelectionToHistory(event, dest);
+ if (allowSelectionOnly && !event.equals(doc.sel)) {
+ setSelection(doc, event, {
+ clearRedo: false
+ });
+ return;
+ }
+ selAfter = event;
+ } else if (suppress) {
+ source.push(event);
+ return;
+ } else {
+ break;
+ }
+ }
+
+ // Build up a reverse change object to add to the opposite history
+ // stack (redo when undoing, and vice versa).
+ var antiChanges = [];
+ pushSelectionToHistory(selAfter, dest);
+ dest.push({
+ changes: antiChanges,
+ generation: hist.generation
+ });
+ hist.generation = event.generation || ++hist.maxGeneration;
+ var filter = hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange");
+ var loop = function (i) {
+ var change = event.changes[i];
+ change.origin = type;
+ if (filter && !filterChange(doc, change, false)) {
+ source.length = 0;
+ return {};
+ }
+ antiChanges.push(historyChangeFromChange(doc, change));
+ var after = i ? computeSelAfterChange(doc, change) : lst(source);
+ makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));
+ if (!i && doc.cm) {
+ doc.cm.scrollIntoView({
+ from: change.from,
+ to: changeEnd(change)
+ });
+ }
+ var rebased = [];
+
+ // Propagate to the linked documents
+ linkedDocs(doc, function (doc, sharedHist) {
+ if (!sharedHist && indexOf(rebased, doc.history) == -1) {
+ rebaseHist(doc.history, change);
+ rebased.push(doc.history);
+ }
+ makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));
+ });
+ };
+ for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {
+ var returned = loop(i$1);
+ if (returned) return returned.v;
+ }
+ }
+
+ // Sub-views need their line numbers shifted when text is added
+ // above or below them in the parent document.
+ function shiftDoc(doc, distance) {
+ if (distance == 0) {
+ return;
+ }
+ doc.first += distance;
+ doc.sel = new Selection(map(doc.sel.ranges, function (range) {
+ return new Range(Pos(range.anchor.line + distance, range.anchor.ch), Pos(range.head.line + distance, range.head.ch));
+ }), doc.sel.primIndex);
+ if (doc.cm) {
+ regChange(doc.cm, doc.first, doc.first - distance, distance);
+ for (var d = doc.cm.display, l = d.viewFrom; l < d.viewTo; l++) {
+ regLineChange(doc.cm, l, "gutter");
+ }
+ }
+ }
+
+ // More lower-level change function, handling only a single document
+ // (not linked ones).
+ function makeChangeSingleDoc(doc, change, selAfter, spans) {
+ if (doc.cm && !doc.cm.curOp) {
+ return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);
+ }
+ if (change.to.line < doc.first) {
+ shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));
+ return;
+ }
+ if (change.from.line > doc.lastLine()) {
+ return;
+ }
+
+ // Clip the change to the size of this doc
+ if (change.from.line < doc.first) {
+ var shift = change.text.length - 1 - (doc.first - change.from.line);
+ shiftDoc(doc, shift);
+ change = {
+ from: Pos(doc.first, 0),
+ to: Pos(change.to.line + shift, change.to.ch),
+ text: [lst(change.text)],
+ origin: change.origin
+ };
+ }
+ var last = doc.lastLine();
+ if (change.to.line > last) {
+ change = {
+ from: change.from,
+ to: Pos(last, getLine(doc, last).text.length),
+ text: [change.text[0]],
+ origin: change.origin
+ };
+ }
+ change.removed = getBetween(doc, change.from, change.to);
+ if (!selAfter) {
+ selAfter = computeSelAfterChange(doc, change);
+ }
+ if (doc.cm) {
+ makeChangeSingleDocInEditor(doc.cm, change, spans);
+ } else {
+ updateDoc(doc, change, spans);
+ }
+ setSelectionNoUndo(doc, selAfter, sel_dontScroll);
+ if (doc.cantEdit && skipAtomic(doc, Pos(doc.firstLine(), 0))) {
+ doc.cantEdit = false;
+ }
+ }
+
+ // Handle the interaction of a change to a document with the editor
+ // that this document is part of.
+ function makeChangeSingleDocInEditor(cm, change, spans) {
+ var doc = cm.doc,
+ display = cm.display,
+ from = change.from,
+ to = change.to;
+ var recomputeMaxLength = false,
+ checkWidthStart = from.line;
+ if (!cm.options.lineWrapping) {
+ checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));
+ doc.iter(checkWidthStart, to.line + 1, function (line) {
+ if (line == display.maxLine) {
+ recomputeMaxLength = true;
+ return true;
+ }
+ });
+ }
+ if (doc.sel.contains(change.from, change.to) > -1) {
+ signalCursorActivity(cm);
+ }
+ updateDoc(doc, change, spans, estimateHeight(cm));
+ if (!cm.options.lineWrapping) {
+ doc.iter(checkWidthStart, from.line + change.text.length, function (line) {
+ var len = lineLength(line);
+ if (len > display.maxLineLength) {
+ display.maxLine = line;
+ display.maxLineLength = len;
+ display.maxLineChanged = true;
+ recomputeMaxLength = false;
+ }
+ });
+ if (recomputeMaxLength) {
+ cm.curOp.updateMaxLine = true;
+ }
+ }
+ retreatFrontier(doc, from.line);
+ startWorker(cm, 400);
+ var lendiff = change.text.length - (to.line - from.line) - 1;
+ // Remember that these lines changed, for updating the display
+ if (change.full) {
+ regChange(cm);
+ } else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change)) {
+ regLineChange(cm, from.line, "text");
+ } else {
+ regChange(cm, from.line, to.line + 1, lendiff);
+ }
+ var changesHandler = hasHandler(cm, "changes"),
+ changeHandler = hasHandler(cm, "change");
+ if (changeHandler || changesHandler) {
+ var obj = {
+ from: from,
+ to: to,
+ text: change.text,
+ removed: change.removed,
+ origin: change.origin
+ };
+ if (changeHandler) {
+ signalLater(cm, "change", cm, obj);
+ }
+ if (changesHandler) {
+ (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);
+ }
+ }
+ cm.display.selForContextMenu = null;
+ }
+ function replaceRange(doc, code, from, to, origin) {
+ var assign;
+ if (!to) {
+ to = from;
+ }
+ if (cmp(to, from) < 0) {
+ assign = [to, from], from = assign[0], to = assign[1];
+ }
+ if (typeof code == "string") {
+ code = doc.splitLines(code);
+ }
+ makeChange(doc, {
+ from: from,
+ to: to,
+ text: code,
+ origin: origin
+ });
+ }
+
+ // Rebasing/resetting history to deal with externally-sourced changes
+
+ function rebaseHistSelSingle(pos, from, to, diff) {
+ if (to < pos.line) {
+ pos.line += diff;
+ } else if (from < pos.line) {
+ pos.line = from;
+ pos.ch = 0;
+ }
+ }
+
+ // Tries to rebase an array of history events given a change in the
+ // document. If the change touches the same lines as the event, the
+ // event, and everything 'behind' it, is discarded. If the change is
+ // before the event, the event's positions are updated. Uses a
+ // copy-on-write scheme for the positions, to avoid having to
+ // reallocate them all on every rebase, but also avoid problems with
+ // shared position objects being unsafely updated.
+ function rebaseHistArray(array, from, to, diff) {
+ for (var i = 0; i < array.length; ++i) {
+ var sub = array[i],
+ ok = true;
+ if (sub.ranges) {
+ if (!sub.copied) {
+ sub = array[i] = sub.deepCopy();
+ sub.copied = true;
+ }
+ for (var j = 0; j < sub.ranges.length; j++) {
+ rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);
+ rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);
+ }
+ continue;
+ }
+ for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {
+ var cur = sub.changes[j$1];
+ if (to < cur.from.line) {
+ cur.from = Pos(cur.from.line + diff, cur.from.ch);
+ cur.to = Pos(cur.to.line + diff, cur.to.ch);
+ } else if (from <= cur.to.line) {
+ ok = false;
+ break;
+ }
+ }
+ if (!ok) {
+ array.splice(0, i + 1);
+ i = 0;
+ }
+ }
+ }
+ function rebaseHist(hist, change) {
+ var from = change.from.line,
+ to = change.to.line,
+ diff = change.text.length - (to - from) - 1;
+ rebaseHistArray(hist.done, from, to, diff);
+ rebaseHistArray(hist.undone, from, to, diff);
+ }
+
+ // Utility for applying a change to a line by handle or number,
+ // returning the number and optionally registering the line as
+ // changed.
+ function changeLine(doc, handle, changeType, op) {
+ var no = handle,
+ line = handle;
+ if (typeof handle == "number") {
+ line = getLine(doc, clipLine(doc, handle));
+ } else {
+ no = lineNo(handle);
+ }
+ if (no == null) {
+ return null;
+ }
+ if (op(line, no) && doc.cm) {
+ regLineChange(doc.cm, no, changeType);
+ }
+ return line;
+ }
+
+ // The document is represented as a BTree consisting of leaves, with
+ // chunk of lines in them, and branches, with up to ten leaves or
+ // other branch nodes below them. The top node is always a branch
+ // node, and is the document object itself (meaning it has
+ // additional methods and properties).
+ //
+ // All nodes have parent links. The tree is used both to go from
+ // line numbers to line objects, and to go from objects to numbers.
+ // It also indexes by height, and is used to convert between height
+ // and line object, and to find the total height of the document.
+ //
+ // See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html
+
+ function LeafChunk(lines) {
+ this.lines = lines;
+ this.parent = null;
+ var height = 0;
+ for (var i = 0; i < lines.length; ++i) {
+ lines[i].parent = this;
+ height += lines[i].height;
+ }
+ this.height = height;
+ }
+ LeafChunk.prototype = {
+ chunkSize: function () {
+ return this.lines.length;
+ },
+ // Remove the n lines at offset 'at'.
+ removeInner: function (at, n) {
+ for (var i = at, e = at + n; i < e; ++i) {
+ var line = this.lines[i];
+ this.height -= line.height;
+ cleanUpLine(line);
+ signalLater(line, "delete");
+ }
+ this.lines.splice(at, n);
+ },
+ // Helper used to collapse a small branch into a single leaf.
+ collapse: function (lines) {
+ lines.push.apply(lines, this.lines);
+ },
+ // Insert the given array of lines at offset 'at', count them as
+ // having the given height.
+ insertInner: function (at, lines, height) {
+ this.height += height;
+ this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));
+ for (var i = 0; i < lines.length; ++i) {
+ lines[i].parent = this;
+ }
+ },
+ // Used to iterate over a part of the tree.
+ iterN: function (at, n, op) {
+ for (var e = at + n; at < e; ++at) {
+ if (op(this.lines[at])) {
+ return true;
+ }
+ }
+ }
+ };
+ function BranchChunk(children) {
+ this.children = children;
+ var size = 0,
+ height = 0;
+ for (var i = 0; i < children.length; ++i) {
+ var ch = children[i];
+ size += ch.chunkSize();
+ height += ch.height;
+ ch.parent = this;
+ }
+ this.size = size;
+ this.height = height;
+ this.parent = null;
+ }
+ BranchChunk.prototype = {
+ chunkSize: function () {
+ return this.size;
+ },
+ removeInner: function (at, n) {
+ this.size -= n;
+ for (var i = 0; i < this.children.length; ++i) {
+ var child = this.children[i],
+ sz = child.chunkSize();
+ if (at < sz) {
+ var rm = Math.min(n, sz - at),
+ oldHeight = child.height;
+ child.removeInner(at, rm);
+ this.height -= oldHeight - child.height;
+ if (sz == rm) {
+ this.children.splice(i--, 1);
+ child.parent = null;
+ }
+ if ((n -= rm) == 0) {
+ break;
+ }
+ at = 0;
+ } else {
+ at -= sz;
+ }
+ }
+ // If the result is smaller than 25 lines, ensure that it is a
+ // single leaf node.
+ if (this.size - n < 25 && (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))) {
+ var lines = [];
+ this.collapse(lines);
+ this.children = [new LeafChunk(lines)];
+ this.children[0].parent = this;
+ }
+ },
+ collapse: function (lines) {
+ for (var i = 0; i < this.children.length; ++i) {
+ this.children[i].collapse(lines);
+ }
+ },
+ insertInner: function (at, lines, height) {
+ this.size += lines.length;
+ this.height += height;
+ for (var i = 0; i < this.children.length; ++i) {
+ var child = this.children[i],
+ sz = child.chunkSize();
+ if (at <= sz) {
+ child.insertInner(at, lines, height);
+ if (child.lines && child.lines.length > 50) {
+ // To avoid memory thrashing when child.lines is huge (e.g. first view of a large file), it's never spliced.
+ // Instead, small slices are taken. They're taken in order because sequential memory accesses are fastest.
+ var remaining = child.lines.length % 25 + 25;
+ for (var pos = remaining; pos < child.lines.length;) {
+ var leaf = new LeafChunk(child.lines.slice(pos, pos += 25));
+ child.height -= leaf.height;
+ this.children.splice(++i, 0, leaf);
+ leaf.parent = this;
+ }
+ child.lines = child.lines.slice(0, remaining);
+ this.maybeSpill();
+ }
+ break;
+ }
+ at -= sz;
+ }
+ },
+ // When a node has grown, check whether it should be split.
+ maybeSpill: function () {
+ if (this.children.length <= 10) {
+ return;
+ }
+ var me = this;
+ do {
+ var spilled = me.children.splice(me.children.length - 5, 5);
+ var sibling = new BranchChunk(spilled);
+ if (!me.parent) {
+ // Become the parent node
+ var copy = new BranchChunk(me.children);
+ copy.parent = me;
+ me.children = [copy, sibling];
+ me = copy;
+ } else {
+ me.size -= sibling.size;
+ me.height -= sibling.height;
+ var myIndex = indexOf(me.parent.children, me);
+ me.parent.children.splice(myIndex + 1, 0, sibling);
+ }
+ sibling.parent = me.parent;
+ } while (me.children.length > 10);
+ me.parent.maybeSpill();
+ },
+ iterN: function (at, n, op) {
+ for (var i = 0; i < this.children.length; ++i) {
+ var child = this.children[i],
+ sz = child.chunkSize();
+ if (at < sz) {
+ var used = Math.min(n, sz - at);
+ if (child.iterN(at, used, op)) {
+ return true;
+ }
+ if ((n -= used) == 0) {
+ break;
+ }
+ at = 0;
+ } else {
+ at -= sz;
+ }
+ }
+ }
+ };
+
+ // Line widgets are block elements displayed above or below a line.
+
+ var LineWidget = function (doc, node, options) {
+ if (options) {
+ for (var opt in options) {
+ if (options.hasOwnProperty(opt)) {
+ this[opt] = options[opt];
+ }
+ }
+ }
+ this.doc = doc;
+ this.node = node;
+ };
+ LineWidget.prototype.clear = function () {
+ var cm = this.doc.cm,
+ ws = this.line.widgets,
+ line = this.line,
+ no = lineNo(line);
+ if (no == null || !ws) {
+ return;
+ }
+ for (var i = 0; i < ws.length; ++i) {
+ if (ws[i] == this) {
+ ws.splice(i--, 1);
+ }
+ }
+ if (!ws.length) {
+ line.widgets = null;
+ }
+ var height = widgetHeight(this);
+ updateLineHeight(line, Math.max(0, line.height - height));
+ if (cm) {
+ runInOp(cm, function () {
+ adjustScrollWhenAboveVisible(cm, line, -height);
+ regLineChange(cm, no, "widget");
+ });
+ signalLater(cm, "lineWidgetCleared", cm, this, no);
+ }
+ };
+ LineWidget.prototype.changed = function () {
+ var this$1 = this;
+ var oldH = this.height,
+ cm = this.doc.cm,
+ line = this.line;
+ this.height = null;
+ var diff = widgetHeight(this) - oldH;
+ if (!diff) {
+ return;
+ }
+ if (!lineIsHidden(this.doc, line)) {
+ updateLineHeight(line, line.height + diff);
+ }
+ if (cm) {
+ runInOp(cm, function () {
+ cm.curOp.forceUpdate = true;
+ adjustScrollWhenAboveVisible(cm, line, diff);
+ signalLater(cm, "lineWidgetChanged", cm, this$1, lineNo(line));
+ });
+ }
+ };
+ eventMixin(LineWidget);
+ function adjustScrollWhenAboveVisible(cm, line, diff) {
+ if (heightAtLine(line) < (cm.curOp && cm.curOp.scrollTop || cm.doc.scrollTop)) {
+ addToScrollTop(cm, diff);
+ }
+ }
+ function addLineWidget(doc, handle, node, options) {
+ var widget = new LineWidget(doc, node, options);
+ var cm = doc.cm;
+ if (cm && widget.noHScroll) {
+ cm.display.alignWidgets = true;
+ }
+ changeLine(doc, handle, "widget", function (line) {
+ var widgets = line.widgets || (line.widgets = []);
+ if (widget.insertAt == null) {
+ widgets.push(widget);
+ } else {
+ widgets.splice(Math.min(widgets.length, Math.max(0, widget.insertAt)), 0, widget);
+ }
+ widget.line = line;
+ if (cm && !lineIsHidden(doc, line)) {
+ var aboveVisible = heightAtLine(line) < doc.scrollTop;
+ updateLineHeight(line, line.height + widgetHeight(widget));
+ if (aboveVisible) {
+ addToScrollTop(cm, widget.height);
+ }
+ cm.curOp.forceUpdate = true;
+ }
+ return true;
+ });
+ if (cm) {
+ signalLater(cm, "lineWidgetAdded", cm, widget, typeof handle == "number" ? handle : lineNo(handle));
+ }
+ return widget;
+ }
+
+ // TEXTMARKERS
+
+ // Created with markText and setBookmark methods. A TextMarker is a
+ // handle that can be used to clear or find a marked position in the
+ // document. Line objects hold arrays (markedSpans) containing
+ // {from, to, marker} object pointing to such marker objects, and
+ // indicating that such a marker is present on that line. Multiple
+ // lines may point to the same marker when it spans across lines.
+ // The spans will have null for their from/to properties when the
+ // marker continues beyond the start/end of the line. Markers have
+ // links back to the lines they currently touch.
+
+ // Collapsed markers have unique ids, in order to be able to order
+ // them, which is needed for uniquely determining an outer marker
+ // when they overlap (they may nest, but not partially overlap).
+ var nextMarkerId = 0;
+ var TextMarker = function (doc, type) {
+ this.lines = [];
+ this.type = type;
+ this.doc = doc;
+ this.id = ++nextMarkerId;
+ };
+
+ // Clear the marker.
+ TextMarker.prototype.clear = function () {
+ if (this.explicitlyCleared) {
+ return;
+ }
+ var cm = this.doc.cm,
+ withOp = cm && !cm.curOp;
+ if (withOp) {
+ startOperation(cm);
+ }
+ if (hasHandler(this, "clear")) {
+ var found = this.find();
+ if (found) {
+ signalLater(this, "clear", found.from, found.to);
+ }
+ }
+ var min = null,
+ max = null;
+ for (var i = 0; i < this.lines.length; ++i) {
+ var line = this.lines[i];
+ var span = getMarkedSpanFor(line.markedSpans, this);
+ if (cm && !this.collapsed) {
+ regLineChange(cm, lineNo(line), "text");
+ } else if (cm) {
+ if (span.to != null) {
+ max = lineNo(line);
+ }
+ if (span.from != null) {
+ min = lineNo(line);
+ }
+ }
+ line.markedSpans = removeMarkedSpan(line.markedSpans, span);
+ if (span.from == null && this.collapsed && !lineIsHidden(this.doc, line) && cm) {
+ updateLineHeight(line, textHeight(cm.display));
+ }
+ }
+ if (cm && this.collapsed && !cm.options.lineWrapping) {
+ for (var i$1 = 0; i$1 < this.lines.length; ++i$1) {
+ var visual = visualLine(this.lines[i$1]),
+ len = lineLength(visual);
+ if (len > cm.display.maxLineLength) {
+ cm.display.maxLine = visual;
+ cm.display.maxLineLength = len;
+ cm.display.maxLineChanged = true;
+ }
+ }
+ }
+ if (min != null && cm && this.collapsed) {
+ regChange(cm, min, max + 1);
+ }
+ this.lines.length = 0;
+ this.explicitlyCleared = true;
+ if (this.atomic && this.doc.cantEdit) {
+ this.doc.cantEdit = false;
+ if (cm) {
+ reCheckSelection(cm.doc);
+ }
+ }
+ if (cm) {
+ signalLater(cm, "markerCleared", cm, this, min, max);
+ }
+ if (withOp) {
+ endOperation(cm);
+ }
+ if (this.parent) {
+ this.parent.clear();
+ }
+ };
+
+ // Find the position of the marker in the document. Returns a {from,
+ // to} object by default. Side can be passed to get a specific side
+ // -- 0 (both), -1 (left), or 1 (right). When lineObj is true, the
+ // Pos objects returned contain a line object, rather than a line
+ // number (used to prevent looking up the same line twice).
+ TextMarker.prototype.find = function (side, lineObj) {
+ if (side == null && this.type == "bookmark") {
+ side = 1;
+ }
+ var from, to;
+ for (var i = 0; i < this.lines.length; ++i) {
+ var line = this.lines[i];
+ var span = getMarkedSpanFor(line.markedSpans, this);
+ if (span.from != null) {
+ from = Pos(lineObj ? line : lineNo(line), span.from);
+ if (side == -1) {
+ return from;
+ }
+ }
+ if (span.to != null) {
+ to = Pos(lineObj ? line : lineNo(line), span.to);
+ if (side == 1) {
+ return to;
+ }
+ }
+ }
+ return from && {
+ from: from,
+ to: to
+ };
+ };
+
+ // Signals that the marker's widget changed, and surrounding layout
+ // should be recomputed.
+ TextMarker.prototype.changed = function () {
+ var this$1 = this;
+ var pos = this.find(-1, true),
+ widget = this,
+ cm = this.doc.cm;
+ if (!pos || !cm) {
+ return;
+ }
+ runInOp(cm, function () {
+ var line = pos.line,
+ lineN = lineNo(pos.line);
+ var view = findViewForLine(cm, lineN);
+ if (view) {
+ clearLineMeasurementCacheFor(view);
+ cm.curOp.selectionChanged = cm.curOp.forceUpdate = true;
+ }
+ cm.curOp.updateMaxLine = true;
+ if (!lineIsHidden(widget.doc, line) && widget.height != null) {
+ var oldHeight = widget.height;
+ widget.height = null;
+ var dHeight = widgetHeight(widget) - oldHeight;
+ if (dHeight) {
+ updateLineHeight(line, line.height + dHeight);
+ }
+ }
+ signalLater(cm, "markerChanged", cm, this$1);
+ });
+ };
+ TextMarker.prototype.attachLine = function (line) {
+ if (!this.lines.length && this.doc.cm) {
+ var op = this.doc.cm.curOp;
+ if (!op.maybeHiddenMarkers || indexOf(op.maybeHiddenMarkers, this) == -1) {
+ (op.maybeUnhiddenMarkers || (op.maybeUnhiddenMarkers = [])).push(this);
+ }
+ }
+ this.lines.push(line);
+ };
+ TextMarker.prototype.detachLine = function (line) {
+ this.lines.splice(indexOf(this.lines, line), 1);
+ if (!this.lines.length && this.doc.cm) {
+ var op = this.doc.cm.curOp;
+ (op.maybeHiddenMarkers || (op.maybeHiddenMarkers = [])).push(this);
+ }
+ };
+ eventMixin(TextMarker);
+
+ // Create a marker, wire it up to the right lines, and
+ function markText(doc, from, to, options, type) {
+ // Shared markers (across linked documents) are handled separately
+ // (markTextShared will call out to this again, once per
+ // document).
+ if (options && options.shared) {
+ return markTextShared(doc, from, to, options, type);
+ }
+ // Ensure we are in an operation.
+ if (doc.cm && !doc.cm.curOp) {
+ return operation(doc.cm, markText)(doc, from, to, options, type);
+ }
+ var marker = new TextMarker(doc, type),
+ diff = cmp(from, to);
+ if (options) {
+ copyObj(options, marker, false);
+ }
+ // Don't connect empty markers unless clearWhenEmpty is false
+ if (diff > 0 || diff == 0 && marker.clearWhenEmpty !== false) {
+ return marker;
+ }
+ if (marker.replacedWith) {
+ // Showing up as a widget implies collapsed (widget replaces text)
+ marker.collapsed = true;
+ marker.widgetNode = eltP("span", [marker.replacedWith], "CodeMirror-widget");
+ if (!options.handleMouseEvents) {
+ marker.widgetNode.setAttribute("cm-ignore-events", "true");
+ }
+ if (options.insertLeft) {
+ marker.widgetNode.insertLeft = true;
+ }
+ }
+ if (marker.collapsed) {
+ if (conflictingCollapsedRange(doc, from.line, from, to, marker) || from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker)) {
+ throw new Error("Inserting collapsed marker partially overlapping an existing one");
+ }
+ seeCollapsedSpans();
+ }
+ if (marker.addToHistory) {
+ addChangeToHistory(doc, {
+ from: from,
+ to: to,
+ origin: "markText"
+ }, doc.sel, NaN);
+ }
+ var curLine = from.line,
+ cm = doc.cm,
+ updateMaxLine;
+ doc.iter(curLine, to.line + 1, function (line) {
+ if (cm && marker.collapsed && !cm.options.lineWrapping && visualLine(line) == cm.display.maxLine) {
+ updateMaxLine = true;
+ }
+ if (marker.collapsed && curLine != from.line) {
+ updateLineHeight(line, 0);
+ }
+ addMarkedSpan(line, new MarkedSpan(marker, curLine == from.line ? from.ch : null, curLine == to.line ? to.ch : null), doc.cm && doc.cm.curOp);
+ ++curLine;
+ });
+ // lineIsHidden depends on the presence of the spans, so needs a second pass
+ if (marker.collapsed) {
+ doc.iter(from.line, to.line + 1, function (line) {
+ if (lineIsHidden(doc, line)) {
+ updateLineHeight(line, 0);
+ }
+ });
+ }
+ if (marker.clearOnEnter) {
+ on(marker, "beforeCursorEnter", function () {
+ return marker.clear();
+ });
+ }
+ if (marker.readOnly) {
+ seeReadOnlySpans();
+ if (doc.history.done.length || doc.history.undone.length) {
+ doc.clearHistory();
+ }
+ }
+ if (marker.collapsed) {
+ marker.id = ++nextMarkerId;
+ marker.atomic = true;
+ }
+ if (cm) {
+ // Sync editor state
+ if (updateMaxLine) {
+ cm.curOp.updateMaxLine = true;
+ }
+ if (marker.collapsed) {
+ regChange(cm, from.line, to.line + 1);
+ } else if (marker.className || marker.startStyle || marker.endStyle || marker.css || marker.attributes || marker.title) {
+ for (var i = from.line; i <= to.line; i++) {
+ regLineChange(cm, i, "text");
+ }
+ }
+ if (marker.atomic) {
+ reCheckSelection(cm.doc);
+ }
+ signalLater(cm, "markerAdded", cm, marker);
+ }
+ return marker;
+ }
+
+ // SHARED TEXTMARKERS
+
+ // A shared marker spans multiple linked documents. It is
+ // implemented as a meta-marker-object controlling multiple normal
+ // markers.
+ var SharedTextMarker = function (markers, primary) {
+ this.markers = markers;
+ this.primary = primary;
+ for (var i = 0; i < markers.length; ++i) {
+ markers[i].parent = this;
+ }
+ };
+ SharedTextMarker.prototype.clear = function () {
+ if (this.explicitlyCleared) {
+ return;
+ }
+ this.explicitlyCleared = true;
+ for (var i = 0; i < this.markers.length; ++i) {
+ this.markers[i].clear();
+ }
+ signalLater(this, "clear");
+ };
+ SharedTextMarker.prototype.find = function (side, lineObj) {
+ return this.primary.find(side, lineObj);
+ };
+ eventMixin(SharedTextMarker);
+ function markTextShared(doc, from, to, options, type) {
+ options = copyObj(options);
+ options.shared = false;
+ var markers = [markText(doc, from, to, options, type)],
+ primary = markers[0];
+ var widget = options.widgetNode;
+ linkedDocs(doc, function (doc) {
+ if (widget) {
+ options.widgetNode = widget.cloneNode(true);
+ }
+ markers.push(markText(doc, clipPos(doc, from), clipPos(doc, to), options, type));
+ for (var i = 0; i < doc.linked.length; ++i) {
+ if (doc.linked[i].isParent) {
+ return;
+ }
+ }
+ primary = lst(markers);
+ });
+ return new SharedTextMarker(markers, primary);
+ }
+ function findSharedMarkers(doc) {
+ return doc.findMarks(Pos(doc.first, 0), doc.clipPos(Pos(doc.lastLine())), function (m) {
+ return m.parent;
+ });
+ }
+ function copySharedMarkers(doc, markers) {
+ for (var i = 0; i < markers.length; i++) {
+ var marker = markers[i],
+ pos = marker.find();
+ var mFrom = doc.clipPos(pos.from),
+ mTo = doc.clipPos(pos.to);
+ if (cmp(mFrom, mTo)) {
+ var subMark = markText(doc, mFrom, mTo, marker.primary, marker.primary.type);
+ marker.markers.push(subMark);
+ subMark.parent = marker;
+ }
+ }
+ }
+ function detachSharedMarkers(markers) {
+ var loop = function (i) {
+ var marker = markers[i],
+ linked = [marker.primary.doc];
+ linkedDocs(marker.primary.doc, function (d) {
+ return linked.push(d);
+ });
+ for (var j = 0; j < marker.markers.length; j++) {
+ var subMarker = marker.markers[j];
+ if (indexOf(linked, subMarker.doc) == -1) {
+ subMarker.parent = null;
+ marker.markers.splice(j--, 1);
+ }
+ }
+ };
+ for (var i = 0; i < markers.length; i++) loop(i);
+ }
+ var nextDocId = 0;
+ var Doc = function (text, mode, firstLine, lineSep, direction) {
+ if (!(this instanceof Doc)) {
+ return new Doc(text, mode, firstLine, lineSep, direction);
+ }
+ if (firstLine == null) {
+ firstLine = 0;
+ }
+ BranchChunk.call(this, [new LeafChunk([new Line("", null)])]);
+ this.first = firstLine;
+ this.scrollTop = this.scrollLeft = 0;
+ this.cantEdit = false;
+ this.cleanGeneration = 1;
+ this.modeFrontier = this.highlightFrontier = firstLine;
+ var start = Pos(firstLine, 0);
+ this.sel = simpleSelection(start);
+ this.history = new History(null);
+ this.id = ++nextDocId;
+ this.modeOption = mode;
+ this.lineSep = lineSep;
+ this.direction = direction == "rtl" ? "rtl" : "ltr";
+ this.extend = false;
+ if (typeof text == "string") {
+ text = this.splitLines(text);
+ }
+ updateDoc(this, {
+ from: start,
+ to: start,
+ text: text
+ });
+ setSelection(this, simpleSelection(start), sel_dontScroll);
+ };
+ Doc.prototype = createObj(BranchChunk.prototype, {
+ constructor: Doc,
+ // Iterate over the document. Supports two forms -- with only one
+ // argument, it calls that for each line in the document. With
+ // three, it iterates over the range given by the first two (with
+ // the second being non-inclusive).
+ iter: function (from, to, op) {
+ if (op) {
+ this.iterN(from - this.first, to - from, op);
+ } else {
+ this.iterN(this.first, this.first + this.size, from);
+ }
+ },
+ // Non-public interface for adding and removing lines.
+ insert: function (at, lines) {
+ var height = 0;
+ for (var i = 0; i < lines.length; ++i) {
+ height += lines[i].height;
+ }
+ this.insertInner(at - this.first, lines, height);
+ },
+ remove: function (at, n) {
+ this.removeInner(at - this.first, n);
+ },
+ // From here, the methods are part of the public interface. Most
+ // are also available from CodeMirror (editor) instances.
+
+ getValue: function (lineSep) {
+ var lines = getLines(this, this.first, this.first + this.size);
+ if (lineSep === false) {
+ return lines;
+ }
+ return lines.join(lineSep || this.lineSeparator());
+ },
+ setValue: docMethodOp(function (code) {
+ var top = Pos(this.first, 0),
+ last = this.first + this.size - 1;
+ makeChange(this, {
+ from: top,
+ to: Pos(last, getLine(this, last).text.length),
+ text: this.splitLines(code),
+ origin: "setValue",
+ full: true
+ }, true);
+ if (this.cm) {
+ scrollToCoords(this.cm, 0, 0);
+ }
+ setSelection(this, simpleSelection(top), sel_dontScroll);
+ }),
+ replaceRange: function (code, from, to, origin) {
+ from = clipPos(this, from);
+ to = to ? clipPos(this, to) : from;
+ replaceRange(this, code, from, to, origin);
+ },
+ getRange: function (from, to, lineSep) {
+ var lines = getBetween(this, clipPos(this, from), clipPos(this, to));
+ if (lineSep === false) {
+ return lines;
+ }
+ if (lineSep === '') {
+ return lines.join('');
+ }
+ return lines.join(lineSep || this.lineSeparator());
+ },
+ getLine: function (line) {
+ var l = this.getLineHandle(line);
+ return l && l.text;
+ },
+ getLineHandle: function (line) {
+ if (isLine(this, line)) {
+ return getLine(this, line);
+ }
+ },
+ getLineNumber: function (line) {
+ return lineNo(line);
+ },
+ getLineHandleVisualStart: function (line) {
+ if (typeof line == "number") {
+ line = getLine(this, line);
+ }
+ return visualLine(line);
+ },
+ lineCount: function () {
+ return this.size;
+ },
+ firstLine: function () {
+ return this.first;
+ },
+ lastLine: function () {
+ return this.first + this.size - 1;
+ },
+ clipPos: function (pos) {
+ return clipPos(this, pos);
+ },
+ getCursor: function (start) {
+ var range = this.sel.primary(),
+ pos;
+ if (start == null || start == "head") {
+ pos = range.head;
+ } else if (start == "anchor") {
+ pos = range.anchor;
+ } else if (start == "end" || start == "to" || start === false) {
+ pos = range.to();
+ } else {
+ pos = range.from();
+ }
+ return pos;
+ },
+ listSelections: function () {
+ return this.sel.ranges;
+ },
+ somethingSelected: function () {
+ return this.sel.somethingSelected();
+ },
+ setCursor: docMethodOp(function (line, ch, options) {
+ setSimpleSelection(this, clipPos(this, typeof line == "number" ? Pos(line, ch || 0) : line), null, options);
+ }),
+ setSelection: docMethodOp(function (anchor, head, options) {
+ setSimpleSelection(this, clipPos(this, anchor), clipPos(this, head || anchor), options);
+ }),
+ extendSelection: docMethodOp(function (head, other, options) {
+ extendSelection(this, clipPos(this, head), other && clipPos(this, other), options);
+ }),
+ extendSelections: docMethodOp(function (heads, options) {
+ extendSelections(this, clipPosArray(this, heads), options);
+ }),
+ extendSelectionsBy: docMethodOp(function (f, options) {
+ var heads = map(this.sel.ranges, f);
+ extendSelections(this, clipPosArray(this, heads), options);
+ }),
+ setSelections: docMethodOp(function (ranges, primary, options) {
+ if (!ranges.length) {
+ return;
+ }
+ var out = [];
+ for (var i = 0; i < ranges.length; i++) {
+ out[i] = new Range(clipPos(this, ranges[i].anchor), clipPos(this, ranges[i].head || ranges[i].anchor));
+ }
+ if (primary == null) {
+ primary = Math.min(ranges.length - 1, this.sel.primIndex);
+ }
+ setSelection(this, normalizeSelection(this.cm, out, primary), options);
+ }),
+ addSelection: docMethodOp(function (anchor, head, options) {
+ var ranges = this.sel.ranges.slice(0);
+ ranges.push(new Range(clipPos(this, anchor), clipPos(this, head || anchor)));
+ setSelection(this, normalizeSelection(this.cm, ranges, ranges.length - 1), options);
+ }),
+ getSelection: function (lineSep) {
+ var ranges = this.sel.ranges,
+ lines;
+ for (var i = 0; i < ranges.length; i++) {
+ var sel = getBetween(this, ranges[i].from(), ranges[i].to());
+ lines = lines ? lines.concat(sel) : sel;
+ }
+ if (lineSep === false) {
+ return lines;
+ } else {
+ return lines.join(lineSep || this.lineSeparator());
+ }
+ },
+ getSelections: function (lineSep) {
+ var parts = [],
+ ranges = this.sel.ranges;
+ for (var i = 0; i < ranges.length; i++) {
+ var sel = getBetween(this, ranges[i].from(), ranges[i].to());
+ if (lineSep !== false) {
+ sel = sel.join(lineSep || this.lineSeparator());
+ }
+ parts[i] = sel;
+ }
+ return parts;
+ },
+ replaceSelection: function (code, collapse, origin) {
+ var dup = [];
+ for (var i = 0; i < this.sel.ranges.length; i++) {
+ dup[i] = code;
+ }
+ this.replaceSelections(dup, collapse, origin || "+input");
+ },
+ replaceSelections: docMethodOp(function (code, collapse, origin) {
+ var changes = [],
+ sel = this.sel;
+ for (var i = 0; i < sel.ranges.length; i++) {
+ var range = sel.ranges[i];
+ changes[i] = {
+ from: range.from(),
+ to: range.to(),
+ text: this.splitLines(code[i]),
+ origin: origin
+ };
+ }
+ var newSel = collapse && collapse != "end" && computeReplacedSel(this, changes, collapse);
+ for (var i$1 = changes.length - 1; i$1 >= 0; i$1--) {
+ makeChange(this, changes[i$1]);
+ }
+ if (newSel) {
+ setSelectionReplaceHistory(this, newSel);
+ } else if (this.cm) {
+ ensureCursorVisible(this.cm);
+ }
+ }),
+ undo: docMethodOp(function () {
+ makeChangeFromHistory(this, "undo");
+ }),
+ redo: docMethodOp(function () {
+ makeChangeFromHistory(this, "redo");
+ }),
+ undoSelection: docMethodOp(function () {
+ makeChangeFromHistory(this, "undo", true);
+ }),
+ redoSelection: docMethodOp(function () {
+ makeChangeFromHistory(this, "redo", true);
+ }),
+ setExtending: function (val) {
+ this.extend = val;
+ },
+ getExtending: function () {
+ return this.extend;
+ },
+ historySize: function () {
+ var hist = this.history,
+ done = 0,
+ undone = 0;
+ for (var i = 0; i < hist.done.length; i++) {
+ if (!hist.done[i].ranges) {
+ ++done;
+ }
+ }
+ for (var i$1 = 0; i$1 < hist.undone.length; i$1++) {
+ if (!hist.undone[i$1].ranges) {
+ ++undone;
+ }
+ }
+ return {
+ undo: done,
+ redo: undone
+ };
+ },
+ clearHistory: function () {
+ var this$1 = this;
+ this.history = new History(this.history);
+ linkedDocs(this, function (doc) {
+ return doc.history = this$1.history;
+ }, true);
+ },
+ markClean: function () {
+ this.cleanGeneration = this.changeGeneration(true);
+ },
+ changeGeneration: function (forceSplit) {
+ if (forceSplit) {
+ this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null;
+ }
+ return this.history.generation;
+ },
+ isClean: function (gen) {
+ return this.history.generation == (gen || this.cleanGeneration);
+ },
+ getHistory: function () {
+ return {
+ done: copyHistoryArray(this.history.done),
+ undone: copyHistoryArray(this.history.undone)
+ };
+ },
+ setHistory: function (histData) {
+ var hist = this.history = new History(this.history);
+ hist.done = copyHistoryArray(histData.done.slice(0), null, true);
+ hist.undone = copyHistoryArray(histData.undone.slice(0), null, true);
+ },
+ setGutterMarker: docMethodOp(function (line, gutterID, value) {
+ return changeLine(this, line, "gutter", function (line) {
+ var markers = line.gutterMarkers || (line.gutterMarkers = {});
+ markers[gutterID] = value;
+ if (!value && isEmpty(markers)) {
+ line.gutterMarkers = null;
+ }
+ return true;
+ });
+ }),
+ clearGutter: docMethodOp(function (gutterID) {
+ var this$1 = this;
+ this.iter(function (line) {
+ if (line.gutterMarkers && line.gutterMarkers[gutterID]) {
+ changeLine(this$1, line, "gutter", function () {
+ line.gutterMarkers[gutterID] = null;
+ if (isEmpty(line.gutterMarkers)) {
+ line.gutterMarkers = null;
+ }
+ return true;
+ });
+ }
+ });
+ }),
+ lineInfo: function (line) {
+ var n;
+ if (typeof line == "number") {
+ if (!isLine(this, line)) {
+ return null;
+ }
+ n = line;
+ line = getLine(this, line);
+ if (!line) {
+ return null;
+ }
+ } else {
+ n = lineNo(line);
+ if (n == null) {
+ return null;
+ }
+ }
+ return {
+ line: n,
+ handle: line,
+ text: line.text,
+ gutterMarkers: line.gutterMarkers,
+ textClass: line.textClass,
+ bgClass: line.bgClass,
+ wrapClass: line.wrapClass,
+ widgets: line.widgets
+ };
+ },
+ addLineClass: docMethodOp(function (handle, where, cls) {
+ return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function (line) {
+ var prop = where == "text" ? "textClass" : where == "background" ? "bgClass" : where == "gutter" ? "gutterClass" : "wrapClass";
+ if (!line[prop]) {
+ line[prop] = cls;
+ } else if (classTest(cls).test(line[prop])) {
+ return false;
+ } else {
+ line[prop] += " " + cls;
+ }
+ return true;
+ });
+ }),
+ removeLineClass: docMethodOp(function (handle, where, cls) {
+ return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function (line) {
+ var prop = where == "text" ? "textClass" : where == "background" ? "bgClass" : where == "gutter" ? "gutterClass" : "wrapClass";
+ var cur = line[prop];
+ if (!cur) {
+ return false;
+ } else if (cls == null) {
+ line[prop] = null;
+ } else {
+ var found = cur.match(classTest(cls));
+ if (!found) {
+ return false;
+ }
+ var end = found.index + found[0].length;
+ line[prop] = cur.slice(0, found.index) + (!found.index || end == cur.length ? "" : " ") + cur.slice(end) || null;
+ }
+ return true;
+ });
+ }),
+ addLineWidget: docMethodOp(function (handle, node, options) {
+ return addLineWidget(this, handle, node, options);
+ }),
+ removeLineWidget: function (widget) {
+ widget.clear();
+ },
+ markText: function (from, to, options) {
+ return markText(this, clipPos(this, from), clipPos(this, to), options, options && options.type || "range");
+ },
+ setBookmark: function (pos, options) {
+ var realOpts = {
+ replacedWith: options && (options.nodeType == null ? options.widget : options),
+ insertLeft: options && options.insertLeft,
+ clearWhenEmpty: false,
+ shared: options && options.shared,
+ handleMouseEvents: options && options.handleMouseEvents
+ };
+ pos = clipPos(this, pos);
+ return markText(this, pos, pos, realOpts, "bookmark");
+ },
+ findMarksAt: function (pos) {
+ pos = clipPos(this, pos);
+ var markers = [],
+ spans = getLine(this, pos.line).markedSpans;
+ if (spans) {
+ for (var i = 0; i < spans.length; ++i) {
+ var span = spans[i];
+ if ((span.from == null || span.from <= pos.ch) && (span.to == null || span.to >= pos.ch)) {
+ markers.push(span.marker.parent || span.marker);
+ }
+ }
+ }
+ return markers;
+ },
+ findMarks: function (from, to, filter) {
+ from = clipPos(this, from);
+ to = clipPos(this, to);
+ var found = [],
+ lineNo = from.line;
+ this.iter(from.line, to.line + 1, function (line) {
+ var spans = line.markedSpans;
+ if (spans) {
+ for (var i = 0; i < spans.length; i++) {
+ var span = spans[i];
+ if (!(span.to != null && lineNo == from.line && from.ch >= span.to || span.from == null && lineNo != from.line || span.from != null && lineNo == to.line && span.from >= to.ch) && (!filter || filter(span.marker))) {
+ found.push(span.marker.parent || span.marker);
+ }
+ }
+ }
+ ++lineNo;
+ });
+ return found;
+ },
+ getAllMarks: function () {
+ var markers = [];
+ this.iter(function (line) {
+ var sps = line.markedSpans;
+ if (sps) {
+ for (var i = 0; i < sps.length; ++i) {
+ if (sps[i].from != null) {
+ markers.push(sps[i].marker);
+ }
+ }
+ }
+ });
+ return markers;
+ },
+ posFromIndex: function (off) {
+ var ch,
+ lineNo = this.first,
+ sepSize = this.lineSeparator().length;
+ this.iter(function (line) {
+ var sz = line.text.length + sepSize;
+ if (sz > off) {
+ ch = off;
+ return true;
+ }
+ off -= sz;
+ ++lineNo;
+ });
+ return clipPos(this, Pos(lineNo, ch));
+ },
+ indexFromPos: function (coords) {
+ coords = clipPos(this, coords);
+ var index = coords.ch;
+ if (coords.line < this.first || coords.ch < 0) {
+ return 0;
+ }
+ var sepSize = this.lineSeparator().length;
+ this.iter(this.first, coords.line, function (line) {
+ // iter aborts when callback returns a truthy value
+ index += line.text.length + sepSize;
+ });
+ return index;
+ },
+ copy: function (copyHistory) {
+ var doc = new Doc(getLines(this, this.first, this.first + this.size), this.modeOption, this.first, this.lineSep, this.direction);
+ doc.scrollTop = this.scrollTop;
+ doc.scrollLeft = this.scrollLeft;
+ doc.sel = this.sel;
+ doc.extend = false;
+ if (copyHistory) {
+ doc.history.undoDepth = this.history.undoDepth;
+ doc.setHistory(this.getHistory());
+ }
+ return doc;
+ },
+ linkedDoc: function (options) {
+ if (!options) {
+ options = {};
+ }
+ var from = this.first,
+ to = this.first + this.size;
+ if (options.from != null && options.from > from) {
+ from = options.from;
+ }
+ if (options.to != null && options.to < to) {
+ to = options.to;
+ }
+ var copy = new Doc(getLines(this, from, to), options.mode || this.modeOption, from, this.lineSep, this.direction);
+ if (options.sharedHist) {
+ copy.history = this.history;
+ }
+ (this.linked || (this.linked = [])).push({
+ doc: copy,
+ sharedHist: options.sharedHist
+ });
+ copy.linked = [{
+ doc: this,
+ isParent: true,
+ sharedHist: options.sharedHist
+ }];
+ copySharedMarkers(copy, findSharedMarkers(this));
+ return copy;
+ },
+ unlinkDoc: function (other) {
+ if (other instanceof CodeMirror) {
+ other = other.doc;
+ }
+ if (this.linked) {
+ for (var i = 0; i < this.linked.length; ++i) {
+ var link = this.linked[i];
+ if (link.doc != other) {
+ continue;
+ }
+ this.linked.splice(i, 1);
+ other.unlinkDoc(this);
+ detachSharedMarkers(findSharedMarkers(this));
+ break;
+ }
+ }
+ // If the histories were shared, split them again
+ if (other.history == this.history) {
+ var splitIds = [other.id];
+ linkedDocs(other, function (doc) {
+ return splitIds.push(doc.id);
+ }, true);
+ other.history = new History(null);
+ other.history.done = copyHistoryArray(this.history.done, splitIds);
+ other.history.undone = copyHistoryArray(this.history.undone, splitIds);
+ }
+ },
+ iterLinkedDocs: function (f) {
+ linkedDocs(this, f);
+ },
+ getMode: function () {
+ return this.mode;
+ },
+ getEditor: function () {
+ return this.cm;
+ },
+ splitLines: function (str) {
+ if (this.lineSep) {
+ return str.split(this.lineSep);
+ }
+ return splitLinesAuto(str);
+ },
+ lineSeparator: function () {
+ return this.lineSep || "\n";
+ },
+ setDirection: docMethodOp(function (dir) {
+ if (dir != "rtl") {
+ dir = "ltr";
+ }
+ if (dir == this.direction) {
+ return;
+ }
+ this.direction = dir;
+ this.iter(function (line) {
+ return line.order = null;
+ });
+ if (this.cm) {
+ directionChanged(this.cm);
+ }
+ })
+ });
+
+ // Public alias.
+ Doc.prototype.eachLine = Doc.prototype.iter;
+
+ // Kludge to work around strange IE behavior where it'll sometimes
+ // re-fire a series of drag-related events right after the drop (#1551)
+ var lastDrop = 0;
+ function onDrop(e) {
+ var cm = this;
+ clearDragCursor(cm);
+ if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) {
+ return;
+ }
+ e_preventDefault(e);
+ if (ie) {
+ lastDrop = +new Date();
+ }
+ var pos = posFromMouse(cm, e, true),
+ files = e.dataTransfer.files;
+ if (!pos || cm.isReadOnly()) {
+ return;
+ }
+ // Might be a file drop, in which case we simply extract the text
+ // and insert it.
+ if (files && files.length && window.FileReader && window.File) {
+ var n = files.length,
+ text = Array(n),
+ read = 0;
+ var markAsReadAndPasteIfAllFilesAreRead = function () {
+ if (++read == n) {
+ operation(cm, function () {
+ pos = clipPos(cm.doc, pos);
+ var change = {
+ from: pos,
+ to: pos,
+ text: cm.doc.splitLines(text.filter(function (t) {
+ return t != null;
+ }).join(cm.doc.lineSeparator())),
+ origin: "paste"
+ };
+ makeChange(cm.doc, change);
+ setSelectionReplaceHistory(cm.doc, simpleSelection(clipPos(cm.doc, pos), clipPos(cm.doc, changeEnd(change))));
+ })();
+ }
+ };
+ var readTextFromFile = function (file, i) {
+ if (cm.options.allowDropFileTypes && indexOf(cm.options.allowDropFileTypes, file.type) == -1) {
+ markAsReadAndPasteIfAllFilesAreRead();
+ return;
+ }
+ var reader = new FileReader();
+ reader.onerror = function () {
+ return markAsReadAndPasteIfAllFilesAreRead();
+ };
+ reader.onload = function () {
+ var content = reader.result;
+ if (/[\x00-\x08\x0e-\x1f]{2}/.test(content)) {
+ markAsReadAndPasteIfAllFilesAreRead();
+ return;
+ }
+ text[i] = content;
+ markAsReadAndPasteIfAllFilesAreRead();
+ };
+ reader.readAsText(file);
+ };
+ for (var i = 0; i < files.length; i++) {
+ readTextFromFile(files[i], i);
+ }
+ } else {
+ // Normal drop
+ // Don't do a replace if the drop happened inside of the selected text.
+ if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {
+ cm.state.draggingText(e);
+ // Ensure the editor is re-focused
+ setTimeout(function () {
+ return cm.display.input.focus();
+ }, 20);
+ return;
+ }
+ try {
+ var text$1 = e.dataTransfer.getData("Text");
+ if (text$1) {
+ var selected;
+ if (cm.state.draggingText && !cm.state.draggingText.copy) {
+ selected = cm.listSelections();
+ }
+ setSelectionNoUndo(cm.doc, simpleSelection(pos, pos));
+ if (selected) {
+ for (var i$1 = 0; i$1 < selected.length; ++i$1) {
+ replaceRange(cm.doc, "", selected[i$1].anchor, selected[i$1].head, "drag");
+ }
+ }
+ cm.replaceSelection(text$1, "around", "paste");
+ cm.display.input.focus();
+ }
+ } catch (e$1) {}
+ }
+ }
+ function onDragStart(cm, e) {
+ if (ie && (!cm.state.draggingText || +new Date() - lastDrop < 100)) {
+ e_stop(e);
+ return;
+ }
+ if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) {
+ return;
+ }
+ e.dataTransfer.setData("Text", cm.getSelection());
+ e.dataTransfer.effectAllowed = "copyMove";
+
+ // Use dummy image instead of default browsers image.
+ // Recent Safari (~6.0.2) have a tendency to segfault when this happens, so we don't do it there.
+ if (e.dataTransfer.setDragImage && !safari) {
+ var img = elt("img", null, null, "position: fixed; left: 0; top: 0;");
+ img.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
+ if (presto) {
+ img.width = img.height = 1;
+ cm.display.wrapper.appendChild(img);
+ // Force a relayout, or Opera won't use our image for some obscure reason
+ img._top = img.offsetTop;
+ }
+ e.dataTransfer.setDragImage(img, 0, 0);
+ if (presto) {
+ img.parentNode.removeChild(img);
+ }
+ }
+ }
+ function onDragOver(cm, e) {
+ var pos = posFromMouse(cm, e);
+ if (!pos) {
+ return;
+ }
+ var frag = document.createDocumentFragment();
+ drawSelectionCursor(cm, pos, frag);
+ if (!cm.display.dragCursor) {
+ cm.display.dragCursor = elt("div", null, "CodeMirror-cursors CodeMirror-dragcursors");
+ cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv);
+ }
+ removeChildrenAndAdd(cm.display.dragCursor, frag);
+ }
+ function clearDragCursor(cm) {
+ if (cm.display.dragCursor) {
+ cm.display.lineSpace.removeChild(cm.display.dragCursor);
+ cm.display.dragCursor = null;
+ }
+ }
+
+ // These must be handled carefully, because naively registering a
+ // handler for each editor will cause the editors to never be
+ // garbage collected.
+
+ function forEachCodeMirror(f) {
+ if (!document.getElementsByClassName) {
+ return;
+ }
+ var byClass = document.getElementsByClassName("CodeMirror"),
+ editors = [];
+ for (var i = 0; i < byClass.length; i++) {
+ var cm = byClass[i].CodeMirror;
+ if (cm) {
+ editors.push(cm);
+ }
+ }
+ if (editors.length) {
+ editors[0].operation(function () {
+ for (var i = 0; i < editors.length; i++) {
+ f(editors[i]);
+ }
+ });
+ }
+ }
+ var globalsRegistered = false;
+ function ensureGlobalHandlers() {
+ if (globalsRegistered) {
+ return;
+ }
+ registerGlobalHandlers();
+ globalsRegistered = true;
+ }
+ function registerGlobalHandlers() {
+ // When the window resizes, we need to refresh active editors.
+ var resizeTimer;
+ on(window, "resize", function () {
+ if (resizeTimer == null) {
+ resizeTimer = setTimeout(function () {
+ resizeTimer = null;
+ forEachCodeMirror(onResize);
+ }, 100);
+ }
+ });
+ // When the window loses focus, we want to show the editor as blurred
+ on(window, "blur", function () {
+ return forEachCodeMirror(onBlur);
+ });
+ }
+ // Called when the window resizes
+ function onResize(cm) {
+ var d = cm.display;
+ // Might be a text scaling operation, clear size caches.
+ d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;
+ d.scrollbarsClipped = false;
+ cm.setSize();
+ }
+ var keyNames = {
+ 3: "Pause",
+ 8: "Backspace",
+ 9: "Tab",
+ 13: "Enter",
+ 16: "Shift",
+ 17: "Ctrl",
+ 18: "Alt",
+ 19: "Pause",
+ 20: "CapsLock",
+ 27: "Esc",
+ 32: "Space",
+ 33: "PageUp",
+ 34: "PageDown",
+ 35: "End",
+ 36: "Home",
+ 37: "Left",
+ 38: "Up",
+ 39: "Right",
+ 40: "Down",
+ 44: "PrintScrn",
+ 45: "Insert",
+ 46: "Delete",
+ 59: ";",
+ 61: "=",
+ 91: "Mod",
+ 92: "Mod",
+ 93: "Mod",
+ 106: "*",
+ 107: "=",
+ 109: "-",
+ 110: ".",
+ 111: "/",
+ 145: "ScrollLock",
+ 173: "-",
+ 186: ";",
+ 187: "=",
+ 188: ",",
+ 189: "-",
+ 190: ".",
+ 191: "/",
+ 192: "`",
+ 219: "[",
+ 220: "\\",
+ 221: "]",
+ 222: "'",
+ 224: "Mod",
+ 63232: "Up",
+ 63233: "Down",
+ 63234: "Left",
+ 63235: "Right",
+ 63272: "Delete",
+ 63273: "Home",
+ 63275: "End",
+ 63276: "PageUp",
+ 63277: "PageDown",
+ 63302: "Insert"
+ };
+
+ // Number keys
+ for (var i = 0; i < 10; i++) {
+ keyNames[i + 48] = keyNames[i + 96] = String(i);
+ }
+ // Alphabetic keys
+ for (var i$1 = 65; i$1 <= 90; i$1++) {
+ keyNames[i$1] = String.fromCharCode(i$1);
+ }
+ // Function keys
+ for (var i$2 = 1; i$2 <= 12; i$2++) {
+ keyNames[i$2 + 111] = keyNames[i$2 + 63235] = "F" + i$2;
+ }
+ var keyMap = {};
+ keyMap.basic = {
+ "Left": "goCharLeft",
+ "Right": "goCharRight",
+ "Up": "goLineUp",
+ "Down": "goLineDown",
+ "End": "goLineEnd",
+ "Home": "goLineStartSmart",
+ "PageUp": "goPageUp",
+ "PageDown": "goPageDown",
+ "Delete": "delCharAfter",
+ "Backspace": "delCharBefore",
+ "Shift-Backspace": "delCharBefore",
+ "Tab": "defaultTab",
+ "Shift-Tab": "indentAuto",
+ "Enter": "newlineAndIndent",
+ "Insert": "toggleOverwrite",
+ "Esc": "singleSelection"
+ };
+ // Note that the save and find-related commands aren't defined by
+ // default. User code or addons can define them. Unknown commands
+ // are simply ignored.
+ keyMap.pcDefault = {
+ "Ctrl-A": "selectAll",
+ "Ctrl-D": "deleteLine",
+ "Ctrl-Z": "undo",
+ "Shift-Ctrl-Z": "redo",
+ "Ctrl-Y": "redo",
+ "Ctrl-Home": "goDocStart",
+ "Ctrl-End": "goDocEnd",
+ "Ctrl-Up": "goLineUp",
+ "Ctrl-Down": "goLineDown",
+ "Ctrl-Left": "goGroupLeft",
+ "Ctrl-Right": "goGroupRight",
+ "Alt-Left": "goLineStart",
+ "Alt-Right": "goLineEnd",
+ "Ctrl-Backspace": "delGroupBefore",
+ "Ctrl-Delete": "delGroupAfter",
+ "Ctrl-S": "save",
+ "Ctrl-F": "find",
+ "Ctrl-G": "findNext",
+ "Shift-Ctrl-G": "findPrev",
+ "Shift-Ctrl-F": "replace",
+ "Shift-Ctrl-R": "replaceAll",
+ "Ctrl-[": "indentLess",
+ "Ctrl-]": "indentMore",
+ "Ctrl-U": "undoSelection",
+ "Shift-Ctrl-U": "redoSelection",
+ "Alt-U": "redoSelection",
+ "fallthrough": "basic"
+ };
+ // Very basic readline/emacs-style bindings, which are standard on Mac.
+ keyMap.emacsy = {
+ "Ctrl-F": "goCharRight",
+ "Ctrl-B": "goCharLeft",
+ "Ctrl-P": "goLineUp",
+ "Ctrl-N": "goLineDown",
+ "Ctrl-A": "goLineStart",
+ "Ctrl-E": "goLineEnd",
+ "Ctrl-V": "goPageDown",
+ "Shift-Ctrl-V": "goPageUp",
+ "Ctrl-D": "delCharAfter",
+ "Ctrl-H": "delCharBefore",
+ "Alt-Backspace": "delWordBefore",
+ "Ctrl-K": "killLine",
+ "Ctrl-T": "transposeChars",
+ "Ctrl-O": "openLine"
+ };
+ keyMap.macDefault = {
+ "Cmd-A": "selectAll",
+ "Cmd-D": "deleteLine",
+ "Cmd-Z": "undo",
+ "Shift-Cmd-Z": "redo",
+ "Cmd-Y": "redo",
+ "Cmd-Home": "goDocStart",
+ "Cmd-Up": "goDocStart",
+ "Cmd-End": "goDocEnd",
+ "Cmd-Down": "goDocEnd",
+ "Alt-Left": "goGroupLeft",
+ "Alt-Right": "goGroupRight",
+ "Cmd-Left": "goLineLeft",
+ "Cmd-Right": "goLineRight",
+ "Alt-Backspace": "delGroupBefore",
+ "Ctrl-Alt-Backspace": "delGroupAfter",
+ "Alt-Delete": "delGroupAfter",
+ "Cmd-S": "save",
+ "Cmd-F": "find",
+ "Cmd-G": "findNext",
+ "Shift-Cmd-G": "findPrev",
+ "Cmd-Alt-F": "replace",
+ "Shift-Cmd-Alt-F": "replaceAll",
+ "Cmd-[": "indentLess",
+ "Cmd-]": "indentMore",
+ "Cmd-Backspace": "delWrappedLineLeft",
+ "Cmd-Delete": "delWrappedLineRight",
+ "Cmd-U": "undoSelection",
+ "Shift-Cmd-U": "redoSelection",
+ "Ctrl-Up": "goDocStart",
+ "Ctrl-Down": "goDocEnd",
+ "fallthrough": ["basic", "emacsy"]
+ };
+ keyMap["default"] = mac ? keyMap.macDefault : keyMap.pcDefault;
+
+ // KEYMAP DISPATCH
+
+ function normalizeKeyName(name) {
+ var parts = name.split(/-(?!$)/);
+ name = parts[parts.length - 1];
+ var alt, ctrl, shift, cmd;
+ for (var i = 0; i < parts.length - 1; i++) {
+ var mod = parts[i];
+ if (/^(cmd|meta|m)$/i.test(mod)) {
+ cmd = true;
+ } else if (/^a(lt)?$/i.test(mod)) {
+ alt = true;
+ } else if (/^(c|ctrl|control)$/i.test(mod)) {
+ ctrl = true;
+ } else if (/^s(hift)?$/i.test(mod)) {
+ shift = true;
+ } else {
+ throw new Error("Unrecognized modifier name: " + mod);
+ }
+ }
+ if (alt) {
+ name = "Alt-" + name;
+ }
+ if (ctrl) {
+ name = "Ctrl-" + name;
+ }
+ if (cmd) {
+ name = "Cmd-" + name;
+ }
+ if (shift) {
+ name = "Shift-" + name;
+ }
+ return name;
+ }
+
+ // This is a kludge to keep keymaps mostly working as raw objects
+ // (backwards compatibility) while at the same time support features
+ // like normalization and multi-stroke key bindings. It compiles a
+ // new normalized keymap, and then updates the old object to reflect
+ // this.
+ function normalizeKeyMap(keymap) {
+ var copy = {};
+ for (var keyname in keymap) {
+ if (keymap.hasOwnProperty(keyname)) {
+ var value = keymap[keyname];
+ if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) {
+ continue;
+ }
+ if (value == "...") {
+ delete keymap[keyname];
+ continue;
+ }
+ var keys = map(keyname.split(" "), normalizeKeyName);
+ for (var i = 0; i < keys.length; i++) {
+ var val = void 0,
+ name = void 0;
+ if (i == keys.length - 1) {
+ name = keys.join(" ");
+ val = value;
+ } else {
+ name = keys.slice(0, i + 1).join(" ");
+ val = "...";
+ }
+ var prev = copy[name];
+ if (!prev) {
+ copy[name] = val;
+ } else if (prev != val) {
+ throw new Error("Inconsistent bindings for " + name);
+ }
+ }
+ delete keymap[keyname];
+ }
+ }
+ for (var prop in copy) {
+ keymap[prop] = copy[prop];
+ }
+ return keymap;
+ }
+ function lookupKey(key, map, handle, context) {
+ map = getKeyMap(map);
+ var found = map.call ? map.call(key, context) : map[key];
+ if (found === false) {
+ return "nothing";
+ }
+ if (found === "...") {
+ return "multi";
+ }
+ if (found != null && handle(found)) {
+ return "handled";
+ }
+ if (map.fallthrough) {
+ if (Object.prototype.toString.call(map.fallthrough) != "[object Array]") {
+ return lookupKey(key, map.fallthrough, handle, context);
+ }
+ for (var i = 0; i < map.fallthrough.length; i++) {
+ var result = lookupKey(key, map.fallthrough[i], handle, context);
+ if (result) {
+ return result;
+ }
+ }
+ }
+ }
+
+ // Modifier key presses don't count as 'real' key presses for the
+ // purpose of keymap fallthrough.
+ function isModifierKey(value) {
+ var name = typeof value == "string" ? value : keyNames[value.keyCode];
+ return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod";
+ }
+ function addModifierNames(name, event, noShift) {
+ var base = name;
+ if (event.altKey && base != "Alt") {
+ name = "Alt-" + name;
+ }
+ if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != "Ctrl") {
+ name = "Ctrl-" + name;
+ }
+ if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != "Mod") {
+ name = "Cmd-" + name;
+ }
+ if (!noShift && event.shiftKey && base != "Shift") {
+ name = "Shift-" + name;
+ }
+ return name;
+ }
+
+ // Look up the name of a key as indicated by an event object.
+ function keyName(event, noShift) {
+ if (presto && event.keyCode == 34 && event["char"]) {
+ return false;
+ }
+ var name = keyNames[event.keyCode];
+ if (name == null || event.altGraphKey) {
+ return false;
+ }
+ // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,
+ // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)
+ if (event.keyCode == 3 && event.code) {
+ name = event.code;
+ }
+ return addModifierNames(name, event, noShift);
+ }
+ function getKeyMap(val) {
+ return typeof val == "string" ? keyMap[val] : val;
+ }
+
+ // Helper for deleting text near the selection(s), used to implement
+ // backspace, delete, and similar functionality.
+ function deleteNearSelection(cm, compute) {
+ var ranges = cm.doc.sel.ranges,
+ kill = [];
+ // Build up a set of ranges to kill first, merging overlapping
+ // ranges.
+ for (var i = 0; i < ranges.length; i++) {
+ var toKill = compute(ranges[i]);
+ while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {
+ var replaced = kill.pop();
+ if (cmp(replaced.from, toKill.from) < 0) {
+ toKill.from = replaced.from;
+ break;
+ }
+ }
+ kill.push(toKill);
+ }
+ // Next, remove those actual ranges.
+ runInOp(cm, function () {
+ for (var i = kill.length - 1; i >= 0; i--) {
+ replaceRange(cm.doc, "", kill[i].from, kill[i].to, "+delete");
+ }
+ ensureCursorVisible(cm);
+ });
+ }
+ function moveCharLogically(line, ch, dir) {
+ var target = skipExtendingChars(line.text, ch + dir, dir);
+ return target < 0 || target > line.text.length ? null : target;
+ }
+ function moveLogically(line, start, dir) {
+ var ch = moveCharLogically(line, start.ch, dir);
+ return ch == null ? null : new Pos(start.line, ch, dir < 0 ? "after" : "before");
+ }
+ function endOfLine(visually, cm, lineObj, lineNo, dir) {
+ if (visually) {
+ if (cm.doc.direction == "rtl") {
+ dir = -dir;
+ }
+ var order = getOrder(lineObj, cm.doc.direction);
+ if (order) {
+ var part = dir < 0 ? lst(order) : order[0];
+ var moveInStorageOrder = dir < 0 == (part.level == 1);
+ var sticky = moveInStorageOrder ? "after" : "before";
+ var ch;
+ // With a wrapped rtl chunk (possibly spanning multiple bidi parts),
+ // it could be that the last bidi part is not on the last visual line,
+ // since visual lines contain content order-consecutive chunks.
+ // Thus, in rtl, we are looking for the first (content-order) character
+ // in the rtl chunk that is on the last line (that is, the same line
+ // as the last (content-order) character).
+ if (part.level > 0 || cm.doc.direction == "rtl") {
+ var prep = prepareMeasureForLine(cm, lineObj);
+ ch = dir < 0 ? lineObj.text.length - 1 : 0;
+ var targetTop = measureCharPrepared(cm, prep, ch).top;
+ ch = findFirst(function (ch) {
+ return measureCharPrepared(cm, prep, ch).top == targetTop;
+ }, dir < 0 == (part.level == 1) ? part.from : part.to - 1, ch);
+ if (sticky == "before") {
+ ch = moveCharLogically(lineObj, ch, 1);
+ }
+ } else {
+ ch = dir < 0 ? part.to : part.from;
+ }
+ return new Pos(lineNo, ch, sticky);
+ }
+ }
+ return new Pos(lineNo, dir < 0 ? lineObj.text.length : 0, dir < 0 ? "before" : "after");
+ }
+ function moveVisually(cm, line, start, dir) {
+ var bidi = getOrder(line, cm.doc.direction);
+ if (!bidi) {
+ return moveLogically(line, start, dir);
+ }
+ if (start.ch >= line.text.length) {
+ start.ch = line.text.length;
+ start.sticky = "before";
+ } else if (start.ch <= 0) {
+ start.ch = 0;
+ start.sticky = "after";
+ }
+ var partPos = getBidiPartAt(bidi, start.ch, start.sticky),
+ part = bidi[partPos];
+ if (cm.doc.direction == "ltr" && part.level % 2 == 0 && (dir > 0 ? part.to > start.ch : part.from < start.ch)) {
+ // Case 1: We move within an ltr part in an ltr editor. Even with wrapped lines,
+ // nothing interesting happens.
+ return moveLogically(line, start, dir);
+ }
+ var mv = function (pos, dir) {
+ return moveCharLogically(line, pos instanceof Pos ? pos.ch : pos, dir);
+ };
+ var prep;
+ var getWrappedLineExtent = function (ch) {
+ if (!cm.options.lineWrapping) {
+ return {
+ begin: 0,
+ end: line.text.length
+ };
+ }
+ prep = prep || prepareMeasureForLine(cm, line);
+ return wrappedLineExtentChar(cm, line, prep, ch);
+ };
+ var wrappedLineExtent = getWrappedLineExtent(start.sticky == "before" ? mv(start, -1) : start.ch);
+ if (cm.doc.direction == "rtl" || part.level == 1) {
+ var moveInStorageOrder = part.level == 1 == dir < 0;
+ var ch = mv(start, moveInStorageOrder ? 1 : -1);
+ if (ch != null && (!moveInStorageOrder ? ch >= part.from && ch >= wrappedLineExtent.begin : ch <= part.to && ch <= wrappedLineExtent.end)) {
+ // Case 2: We move within an rtl part or in an rtl editor on the same visual line
+ var sticky = moveInStorageOrder ? "before" : "after";
+ return new Pos(start.line, ch, sticky);
+ }
+ }
+
+ // Case 3: Could not move within this bidi part in this visual line, so leave
+ // the current bidi part
+
+ var searchInVisualLine = function (partPos, dir, wrappedLineExtent) {
+ var getRes = function (ch, moveInStorageOrder) {
+ return moveInStorageOrder ? new Pos(start.line, mv(ch, 1), "before") : new Pos(start.line, ch, "after");
+ };
+ for (; partPos >= 0 && partPos < bidi.length; partPos += dir) {
+ var part = bidi[partPos];
+ var moveInStorageOrder = dir > 0 == (part.level != 1);
+ var ch = moveInStorageOrder ? wrappedLineExtent.begin : mv(wrappedLineExtent.end, -1);
+ if (part.from <= ch && ch < part.to) {
+ return getRes(ch, moveInStorageOrder);
+ }
+ ch = moveInStorageOrder ? part.from : mv(part.to, -1);
+ if (wrappedLineExtent.begin <= ch && ch < wrappedLineExtent.end) {
+ return getRes(ch, moveInStorageOrder);
+ }
+ }
+ };
+
+ // Case 3a: Look for other bidi parts on the same visual line
+ var res = searchInVisualLine(partPos + dir, dir, wrappedLineExtent);
+ if (res) {
+ return res;
+ }
+
+ // Case 3b: Look for other bidi parts on the next visual line
+ var nextCh = dir > 0 ? wrappedLineExtent.end : mv(wrappedLineExtent.begin, -1);
+ if (nextCh != null && !(dir > 0 && nextCh == line.text.length)) {
+ res = searchInVisualLine(dir > 0 ? 0 : bidi.length - 1, dir, getWrappedLineExtent(nextCh));
+ if (res) {
+ return res;
+ }
+ }
+
+ // Case 4: Nowhere to move
+ return null;
+ }
+
+ // Commands are parameter-less actions that can be performed on an
+ // editor, mostly used for keybindings.
+ var commands = {
+ selectAll: selectAll,
+ singleSelection: function (cm) {
+ return cm.setSelection(cm.getCursor("anchor"), cm.getCursor("head"), sel_dontScroll);
+ },
+ killLine: function (cm) {
+ return deleteNearSelection(cm, function (range) {
+ if (range.empty()) {
+ var len = getLine(cm.doc, range.head.line).text.length;
+ if (range.head.ch == len && range.head.line < cm.lastLine()) {
+ return {
+ from: range.head,
+ to: Pos(range.head.line + 1, 0)
+ };
+ } else {
+ return {
+ from: range.head,
+ to: Pos(range.head.line, len)
+ };
+ }
+ } else {
+ return {
+ from: range.from(),
+ to: range.to()
+ };
+ }
+ });
+ },
+ deleteLine: function (cm) {
+ return deleteNearSelection(cm, function (range) {
+ return {
+ from: Pos(range.from().line, 0),
+ to: clipPos(cm.doc, Pos(range.to().line + 1, 0))
+ };
+ });
+ },
+ delLineLeft: function (cm) {
+ return deleteNearSelection(cm, function (range) {
+ return {
+ from: Pos(range.from().line, 0),
+ to: range.from()
+ };
+ });
+ },
+ delWrappedLineLeft: function (cm) {
+ return deleteNearSelection(cm, function (range) {
+ var top = cm.charCoords(range.head, "div").top + 5;
+ var leftPos = cm.coordsChar({
+ left: 0,
+ top: top
+ }, "div");
+ return {
+ from: leftPos,
+ to: range.from()
+ };
+ });
+ },
+ delWrappedLineRight: function (cm) {
+ return deleteNearSelection(cm, function (range) {
+ var top = cm.charCoords(range.head, "div").top + 5;
+ var rightPos = cm.coordsChar({
+ left: cm.display.lineDiv.offsetWidth + 100,
+ top: top
+ }, "div");
+ return {
+ from: range.from(),
+ to: rightPos
+ };
+ });
+ },
+ undo: function (cm) {
+ return cm.undo();
+ },
+ redo: function (cm) {
+ return cm.redo();
+ },
+ undoSelection: function (cm) {
+ return cm.undoSelection();
+ },
+ redoSelection: function (cm) {
+ return cm.redoSelection();
+ },
+ goDocStart: function (cm) {
+ return cm.extendSelection(Pos(cm.firstLine(), 0));
+ },
+ goDocEnd: function (cm) {
+ return cm.extendSelection(Pos(cm.lastLine()));
+ },
+ goLineStart: function (cm) {
+ return cm.extendSelectionsBy(function (range) {
+ return lineStart(cm, range.head.line);
+ }, {
+ origin: "+move",
+ bias: 1
+ });
+ },
+ goLineStartSmart: function (cm) {
+ return cm.extendSelectionsBy(function (range) {
+ return lineStartSmart(cm, range.head);
+ }, {
+ origin: "+move",
+ bias: 1
+ });
+ },
+ goLineEnd: function (cm) {
+ return cm.extendSelectionsBy(function (range) {
+ return lineEnd(cm, range.head.line);
+ }, {
+ origin: "+move",
+ bias: -1
+ });
+ },
+ goLineRight: function (cm) {
+ return cm.extendSelectionsBy(function (range) {
+ var top = cm.cursorCoords(range.head, "div").top + 5;
+ return cm.coordsChar({
+ left: cm.display.lineDiv.offsetWidth + 100,
+ top: top
+ }, "div");
+ }, sel_move);
+ },
+ goLineLeft: function (cm) {
+ return cm.extendSelectionsBy(function (range) {
+ var top = cm.cursorCoords(range.head, "div").top + 5;
+ return cm.coordsChar({
+ left: 0,
+ top: top
+ }, "div");
+ }, sel_move);
+ },
+ goLineLeftSmart: function (cm) {
+ return cm.extendSelectionsBy(function (range) {
+ var top = cm.cursorCoords(range.head, "div").top + 5;
+ var pos = cm.coordsChar({
+ left: 0,
+ top: top
+ }, "div");
+ if (pos.ch < cm.getLine(pos.line).search(/\S/)) {
+ return lineStartSmart(cm, range.head);
+ }
+ return pos;
+ }, sel_move);
+ },
+ goLineUp: function (cm) {
+ return cm.moveV(-1, "line");
+ },
+ goLineDown: function (cm) {
+ return cm.moveV(1, "line");
+ },
+ goPageUp: function (cm) {
+ return cm.moveV(-1, "page");
+ },
+ goPageDown: function (cm) {
+ return cm.moveV(1, "page");
+ },
+ goCharLeft: function (cm) {
+ return cm.moveH(-1, "char");
+ },
+ goCharRight: function (cm) {
+ return cm.moveH(1, "char");
+ },
+ goColumnLeft: function (cm) {
+ return cm.moveH(-1, "column");
+ },
+ goColumnRight: function (cm) {
+ return cm.moveH(1, "column");
+ },
+ goWordLeft: function (cm) {
+ return cm.moveH(-1, "word");
+ },
+ goGroupRight: function (cm) {
+ return cm.moveH(1, "group");
+ },
+ goGroupLeft: function (cm) {
+ return cm.moveH(-1, "group");
+ },
+ goWordRight: function (cm) {
+ return cm.moveH(1, "word");
+ },
+ delCharBefore: function (cm) {
+ return cm.deleteH(-1, "codepoint");
+ },
+ delCharAfter: function (cm) {
+ return cm.deleteH(1, "char");
+ },
+ delWordBefore: function (cm) {
+ return cm.deleteH(-1, "word");
+ },
+ delWordAfter: function (cm) {
+ return cm.deleteH(1, "word");
+ },
+ delGroupBefore: function (cm) {
+ return cm.deleteH(-1, "group");
+ },
+ delGroupAfter: function (cm) {
+ return cm.deleteH(1, "group");
+ },
+ indentAuto: function (cm) {
+ return cm.indentSelection("smart");
+ },
+ indentMore: function (cm) {
+ return cm.indentSelection("add");
+ },
+ indentLess: function (cm) {
+ return cm.indentSelection("subtract");
+ },
+ insertTab: function (cm) {
+ return cm.replaceSelection("\t");
+ },
+ insertSoftTab: function (cm) {
+ var spaces = [],
+ ranges = cm.listSelections(),
+ tabSize = cm.options.tabSize;
+ for (var i = 0; i < ranges.length; i++) {
+ var pos = ranges[i].from();
+ var col = countColumn(cm.getLine(pos.line), pos.ch, tabSize);
+ spaces.push(spaceStr(tabSize - col % tabSize));
+ }
+ cm.replaceSelections(spaces);
+ },
+ defaultTab: function (cm) {
+ if (cm.somethingSelected()) {
+ cm.indentSelection("add");
+ } else {
+ cm.execCommand("insertTab");
+ }
+ },
+ // Swap the two chars left and right of each selection's head.
+ // Move cursor behind the two swapped characters afterwards.
+ //
+ // Doesn't consider line feeds a character.
+ // Doesn't scan more than one line above to find a character.
+ // Doesn't do anything on an empty line.
+ // Doesn't do anything with non-empty selections.
+ transposeChars: function (cm) {
+ return runInOp(cm, function () {
+ var ranges = cm.listSelections(),
+ newSel = [];
+ for (var i = 0; i < ranges.length; i++) {
+ if (!ranges[i].empty()) {
+ continue;
+ }
+ var cur = ranges[i].head,
+ line = getLine(cm.doc, cur.line).text;
+ if (line) {
+ if (cur.ch == line.length) {
+ cur = new Pos(cur.line, cur.ch - 1);
+ }
+ if (cur.ch > 0) {
+ cur = new Pos(cur.line, cur.ch + 1);
+ cm.replaceRange(line.charAt(cur.ch - 1) + line.charAt(cur.ch - 2), Pos(cur.line, cur.ch - 2), cur, "+transpose");
+ } else if (cur.line > cm.doc.first) {
+ var prev = getLine(cm.doc, cur.line - 1).text;
+ if (prev) {
+ cur = new Pos(cur.line, 1);
+ cm.replaceRange(line.charAt(0) + cm.doc.lineSeparator() + prev.charAt(prev.length - 1), Pos(cur.line - 1, prev.length - 1), cur, "+transpose");
+ }
+ }
+ }
+ newSel.push(new Range(cur, cur));
+ }
+ cm.setSelections(newSel);
+ });
+ },
+ newlineAndIndent: function (cm) {
+ return runInOp(cm, function () {
+ var sels = cm.listSelections();
+ for (var i = sels.length - 1; i >= 0; i--) {
+ cm.replaceRange(cm.doc.lineSeparator(), sels[i].anchor, sels[i].head, "+input");
+ }
+ sels = cm.listSelections();
+ for (var i$1 = 0; i$1 < sels.length; i$1++) {
+ cm.indentLine(sels[i$1].from().line, null, true);
+ }
+ ensureCursorVisible(cm);
+ });
+ },
+ openLine: function (cm) {
+ return cm.replaceSelection("\n", "start");
+ },
+ toggleOverwrite: function (cm) {
+ return cm.toggleOverwrite();
+ }
+ };
+ function lineStart(cm, lineN) {
+ var line = getLine(cm.doc, lineN);
+ var visual = visualLine(line);
+ if (visual != line) {
+ lineN = lineNo(visual);
+ }
+ return endOfLine(true, cm, visual, lineN, 1);
+ }
+ function lineEnd(cm, lineN) {
+ var line = getLine(cm.doc, lineN);
+ var visual = visualLineEnd(line);
+ if (visual != line) {
+ lineN = lineNo(visual);
+ }
+ return endOfLine(true, cm, line, lineN, -1);
+ }
+ function lineStartSmart(cm, pos) {
+ var start = lineStart(cm, pos.line);
+ var line = getLine(cm.doc, start.line);
+ var order = getOrder(line, cm.doc.direction);
+ if (!order || order[0].level == 0) {
+ var firstNonWS = Math.max(start.ch, line.text.search(/\S/));
+ var inWS = pos.line == start.line && pos.ch <= firstNonWS && pos.ch;
+ return Pos(start.line, inWS ? 0 : firstNonWS, start.sticky);
+ }
+ return start;
+ }
+
+ // Run a handler that was bound to a key.
+ function doHandleBinding(cm, bound, dropShift) {
+ if (typeof bound == "string") {
+ bound = commands[bound];
+ if (!bound) {
+ return false;
+ }
+ }
+ // Ensure previous input has been read, so that the handler sees a
+ // consistent view of the document
+ cm.display.input.ensurePolled();
+ var prevShift = cm.display.shift,
+ done = false;
+ try {
+ if (cm.isReadOnly()) {
+ cm.state.suppressEdits = true;
+ }
+ if (dropShift) {
+ cm.display.shift = false;
+ }
+ done = bound(cm) != Pass;
+ } finally {
+ cm.display.shift = prevShift;
+ cm.state.suppressEdits = false;
+ }
+ return done;
+ }
+ function lookupKeyForEditor(cm, name, handle) {
+ for (var i = 0; i < cm.state.keyMaps.length; i++) {
+ var result = lookupKey(name, cm.state.keyMaps[i], handle, cm);
+ if (result) {
+ return result;
+ }
+ }
+ return cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm) || lookupKey(name, cm.options.keyMap, handle, cm);
+ }
+
+ // Note that, despite the name, this function is also used to check
+ // for bound mouse clicks.
+
+ var stopSeq = new Delayed();
+ function dispatchKey(cm, name, e, handle) {
+ var seq = cm.state.keySeq;
+ if (seq) {
+ if (isModifierKey(name)) {
+ return "handled";
+ }
+ if (/\'$/.test(name)) {
+ cm.state.keySeq = null;
+ } else {
+ stopSeq.set(50, function () {
+ if (cm.state.keySeq == seq) {
+ cm.state.keySeq = null;
+ cm.display.input.reset();
+ }
+ });
+ }
+ if (dispatchKeyInner(cm, seq + " " + name, e, handle)) {
+ return true;
+ }
+ }
+ return dispatchKeyInner(cm, name, e, handle);
+ }
+ function dispatchKeyInner(cm, name, e, handle) {
+ var result = lookupKeyForEditor(cm, name, handle);
+ if (result == "multi") {
+ cm.state.keySeq = name;
+ }
+ if (result == "handled") {
+ signalLater(cm, "keyHandled", cm, name, e);
+ }
+ if (result == "handled" || result == "multi") {
+ e_preventDefault(e);
+ restartBlink(cm);
+ }
+ return !!result;
+ }
+
+ // Handle a key from the keydown event.
+ function handleKeyBinding(cm, e) {
+ var name = keyName(e, true);
+ if (!name) {
+ return false;
+ }
+ if (e.shiftKey && !cm.state.keySeq) {
+ // First try to resolve full name (including 'Shift-'). Failing
+ // that, see if there is a cursor-motion command (starting with
+ // 'go') bound to the keyname without 'Shift-'.
+ return dispatchKey(cm, "Shift-" + name, e, function (b) {
+ return doHandleBinding(cm, b, true);
+ }) || dispatchKey(cm, name, e, function (b) {
+ if (typeof b == "string" ? /^go[A-Z]/.test(b) : b.motion) {
+ return doHandleBinding(cm, b);
+ }
+ });
+ } else {
+ return dispatchKey(cm, name, e, function (b) {
+ return doHandleBinding(cm, b);
+ });
+ }
+ }
+
+ // Handle a key from the keypress event
+ function handleCharBinding(cm, e, ch) {
+ return dispatchKey(cm, "'" + ch + "'", e, function (b) {
+ return doHandleBinding(cm, b, true);
+ });
+ }
+ var lastStoppedKey = null;
+ function onKeyDown(e) {
+ var cm = this;
+ if (e.target && e.target != cm.display.input.getField()) {
+ return;
+ }
+ cm.curOp.focus = activeElt();
+ if (signalDOMEvent(cm, e)) {
+ return;
+ }
+ // IE does strange things with escape.
+ if (ie && ie_version < 11 && e.keyCode == 27) {
+ e.returnValue = false;
+ }
+ var code = e.keyCode;
+ cm.display.shift = code == 16 || e.shiftKey;
+ var handled = handleKeyBinding(cm, e);
+ if (presto) {
+ lastStoppedKey = handled ? code : null;
+ // Opera has no cut event... we try to at least catch the key combo
+ if (!handled && code == 88 && !hasCopyEvent && (mac ? e.metaKey : e.ctrlKey)) {
+ cm.replaceSelection("", null, "cut");
+ }
+ }
+ if (gecko && !mac && !handled && code == 46 && e.shiftKey && !e.ctrlKey && document.execCommand) {
+ document.execCommand("cut");
+ }
+
+ // Turn mouse into crosshair when Alt is held on Mac.
+ if (code == 18 && !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className)) {
+ showCrossHair(cm);
+ }
+ }
+ function showCrossHair(cm) {
+ var lineDiv = cm.display.lineDiv;
+ addClass(lineDiv, "CodeMirror-crosshair");
+ function up(e) {
+ if (e.keyCode == 18 || !e.altKey) {
+ rmClass(lineDiv, "CodeMirror-crosshair");
+ off(document, "keyup", up);
+ off(document, "mouseover", up);
+ }
+ }
+ on(document, "keyup", up);
+ on(document, "mouseover", up);
+ }
+ function onKeyUp(e) {
+ if (e.keyCode == 16) {
+ this.doc.sel.shift = false;
+ }
+ signalDOMEvent(this, e);
+ }
+ function onKeyPress(e) {
+ var cm = this;
+ if (e.target && e.target != cm.display.input.getField()) {
+ return;
+ }
+ if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) {
+ return;
+ }
+ var keyCode = e.keyCode,
+ charCode = e.charCode;
+ if (presto && keyCode == lastStoppedKey) {
+ lastStoppedKey = null;
+ e_preventDefault(e);
+ return;
+ }
+ if (presto && (!e.which || e.which < 10) && handleKeyBinding(cm, e)) {
+ return;
+ }
+ var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
+ // Some browsers fire keypress events for backspace
+ if (ch == "\x08") {
+ return;
+ }
+ if (handleCharBinding(cm, e, ch)) {
+ return;
+ }
+ cm.display.input.onKeyPress(e);
+ }
+ var DOUBLECLICK_DELAY = 400;
+ var PastClick = function (time, pos, button) {
+ this.time = time;
+ this.pos = pos;
+ this.button = button;
+ };
+ PastClick.prototype.compare = function (time, pos, button) {
+ return this.time + DOUBLECLICK_DELAY > time && cmp(pos, this.pos) == 0 && button == this.button;
+ };
+ var lastClick, lastDoubleClick;
+ function clickRepeat(pos, button) {
+ var now = +new Date();
+ if (lastDoubleClick && lastDoubleClick.compare(now, pos, button)) {
+ lastClick = lastDoubleClick = null;
+ return "triple";
+ } else if (lastClick && lastClick.compare(now, pos, button)) {
+ lastDoubleClick = new PastClick(now, pos, button);
+ lastClick = null;
+ return "double";
+ } else {
+ lastClick = new PastClick(now, pos, button);
+ lastDoubleClick = null;
+ return "single";
+ }
+ }
+
+ // A mouse down can be a single click, double click, triple click,
+ // start of selection drag, start of text drag, new cursor
+ // (ctrl-click), rectangle drag (alt-drag), or xwin
+ // middle-click-paste. Or it might be a click on something we should
+ // not interfere with, such as a scrollbar or widget.
+ function onMouseDown(e) {
+ var cm = this,
+ display = cm.display;
+ if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) {
+ return;
+ }
+ display.input.ensurePolled();
+ display.shift = e.shiftKey;
+ if (eventInWidget(display, e)) {
+ if (!webkit) {
+ // Briefly turn off draggability, to allow widgets to do
+ // normal dragging things.
+ display.scroller.draggable = false;
+ setTimeout(function () {
+ return display.scroller.draggable = true;
+ }, 100);
+ }
+ return;
+ }
+ if (clickInGutter(cm, e)) {
+ return;
+ }
+ var pos = posFromMouse(cm, e),
+ button = e_button(e),
+ repeat = pos ? clickRepeat(pos, button) : "single";
+ window.focus();
+
+ // #3261: make sure, that we're not starting a second selection
+ if (button == 1 && cm.state.selectingText) {
+ cm.state.selectingText(e);
+ }
+ if (pos && handleMappedButton(cm, button, pos, repeat, e)) {
+ return;
+ }
+ if (button == 1) {
+ if (pos) {
+ leftButtonDown(cm, pos, repeat, e);
+ } else if (e_target(e) == display.scroller) {
+ e_preventDefault(e);
+ }
+ } else if (button == 2) {
+ if (pos) {
+ extendSelection(cm.doc, pos);
+ }
+ setTimeout(function () {
+ return display.input.focus();
+ }, 20);
+ } else if (button == 3) {
+ if (captureRightClick) {
+ cm.display.input.onContextMenu(e);
+ } else {
+ delayBlurEvent(cm);
+ }
+ }
+ }
+ function handleMappedButton(cm, button, pos, repeat, event) {
+ var name = "Click";
+ if (repeat == "double") {
+ name = "Double" + name;
+ } else if (repeat == "triple") {
+ name = "Triple" + name;
+ }
+ name = (button == 1 ? "Left" : button == 2 ? "Middle" : "Right") + name;
+ return dispatchKey(cm, addModifierNames(name, event), event, function (bound) {
+ if (typeof bound == "string") {
+ bound = commands[bound];
+ }
+ if (!bound) {
+ return false;
+ }
+ var done = false;
+ try {
+ if (cm.isReadOnly()) {
+ cm.state.suppressEdits = true;
+ }
+ done = bound(cm, pos) != Pass;
+ } finally {
+ cm.state.suppressEdits = false;
+ }
+ return done;
+ });
+ }
+ function configureMouse(cm, repeat, event) {
+ var option = cm.getOption("configureMouse");
+ var value = option ? option(cm, repeat, event) : {};
+ if (value.unit == null) {
+ var rect = chromeOS ? event.shiftKey && event.metaKey : event.altKey;
+ value.unit = rect ? "rectangle" : repeat == "single" ? "char" : repeat == "double" ? "word" : "line";
+ }
+ if (value.extend == null || cm.doc.extend) {
+ value.extend = cm.doc.extend || event.shiftKey;
+ }
+ if (value.addNew == null) {
+ value.addNew = mac ? event.metaKey : event.ctrlKey;
+ }
+ if (value.moveOnDrag == null) {
+ value.moveOnDrag = !(mac ? event.altKey : event.ctrlKey);
+ }
+ return value;
+ }
+ function leftButtonDown(cm, pos, repeat, event) {
+ if (ie) {
+ setTimeout(bind(ensureFocus, cm), 0);
+ } else {
+ cm.curOp.focus = activeElt();
+ }
+ var behavior = configureMouse(cm, repeat, event);
+ var sel = cm.doc.sel,
+ contained;
+ if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() && repeat == "single" && (contained = sel.contains(pos)) > -1 && (cmp((contained = sel.ranges[contained]).from(), pos) < 0 || pos.xRel > 0) && (cmp(contained.to(), pos) > 0 || pos.xRel < 0)) {
+ leftButtonStartDrag(cm, event, pos, behavior);
+ } else {
+ leftButtonSelect(cm, event, pos, behavior);
+ }
+ }
+
+ // Start a text drag. When it ends, see if any dragging actually
+ // happen, and treat as a click if it didn't.
+ function leftButtonStartDrag(cm, event, pos, behavior) {
+ var display = cm.display,
+ moved = false;
+ var dragEnd = operation(cm, function (e) {
+ if (webkit) {
+ display.scroller.draggable = false;
+ }
+ cm.state.draggingText = false;
+ if (cm.state.delayingBlurEvent) {
+ if (cm.hasFocus()) {
+ cm.state.delayingBlurEvent = false;
+ } else {
+ delayBlurEvent(cm);
+ }
+ }
+ off(display.wrapper.ownerDocument, "mouseup", dragEnd);
+ off(display.wrapper.ownerDocument, "mousemove", mouseMove);
+ off(display.scroller, "dragstart", dragStart);
+ off(display.scroller, "drop", dragEnd);
+ if (!moved) {
+ e_preventDefault(e);
+ if (!behavior.addNew) {
+ extendSelection(cm.doc, pos, null, null, behavior.extend);
+ }
+ // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)
+ if (webkit && !safari || ie && ie_version == 9) {
+ setTimeout(function () {
+ display.wrapper.ownerDocument.body.focus({
+ preventScroll: true
+ });
+ display.input.focus();
+ }, 20);
+ } else {
+ display.input.focus();
+ }
+ }
+ });
+ var mouseMove = function (e2) {
+ moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;
+ };
+ var dragStart = function () {
+ return moved = true;
+ };
+ // Let the drag handler handle this.
+ if (webkit) {
+ display.scroller.draggable = true;
+ }
+ cm.state.draggingText = dragEnd;
+ dragEnd.copy = !behavior.moveOnDrag;
+ on(display.wrapper.ownerDocument, "mouseup", dragEnd);
+ on(display.wrapper.ownerDocument, "mousemove", mouseMove);
+ on(display.scroller, "dragstart", dragStart);
+ on(display.scroller, "drop", dragEnd);
+ cm.state.delayingBlurEvent = true;
+ setTimeout(function () {
+ return display.input.focus();
+ }, 20);
+ // IE's approach to draggable
+ if (display.scroller.dragDrop) {
+ display.scroller.dragDrop();
+ }
+ }
+ function rangeForUnit(cm, pos, unit) {
+ if (unit == "char") {
+ return new Range(pos, pos);
+ }
+ if (unit == "word") {
+ return cm.findWordAt(pos);
+ }
+ if (unit == "line") {
+ return new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0)));
+ }
+ var result = unit(cm, pos);
+ return new Range(result.from, result.to);
+ }
+
+ // Normal selection, as opposed to text dragging.
+ function leftButtonSelect(cm, event, start, behavior) {
+ if (ie) {
+ delayBlurEvent(cm);
+ }
+ var display = cm.display,
+ doc = cm.doc;
+ e_preventDefault(event);
+ var ourRange,
+ ourIndex,
+ startSel = doc.sel,
+ ranges = startSel.ranges;
+ if (behavior.addNew && !behavior.extend) {
+ ourIndex = doc.sel.contains(start);
+ if (ourIndex > -1) {
+ ourRange = ranges[ourIndex];
+ } else {
+ ourRange = new Range(start, start);
+ }
+ } else {
+ ourRange = doc.sel.primary();
+ ourIndex = doc.sel.primIndex;
+ }
+ if (behavior.unit == "rectangle") {
+ if (!behavior.addNew) {
+ ourRange = new Range(start, start);
+ }
+ start = posFromMouse(cm, event, true, true);
+ ourIndex = -1;
+ } else {
+ var range = rangeForUnit(cm, start, behavior.unit);
+ if (behavior.extend) {
+ ourRange = extendRange(ourRange, range.anchor, range.head, behavior.extend);
+ } else {
+ ourRange = range;
+ }
+ }
+ if (!behavior.addNew) {
+ ourIndex = 0;
+ setSelection(doc, new Selection([ourRange], 0), sel_mouse);
+ startSel = doc.sel;
+ } else if (ourIndex == -1) {
+ ourIndex = ranges.length;
+ setSelection(doc, normalizeSelection(cm, ranges.concat([ourRange]), ourIndex), {
+ scroll: false,
+ origin: "*mouse"
+ });
+ } else if (ranges.length > 1 && ranges[ourIndex].empty() && behavior.unit == "char" && !behavior.extend) {
+ setSelection(doc, normalizeSelection(cm, ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0), {
+ scroll: false,
+ origin: "*mouse"
+ });
+ startSel = doc.sel;
+ } else {
+ replaceOneSelection(doc, ourIndex, ourRange, sel_mouse);
+ }
+ var lastPos = start;
+ function extendTo(pos) {
+ if (cmp(lastPos, pos) == 0) {
+ return;
+ }
+ lastPos = pos;
+ if (behavior.unit == "rectangle") {
+ var ranges = [],
+ tabSize = cm.options.tabSize;
+ var startCol = countColumn(getLine(doc, start.line).text, start.ch, tabSize);
+ var posCol = countColumn(getLine(doc, pos.line).text, pos.ch, tabSize);
+ var left = Math.min(startCol, posCol),
+ right = Math.max(startCol, posCol);
+ for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line)); line <= end; line++) {
+ var text = getLine(doc, line).text,
+ leftPos = findColumn(text, left, tabSize);
+ if (left == right) {
+ ranges.push(new Range(Pos(line, leftPos), Pos(line, leftPos)));
+ } else if (text.length > leftPos) {
+ ranges.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize))));
+ }
+ }
+ if (!ranges.length) {
+ ranges.push(new Range(start, start));
+ }
+ setSelection(doc, normalizeSelection(cm, startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex), {
+ origin: "*mouse",
+ scroll: false
+ });
+ cm.scrollIntoView(pos);
+ } else {
+ var oldRange = ourRange;
+ var range = rangeForUnit(cm, pos, behavior.unit);
+ var anchor = oldRange.anchor,
+ head;
+ if (cmp(range.anchor, anchor) > 0) {
+ head = range.head;
+ anchor = minPos(oldRange.from(), range.anchor);
+ } else {
+ head = range.anchor;
+ anchor = maxPos(oldRange.to(), range.head);
+ }
+ var ranges$1 = startSel.ranges.slice(0);
+ ranges$1[ourIndex] = bidiSimplify(cm, new Range(clipPos(doc, anchor), head));
+ setSelection(doc, normalizeSelection(cm, ranges$1, ourIndex), sel_mouse);
+ }
+ }
+ var editorSize = display.wrapper.getBoundingClientRect();
+ // Used to ensure timeout re-tries don't fire when another extend
+ // happened in the meantime (clearTimeout isn't reliable -- at
+ // least on Chrome, the timeouts still happen even when cleared,
+ // if the clear happens after their scheduled firing time).
+ var counter = 0;
+ function extend(e) {
+ var curCount = ++counter;
+ var cur = posFromMouse(cm, e, true, behavior.unit == "rectangle");
+ if (!cur) {
+ return;
+ }
+ if (cmp(cur, lastPos) != 0) {
+ cm.curOp.focus = activeElt();
+ extendTo(cur);
+ var visible = visibleLines(display, doc);
+ if (cur.line >= visible.to || cur.line < visible.from) {
+ setTimeout(operation(cm, function () {
+ if (counter == curCount) {
+ extend(e);
+ }
+ }), 150);
+ }
+ } else {
+ var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0;
+ if (outside) {
+ setTimeout(operation(cm, function () {
+ if (counter != curCount) {
+ return;
+ }
+ display.scroller.scrollTop += outside;
+ extend(e);
+ }), 50);
+ }
+ }
+ }
+ function done(e) {
+ cm.state.selectingText = false;
+ counter = Infinity;
+ // If e is null or undefined we interpret this as someone trying
+ // to explicitly cancel the selection rather than the user
+ // letting go of the mouse button.
+ if (e) {
+ e_preventDefault(e);
+ display.input.focus();
+ }
+ off(display.wrapper.ownerDocument, "mousemove", move);
+ off(display.wrapper.ownerDocument, "mouseup", up);
+ doc.history.lastSelOrigin = null;
+ }
+ var move = operation(cm, function (e) {
+ if (e.buttons === 0 || !e_button(e)) {
+ done(e);
+ } else {
+ extend(e);
+ }
+ });
+ var up = operation(cm, done);
+ cm.state.selectingText = up;
+ on(display.wrapper.ownerDocument, "mousemove", move);
+ on(display.wrapper.ownerDocument, "mouseup", up);
+ }
+
+ // Used when mouse-selecting to adjust the anchor to the proper side
+ // of a bidi jump depending on the visual position of the head.
+ function bidiSimplify(cm, range) {
+ var anchor = range.anchor;
+ var head = range.head;
+ var anchorLine = getLine(cm.doc, anchor.line);
+ if (cmp(anchor, head) == 0 && anchor.sticky == head.sticky) {
+ return range;
+ }
+ var order = getOrder(anchorLine);
+ if (!order) {
+ return range;
+ }
+ var index = getBidiPartAt(order, anchor.ch, anchor.sticky),
+ part = order[index];
+ if (part.from != anchor.ch && part.to != anchor.ch) {
+ return range;
+ }
+ var boundary = index + (part.from == anchor.ch == (part.level != 1) ? 0 : 1);
+ if (boundary == 0 || boundary == order.length) {
+ return range;
+ }
+
+ // Compute the relative visual position of the head compared to the
+ // anchor (<0 is to the left, >0 to the right)
+ var leftSide;
+ if (head.line != anchor.line) {
+ leftSide = (head.line - anchor.line) * (cm.doc.direction == "ltr" ? 1 : -1) > 0;
+ } else {
+ var headIndex = getBidiPartAt(order, head.ch, head.sticky);
+ var dir = headIndex - index || (head.ch - anchor.ch) * (part.level == 1 ? -1 : 1);
+ if (headIndex == boundary - 1 || headIndex == boundary) {
+ leftSide = dir < 0;
+ } else {
+ leftSide = dir > 0;
+ }
+ }
+ var usePart = order[boundary + (leftSide ? -1 : 0)];
+ var from = leftSide == (usePart.level == 1);
+ var ch = from ? usePart.from : usePart.to,
+ sticky = from ? "after" : "before";
+ return anchor.ch == ch && anchor.sticky == sticky ? range : new Range(new Pos(anchor.line, ch, sticky), head);
+ }
+
+ // Determines whether an event happened in the gutter, and fires the
+ // handlers for the corresponding event.
+ function gutterEvent(cm, e, type, prevent) {
+ var mX, mY;
+ if (e.touches) {
+ mX = e.touches[0].clientX;
+ mY = e.touches[0].clientY;
+ } else {
+ try {
+ mX = e.clientX;
+ mY = e.clientY;
+ } catch (e$1) {
+ return false;
+ }
+ }
+ if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) {
+ return false;
+ }
+ if (prevent) {
+ e_preventDefault(e);
+ }
+ var display = cm.display;
+ var lineBox = display.lineDiv.getBoundingClientRect();
+ if (mY > lineBox.bottom || !hasHandler(cm, type)) {
+ return e_defaultPrevented(e);
+ }
+ mY -= lineBox.top - display.viewOffset;
+ for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {
+ var g = display.gutters.childNodes[i];
+ if (g && g.getBoundingClientRect().right >= mX) {
+ var line = lineAtHeight(cm.doc, mY);
+ var gutter = cm.display.gutterSpecs[i];
+ signal(cm, type, cm, line, gutter.className, e);
+ return e_defaultPrevented(e);
+ }
+ }
+ }
+ function clickInGutter(cm, e) {
+ return gutterEvent(cm, e, "gutterClick", true);
+ }
+
+ // CONTEXT MENU HANDLING
+
+ // To make the context menu work, we need to briefly unhide the
+ // textarea (making it as unobtrusive as possible) to let the
+ // right-click take effect on it.
+ function onContextMenu(cm, e) {
+ if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) {
+ return;
+ }
+ if (signalDOMEvent(cm, e, "contextmenu")) {
+ return;
+ }
+ if (!captureRightClick) {
+ cm.display.input.onContextMenu(e);
+ }
+ }
+ function contextMenuInGutter(cm, e) {
+ if (!hasHandler(cm, "gutterContextMenu")) {
+ return false;
+ }
+ return gutterEvent(cm, e, "gutterContextMenu", false);
+ }
+ function themeChanged(cm) {
+ cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
+ clearCaches(cm);
+ }
+ var Init = {
+ toString: function () {
+ return "CodeMirror.Init";
+ }
+ };
+ var defaults = {};
+ var optionHandlers = {};
+ function defineOptions(CodeMirror) {
+ var optionHandlers = CodeMirror.optionHandlers;
+ function option(name, deflt, handle, notOnInit) {
+ CodeMirror.defaults[name] = deflt;
+ if (handle) {
+ optionHandlers[name] = notOnInit ? function (cm, val, old) {
+ if (old != Init) {
+ handle(cm, val, old);
+ }
+ } : handle;
+ }
+ }
+ CodeMirror.defineOption = option;
+
+ // Passed to option handlers when there is no old value.
+ CodeMirror.Init = Init;
+
+ // These two are, on init, called from the constructor because they
+ // have to be initialized before the editor can start at all.
+ option("value", "", function (cm, val) {
+ return cm.setValue(val);
+ }, true);
+ option("mode", null, function (cm, val) {
+ cm.doc.modeOption = val;
+ loadMode(cm);
+ }, true);
+ option("indentUnit", 2, loadMode, true);
+ option("indentWithTabs", false);
+ option("smartIndent", true);
+ option("tabSize", 4, function (cm) {
+ resetModeState(cm);
+ clearCaches(cm);
+ regChange(cm);
+ }, true);
+ option("lineSeparator", null, function (cm, val) {
+ cm.doc.lineSep = val;
+ if (!val) {
+ return;
+ }
+ var newBreaks = [],
+ lineNo = cm.doc.first;
+ cm.doc.iter(function (line) {
+ for (var pos = 0;;) {
+ var found = line.text.indexOf(val, pos);
+ if (found == -1) {
+ break;
+ }
+ pos = found + val.length;
+ newBreaks.push(Pos(lineNo, found));
+ }
+ lineNo++;
+ });
+ for (var i = newBreaks.length - 1; i >= 0; i--) {
+ replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length));
+ }
+ });
+ option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function (cm, val, old) {
+ cm.state.specialChars = new RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g");
+ if (old != Init) {
+ cm.refresh();
+ }
+ });
+ option("specialCharPlaceholder", defaultSpecialCharPlaceholder, function (cm) {
+ return cm.refresh();
+ }, true);
+ option("electricChars", true);
+ option("inputStyle", mobile ? "contenteditable" : "textarea", function () {
+ throw new Error("inputStyle can not (yet) be changed in a running editor"); // FIXME
+ }, true);
+ option("spellcheck", false, function (cm, val) {
+ return cm.getInputField().spellcheck = val;
+ }, true);
+ option("autocorrect", false, function (cm, val) {
+ return cm.getInputField().autocorrect = val;
+ }, true);
+ option("autocapitalize", false, function (cm, val) {
+ return cm.getInputField().autocapitalize = val;
+ }, true);
+ option("rtlMoveVisually", !windows);
+ option("wholeLineUpdateBefore", true);
+ option("theme", "default", function (cm) {
+ themeChanged(cm);
+ updateGutters(cm);
+ }, true);
+ option("keyMap", "default", function (cm, val, old) {
+ var next = getKeyMap(val);
+ var prev = old != Init && getKeyMap(old);
+ if (prev && prev.detach) {
+ prev.detach(cm, next);
+ }
+ if (next.attach) {
+ next.attach(cm, prev || null);
+ }
+ });
+ option("extraKeys", null);
+ option("configureMouse", null);
+ option("lineWrapping", false, wrappingChanged, true);
+ option("gutters", [], function (cm, val) {
+ cm.display.gutterSpecs = getGutters(val, cm.options.lineNumbers);
+ updateGutters(cm);
+ }, true);
+ option("fixedGutter", true, function (cm, val) {
+ cm.display.gutters.style.left = val ? compensateForHScroll(cm.display) + "px" : "0";
+ cm.refresh();
+ }, true);
+ option("coverGutterNextToScrollbar", false, function (cm) {
+ return updateScrollbars(cm);
+ }, true);
+ option("scrollbarStyle", "native", function (cm) {
+ initScrollbars(cm);
+ updateScrollbars(cm);
+ cm.display.scrollbars.setScrollTop(cm.doc.scrollTop);
+ cm.display.scrollbars.setScrollLeft(cm.doc.scrollLeft);
+ }, true);
+ option("lineNumbers", false, function (cm, val) {
+ cm.display.gutterSpecs = getGutters(cm.options.gutters, val);
+ updateGutters(cm);
+ }, true);
+ option("firstLineNumber", 1, updateGutters, true);
+ option("lineNumberFormatter", function (integer) {
+ return integer;
+ }, updateGutters, true);
+ option("showCursorWhenSelecting", false, updateSelection, true);
+ option("resetSelectionOnContextMenu", true);
+ option("lineWiseCopyCut", true);
+ option("pasteLinesPerSelection", true);
+ option("selectionsMayTouch", false);
+ option("readOnly", false, function (cm, val) {
+ if (val == "nocursor") {
+ onBlur(cm);
+ cm.display.input.blur();
+ }
+ cm.display.input.readOnlyChanged(val);
+ });
+ option("screenReaderLabel", null, function (cm, val) {
+ val = val === '' ? null : val;
+ cm.display.input.screenReaderLabelChanged(val);
+ });
+ option("disableInput", false, function (cm, val) {
+ if (!val) {
+ cm.display.input.reset();
+ }
+ }, true);
+ option("dragDrop", true, dragDropChanged);
+ option("allowDropFileTypes", null);
+ option("cursorBlinkRate", 530);
+ option("cursorScrollMargin", 0);
+ option("cursorHeight", 1, updateSelection, true);
+ option("singleCursorHeightPerLine", true, updateSelection, true);
+ option("workTime", 100);
+ option("workDelay", 100);
+ option("flattenSpans", true, resetModeState, true);
+ option("addModeClass", false, resetModeState, true);
+ option("pollInterval", 100);
+ option("undoDepth", 200, function (cm, val) {
+ return cm.doc.history.undoDepth = val;
+ });
+ option("historyEventDelay", 1250);
+ option("viewportMargin", 10, function (cm) {
+ return cm.refresh();
+ }, true);
+ option("maxHighlightLength", 10000, resetModeState, true);
+ option("moveInputWithCursor", true, function (cm, val) {
+ if (!val) {
+ cm.display.input.resetPosition();
+ }
+ });
+ option("tabindex", null, function (cm, val) {
+ return cm.display.input.getField().tabIndex = val || "";
+ });
+ option("autofocus", null);
+ option("direction", "ltr", function (cm, val) {
+ return cm.doc.setDirection(val);
+ }, true);
+ option("phrases", null);
+ }
+ function dragDropChanged(cm, value, old) {
+ var wasOn = old && old != Init;
+ if (!value != !wasOn) {
+ var funcs = cm.display.dragFunctions;
+ var toggle = value ? on : off;
+ toggle(cm.display.scroller, "dragstart", funcs.start);
+ toggle(cm.display.scroller, "dragenter", funcs.enter);
+ toggle(cm.display.scroller, "dragover", funcs.over);
+ toggle(cm.display.scroller, "dragleave", funcs.leave);
+ toggle(cm.display.scroller, "drop", funcs.drop);
+ }
+ }
+ function wrappingChanged(cm) {
+ if (cm.options.lineWrapping) {
+ addClass(cm.display.wrapper, "CodeMirror-wrap");
+ cm.display.sizer.style.minWidth = "";
+ cm.display.sizerWidth = null;
+ } else {
+ rmClass(cm.display.wrapper, "CodeMirror-wrap");
+ findMaxLine(cm);
+ }
+ estimateLineHeights(cm);
+ regChange(cm);
+ clearCaches(cm);
+ setTimeout(function () {
+ return updateScrollbars(cm);
+ }, 100);
+ }
+
+ // A CodeMirror instance represents an editor. This is the object
+ // that user code is usually dealing with.
+
+ function CodeMirror(place, options) {
+ var this$1 = this;
+ if (!(this instanceof CodeMirror)) {
+ return new CodeMirror(place, options);
+ }
+ this.options = options = options ? copyObj(options) : {};
+ // Determine effective options based on given values and defaults.
+ copyObj(defaults, options, false);
+ var doc = options.value;
+ if (typeof doc == "string") {
+ doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction);
+ } else if (options.mode) {
+ doc.modeOption = options.mode;
+ }
+ this.doc = doc;
+ var input = new CodeMirror.inputStyles[options.inputStyle](this);
+ var display = this.display = new Display(place, doc, input, options);
+ display.wrapper.CodeMirror = this;
+ themeChanged(this);
+ if (options.lineWrapping) {
+ this.display.wrapper.className += " CodeMirror-wrap";
+ }
+ initScrollbars(this);
+ this.state = {
+ keyMaps: [],
+ // stores maps added by addKeyMap
+ overlays: [],
+ // highlighting overlays, as added by addOverlay
+ modeGen: 0,
+ // bumped when mode/overlay changes, used to invalidate highlighting info
+ overwrite: false,
+ delayingBlurEvent: false,
+ focused: false,
+ suppressEdits: false,
+ // used to disable editing during key handlers when in readOnly mode
+ pasteIncoming: -1,
+ cutIncoming: -1,
+ // help recognize paste/cut edits in input.poll
+ selectingText: false,
+ draggingText: false,
+ highlight: new Delayed(),
+ // stores highlight worker timeout
+ keySeq: null,
+ // Unfinished key sequence
+ specialChars: null
+ };
+ if (options.autofocus && !mobile) {
+ display.input.focus();
+ }
+
+ // Override magic textarea content restore that IE sometimes does
+ // on our hidden textarea on reload
+ if (ie && ie_version < 11) {
+ setTimeout(function () {
+ return this$1.display.input.reset(true);
+ }, 20);
+ }
+ registerEventHandlers(this);
+ ensureGlobalHandlers();
+ startOperation(this);
+ this.curOp.forceUpdate = true;
+ attachDoc(this, doc);
+ if (options.autofocus && !mobile || this.hasFocus()) {
+ setTimeout(function () {
+ if (this$1.hasFocus() && !this$1.state.focused) {
+ onFocus(this$1);
+ }
+ }, 20);
+ } else {
+ onBlur(this);
+ }
+ for (var opt in optionHandlers) {
+ if (optionHandlers.hasOwnProperty(opt)) {
+ optionHandlers[opt](this, options[opt], Init);
+ }
+ }
+ maybeUpdateLineNumberWidth(this);
+ if (options.finishInit) {
+ options.finishInit(this);
+ }
+ for (var i = 0; i < initHooks.length; ++i) {
+ initHooks[i](this);
+ }
+ endOperation(this);
+ // Suppress optimizelegibility in Webkit, since it breaks text
+ // measuring on line wrapping boundaries.
+ if (webkit && options.lineWrapping && getComputedStyle(display.lineDiv).textRendering == "optimizelegibility") {
+ display.lineDiv.style.textRendering = "auto";
+ }
+ }
+
+ // The default configuration options.
+ CodeMirror.defaults = defaults;
+ // Functions to run when options are changed.
+ CodeMirror.optionHandlers = optionHandlers;
+
+ // Attach the necessary event handlers when initializing the editor
+ function registerEventHandlers(cm) {
+ var d = cm.display;
+ on(d.scroller, "mousedown", operation(cm, onMouseDown));
+ // Older IE's will not fire a second mousedown for a double click
+ if (ie && ie_version < 11) {
+ on(d.scroller, "dblclick", operation(cm, function (e) {
+ if (signalDOMEvent(cm, e)) {
+ return;
+ }
+ var pos = posFromMouse(cm, e);
+ if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) {
+ return;
+ }
+ e_preventDefault(e);
+ var word = cm.findWordAt(pos);
+ extendSelection(cm.doc, word.anchor, word.head);
+ }));
+ } else {
+ on(d.scroller, "dblclick", function (e) {
+ return signalDOMEvent(cm, e) || e_preventDefault(e);
+ });
+ }
+ // Some browsers fire contextmenu *after* opening the menu, at
+ // which point we can't mess with it anymore. Context menu is
+ // handled in onMouseDown for these browsers.
+ on(d.scroller, "contextmenu", function (e) {
+ return onContextMenu(cm, e);
+ });
+ on(d.input.getField(), "contextmenu", function (e) {
+ if (!d.scroller.contains(e.target)) {
+ onContextMenu(cm, e);
+ }
+ });
+
+ // Used to suppress mouse event handling when a touch happens
+ var touchFinished,
+ prevTouch = {
+ end: 0
+ };
+ function finishTouch() {
+ if (d.activeTouch) {
+ touchFinished = setTimeout(function () {
+ return d.activeTouch = null;
+ }, 1000);
+ prevTouch = d.activeTouch;
+ prevTouch.end = +new Date();
+ }
+ }
+ function isMouseLikeTouchEvent(e) {
+ if (e.touches.length != 1) {
+ return false;
+ }
+ var touch = e.touches[0];
+ return touch.radiusX <= 1 && touch.radiusY <= 1;
+ }
+ function farAway(touch, other) {
+ if (other.left == null) {
+ return true;
+ }
+ var dx = other.left - touch.left,
+ dy = other.top - touch.top;
+ return dx * dx + dy * dy > 20 * 20;
+ }
+ on(d.scroller, "touchstart", function (e) {
+ if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e) && !clickInGutter(cm, e)) {
+ d.input.ensurePolled();
+ clearTimeout(touchFinished);
+ var now = +new Date();
+ d.activeTouch = {
+ start: now,
+ moved: false,
+ prev: now - prevTouch.end <= 300 ? prevTouch : null
+ };
+ if (e.touches.length == 1) {
+ d.activeTouch.left = e.touches[0].pageX;
+ d.activeTouch.top = e.touches[0].pageY;
+ }
+ }
+ });
+ on(d.scroller, "touchmove", function () {
+ if (d.activeTouch) {
+ d.activeTouch.moved = true;
+ }
+ });
+ on(d.scroller, "touchend", function (e) {
+ var touch = d.activeTouch;
+ if (touch && !eventInWidget(d, e) && touch.left != null && !touch.moved && new Date() - touch.start < 300) {
+ var pos = cm.coordsChar(d.activeTouch, "page"),
+ range;
+ if (!touch.prev || farAway(touch, touch.prev))
+ // Single tap
+ {
+ range = new Range(pos, pos);
+ } else if (!touch.prev.prev || farAway(touch, touch.prev.prev))
+ // Double tap
+ {
+ range = cm.findWordAt(pos);
+ } else
+ // Triple tap
+ {
+ range = new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0)));
+ }
+ cm.setSelection(range.anchor, range.head);
+ cm.focus();
+ e_preventDefault(e);
+ }
+ finishTouch();
+ });
+ on(d.scroller, "touchcancel", finishTouch);
+
+ // Sync scrolling between fake scrollbars and real scrollable
+ // area, ensure viewport is updated when scrolling.
+ on(d.scroller, "scroll", function () {
+ if (d.scroller.clientHeight) {
+ updateScrollTop(cm, d.scroller.scrollTop);
+ setScrollLeft(cm, d.scroller.scrollLeft, true);
+ signal(cm, "scroll", cm);
+ }
+ });
+
+ // Listen to wheel events in order to try and update the viewport on time.
+ on(d.scroller, "mousewheel", function (e) {
+ return onScrollWheel(cm, e);
+ });
+ on(d.scroller, "DOMMouseScroll", function (e) {
+ return onScrollWheel(cm, e);
+ });
+
+ // Prevent wrapper from ever scrolling
+ on(d.wrapper, "scroll", function () {
+ return d.wrapper.scrollTop = d.wrapper.scrollLeft = 0;
+ });
+ d.dragFunctions = {
+ enter: function (e) {
+ if (!signalDOMEvent(cm, e)) {
+ e_stop(e);
+ }
+ },
+ over: function (e) {
+ if (!signalDOMEvent(cm, e)) {
+ onDragOver(cm, e);
+ e_stop(e);
+ }
+ },
+ start: function (e) {
+ return onDragStart(cm, e);
+ },
+ drop: operation(cm, onDrop),
+ leave: function (e) {
+ if (!signalDOMEvent(cm, e)) {
+ clearDragCursor(cm);
+ }
+ }
+ };
+ var inp = d.input.getField();
+ on(inp, "keyup", function (e) {
+ return onKeyUp.call(cm, e);
+ });
+ on(inp, "keydown", operation(cm, onKeyDown));
+ on(inp, "keypress", operation(cm, onKeyPress));
+ on(inp, "focus", function (e) {
+ return onFocus(cm, e);
+ });
+ on(inp, "blur", function (e) {
+ return onBlur(cm, e);
+ });
+ }
+ var initHooks = [];
+ CodeMirror.defineInitHook = function (f) {
+ return initHooks.push(f);
+ };
+
+ // Indent the given line. The how parameter can be "smart",
+ // "add"/null, "subtract", or "prev". When aggressive is false
+ // (typically set to true for forced single-line indents), empty
+ // lines are not indented, and places where the mode returns Pass
+ // are left alone.
+ function indentLine(cm, n, how, aggressive) {
+ var doc = cm.doc,
+ state;
+ if (how == null) {
+ how = "add";
+ }
+ if (how == "smart") {
+ // Fall back to "prev" when the mode doesn't have an indentation
+ // method.
+ if (!doc.mode.indent) {
+ how = "prev";
+ } else {
+ state = getContextBefore(cm, n).state;
+ }
+ }
+ var tabSize = cm.options.tabSize;
+ var line = getLine(doc, n),
+ curSpace = countColumn(line.text, null, tabSize);
+ if (line.stateAfter) {
+ line.stateAfter = null;
+ }
+ var curSpaceString = line.text.match(/^\s*/)[0],
+ indentation;
+ if (!aggressive && !/\S/.test(line.text)) {
+ indentation = 0;
+ how = "not";
+ } else if (how == "smart") {
+ indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);
+ if (indentation == Pass || indentation > 150) {
+ if (!aggressive) {
+ return;
+ }
+ how = "prev";
+ }
+ }
+ if (how == "prev") {
+ if (n > doc.first) {
+ indentation = countColumn(getLine(doc, n - 1).text, null, tabSize);
+ } else {
+ indentation = 0;
+ }
+ } else if (how == "add") {
+ indentation = curSpace + cm.options.indentUnit;
+ } else if (how == "subtract") {
+ indentation = curSpace - cm.options.indentUnit;
+ } else if (typeof how == "number") {
+ indentation = curSpace + how;
+ }
+ indentation = Math.max(0, indentation);
+ var indentString = "",
+ pos = 0;
+ if (cm.options.indentWithTabs) {
+ for (var i = Math.floor(indentation / tabSize); i; --i) {
+ pos += tabSize;
+ indentString += "\t";
+ }
+ }
+ if (pos < indentation) {
+ indentString += spaceStr(indentation - pos);
+ }
+ if (indentString != curSpaceString) {
+ replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), "+input");
+ line.stateAfter = null;
+ return true;
+ } else {
+ // Ensure that, if the cursor was in the whitespace at the start
+ // of the line, it is moved to the end of that space.
+ for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {
+ var range = doc.sel.ranges[i$1];
+ if (range.head.line == n && range.head.ch < curSpaceString.length) {
+ var pos$1 = Pos(n, curSpaceString.length);
+ replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));
+ break;
+ }
+ }
+ }
+ }
+
+ // This will be set to a {lineWise: bool, text: [string]} object, so
+ // that, when pasting, we know what kind of selections the copied
+ // text was made out of.
+ var lastCopied = null;
+ function setLastCopied(newLastCopied) {
+ lastCopied = newLastCopied;
+ }
+ function applyTextInput(cm, inserted, deleted, sel, origin) {
+ var doc = cm.doc;
+ cm.display.shift = false;
+ if (!sel) {
+ sel = doc.sel;
+ }
+ var recent = +new Date() - 200;
+ var paste = origin == "paste" || cm.state.pasteIncoming > recent;
+ var textLines = splitLinesAuto(inserted),
+ multiPaste = null;
+ // When pasting N lines into N selections, insert one line per selection
+ if (paste && sel.ranges.length > 1) {
+ if (lastCopied && lastCopied.text.join("\n") == inserted) {
+ if (sel.ranges.length % lastCopied.text.length == 0) {
+ multiPaste = [];
+ for (var i = 0; i < lastCopied.text.length; i++) {
+ multiPaste.push(doc.splitLines(lastCopied.text[i]));
+ }
+ }
+ } else if (textLines.length == sel.ranges.length && cm.options.pasteLinesPerSelection) {
+ multiPaste = map(textLines, function (l) {
+ return [l];
+ });
+ }
+ }
+ var updateInput = cm.curOp.updateInput;
+ // Normal behavior is to insert the new text into every selection
+ for (var i$1 = sel.ranges.length - 1; i$1 >= 0; i$1--) {
+ var range = sel.ranges[i$1];
+ var from = range.from(),
+ to = range.to();
+ if (range.empty()) {
+ if (deleted && deleted > 0)
+ // Handle deletion
+ {
+ from = Pos(from.line, from.ch - deleted);
+ } else if (cm.state.overwrite && !paste)
+ // Handle overwrite
+ {
+ to = Pos(to.line, Math.min(getLine(doc, to.line).text.length, to.ch + lst(textLines).length));
+ } else if (paste && lastCopied && lastCopied.lineWise && lastCopied.text.join("\n") == textLines.join("\n")) {
+ from = to = Pos(from.line, 0);
+ }
+ }
+ var changeEvent = {
+ from: from,
+ to: to,
+ text: multiPaste ? multiPaste[i$1 % multiPaste.length] : textLines,
+ origin: origin || (paste ? "paste" : cm.state.cutIncoming > recent ? "cut" : "+input")
+ };
+ makeChange(cm.doc, changeEvent);
+ signalLater(cm, "inputRead", cm, changeEvent);
+ }
+ if (inserted && !paste) {
+ triggerElectric(cm, inserted);
+ }
+ ensureCursorVisible(cm);
+ if (cm.curOp.updateInput < 2) {
+ cm.curOp.updateInput = updateInput;
+ }
+ cm.curOp.typing = true;
+ cm.state.pasteIncoming = cm.state.cutIncoming = -1;
+ }
+ function handlePaste(e, cm) {
+ var pasted = e.clipboardData && e.clipboardData.getData("Text");
+ if (pasted) {
+ e.preventDefault();
+ if (!cm.isReadOnly() && !cm.options.disableInput) {
+ runInOp(cm, function () {
+ return applyTextInput(cm, pasted, 0, null, "paste");
+ });
+ }
+ return true;
+ }
+ }
+ function triggerElectric(cm, inserted) {
+ // When an 'electric' character is inserted, immediately trigger a reindent
+ if (!cm.options.electricChars || !cm.options.smartIndent) {
+ return;
+ }
+ var sel = cm.doc.sel;
+ for (var i = sel.ranges.length - 1; i >= 0; i--) {
+ var range = sel.ranges[i];
+ if (range.head.ch > 100 || i && sel.ranges[i - 1].head.line == range.head.line) {
+ continue;
+ }
+ var mode = cm.getModeAt(range.head);
+ var indented = false;
+ if (mode.electricChars) {
+ for (var j = 0; j < mode.electricChars.length; j++) {
+ if (inserted.indexOf(mode.electricChars.charAt(j)) > -1) {
+ indented = indentLine(cm, range.head.line, "smart");
+ break;
+ }
+ }
+ } else if (mode.electricInput) {
+ if (mode.electricInput.test(getLine(cm.doc, range.head.line).text.slice(0, range.head.ch))) {
+ indented = indentLine(cm, range.head.line, "smart");
+ }
+ }
+ if (indented) {
+ signalLater(cm, "electricInput", cm, range.head.line);
+ }
+ }
+ }
+ function copyableRanges(cm) {
+ var text = [],
+ ranges = [];
+ for (var i = 0; i < cm.doc.sel.ranges.length; i++) {
+ var line = cm.doc.sel.ranges[i].head.line;
+ var lineRange = {
+ anchor: Pos(line, 0),
+ head: Pos(line + 1, 0)
+ };
+ ranges.push(lineRange);
+ text.push(cm.getRange(lineRange.anchor, lineRange.head));
+ }
+ return {
+ text: text,
+ ranges: ranges
+ };
+ }
+ function disableBrowserMagic(field, spellcheck, autocorrect, autocapitalize) {
+ field.setAttribute("autocorrect", autocorrect ? "" : "off");
+ field.setAttribute("autocapitalize", autocapitalize ? "" : "off");
+ field.setAttribute("spellcheck", !!spellcheck);
+ }
+ function hiddenTextarea() {
+ var te = elt("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none");
+ var div = elt("div", [te], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");
+ // The textarea is kept positioned near the cursor to prevent the
+ // fact that it'll be scrolled into view on input from scrolling
+ // our fake cursor out of view. On webkit, when wrap=off, paste is
+ // very slow. So make the area wide instead.
+ if (webkit) {
+ te.style.width = "1000px";
+ } else {
+ te.setAttribute("wrap", "off");
+ }
+ // If border: 0; -- iOS fails to open keyboard (issue #1287)
+ if (ios) {
+ te.style.border = "1px solid black";
+ }
+ disableBrowserMagic(te);
+ return div;
+ }
+
+ // The publicly visible API. Note that methodOp(f) means
+ // 'wrap f in an operation, performed on its `this` parameter'.
+
+ // This is not the complete set of editor methods. Most of the
+ // methods defined on the Doc type are also injected into
+ // CodeMirror.prototype, for backwards compatibility and
+ // convenience.
+
+ function addEditorMethods(CodeMirror) {
+ var optionHandlers = CodeMirror.optionHandlers;
+ var helpers = CodeMirror.helpers = {};
+ CodeMirror.prototype = {
+ constructor: CodeMirror,
+ focus: function () {
+ window.focus();
+ this.display.input.focus();
+ },
+ setOption: function (option, value) {
+ var options = this.options,
+ old = options[option];
+ if (options[option] == value && option != "mode") {
+ return;
+ }
+ options[option] = value;
+ if (optionHandlers.hasOwnProperty(option)) {
+ operation(this, optionHandlers[option])(this, value, old);
+ }
+ signal(this, "optionChange", this, option);
+ },
+ getOption: function (option) {
+ return this.options[option];
+ },
+ getDoc: function () {
+ return this.doc;
+ },
+ addKeyMap: function (map, bottom) {
+ this.state.keyMaps[bottom ? "push" : "unshift"](getKeyMap(map));
+ },
+ removeKeyMap: function (map) {
+ var maps = this.state.keyMaps;
+ for (var i = 0; i < maps.length; ++i) {
+ if (maps[i] == map || maps[i].name == map) {
+ maps.splice(i, 1);
+ return true;
+ }
+ }
+ },
+ addOverlay: methodOp(function (spec, options) {
+ var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);
+ if (mode.startState) {
+ throw new Error("Overlays may not be stateful.");
+ }
+ insertSorted(this.state.overlays, {
+ mode: mode,
+ modeSpec: spec,
+ opaque: options && options.opaque,
+ priority: options && options.priority || 0
+ }, function (overlay) {
+ return overlay.priority;
+ });
+ this.state.modeGen++;
+ regChange(this);
+ }),
+ removeOverlay: methodOp(function (spec) {
+ var overlays = this.state.overlays;
+ for (var i = 0; i < overlays.length; ++i) {
+ var cur = overlays[i].modeSpec;
+ if (cur == spec || typeof spec == "string" && cur.name == spec) {
+ overlays.splice(i, 1);
+ this.state.modeGen++;
+ regChange(this);
+ return;
+ }
+ }
+ }),
+ indentLine: methodOp(function (n, dir, aggressive) {
+ if (typeof dir != "string" && typeof dir != "number") {
+ if (dir == null) {
+ dir = this.options.smartIndent ? "smart" : "prev";
+ } else {
+ dir = dir ? "add" : "subtract";
+ }
+ }
+ if (isLine(this.doc, n)) {
+ indentLine(this, n, dir, aggressive);
+ }
+ }),
+ indentSelection: methodOp(function (how) {
+ var ranges = this.doc.sel.ranges,
+ end = -1;
+ for (var i = 0; i < ranges.length; i++) {
+ var range = ranges[i];
+ if (!range.empty()) {
+ var from = range.from(),
+ to = range.to();
+ var start = Math.max(end, from.line);
+ end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;
+ for (var j = start; j < end; ++j) {
+ indentLine(this, j, how);
+ }
+ var newRanges = this.doc.sel.ranges;
+ if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0) {
+ replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll);
+ }
+ } else if (range.head.line > end) {
+ indentLine(this, range.head.line, how, true);
+ end = range.head.line;
+ if (i == this.doc.sel.primIndex) {
+ ensureCursorVisible(this);
+ }
+ }
+ }
+ }),
+ // Fetch the parser token for a given character. Useful for hacks
+ // that want to inspect the mode state (say, for completion).
+ getTokenAt: function (pos, precise) {
+ return takeToken(this, pos, precise);
+ },
+ getLineTokens: function (line, precise) {
+ return takeToken(this, Pos(line), precise, true);
+ },
+ getTokenTypeAt: function (pos) {
+ pos = clipPos(this.doc, pos);
+ var styles = getLineStyles(this, getLine(this.doc, pos.line));
+ var before = 0,
+ after = (styles.length - 1) / 2,
+ ch = pos.ch;
+ var type;
+ if (ch == 0) {
+ type = styles[2];
+ } else {
+ for (;;) {
+ var mid = before + after >> 1;
+ if ((mid ? styles[mid * 2 - 1] : 0) >= ch) {
+ after = mid;
+ } else if (styles[mid * 2 + 1] < ch) {
+ before = mid + 1;
+ } else {
+ type = styles[mid * 2 + 2];
+ break;
+ }
+ }
+ }
+ var cut = type ? type.indexOf("overlay ") : -1;
+ return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1);
+ },
+ getModeAt: function (pos) {
+ var mode = this.doc.mode;
+ if (!mode.innerMode) {
+ return mode;
+ }
+ return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode;
+ },
+ getHelper: function (pos, type) {
+ return this.getHelpers(pos, type)[0];
+ },
+ getHelpers: function (pos, type) {
+ var found = [];
+ if (!helpers.hasOwnProperty(type)) {
+ return found;
+ }
+ var help = helpers[type],
+ mode = this.getModeAt(pos);
+ if (typeof mode[type] == "string") {
+ if (help[mode[type]]) {
+ found.push(help[mode[type]]);
+ }
+ } else if (mode[type]) {
+ for (var i = 0; i < mode[type].length; i++) {
+ var val = help[mode[type][i]];
+ if (val) {
+ found.push(val);
+ }
+ }
+ } else if (mode.helperType && help[mode.helperType]) {
+ found.push(help[mode.helperType]);
+ } else if (help[mode.name]) {
+ found.push(help[mode.name]);
+ }
+ for (var i$1 = 0; i$1 < help._global.length; i$1++) {
+ var cur = help._global[i$1];
+ if (cur.pred(mode, this) && indexOf(found, cur.val) == -1) {
+ found.push(cur.val);
+ }
+ }
+ return found;
+ },
+ getStateAfter: function (line, precise) {
+ var doc = this.doc;
+ line = clipLine(doc, line == null ? doc.first + doc.size - 1 : line);
+ return getContextBefore(this, line + 1, precise).state;
+ },
+ cursorCoords: function (start, mode) {
+ var pos,
+ range = this.doc.sel.primary();
+ if (start == null) {
+ pos = range.head;
+ } else if (typeof start == "object") {
+ pos = clipPos(this.doc, start);
+ } else {
+ pos = start ? range.from() : range.to();
+ }
+ return cursorCoords(this, pos, mode || "page");
+ },
+ charCoords: function (pos, mode) {
+ return charCoords(this, clipPos(this.doc, pos), mode || "page");
+ },
+ coordsChar: function (coords, mode) {
+ coords = fromCoordSystem(this, coords, mode || "page");
+ return coordsChar(this, coords.left, coords.top);
+ },
+ lineAtHeight: function (height, mode) {
+ height = fromCoordSystem(this, {
+ top: height,
+ left: 0
+ }, mode || "page").top;
+ return lineAtHeight(this.doc, height + this.display.viewOffset);
+ },
+ heightAtLine: function (line, mode, includeWidgets) {
+ var end = false,
+ lineObj;
+ if (typeof line == "number") {
+ var last = this.doc.first + this.doc.size - 1;
+ if (line < this.doc.first) {
+ line = this.doc.first;
+ } else if (line > last) {
+ line = last;
+ end = true;
+ }
+ lineObj = getLine(this.doc, line);
+ } else {
+ lineObj = line;
+ }
+ return intoCoordSystem(this, lineObj, {
+ top: 0,
+ left: 0
+ }, mode || "page", includeWidgets || end).top + (end ? this.doc.height - heightAtLine(lineObj) : 0);
+ },
+ defaultTextHeight: function () {
+ return textHeight(this.display);
+ },
+ defaultCharWidth: function () {
+ return charWidth(this.display);
+ },
+ getViewport: function () {
+ return {
+ from: this.display.viewFrom,
+ to: this.display.viewTo
+ };
+ },
+ addWidget: function (pos, node, scroll, vert, horiz) {
+ var display = this.display;
+ pos = cursorCoords(this, clipPos(this.doc, pos));
+ var top = pos.bottom,
+ left = pos.left;
+ node.style.position = "absolute";
+ node.setAttribute("cm-ignore-events", "true");
+ this.display.input.setUneditable(node);
+ display.sizer.appendChild(node);
+ if (vert == "over") {
+ top = pos.top;
+ } else if (vert == "above" || vert == "near") {
+ var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),
+ hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);
+ // Default to positioning above (if specified and possible); otherwise default to positioning below
+ if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight) {
+ top = pos.top - node.offsetHeight;
+ } else if (pos.bottom + node.offsetHeight <= vspace) {
+ top = pos.bottom;
+ }
+ if (left + node.offsetWidth > hspace) {
+ left = hspace - node.offsetWidth;
+ }
+ }
+ node.style.top = top + "px";
+ node.style.left = node.style.right = "";
+ if (horiz == "right") {
+ left = display.sizer.clientWidth - node.offsetWidth;
+ node.style.right = "0px";
+ } else {
+ if (horiz == "left") {
+ left = 0;
+ } else if (horiz == "middle") {
+ left = (display.sizer.clientWidth - node.offsetWidth) / 2;
+ }
+ node.style.left = left + "px";
+ }
+ if (scroll) {
+ scrollIntoView(this, {
+ left: left,
+ top: top,
+ right: left + node.offsetWidth,
+ bottom: top + node.offsetHeight
+ });
+ }
+ },
+ triggerOnKeyDown: methodOp(onKeyDown),
+ triggerOnKeyPress: methodOp(onKeyPress),
+ triggerOnKeyUp: onKeyUp,
+ triggerOnMouseDown: methodOp(onMouseDown),
+ execCommand: function (cmd) {
+ if (commands.hasOwnProperty(cmd)) {
+ return commands[cmd].call(null, this);
+ }
+ },
+ triggerElectric: methodOp(function (text) {
+ triggerElectric(this, text);
+ }),
+ findPosH: function (from, amount, unit, visually) {
+ var dir = 1;
+ if (amount < 0) {
+ dir = -1;
+ amount = -amount;
+ }
+ var cur = clipPos(this.doc, from);
+ for (var i = 0; i < amount; ++i) {
+ cur = findPosH(this.doc, cur, dir, unit, visually);
+ if (cur.hitSide) {
+ break;
+ }
+ }
+ return cur;
+ },
+ moveH: methodOp(function (dir, unit) {
+ var this$1 = this;
+ this.extendSelectionsBy(function (range) {
+ if (this$1.display.shift || this$1.doc.extend || range.empty()) {
+ return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually);
+ } else {
+ return dir < 0 ? range.from() : range.to();
+ }
+ }, sel_move);
+ }),
+ deleteH: methodOp(function (dir, unit) {
+ var sel = this.doc.sel,
+ doc = this.doc;
+ if (sel.somethingSelected()) {
+ doc.replaceSelection("", null, "+delete");
+ } else {
+ deleteNearSelection(this, function (range) {
+ var other = findPosH(doc, range.head, dir, unit, false);
+ return dir < 0 ? {
+ from: other,
+ to: range.head
+ } : {
+ from: range.head,
+ to: other
+ };
+ });
+ }
+ }),
+ findPosV: function (from, amount, unit, goalColumn) {
+ var dir = 1,
+ x = goalColumn;
+ if (amount < 0) {
+ dir = -1;
+ amount = -amount;
+ }
+ var cur = clipPos(this.doc, from);
+ for (var i = 0; i < amount; ++i) {
+ var coords = cursorCoords(this, cur, "div");
+ if (x == null) {
+ x = coords.left;
+ } else {
+ coords.left = x;
+ }
+ cur = findPosV(this, coords, dir, unit);
+ if (cur.hitSide) {
+ break;
+ }
+ }
+ return cur;
+ },
+ moveV: methodOp(function (dir, unit) {
+ var this$1 = this;
+ var doc = this.doc,
+ goals = [];
+ var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();
+ doc.extendSelectionsBy(function (range) {
+ if (collapse) {
+ return dir < 0 ? range.from() : range.to();
+ }
+ var headPos = cursorCoords(this$1, range.head, "div");
+ if (range.goalColumn != null) {
+ headPos.left = range.goalColumn;
+ }
+ goals.push(headPos.left);
+ var pos = findPosV(this$1, headPos, dir, unit);
+ if (unit == "page" && range == doc.sel.primary()) {
+ addToScrollTop(this$1, charCoords(this$1, pos, "div").top - headPos.top);
+ }
+ return pos;
+ }, sel_move);
+ if (goals.length) {
+ for (var i = 0; i < doc.sel.ranges.length; i++) {
+ doc.sel.ranges[i].goalColumn = goals[i];
+ }
+ }
+ }),
+ // Find the word at the given position (as returned by coordsChar).
+ findWordAt: function (pos) {
+ var doc = this.doc,
+ line = getLine(doc, pos.line).text;
+ var start = pos.ch,
+ end = pos.ch;
+ if (line) {
+ var helper = this.getHelper(pos, "wordChars");
+ if ((pos.sticky == "before" || end == line.length) && start) {
+ --start;
+ } else {
+ ++end;
+ }
+ var startChar = line.charAt(start);
+ var check = isWordChar(startChar, helper) ? function (ch) {
+ return isWordChar(ch, helper);
+ } : /\s/.test(startChar) ? function (ch) {
+ return /\s/.test(ch);
+ } : function (ch) {
+ return !/\s/.test(ch) && !isWordChar(ch);
+ };
+ while (start > 0 && check(line.charAt(start - 1))) {
+ --start;
+ }
+ while (end < line.length && check(line.charAt(end))) {
+ ++end;
+ }
+ }
+ return new Range(Pos(pos.line, start), Pos(pos.line, end));
+ },
+ toggleOverwrite: function (value) {
+ if (value != null && value == this.state.overwrite) {
+ return;
+ }
+ if (this.state.overwrite = !this.state.overwrite) {
+ addClass(this.display.cursorDiv, "CodeMirror-overwrite");
+ } else {
+ rmClass(this.display.cursorDiv, "CodeMirror-overwrite");
+ }
+ signal(this, "overwriteToggle", this, this.state.overwrite);
+ },
+ hasFocus: function () {
+ return this.display.input.getField() == activeElt();
+ },
+ isReadOnly: function () {
+ return !!(this.options.readOnly || this.doc.cantEdit);
+ },
+ scrollTo: methodOp(function (x, y) {
+ scrollToCoords(this, x, y);
+ }),
+ getScrollInfo: function () {
+ var scroller = this.display.scroller;
+ return {
+ left: scroller.scrollLeft,
+ top: scroller.scrollTop,
+ height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,
+ width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,
+ clientHeight: displayHeight(this),
+ clientWidth: displayWidth(this)
+ };
+ },
+ scrollIntoView: methodOp(function (range, margin) {
+ if (range == null) {
+ range = {
+ from: this.doc.sel.primary().head,
+ to: null
+ };
+ if (margin == null) {
+ margin = this.options.cursorScrollMargin;
+ }
+ } else if (typeof range == "number") {
+ range = {
+ from: Pos(range, 0),
+ to: null
+ };
+ } else if (range.from == null) {
+ range = {
+ from: range,
+ to: null
+ };
+ }
+ if (!range.to) {
+ range.to = range.from;
+ }
+ range.margin = margin || 0;
+ if (range.from.line != null) {
+ scrollToRange(this, range);
+ } else {
+ scrollToCoordsRange(this, range.from, range.to, range.margin);
+ }
+ }),
+ setSize: methodOp(function (width, height) {
+ var this$1 = this;
+ var interpret = function (val) {
+ return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val;
+ };
+ if (width != null) {
+ this.display.wrapper.style.width = interpret(width);
+ }
+ if (height != null) {
+ this.display.wrapper.style.height = interpret(height);
+ }
+ if (this.options.lineWrapping) {
+ clearLineMeasurementCache(this);
+ }
+ var lineNo = this.display.viewFrom;
+ this.doc.iter(lineNo, this.display.viewTo, function (line) {
+ if (line.widgets) {
+ for (var i = 0; i < line.widgets.length; i++) {
+ if (line.widgets[i].noHScroll) {
+ regLineChange(this$1, lineNo, "widget");
+ break;
+ }
+ }
+ }
+ ++lineNo;
+ });
+ this.curOp.forceUpdate = true;
+ signal(this, "refresh", this);
+ }),
+ operation: function (f) {
+ return runInOp(this, f);
+ },
+ startOperation: function () {
+ return startOperation(this);
+ },
+ endOperation: function () {
+ return endOperation(this);
+ },
+ refresh: methodOp(function () {
+ var oldHeight = this.display.cachedTextHeight;
+ regChange(this);
+ this.curOp.forceUpdate = true;
+ clearCaches(this);
+ scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);
+ updateGutterSpace(this.display);
+ if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping) {
+ estimateLineHeights(this);
+ }
+ signal(this, "refresh", this);
+ }),
+ swapDoc: methodOp(function (doc) {
+ var old = this.doc;
+ old.cm = null;
+ // Cancel the current text selection if any (#5821)
+ if (this.state.selectingText) {
+ this.state.selectingText();
+ }
+ attachDoc(this, doc);
+ clearCaches(this);
+ this.display.input.reset();
+ scrollToCoords(this, doc.scrollLeft, doc.scrollTop);
+ this.curOp.forceScroll = true;
+ signalLater(this, "swapDoc", this, old);
+ return old;
+ }),
+ phrase: function (phraseText) {
+ var phrases = this.options.phrases;
+ return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText;
+ },
+ getInputField: function () {
+ return this.display.input.getField();
+ },
+ getWrapperElement: function () {
+ return this.display.wrapper;
+ },
+ getScrollerElement: function () {
+ return this.display.scroller;
+ },
+ getGutterElement: function () {
+ return this.display.gutters;
+ }
+ };
+ eventMixin(CodeMirror);
+ CodeMirror.registerHelper = function (type, name, value) {
+ if (!helpers.hasOwnProperty(type)) {
+ helpers[type] = CodeMirror[type] = {
+ _global: []
+ };
+ }
+ helpers[type][name] = value;
+ };
+ CodeMirror.registerGlobalHelper = function (type, name, predicate, value) {
+ CodeMirror.registerHelper(type, name, value);
+ helpers[type]._global.push({
+ pred: predicate,
+ val: value
+ });
+ };
+ }
+
+ // Used for horizontal relative motion. Dir is -1 or 1 (left or
+ // right), unit can be "codepoint", "char", "column" (like char, but
+ // doesn't cross line boundaries), "word" (across next word), or
+ // "group" (to the start of next group of word or
+ // non-word-non-whitespace chars). The visually param controls
+ // whether, in right-to-left text, direction 1 means to move towards
+ // the next index in the string, or towards the character to the right
+ // of the current position. The resulting position will have a
+ // hitSide=true property if it reached the end of the document.
+ function findPosH(doc, pos, dir, unit, visually) {
+ var oldPos = pos;
+ var origDir = dir;
+ var lineObj = getLine(doc, pos.line);
+ var lineDir = visually && doc.direction == "rtl" ? -dir : dir;
+ function findNextLine() {
+ var l = pos.line + lineDir;
+ if (l < doc.first || l >= doc.first + doc.size) {
+ return false;
+ }
+ pos = new Pos(l, pos.ch, pos.sticky);
+ return lineObj = getLine(doc, l);
+ }
+ function moveOnce(boundToLine) {
+ var next;
+ if (unit == "codepoint") {
+ var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));
+ if (isNaN(ch)) {
+ next = null;
+ } else {
+ var astral = dir > 0 ? ch >= 0xD800 && ch < 0xDC00 : ch >= 0xDC00 && ch < 0xDFFF;
+ next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);
+ }
+ } else if (visually) {
+ next = moveVisually(doc.cm, lineObj, pos, dir);
+ } else {
+ next = moveLogically(lineObj, pos, dir);
+ }
+ if (next == null) {
+ if (!boundToLine && findNextLine()) {
+ pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir);
+ } else {
+ return false;
+ }
+ } else {
+ pos = next;
+ }
+ return true;
+ }
+ if (unit == "char" || unit == "codepoint") {
+ moveOnce();
+ } else if (unit == "column") {
+ moveOnce(true);
+ } else if (unit == "word" || unit == "group") {
+ var sawType = null,
+ group = unit == "group";
+ var helper = doc.cm && doc.cm.getHelper(pos, "wordChars");
+ for (var first = true;; first = false) {
+ if (dir < 0 && !moveOnce(!first)) {
+ break;
+ }
+ var cur = lineObj.text.charAt(pos.ch) || "\n";
+ var type = isWordChar(cur, helper) ? "w" : group && cur == "\n" ? "n" : !group || /\s/.test(cur) ? null : "p";
+ if (group && !first && !type) {
+ type = "s";
+ }
+ if (sawType && sawType != type) {
+ if (dir < 0) {
+ dir = 1;
+ moveOnce();
+ pos.sticky = "after";
+ }
+ break;
+ }
+ if (type) {
+ sawType = type;
+ }
+ if (dir > 0 && !moveOnce(!first)) {
+ break;
+ }
+ }
+ }
+ var result = skipAtomic(doc, pos, oldPos, origDir, true);
+ if (equalCursorPos(oldPos, result)) {
+ result.hitSide = true;
+ }
+ return result;
+ }
+
+ // For relative vertical movement. Dir may be -1 or 1. Unit can be
+ // "page" or "line". The resulting position will have a hitSide=true
+ // property if it reached the end of the document.
+ function findPosV(cm, pos, dir, unit) {
+ var doc = cm.doc,
+ x = pos.left,
+ y;
+ if (unit == "page") {
+ var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);
+ var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);
+ y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;
+ } else if (unit == "line") {
+ y = dir > 0 ? pos.bottom + 3 : pos.top - 3;
+ }
+ var target;
+ for (;;) {
+ target = coordsChar(cm, x, y);
+ if (!target.outside) {
+ break;
+ }
+ if (dir < 0 ? y <= 0 : y >= doc.height) {
+ target.hitSide = true;
+ break;
+ }
+ y += dir * 5;
+ }
+ return target;
+ }
+
+ // CONTENTEDITABLE INPUT STYLE
+
+ var ContentEditableInput = function (cm) {
+ this.cm = cm;
+ this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null;
+ this.polling = new Delayed();
+ this.composing = null;
+ this.gracePeriod = false;
+ this.readDOMTimeout = null;
+ };
+ ContentEditableInput.prototype.init = function (display) {
+ var this$1 = this;
+ var input = this,
+ cm = input.cm;
+ var div = input.div = display.lineDiv;
+ div.contentEditable = true;
+ disableBrowserMagic(div, cm.options.spellcheck, cm.options.autocorrect, cm.options.autocapitalize);
+ function belongsToInput(e) {
+ for (var t = e.target; t; t = t.parentNode) {
+ if (t == div) {
+ return true;
+ }
+ if (/\bCodeMirror-(?:line)?widget\b/.test(t.className)) {
+ break;
+ }
+ }
+ return false;
+ }
+ on(div, "paste", function (e) {
+ if (!belongsToInput(e) || signalDOMEvent(cm, e) || handlePaste(e, cm)) {
+ return;
+ }
+ // IE doesn't fire input events, so we schedule a read for the pasted content in this way
+ if (ie_version <= 11) {
+ setTimeout(operation(cm, function () {
+ return this$1.updateFromDOM();
+ }), 20);
+ }
+ });
+ on(div, "compositionstart", function (e) {
+ this$1.composing = {
+ data: e.data,
+ done: false
+ };
+ });
+ on(div, "compositionupdate", function (e) {
+ if (!this$1.composing) {
+ this$1.composing = {
+ data: e.data,
+ done: false
+ };
+ }
+ });
+ on(div, "compositionend", function (e) {
+ if (this$1.composing) {
+ if (e.data != this$1.composing.data) {
+ this$1.readFromDOMSoon();
+ }
+ this$1.composing.done = true;
+ }
+ });
+ on(div, "touchstart", function () {
+ return input.forceCompositionEnd();
+ });
+ on(div, "input", function () {
+ if (!this$1.composing) {
+ this$1.readFromDOMSoon();
+ }
+ });
+ function onCopyCut(e) {
+ if (!belongsToInput(e) || signalDOMEvent(cm, e)) {
+ return;
+ }
+ if (cm.somethingSelected()) {
+ setLastCopied({
+ lineWise: false,
+ text: cm.getSelections()
+ });
+ if (e.type == "cut") {
+ cm.replaceSelection("", null, "cut");
+ }
+ } else if (!cm.options.lineWiseCopyCut) {
+ return;
+ } else {
+ var ranges = copyableRanges(cm);
+ setLastCopied({
+ lineWise: true,
+ text: ranges.text
+ });
+ if (e.type == "cut") {
+ cm.operation(function () {
+ cm.setSelections(ranges.ranges, 0, sel_dontScroll);
+ cm.replaceSelection("", null, "cut");
+ });
+ }
+ }
+ if (e.clipboardData) {
+ e.clipboardData.clearData();
+ var content = lastCopied.text.join("\n");
+ // iOS exposes the clipboard API, but seems to discard content inserted into it
+ e.clipboardData.setData("Text", content);
+ if (e.clipboardData.getData("Text") == content) {
+ e.preventDefault();
+ return;
+ }
+ }
+ // Old-fashioned briefly-focus-a-textarea hack
+ var kludge = hiddenTextarea(),
+ te = kludge.firstChild;
+ cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);
+ te.value = lastCopied.text.join("\n");
+ var hadFocus = activeElt();
+ selectInput(te);
+ setTimeout(function () {
+ cm.display.lineSpace.removeChild(kludge);
+ hadFocus.focus();
+ if (hadFocus == div) {
+ input.showPrimarySelection();
+ }
+ }, 50);
+ }
+ on(div, "copy", onCopyCut);
+ on(div, "cut", onCopyCut);
+ };
+ ContentEditableInput.prototype.screenReaderLabelChanged = function (label) {
+ // Label for screenreaders, accessibility
+ if (label) {
+ this.div.setAttribute('aria-label', label);
+ } else {
+ this.div.removeAttribute('aria-label');
+ }
+ };
+ ContentEditableInput.prototype.prepareSelection = function () {
+ var result = prepareSelection(this.cm, false);
+ result.focus = activeElt() == this.div;
+ return result;
+ };
+ ContentEditableInput.prototype.showSelection = function (info, takeFocus) {
+ if (!info || !this.cm.display.view.length) {
+ return;
+ }
+ if (info.focus || takeFocus) {
+ this.showPrimarySelection();
+ }
+ this.showMultipleSelections(info);
+ };
+ ContentEditableInput.prototype.getSelection = function () {
+ return this.cm.display.wrapper.ownerDocument.getSelection();
+ };
+ ContentEditableInput.prototype.showPrimarySelection = function () {
+ var sel = this.getSelection(),
+ cm = this.cm,
+ prim = cm.doc.sel.primary();
+ var from = prim.from(),
+ to = prim.to();
+ if (cm.display.viewTo == cm.display.viewFrom || from.line >= cm.display.viewTo || to.line < cm.display.viewFrom) {
+ sel.removeAllRanges();
+ return;
+ }
+ var curAnchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);
+ var curFocus = domToPos(cm, sel.focusNode, sel.focusOffset);
+ if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad && cmp(minPos(curAnchor, curFocus), from) == 0 && cmp(maxPos(curAnchor, curFocus), to) == 0) {
+ return;
+ }
+ var view = cm.display.view;
+ var start = from.line >= cm.display.viewFrom && posToDOM(cm, from) || {
+ node: view[0].measure.map[2],
+ offset: 0
+ };
+ var end = to.line < cm.display.viewTo && posToDOM(cm, to);
+ if (!end) {
+ var measure = view[view.length - 1].measure;
+ var map = measure.maps ? measure.maps[measure.maps.length - 1] : measure.map;
+ end = {
+ node: map[map.length - 1],
+ offset: map[map.length - 2] - map[map.length - 3]
+ };
+ }
+ if (!start || !end) {
+ sel.removeAllRanges();
+ return;
+ }
+ var old = sel.rangeCount && sel.getRangeAt(0),
+ rng;
+ try {
+ rng = range(start.node, start.offset, end.offset, end.node);
+ } catch (e) {} // Our model of the DOM might be outdated, in which case the range we try to set can be impossible
+ if (rng) {
+ if (!gecko && cm.state.focused) {
+ sel.collapse(start.node, start.offset);
+ if (!rng.collapsed) {
+ sel.removeAllRanges();
+ sel.addRange(rng);
+ }
+ } else {
+ sel.removeAllRanges();
+ sel.addRange(rng);
+ }
+ if (old && sel.anchorNode == null) {
+ sel.addRange(old);
+ } else if (gecko) {
+ this.startGracePeriod();
+ }
+ }
+ this.rememberSelection();
+ };
+ ContentEditableInput.prototype.startGracePeriod = function () {
+ var this$1 = this;
+ clearTimeout(this.gracePeriod);
+ this.gracePeriod = setTimeout(function () {
+ this$1.gracePeriod = false;
+ if (this$1.selectionChanged()) {
+ this$1.cm.operation(function () {
+ return this$1.cm.curOp.selectionChanged = true;
+ });
+ }
+ }, 20);
+ };
+ ContentEditableInput.prototype.showMultipleSelections = function (info) {
+ removeChildrenAndAdd(this.cm.display.cursorDiv, info.cursors);
+ removeChildrenAndAdd(this.cm.display.selectionDiv, info.selection);
+ };
+ ContentEditableInput.prototype.rememberSelection = function () {
+ var sel = this.getSelection();
+ this.lastAnchorNode = sel.anchorNode;
+ this.lastAnchorOffset = sel.anchorOffset;
+ this.lastFocusNode = sel.focusNode;
+ this.lastFocusOffset = sel.focusOffset;
+ };
+ ContentEditableInput.prototype.selectionInEditor = function () {
+ var sel = this.getSelection();
+ if (!sel.rangeCount) {
+ return false;
+ }
+ var node = sel.getRangeAt(0).commonAncestorContainer;
+ return contains(this.div, node);
+ };
+ ContentEditableInput.prototype.focus = function () {
+ if (this.cm.options.readOnly != "nocursor") {
+ if (!this.selectionInEditor() || activeElt() != this.div) {
+ this.showSelection(this.prepareSelection(), true);
+ }
+ this.div.focus();
+ }
+ };
+ ContentEditableInput.prototype.blur = function () {
+ this.div.blur();
+ };
+ ContentEditableInput.prototype.getField = function () {
+ return this.div;
+ };
+ ContentEditableInput.prototype.supportsTouch = function () {
+ return true;
+ };
+ ContentEditableInput.prototype.receivedFocus = function () {
+ var this$1 = this;
+ var input = this;
+ if (this.selectionInEditor()) {
+ setTimeout(function () {
+ return this$1.pollSelection();
+ }, 20);
+ } else {
+ runInOp(this.cm, function () {
+ return input.cm.curOp.selectionChanged = true;
+ });
+ }
+ function poll() {
+ if (input.cm.state.focused) {
+ input.pollSelection();
+ input.polling.set(input.cm.options.pollInterval, poll);
+ }
+ }
+ this.polling.set(this.cm.options.pollInterval, poll);
+ };
+ ContentEditableInput.prototype.selectionChanged = function () {
+ var sel = this.getSelection();
+ return sel.anchorNode != this.lastAnchorNode || sel.anchorOffset != this.lastAnchorOffset || sel.focusNode != this.lastFocusNode || sel.focusOffset != this.lastFocusOffset;
+ };
+ ContentEditableInput.prototype.pollSelection = function () {
+ if (this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged()) {
+ return;
+ }
+ var sel = this.getSelection(),
+ cm = this.cm;
+ // On Android Chrome (version 56, at least), backspacing into an
+ // uneditable block element will put the cursor in that element,
+ // and then, because it's not editable, hide the virtual keyboard.
+ // Because Android doesn't allow us to actually detect backspace
+ // presses in a sane way, this code checks for when that happens
+ // and simulates a backspace press in this case.
+ if (android && chrome && this.cm.display.gutterSpecs.length && isInGutter(sel.anchorNode)) {
+ this.cm.triggerOnKeyDown({
+ type: "keydown",
+ keyCode: 8,
+ preventDefault: Math.abs
+ });
+ this.blur();
+ this.focus();
+ return;
+ }
+ if (this.composing) {
+ return;
+ }
+ this.rememberSelection();
+ var anchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);
+ var head = domToPos(cm, sel.focusNode, sel.focusOffset);
+ if (anchor && head) {
+ runInOp(cm, function () {
+ setSelection(cm.doc, simpleSelection(anchor, head), sel_dontScroll);
+ if (anchor.bad || head.bad) {
+ cm.curOp.selectionChanged = true;
+ }
+ });
+ }
+ };
+ ContentEditableInput.prototype.pollContent = function () {
+ if (this.readDOMTimeout != null) {
+ clearTimeout(this.readDOMTimeout);
+ this.readDOMTimeout = null;
+ }
+ var cm = this.cm,
+ display = cm.display,
+ sel = cm.doc.sel.primary();
+ var from = sel.from(),
+ to = sel.to();
+ if (from.ch == 0 && from.line > cm.firstLine()) {
+ from = Pos(from.line - 1, getLine(cm.doc, from.line - 1).length);
+ }
+ if (to.ch == getLine(cm.doc, to.line).text.length && to.line < cm.lastLine()) {
+ to = Pos(to.line + 1, 0);
+ }
+ if (from.line < display.viewFrom || to.line > display.viewTo - 1) {
+ return false;
+ }
+ var fromIndex, fromLine, fromNode;
+ if (from.line == display.viewFrom || (fromIndex = findViewIndex(cm, from.line)) == 0) {
+ fromLine = lineNo(display.view[0].line);
+ fromNode = display.view[0].node;
+ } else {
+ fromLine = lineNo(display.view[fromIndex].line);
+ fromNode = display.view[fromIndex - 1].node.nextSibling;
+ }
+ var toIndex = findViewIndex(cm, to.line);
+ var toLine, toNode;
+ if (toIndex == display.view.length - 1) {
+ toLine = display.viewTo - 1;
+ toNode = display.lineDiv.lastChild;
+ } else {
+ toLine = lineNo(display.view[toIndex + 1].line) - 1;
+ toNode = display.view[toIndex + 1].node.previousSibling;
+ }
+ if (!fromNode) {
+ return false;
+ }
+ var newText = cm.doc.splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine));
+ var oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length));
+ while (newText.length > 1 && oldText.length > 1) {
+ if (lst(newText) == lst(oldText)) {
+ newText.pop();
+ oldText.pop();
+ toLine--;
+ } else if (newText[0] == oldText[0]) {
+ newText.shift();
+ oldText.shift();
+ fromLine++;
+ } else {
+ break;
+ }
+ }
+ var cutFront = 0,
+ cutEnd = 0;
+ var newTop = newText[0],
+ oldTop = oldText[0],
+ maxCutFront = Math.min(newTop.length, oldTop.length);
+ while (cutFront < maxCutFront && newTop.charCodeAt(cutFront) == oldTop.charCodeAt(cutFront)) {
+ ++cutFront;
+ }
+ var newBot = lst(newText),
+ oldBot = lst(oldText);
+ var maxCutEnd = Math.min(newBot.length - (newText.length == 1 ? cutFront : 0), oldBot.length - (oldText.length == 1 ? cutFront : 0));
+ while (cutEnd < maxCutEnd && newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1)) {
+ ++cutEnd;
+ }
+ // Try to move start of change to start of selection if ambiguous
+ if (newText.length == 1 && oldText.length == 1 && fromLine == from.line) {
+ while (cutFront && cutFront > from.ch && newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1)) {
+ cutFront--;
+ cutEnd++;
+ }
+ }
+ newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd).replace(/^\u200b+/, "");
+ newText[0] = newText[0].slice(cutFront).replace(/\u200b+$/, "");
+ var chFrom = Pos(fromLine, cutFront);
+ var chTo = Pos(toLine, oldText.length ? lst(oldText).length - cutEnd : 0);
+ if (newText.length > 1 || newText[0] || cmp(chFrom, chTo)) {
+ replaceRange(cm.doc, newText, chFrom, chTo, "+input");
+ return true;
+ }
+ };
+ ContentEditableInput.prototype.ensurePolled = function () {
+ this.forceCompositionEnd();
+ };
+ ContentEditableInput.prototype.reset = function () {
+ this.forceCompositionEnd();
+ };
+ ContentEditableInput.prototype.forceCompositionEnd = function () {
+ if (!this.composing) {
+ return;
+ }
+ clearTimeout(this.readDOMTimeout);
+ this.composing = null;
+ this.updateFromDOM();
+ this.div.blur();
+ this.div.focus();
+ };
+ ContentEditableInput.prototype.readFromDOMSoon = function () {
+ var this$1 = this;
+ if (this.readDOMTimeout != null) {
+ return;
+ }
+ this.readDOMTimeout = setTimeout(function () {
+ this$1.readDOMTimeout = null;
+ if (this$1.composing) {
+ if (this$1.composing.done) {
+ this$1.composing = null;
+ } else {
+ return;
+ }
+ }
+ this$1.updateFromDOM();
+ }, 80);
+ };
+ ContentEditableInput.prototype.updateFromDOM = function () {
+ var this$1 = this;
+ if (this.cm.isReadOnly() || !this.pollContent()) {
+ runInOp(this.cm, function () {
+ return regChange(this$1.cm);
+ });
+ }
+ };
+ ContentEditableInput.prototype.setUneditable = function (node) {
+ node.contentEditable = "false";
+ };
+ ContentEditableInput.prototype.onKeyPress = function (e) {
+ if (e.charCode == 0 || this.composing) {
+ return;
+ }
+ e.preventDefault();
+ if (!this.cm.isReadOnly()) {
+ operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0);
+ }
+ };
+ ContentEditableInput.prototype.readOnlyChanged = function (val) {
+ this.div.contentEditable = String(val != "nocursor");
+ };
+ ContentEditableInput.prototype.onContextMenu = function () {};
+ ContentEditableInput.prototype.resetPosition = function () {};
+ ContentEditableInput.prototype.needsContentAttribute = true;
+ function posToDOM(cm, pos) {
+ var view = findViewForLine(cm, pos.line);
+ if (!view || view.hidden) {
+ return null;
+ }
+ var line = getLine(cm.doc, pos.line);
+ var info = mapFromLineView(view, line, pos.line);
+ var order = getOrder(line, cm.doc.direction),
+ side = "left";
+ if (order) {
+ var partPos = getBidiPartAt(order, pos.ch);
+ side = partPos % 2 ? "right" : "left";
+ }
+ var result = nodeAndOffsetInLineMap(info.map, pos.ch, side);
+ result.offset = result.collapse == "right" ? result.end : result.start;
+ return result;
+ }
+ function isInGutter(node) {
+ for (var scan = node; scan; scan = scan.parentNode) {
+ if (/CodeMirror-gutter-wrapper/.test(scan.className)) {
+ return true;
+ }
+ }
+ return false;
+ }
+ function badPos(pos, bad) {
+ if (bad) {
+ pos.bad = true;
+ }
+ return pos;
+ }
+ function domTextBetween(cm, from, to, fromLine, toLine) {
+ var text = "",
+ closing = false,
+ lineSep = cm.doc.lineSeparator(),
+ extraLinebreak = false;
+ function recognizeMarker(id) {
+ return function (marker) {
+ return marker.id == id;
+ };
+ }
+ function close() {
+ if (closing) {
+ text += lineSep;
+ if (extraLinebreak) {
+ text += lineSep;
+ }
+ closing = extraLinebreak = false;
+ }
+ }
+ function addText(str) {
+ if (str) {
+ close();
+ text += str;
+ }
+ }
+ function walk(node) {
+ if (node.nodeType == 1) {
+ var cmText = node.getAttribute("cm-text");
+ if (cmText) {
+ addText(cmText);
+ return;
+ }
+ var markerID = node.getAttribute("cm-marker"),
+ range;
+ if (markerID) {
+ var found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), recognizeMarker(+markerID));
+ if (found.length && (range = found[0].find(0))) {
+ addText(getBetween(cm.doc, range.from, range.to).join(lineSep));
+ }
+ return;
+ }
+ if (node.getAttribute("contenteditable") == "false") {
+ return;
+ }
+ var isBlock = /^(pre|div|p|li|table|br)$/i.test(node.nodeName);
+ if (!/^br$/i.test(node.nodeName) && node.textContent.length == 0) {
+ return;
+ }
+ if (isBlock) {
+ close();
+ }
+ for (var i = 0; i < node.childNodes.length; i++) {
+ walk(node.childNodes[i]);
+ }
+ if (/^(pre|p)$/i.test(node.nodeName)) {
+ extraLinebreak = true;
+ }
+ if (isBlock) {
+ closing = true;
+ }
+ } else if (node.nodeType == 3) {
+ addText(node.nodeValue.replace(/\u200b/g, "").replace(/\u00a0/g, " "));
+ }
+ }
+ for (;;) {
+ walk(from);
+ if (from == to) {
+ break;
+ }
+ from = from.nextSibling;
+ extraLinebreak = false;
+ }
+ return text;
+ }
+ function domToPos(cm, node, offset) {
+ var lineNode;
+ if (node == cm.display.lineDiv) {
+ lineNode = cm.display.lineDiv.childNodes[offset];
+ if (!lineNode) {
+ return badPos(cm.clipPos(Pos(cm.display.viewTo - 1)), true);
+ }
+ node = null;
+ offset = 0;
+ } else {
+ for (lineNode = node;; lineNode = lineNode.parentNode) {
+ if (!lineNode || lineNode == cm.display.lineDiv) {
+ return null;
+ }
+ if (lineNode.parentNode && lineNode.parentNode == cm.display.lineDiv) {
+ break;
+ }
+ }
+ }
+ for (var i = 0; i < cm.display.view.length; i++) {
+ var lineView = cm.display.view[i];
+ if (lineView.node == lineNode) {
+ return locateNodeInLineView(lineView, node, offset);
+ }
+ }
+ }
+ function locateNodeInLineView(lineView, node, offset) {
+ var wrapper = lineView.text.firstChild,
+ bad = false;
+ if (!node || !contains(wrapper, node)) {
+ return badPos(Pos(lineNo(lineView.line), 0), true);
+ }
+ if (node == wrapper) {
+ bad = true;
+ node = wrapper.childNodes[offset];
+ offset = 0;
+ if (!node) {
+ var line = lineView.rest ? lst(lineView.rest) : lineView.line;
+ return badPos(Pos(lineNo(line), line.text.length), bad);
+ }
+ }
+ var textNode = node.nodeType == 3 ? node : null,
+ topNode = node;
+ if (!textNode && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {
+ textNode = node.firstChild;
+ if (offset) {
+ offset = textNode.nodeValue.length;
+ }
+ }
+ while (topNode.parentNode != wrapper) {
+ topNode = topNode.parentNode;
+ }
+ var measure = lineView.measure,
+ maps = measure.maps;
+ function find(textNode, topNode, offset) {
+ for (var i = -1; i < (maps ? maps.length : 0); i++) {
+ var map = i < 0 ? measure.map : maps[i];
+ for (var j = 0; j < map.length; j += 3) {
+ var curNode = map[j + 2];
+ if (curNode == textNode || curNode == topNode) {
+ var line = lineNo(i < 0 ? lineView.line : lineView.rest[i]);
+ var ch = map[j] + offset;
+ if (offset < 0 || curNode != textNode) {
+ ch = map[j + (offset ? 1 : 0)];
+ }
+ return Pos(line, ch);
+ }
+ }
+ }
+ }
+ var found = find(textNode, topNode, offset);
+ if (found) {
+ return badPos(found, bad);
+ }
+
+ // FIXME this is all really shaky. might handle the few cases it needs to handle, but likely to cause problems
+ for (var after = topNode.nextSibling, dist = textNode ? textNode.nodeValue.length - offset : 0; after; after = after.nextSibling) {
+ found = find(after, after.firstChild, 0);
+ if (found) {
+ return badPos(Pos(found.line, found.ch - dist), bad);
+ } else {
+ dist += after.textContent.length;
+ }
+ }
+ for (var before = topNode.previousSibling, dist$1 = offset; before; before = before.previousSibling) {
+ found = find(before, before.firstChild, -1);
+ if (found) {
+ return badPos(Pos(found.line, found.ch + dist$1), bad);
+ } else {
+ dist$1 += before.textContent.length;
+ }
+ }
+ }
+
+ // TEXTAREA INPUT STYLE
+
+ var TextareaInput = function (cm) {
+ this.cm = cm;
+ // See input.poll and input.reset
+ this.prevInput = "";
+
+ // Flag that indicates whether we expect input to appear real soon
+ // now (after some event like 'keypress' or 'input') and are
+ // polling intensively.
+ this.pollingFast = false;
+ // Self-resetting timeout for the poller
+ this.polling = new Delayed();
+ // Used to work around IE issue with selection being forgotten when focus moves away from textarea
+ this.hasSelection = false;
+ this.composing = null;
+ };
+ TextareaInput.prototype.init = function (display) {
+ var this$1 = this;
+ var input = this,
+ cm = this.cm;
+ this.createField(display);
+ var te = this.textarea;
+ display.wrapper.insertBefore(this.wrapper, display.wrapper.firstChild);
+
+ // Needed to hide big blue blinking cursor on Mobile Safari (doesn't seem to work in iOS 8 anymore)
+ if (ios) {
+ te.style.width = "0px";
+ }
+ on(te, "input", function () {
+ if (ie && ie_version >= 9 && this$1.hasSelection) {
+ this$1.hasSelection = null;
+ }
+ input.poll();
+ });
+ on(te, "paste", function (e) {
+ if (signalDOMEvent(cm, e) || handlePaste(e, cm)) {
+ return;
+ }
+ cm.state.pasteIncoming = +new Date();
+ input.fastPoll();
+ });
+ function prepareCopyCut(e) {
+ if (signalDOMEvent(cm, e)) {
+ return;
+ }
+ if (cm.somethingSelected()) {
+ setLastCopied({
+ lineWise: false,
+ text: cm.getSelections()
+ });
+ } else if (!cm.options.lineWiseCopyCut) {
+ return;
+ } else {
+ var ranges = copyableRanges(cm);
+ setLastCopied({
+ lineWise: true,
+ text: ranges.text
+ });
+ if (e.type == "cut") {
+ cm.setSelections(ranges.ranges, null, sel_dontScroll);
+ } else {
+ input.prevInput = "";
+ te.value = ranges.text.join("\n");
+ selectInput(te);
+ }
+ }
+ if (e.type == "cut") {
+ cm.state.cutIncoming = +new Date();
+ }
+ }
+ on(te, "cut", prepareCopyCut);
+ on(te, "copy", prepareCopyCut);
+ on(display.scroller, "paste", function (e) {
+ if (eventInWidget(display, e) || signalDOMEvent(cm, e)) {
+ return;
+ }
+ if (!te.dispatchEvent) {
+ cm.state.pasteIncoming = +new Date();
+ input.focus();
+ return;
+ }
+
+ // Pass the `paste` event to the textarea so it's handled by its event listener.
+ var event = new Event("paste");
+ event.clipboardData = e.clipboardData;
+ te.dispatchEvent(event);
+ });
+
+ // Prevent normal selection in the editor (we handle our own)
+ on(display.lineSpace, "selectstart", function (e) {
+ if (!eventInWidget(display, e)) {
+ e_preventDefault(e);
+ }
+ });
+ on(te, "compositionstart", function () {
+ var start = cm.getCursor("from");
+ if (input.composing) {
+ input.composing.range.clear();
+ }
+ input.composing = {
+ start: start,
+ range: cm.markText(start, cm.getCursor("to"), {
+ className: "CodeMirror-composing"
+ })
+ };
+ });
+ on(te, "compositionend", function () {
+ if (input.composing) {
+ input.poll();
+ input.composing.range.clear();
+ input.composing = null;
+ }
+ });
+ };
+ TextareaInput.prototype.createField = function (_display) {
+ // Wraps and hides input textarea
+ this.wrapper = hiddenTextarea();
+ // The semihidden textarea that is focused when the editor is
+ // focused, and receives input.
+ this.textarea = this.wrapper.firstChild;
+ };
+ TextareaInput.prototype.screenReaderLabelChanged = function (label) {
+ // Label for screenreaders, accessibility
+ if (label) {
+ this.textarea.setAttribute('aria-label', label);
+ } else {
+ this.textarea.removeAttribute('aria-label');
+ }
+ };
+ TextareaInput.prototype.prepareSelection = function () {
+ // Redraw the selection and/or cursor
+ var cm = this.cm,
+ display = cm.display,
+ doc = cm.doc;
+ var result = prepareSelection(cm);
+
+ // Move the hidden textarea near the cursor to prevent scrolling artifacts
+ if (cm.options.moveInputWithCursor) {
+ var headPos = cursorCoords(cm, doc.sel.primary().head, "div");
+ var wrapOff = display.wrapper.getBoundingClientRect(),
+ lineOff = display.lineDiv.getBoundingClientRect();
+ result.teTop = Math.max(0, Math.min(display.wrapper.clientHeight - 10, headPos.top + lineOff.top - wrapOff.top));
+ result.teLeft = Math.max(0, Math.min(display.wrapper.clientWidth - 10, headPos.left + lineOff.left - wrapOff.left));
+ }
+ return result;
+ };
+ TextareaInput.prototype.showSelection = function (drawn) {
+ var cm = this.cm,
+ display = cm.display;
+ removeChildrenAndAdd(display.cursorDiv, drawn.cursors);
+ removeChildrenAndAdd(display.selectionDiv, drawn.selection);
+ if (drawn.teTop != null) {
+ this.wrapper.style.top = drawn.teTop + "px";
+ this.wrapper.style.left = drawn.teLeft + "px";
+ }
+ };
+
+ // Reset the input to correspond to the selection (or to be empty,
+ // when not typing and nothing is selected)
+ TextareaInput.prototype.reset = function (typing) {
+ if (this.contextMenuPending || this.composing) {
+ return;
+ }
+ var cm = this.cm;
+ if (cm.somethingSelected()) {
+ this.prevInput = "";
+ var content = cm.getSelection();
+ this.textarea.value = content;
+ if (cm.state.focused) {
+ selectInput(this.textarea);
+ }
+ if (ie && ie_version >= 9) {
+ this.hasSelection = content;
+ }
+ } else if (!typing) {
+ this.prevInput = this.textarea.value = "";
+ if (ie && ie_version >= 9) {
+ this.hasSelection = null;
+ }
+ }
+ };
+ TextareaInput.prototype.getField = function () {
+ return this.textarea;
+ };
+ TextareaInput.prototype.supportsTouch = function () {
+ return false;
+ };
+ TextareaInput.prototype.focus = function () {
+ if (this.cm.options.readOnly != "nocursor" && (!mobile || activeElt() != this.textarea)) {
+ try {
+ this.textarea.focus();
+ } catch (e) {} // IE8 will throw if the textarea is display: none or not in DOM
+ }
+ };
+ TextareaInput.prototype.blur = function () {
+ this.textarea.blur();
+ };
+ TextareaInput.prototype.resetPosition = function () {
+ this.wrapper.style.top = this.wrapper.style.left = 0;
+ };
+ TextareaInput.prototype.receivedFocus = function () {
+ this.slowPoll();
+ };
+
+ // Poll for input changes, using the normal rate of polling. This
+ // runs as long as the editor is focused.
+ TextareaInput.prototype.slowPoll = function () {
+ var this$1 = this;
+ if (this.pollingFast) {
+ return;
+ }
+ this.polling.set(this.cm.options.pollInterval, function () {
+ this$1.poll();
+ if (this$1.cm.state.focused) {
+ this$1.slowPoll();
+ }
+ });
+ };
+
+ // When an event has just come in that is likely to add or change
+ // something in the input textarea, we poll faster, to ensure that
+ // the change appears on the screen quickly.
+ TextareaInput.prototype.fastPoll = function () {
+ var missed = false,
+ input = this;
+ input.pollingFast = true;
+ function p() {
+ var changed = input.poll();
+ if (!changed && !missed) {
+ missed = true;
+ input.polling.set(60, p);
+ } else {
+ input.pollingFast = false;
+ input.slowPoll();
+ }
+ }
+ input.polling.set(20, p);
+ };
+
+ // Read input from the textarea, and update the document to match.
+ // When something is selected, it is present in the textarea, and
+ // selected (unless it is huge, in which case a placeholder is
+ // used). When nothing is selected, the cursor sits after previously
+ // seen text (can be empty), which is stored in prevInput (we must
+ // not reset the textarea when typing, because that breaks IME).
+ TextareaInput.prototype.poll = function () {
+ var this$1 = this;
+ var cm = this.cm,
+ input = this.textarea,
+ prevInput = this.prevInput;
+ // Since this is called a *lot*, try to bail out as cheaply as
+ // possible when it is clear that nothing happened. hasSelection
+ // will be the case when there is a lot of text in the textarea,
+ // in which case reading its value would be expensive.
+ if (this.contextMenuPending || !cm.state.focused || hasSelection(input) && !prevInput && !this.composing || cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq) {
+ return false;
+ }
+ var text = input.value;
+ // If nothing changed, bail.
+ if (text == prevInput && !cm.somethingSelected()) {
+ return false;
+ }
+ // Work around nonsensical selection resetting in IE9/10, and
+ // inexplicable appearance of private area unicode characters on
+ // some key combos in Mac (#2689).
+ if (ie && ie_version >= 9 && this.hasSelection === text || mac && /[\uf700-\uf7ff]/.test(text)) {
+ cm.display.input.reset();
+ return false;
+ }
+ if (cm.doc.sel == cm.display.selForContextMenu) {
+ var first = text.charCodeAt(0);
+ if (first == 0x200b && !prevInput) {
+ prevInput = "\u200b";
+ }
+ if (first == 0x21da) {
+ this.reset();
+ return this.cm.execCommand("undo");
+ }
+ }
+ // Find the part of the input that is actually new
+ var same = 0,
+ l = Math.min(prevInput.length, text.length);
+ while (same < l && prevInput.charCodeAt(same) == text.charCodeAt(same)) {
+ ++same;
+ }
+ runInOp(cm, function () {
+ applyTextInput(cm, text.slice(same), prevInput.length - same, null, this$1.composing ? "*compose" : null);
+
+ // Don't leave long text in the textarea, since it makes further polling slow
+ if (text.length > 1000 || text.indexOf("\n") > -1) {
+ input.value = this$1.prevInput = "";
+ } else {
+ this$1.prevInput = text;
+ }
+ if (this$1.composing) {
+ this$1.composing.range.clear();
+ this$1.composing.range = cm.markText(this$1.composing.start, cm.getCursor("to"), {
+ className: "CodeMirror-composing"
+ });
+ }
+ });
+ return true;
+ };
+ TextareaInput.prototype.ensurePolled = function () {
+ if (this.pollingFast && this.poll()) {
+ this.pollingFast = false;
+ }
+ };
+ TextareaInput.prototype.onKeyPress = function () {
+ if (ie && ie_version >= 9) {
+ this.hasSelection = null;
+ }
+ this.fastPoll();
+ };
+ TextareaInput.prototype.onContextMenu = function (e) {
+ var input = this,
+ cm = input.cm,
+ display = cm.display,
+ te = input.textarea;
+ if (input.contextMenuPending) {
+ input.contextMenuPending();
+ }
+ var pos = posFromMouse(cm, e),
+ scrollPos = display.scroller.scrollTop;
+ if (!pos || presto) {
+ return;
+ } // Opera is difficult.
+
+ // Reset the current text selection only if the click is done outside of the selection
+ // and 'resetSelectionOnContextMenu' option is true.
+ var reset = cm.options.resetSelectionOnContextMenu;
+ if (reset && cm.doc.sel.contains(pos) == -1) {
+ operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);
+ }
+ var oldCSS = te.style.cssText,
+ oldWrapperCSS = input.wrapper.style.cssText;
+ var wrapperBox = input.wrapper.offsetParent.getBoundingClientRect();
+ input.wrapper.style.cssText = "position: static";
+ te.style.cssText = "position: absolute; width: 30px; height: 30px;\n top: " + (e.clientY - wrapperBox.top - 5) + "px; left: " + (e.clientX - wrapperBox.left - 5) + "px;\n z-index: 1000; background: " + (ie ? "rgba(255, 255, 255, .05)" : "transparent") + ";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
+ var oldScrollY;
+ if (webkit) {
+ oldScrollY = window.scrollY;
+ } // Work around Chrome issue (#2712)
+ display.input.focus();
+ if (webkit) {
+ window.scrollTo(null, oldScrollY);
+ }
+ display.input.reset();
+ // Adds "Select all" to context menu in FF
+ if (!cm.somethingSelected()) {
+ te.value = input.prevInput = " ";
+ }
+ input.contextMenuPending = rehide;
+ display.selForContextMenu = cm.doc.sel;
+ clearTimeout(display.detectingSelectAll);
+
+ // Select-all will be greyed out if there's nothing to select, so
+ // this adds a zero-width space so that we can later check whether
+ // it got selected.
+ function prepareSelectAllHack() {
+ if (te.selectionStart != null) {
+ var selected = cm.somethingSelected();
+ var extval = "\u200b" + (selected ? te.value : "");
+ te.value = "\u21da"; // Used to catch context-menu undo
+ te.value = extval;
+ input.prevInput = selected ? "" : "\u200b";
+ te.selectionStart = 1;
+ te.selectionEnd = extval.length;
+ // Re-set this, in case some other handler touched the
+ // selection in the meantime.
+ display.selForContextMenu = cm.doc.sel;
+ }
+ }
+ function rehide() {
+ if (input.contextMenuPending != rehide) {
+ return;
+ }
+ input.contextMenuPending = false;
+ input.wrapper.style.cssText = oldWrapperCSS;
+ te.style.cssText = oldCSS;
+ if (ie && ie_version < 9) {
+ display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos);
+ }
+
+ // Try to detect the user choosing select-all
+ if (te.selectionStart != null) {
+ if (!ie || ie && ie_version < 9) {
+ prepareSelectAllHack();
+ }
+ var i = 0,
+ poll = function () {
+ if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 && te.selectionEnd > 0 && input.prevInput == "\u200b") {
+ operation(cm, selectAll)(cm);
+ } else if (i++ < 10) {
+ display.detectingSelectAll = setTimeout(poll, 500);
+ } else {
+ display.selForContextMenu = null;
+ display.input.reset();
+ }
+ };
+ display.detectingSelectAll = setTimeout(poll, 200);
+ }
+ }
+ if (ie && ie_version >= 9) {
+ prepareSelectAllHack();
+ }
+ if (captureRightClick) {
+ e_stop(e);
+ var mouseup = function () {
+ off(window, "mouseup", mouseup);
+ setTimeout(rehide, 20);
+ };
+ on(window, "mouseup", mouseup);
+ } else {
+ setTimeout(rehide, 50);
+ }
+ };
+ TextareaInput.prototype.readOnlyChanged = function (val) {
+ if (!val) {
+ this.reset();
+ }
+ this.textarea.disabled = val == "nocursor";
+ this.textarea.readOnly = !!val;
+ };
+ TextareaInput.prototype.setUneditable = function () {};
+ TextareaInput.prototype.needsContentAttribute = false;
+ function fromTextArea(textarea, options) {
+ options = options ? copyObj(options) : {};
+ options.value = textarea.value;
+ if (!options.tabindex && textarea.tabIndex) {
+ options.tabindex = textarea.tabIndex;
+ }
+ if (!options.placeholder && textarea.placeholder) {
+ options.placeholder = textarea.placeholder;
+ }
+ // Set autofocus to true if this textarea is focused, or if it has
+ // autofocus and no other element is focused.
+ if (options.autofocus == null) {
+ var hasFocus = activeElt();
+ options.autofocus = hasFocus == textarea || textarea.getAttribute("autofocus") != null && hasFocus == document.body;
+ }
+ function save() {
+ textarea.value = cm.getValue();
+ }
+ var realSubmit;
+ if (textarea.form) {
+ on(textarea.form, "submit", save);
+ // Deplorable hack to make the submit method do the right thing.
+ if (!options.leaveSubmitMethodAlone) {
+ var form = textarea.form;
+ realSubmit = form.submit;
+ try {
+ var wrappedSubmit = form.submit = function () {
+ save();
+ form.submit = realSubmit;
+ form.submit();
+ form.submit = wrappedSubmit;
+ };
+ } catch (e) {}
+ }
+ }
+ options.finishInit = function (cm) {
+ cm.save = save;
+ cm.getTextArea = function () {
+ return textarea;
+ };
+ cm.toTextArea = function () {
+ cm.toTextArea = isNaN; // Prevent this from being ran twice
+ save();
+ textarea.parentNode.removeChild(cm.getWrapperElement());
+ textarea.style.display = "";
+ if (textarea.form) {
+ off(textarea.form, "submit", save);
+ if (!options.leaveSubmitMethodAlone && typeof textarea.form.submit == "function") {
+ textarea.form.submit = realSubmit;
+ }
+ }
+ };
+ };
+ textarea.style.display = "none";
+ var cm = CodeMirror(function (node) {
+ return textarea.parentNode.insertBefore(node, textarea.nextSibling);
+ }, options);
+ return cm;
+ }
+ function addLegacyProps(CodeMirror) {
+ CodeMirror.off = off;
+ CodeMirror.on = on;
+ CodeMirror.wheelEventPixels = wheelEventPixels;
+ CodeMirror.Doc = Doc;
+ CodeMirror.splitLines = splitLinesAuto;
+ CodeMirror.countColumn = countColumn;
+ CodeMirror.findColumn = findColumn;
+ CodeMirror.isWordChar = isWordCharBasic;
+ CodeMirror.Pass = Pass;
+ CodeMirror.signal = signal;
+ CodeMirror.Line = Line;
+ CodeMirror.changeEnd = changeEnd;
+ CodeMirror.scrollbarModel = scrollbarModel;
+ CodeMirror.Pos = Pos;
+ CodeMirror.cmpPos = cmp;
+ CodeMirror.modes = modes;
+ CodeMirror.mimeModes = mimeModes;
+ CodeMirror.resolveMode = resolveMode;
+ CodeMirror.getMode = getMode;
+ CodeMirror.modeExtensions = modeExtensions;
+ CodeMirror.extendMode = extendMode;
+ CodeMirror.copyState = copyState;
+ CodeMirror.startState = startState;
+ CodeMirror.innerMode = innerMode;
+ CodeMirror.commands = commands;
+ CodeMirror.keyMap = keyMap;
+ CodeMirror.keyName = keyName;
+ CodeMirror.isModifierKey = isModifierKey;
+ CodeMirror.lookupKey = lookupKey;
+ CodeMirror.normalizeKeyMap = normalizeKeyMap;
+ CodeMirror.StringStream = StringStream;
+ CodeMirror.SharedTextMarker = SharedTextMarker;
+ CodeMirror.TextMarker = TextMarker;
+ CodeMirror.LineWidget = LineWidget;
+ CodeMirror.e_preventDefault = e_preventDefault;
+ CodeMirror.e_stopPropagation = e_stopPropagation;
+ CodeMirror.e_stop = e_stop;
+ CodeMirror.addClass = addClass;
+ CodeMirror.contains = contains;
+ CodeMirror.rmClass = rmClass;
+ CodeMirror.keyNames = keyNames;
+ }
+
+ // EDITOR CONSTRUCTOR
+
+ defineOptions(CodeMirror);
+ addEditorMethods(CodeMirror);
+
+ // Set up methods on CodeMirror's prototype to redirect to the editor's document.
+ var dontDelegate = "iter insert remove copy getEditor constructor".split(" ");
+ for (var prop in Doc.prototype) {
+ if (Doc.prototype.hasOwnProperty(prop) && indexOf(dontDelegate, prop) < 0) {
+ CodeMirror.prototype[prop] = function (method) {
+ return function () {
+ return method.apply(this.doc, arguments);
+ };
+ }(Doc.prototype[prop]);
+ }
+ }
+ eventMixin(Doc);
+ CodeMirror.inputStyles = {
+ "textarea": TextareaInput,
+ "contenteditable": ContentEditableInput
+ };
+
+ // Extra arguments are stored as the mode's dependencies, which is
+ // used by (legacy) mechanisms like loadmode.js to automatically
+ // load a mode. (Preferred mechanism is the require/define calls.)
+ CodeMirror.defineMode = function (name /*, mode, …*/) {
+ if (!CodeMirror.defaults.mode && name != "null") {
+ CodeMirror.defaults.mode = name;
+ }
+ defineMode.apply(this, arguments);
+ };
+ CodeMirror.defineMIME = defineMIME;
+
+ // Minimal default mode.
+ CodeMirror.defineMode("null", function () {
+ return {
+ token: function (stream) {
+ return stream.skipToEnd();
+ }
+ };
+ });
+ CodeMirror.defineMIME("text/plain", "null");
+
+ // EXTENSIONS
+
+ CodeMirror.defineExtension = function (name, func) {
+ CodeMirror.prototype[name] = func;
+ };
+ CodeMirror.defineDocExtension = function (name, func) {
+ Doc.prototype[name] = func;
+ };
+ CodeMirror.fromTextArea = fromTextArea;
+ addLegacyProps(CodeMirror);
+ CodeMirror.version = "5.65.3";
+ return CodeMirror;
+});
+
+/***/ }),
+
+/***/ "../../../node_modules/codemirror/mode/javascript/javascript.js":
+/*!**********************************************************************!*\
+ !*** ../../../node_modules/codemirror/mode/javascript/javascript.js ***!
+ \**********************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: https://codemirror.net/LICENSE
+
+(function (mod) {
+ if (true)
+ // CommonJS
+ mod(__webpack_require__(/*! ../../lib/codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));else {}
+})(function (CodeMirror) {
+ "use strict";
+
+ CodeMirror.defineMode("javascript", function (config, parserConfig) {
+ var indentUnit = config.indentUnit;
+ var statementIndent = parserConfig.statementIndent;
+ var jsonldMode = parserConfig.jsonld;
+ var jsonMode = parserConfig.json || jsonldMode;
+ var trackScope = parserConfig.trackScope !== false;
+ var isTS = parserConfig.typescript;
+ var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
+
+ // Tokenizer
+
+ var keywords = function () {
+ function kw(type) {
+ return {
+ type: type,
+ style: "keyword"
+ };
+ }
+ var A = kw("keyword a"),
+ B = kw("keyword b"),
+ C = kw("keyword c"),
+ D = kw("keyword d");
+ var operator = kw("operator"),
+ atom = {
+ type: "atom",
+ style: "atom"
+ };
+ return {
+ "if": kw("if"),
+ "while": A,
+ "with": A,
+ "else": B,
+ "do": B,
+ "try": B,
+ "finally": B,
+ "return": D,
+ "break": D,
+ "continue": D,
+ "new": kw("new"),
+ "delete": C,
+ "void": C,
+ "throw": C,
+ "debugger": kw("debugger"),
+ "var": kw("var"),
+ "const": kw("var"),
+ "let": kw("var"),
+ "function": kw("function"),
+ "catch": kw("catch"),
+ "for": kw("for"),
+ "switch": kw("switch"),
+ "case": kw("case"),
+ "default": kw("default"),
+ "in": operator,
+ "typeof": operator,
+ "instanceof": operator,
+ "true": atom,
+ "false": atom,
+ "null": atom,
+ "undefined": atom,
+ "NaN": atom,
+ "Infinity": atom,
+ "this": kw("this"),
+ "class": kw("class"),
+ "super": kw("atom"),
+ "yield": C,
+ "export": kw("export"),
+ "import": kw("import"),
+ "extends": C,
+ "await": C
+ };
+ }();
+ var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
+ var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
+ function readRegexp(stream) {
+ var escaped = false,
+ next,
+ inSet = false;
+ while ((next = stream.next()) != null) {
+ if (!escaped) {
+ if (next == "/" && !inSet) return;
+ if (next == "[") inSet = true;else if (inSet && next == "]") inSet = false;
+ }
+ escaped = !escaped && next == "\\";
+ }
+ }
+
+ // Used as scratch variables to communicate multiple values without
+ // consing up tons of objects.
+ var type, content;
+ function ret(tp, style, cont) {
+ type = tp;
+ content = cont;
+ return style;
+ }
+ function tokenBase(stream, state) {
+ var ch = stream.next();
+ if (ch == '"' || ch == "'") {
+ state.tokenize = tokenString(ch);
+ return state.tokenize(stream, state);
+ } else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
+ return ret("number", "number");
+ } else if (ch == "." && stream.match("..")) {
+ return ret("spread", "meta");
+ } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
+ return ret(ch);
+ } else if (ch == "=" && stream.eat(">")) {
+ return ret("=>", "operator");
+ } else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
+ return ret("number", "number");
+ } else if (/\d/.test(ch)) {
+ stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
+ return ret("number", "number");
+ } else if (ch == "/") {
+ if (stream.eat("*")) {
+ state.tokenize = tokenComment;
+ return tokenComment(stream, state);
+ } else if (stream.eat("/")) {
+ stream.skipToEnd();
+ return ret("comment", "comment");
+ } else if (expressionAllowed(stream, state, 1)) {
+ readRegexp(stream);
+ stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
+ return ret("regexp", "string-2");
+ } else {
+ stream.eat("=");
+ return ret("operator", "operator", stream.current());
+ }
+ } else if (ch == "`") {
+ state.tokenize = tokenQuasi;
+ return tokenQuasi(stream, state);
+ } else if (ch == "#" && stream.peek() == "!") {
+ stream.skipToEnd();
+ return ret("meta", "meta");
+ } else if (ch == "#" && stream.eatWhile(wordRE)) {
+ return ret("variable", "property");
+ } else if (ch == "<" && stream.match("!--") || ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start))) {
+ stream.skipToEnd();
+ return ret("comment", "comment");
+ } else if (isOperatorChar.test(ch)) {
+ if (ch != ">" || !state.lexical || state.lexical.type != ">") {
+ if (stream.eat("=")) {
+ if (ch == "!" || ch == "=") stream.eat("=");
+ } else if (/[<>*+\-|&?]/.test(ch)) {
+ stream.eat(ch);
+ if (ch == ">") stream.eat(ch);
+ }
+ }
+ if (ch == "?" && stream.eat(".")) return ret(".");
+ return ret("operator", "operator", stream.current());
+ } else if (wordRE.test(ch)) {
+ stream.eatWhile(wordRE);
+ var word = stream.current();
+ if (state.lastType != ".") {
+ if (keywords.propertyIsEnumerable(word)) {
+ var kw = keywords[word];
+ return ret(kw.type, kw.style, word);
+ }
+ if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false)) return ret("async", "keyword", word);
+ }
+ return ret("variable", "variable", word);
+ }
+ }
+ function tokenString(quote) {
+ return function (stream, state) {
+ var escaped = false,
+ next;
+ if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)) {
+ state.tokenize = tokenBase;
+ return ret("jsonld-keyword", "meta");
+ }
+ while ((next = stream.next()) != null) {
+ if (next == quote && !escaped) break;
+ escaped = !escaped && next == "\\";
+ }
+ if (!escaped) state.tokenize = tokenBase;
+ return ret("string", "string");
+ };
+ }
+ function tokenComment(stream, state) {
+ var maybeEnd = false,
+ ch;
+ while (ch = stream.next()) {
+ if (ch == "/" && maybeEnd) {
+ state.tokenize = tokenBase;
+ break;
+ }
+ maybeEnd = ch == "*";
+ }
+ return ret("comment", "comment");
+ }
+ function tokenQuasi(stream, state) {
+ var escaped = false,
+ next;
+ while ((next = stream.next()) != null) {
+ if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
+ state.tokenize = tokenBase;
+ break;
+ }
+ escaped = !escaped && next == "\\";
+ }
+ return ret("quasi", "string-2", stream.current());
+ }
+ var brackets = "([{}])";
+ // This is a crude lookahead trick to try and notice that we're
+ // parsing the argument patterns for a fat-arrow function before we
+ // actually hit the arrow token. It only works if the arrow is on
+ // the same line as the arguments and there's no strange noise
+ // (comments) in between. Fallback is to only notice when we hit the
+ // arrow, and not declare the arguments as locals for the arrow
+ // body.
+ function findFatArrow(stream, state) {
+ if (state.fatArrowAt) state.fatArrowAt = null;
+ var arrow = stream.string.indexOf("=>", stream.start);
+ if (arrow < 0) return;
+ if (isTS) {
+ // Try to skip TypeScript return type declarations after the arguments
+ var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow));
+ if (m) arrow = m.index;
+ }
+ var depth = 0,
+ sawSomething = false;
+ for (var pos = arrow - 1; pos >= 0; --pos) {
+ var ch = stream.string.charAt(pos);
+ var bracket = brackets.indexOf(ch);
+ if (bracket >= 0 && bracket < 3) {
+ if (!depth) {
+ ++pos;
+ break;
+ }
+ if (--depth == 0) {
+ if (ch == "(") sawSomething = true;
+ break;
+ }
+ } else if (bracket >= 3 && bracket < 6) {
+ ++depth;
+ } else if (wordRE.test(ch)) {
+ sawSomething = true;
+ } else if (/["'\/`]/.test(ch)) {
+ for (;; --pos) {
+ if (pos == 0) return;
+ var next = stream.string.charAt(pos - 1);
+ if (next == ch && stream.string.charAt(pos - 2) != "\\") {
+ pos--;
+ break;
+ }
+ }
+ } else if (sawSomething && !depth) {
+ ++pos;
+ break;
+ }
+ }
+ if (sawSomething && !depth) state.fatArrowAt = pos;
+ }
+
+ // Parser
+
+ var atomicTypes = {
+ "atom": true,
+ "number": true,
+ "variable": true,
+ "string": true,
+ "regexp": true,
+ "this": true,
+ "import": true,
+ "jsonld-keyword": true
+ };
+ function JSLexical(indented, column, type, align, prev, info) {
+ this.indented = indented;
+ this.column = column;
+ this.type = type;
+ this.prev = prev;
+ this.info = info;
+ if (align != null) this.align = align;
+ }
+ function inScope(state, varname) {
+ if (!trackScope) return false;
+ for (var v = state.localVars; v; v = v.next) if (v.name == varname) return true;
+ for (var cx = state.context; cx; cx = cx.prev) {
+ for (var v = cx.vars; v; v = v.next) if (v.name == varname) return true;
+ }
+ }
+ function parseJS(state, style, type, content, stream) {
+ var cc = state.cc;
+ // Communicate our context to the combinators.
+ // (Less wasteful than consing up a hundred closures on every call.)
+ cx.state = state;
+ cx.stream = stream;
+ cx.marked = null, cx.cc = cc;
+ cx.style = style;
+ if (!state.lexical.hasOwnProperty("align")) state.lexical.align = true;
+ while (true) {
+ var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
+ if (combinator(type, content)) {
+ while (cc.length && cc[cc.length - 1].lex) cc.pop()();
+ if (cx.marked) return cx.marked;
+ if (type == "variable" && inScope(state, content)) return "variable-2";
+ return style;
+ }
+ }
+ }
+
+ // Combinator utils
+
+ var cx = {
+ state: null,
+ column: null,
+ marked: null,
+ cc: null
+ };
+ function pass() {
+ for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
+ }
+ function cont() {
+ pass.apply(null, arguments);
+ return true;
+ }
+ function inList(name, list) {
+ for (var v = list; v; v = v.next) if (v.name == name) return true;
+ return false;
+ }
+ function register(varname) {
+ var state = cx.state;
+ cx.marked = "def";
+ if (!trackScope) return;
+ if (state.context) {
+ if (state.lexical.info == "var" && state.context && state.context.block) {
+ // FIXME function decls are also not block scoped
+ var newContext = registerVarScoped(varname, state.context);
+ if (newContext != null) {
+ state.context = newContext;
+ return;
+ }
+ } else if (!inList(varname, state.localVars)) {
+ state.localVars = new Var(varname, state.localVars);
+ return;
+ }
+ }
+ // Fall through means this is global
+ if (parserConfig.globalVars && !inList(varname, state.globalVars)) state.globalVars = new Var(varname, state.globalVars);
+ }
+ function registerVarScoped(varname, context) {
+ if (!context) {
+ return null;
+ } else if (context.block) {
+ var inner = registerVarScoped(varname, context.prev);
+ if (!inner) return null;
+ if (inner == context.prev) return context;
+ return new Context(inner, context.vars, true);
+ } else if (inList(varname, context.vars)) {
+ return context;
+ } else {
+ return new Context(context.prev, new Var(varname, context.vars), false);
+ }
+ }
+ function isModifier(name) {
+ return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly";
+ }
+
+ // Combinators
+
+ function Context(prev, vars, block) {
+ this.prev = prev;
+ this.vars = vars;
+ this.block = block;
+ }
+ function Var(name, next) {
+ this.name = name;
+ this.next = next;
+ }
+ var defaultVars = new Var("this", new Var("arguments", null));
+ function pushcontext() {
+ cx.state.context = new Context(cx.state.context, cx.state.localVars, false);
+ cx.state.localVars = defaultVars;
+ }
+ function pushblockcontext() {
+ cx.state.context = new Context(cx.state.context, cx.state.localVars, true);
+ cx.state.localVars = null;
+ }
+ pushcontext.lex = pushblockcontext.lex = true;
+ function popcontext() {
+ cx.state.localVars = cx.state.context.vars;
+ cx.state.context = cx.state.context.prev;
+ }
+ popcontext.lex = true;
+ function pushlex(type, info) {
+ var result = function () {
+ var state = cx.state,
+ indent = state.indented;
+ if (state.lexical.type == "stat") indent = state.lexical.indented;else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev) indent = outer.indented;
+ state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
+ };
+ result.lex = true;
+ return result;
+ }
+ function poplex() {
+ var state = cx.state;
+ if (state.lexical.prev) {
+ if (state.lexical.type == ")") state.indented = state.lexical.indented;
+ state.lexical = state.lexical.prev;
+ }
+ }
+ poplex.lex = true;
+ function expect(wanted) {
+ function exp(type) {
+ if (type == wanted) return cont();else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass();else return cont(exp);
+ }
+ ;
+ return exp;
+ }
+ function statement(type, value) {
+ if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
+ if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
+ if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
+ if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
+ if (type == "debugger") return cont(expect(";"));
+ if (type == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
+ if (type == ";") return cont();
+ if (type == "if") {
+ if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex) cx.state.cc.pop()();
+ return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
+ }
+ if (type == "function") return cont(functiondef);
+ if (type == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
+ if (type == "class" || isTS && value == "interface") {
+ cx.marked = "keyword";
+ return cont(pushlex("form", type == "class" ? type : value), className, poplex);
+ }
+ if (type == "variable") {
+ if (isTS && value == "declare") {
+ cx.marked = "keyword";
+ return cont(statement);
+ } else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
+ cx.marked = "keyword";
+ if (value == "enum") return cont(enumdef);else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex);
+ } else if (isTS && value == "namespace") {
+ cx.marked = "keyword";
+ return cont(pushlex("form"), expression, statement, poplex);
+ } else if (isTS && value == "abstract") {
+ cx.marked = "keyword";
+ return cont(statement);
+ } else {
+ return cont(pushlex("stat"), maybelabel);
+ }
+ }
+ if (type == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext, block, poplex, poplex, popcontext);
+ if (type == "case") return cont(expression, expect(":"));
+ if (type == "default") return cont(expect(":"));
+ if (type == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
+ if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
+ if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
+ if (type == "async") return cont(statement);
+ if (value == "@") return cont(expression, statement);
+ return pass(pushlex("stat"), expression, expect(";"), poplex);
+ }
+ function maybeCatchBinding(type) {
+ if (type == "(") return cont(funarg, expect(")"));
+ }
+ function expression(type, value) {
+ return expressionInner(type, value, false);
+ }
+ function expressionNoComma(type, value) {
+ return expressionInner(type, value, true);
+ }
+ function parenExpr(type) {
+ if (type != "(") return pass();
+ return cont(pushlex(")"), maybeexpression, expect(")"), poplex);
+ }
+ function expressionInner(type, value, noComma) {
+ if (cx.state.fatArrowAt == cx.stream.start) {
+ var body = noComma ? arrowBodyNoComma : arrowBody;
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
+ }
+ var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
+ if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
+ if (type == "function") return cont(functiondef, maybeop);
+ if (type == "class" || isTS && value == "interface") {
+ cx.marked = "keyword";
+ return cont(pushlex("form"), classExpression, poplex);
+ }
+ if (type == "keyword c" || type == "async") return cont(noComma ? expressionNoComma : expression);
+ if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
+ if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
+ if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
+ if (type == "{") return contCommasep(objprop, "}", null, maybeop);
+ if (type == "quasi") return pass(quasi, maybeop);
+ if (type == "new") return cont(maybeTarget(noComma));
+ return cont();
+ }
+ function maybeexpression(type) {
+ if (type.match(/[;\}\)\],]/)) return pass();
+ return pass(expression);
+ }
+ function maybeoperatorComma(type, value) {
+ if (type == ",") return cont(maybeexpression);
+ return maybeoperatorNoComma(type, value, false);
+ }
+ function maybeoperatorNoComma(type, value, noComma) {
+ var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
+ var expr = noComma == false ? expression : expressionNoComma;
+ if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
+ if (type == "operator") {
+ if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
+ if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false)) return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
+ if (value == "?") return cont(expression, expect(":"), expr);
+ return cont(expr);
+ }
+ if (type == "quasi") {
+ return pass(quasi, me);
+ }
+ if (type == ";") return;
+ if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
+ if (type == ".") return cont(property, me);
+ if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
+ if (isTS && value == "as") {
+ cx.marked = "keyword";
+ return cont(typeexpr, me);
+ }
+ if (type == "regexp") {
+ cx.state.lastType = cx.marked = "operator";
+ cx.stream.backUp(cx.stream.pos - cx.stream.start - 1);
+ return cont(expr);
+ }
+ }
+ function quasi(type, value) {
+ if (type != "quasi") return pass();
+ if (value.slice(value.length - 2) != "${") return cont(quasi);
+ return cont(maybeexpression, continueQuasi);
+ }
+ function continueQuasi(type) {
+ if (type == "}") {
+ cx.marked = "string-2";
+ cx.state.tokenize = tokenQuasi;
+ return cont(quasi);
+ }
+ }
+ function arrowBody(type) {
+ findFatArrow(cx.stream, cx.state);
+ return pass(type == "{" ? statement : expression);
+ }
+ function arrowBodyNoComma(type) {
+ findFatArrow(cx.stream, cx.state);
+ return pass(type == "{" ? statement : expressionNoComma);
+ }
+ function maybeTarget(noComma) {
+ return function (type) {
+ if (type == ".") return cont(noComma ? targetNoComma : target);else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma);else return pass(noComma ? expressionNoComma : expression);
+ };
+ }
+ function target(_, value) {
+ if (value == "target") {
+ cx.marked = "keyword";
+ return cont(maybeoperatorComma);
+ }
+ }
+ function targetNoComma(_, value) {
+ if (value == "target") {
+ cx.marked = "keyword";
+ return cont(maybeoperatorNoComma);
+ }
+ }
+ function maybelabel(type) {
+ if (type == ":") return cont(poplex, statement);
+ return pass(maybeoperatorComma, expect(";"), poplex);
+ }
+ function property(type) {
+ if (type == "variable") {
+ cx.marked = "property";
+ return cont();
+ }
+ }
+ function objprop(type, value) {
+ if (type == "async") {
+ cx.marked = "property";
+ return cont(objprop);
+ } else if (type == "variable" || cx.style == "keyword") {
+ cx.marked = "property";
+ if (value == "get" || value == "set") return cont(getterSetter);
+ var m; // Work around fat-arrow-detection complication for detecting typescript typed arrow params
+ if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false))) cx.state.fatArrowAt = cx.stream.pos + m[0].length;
+ return cont(afterprop);
+ } else if (type == "number" || type == "string") {
+ cx.marked = jsonldMode ? "property" : cx.style + " property";
+ return cont(afterprop);
+ } else if (type == "jsonld-keyword") {
+ return cont(afterprop);
+ } else if (isTS && isModifier(value)) {
+ cx.marked = "keyword";
+ return cont(objprop);
+ } else if (type == "[") {
+ return cont(expression, maybetype, expect("]"), afterprop);
+ } else if (type == "spread") {
+ return cont(expressionNoComma, afterprop);
+ } else if (value == "*") {
+ cx.marked = "keyword";
+ return cont(objprop);
+ } else if (type == ":") {
+ return pass(afterprop);
+ }
+ }
+ function getterSetter(type) {
+ if (type != "variable") return pass(afterprop);
+ cx.marked = "property";
+ return cont(functiondef);
+ }
+ function afterprop(type) {
+ if (type == ":") return cont(expressionNoComma);
+ if (type == "(") return pass(functiondef);
+ }
+ function commasep(what, end, sep) {
+ function proceed(type, value) {
+ if (sep ? sep.indexOf(type) > -1 : type == ",") {
+ var lex = cx.state.lexical;
+ if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
+ return cont(function (type, value) {
+ if (type == end || value == end) return pass();
+ return pass(what);
+ }, proceed);
+ }
+ if (type == end || value == end) return cont();
+ if (sep && sep.indexOf(";") > -1) return pass(what);
+ return cont(expect(end));
+ }
+ return function (type, value) {
+ if (type == end || value == end) return cont();
+ return pass(what, proceed);
+ };
+ }
+ function contCommasep(what, end, info) {
+ for (var i = 3; i < arguments.length; i++) cx.cc.push(arguments[i]);
+ return cont(pushlex(end, info), commasep(what, end), poplex);
+ }
+ function block(type) {
+ if (type == "}") return cont();
+ return pass(statement, block);
+ }
+ function maybetype(type, value) {
+ if (isTS) {
+ if (type == ":") return cont(typeexpr);
+ if (value == "?") return cont(maybetype);
+ }
+ }
+ function maybetypeOrIn(type, value) {
+ if (isTS && (type == ":" || value == "in")) return cont(typeexpr);
+ }
+ function mayberettype(type) {
+ if (isTS && type == ":") {
+ if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr);else return cont(typeexpr);
+ }
+ }
+ function isKW(_, value) {
+ if (value == "is") {
+ cx.marked = "keyword";
+ return cont();
+ }
+ }
+ function typeexpr(type, value) {
+ if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
+ cx.marked = "keyword";
+ return cont(value == "typeof" ? expressionNoComma : typeexpr);
+ }
+ if (type == "variable" || value == "void") {
+ cx.marked = "type";
+ return cont(afterType);
+ }
+ if (value == "|" || value == "&") return cont(typeexpr);
+ if (type == "string" || type == "number" || type == "atom") return cont(afterType);
+ if (type == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType);
+ if (type == "{") return cont(pushlex("}"), typeprops, poplex, afterType);
+ if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType);
+ if (type == "<") return cont(commasep(typeexpr, ">"), typeexpr);
+ if (type == "quasi") {
+ return pass(quasiType, afterType);
+ }
+ }
+ function maybeReturnType(type) {
+ if (type == "=>") return cont(typeexpr);
+ }
+ function typeprops(type) {
+ if (type.match(/[\}\)\]]/)) return cont();
+ if (type == "," || type == ";") return cont(typeprops);
+ return pass(typeprop, typeprops);
+ }
+ function typeprop(type, value) {
+ if (type == "variable" || cx.style == "keyword") {
+ cx.marked = "property";
+ return cont(typeprop);
+ } else if (value == "?" || type == "number" || type == "string") {
+ return cont(typeprop);
+ } else if (type == ":") {
+ return cont(typeexpr);
+ } else if (type == "[") {
+ return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop);
+ } else if (type == "(") {
+ return pass(functiondecl, typeprop);
+ } else if (!type.match(/[;\}\)\],]/)) {
+ return cont();
+ }
+ }
+ function quasiType(type, value) {
+ if (type != "quasi") return pass();
+ if (value.slice(value.length - 2) != "${") return cont(quasiType);
+ return cont(typeexpr, continueQuasiType);
+ }
+ function continueQuasiType(type) {
+ if (type == "}") {
+ cx.marked = "string-2";
+ cx.state.tokenize = tokenQuasi;
+ return cont(quasiType);
+ }
+ }
+ function typearg(type, value) {
+ if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg);
+ if (type == ":") return cont(typeexpr);
+ if (type == "spread") return cont(typearg);
+ return pass(typeexpr);
+ }
+ function afterType(type, value) {
+ if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType);
+ if (value == "|" || type == "." || value == "&") return cont(typeexpr);
+ if (type == "[") return cont(typeexpr, expect("]"), afterType);
+ if (value == "extends" || value == "implements") {
+ cx.marked = "keyword";
+ return cont(typeexpr);
+ }
+ if (value == "?") return cont(typeexpr, expect(":"), typeexpr);
+ }
+ function maybeTypeArgs(_, value) {
+ if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType);
+ }
+ function typeparam() {
+ return pass(typeexpr, maybeTypeDefault);
+ }
+ function maybeTypeDefault(_, value) {
+ if (value == "=") return cont(typeexpr);
+ }
+ function vardef(_, value) {
+ if (value == "enum") {
+ cx.marked = "keyword";
+ return cont(enumdef);
+ }
+ return pass(pattern, maybetype, maybeAssign, vardefCont);
+ }
+ function pattern(type, value) {
+ if (isTS && isModifier(value)) {
+ cx.marked = "keyword";
+ return cont(pattern);
+ }
+ if (type == "variable") {
+ register(value);
+ return cont();
+ }
+ if (type == "spread") return cont(pattern);
+ if (type == "[") return contCommasep(eltpattern, "]");
+ if (type == "{") return contCommasep(proppattern, "}");
+ }
+ function proppattern(type, value) {
+ if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
+ register(value);
+ return cont(maybeAssign);
+ }
+ if (type == "variable") cx.marked = "property";
+ if (type == "spread") return cont(pattern);
+ if (type == "}") return pass();
+ if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern);
+ return cont(expect(":"), pattern, maybeAssign);
+ }
+ function eltpattern() {
+ return pass(pattern, maybeAssign);
+ }
+ function maybeAssign(_type, value) {
+ if (value == "=") return cont(expressionNoComma);
+ }
+ function vardefCont(type) {
+ if (type == ",") return cont(vardef);
+ }
+ function maybeelse(type, value) {
+ if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
+ }
+ function forspec(type, value) {
+ if (value == "await") return cont(forspec);
+ if (type == "(") return cont(pushlex(")"), forspec1, poplex);
+ }
+ function forspec1(type) {
+ if (type == "var") return cont(vardef, forspec2);
+ if (type == "variable") return cont(forspec2);
+ return pass(forspec2);
+ }
+ function forspec2(type, value) {
+ if (type == ")") return cont();
+ if (type == ";") return cont(forspec2);
+ if (value == "in" || value == "of") {
+ cx.marked = "keyword";
+ return cont(expression, forspec2);
+ }
+ return pass(expression, forspec2);
+ }
+ function functiondef(type, value) {
+ if (value == "*") {
+ cx.marked = "keyword";
+ return cont(functiondef);
+ }
+ if (type == "variable") {
+ register(value);
+ return cont(functiondef);
+ }
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
+ if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef);
+ }
+ function functiondecl(type, value) {
+ if (value == "*") {
+ cx.marked = "keyword";
+ return cont(functiondecl);
+ }
+ if (type == "variable") {
+ register(value);
+ return cont(functiondecl);
+ }
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
+ if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl);
+ }
+ function typename(type, value) {
+ if (type == "keyword" || type == "variable") {
+ cx.marked = "type";
+ return cont(typename);
+ } else if (value == "<") {
+ return cont(pushlex(">"), commasep(typeparam, ">"), poplex);
+ }
+ }
+ function funarg(type, value) {
+ if (value == "@") cont(expression, funarg);
+ if (type == "spread") return cont(funarg);
+ if (isTS && isModifier(value)) {
+ cx.marked = "keyword";
+ return cont(funarg);
+ }
+ if (isTS && type == "this") return cont(maybetype, maybeAssign);
+ return pass(pattern, maybetype, maybeAssign);
+ }
+ function classExpression(type, value) {
+ // Class expressions may have an optional name.
+ if (type == "variable") return className(type, value);
+ return classNameAfter(type, value);
+ }
+ function className(type, value) {
+ if (type == "variable") {
+ register(value);
+ return cont(classNameAfter);
+ }
+ }
+ function classNameAfter(type, value) {
+ if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter);
+ if (value == "extends" || value == "implements" || isTS && type == ",") {
+ if (value == "implements") cx.marked = "keyword";
+ return cont(isTS ? typeexpr : expression, classNameAfter);
+ }
+ if (type == "{") return cont(pushlex("}"), classBody, poplex);
+ }
+ function classBody(type, value) {
+ if (type == "async" || type == "variable" && (value == "static" || value == "get" || value == "set" || isTS && isModifier(value)) && cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false)) {
+ cx.marked = "keyword";
+ return cont(classBody);
+ }
+ if (type == "variable" || cx.style == "keyword") {
+ cx.marked = "property";
+ return cont(classfield, classBody);
+ }
+ if (type == "number" || type == "string") return cont(classfield, classBody);
+ if (type == "[") return cont(expression, maybetype, expect("]"), classfield, classBody);
+ if (value == "*") {
+ cx.marked = "keyword";
+ return cont(classBody);
+ }
+ if (isTS && type == "(") return pass(functiondecl, classBody);
+ if (type == ";" || type == ",") return cont(classBody);
+ if (type == "}") return cont();
+ if (value == "@") return cont(expression, classBody);
+ }
+ function classfield(type, value) {
+ if (value == "!") return cont(classfield);
+ if (value == "?") return cont(classfield);
+ if (type == ":") return cont(typeexpr, maybeAssign);
+ if (value == "=") return cont(expressionNoComma);
+ var context = cx.state.lexical.prev,
+ isInterface = context && context.info == "interface";
+ return pass(isInterface ? functiondecl : functiondef);
+ }
+ function afterExport(type, value) {
+ if (value == "*") {
+ cx.marked = "keyword";
+ return cont(maybeFrom, expect(";"));
+ }
+ if (value == "default") {
+ cx.marked = "keyword";
+ return cont(expression, expect(";"));
+ }
+ if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
+ return pass(statement);
+ }
+ function exportField(type, value) {
+ if (value == "as") {
+ cx.marked = "keyword";
+ return cont(expect("variable"));
+ }
+ if (type == "variable") return pass(expressionNoComma, exportField);
+ }
+ function afterImport(type) {
+ if (type == "string") return cont();
+ if (type == "(") return pass(expression);
+ if (type == ".") return pass(maybeoperatorComma);
+ return pass(importSpec, maybeMoreImports, maybeFrom);
+ }
+ function importSpec(type, value) {
+ if (type == "{") return contCommasep(importSpec, "}");
+ if (type == "variable") register(value);
+ if (value == "*") cx.marked = "keyword";
+ return cont(maybeAs);
+ }
+ function maybeMoreImports(type) {
+ if (type == ",") return cont(importSpec, maybeMoreImports);
+ }
+ function maybeAs(_type, value) {
+ if (value == "as") {
+ cx.marked = "keyword";
+ return cont(importSpec);
+ }
+ }
+ function maybeFrom(_type, value) {
+ if (value == "from") {
+ cx.marked = "keyword";
+ return cont(expression);
+ }
+ }
+ function arrayLiteral(type) {
+ if (type == "]") return cont();
+ return pass(commasep(expressionNoComma, "]"));
+ }
+ function enumdef() {
+ return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex);
+ }
+ function enummember() {
+ return pass(pattern, maybeAssign);
+ }
+ function isContinuedStatement(state, textAfter) {
+ return state.lastType == "operator" || state.lastType == "," || isOperatorChar.test(textAfter.charAt(0)) || /[,.]/.test(textAfter.charAt(0));
+ }
+ function expressionAllowed(stream, state, backUp) {
+ return state.tokenize == tokenBase && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) || state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0)));
+ }
+
+ // Interface
+
+ return {
+ startState: function (basecolumn) {
+ var state = {
+ tokenize: tokenBase,
+ lastType: "sof",
+ cc: [],
+ lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
+ localVars: parserConfig.localVars,
+ context: parserConfig.localVars && new Context(null, null, false),
+ indented: basecolumn || 0
+ };
+ if (parserConfig.globalVars && typeof parserConfig.globalVars == "object") state.globalVars = parserConfig.globalVars;
+ return state;
+ },
+ token: function (stream, state) {
+ if (stream.sol()) {
+ if (!state.lexical.hasOwnProperty("align")) state.lexical.align = false;
+ state.indented = stream.indentation();
+ findFatArrow(stream, state);
+ }
+ if (state.tokenize != tokenComment && stream.eatSpace()) return null;
+ var style = state.tokenize(stream, state);
+ if (type == "comment") return style;
+ state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
+ return parseJS(state, style, type, content, stream);
+ },
+ indent: function (state, textAfter) {
+ if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return CodeMirror.Pass;
+ if (state.tokenize != tokenBase) return 0;
+ var firstChar = textAfter && textAfter.charAt(0),
+ lexical = state.lexical,
+ top;
+ // Kludge to prevent 'maybelse' from blocking lexical scope pops
+ if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
+ var c = state.cc[i];
+ if (c == poplex) lexical = lexical.prev;else if (c != maybeelse && c != popcontext) break;
+ }
+ while ((lexical.type == "stat" || lexical.type == "form") && (firstChar == "}" || (top = state.cc[state.cc.length - 1]) && (top == maybeoperatorComma || top == maybeoperatorNoComma) && !/^[,\.=+\-*:?[\(]/.test(textAfter))) lexical = lexical.prev;
+ if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat") lexical = lexical.prev;
+ var type = lexical.type,
+ closing = firstChar == type;
+ if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);else if (type == "form" && firstChar == "{") return lexical.indented;else if (type == "form") return lexical.indented + indentUnit;else if (type == "stat") return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || indentUnit : 0);else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false) return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);else if (lexical.align) return lexical.column + (closing ? 0 : 1);else return lexical.indented + (closing ? 0 : indentUnit);
+ },
+ electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
+ blockCommentStart: jsonMode ? null : "/*",
+ blockCommentEnd: jsonMode ? null : "*/",
+ blockCommentContinue: jsonMode ? null : " * ",
+ lineComment: jsonMode ? null : "//",
+ fold: "brace",
+ closeBrackets: "()[]{}''\"\"``",
+ helperType: jsonMode ? "json" : "javascript",
+ jsonldMode: jsonldMode,
+ jsonMode: jsonMode,
+ expressionAllowed: expressionAllowed,
+ skipExpression: function (state) {
+ parseJS(state, "atom", "atom", "true", new CodeMirror.StringStream("", 2, null));
+ }
+ };
+ });
+ CodeMirror.registerHelper("wordChars", "javascript", /[\w$]/);
+ CodeMirror.defineMIME("text/javascript", "javascript");
+ CodeMirror.defineMIME("text/ecmascript", "javascript");
+ CodeMirror.defineMIME("application/javascript", "javascript");
+ CodeMirror.defineMIME("application/x-javascript", "javascript");
+ CodeMirror.defineMIME("application/ecmascript", "javascript");
+ CodeMirror.defineMIME("application/json", {
+ name: "javascript",
+ json: true
+ });
+ CodeMirror.defineMIME("application/x-json", {
+ name: "javascript",
+ json: true
+ });
+ CodeMirror.defineMIME("application/manifest+json", {
+ name: "javascript",
+ json: true
+ });
+ CodeMirror.defineMIME("application/ld+json", {
+ name: "javascript",
+ jsonld: true
+ });
+ CodeMirror.defineMIME("text/typescript", {
+ name: "javascript",
+ typescript: true
+ });
+ CodeMirror.defineMIME("application/typescript", {
+ name: "javascript",
+ typescript: true
+ });
+});
+
+/***/ }),
+
/***/ "../../../node_modules/copy-to-clipboard/index.js":
/*!********************************************************!*\
!*** ../../../node_modules/copy-to-clipboard/index.js ***!
\********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var deselectCurrent = __webpack_require__(/*! toggle-selection */ "../../../node_modules/toggle-selection/index.js");
@@ -11488,6 +28739,7 @@ module.exports = copy;
\***********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -11504,6 +28756,7 @@ const isNode = exports.isNode = false;
\****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
@@ -12065,6 +29318,7 @@ exports.decodeXML = decodeXML;
\**************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
// Adapted from https://github.com/mathiasbynens/he/blob/36afe179392226cf1b6ccdb16ebbb7a5a844d93a/src/he.js#L106-L134
@@ -12124,6 +29378,7 @@ exports["default"] = decodeCodePoint;
\****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
@@ -12209,6 +29464,7 @@ function encodeHTMLTrieRe(regExp, str) {
\****************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -12322,6 +29578,7 @@ exports.escapeText = getEscaper(/[&<>\u00A0]/g, new Map([[38, "&"], [60, "&l
\************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
// Generated using scripts/write-decode-map.ts
@@ -12342,6 +29599,7 @@ exports["default"] = new Uint16Array(
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
// Generated using scripts/write-decode-map.ts
@@ -12362,6 +29620,7 @@ exports["default"] = new Uint16Array(
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
// Generated using scripts/write-encode-map.ts
@@ -12636,6 +29895,7 @@ exports["default"] = new Map( /* #__PURE__ */restoreDiff([[9, "	"], [0, "&Ne
\***************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -12880,6 +30140,7 @@ Object.defineProperty(exports, "decodeXMLStrict", ({
\*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -21547,6 +38808,7 @@ exports.wrapHandler = wrapHandler;
\*************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -21667,6 +38929,7 @@ exports.getFrameData = getFrameData;
\************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -21697,6 +38960,7 @@ exports.getNonce = getNonce;
\************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
/*!
@@ -21799,6 +39063,7 @@ function isValidObject(val) {
\*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -22367,6 +39632,7 @@ function isWebSocket(val) {
\*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -22568,6 +39834,7 @@ function stringifyMessage(msg, replacer) {
\*****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
@@ -22604,6 +39871,7 @@ __exportStar(__webpack_require__(/*! ./common */ "../../../node_modules/graphql-
\*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -22917,6 +40185,7 @@ function handleProtocols(protocols) {
\******************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -22980,23 +40249,86 @@ function limitCloseReason(reason, whenTooLong) {
\************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.GraphQLError = void 0;
+exports.formatError = formatError;
+exports.printError = printError;
var _isObjectLike = __webpack_require__(/*! ../jsutils/isObjectLike.mjs */ "../../../node_modules/graphql/jsutils/isObjectLike.mjs");
var _location = __webpack_require__(/*! ../language/location.mjs */ "../../../node_modules/graphql/language/location.mjs");
var _printLocation = __webpack_require__(/*! ../language/printLocation.mjs */ "../../../node_modules/graphql/language/printLocation.mjs");
+function toNormalizedOptions(args) {
+ const firstArg = args[0];
+ if (firstArg == null || 'kind' in firstArg || 'length' in firstArg) {
+ return {
+ nodes: firstArg,
+ source: args[1],
+ positions: args[2],
+ path: args[3],
+ originalError: args[4],
+ extensions: args[5]
+ };
+ }
+ return firstArg;
+}
/**
* A GraphQLError describes an Error found during the parse, validate, or
* execute phases of performing a GraphQL operation. In addition to a message
* and stack trace, it also includes information about the locations in a
* GraphQL document and/or execution result that correspond to the Error.
*/
+
class GraphQLError extends Error {
- constructor(message, options = {}) {
+ /**
+ * An array of `{ line, column }` locations within the source GraphQL document
+ * which correspond to this error.
+ *
+ * Errors during validation often contain multiple locations, for example to
+ * point out two things with the same name. Errors during execution include a
+ * single location, the field which produced the error.
+ *
+ * Enumerable, and appears in the result of JSON.stringify().
+ */
+
+ /**
+ * An array describing the JSON-path into the execution response which
+ * corresponds to this error. Only included for errors during execution.
+ *
+ * Enumerable, and appears in the result of JSON.stringify().
+ */
+
+ /**
+ * An array of GraphQL AST Nodes corresponding to this error.
+ */
+
+ /**
+ * The source GraphQL document for the first location of this error.
+ *
+ * Note that if this Error represents more than one node, the source may not
+ * represent nodes after the first node.
+ */
+
+ /**
+ * An array of character offsets within the source GraphQL document
+ * which correspond to this error.
+ */
+
+ /**
+ * The original error thrown from a field resolver during execution.
+ */
+
+ /**
+ * Extension fields to add to the formatted error.
+ */
+
+ /**
+ * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
+ */
+ constructor(message, ...rawArgs) {
var _this$nodes, _nodeLocations$, _ref;
const {
nodes,
@@ -23005,22 +40337,22 @@ class GraphQLError extends Error {
path,
originalError,
extensions
- } = options;
+ } = toNormalizedOptions(rawArgs);
super(message);
this.name = 'GraphQLError';
this.path = path !== null && path !== void 0 ? path : undefined;
- this.originalError = originalError !== null && originalError !== void 0 ? originalError : undefined;
- // Compute list of blame nodes.
+ this.originalError = originalError !== null && originalError !== void 0 ? originalError : undefined; // Compute list of blame nodes.
+
this.nodes = undefinedIfEmpty(Array.isArray(nodes) ? nodes : nodes ? [nodes] : undefined);
- const nodeLocations = undefinedIfEmpty((_this$nodes = this.nodes) === null || _this$nodes === void 0 ? void 0 : _this$nodes.map(node => node.loc).filter(loc => loc != null));
- // Compute locations in the source for the given nodes/positions.
+ const nodeLocations = undefinedIfEmpty((_this$nodes = this.nodes) === null || _this$nodes === void 0 ? void 0 : _this$nodes.map(node => node.loc).filter(loc => loc != null)); // Compute locations in the source for the given nodes/positions.
+
this.source = source !== null && source !== void 0 ? source : nodeLocations === null || nodeLocations === void 0 ? void 0 : (_nodeLocations$ = nodeLocations[0]) === null || _nodeLocations$ === void 0 ? void 0 : _nodeLocations$.source;
this.positions = positions !== null && positions !== void 0 ? positions : nodeLocations === null || nodeLocations === void 0 ? void 0 : nodeLocations.map(loc => loc.start);
this.locations = positions && source ? positions.map(pos => (0, _location.getLocation)(source, pos)) : nodeLocations === null || nodeLocations === void 0 ? void 0 : nodeLocations.map(loc => (0, _location.getLocation)(loc.source, loc.start));
const originalExtensions = (0, _isObjectLike.isObjectLike)(originalError === null || originalError === void 0 ? void 0 : originalError.extensions) ? originalError === null || originalError === void 0 ? void 0 : originalError.extensions : undefined;
- this.extensions = (_ref = extensions !== null && extensions !== void 0 ? extensions : originalExtensions) !== null && _ref !== void 0 ? _ref : Object.create(null);
- // Only properties prescribed by the spec should be enumerable.
+ this.extensions = (_ref = extensions !== null && extensions !== void 0 ? extensions : originalExtensions) !== null && _ref !== void 0 ? _ref : Object.create(null); // Only properties prescribed by the spec should be enumerable.
// Keep the rest as non-enumerable.
+
Object.defineProperties(this, {
message: {
writable: true,
@@ -23041,17 +40373,18 @@ class GraphQLError extends Error {
originalError: {
enumerable: false
}
- });
- // Include (non-enumerable) stack trace.
+ }); // Include (non-enumerable) stack trace.
+
/* c8 ignore start */
// FIXME: https://github.com/graphql/graphql-js/issues/2317
- if ((originalError === null || originalError === void 0 ? void 0 : originalError.stack) != null) {
+
+ if (originalError !== null && originalError !== void 0 && originalError.stack) {
Object.defineProperty(this, 'stack', {
value: originalError.stack,
writable: true,
configurable: true
});
- } else if (Error.captureStackTrace != null) {
+ } else if (Error.captureStackTrace) {
Error.captureStackTrace(this, GraphQLError);
} else {
Object.defineProperty(this, 'stack', {
@@ -23100,6 +40433,29 @@ exports.GraphQLError = GraphQLError;
function undefinedIfEmpty(array) {
return array === undefined || array.length === 0 ? undefined : array;
}
+/**
+ * See: https://spec.graphql.org/draft/#sec-Errors
+ */
+
+/**
+ * Prints a GraphQLError to a string, representing useful location information
+ * about the error's position in the source.
+ *
+ * @deprecated Please use `error.toString` instead. Will be removed in v17
+ */
+function printError(error) {
+ return error.toString();
+}
+/**
+ * Given a GraphQLError, format it according to the rules described by the
+ * Response Format, Errors section of the GraphQL Specification.
+ *
+ * @deprecated Please use `error.toJSON` instead. Will be removed in v17
+ */
+
+function formatError(error) {
+ return error.toJSON();
+}
/***/ }),
@@ -23109,6 +40465,7 @@ function undefinedIfEmpty(array) {
\*****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -23120,12 +40477,24 @@ Object.defineProperty(exports, "GraphQLError", ({
return _GraphQLError.GraphQLError;
}
}));
+Object.defineProperty(exports, "formatError", ({
+ enumerable: true,
+ get: function () {
+ return _GraphQLError.formatError;
+ }
+}));
Object.defineProperty(exports, "locatedError", ({
enumerable: true,
get: function () {
return _locatedError.locatedError;
}
}));
+Object.defineProperty(exports, "printError", ({
+ enumerable: true,
+ get: function () {
+ return _GraphQLError.printError;
+ }
+}));
Object.defineProperty(exports, "syntaxError", ({
enumerable: true,
get: function () {
@@ -23144,6 +40513,7 @@ var _locatedError = __webpack_require__(/*! ./locatedError.mjs */ "../../../node
\************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -23157,15 +40527,16 @@ var _GraphQLError = __webpack_require__(/*! ./GraphQLError.mjs */ "../../../node
* GraphQL operation, produce a new GraphQLError aware of the location in the
* document responsible for the original Error.
*/
+
function locatedError(rawOriginalError, nodes, path) {
- var _originalError$nodes;
- const originalError = (0, _toError.toError)(rawOriginalError);
- // Note: this uses a brand-check to support GraphQL errors originating from other contexts.
+ var _nodes;
+ const originalError = (0, _toError.toError)(rawOriginalError); // Note: this uses a brand-check to support GraphQL errors originating from other contexts.
+
if (isLocatedGraphQLError(originalError)) {
return originalError;
}
return new _GraphQLError.GraphQLError(originalError.message, {
- nodes: (_originalError$nodes = originalError.nodes) !== null && _originalError$nodes !== void 0 ? _originalError$nodes : nodes,
+ nodes: (_nodes = originalError.nodes) !== null && _nodes !== void 0 ? _nodes : nodes,
source: originalError.source,
positions: originalError.positions,
path,
@@ -23184,6 +40555,7 @@ function isLocatedGraphQLError(error) {
\***********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -23195,6 +40567,7 @@ var _GraphQLError = __webpack_require__(/*! ./GraphQLError.mjs */ "../../../node
* Produces a GraphQLError representing a syntax error, containing useful
* descriptive information about the syntax error's position in the source.
*/
+
function syntaxError(source, position, description) {
return new _GraphQLError.GraphQLError(`Syntax Error: ${description}`, {
source,
@@ -23204,619 +40577,13 @@ function syntaxError(source, position, description) {
/***/ }),
-/***/ "../../../node_modules/graphql/execution/IncrementalGraph.mjs":
-/*!********************************************************************!*\
- !*** ../../../node_modules/graphql/execution/IncrementalGraph.mjs ***!
- \********************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.IncrementalGraph = void 0;
-var _BoxedPromiseOrValue = __webpack_require__(/*! ../jsutils/BoxedPromiseOrValue.mjs */ "../../../node_modules/graphql/jsutils/BoxedPromiseOrValue.mjs");
-var _invariant = __webpack_require__(/*! ../jsutils/invariant.mjs */ "../../../node_modules/graphql/jsutils/invariant.mjs");
-var _isPromise = __webpack_require__(/*! ../jsutils/isPromise.mjs */ "../../../node_modules/graphql/jsutils/isPromise.mjs");
-var _promiseWithResolvers = __webpack_require__(/*! ../jsutils/promiseWithResolvers.mjs */ "../../../node_modules/graphql/jsutils/promiseWithResolvers.mjs");
-var _types = __webpack_require__(/*! ./types.mjs */ "../../../node_modules/graphql/execution/types.mjs");
-/**
- * @internal
- */
-class IncrementalGraph {
- constructor() {
- this._rootNodes = new Set();
- this._completedQueue = [];
- this._nextQueue = [];
- }
- getNewRootNodes(incrementalDataRecords) {
- const initialResultChildren = new Set();
- this._addIncrementalDataRecords(incrementalDataRecords, undefined, initialResultChildren);
- return this._promoteNonEmptyToRoot(initialResultChildren);
- }
- addCompletedSuccessfulExecutionGroup(successfulExecutionGroup) {
- for (const deferredFragmentRecord of successfulExecutionGroup.pendingExecutionGroup.deferredFragmentRecords) {
- deferredFragmentRecord.pendingExecutionGroups.delete(successfulExecutionGroup.pendingExecutionGroup);
- deferredFragmentRecord.successfulExecutionGroups.add(successfulExecutionGroup);
- }
- const incrementalDataRecords = successfulExecutionGroup.incrementalDataRecords;
- if (incrementalDataRecords !== undefined) {
- this._addIncrementalDataRecords(incrementalDataRecords, successfulExecutionGroup.pendingExecutionGroup.deferredFragmentRecords);
- }
- }
- *currentCompletedBatch() {
- let completed;
- while ((completed = this._completedQueue.shift()) !== undefined) {
- yield completed;
- }
- if (this._rootNodes.size === 0) {
- for (const resolve of this._nextQueue) {
- resolve(undefined);
- }
- }
- }
- nextCompletedBatch() {
- const {
- promise,
- resolve
- } = (0, _promiseWithResolvers.promiseWithResolvers)();
- this._nextQueue.push(resolve);
- return promise;
- }
- abort() {
- for (const resolve of this._nextQueue) {
- resolve(undefined);
- }
- }
- hasNext() {
- return this._rootNodes.size > 0;
- }
- completeDeferredFragment(deferredFragmentRecord) {
- if (!this._rootNodes.has(deferredFragmentRecord) || deferredFragmentRecord.pendingExecutionGroups.size > 0) {
- return;
- }
- const successfulExecutionGroups = Array.from(deferredFragmentRecord.successfulExecutionGroups);
- this._removeRootNode(deferredFragmentRecord);
- for (const successfulExecutionGroup of successfulExecutionGroups) {
- for (const otherDeferredFragmentRecord of successfulExecutionGroup.pendingExecutionGroup.deferredFragmentRecords) {
- otherDeferredFragmentRecord.successfulExecutionGroups.delete(successfulExecutionGroup);
- }
- }
- const newRootNodes = this._promoteNonEmptyToRoot(deferredFragmentRecord.children);
- return {
- newRootNodes,
- successfulExecutionGroups
- };
- }
- removeDeferredFragment(deferredFragmentRecord) {
- if (!this._rootNodes.has(deferredFragmentRecord)) {
- return false;
- }
- this._removeRootNode(deferredFragmentRecord);
- return true;
- }
- removeStream(streamRecord) {
- this._removeRootNode(streamRecord);
- }
- _removeRootNode(deliveryGroup) {
- this._rootNodes.delete(deliveryGroup);
- }
- _addIncrementalDataRecords(incrementalDataRecords, parents, initialResultChildren) {
- for (const incrementalDataRecord of incrementalDataRecords) {
- if ((0, _types.isPendingExecutionGroup)(incrementalDataRecord)) {
- for (const deferredFragmentRecord of incrementalDataRecord.deferredFragmentRecords) {
- this._addDeferredFragment(deferredFragmentRecord, initialResultChildren);
- deferredFragmentRecord.pendingExecutionGroups.add(incrementalDataRecord);
- }
- if (this._completesRootNode(incrementalDataRecord)) {
- this._onExecutionGroup(incrementalDataRecord);
- }
- } else if (parents === undefined) {
- initialResultChildren !== undefined || (0, _invariant.invariant)(false);
- initialResultChildren.add(incrementalDataRecord);
- } else {
- for (const parent of parents) {
- this._addDeferredFragment(parent, initialResultChildren);
- parent.children.add(incrementalDataRecord);
- }
- }
- }
- }
- _promoteNonEmptyToRoot(maybeEmptyNewRootNodes) {
- const newRootNodes = [];
- for (const node of maybeEmptyNewRootNodes) {
- if ((0, _types.isDeferredFragmentRecord)(node)) {
- if (node.pendingExecutionGroups.size > 0) {
- for (const pendingExecutionGroup of node.pendingExecutionGroups) {
- if (!this._completesRootNode(pendingExecutionGroup)) {
- this._onExecutionGroup(pendingExecutionGroup);
- }
- }
- this._rootNodes.add(node);
- newRootNodes.push(node);
- continue;
- }
- for (const child of node.children) {
- maybeEmptyNewRootNodes.add(child);
- }
- } else {
- this._rootNodes.add(node);
- newRootNodes.push(node);
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
- this._onStreamItems(node);
- }
- }
- return newRootNodes;
- }
- _completesRootNode(pendingExecutionGroup) {
- return pendingExecutionGroup.deferredFragmentRecords.some(deferredFragmentRecord => this._rootNodes.has(deferredFragmentRecord));
- }
- _addDeferredFragment(deferredFragmentRecord, initialResultChildren) {
- if (this._rootNodes.has(deferredFragmentRecord)) {
- return;
- }
- const parent = deferredFragmentRecord.parent;
- if (parent === undefined) {
- initialResultChildren !== undefined || (0, _invariant.invariant)(false);
- initialResultChildren.add(deferredFragmentRecord);
- return;
- }
- parent.children.add(deferredFragmentRecord);
- this._addDeferredFragment(parent, initialResultChildren);
- }
- _onExecutionGroup(pendingExecutionGroup) {
- let completedExecutionGroup = pendingExecutionGroup.result;
- if (!(completedExecutionGroup instanceof _BoxedPromiseOrValue.BoxedPromiseOrValue)) {
- completedExecutionGroup = completedExecutionGroup();
- }
- const value = completedExecutionGroup.value;
- if ((0, _isPromise.isPromise)(value)) {
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
- value.then(resolved => this._enqueue(resolved));
- } else {
- this._enqueue(value);
- }
- }
- async _onStreamItems(streamRecord) {
- let items = [];
- let errors = [];
- let incrementalDataRecords = [];
- const streamItemQueue = streamRecord.streamItemQueue;
- let streamItemRecord;
- while ((streamItemRecord = streamItemQueue.shift()) !== undefined) {
- let result = streamItemRecord instanceof _BoxedPromiseOrValue.BoxedPromiseOrValue ? streamItemRecord.value : streamItemRecord().value;
- if ((0, _isPromise.isPromise)(result)) {
- if (items.length > 0) {
- this._enqueue({
- streamRecord,
- result:
- // TODO add additional test case or rework for coverage
- errors.length > 0 /* c8 ignore start */ ? {
- items,
- errors
- } /* c8 ignore stop */ : {
- items
- },
- incrementalDataRecords
- });
- items = [];
- errors = [];
- incrementalDataRecords = [];
- }
- // eslint-disable-next-line no-await-in-loop
- result = await result;
- // wait an additional tick to coalesce resolving additional promises
- // within the queue
- // eslint-disable-next-line no-await-in-loop
- await Promise.resolve();
- }
- if (result.item === undefined) {
- if (items.length > 0) {
- this._enqueue({
- streamRecord,
- result: errors.length > 0 ? {
- items,
- errors
- } : {
- items
- },
- incrementalDataRecords
- });
- }
- this._enqueue(result.errors === undefined ? {
- streamRecord
- } : {
- streamRecord,
- errors: result.errors
- });
- return;
- }
- items.push(result.item);
- if (result.errors !== undefined) {
- errors.push(...result.errors);
- }
- if (result.incrementalDataRecords !== undefined) {
- incrementalDataRecords.push(...result.incrementalDataRecords);
- }
- }
- }
- *_yieldCurrentCompletedIncrementalData(first) {
- yield first;
- yield* this.currentCompletedBatch();
- }
- _enqueue(completed) {
- const next = this._nextQueue.shift();
- if (next !== undefined) {
- next(this._yieldCurrentCompletedIncrementalData(completed));
- return;
- }
- this._completedQueue.push(completed);
- }
-}
-exports.IncrementalGraph = IncrementalGraph;
-
-/***/ }),
-
-/***/ "../../../node_modules/graphql/execution/IncrementalPublisher.mjs":
-/*!************************************************************************!*\
- !*** ../../../node_modules/graphql/execution/IncrementalPublisher.mjs ***!
- \************************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.buildIncrementalResponse = buildIncrementalResponse;
-var _invariant = __webpack_require__(/*! ../jsutils/invariant.mjs */ "../../../node_modules/graphql/jsutils/invariant.mjs");
-var _Path = __webpack_require__(/*! ../jsutils/Path.mjs */ "../../../node_modules/graphql/jsutils/Path.mjs");
-var _IncrementalGraph = __webpack_require__(/*! ./IncrementalGraph.mjs */ "../../../node_modules/graphql/execution/IncrementalGraph.mjs");
-var _types = __webpack_require__(/*! ./types.mjs */ "../../../node_modules/graphql/execution/types.mjs");
-function buildIncrementalResponse(context, result, errors, incrementalDataRecords) {
- const incrementalPublisher = new IncrementalPublisher(context);
- return incrementalPublisher.buildResponse(result, errors, incrementalDataRecords);
-}
-/**
- * This class is used to publish incremental results to the client, enabling semi-concurrent
- * execution while preserving result order.
- *
- * @internal
- */
-class IncrementalPublisher {
- constructor(context) {
- this._context = context;
- this._nextId = 0;
- this._incrementalGraph = new _IncrementalGraph.IncrementalGraph();
- }
- buildResponse(data, errors, incrementalDataRecords) {
- const newRootNodes = this._incrementalGraph.getNewRootNodes(incrementalDataRecords);
- const pending = this._toPendingResults(newRootNodes);
- const initialResult = errors === undefined ? {
- data,
- pending,
- hasNext: true
- } : {
- errors,
- data,
- pending,
- hasNext: true
- };
- return {
- initialResult,
- subsequentResults: this._subscribe()
- };
- }
- _toPendingResults(newRootNodes) {
- const pendingResults = [];
- for (const node of newRootNodes) {
- const id = String(this._getNextId());
- node.id = id;
- const pendingResult = {
- id,
- path: (0, _Path.pathToArray)(node.path)
- };
- if (node.label !== undefined) {
- pendingResult.label = node.label;
- }
- pendingResults.push(pendingResult);
- }
- return pendingResults;
- }
- _getNextId() {
- return String(this._nextId++);
- }
- _subscribe() {
- let isDone = false;
- const _next = async () => {
- if (isDone) {
- await this._returnAsyncIteratorsIgnoringErrors();
- return {
- value: undefined,
- done: true
- };
- }
- const context = {
- pending: [],
- incremental: [],
- completed: []
- };
- let batch = this._incrementalGraph.currentCompletedBatch();
- do {
- for (const completedResult of batch) {
- this._handleCompletedIncrementalData(completedResult, context);
- }
- const {
- incremental,
- completed
- } = context;
- if (incremental.length > 0 || completed.length > 0) {
- const hasNext = this._incrementalGraph.hasNext();
- if (!hasNext) {
- isDone = true;
- }
- const subsequentIncrementalExecutionResult = {
- hasNext
- };
- const pending = context.pending;
- if (pending.length > 0) {
- subsequentIncrementalExecutionResult.pending = pending;
- }
- if (incremental.length > 0) {
- subsequentIncrementalExecutionResult.incremental = incremental;
- }
- if (completed.length > 0) {
- subsequentIncrementalExecutionResult.completed = completed;
- }
- return {
- value: subsequentIncrementalExecutionResult,
- done: false
- };
- }
- // eslint-disable-next-line no-await-in-loop
- batch = await this._incrementalGraph.nextCompletedBatch();
- } while (batch !== undefined);
- await this._returnAsyncIteratorsIgnoringErrors();
- return {
- value: undefined,
- done: true
- };
- };
- const _return = async () => {
- isDone = true;
- this._incrementalGraph.abort();
- await this._returnAsyncIterators();
- return {
- value: undefined,
- done: true
- };
- };
- const _throw = async error => {
- isDone = true;
- this._incrementalGraph.abort();
- await this._returnAsyncIterators();
- return Promise.reject(error);
- };
- return {
- [Symbol.asyncIterator]() {
- return this;
- },
- next: _next,
- return: _return,
- throw: _throw
- };
- }
- _handleCompletedIncrementalData(completedIncrementalData, context) {
- if ((0, _types.isCompletedExecutionGroup)(completedIncrementalData)) {
- this._handleCompletedExecutionGroup(completedIncrementalData, context);
- } else {
- this._handleCompletedStreamItems(completedIncrementalData, context);
- }
- }
- _handleCompletedExecutionGroup(completedExecutionGroup, context) {
- if ((0, _types.isFailedExecutionGroup)(completedExecutionGroup)) {
- for (const deferredFragmentRecord of completedExecutionGroup.pendingExecutionGroup.deferredFragmentRecords) {
- const id = deferredFragmentRecord.id;
- if (!this._incrementalGraph.removeDeferredFragment(deferredFragmentRecord)) {
- // This can occur if multiple deferred grouped field sets error for a fragment.
- continue;
- }
- id !== undefined || (0, _invariant.invariant)(false);
- context.completed.push({
- id,
- errors: completedExecutionGroup.errors
- });
- }
- return;
- }
- this._incrementalGraph.addCompletedSuccessfulExecutionGroup(completedExecutionGroup);
- for (const deferredFragmentRecord of completedExecutionGroup.pendingExecutionGroup.deferredFragmentRecords) {
- const completion = this._incrementalGraph.completeDeferredFragment(deferredFragmentRecord);
- if (completion === undefined) {
- continue;
- }
- const id = deferredFragmentRecord.id;
- id !== undefined || (0, _invariant.invariant)(false);
- const incremental = context.incremental;
- const {
- newRootNodes,
- successfulExecutionGroups
- } = completion;
- context.pending.push(...this._toPendingResults(newRootNodes));
- for (const successfulExecutionGroup of successfulExecutionGroups) {
- const {
- bestId,
- subPath
- } = this._getBestIdAndSubPath(id, deferredFragmentRecord, successfulExecutionGroup);
- const incrementalEntry = {
- ...successfulExecutionGroup.result,
- id: bestId
- };
- if (subPath !== undefined) {
- incrementalEntry.subPath = subPath;
- }
- incremental.push(incrementalEntry);
- }
- context.completed.push({
- id
- });
- }
- }
- _handleCompletedStreamItems(streamItemsResult, context) {
- const streamRecord = streamItemsResult.streamRecord;
- const id = streamRecord.id;
- id !== undefined || (0, _invariant.invariant)(false);
- if (streamItemsResult.errors !== undefined) {
- context.completed.push({
- id,
- errors: streamItemsResult.errors
- });
- this._incrementalGraph.removeStream(streamRecord);
- if ((0, _types.isCancellableStreamRecord)(streamRecord)) {
- this._context.cancellableStreams !== undefined || (0, _invariant.invariant)(false);
- this._context.cancellableStreams.delete(streamRecord);
- streamRecord.earlyReturn().catch(() => {
- /* c8 ignore next 1 */
- // ignore error
- });
- }
- } else if (streamItemsResult.result === undefined) {
- context.completed.push({
- id
- });
- this._incrementalGraph.removeStream(streamRecord);
- if ((0, _types.isCancellableStreamRecord)(streamRecord)) {
- this._context.cancellableStreams !== undefined || (0, _invariant.invariant)(false);
- this._context.cancellableStreams.delete(streamRecord);
- }
- } else {
- const incrementalEntry = {
- id,
- ...streamItemsResult.result
- };
- context.incremental.push(incrementalEntry);
- const incrementalDataRecords = streamItemsResult.incrementalDataRecords;
- if (incrementalDataRecords !== undefined) {
- const newRootNodes = this._incrementalGraph.getNewRootNodes(incrementalDataRecords);
- context.pending.push(...this._toPendingResults(newRootNodes));
- }
- }
- }
- _getBestIdAndSubPath(initialId, initialDeferredFragmentRecord, completedExecutionGroup) {
- let maxLength = (0, _Path.pathToArray)(initialDeferredFragmentRecord.path).length;
- let bestId = initialId;
- for (const deferredFragmentRecord of completedExecutionGroup.pendingExecutionGroup.deferredFragmentRecords) {
- if (deferredFragmentRecord === initialDeferredFragmentRecord) {
- continue;
- }
- const id = deferredFragmentRecord.id;
- // TODO: add test case for when an fragment has not been released, but might be processed for the shortest path.
- /* c8 ignore next 3 */
- if (id === undefined) {
- continue;
- }
- const fragmentPath = (0, _Path.pathToArray)(deferredFragmentRecord.path);
- const length = fragmentPath.length;
- if (length > maxLength) {
- maxLength = length;
- bestId = id;
- }
- }
- const subPath = completedExecutionGroup.path.slice(maxLength);
- return {
- bestId,
- subPath: subPath.length > 0 ? subPath : undefined
- };
- }
- async _returnAsyncIterators() {
- const cancellableStreams = this._context.cancellableStreams;
- if (cancellableStreams === undefined) {
- return;
- }
- const promises = [];
- for (const streamRecord of cancellableStreams) {
- if (streamRecord.earlyReturn !== undefined) {
- promises.push(streamRecord.earlyReturn());
- }
- }
- await Promise.all(promises);
- }
- async _returnAsyncIteratorsIgnoringErrors() {
- await this._returnAsyncIterators().catch(() => {
- // Ignore errors
- });
- }
-}
-
-/***/ }),
-
-/***/ "../../../node_modules/graphql/execution/buildExecutionPlan.mjs":
-/*!**********************************************************************!*\
- !*** ../../../node_modules/graphql/execution/buildExecutionPlan.mjs ***!
- \**********************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.buildExecutionPlan = buildExecutionPlan;
-var _getBySet = __webpack_require__(/*! ../jsutils/getBySet.mjs */ "../../../node_modules/graphql/jsutils/getBySet.mjs");
-var _isSameSet = __webpack_require__(/*! ../jsutils/isSameSet.mjs */ "../../../node_modules/graphql/jsutils/isSameSet.mjs");
-function buildExecutionPlan(originalGroupedFieldSet, parentDeferUsages = new Set()) {
- const groupedFieldSet = new Map();
- const newGroupedFieldSets = new Map();
- for (const [responseKey, fieldGroup] of originalGroupedFieldSet) {
- const filteredDeferUsageSet = getFilteredDeferUsageSet(fieldGroup);
- if ((0, _isSameSet.isSameSet)(filteredDeferUsageSet, parentDeferUsages)) {
- groupedFieldSet.set(responseKey, fieldGroup);
- continue;
- }
- let newGroupedFieldSet = (0, _getBySet.getBySet)(newGroupedFieldSets, filteredDeferUsageSet);
- if (newGroupedFieldSet === undefined) {
- newGroupedFieldSet = new Map();
- newGroupedFieldSets.set(filteredDeferUsageSet, newGroupedFieldSet);
- }
- newGroupedFieldSet.set(responseKey, fieldGroup);
- }
- return {
- groupedFieldSet,
- newGroupedFieldSets
- };
-}
-function getFilteredDeferUsageSet(fieldGroup) {
- const filteredDeferUsageSet = new Set();
- for (const fieldDetails of fieldGroup) {
- const deferUsage = fieldDetails.deferUsage;
- if (deferUsage === undefined) {
- filteredDeferUsageSet.clear();
- return filteredDeferUsageSet;
- }
- filteredDeferUsageSet.add(deferUsage);
- }
- for (const deferUsage of filteredDeferUsageSet) {
- let parentDeferUsage = deferUsage.parentDeferUsage;
- while (parentDeferUsage !== undefined) {
- if (filteredDeferUsageSet.has(parentDeferUsage)) {
- filteredDeferUsageSet.delete(deferUsage);
- break;
- }
- parentDeferUsage = parentDeferUsage.parentDeferUsage;
- }
- }
- return filteredDeferUsageSet;
-}
-
-/***/ }),
-
/***/ "../../../node_modules/graphql/execution/collectFields.mjs":
/*!*****************************************************************!*\
!*** ../../../node_modules/graphql/execution/collectFields.mjs ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -23824,9 +40591,6 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.collectFields = collectFields;
exports.collectSubfields = collectSubfields;
-var _AccumulatorMap = __webpack_require__(/*! ../jsutils/AccumulatorMap.mjs */ "../../../node_modules/graphql/jsutils/AccumulatorMap.mjs");
-var _invariant = __webpack_require__(/*! ../jsutils/invariant.mjs */ "../../../node_modules/graphql/jsutils/invariant.mjs");
-var _ast = __webpack_require__(/*! ../language/ast.mjs */ "../../../node_modules/graphql/language/ast.mjs");
var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
var _definition = __webpack_require__(/*! ../type/definition.mjs */ "../../../node_modules/graphql/type/definition.mjs");
var _directives = __webpack_require__(/*! ../type/directives.mjs */ "../../../node_modules/graphql/type/directives.mjs");
@@ -23841,22 +40605,11 @@ var _values = __webpack_require__(/*! ./values.mjs */ "../../../node_modules/gra
*
* @internal
*/
-function collectFields(schema, fragments, variableValues, runtimeType, operation) {
- const groupedFieldSet = new _AccumulatorMap.AccumulatorMap();
- const newDeferUsages = [];
- const context = {
- schema,
- fragments,
- variableValues,
- runtimeType,
- operation,
- visitedFragmentNames: new Set()
- };
- collectFieldsImpl(context, operation.selectionSet, groupedFieldSet, newDeferUsages);
- return {
- groupedFieldSet,
- newDeferUsages
- };
+
+function collectFields(schema, fragments, variableValues, runtimeType, selectionSet) {
+ const fields = new Map();
+ collectFieldsImpl(schema, fragments, variableValues, runtimeType, selectionSet, fields, new Set());
+ return fields;
}
/**
* Given an array of field nodes, collects all of the subfields of the passed
@@ -23868,38 +40621,18 @@ function collectFields(schema, fragments, variableValues, runtimeType, operation
*
* @internal
*/
-// eslint-disable-next-line max-params
-function collectSubfields(schema, fragments, variableValues, operation, returnType, fieldGroup) {
- const context = {
- schema,
- fragments,
- variableValues,
- runtimeType: returnType,
- operation,
- visitedFragmentNames: new Set()
- };
- const subGroupedFieldSet = new _AccumulatorMap.AccumulatorMap();
- const newDeferUsages = [];
- for (const fieldDetail of fieldGroup) {
- const node = fieldDetail.node;
+
+function collectSubfields(schema, fragments, variableValues, returnType, fieldNodes) {
+ const subFieldNodes = new Map();
+ const visitedFragmentNames = new Set();
+ for (const node of fieldNodes) {
if (node.selectionSet) {
- collectFieldsImpl(context, node.selectionSet, subGroupedFieldSet, newDeferUsages, fieldDetail.deferUsage);
+ collectFieldsImpl(schema, fragments, variableValues, returnType, node.selectionSet, subFieldNodes, visitedFragmentNames);
}
}
- return {
- groupedFieldSet: subGroupedFieldSet,
- newDeferUsages
- };
+ return subFieldNodes;
}
-function collectFieldsImpl(context, selectionSet, groupedFieldSet, newDeferUsages, deferUsage) {
- const {
- schema,
- fragments,
- variableValues,
- runtimeType,
- operation,
- visitedFragmentNames
- } = context;
+function collectFieldsImpl(schema, fragments, variableValues, runtimeType, selectionSet, fields, visitedFragmentNames) {
for (const selection of selectionSet.selections) {
switch (selection.kind) {
case _kinds.Kind.FIELD:
@@ -23907,10 +40640,13 @@ function collectFieldsImpl(context, selectionSet, groupedFieldSet, newDeferUsage
if (!shouldIncludeNode(variableValues, selection)) {
continue;
}
- groupedFieldSet.add(getFieldEntryKey(selection), {
- node: selection,
- deferUsage
- });
+ const name = getFieldEntryKey(selection);
+ const fieldList = fields.get(name);
+ if (fieldList !== undefined) {
+ fieldList.push(selection);
+ } else {
+ fields.set(name, [selection]);
+ }
break;
}
case _kinds.Kind.INLINE_FRAGMENT:
@@ -23918,61 +40654,31 @@ function collectFieldsImpl(context, selectionSet, groupedFieldSet, newDeferUsage
if (!shouldIncludeNode(variableValues, selection) || !doesFragmentConditionMatch(schema, selection, runtimeType)) {
continue;
}
- const newDeferUsage = getDeferUsage(operation, variableValues, selection, deferUsage);
- if (!newDeferUsage) {
- collectFieldsImpl(context, selection.selectionSet, groupedFieldSet, newDeferUsages, deferUsage);
- } else {
- newDeferUsages.push(newDeferUsage);
- collectFieldsImpl(context, selection.selectionSet, groupedFieldSet, newDeferUsages, newDeferUsage);
- }
+ collectFieldsImpl(schema, fragments, variableValues, runtimeType, selection.selectionSet, fields, visitedFragmentNames);
break;
}
case _kinds.Kind.FRAGMENT_SPREAD:
{
const fragName = selection.name.value;
- const newDeferUsage = getDeferUsage(operation, variableValues, selection, deferUsage);
- if (!newDeferUsage && (visitedFragmentNames.has(fragName) || !shouldIncludeNode(variableValues, selection))) {
+ if (visitedFragmentNames.has(fragName) || !shouldIncludeNode(variableValues, selection)) {
continue;
}
+ visitedFragmentNames.add(fragName);
const fragment = fragments[fragName];
- if (fragment == null || !doesFragmentConditionMatch(schema, fragment, runtimeType)) {
+ if (!fragment || !doesFragmentConditionMatch(schema, fragment, runtimeType)) {
continue;
}
- if (!newDeferUsage) {
- visitedFragmentNames.add(fragName);
- collectFieldsImpl(context, fragment.selectionSet, groupedFieldSet, newDeferUsages, deferUsage);
- } else {
- newDeferUsages.push(newDeferUsage);
- collectFieldsImpl(context, fragment.selectionSet, groupedFieldSet, newDeferUsages, newDeferUsage);
- }
+ collectFieldsImpl(schema, fragments, variableValues, runtimeType, fragment.selectionSet, fields, visitedFragmentNames);
break;
}
}
}
}
-/**
- * Returns an object containing the `@defer` arguments if a field should be
- * deferred based on the experimental flag, defer directive present and
- * not disabled by the "if" argument.
- */
-function getDeferUsage(operation, variableValues, node, parentDeferUsage) {
- const defer = (0, _values.getDirectiveValues)(_directives.GraphQLDeferDirective, node, variableValues);
- if (!defer) {
- return;
- }
- if (defer.if === false) {
- return;
- }
- operation.operation !== _ast.OperationTypeNode.SUBSCRIPTION || (0, _invariant.invariant)(false, '`@defer` directive not supported on subscription operations. Disable `@defer` by setting the `if` argument to `false`.');
- return {
- label: typeof defer.label === 'string' ? defer.label : undefined,
- parentDeferUsage
- };
-}
/**
* Determines if a field should be included based on the `@include` and `@skip`
* directives, where `@skip` has higher precedence than `@include`.
*/
+
function shouldIncludeNode(variableValues, node) {
const skip = (0, _values.getDirectiveValues)(_directives.GraphQLSkipDirective, node, variableValues);
if ((skip === null || skip === void 0 ? void 0 : skip.if) === true) {
@@ -23987,6 +40693,7 @@ function shouldIncludeNode(variableValues, node) {
/**
* Determines if a fragment is applicable to the given type.
*/
+
function doesFragmentConditionMatch(schema, fragment, type) {
const typeConditionNode = fragment.typeCondition;
if (!typeConditionNode) {
@@ -24004,6 +40711,7 @@ function doesFragmentConditionMatch(schema, fragment, type) {
/**
* Implements the logic to compute the key of a given field's entry
*/
+
function getFieldEntryKey(node) {
return node.alias ? node.alias.value : node.name.value;
}
@@ -24016,23 +40724,22 @@ function getFieldEntryKey(node) {
\***********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
+exports.assertValidExecutionArguments = assertValidExecutionArguments;
exports.buildExecutionContext = buildExecutionContext;
exports.buildResolveInfo = buildResolveInfo;
-exports.createSourceEventStream = createSourceEventStream;
exports.defaultTypeResolver = exports.defaultFieldResolver = void 0;
exports.execute = execute;
exports.executeSync = executeSync;
-exports.experimentalExecuteIncrementally = experimentalExecuteIncrementally;
-exports.subscribe = subscribe;
-var _BoxedPromiseOrValue = __webpack_require__(/*! ../jsutils/BoxedPromiseOrValue.mjs */ "../../../node_modules/graphql/jsutils/BoxedPromiseOrValue.mjs");
+exports.getFieldDef = getFieldDef;
+var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _invariant = __webpack_require__(/*! ../jsutils/invariant.mjs */ "../../../node_modules/graphql/jsutils/invariant.mjs");
-var _isAsyncIterable = __webpack_require__(/*! ../jsutils/isAsyncIterable.mjs */ "../../../node_modules/graphql/jsutils/isAsyncIterable.mjs");
var _isIterableObject = __webpack_require__(/*! ../jsutils/isIterableObject.mjs */ "../../../node_modules/graphql/jsutils/isIterableObject.mjs");
var _isObjectLike = __webpack_require__(/*! ../jsutils/isObjectLike.mjs */ "../../../node_modules/graphql/jsutils/isObjectLike.mjs");
var _isPromise = __webpack_require__(/*! ../jsutils/isPromise.mjs */ "../../../node_modules/graphql/jsutils/isPromise.mjs");
@@ -24045,25 +40752,44 @@ var _locatedError = __webpack_require__(/*! ../error/locatedError.mjs */ "../../
var _ast = __webpack_require__(/*! ../language/ast.mjs */ "../../../node_modules/graphql/language/ast.mjs");
var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
var _definition = __webpack_require__(/*! ../type/definition.mjs */ "../../../node_modules/graphql/type/definition.mjs");
-var _directives = __webpack_require__(/*! ../type/directives.mjs */ "../../../node_modules/graphql/type/directives.mjs");
+var _introspection = __webpack_require__(/*! ../type/introspection.mjs */ "../../../node_modules/graphql/type/introspection.mjs");
var _validate = __webpack_require__(/*! ../type/validate.mjs */ "../../../node_modules/graphql/type/validate.mjs");
-var _buildExecutionPlan = __webpack_require__(/*! ./buildExecutionPlan.mjs */ "../../../node_modules/graphql/execution/buildExecutionPlan.mjs");
var _collectFields = __webpack_require__(/*! ./collectFields.mjs */ "../../../node_modules/graphql/execution/collectFields.mjs");
-var _IncrementalPublisher = __webpack_require__(/*! ./IncrementalPublisher.mjs */ "../../../node_modules/graphql/execution/IncrementalPublisher.mjs");
-var _mapAsyncIterable = __webpack_require__(/*! ./mapAsyncIterable.mjs */ "../../../node_modules/graphql/execution/mapAsyncIterable.mjs");
-var _types = __webpack_require__(/*! ./types.mjs */ "../../../node_modules/graphql/execution/types.mjs");
var _values = __webpack_require__(/*! ./values.mjs */ "../../../node_modules/graphql/execution/values.mjs");
-/* eslint-disable max-params */
-// This file contains a lot of such errors but we plan to refactor it anyway
-// so just disable it for entire file.
/**
* A memoized collection of relevant subfields with regard to the return
* type. Memoizing ensures the subfields are not repeatedly calculated, which
* saves overhead when resolving lists of values.
*/
-const collectSubfields = (0, _memoize.memoize3)((exeContext, returnType, fieldGroup) => (0, _collectFields.collectSubfields)(exeContext.schema, exeContext.fragments, exeContext.variableValues, exeContext.operation, returnType, fieldGroup));
-const UNEXPECTED_EXPERIMENTAL_DIRECTIVES = 'The provided schema unexpectedly contains experimental directives (@defer or @stream). These directives may only be utilized if experimental execution features are explicitly enabled.';
-const UNEXPECTED_MULTIPLE_PAYLOADS = 'Executing this GraphQL operation would unexpectedly produce multiple payloads (due to @defer or @stream directive)';
+
+const collectSubfields = (0, _memoize.memoize3)((exeContext, returnType, fieldNodes) => (0, _collectFields.collectSubfields)(exeContext.schema, exeContext.fragments, exeContext.variableValues, returnType, fieldNodes));
+/**
+ * Terminology
+ *
+ * "Definitions" are the generic name for top-level statements in the document.
+ * Examples of this include:
+ * 1) Operations (such as a query)
+ * 2) Fragments
+ *
+ * "Operations" are a generic name for requests in the document.
+ * Examples of this include:
+ * 1) query,
+ * 2) mutation
+ *
+ * "Selections" are the definitions that can appear legally and at
+ * single level of the query. These include:
+ * 1) field references e.g `a`
+ * 2) fragment "spreads" e.g. `...c`
+ * 3) inline fragment "spreads" e.g. `...on Type { a }`
+ */
+
+/**
+ * Data that must be available at all points during query execution.
+ *
+ * Namely, schema of the type system that is currently executing,
+ * and the fragments defined in the query document
+ */
+
/**
* Implements the "Executing requests" section of the GraphQL specification.
*
@@ -24073,177 +40799,105 @@ const UNEXPECTED_MULTIPLE_PAYLOADS = 'Executing this GraphQL operation would une
*
* If the arguments to this function do not result in a legal execution context,
* a GraphQLError will be thrown immediately explaining the invalid input.
- *
- * This function does not support incremental delivery (`@defer` and `@stream`).
- * If an operation which would defer or stream data is executed with this
- * function, it will throw or return a rejected promise.
- * Use `experimentalExecuteIncrementally` if you want to support incremental
- * delivery.
*/
function execute(args) {
- if (args.schema.getDirective('defer') || args.schema.getDirective('stream')) {
- throw new Error(UNEXPECTED_EXPERIMENTAL_DIRECTIVES);
- }
- const result = experimentalExecuteIncrementally(args);
- if (!(0, _isPromise.isPromise)(result)) {
- if ('initialResult' in result) {
- // This can happen if the operation contains @defer or @stream directives
- // and is not validated prior to execution
- throw new Error(UNEXPECTED_MULTIPLE_PAYLOADS);
- }
- return result;
- }
- return result.then(incrementalResult => {
- if ('initialResult' in incrementalResult) {
- // This can happen if the operation contains @defer or @stream directives
- // and is not validated prior to execution
- throw new Error(UNEXPECTED_MULTIPLE_PAYLOADS);
- }
- return incrementalResult;
- });
-}
-/**
- * Implements the "Executing requests" section of the GraphQL specification,
- * including `@defer` and `@stream` as proposed in
- * https://github.com/graphql/graphql-spec/pull/742
- *
- * This function returns a Promise of an ExperimentalIncrementalExecutionResults
- * object. This object either consists of a single ExecutionResult, or an
- * object containing an `initialResult` and a stream of `subsequentResults`.
- *
- * If the arguments to this function do not result in a legal execution context,
- * a GraphQLError will be thrown immediately explaining the invalid input.
- */
-function experimentalExecuteIncrementally(args) {
- // If a valid execution context cannot be created due to incorrect arguments,
+ // Temporary for v15 to v16 migration. Remove in v17
+ arguments.length < 2 || (0, _devAssert.devAssert)(false, 'graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.');
+ const {
+ schema,
+ document,
+ variableValues,
+ rootValue
+ } = args; // If arguments are missing or incorrect, throw an error.
+
+ assertValidExecutionArguments(schema, document, variableValues); // If a valid execution context cannot be created due to incorrect arguments,
// a "Response" with only errors is returned.
- const exeContext = buildExecutionContext(args);
- // Return early errors if execution context failed.
+
+ const exeContext = buildExecutionContext(args); // Return early errors if execution context failed.
+
if (!('schema' in exeContext)) {
return {
errors: exeContext
};
- }
- return executeOperation(exeContext);
-}
-/**
- * Implements the "Executing operations" section of the spec.
- *
- * Returns a Promise that will eventually resolve to the data described by
- * The "Response" section of the GraphQL specification.
- *
- * If errors are encountered while executing a GraphQL field, only that
- * field and its descendants will be omitted, and sibling fields will still
- * be executed. An execution which encounters errors will still result in a
- * resolved Promise.
- *
- * Errors from sub-fields of a NonNull type may propagate to the top level,
- * at which point we still log the error and null the parent field, which
- * in this case is the entire response.
- */
-function executeOperation(exeContext) {
+ } // Return a Promise that will eventually resolve to the data described by
+ // The "Response" section of the GraphQL specification.
+ //
+ // If errors are encountered while executing a GraphQL field, only that
+ // field and its descendants will be omitted, and sibling fields will still
+ // be executed. An execution which encounters errors will still result in a
+ // resolved Promise.
+ //
+ // Errors from sub-fields of a NonNull type may propagate to the top level,
+ // at which point we still log the error and null the parent field, which
+ // in this case is the entire response.
+
try {
const {
- operation,
- schema,
- fragments,
- variableValues,
- rootValue
+ operation
} = exeContext;
- const rootType = schema.getRootType(operation.operation);
- if (rootType == null) {
- throw new _GraphQLError.GraphQLError(`Schema is not configured to execute ${operation.operation} operation.`, {
- nodes: operation
+ const result = executeOperation(exeContext, operation, rootValue);
+ if ((0, _isPromise.isPromise)(result)) {
+ return result.then(data => buildResponse(data, exeContext.errors), error => {
+ exeContext.errors.push(error);
+ return buildResponse(null, exeContext.errors);
});
}
- const collectedFields = (0, _collectFields.collectFields)(schema, fragments, variableValues, rootType, operation);
- let groupedFieldSet = collectedFields.groupedFieldSet;
- const newDeferUsages = collectedFields.newDeferUsages;
- let graphqlWrappedResult;
- if (newDeferUsages.length === 0) {
- graphqlWrappedResult = executeRootGroupedFieldSet(exeContext, operation.operation, rootType, rootValue, groupedFieldSet, undefined);
- } else {
- const executionPlan = (0, _buildExecutionPlan.buildExecutionPlan)(groupedFieldSet);
- groupedFieldSet = executionPlan.groupedFieldSet;
- const newGroupedFieldSets = executionPlan.newGroupedFieldSets;
- const newDeferMap = addNewDeferredFragments(newDeferUsages, new Map());
- graphqlWrappedResult = executeRootGroupedFieldSet(exeContext, operation.operation, rootType, rootValue, groupedFieldSet, newDeferMap);
- if (newGroupedFieldSets.size > 0) {
- const newPendingExecutionGroups = collectExecutionGroups(exeContext, rootType, rootValue, undefined, undefined, newGroupedFieldSets, newDeferMap);
- graphqlWrappedResult = withNewExecutionGroups(graphqlWrappedResult, newPendingExecutionGroups);
- }
- }
- if ((0, _isPromise.isPromise)(graphqlWrappedResult)) {
- return graphqlWrappedResult.then(resolved => buildDataResponse(exeContext, resolved[0], resolved[1]), error => ({
- data: null,
- errors: withError(exeContext.errors, error)
- }));
- }
- return buildDataResponse(exeContext, graphqlWrappedResult[0], graphqlWrappedResult[1]);
+ return buildResponse(result, exeContext.errors);
} catch (error) {
- return {
- data: null,
- errors: withError(exeContext.errors, error)
- };
+ exeContext.errors.push(error);
+ return buildResponse(null, exeContext.errors);
}
}
-function withNewExecutionGroups(result, newPendingExecutionGroups) {
- if ((0, _isPromise.isPromise)(result)) {
- return result.then(resolved => {
- addIncrementalDataRecords(resolved, newPendingExecutionGroups);
- return resolved;
- });
- }
- addIncrementalDataRecords(result, newPendingExecutionGroups);
- return result;
-}
-function addIncrementalDataRecords(graphqlWrappedResult, incrementalDataRecords) {
- if (incrementalDataRecords === undefined) {
- return;
- }
- if (graphqlWrappedResult[1] === undefined) {
- graphqlWrappedResult[1] = [...incrementalDataRecords];
- } else {
- graphqlWrappedResult[1].push(...incrementalDataRecords);
- }
-}
-function withError(errors, error) {
- return errors === undefined ? [error] : [...errors, error];
-}
-function buildDataResponse(exeContext, data, incrementalDataRecords) {
- const errors = exeContext.errors;
- if (incrementalDataRecords === undefined) {
- return errors !== undefined ? {
- errors,
- data
- } : {
- data
- };
- }
- return (0, _IncrementalPublisher.buildIncrementalResponse)(exeContext, data, errors, incrementalDataRecords);
-}
/**
* Also implements the "Executing requests" section of the GraphQL specification.
* However, it guarantees to complete synchronously (or throw an error) assuming
* that all field resolvers are also synchronous.
*/
+
function executeSync(args) {
- const result = experimentalExecuteIncrementally(args);
- // Assert that the execution was synchronous.
- if ((0, _isPromise.isPromise)(result) || 'initialResult' in result) {
+ const result = execute(args); // Assert that the execution was synchronous.
+
+ if ((0, _isPromise.isPromise)(result)) {
throw new Error('GraphQL execution failed to complete synchronously.');
}
return result;
}
+/**
+ * Given a completed execution context and data, build the `{ errors, data }`
+ * response defined by the "Response" section of the GraphQL specification.
+ */
+
+function buildResponse(data, errors) {
+ return errors.length === 0 ? {
+ data
+ } : {
+ errors,
+ data
+ };
+}
+/**
+ * Essential assertions before executing to provide developer feedback for
+ * improper use of the GraphQL library.
+ *
+ * @internal
+ */
+
+function assertValidExecutionArguments(schema, document, rawVariableValues) {
+ document || (0, _devAssert.devAssert)(false, 'Must provide document.'); // If the schema used for execution is invalid, throw an error.
+
+ (0, _validate.assertValidSchema)(schema); // Variables, if provided, must be an object.
+
+ rawVariableValues == null || (0, _isObjectLike.isObjectLike)(rawVariableValues) || (0, _devAssert.devAssert)(false, 'Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.');
+}
/**
* Constructs a ExecutionContext object from the arguments passed to
* execute, which we will pass throughout the other execution methods.
*
* Throws a GraphQLError if a valid execution context cannot be created.
*
- * TODO: consider no longer exporting this function
* @internal
*/
+
function buildExecutionContext(args) {
var _definition$name, _operation$variableDe;
const {
@@ -24255,11 +40909,8 @@ function buildExecutionContext(args) {
operationName,
fieldResolver,
typeResolver,
- subscribeFieldResolver,
- enableEarlyExecution
+ subscribeFieldResolver
} = args;
- // If the schema used for execution is invalid, throw an error.
- (0, _validate.assertValidSchema)(schema);
let operation;
const fragments = Object.create(null);
for (const definition of document.definitions) {
@@ -24277,8 +40928,7 @@ function buildExecutionContext(args) {
case _kinds.Kind.FRAGMENT_DEFINITION:
fragments[definition.name.value] = definition;
break;
- default:
- // ignore non-executable definitions
+ default: // ignore non-executable definitions
}
}
if (!operation) {
@@ -24286,9 +40936,10 @@ function buildExecutionContext(args) {
return [new _GraphQLError.GraphQLError(`Unknown operation named "${operationName}".`)];
}
return [new _GraphQLError.GraphQLError('Must provide an operation.')];
- }
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
+ } // FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
+
const variableDefinitions = (_operation$variableDe = operation.variableDefinitions) !== null && _operation$variableDe !== void 0 ? _operation$variableDe : [];
const coercedVariableValues = (0, _values.getVariableValues)(schema, variableDefinitions, rawVariableValues !== null && rawVariableValues !== void 0 ? rawVariableValues : {}, {
maxErrors: 50
@@ -24306,100 +40957,91 @@ function buildExecutionContext(args) {
fieldResolver: fieldResolver !== null && fieldResolver !== void 0 ? fieldResolver : defaultFieldResolver,
typeResolver: typeResolver !== null && typeResolver !== void 0 ? typeResolver : defaultTypeResolver,
subscribeFieldResolver: subscribeFieldResolver !== null && subscribeFieldResolver !== void 0 ? subscribeFieldResolver : defaultFieldResolver,
- enableEarlyExecution: enableEarlyExecution === true,
- errors: undefined,
- cancellableStreams: undefined
+ errors: []
};
}
-function buildPerEventExecutionContext(exeContext, payload) {
- return {
- ...exeContext,
- rootValue: payload,
- errors: undefined
- };
-}
-function executeRootGroupedFieldSet(exeContext, operation, rootType, rootValue, groupedFieldSet, deferMap) {
- switch (operation) {
+/**
+ * Implements the "Executing operations" section of the spec.
+ */
+
+function executeOperation(exeContext, operation, rootValue) {
+ const rootType = exeContext.schema.getRootType(operation.operation);
+ if (rootType == null) {
+ throw new _GraphQLError.GraphQLError(`Schema is not configured to execute ${operation.operation} operation.`, {
+ nodes: operation
+ });
+ }
+ const rootFields = (0, _collectFields.collectFields)(exeContext.schema, exeContext.fragments, exeContext.variableValues, rootType, operation.selectionSet);
+ const path = undefined;
+ switch (operation.operation) {
case _ast.OperationTypeNode.QUERY:
- return executeFields(exeContext, rootType, rootValue, undefined, groupedFieldSet, undefined, deferMap);
+ return executeFields(exeContext, rootType, rootValue, path, rootFields);
case _ast.OperationTypeNode.MUTATION:
- return executeFieldsSerially(exeContext, rootType, rootValue, undefined, groupedFieldSet, undefined, deferMap);
+ return executeFieldsSerially(exeContext, rootType, rootValue, path, rootFields);
case _ast.OperationTypeNode.SUBSCRIPTION:
// TODO: deprecate `subscribe` and move all logic here
// Temporary solution until we finish merging execute and subscribe together
- return executeFields(exeContext, rootType, rootValue, undefined, groupedFieldSet, undefined, deferMap);
+ return executeFields(exeContext, rootType, rootValue, path, rootFields);
}
}
/**
* Implements the "Executing selection sets" section of the spec
* for fields that must be executed serially.
*/
-function executeFieldsSerially(exeContext, parentType, sourceValue, path, groupedFieldSet, incrementalContext, deferMap) {
- return (0, _promiseReduce.promiseReduce)(groupedFieldSet, (graphqlWrappedResult, [responseName, fieldGroup]) => {
+
+function executeFieldsSerially(exeContext, parentType, sourceValue, path, fields) {
+ return (0, _promiseReduce.promiseReduce)(fields.entries(), (results, [responseName, fieldNodes]) => {
const fieldPath = (0, _Path.addPath)(path, responseName, parentType.name);
- const result = executeField(exeContext, parentType, sourceValue, fieldGroup, fieldPath, incrementalContext, deferMap);
+ const result = executeField(exeContext, parentType, sourceValue, fieldNodes, fieldPath);
if (result === undefined) {
- return graphqlWrappedResult;
+ return results;
}
if ((0, _isPromise.isPromise)(result)) {
- return result.then(resolved => {
- graphqlWrappedResult[0][responseName] = resolved[0];
- addIncrementalDataRecords(graphqlWrappedResult, resolved[1]);
- return graphqlWrappedResult;
+ return result.then(resolvedResult => {
+ results[responseName] = resolvedResult;
+ return results;
});
}
- graphqlWrappedResult[0][responseName] = result[0];
- addIncrementalDataRecords(graphqlWrappedResult, result[1]);
- return graphqlWrappedResult;
- }, [Object.create(null), undefined]);
+ results[responseName] = result;
+ return results;
+ }, Object.create(null));
}
/**
* Implements the "Executing selection sets" section of the spec
* for fields that may be executed in parallel.
*/
-function executeFields(exeContext, parentType, sourceValue, path, groupedFieldSet, incrementalContext, deferMap) {
+
+function executeFields(exeContext, parentType, sourceValue, path, fields) {
const results = Object.create(null);
- const graphqlWrappedResult = [results, undefined];
let containsPromise = false;
try {
- for (const [responseName, fieldGroup] of groupedFieldSet) {
+ for (const [responseName, fieldNodes] of fields.entries()) {
const fieldPath = (0, _Path.addPath)(path, responseName, parentType.name);
- const result = executeField(exeContext, parentType, sourceValue, fieldGroup, fieldPath, incrementalContext, deferMap);
+ const result = executeField(exeContext, parentType, sourceValue, fieldNodes, fieldPath);
if (result !== undefined) {
+ results[responseName] = result;
if ((0, _isPromise.isPromise)(result)) {
- results[responseName] = result.then(resolved => {
- addIncrementalDataRecords(graphqlWrappedResult, resolved[1]);
- return resolved[0];
- });
containsPromise = true;
- } else {
- results[responseName] = result[0];
- addIncrementalDataRecords(graphqlWrappedResult, result[1]);
}
}
}
} catch (error) {
if (containsPromise) {
// Ensure that any promises returned by other fields are handled, as they may also reject.
- return (0, _promiseForObject.promiseForObject)(results, () => {
- /* noop */
- }).finally(() => {
+ return (0, _promiseForObject.promiseForObject)(results).finally(() => {
throw error;
});
}
throw error;
- }
- // If there are no promises, we can just return the object and any incrementalDataRecords
+ } // If there are no promises, we can just return the object
+
if (!containsPromise) {
- return graphqlWrappedResult;
- }
- // Otherwise, results is a map from field name to the result of resolving that
+ return results;
+ } // Otherwise, results is a map from field name to the result of resolving that
// field, which is possibly a promise. Return a promise that will return this
// same map, but with any promises replaced with the values they resolved to.
- return (0, _promiseForObject.promiseForObject)(results, resolved => [resolved, graphqlWrappedResult[1]]);
-}
-function toNodes(fieldGroup) {
- return fieldGroup.map(fieldDetails => fieldDetails.node);
+
+ return (0, _promiseForObject.promiseForObject)(results);
}
/**
* Implements the "Executing fields" section of the spec
@@ -24407,49 +41049,51 @@ function toNodes(fieldGroup) {
* calling its resolve function, then calls completeValue to complete promises,
* serialize scalars, or execute the sub-selection-set for objects.
*/
-function executeField(exeContext, parentType, source, fieldGroup, path, incrementalContext, deferMap) {
+
+function executeField(exeContext, parentType, source, fieldNodes, path) {
var _fieldDef$resolve;
- const fieldName = fieldGroup[0].node.name.value;
- const fieldDef = exeContext.schema.getField(parentType, fieldName);
+ const fieldDef = getFieldDef(exeContext.schema, parentType, fieldNodes[0]);
if (!fieldDef) {
return;
}
const returnType = fieldDef.type;
const resolveFn = (_fieldDef$resolve = fieldDef.resolve) !== null && _fieldDef$resolve !== void 0 ? _fieldDef$resolve : exeContext.fieldResolver;
- const info = buildResolveInfo(exeContext, fieldDef, toNodes(fieldGroup), parentType, path);
- // Get the resolve function, regardless of if its result is normal or abrupt (error).
+ const info = buildResolveInfo(exeContext, fieldDef, fieldNodes, parentType, path); // Get the resolve function, regardless of if its result is normal or abrupt (error).
+
try {
// Build a JS object of arguments from the field.arguments AST, using the
// variables scope to fulfill any variable references.
// TODO: find a way to memoize, in case this field is within a List type.
- const args = (0, _values.getArgumentValues)(fieldDef, fieldGroup[0].node, exeContext.variableValues);
- // The resolve function's optional third argument is a context value that
+ const args = (0, _values.getArgumentValues)(fieldDef, fieldNodes[0], exeContext.variableValues); // The resolve function's optional third argument is a context value that
// is provided to every resolve function within an execution. It is commonly
// used to represent an authenticated user, or request-specific caches.
+
const contextValue = exeContext.contextValue;
const result = resolveFn(source, args, contextValue, info);
+ let completed;
if ((0, _isPromise.isPromise)(result)) {
- return completePromisedValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap);
+ completed = result.then(resolved => completeValue(exeContext, returnType, fieldNodes, info, path, resolved));
+ } else {
+ completed = completeValue(exeContext, returnType, fieldNodes, info, path, result);
}
- const completed = completeValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap);
if ((0, _isPromise.isPromise)(completed)) {
// Note: we don't rely on a `catch` method, but we do expect "thenable"
// to take a second callback for the error case.
return completed.then(undefined, rawError => {
- handleFieldError(rawError, exeContext, returnType, fieldGroup, path, incrementalContext);
- return [null, undefined];
+ const error = (0, _locatedError.locatedError)(rawError, fieldNodes, (0, _Path.pathToArray)(path));
+ return handleFieldError(error, returnType, exeContext);
});
}
return completed;
} catch (rawError) {
- handleFieldError(rawError, exeContext, returnType, fieldGroup, path, incrementalContext);
- return [null, undefined];
+ const error = (0, _locatedError.locatedError)(rawError, fieldNodes, (0, _Path.pathToArray)(path));
+ return handleFieldError(error, returnType, exeContext);
}
}
/**
- * TODO: consider no longer exporting this function
* @internal
*/
+
function buildResolveInfo(exeContext, fieldDef, fieldNodes, parentType, path) {
// The resolve function's optional fourth argument is a collection of
// information about the current execution state.
@@ -24466,22 +41110,16 @@ function buildResolveInfo(exeContext, fieldDef, fieldNodes, parentType, path) {
variableValues: exeContext.variableValues
};
}
-function handleFieldError(rawError, exeContext, returnType, fieldGroup, path, incrementalContext) {
- const error = (0, _locatedError.locatedError)(rawError, toNodes(fieldGroup), (0, _Path.pathToArray)(path));
+function handleFieldError(error, returnType, exeContext) {
// If the field type is non-nullable, then it is resolved without any
// protection from errors, however it still properly locates the error.
if ((0, _definition.isNonNullType)(returnType)) {
throw error;
- }
- // Otherwise, error protection is applied, logging the error and resolving
+ } // Otherwise, error protection is applied, logging the error and resolving
// a null value for this field if one is encountered.
- const context = incrementalContext !== null && incrementalContext !== void 0 ? incrementalContext : exeContext;
- let errors = context.errors;
- if (errors === undefined) {
- errors = [];
- context.errors = errors;
- }
- errors.push(error);
+
+ exeContext.errors.push(error);
+ return null;
}
/**
* Implements the instructions for completeValue as defined in the
@@ -24504,271 +41142,94 @@ function handleFieldError(rawError, exeContext, returnType, fieldGroup, path, in
* Otherwise, the field type expects a sub-selection set, and will complete the
* value by executing all sub-selections.
*/
-function completeValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap) {
+
+function completeValue(exeContext, returnType, fieldNodes, info, path, result) {
// If result is an Error, throw a located error.
if (result instanceof Error) {
throw result;
- }
- // If field type is NonNull, complete for inner type, and throw field error
+ } // If field type is NonNull, complete for inner type, and throw field error
// if result is null.
+
if ((0, _definition.isNonNullType)(returnType)) {
- const completed = completeValue(exeContext, returnType.ofType, fieldGroup, info, path, result, incrementalContext, deferMap);
- if (completed[0] === null) {
+ const completed = completeValue(exeContext, returnType.ofType, fieldNodes, info, path, result);
+ if (completed === null) {
throw new Error(`Cannot return null for non-nullable field ${info.parentType.name}.${info.fieldName}.`);
}
return completed;
- }
- // If result value is null or undefined then return null.
+ } // If result value is null or undefined then return null.
+
if (result == null) {
- return [null, undefined];
- }
- // If field type is List, complete each item in the list with the inner type
+ return null;
+ } // If field type is List, complete each item in the list with the inner type
+
if ((0, _definition.isListType)(returnType)) {
- return completeListValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap);
- }
- // If field type is a leaf type, Scalar or Enum, serialize to a valid value,
+ return completeListValue(exeContext, returnType, fieldNodes, info, path, result);
+ } // If field type is a leaf type, Scalar or Enum, serialize to a valid value,
// returning null if serialization is not possible.
+
if ((0, _definition.isLeafType)(returnType)) {
- return [completeLeafValue(returnType, result), undefined];
- }
- // If field type is an abstract type, Interface or Union, determine the
+ return completeLeafValue(returnType, result);
+ } // If field type is an abstract type, Interface or Union, determine the
// runtime Object type and complete for that type.
+
if ((0, _definition.isAbstractType)(returnType)) {
- return completeAbstractValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap);
- }
- // If field type is Object, execute and complete all sub-selections.
+ return completeAbstractValue(exeContext, returnType, fieldNodes, info, path, result);
+ } // If field type is Object, execute and complete all sub-selections.
+
if ((0, _definition.isObjectType)(returnType)) {
- return completeObjectValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap);
+ return completeObjectValue(exeContext, returnType, fieldNodes, info, path, result);
}
/* c8 ignore next 6 */
// Not reachable, all possible output types have been considered.
+
false || (0, _invariant.invariant)(false, 'Cannot complete value of unexpected output type: ' + (0, _inspect.inspect)(returnType));
}
-async function completePromisedValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap) {
- try {
- const resolved = await result;
- let completed = completeValue(exeContext, returnType, fieldGroup, info, path, resolved, incrementalContext, deferMap);
- if ((0, _isPromise.isPromise)(completed)) {
- completed = await completed;
- }
- return completed;
- } catch (rawError) {
- handleFieldError(rawError, exeContext, returnType, fieldGroup, path, incrementalContext);
- return [null, undefined];
- }
-}
-/**
- * Returns an object containing info for streaming if a field should be
- * streamed based on the experimental flag, stream directive present and
- * not disabled by the "if" argument.
- */
-function getStreamUsage(exeContext, fieldGroup, path) {
- // do not stream inner lists of multi-dimensional lists
- if (typeof path.key === 'number') {
- return;
- }
- // TODO: add test for this case (a streamed list nested under a list).
- /* c8 ignore next 7 */
- if (fieldGroup._streamUsage !== undefined) {
- return fieldGroup._streamUsage;
- }
- // validation only allows equivalent streams on multiple fields, so it is
- // safe to only check the first fieldNode for the stream directive
- const stream = (0, _values.getDirectiveValues)(_directives.GraphQLStreamDirective, fieldGroup[0].node, exeContext.variableValues);
- if (!stream) {
- return;
- }
- if (stream.if === false) {
- return;
- }
- typeof stream.initialCount === 'number' || (0, _invariant.invariant)(false, 'initialCount must be a number');
- stream.initialCount >= 0 || (0, _invariant.invariant)(false, 'initialCount must be a positive integer');
- exeContext.operation.operation !== _ast.OperationTypeNode.SUBSCRIPTION || (0, _invariant.invariant)(false, '`@stream` directive not supported on subscription operations. Disable `@stream` by setting the `if` argument to `false`.');
- const streamedFieldGroup = fieldGroup.map(fieldDetails => ({
- node: fieldDetails.node,
- deferUsage: undefined
- }));
- const streamUsage = {
- initialCount: stream.initialCount,
- label: typeof stream.label === 'string' ? stream.label : undefined,
- fieldGroup: streamedFieldGroup
- };
- fieldGroup._streamUsage = streamUsage;
- return streamUsage;
-}
-/**
- * Complete a async iterator value by completing the result and calling
- * recursively until all the results are completed.
- */
-async function completeAsyncIteratorValue(exeContext, itemType, fieldGroup, info, path, asyncIterator, incrementalContext, deferMap) {
- let containsPromise = false;
- const completedResults = [];
- const graphqlWrappedResult = [completedResults, undefined];
- let index = 0;
- const streamUsage = getStreamUsage(exeContext, fieldGroup, path);
- const earlyReturn = asyncIterator.return === undefined ? undefined : asyncIterator.return.bind(asyncIterator);
- try {
- // eslint-disable-next-line no-constant-condition
- while (true) {
- if (streamUsage && index >= streamUsage.initialCount) {
- const streamItemQueue = buildAsyncStreamItemQueue(index, path, asyncIterator, exeContext, streamUsage.fieldGroup, info, itemType);
- let streamRecord;
- if (earlyReturn === undefined) {
- streamRecord = {
- label: streamUsage.label,
- path,
- streamItemQueue
- };
- } else {
- streamRecord = {
- label: streamUsage.label,
- path,
- earlyReturn,
- streamItemQueue
- };
- if (exeContext.cancellableStreams === undefined) {
- exeContext.cancellableStreams = new Set();
- }
- exeContext.cancellableStreams.add(streamRecord);
- }
- addIncrementalDataRecords(graphqlWrappedResult, [streamRecord]);
- break;
- }
- const itemPath = (0, _Path.addPath)(path, index, undefined);
- let iteration;
- try {
- // eslint-disable-next-line no-await-in-loop
- iteration = await asyncIterator.next();
- } catch (rawError) {
- throw (0, _locatedError.locatedError)(rawError, toNodes(fieldGroup), (0, _Path.pathToArray)(path));
- }
- // TODO: add test case for stream returning done before initialCount
- /* c8 ignore next 3 */
- if (iteration.done) {
- break;
- }
- const item = iteration.value;
- // TODO: add tests for stream backed by asyncIterator that returns a promise
- /* c8 ignore start */
- if ((0, _isPromise.isPromise)(item)) {
- completedResults.push(completePromisedListItemValue(item, graphqlWrappedResult, exeContext, itemType, fieldGroup, info, itemPath, incrementalContext, deferMap));
- containsPromise = true;
- } else if ( /* c8 ignore stop */
- completeListItemValue(item, completedResults, graphqlWrappedResult, exeContext, itemType, fieldGroup, info, itemPath, incrementalContext, deferMap)
- // TODO: add tests for stream backed by asyncIterator that completes to a promise
- /* c8 ignore start */) {
- containsPromise = true;
- }
- /* c8 ignore stop */
- index++;
- }
- } catch (error) {
- if (earlyReturn !== undefined) {
- earlyReturn().catch(() => {
- /* c8 ignore next 1 */
- // ignore error
- });
- }
- throw error;
- }
- return containsPromise ? /* c8 ignore start */Promise.all(completedResults).then(resolved => [resolved, graphqlWrappedResult[1]]) : /* c8 ignore stop */graphqlWrappedResult;
-}
/**
* Complete a list value by completing each item in the list with the
* inner type
*/
-function completeListValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap) {
- const itemType = returnType.ofType;
- if ((0, _isAsyncIterable.isAsyncIterable)(result)) {
- const asyncIterator = result[Symbol.asyncIterator]();
- return completeAsyncIteratorValue(exeContext, itemType, fieldGroup, info, path, asyncIterator, incrementalContext, deferMap);
- }
+
+function completeListValue(exeContext, returnType, fieldNodes, info, path, result) {
if (!(0, _isIterableObject.isIterableObject)(result)) {
throw new _GraphQLError.GraphQLError(`Expected Iterable, but did not find one for field "${info.parentType.name}.${info.fieldName}".`);
- }
- return completeIterableValue(exeContext, itemType, fieldGroup, info, path, result, incrementalContext, deferMap);
-}
-function completeIterableValue(exeContext, itemType, fieldGroup, info, path, items, incrementalContext, deferMap) {
- // This is specified as a simple map, however we're optimizing the path
+ } // This is specified as a simple map, however we're optimizing the path
// where the list contains no Promises by avoiding creating another Promise.
+
+ const itemType = returnType.ofType;
let containsPromise = false;
- const completedResults = [];
- const graphqlWrappedResult = [completedResults, undefined];
- let index = 0;
- const streamUsage = getStreamUsage(exeContext, fieldGroup, path);
- const iterator = items[Symbol.iterator]();
- let iteration = iterator.next();
- while (!iteration.done) {
- const item = iteration.value;
- if (streamUsage && index >= streamUsage.initialCount) {
- const syncStreamRecord = {
- label: streamUsage.label,
- path,
- streamItemQueue: buildSyncStreamItemQueue(item, index, path, iterator, exeContext, streamUsage.fieldGroup, info, itemType)
- };
- addIncrementalDataRecords(graphqlWrappedResult, [syncStreamRecord]);
- break;
- }
+ const completedResults = Array.from(result, (item, index) => {
// No need to modify the info object containing the path,
// since from here on it is not ever accessed by resolver functions.
const itemPath = (0, _Path.addPath)(path, index, undefined);
- if ((0, _isPromise.isPromise)(item)) {
- completedResults.push(completePromisedListItemValue(item, graphqlWrappedResult, exeContext, itemType, fieldGroup, info, itemPath, incrementalContext, deferMap));
- containsPromise = true;
- } else if (completeListItemValue(item, completedResults, graphqlWrappedResult, exeContext, itemType, fieldGroup, info, itemPath, incrementalContext, deferMap)) {
- containsPromise = true;
+ try {
+ let completedItem;
+ if ((0, _isPromise.isPromise)(item)) {
+ completedItem = item.then(resolved => completeValue(exeContext, itemType, fieldNodes, info, itemPath, resolved));
+ } else {
+ completedItem = completeValue(exeContext, itemType, fieldNodes, info, itemPath, item);
+ }
+ if ((0, _isPromise.isPromise)(completedItem)) {
+ containsPromise = true; // Note: we don't rely on a `catch` method, but we do expect "thenable"
+ // to take a second callback for the error case.
+
+ return completedItem.then(undefined, rawError => {
+ const error = (0, _locatedError.locatedError)(rawError, fieldNodes, (0, _Path.pathToArray)(itemPath));
+ return handleFieldError(error, itemType, exeContext);
+ });
+ }
+ return completedItem;
+ } catch (rawError) {
+ const error = (0, _locatedError.locatedError)(rawError, fieldNodes, (0, _Path.pathToArray)(itemPath));
+ return handleFieldError(error, itemType, exeContext);
}
- index++;
- iteration = iterator.next();
- }
- return containsPromise ? Promise.all(completedResults).then(resolved => [resolved, graphqlWrappedResult[1]]) : graphqlWrappedResult;
-}
-/**
- * Complete a list item value by adding it to the completed results.
- *
- * Returns true if the value is a Promise.
- */
-function completeListItemValue(item, completedResults, parent, exeContext, itemType, fieldGroup, info, itemPath, incrementalContext, deferMap) {
- try {
- const completedItem = completeValue(exeContext, itemType, fieldGroup, info, itemPath, item, incrementalContext, deferMap);
- if ((0, _isPromise.isPromise)(completedItem)) {
- // Note: we don't rely on a `catch` method, but we do expect "thenable"
- // to take a second callback for the error case.
- completedResults.push(completedItem.then(resolved => {
- addIncrementalDataRecords(parent, resolved[1]);
- return resolved[0];
- }, rawError => {
- handleFieldError(rawError, exeContext, itemType, fieldGroup, itemPath, incrementalContext);
- return null;
- }));
- return true;
- }
- completedResults.push(completedItem[0]);
- addIncrementalDataRecords(parent, completedItem[1]);
- } catch (rawError) {
- handleFieldError(rawError, exeContext, itemType, fieldGroup, itemPath, incrementalContext);
- completedResults.push(null);
- }
- return false;
-}
-async function completePromisedListItemValue(item, parent, exeContext, itemType, fieldGroup, info, itemPath, incrementalContext, deferMap) {
- try {
- const resolved = await item;
- let completed = completeValue(exeContext, itemType, fieldGroup, info, itemPath, resolved, incrementalContext, deferMap);
- if ((0, _isPromise.isPromise)(completed)) {
- completed = await completed;
- }
- addIncrementalDataRecords(parent, completed[1]);
- return completed[0];
- } catch (rawError) {
- handleFieldError(rawError, exeContext, itemType, fieldGroup, itemPath, incrementalContext);
- return null;
- }
+ });
+ return containsPromise ? Promise.all(completedResults) : completedResults;
}
/**
* Complete a Scalar or Enum by serializing to a valid value, returning
* null if serialization is not possible.
*/
+
function completeLeafValue(returnType, result) {
const serializedResult = returnType.serialize(result);
if (serializedResult == null) {
@@ -24780,24 +41241,23 @@ function completeLeafValue(returnType, result) {
* Complete a value of an abstract type by determining the runtime object type
* of that value, then complete the value for that type.
*/
-function completeAbstractValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap) {
+
+function completeAbstractValue(exeContext, returnType, fieldNodes, info, path, result) {
var _returnType$resolveTy;
const resolveTypeFn = (_returnType$resolveTy = returnType.resolveType) !== null && _returnType$resolveTy !== void 0 ? _returnType$resolveTy : exeContext.typeResolver;
const contextValue = exeContext.contextValue;
const runtimeType = resolveTypeFn(result, contextValue, info, returnType);
if ((0, _isPromise.isPromise)(runtimeType)) {
- return runtimeType.then(resolvedRuntimeType => completeObjectValue(exeContext, ensureValidRuntimeType(resolvedRuntimeType, exeContext, returnType, fieldGroup, info, result), fieldGroup, info, path, result, incrementalContext, deferMap));
+ return runtimeType.then(resolvedRuntimeType => completeObjectValue(exeContext, ensureValidRuntimeType(resolvedRuntimeType, exeContext, returnType, fieldNodes, info, result), fieldNodes, info, path, result));
}
- return completeObjectValue(exeContext, ensureValidRuntimeType(runtimeType, exeContext, returnType, fieldGroup, info, result), fieldGroup, info, path, result, incrementalContext, deferMap);
+ return completeObjectValue(exeContext, ensureValidRuntimeType(runtimeType, exeContext, returnType, fieldNodes, info, result), fieldNodes, info, path, result);
}
-function ensureValidRuntimeType(runtimeTypeName, exeContext, returnType, fieldGroup, info, result) {
+function ensureValidRuntimeType(runtimeTypeName, exeContext, returnType, fieldNodes, info, result) {
if (runtimeTypeName == null) {
- throw new _GraphQLError.GraphQLError(`Abstract type "${returnType.name}" must resolve to an Object type at runtime for field "${info.parentType.name}.${info.fieldName}". Either the "${returnType.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`, {
- nodes: toNodes(fieldGroup)
- });
- }
- // releases before 16.0.0 supported returning `GraphQLObjectType` from `resolveType`
+ throw new _GraphQLError.GraphQLError(`Abstract type "${returnType.name}" must resolve to an Object type at runtime for field "${info.parentType.name}.${info.fieldName}". Either the "${returnType.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`, fieldNodes);
+ } // releases before 16.0.0 supported returning `GraphQLObjectType` from `resolveType`
// TODO: remove in 17.0.0 release
+
if ((0, _definition.isObjectType)(runtimeTypeName)) {
throw new _GraphQLError.GraphQLError('Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.');
}
@@ -24807,17 +41267,17 @@ function ensureValidRuntimeType(runtimeTypeName, exeContext, returnType, fieldGr
const runtimeType = exeContext.schema.getType(runtimeTypeName);
if (runtimeType == null) {
throw new _GraphQLError.GraphQLError(`Abstract type "${returnType.name}" was resolved to a type "${runtimeTypeName}" that does not exist inside the schema.`, {
- nodes: toNodes(fieldGroup)
+ nodes: fieldNodes
});
}
if (!(0, _definition.isObjectType)(runtimeType)) {
throw new _GraphQLError.GraphQLError(`Abstract type "${returnType.name}" was resolved to a non-object type "${runtimeTypeName}".`, {
- nodes: toNodes(fieldGroup)
+ nodes: fieldNodes
});
}
if (!exeContext.schema.isSubType(returnType, runtimeType)) {
throw new _GraphQLError.GraphQLError(`Runtime Object type "${runtimeType.name}" is not a possible type for "${returnType.name}".`, {
- nodes: toNodes(fieldGroup)
+ nodes: fieldNodes
});
}
return runtimeType;
@@ -24825,92 +41285,34 @@ function ensureValidRuntimeType(runtimeTypeName, exeContext, returnType, fieldGr
/**
* Complete an Object value by executing all sub-selections.
*/
-function completeObjectValue(exeContext, returnType, fieldGroup, info, path, result, incrementalContext, deferMap) {
- // If there is an isTypeOf predicate function, call it with the
+
+function completeObjectValue(exeContext, returnType, fieldNodes, info, path, result) {
+ // Collect sub-fields to execute to complete this value.
+ const subFieldNodes = collectSubfields(exeContext, returnType, fieldNodes); // If there is an isTypeOf predicate function, call it with the
// current result. If isTypeOf returns false, then raise an error rather
// than continuing execution.
+
if (returnType.isTypeOf) {
const isTypeOf = returnType.isTypeOf(result, exeContext.contextValue, info);
if ((0, _isPromise.isPromise)(isTypeOf)) {
return isTypeOf.then(resolvedIsTypeOf => {
if (!resolvedIsTypeOf) {
- throw invalidReturnTypeError(returnType, result, fieldGroup);
+ throw invalidReturnTypeError(returnType, result, fieldNodes);
}
- return collectAndExecuteSubfields(exeContext, returnType, fieldGroup, path, result, incrementalContext, deferMap);
+ return executeFields(exeContext, returnType, result, path, subFieldNodes);
});
}
if (!isTypeOf) {
- throw invalidReturnTypeError(returnType, result, fieldGroup);
+ throw invalidReturnTypeError(returnType, result, fieldNodes);
}
}
- return collectAndExecuteSubfields(exeContext, returnType, fieldGroup, path, result, incrementalContext, deferMap);
+ return executeFields(exeContext, returnType, result, path, subFieldNodes);
}
-function invalidReturnTypeError(returnType, result, fieldGroup) {
+function invalidReturnTypeError(returnType, result, fieldNodes) {
return new _GraphQLError.GraphQLError(`Expected value of type "${returnType.name}" but got: ${(0, _inspect.inspect)(result)}.`, {
- nodes: toNodes(fieldGroup)
+ nodes: fieldNodes
});
}
-/**
- * Instantiates new DeferredFragmentRecords for the given path within an
- * incremental data record, returning an updated map of DeferUsage
- * objects to DeferredFragmentRecords.
- *
- * Note: As defer directives may be used with operations returning lists,
- * a DeferUsage object may correspond to many DeferredFragmentRecords.
- *
- * DeferredFragmentRecord creation includes the following steps:
- * 1. The new DeferredFragmentRecord is instantiated at the given path.
- * 2. The parent result record is calculated from the given incremental data
- * record.
- * 3. The IncrementalPublisher is notified that a new DeferredFragmentRecord
- * with the calculated parent has been added; the record will be released only
- * after the parent has completed.
- *
- */
-function addNewDeferredFragments(newDeferUsages, newDeferMap, path) {
- // For each new deferUsage object:
- for (const newDeferUsage of newDeferUsages) {
- const parentDeferUsage = newDeferUsage.parentDeferUsage;
- const parent = parentDeferUsage === undefined ? undefined : deferredFragmentRecordFromDeferUsage(parentDeferUsage, newDeferMap);
- // Instantiate the new record.
- const deferredFragmentRecord = new _types.DeferredFragmentRecord(path, newDeferUsage.label, parent);
- // Update the map.
- newDeferMap.set(newDeferUsage, deferredFragmentRecord);
- }
- return newDeferMap;
-}
-function deferredFragmentRecordFromDeferUsage(deferUsage, deferMap) {
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- return deferMap.get(deferUsage);
-}
-function collectAndExecuteSubfields(exeContext, returnType, fieldGroup, path, result, incrementalContext, deferMap) {
- // Collect sub-fields to execute to complete this value.
- const collectedSubfields = collectSubfields(exeContext, returnType, fieldGroup);
- let groupedFieldSet = collectedSubfields.groupedFieldSet;
- const newDeferUsages = collectedSubfields.newDeferUsages;
- if (deferMap === undefined && newDeferUsages.length === 0) {
- return executeFields(exeContext, returnType, result, path, groupedFieldSet, incrementalContext, undefined);
- }
- const subExecutionPlan = buildSubExecutionPlan(groupedFieldSet, incrementalContext === null || incrementalContext === void 0 ? void 0 : incrementalContext.deferUsageSet);
- groupedFieldSet = subExecutionPlan.groupedFieldSet;
- const newGroupedFieldSets = subExecutionPlan.newGroupedFieldSets;
- const newDeferMap = addNewDeferredFragments(newDeferUsages, new Map(deferMap), path);
- const subFields = executeFields(exeContext, returnType, result, path, groupedFieldSet, incrementalContext, newDeferMap);
- if (newGroupedFieldSets.size > 0) {
- const newPendingExecutionGroups = collectExecutionGroups(exeContext, returnType, result, path, incrementalContext === null || incrementalContext === void 0 ? void 0 : incrementalContext.deferUsageSet, newGroupedFieldSets, newDeferMap);
- return withNewExecutionGroups(subFields, newPendingExecutionGroups);
- }
- return subFields;
-}
-function buildSubExecutionPlan(originalGroupedFieldSet, deferUsageSet) {
- let executionPlan = originalGroupedFieldSet._executionPlan;
- if (executionPlan !== undefined) {
- return executionPlan;
- }
- executionPlan = (0, _buildExecutionPlan.buildExecutionPlan)(originalGroupedFieldSet, deferUsageSet);
- originalGroupedFieldSet._executionPlan = executionPlan;
- return executionPlan;
-}
/**
* If a resolveType function is not given, then a default resolve behavior is
* used which attempts two strategies:
@@ -24921,12 +41323,13 @@ function buildSubExecutionPlan(originalGroupedFieldSet, deferUsageSet) {
* Otherwise, test each possible type for the abstract type by calling
* isTypeOf for the object being coerced, returning the first type that matches.
*/
+
const defaultTypeResolver = function (value, contextValue, info, abstractType) {
// First, look for `__typename`.
if ((0, _isObjectLike.isObjectLike)(value) && typeof value.__typename === 'string') {
return value.__typename;
- }
- // Otherwise, test each possible type.
+ } // Otherwise, test each possible type.
+
const possibleTypes = info.schema.getPossibleTypes(abstractType);
const promisedIsTypeOfResults = [];
for (let i = 0; i < possibleTypes.length; i++) {
@@ -24968,340 +41371,27 @@ const defaultFieldResolver = function (source, args, contextValue, info) {
}
};
/**
- * Implements the "Subscribe" algorithm described in the GraphQL specification.
+ * This method looks up the field on the given type definition.
+ * It has special casing for the three introspection fields,
+ * __schema, __type and __typename. __typename is special because
+ * it can always be queried as a field, even in situations where no
+ * other fields are allowed, like on a Union. __schema and __type
+ * could get automatically added to the query type, but that would
+ * require mutating type definitions, which would cause issues.
*
- * Returns a Promise which resolves to either an AsyncIterator (if successful)
- * or an ExecutionResult (error). The promise will be rejected if the schema or
- * other arguments to this function are invalid, or if the resolved event stream
- * is not an async iterable.
- *
- * If the client-provided arguments to this function do not result in a
- * compliant subscription, a GraphQL Response (ExecutionResult) with descriptive
- * errors and no data will be returned.
- *
- * If the source stream could not be created due to faulty subscription resolver
- * logic or underlying systems, the promise will resolve to a single
- * ExecutionResult containing `errors` and no `data`.
- *
- * If the operation succeeded, the promise resolves to an AsyncIterator, which
- * yields a stream of ExecutionResults representing the response stream.
- *
- * This function does not support incremental delivery (`@defer` and `@stream`).
- * If an operation which would defer or stream data is executed with this
- * function, a field error will be raised at the location of the `@defer` or
- * `@stream` directive.
- *
- * Accepts an object with named arguments.
+ * @internal
*/
exports.defaultFieldResolver = defaultFieldResolver;
-function subscribe(args) {
- // If a valid execution context cannot be created due to incorrect arguments,
- // a "Response" with only errors is returned.
- const exeContext = buildExecutionContext(args);
- // Return early errors if execution context failed.
- if (!('schema' in exeContext)) {
- return {
- errors: exeContext
- };
+function getFieldDef(schema, parentType, fieldNode) {
+ const fieldName = fieldNode.name.value;
+ if (fieldName === _introspection.SchemaMetaFieldDef.name && schema.getQueryType() === parentType) {
+ return _introspection.SchemaMetaFieldDef;
+ } else if (fieldName === _introspection.TypeMetaFieldDef.name && schema.getQueryType() === parentType) {
+ return _introspection.TypeMetaFieldDef;
+ } else if (fieldName === _introspection.TypeNameMetaFieldDef.name) {
+ return _introspection.TypeNameMetaFieldDef;
}
- const resultOrStream = createSourceEventStreamImpl(exeContext);
- if ((0, _isPromise.isPromise)(resultOrStream)) {
- return resultOrStream.then(resolvedResultOrStream => mapSourceToResponse(exeContext, resolvedResultOrStream));
- }
- return mapSourceToResponse(exeContext, resultOrStream);
-}
-function mapSourceToResponse(exeContext, resultOrStream) {
- if (!(0, _isAsyncIterable.isAsyncIterable)(resultOrStream)) {
- return resultOrStream;
- }
- // For each payload yielded from a subscription, map it over the normal
- // GraphQL `execute` function, with `payload` as the rootValue.
- // This implements the "MapSourceToResponseEvent" algorithm described in
- // the GraphQL specification. The `execute` function provides the
- // "ExecuteSubscriptionEvent" algorithm, as it is nearly identical to the
- // "ExecuteQuery" algorithm, for which `execute` is also used.
- return (0, _mapAsyncIterable.mapAsyncIterable)(resultOrStream, payload => executeOperation(buildPerEventExecutionContext(exeContext, payload)));
-}
-/**
- * Implements the "CreateSourceEventStream" algorithm described in the
- * GraphQL specification, resolving the subscription source event stream.
- *
- * Returns a Promise which resolves to either an AsyncIterable (if successful)
- * or an ExecutionResult (error). The promise will be rejected if the schema or
- * other arguments to this function are invalid, or if the resolved event stream
- * is not an async iterable.
- *
- * If the client-provided arguments to this function do not result in a
- * compliant subscription, a GraphQL Response (ExecutionResult) with
- * descriptive errors and no data will be returned.
- *
- * If the the source stream could not be created due to faulty subscription
- * resolver logic or underlying systems, the promise will resolve to a single
- * ExecutionResult containing `errors` and no `data`.
- *
- * If the operation succeeded, the promise resolves to the AsyncIterable for the
- * event stream returned by the resolver.
- *
- * A Source Event Stream represents a sequence of events, each of which triggers
- * a GraphQL execution for that event.
- *
- * This may be useful when hosting the stateful subscription service in a
- * different process or machine than the stateless GraphQL execution engine,
- * or otherwise separating these two steps. For more on this, see the
- * "Supporting Subscriptions at Scale" information in the GraphQL specification.
- */
-function createSourceEventStream(args) {
- // If a valid execution context cannot be created due to incorrect arguments,
- // a "Response" with only errors is returned.
- const exeContext = buildExecutionContext(args);
- // Return early errors if execution context failed.
- if (!('schema' in exeContext)) {
- return {
- errors: exeContext
- };
- }
- return createSourceEventStreamImpl(exeContext);
-}
-function createSourceEventStreamImpl(exeContext) {
- try {
- const eventStream = executeSubscription(exeContext);
- if ((0, _isPromise.isPromise)(eventStream)) {
- return eventStream.then(undefined, error => ({
- errors: [error]
- }));
- }
- return eventStream;
- } catch (error) {
- return {
- errors: [error]
- };
- }
-}
-function executeSubscription(exeContext) {
- const {
- schema,
- fragments,
- operation,
- variableValues,
- rootValue
- } = exeContext;
- const rootType = schema.getSubscriptionType();
- if (rootType == null) {
- throw new _GraphQLError.GraphQLError('Schema is not configured to execute subscription operation.', {
- nodes: operation
- });
- }
- const {
- groupedFieldSet
- } = (0, _collectFields.collectFields)(schema, fragments, variableValues, rootType, operation);
- const firstRootField = groupedFieldSet.entries().next().value;
- const [responseName, fieldGroup] = firstRootField;
- const fieldName = fieldGroup[0].node.name.value;
- const fieldDef = schema.getField(rootType, fieldName);
- const fieldNodes = fieldGroup.map(fieldDetails => fieldDetails.node);
- if (!fieldDef) {
- throw new _GraphQLError.GraphQLError(`The subscription field "${fieldName}" is not defined.`, {
- nodes: fieldNodes
- });
- }
- const path = (0, _Path.addPath)(undefined, responseName, rootType.name);
- const info = buildResolveInfo(exeContext, fieldDef, fieldNodes, rootType, path);
- try {
- var _fieldDef$subscribe;
- // Implements the "ResolveFieldEventStream" algorithm from GraphQL specification.
- // It differs from "ResolveFieldValue" due to providing a different `resolveFn`.
- // Build a JS object of arguments from the field.arguments AST, using the
- // variables scope to fulfill any variable references.
- const args = (0, _values.getArgumentValues)(fieldDef, fieldNodes[0], variableValues);
- // The resolve function's optional third argument is a context value that
- // is provided to every resolve function within an execution. It is commonly
- // used to represent an authenticated user, or request-specific caches.
- const contextValue = exeContext.contextValue;
- // Call the `subscribe()` resolver or the default resolver to produce an
- // AsyncIterable yielding raw payloads.
- const resolveFn = (_fieldDef$subscribe = fieldDef.subscribe) !== null && _fieldDef$subscribe !== void 0 ? _fieldDef$subscribe : exeContext.subscribeFieldResolver;
- const result = resolveFn(rootValue, args, contextValue, info);
- if ((0, _isPromise.isPromise)(result)) {
- return result.then(assertEventStream).then(undefined, error => {
- throw (0, _locatedError.locatedError)(error, fieldNodes, (0, _Path.pathToArray)(path));
- });
- }
- return assertEventStream(result);
- } catch (error) {
- throw (0, _locatedError.locatedError)(error, fieldNodes, (0, _Path.pathToArray)(path));
- }
-}
-function assertEventStream(result) {
- if (result instanceof Error) {
- throw result;
- }
- // Assert field returned an event stream, otherwise yield an error.
- if (!(0, _isAsyncIterable.isAsyncIterable)(result)) {
- throw new _GraphQLError.GraphQLError('Subscription field must return Async Iterable. ' + `Received: ${(0, _inspect.inspect)(result)}.`);
- }
- return result;
-}
-function collectExecutionGroups(exeContext, parentType, sourceValue, path, parentDeferUsages, newGroupedFieldSets, deferMap) {
- const newPendingExecutionGroups = [];
- for (const [deferUsageSet, groupedFieldSet] of newGroupedFieldSets) {
- const deferredFragmentRecords = getDeferredFragmentRecords(deferUsageSet, deferMap);
- const pendingExecutionGroup = {
- deferredFragmentRecords,
- result: undefined
- };
- const executor = () => executeExecutionGroup(pendingExecutionGroup, exeContext, parentType, sourceValue, path, groupedFieldSet, {
- errors: undefined,
- deferUsageSet
- }, deferMap);
- if (exeContext.enableEarlyExecution) {
- pendingExecutionGroup.result = new _BoxedPromiseOrValue.BoxedPromiseOrValue(shouldDefer(parentDeferUsages, deferUsageSet) ? Promise.resolve().then(executor) : executor());
- } else {
- pendingExecutionGroup.result = () => new _BoxedPromiseOrValue.BoxedPromiseOrValue(executor());
- }
- newPendingExecutionGroups.push(pendingExecutionGroup);
- }
- return newPendingExecutionGroups;
-}
-function shouldDefer(parentDeferUsages, deferUsages) {
- // If we have a new child defer usage, defer.
- // Otherwise, this defer usage was already deferred when it was initially
- // encountered, and is now in the midst of executing early, so the new
- // deferred grouped fields set can be executed immediately.
- return parentDeferUsages === undefined || !Array.from(deferUsages).every(deferUsage => parentDeferUsages.has(deferUsage));
-}
-function executeExecutionGroup(pendingExecutionGroup, exeContext, parentType, sourceValue, path, groupedFieldSet, incrementalContext, deferMap) {
- let result;
- try {
- result = executeFields(exeContext, parentType, sourceValue, path, groupedFieldSet, incrementalContext, deferMap);
- } catch (error) {
- return {
- pendingExecutionGroup,
- path: (0, _Path.pathToArray)(path),
- errors: withError(incrementalContext.errors, error)
- };
- }
- if ((0, _isPromise.isPromise)(result)) {
- return result.then(resolved => buildCompletedExecutionGroup(incrementalContext.errors, pendingExecutionGroup, path, resolved), error => ({
- pendingExecutionGroup,
- path: (0, _Path.pathToArray)(path),
- errors: withError(incrementalContext.errors, error)
- }));
- }
- return buildCompletedExecutionGroup(incrementalContext.errors, pendingExecutionGroup, path, result);
-}
-function buildCompletedExecutionGroup(errors, pendingExecutionGroup, path, result) {
- return {
- pendingExecutionGroup,
- path: (0, _Path.pathToArray)(path),
- result: errors === undefined ? {
- data: result[0]
- } : {
- data: result[0],
- errors
- },
- incrementalDataRecords: result[1]
- };
-}
-function getDeferredFragmentRecords(deferUsages, deferMap) {
- return Array.from(deferUsages).map(deferUsage => deferredFragmentRecordFromDeferUsage(deferUsage, deferMap));
-}
-function buildSyncStreamItemQueue(initialItem, initialIndex, streamPath, iterator, exeContext, fieldGroup, info, itemType) {
- const streamItemQueue = [];
- const enableEarlyExecution = exeContext.enableEarlyExecution;
- const firstExecutor = () => {
- const initialPath = (0, _Path.addPath)(streamPath, initialIndex, undefined);
- const firstStreamItem = new _BoxedPromiseOrValue.BoxedPromiseOrValue(completeStreamItem(initialPath, initialItem, exeContext, {
- errors: undefined
- }, fieldGroup, info, itemType));
- let iteration = iterator.next();
- let currentIndex = initialIndex + 1;
- let currentStreamItem = firstStreamItem;
- while (!iteration.done) {
- // TODO: add test case for early sync termination
- /* c8 ignore next 6 */
- if (currentStreamItem instanceof _BoxedPromiseOrValue.BoxedPromiseOrValue) {
- const result = currentStreamItem.value;
- if (!(0, _isPromise.isPromise)(result) && result.errors !== undefined) {
- break;
- }
- }
- const itemPath = (0, _Path.addPath)(streamPath, currentIndex, undefined);
- const value = iteration.value;
- const currentExecutor = () => completeStreamItem(itemPath, value, exeContext, {
- errors: undefined
- }, fieldGroup, info, itemType);
- currentStreamItem = enableEarlyExecution ? new _BoxedPromiseOrValue.BoxedPromiseOrValue(currentExecutor()) : () => new _BoxedPromiseOrValue.BoxedPromiseOrValue(currentExecutor());
- streamItemQueue.push(currentStreamItem);
- iteration = iterator.next();
- currentIndex = initialIndex + 1;
- }
- streamItemQueue.push(new _BoxedPromiseOrValue.BoxedPromiseOrValue({}));
- return firstStreamItem.value;
- };
- streamItemQueue.push(enableEarlyExecution ? new _BoxedPromiseOrValue.BoxedPromiseOrValue(Promise.resolve().then(firstExecutor)) : () => new _BoxedPromiseOrValue.BoxedPromiseOrValue(firstExecutor()));
- return streamItemQueue;
-}
-function buildAsyncStreamItemQueue(initialIndex, streamPath, asyncIterator, exeContext, fieldGroup, info, itemType) {
- const streamItemQueue = [];
- const executor = () => getNextAsyncStreamItemResult(streamItemQueue, streamPath, initialIndex, asyncIterator, exeContext, fieldGroup, info, itemType);
- streamItemQueue.push(exeContext.enableEarlyExecution ? new _BoxedPromiseOrValue.BoxedPromiseOrValue(executor()) : () => new _BoxedPromiseOrValue.BoxedPromiseOrValue(executor()));
- return streamItemQueue;
-}
-async function getNextAsyncStreamItemResult(streamItemQueue, streamPath, index, asyncIterator, exeContext, fieldGroup, info, itemType) {
- let iteration;
- try {
- iteration = await asyncIterator.next();
- } catch (error) {
- return {
- errors: [(0, _locatedError.locatedError)(error, toNodes(fieldGroup), (0, _Path.pathToArray)(streamPath))]
- };
- }
- if (iteration.done) {
- return {};
- }
- const itemPath = (0, _Path.addPath)(streamPath, index, undefined);
- const result = completeStreamItem(itemPath, iteration.value, exeContext, {
- errors: undefined
- }, fieldGroup, info, itemType);
- const executor = () => getNextAsyncStreamItemResult(streamItemQueue, streamPath, index + 1, asyncIterator, exeContext, fieldGroup, info, itemType);
- streamItemQueue.push(exeContext.enableEarlyExecution ? new _BoxedPromiseOrValue.BoxedPromiseOrValue(executor()) : () => new _BoxedPromiseOrValue.BoxedPromiseOrValue(executor()));
- return result;
-}
-function completeStreamItem(itemPath, item, exeContext, incrementalContext, fieldGroup, info, itemType) {
- if ((0, _isPromise.isPromise)(item)) {
- return completePromisedValue(exeContext, itemType, fieldGroup, info, itemPath, item, incrementalContext, new Map()).then(resolvedItem => buildStreamItemResult(incrementalContext.errors, resolvedItem), error => ({
- errors: withError(incrementalContext.errors, error)
- }));
- }
- let result;
- try {
- try {
- result = completeValue(exeContext, itemType, fieldGroup, info, itemPath, item, incrementalContext, new Map());
- } catch (rawError) {
- handleFieldError(rawError, exeContext, itemType, fieldGroup, itemPath, incrementalContext);
- result = [null, undefined];
- }
- } catch (error) {
- return {
- errors: withError(incrementalContext.errors, error)
- };
- }
- if ((0, _isPromise.isPromise)(result)) {
- return result.then(undefined, rawError => {
- handleFieldError(rawError, exeContext, itemType, fieldGroup, itemPath, incrementalContext);
- return [null, undefined];
- }).then(resolvedItem => buildStreamItemResult(incrementalContext.errors, resolvedItem), error => ({
- errors: withError(incrementalContext.errors, error)
- }));
- }
- return buildStreamItemResult(incrementalContext.errors, result);
-}
-function buildStreamItemResult(errors, result) {
- return {
- item: result[0],
- errors,
- incrementalDataRecords: result[1]
- };
+ return parentType.getFields()[fieldName];
}
/***/ }),
@@ -25312,6 +41402,7 @@ function buildStreamItemResult(errors, result) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -25320,7 +41411,7 @@ Object.defineProperty(exports, "__esModule", ({
Object.defineProperty(exports, "createSourceEventStream", ({
enumerable: true,
get: function () {
- return _execute.createSourceEventStream;
+ return _subscribe.createSourceEventStream;
}
}));
Object.defineProperty(exports, "defaultFieldResolver", ({
@@ -25347,12 +41438,6 @@ Object.defineProperty(exports, "executeSync", ({
return _execute.executeSync;
}
}));
-Object.defineProperty(exports, "experimentalExecuteIncrementally", ({
- enumerable: true,
- get: function () {
- return _execute.experimentalExecuteIncrementally;
- }
-}));
Object.defineProperty(exports, "getArgumentValues", ({
enumerable: true,
get: function () {
@@ -25380,32 +41465,34 @@ Object.defineProperty(exports, "responsePathAsArray", ({
Object.defineProperty(exports, "subscribe", ({
enumerable: true,
get: function () {
- return _execute.subscribe;
+ return _subscribe.subscribe;
}
}));
var _Path = __webpack_require__(/*! ../jsutils/Path.mjs */ "../../../node_modules/graphql/jsutils/Path.mjs");
var _execute = __webpack_require__(/*! ./execute.mjs */ "../../../node_modules/graphql/execution/execute.mjs");
+var _subscribe = __webpack_require__(/*! ./subscribe.mjs */ "../../../node_modules/graphql/execution/subscribe.mjs");
var _values = __webpack_require__(/*! ./values.mjs */ "../../../node_modules/graphql/execution/values.mjs");
/***/ }),
-/***/ "../../../node_modules/graphql/execution/mapAsyncIterable.mjs":
+/***/ "../../../node_modules/graphql/execution/mapAsyncIterator.mjs":
/*!********************************************************************!*\
- !*** ../../../node_modules/graphql/execution/mapAsyncIterable.mjs ***!
+ !*** ../../../node_modules/graphql/execution/mapAsyncIterator.mjs ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
-exports.mapAsyncIterable = mapAsyncIterable;
+exports.mapAsyncIterator = mapAsyncIterator;
/**
* Given an AsyncIterable and a callback function, return an AsyncIterator
* which produces values mapped via calling the callback function.
*/
-function mapAsyncIterable(iterable, callback) {
+function mapAsyncIterator(iterable, callback) {
const iterator = iterable[Symbol.asyncIterator]();
async function mapResult(result) {
if (result.done) {
@@ -25455,49 +41542,202 @@ function mapAsyncIterable(iterable, callback) {
/***/ }),
-/***/ "../../../node_modules/graphql/execution/types.mjs":
-/*!*********************************************************!*\
- !*** ../../../node_modules/graphql/execution/types.mjs ***!
- \*********************************************************/
-/***/ (function(__unused_webpack_module, exports) {
+/***/ "../../../node_modules/graphql/execution/subscribe.mjs":
+/*!*************************************************************!*\
+ !*** ../../../node_modules/graphql/execution/subscribe.mjs ***!
+ \*************************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
-exports.DeferredFragmentRecord = void 0;
-exports.isCancellableStreamRecord = isCancellableStreamRecord;
-exports.isCompletedExecutionGroup = isCompletedExecutionGroup;
-exports.isDeferredFragmentRecord = isDeferredFragmentRecord;
-exports.isFailedExecutionGroup = isFailedExecutionGroup;
-exports.isPendingExecutionGroup = isPendingExecutionGroup;
-function isPendingExecutionGroup(incrementalDataRecord) {
- return 'deferredFragmentRecords' in incrementalDataRecord;
+exports.createSourceEventStream = createSourceEventStream;
+exports.subscribe = subscribe;
+var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
+var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
+var _isAsyncIterable = __webpack_require__(/*! ../jsutils/isAsyncIterable.mjs */ "../../../node_modules/graphql/jsutils/isAsyncIterable.mjs");
+var _Path = __webpack_require__(/*! ../jsutils/Path.mjs */ "../../../node_modules/graphql/jsutils/Path.mjs");
+var _GraphQLError = __webpack_require__(/*! ../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
+var _locatedError = __webpack_require__(/*! ../error/locatedError.mjs */ "../../../node_modules/graphql/error/locatedError.mjs");
+var _collectFields = __webpack_require__(/*! ./collectFields.mjs */ "../../../node_modules/graphql/execution/collectFields.mjs");
+var _execute = __webpack_require__(/*! ./execute.mjs */ "../../../node_modules/graphql/execution/execute.mjs");
+var _mapAsyncIterator = __webpack_require__(/*! ./mapAsyncIterator.mjs */ "../../../node_modules/graphql/execution/mapAsyncIterator.mjs");
+var _values = __webpack_require__(/*! ./values.mjs */ "../../../node_modules/graphql/execution/values.mjs");
+/**
+ * Implements the "Subscribe" algorithm described in the GraphQL specification.
+ *
+ * Returns a Promise which resolves to either an AsyncIterator (if successful)
+ * or an ExecutionResult (error). The promise will be rejected if the schema or
+ * other arguments to this function are invalid, or if the resolved event stream
+ * is not an async iterable.
+ *
+ * If the client-provided arguments to this function do not result in a
+ * compliant subscription, a GraphQL Response (ExecutionResult) with
+ * descriptive errors and no data will be returned.
+ *
+ * If the source stream could not be created due to faulty subscription
+ * resolver logic or underlying systems, the promise will resolve to a single
+ * ExecutionResult containing `errors` and no `data`.
+ *
+ * If the operation succeeded, the promise resolves to an AsyncIterator, which
+ * yields a stream of ExecutionResults representing the response stream.
+ *
+ * Accepts either an object with named arguments, or individual arguments.
+ */
+
+async function subscribe(args) {
+ // Temporary for v15 to v16 migration. Remove in v17
+ arguments.length < 2 || (0, _devAssert.devAssert)(false, 'graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.');
+ const resultOrStream = await createSourceEventStream(args);
+ if (!(0, _isAsyncIterable.isAsyncIterable)(resultOrStream)) {
+ return resultOrStream;
+ } // For each payload yielded from a subscription, map it over the normal
+ // GraphQL `execute` function, with `payload` as the rootValue.
+ // This implements the "MapSourceToResponseEvent" algorithm described in
+ // the GraphQL specification. The `execute` function provides the
+ // "ExecuteSubscriptionEvent" algorithm, as it is nearly identical to the
+ // "ExecuteQuery" algorithm, for which `execute` is also used.
+
+ const mapSourceToResponse = payload => (0, _execute.execute)({
+ ...args,
+ rootValue: payload
+ }); // Map every source value to a ExecutionResult value as described above.
+
+ return (0, _mapAsyncIterator.mapAsyncIterator)(resultOrStream, mapSourceToResponse);
}
-function isCompletedExecutionGroup(subsequentResult) {
- return 'pendingExecutionGroup' in subsequentResult;
+function toNormalizedArgs(args) {
+ const firstArg = args[0];
+ if (firstArg && 'document' in firstArg) {
+ return firstArg;
+ }
+ return {
+ schema: firstArg,
+ // FIXME: when underlying TS bug fixed, see https://github.com/microsoft/TypeScript/issues/31613
+ document: args[1],
+ rootValue: args[2],
+ contextValue: args[3],
+ variableValues: args[4],
+ operationName: args[5],
+ subscribeFieldResolver: args[6]
+ };
}
-function isFailedExecutionGroup(completedExecutionGroup) {
- return completedExecutionGroup.errors !== undefined;
-}
-/** @internal */
-class DeferredFragmentRecord {
- constructor(path, label, parent) {
- this.path = path;
- this.label = label;
- this.parent = parent;
- this.pendingExecutionGroups = new Set();
- this.successfulExecutionGroups = new Set();
- this.children = new Set();
+/**
+ * Implements the "CreateSourceEventStream" algorithm described in the
+ * GraphQL specification, resolving the subscription source event stream.
+ *
+ * Returns a Promise which resolves to either an AsyncIterable (if successful)
+ * or an ExecutionResult (error). The promise will be rejected if the schema or
+ * other arguments to this function are invalid, or if the resolved event stream
+ * is not an async iterable.
+ *
+ * If the client-provided arguments to this function do not result in a
+ * compliant subscription, a GraphQL Response (ExecutionResult) with
+ * descriptive errors and no data will be returned.
+ *
+ * If the the source stream could not be created due to faulty subscription
+ * resolver logic or underlying systems, the promise will resolve to a single
+ * ExecutionResult containing `errors` and no `data`.
+ *
+ * If the operation succeeded, the promise resolves to the AsyncIterable for the
+ * event stream returned by the resolver.
+ *
+ * A Source Event Stream represents a sequence of events, each of which triggers
+ * a GraphQL execution for that event.
+ *
+ * This may be useful when hosting the stateful subscription service in a
+ * different process or machine than the stateless GraphQL execution engine,
+ * or otherwise separating these two steps. For more on this, see the
+ * "Supporting Subscriptions at Scale" information in the GraphQL specification.
+ */
+
+async function createSourceEventStream(...rawArgs) {
+ const args = toNormalizedArgs(rawArgs);
+ const {
+ schema,
+ document,
+ variableValues
+ } = args; // If arguments are missing or incorrectly typed, this is an internal
+ // developer mistake which should throw an early error.
+
+ (0, _execute.assertValidExecutionArguments)(schema, document, variableValues); // If a valid execution context cannot be created due to incorrect arguments,
+ // a "Response" with only errors is returned.
+
+ const exeContext = (0, _execute.buildExecutionContext)(args); // Return early errors if execution context failed.
+
+ if (!('schema' in exeContext)) {
+ return {
+ errors: exeContext
+ };
+ }
+ try {
+ const eventStream = await executeSubscription(exeContext); // Assert field returned an event stream, otherwise yield an error.
+
+ if (!(0, _isAsyncIterable.isAsyncIterable)(eventStream)) {
+ throw new Error('Subscription field must return Async Iterable. ' + `Received: ${(0, _inspect.inspect)(eventStream)}.`);
+ }
+ return eventStream;
+ } catch (error) {
+ // If it GraphQLError, report it as an ExecutionResult, containing only errors and no data.
+ // Otherwise treat the error as a system-class error and re-throw it.
+ if (error instanceof _GraphQLError.GraphQLError) {
+ return {
+ errors: [error]
+ };
+ }
+ throw error;
}
}
-exports.DeferredFragmentRecord = DeferredFragmentRecord;
-function isDeferredFragmentRecord(deliveryGroup) {
- return deliveryGroup instanceof DeferredFragmentRecord;
-}
-function isCancellableStreamRecord(deliveryGroup) {
- return 'earlyReturn' in deliveryGroup;
+async function executeSubscription(exeContext) {
+ const {
+ schema,
+ fragments,
+ operation,
+ variableValues,
+ rootValue
+ } = exeContext;
+ const rootType = schema.getSubscriptionType();
+ if (rootType == null) {
+ throw new _GraphQLError.GraphQLError('Schema is not configured to execute subscription operation.', {
+ nodes: operation
+ });
+ }
+ const rootFields = (0, _collectFields.collectFields)(schema, fragments, variableValues, rootType, operation.selectionSet);
+ const [responseName, fieldNodes] = [...rootFields.entries()][0];
+ const fieldDef = (0, _execute.getFieldDef)(schema, rootType, fieldNodes[0]);
+ if (!fieldDef) {
+ const fieldName = fieldNodes[0].name.value;
+ throw new _GraphQLError.GraphQLError(`The subscription field "${fieldName}" is not defined.`, {
+ nodes: fieldNodes
+ });
+ }
+ const path = (0, _Path.addPath)(undefined, responseName, rootType.name);
+ const info = (0, _execute.buildResolveInfo)(exeContext, fieldDef, fieldNodes, rootType, path);
+ try {
+ var _fieldDef$subscribe;
+
+ // Implements the "ResolveFieldEventStream" algorithm from GraphQL specification.
+ // It differs from "ResolveFieldValue" due to providing a different `resolveFn`.
+ // Build a JS object of arguments from the field.arguments AST, using the
+ // variables scope to fulfill any variable references.
+ const args = (0, _values.getArgumentValues)(fieldDef, fieldNodes[0], variableValues); // The resolve function's optional third argument is a context value that
+ // is provided to every resolve function within an execution. It is commonly
+ // used to represent an authenticated user, or request-specific caches.
+
+ const contextValue = exeContext.contextValue; // Call the `subscribe()` resolver or the default resolver to produce an
+ // AsyncIterable yielding raw payloads.
+
+ const resolveFn = (_fieldDef$subscribe = fieldDef.subscribe) !== null && _fieldDef$subscribe !== void 0 ? _fieldDef$subscribe : exeContext.subscribeFieldResolver;
+ const eventStream = await resolveFn(rootValue, args, contextValue, info);
+ if (eventStream instanceof Error) {
+ throw eventStream;
+ }
+ return eventStream;
+ } catch (error) {
+ throw (0, _locatedError.locatedError)(error, fieldNodes, (0, _Path.pathToArray)(path));
+ }
}
/***/ }),
@@ -25508,6 +41748,7 @@ function isCancellableStreamRecord(deliveryGroup) {
\**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -25517,6 +41758,7 @@ exports.getArgumentValues = getArgumentValues;
exports.getDirectiveValues = getDirectiveValues;
exports.getVariableValues = getVariableValues;
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
+var _keyMap = __webpack_require__(/*! ../jsutils/keyMap.mjs */ "../../../node_modules/graphql/jsutils/keyMap.mjs");
var _printPathArray = __webpack_require__(/*! ../jsutils/printPathArray.mjs */ "../../../node_modules/graphql/jsutils/printPathArray.mjs");
var _GraphQLError = __webpack_require__(/*! ../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
@@ -25570,7 +41812,7 @@ function coerceVariableValues(schema, varDefNodes, inputs, onError) {
}));
continue;
}
- if (!Object.hasOwn(inputs, varName)) {
+ if (!hasOwnProperty(inputs, varName)) {
if (varDefNode.defaultValue) {
coercedValues[varName] = (0, _valueFromAST.valueFromAST)(varDefNode.defaultValue, varType);
} else if ((0, _definition.isNonNullType)(varType)) {
@@ -25610,18 +41852,20 @@ function coerceVariableValues(schema, varDefNodes, inputs, onError) {
* exposed to user code. Care should be taken to not pull values from the
* Object prototype.
*/
+
function getArgumentValues(def, node, variableValues) {
var _node$arguments;
- const coercedValues = {};
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
+ const coercedValues = {}; // FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
+
const argumentNodes = (_node$arguments = node.arguments) !== null && _node$arguments !== void 0 ? _node$arguments : [];
- const argNodeMap = new Map(argumentNodes.map(arg => [arg.name.value, arg]));
+ const argNodeMap = (0, _keyMap.keyMap)(argumentNodes, arg => arg.name.value);
for (const argDef of def.args) {
const name = argDef.name;
const argType = argDef.type;
- const argumentNode = argNodeMap.get(name);
- if (argumentNode == null) {
+ const argumentNode = argNodeMap[name];
+ if (!argumentNode) {
if (argDef.defaultValue !== undefined) {
coercedValues[name] = argDef.defaultValue;
} else if ((0, _definition.isNonNullType)(argType)) {
@@ -25635,7 +41879,7 @@ function getArgumentValues(def, node, variableValues) {
let isNull = valueNode.kind === _kinds.Kind.NULL;
if (valueNode.kind === _kinds.Kind.VARIABLE) {
const variableName = valueNode.name.value;
- if (variableValues == null || !Object.hasOwn(variableValues, variableName)) {
+ if (variableValues == null || !hasOwnProperty(variableValues, variableName)) {
if (argDef.defaultValue !== undefined) {
coercedValues[name] = argDef.defaultValue;
} else if ((0, _definition.isNonNullType)(argType)) {
@@ -25676,6 +41920,7 @@ function getArgumentValues(def, node, variableValues) {
* exposed to user code. Care should be taken to not pull values from the
* Object prototype.
*/
+
function getDirectiveValues(directiveDef, node, variableValues) {
var _node$directives;
const directiveNode = (_node$directives = node.directives) === null || _node$directives === void 0 ? void 0 : _node$directives.find(directive => directive.name.value === directiveDef.name);
@@ -25683,6 +41928,9 @@ function getDirectiveValues(directiveDef, node, variableValues) {
return getArgumentValues(directiveDef, directiveNode, variableValues);
}
}
+function hasOwnProperty(obj, prop) {
+ return Object.prototype.hasOwnProperty.call(obj, prop);
+}
/***/ }),
@@ -25692,6 +41940,7 @@ function getDirectiveValues(directiveDef, node, variableValues) {
\*************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -25699,11 +41948,52 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.graphql = graphql;
exports.graphqlSync = graphqlSync;
+var _devAssert = __webpack_require__(/*! ./jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
var _isPromise = __webpack_require__(/*! ./jsutils/isPromise.mjs */ "../../../node_modules/graphql/jsutils/isPromise.mjs");
var _parser = __webpack_require__(/*! ./language/parser.mjs */ "../../../node_modules/graphql/language/parser.mjs");
var _validate = __webpack_require__(/*! ./type/validate.mjs */ "../../../node_modules/graphql/type/validate.mjs");
var _validate2 = __webpack_require__(/*! ./validation/validate.mjs */ "../../../node_modules/graphql/validation/validate.mjs");
var _execute = __webpack_require__(/*! ./execution/execute.mjs */ "../../../node_modules/graphql/execution/execute.mjs");
+/**
+ * This is the primary entry point function for fulfilling GraphQL operations
+ * by parsing, validating, and executing a GraphQL document along side a
+ * GraphQL schema.
+ *
+ * More sophisticated GraphQL servers, such as those which persist queries,
+ * may wish to separate the validation and execution phases to a static time
+ * tooling step, and a server runtime step.
+ *
+ * Accepts either an object with named arguments, or individual arguments:
+ *
+ * schema:
+ * The GraphQL type system to use when validating and executing a query.
+ * source:
+ * A GraphQL language formatted string representing the requested operation.
+ * rootValue:
+ * The value provided as the first argument to resolver functions on the top
+ * level type (e.g. the query object type).
+ * contextValue:
+ * The context value is provided as an argument to resolver functions after
+ * field arguments. It is used to pass shared information useful at any point
+ * during executing this query, for example the currently logged in user and
+ * connections to databases or other services.
+ * variableValues:
+ * A mapping of variable name to runtime value to use for all variables
+ * defined in the requestString.
+ * operationName:
+ * The name of the operation to use if requestString contains multiple
+ * possible operations. Can be omitted if requestString contains only
+ * one operation.
+ * fieldResolver:
+ * A resolver function to use when one is not provided by the schema.
+ * If not provided, the default field resolver is used (which looks for a
+ * value or method on the source value with the field's name).
+ * typeResolver:
+ * A type resolver function to use when none is provided by the schema.
+ * If not provided, the default type resolver is used (which looks for a
+ * `__typename` field or alternatively calls the `isTypeOf` method).
+ */
+
function graphql(args) {
// Always return a Promise for a consistent API.
return new Promise(resolve => resolve(graphqlImpl(args)));
@@ -25714,15 +42004,18 @@ function graphql(args) {
* However, it guarantees to complete synchronously (or throw an error) assuming
* that all field resolvers are also synchronous.
*/
+
function graphqlSync(args) {
- const result = graphqlImpl(args);
- // Assert that the execution was synchronous.
+ const result = graphqlImpl(args); // Assert that the execution was synchronous.
+
if ((0, _isPromise.isPromise)(result)) {
throw new Error('GraphQL execution failed to complete synchronously.');
}
return result;
}
function graphqlImpl(args) {
+ // Temporary for v15 to v16 migration. Remove in v17
+ arguments.length < 2 || (0, _devAssert.devAssert)(false, 'graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.');
const {
schema,
source,
@@ -25732,15 +42025,15 @@ function graphqlImpl(args) {
operationName,
fieldResolver,
typeResolver
- } = args;
- // Validate Schema
+ } = args; // Validate Schema
+
const schemaValidationErrors = (0, _validate.validateSchema)(schema);
if (schemaValidationErrors.length > 0) {
return {
errors: schemaValidationErrors
};
- }
- // Parse
+ } // Parse
+
let document;
try {
document = (0, _parser.parse)(source);
@@ -25748,15 +42041,15 @@ function graphqlImpl(args) {
return {
errors: [syntaxError]
};
- }
- // Validate
+ } // Validate
+
const validationErrors = (0, _validate2.validate)(schema, document);
if (validationErrors.length > 0) {
return {
errors: validationErrors
};
- }
- // Execute
+ } // Execute
+
return (0, _execute.execute)({
schema,
document,
@@ -25777,6 +42070,7 @@ function graphqlImpl(args) {
\***********************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -25848,12 +42142,6 @@ Object.defineProperty(exports, "GraphQLBoolean", ({
return _index.GraphQLBoolean;
}
}));
-Object.defineProperty(exports, "GraphQLDeferDirective", ({
- enumerable: true,
- get: function () {
- return _index.GraphQLDeferDirective;
- }
-}));
Object.defineProperty(exports, "GraphQLDeprecatedDirective", ({
enumerable: true,
get: function () {
@@ -25962,12 +42250,6 @@ Object.defineProperty(exports, "GraphQLSpecifiedByDirective", ({
return _index.GraphQLSpecifiedByDirective;
}
}));
-Object.defineProperty(exports, "GraphQLStreamDirective", ({
- enumerable: true,
- get: function () {
- return _index.GraphQLStreamDirective;
- }
-}));
Object.defineProperty(exports, "GraphQLString", ({
enumerable: true,
get: function () {
@@ -26430,6 +42712,12 @@ Object.defineProperty(exports, "assertUnionType", ({
return _index.assertUnionType;
}
}));
+Object.defineProperty(exports, "assertValidName", ({
+ enumerable: true,
+ get: function () {
+ return _index6.assertValidName;
+ }
+}));
Object.defineProperty(exports, "assertValidSchema", ({
enumerable: true,
get: function () {
@@ -26514,12 +42802,6 @@ Object.defineProperty(exports, "executeSync", ({
return _index3.executeSync;
}
}));
-Object.defineProperty(exports, "experimentalExecuteIncrementally", ({
- enumerable: true,
- get: function () {
- return _index3.experimentalExecuteIncrementally;
- }
-}));
Object.defineProperty(exports, "extendSchema", ({
enumerable: true,
get: function () {
@@ -26538,6 +42820,12 @@ Object.defineProperty(exports, "findDangerousChanges", ({
return _index6.findDangerousChanges;
}
}));
+Object.defineProperty(exports, "formatError", ({
+ enumerable: true,
+ get: function () {
+ return _index5.formatError;
+ }
+}));
Object.defineProperty(exports, "getArgumentValues", ({
enumerable: true,
get: function () {
@@ -26586,12 +42874,24 @@ Object.defineProperty(exports, "getOperationAST", ({
return _index6.getOperationAST;
}
}));
+Object.defineProperty(exports, "getOperationRootType", ({
+ enumerable: true,
+ get: function () {
+ return _index6.getOperationRootType;
+ }
+}));
Object.defineProperty(exports, "getVariableValues", ({
enumerable: true,
get: function () {
return _index3.getVariableValues;
}
}));
+Object.defineProperty(exports, "getVisitFn", ({
+ enumerable: true,
+ get: function () {
+ return _index2.getVisitFn;
+ }
+}));
Object.defineProperty(exports, "graphql", ({
enumerable: true,
get: function () {
@@ -26712,12 +43012,6 @@ Object.defineProperty(exports, "isNonNullType", ({
return _index.isNonNullType;
}
}));
-Object.defineProperty(exports, "isNullabilityAssertionNode", ({
- enumerable: true,
- get: function () {
- return _index2.isNullabilityAssertionNode;
- }
-}));
Object.defineProperty(exports, "isNullableType", ({
enumerable: true,
get: function () {
@@ -26826,6 +43120,12 @@ Object.defineProperty(exports, "isUnionType", ({
return _index.isUnionType;
}
}));
+Object.defineProperty(exports, "isValidNameError", ({
+ enumerable: true,
+ get: function () {
+ return _index6.isValidNameError;
+ }
+}));
Object.defineProperty(exports, "isValueNode", ({
enumerable: true,
get: function () {
@@ -26880,10 +43180,10 @@ Object.defineProperty(exports, "print", ({
return _index2.print;
}
}));
-Object.defineProperty(exports, "printDirective", ({
+Object.defineProperty(exports, "printError", ({
enumerable: true,
get: function () {
- return _index6.printDirective;
+ return _index5.printError;
}
}));
Object.defineProperty(exports, "printIntrospectionSchema", ({
@@ -27053,82 +43353,13 @@ var _index6 = __webpack_require__(/*! ./utilities/index.mjs */ "../../../node_mo
/***/ }),
-/***/ "../../../node_modules/graphql/jsutils/AccumulatorMap.mjs":
-/*!****************************************************************!*\
- !*** ../../../node_modules/graphql/jsutils/AccumulatorMap.mjs ***!
- \****************************************************************/
-/***/ (function(__unused_webpack_module, exports) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.AccumulatorMap = void 0;
-/**
- * ES6 Map with additional `add` method to accumulate items.
- */
-class AccumulatorMap extends Map {
- get [Symbol.toStringTag]() {
- return 'AccumulatorMap';
- }
- add(key, item) {
- const group = this.get(key);
- if (group === undefined) {
- this.set(key, [item]);
- } else {
- group.push(item);
- }
- }
-}
-exports.AccumulatorMap = AccumulatorMap;
-
-/***/ }),
-
-/***/ "../../../node_modules/graphql/jsutils/BoxedPromiseOrValue.mjs":
-/*!*********************************************************************!*\
- !*** ../../../node_modules/graphql/jsutils/BoxedPromiseOrValue.mjs ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.BoxedPromiseOrValue = void 0;
-var _isPromise = __webpack_require__(/*! ./isPromise.mjs */ "../../../node_modules/graphql/jsutils/isPromise.mjs");
-/**
- * A BoxedPromiseOrValue is a container for a value or promise where the value
- * will be updated when the promise resolves.
- *
- * A BoxedPromiseOrValue may only be used with promises whose possible
- * rejection has already been handled, otherwise this will lead to unhandled
- * promise rejections.
- *
- * @internal
- * */
-class BoxedPromiseOrValue {
- constructor(value) {
- this.value = value;
- if ((0, _isPromise.isPromise)(value)) {
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
- value.then(resolved => {
- this.value = resolved;
- });
- }
- }
-}
-exports.BoxedPromiseOrValue = BoxedPromiseOrValue;
-
-/***/ }),
-
/***/ "../../../node_modules/graphql/jsutils/Path.mjs":
/*!******************************************************!*\
!*** ../../../node_modules/graphql/jsutils/Path.mjs ***!
\******************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27149,6 +43380,7 @@ function addPath(prev, key, typename) {
/**
* Given a Path, return an Array of the path keys.
*/
+
function pathToArray(path) {
const flattened = [];
let curr = path;
@@ -27161,33 +43393,13 @@ function pathToArray(path) {
/***/ }),
-/***/ "../../../node_modules/graphql/jsutils/capitalize.mjs":
-/*!************************************************************!*\
- !*** ../../../node_modules/graphql/jsutils/capitalize.mjs ***!
- \************************************************************/
-/***/ (function(__unused_webpack_module, exports) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.capitalize = capitalize;
-/**
- * Converts the first character of string to upper case and the remaining to lower case.
- */
-function capitalize(str) {
- return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
-}
-
-/***/ }),
-
/***/ "../../../node_modules/graphql/jsutils/devAssert.mjs":
/*!***********************************************************!*\
!*** ../../../node_modules/graphql/jsutils/devAssert.mjs ***!
\***********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27195,7 +43407,8 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.devAssert = devAssert;
function devAssert(condition, message) {
- if (!condition) {
+ const booleanCondition = Boolean(condition);
+ if (!booleanCondition) {
throw new Error(message);
}
}
@@ -27206,92 +43419,38 @@ function devAssert(condition, message) {
/*!************************************************************!*\
!*** ../../../node_modules/graphql/jsutils/didYouMean.mjs ***!
\************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.didYouMean = didYouMean;
-var _formatList = __webpack_require__(/*! ./formatList.mjs */ "../../../node_modules/graphql/jsutils/formatList.mjs");
const MAX_SUGGESTIONS = 5;
+/**
+ * Given [ A, B, C ] return ' Did you mean A, B, or C?'.
+ */
+
function didYouMean(firstArg, secondArg) {
- const [subMessage, suggestions] = secondArg ? [firstArg, secondArg] : [undefined, firstArg];
- if (suggestions.length === 0) {
- return '';
- }
+ const [subMessage, suggestionsArg] = secondArg ? [firstArg, secondArg] : [undefined, firstArg];
let message = ' Did you mean ';
- if (subMessage != null) {
+ if (subMessage) {
message += subMessage + ' ';
}
- const suggestionList = (0, _formatList.orList)(suggestions.slice(0, MAX_SUGGESTIONS).map(x => `"${x}"`));
- return message + suggestionList + '?';
-}
-
-/***/ }),
-
-/***/ "../../../node_modules/graphql/jsutils/formatList.mjs":
-/*!************************************************************!*\
- !*** ../../../node_modules/graphql/jsutils/formatList.mjs ***!
- \************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.andList = andList;
-exports.orList = orList;
-var _invariant = __webpack_require__(/*! ./invariant.mjs */ "../../../node_modules/graphql/jsutils/invariant.mjs");
-/**
- * Given [ A, B, C ] return 'A, B, or C'.
- */
-function orList(items) {
- return formatList('or', items);
-}
-/**
- * Given [ A, B, C ] return 'A, B, and C'.
- */
-function andList(items) {
- return formatList('and', items);
-}
-function formatList(conjunction, items) {
- items.length !== 0 || (0, _invariant.invariant)(false);
- switch (items.length) {
+ const suggestions = suggestionsArg.map(x => `"${x}"`);
+ switch (suggestions.length) {
+ case 0:
+ return '';
case 1:
- return items[0];
+ return message + suggestions[0] + '?';
case 2:
- return items[0] + ' ' + conjunction + ' ' + items[1];
+ return message + suggestions[0] + ' or ' + suggestions[1] + '?';
}
- const allButLast = items.slice(0, -1);
- const lastItem = items.at(-1);
- return allButLast.join(', ') + ', ' + conjunction + ' ' + lastItem;
-}
-
-/***/ }),
-
-/***/ "../../../node_modules/graphql/jsutils/getBySet.mjs":
-/*!**********************************************************!*\
- !*** ../../../node_modules/graphql/jsutils/getBySet.mjs ***!
- \**********************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.getBySet = getBySet;
-var _isSameSet = __webpack_require__(/*! ./isSameSet.mjs */ "../../../node_modules/graphql/jsutils/isSameSet.mjs");
-function getBySet(map, setToMatch) {
- for (const set of map.keys()) {
- if ((0, _isSameSet.isSameSet)(set, setToMatch)) {
- return map.get(set);
- }
- }
- return undefined;
+ const selected = suggestions.slice(0, MAX_SUGGESTIONS);
+ const lastItem = selected.pop();
+ return message + selected.join(', ') + ', or ' + lastItem + '?';
}
/***/ }),
@@ -27300,22 +43459,28 @@ function getBySet(map, setToMatch) {
/*!*********************************************************!*\
!*** ../../../node_modules/graphql/jsutils/groupBy.mjs ***!
\*********************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.groupBy = groupBy;
-var _AccumulatorMap = __webpack_require__(/*! ./AccumulatorMap.mjs */ "../../../node_modules/graphql/jsutils/AccumulatorMap.mjs");
/**
* Groups array items into a Map, given a function to produce grouping key.
*/
function groupBy(list, keyFn) {
- const result = new _AccumulatorMap.AccumulatorMap();
+ const result = new Map();
for (const item of list) {
- result.add(keyFn(item), item);
+ const key = keyFn(item);
+ const group = result.get(key);
+ if (group === undefined) {
+ result.set(key, [item]);
+ } else {
+ group.push(item);
+ }
}
return result;
}
@@ -27328,6 +43493,7 @@ function groupBy(list, keyFn) {
\**************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27349,6 +43515,7 @@ function identityFunc(x) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27360,6 +43527,7 @@ const MAX_RECURSIVE_DEPTH = 2;
/**
* Used to print values in error messages.
*/
+
function inspect(value) {
return formatValue(value, []);
}
@@ -27384,8 +43552,8 @@ function formatObjectValue(value, previouslySeenValues) {
}
const seenValues = [...previouslySeenValues, value];
if (isJSONable(value)) {
- const jsonValue = value.toJSON();
- // check for infinite recursion
+ const jsonValue = value.toJSON(); // check for infinite recursion
+
if (jsonValue !== value) {
return typeof jsonValue === 'string' ? jsonValue : formatValue(jsonValue, seenValues);
}
@@ -27447,6 +43615,7 @@ function getObjectTag(object) {
\************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27454,15 +43623,21 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.instanceOf = void 0;
var _inspect = __webpack_require__(/*! ./inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
+/* c8 ignore next 3 */
+
+const isProduction = globalThis.process &&
+// eslint-disable-next-line no-undef
+"development" === 'production';
/**
* A replacement for instanceof which includes an error warning when multi-realm
* constructors are detected.
* See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
* See: https://webpack.js.org/guides/production/
*/
+
const instanceOf = exports.instanceOf = /* c8 ignore next 6 */
// FIXME: https://github.com/graphql/graphql-js/issues/2317
-globalThis.process != null && globalThis.process.env.NODE_ENV === 'production' ? function instanceOf(value, constructor) {
+isProduction ? function instanceOf(value, constructor) {
return value instanceof constructor;
} : function instanceOf(value, constructor) {
if (value instanceof constructor) {
@@ -27470,11 +43645,13 @@ globalThis.process != null && globalThis.process.env.NODE_ENV === 'production' ?
}
if (typeof value === 'object' && value !== null) {
var _value$constructor;
+
// Prefer Symbol.toStringTag since it is immune to minification.
const className = constructor.prototype[Symbol.toStringTag];
const valueClassName =
// We still need to support constructor's name to detect conflicts with older versions of this library.
- Symbol.toStringTag in value ? value[Symbol.toStringTag] : (_value$constructor = value.constructor) === null || _value$constructor === void 0 ? void 0 : _value$constructor.name;
+ Symbol.toStringTag in value // @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009
+ ? value[Symbol.toStringTag] : (_value$constructor = value.constructor) === null || _value$constructor === void 0 ? void 0 : _value$constructor.name;
if (className === valueClassName) {
const stringifiedValue = (0, _inspect.inspect)(value);
throw new Error(`Cannot use ${className} "${stringifiedValue}" from another module or realm.
@@ -27502,6 +43679,7 @@ spurious results.`);
\***********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27509,7 +43687,8 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.invariant = invariant;
function invariant(condition, message) {
- if (!condition) {
+ const booleanCondition = Boolean(condition);
+ if (!booleanCondition) {
throw new Error(message != null ? message : 'Unexpected invariant triggered.');
}
}
@@ -27522,6 +43701,7 @@ function invariant(condition, message) {
\*****************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27544,6 +43724,7 @@ function isAsyncIterable(maybeAsyncIterable) {
\******************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27579,6 +43760,7 @@ function isIterableObject(maybeIterable) {
\**************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27601,6 +43783,7 @@ function isObjectLike(value) {
\***********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27617,38 +43800,13 @@ function isPromise(value) {
/***/ }),
-/***/ "../../../node_modules/graphql/jsutils/isSameSet.mjs":
-/*!***********************************************************!*\
- !*** ../../../node_modules/graphql/jsutils/isSameSet.mjs ***!
- \***********************************************************/
-/***/ (function(__unused_webpack_module, exports) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.isSameSet = isSameSet;
-function isSameSet(setA, setB) {
- if (setA.size !== setB.size) {
- return false;
- }
- for (const item of setA) {
- if (!setB.has(item)) {
- return false;
- }
- }
- return true;
-}
-
-/***/ }),
-
/***/ "../../../node_modules/graphql/jsutils/keyMap.mjs":
/*!********************************************************!*\
!*** ../../../node_modules/graphql/jsutils/keyMap.mjs ***!
\********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27698,6 +43856,7 @@ function keyMap(list, keyFn) {
\***********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27737,6 +43896,7 @@ function keyValMap(list, keyFn, valFn) {
\**********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27763,6 +43923,7 @@ function mapValue(map, fn) {
\**********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27805,6 +43966,7 @@ function memoize3(fn) {
\****************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27870,6 +44032,7 @@ function isDigit(code) {
\****************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27891,6 +44054,7 @@ function printPathArray(path) {
\******************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27904,15 +44068,14 @@ exports.promiseForObject = promiseForObject;
* This is akin to bluebird's `Promise.props`, but implemented only using
* `Promise.all` so it will work with any implementation of ES6 promises.
*/
-async function promiseForObject(object, callback) {
- const keys = Object.keys(object);
- const values = Object.values(object);
- const resolvedValues = await Promise.all(values);
- const resolvedObject = Object.create(null);
- for (let i = 0; i < keys.length; ++i) {
- resolvedObject[keys[i]] = resolvedValues[i];
- }
- return callback(resolvedObject);
+function promiseForObject(object) {
+ return Promise.all(Object.values(object)).then(resolvedValues => {
+ const resolvedObject = Object.create(null);
+ for (const [i, key] of Object.keys(object).entries()) {
+ resolvedObject[key] = resolvedValues[i];
+ }
+ return resolvedObject;
+ });
}
/***/ }),
@@ -27923,6 +44086,7 @@ async function promiseForObject(object, callback) {
\***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27947,45 +44111,13 @@ function promiseReduce(values, callbackFn, initialValue) {
/***/ }),
-/***/ "../../../node_modules/graphql/jsutils/promiseWithResolvers.mjs":
-/*!**********************************************************************!*\
- !*** ../../../node_modules/graphql/jsutils/promiseWithResolvers.mjs ***!
- \**********************************************************************/
-/***/ (function(__unused_webpack_module, exports) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.promiseWithResolvers = promiseWithResolvers;
-/**
- * Based on Promise.withResolvers proposal
- * https://github.com/tc39/proposal-promise-with-resolvers
- */
-function promiseWithResolvers() {
- // these are assigned synchronously within the Promise constructor
- let resolve;
- let reject;
- const promise = new Promise((res, rej) => {
- resolve = res;
- reject = rej;
- });
- return {
- promise,
- resolve,
- reject
- };
-}
-
-/***/ }),
-
/***/ "../../../node_modules/graphql/jsutils/suggestionList.mjs":
/*!****************************************************************!*\
!*** ../../../node_modules/graphql/jsutils/suggestionList.mjs ***!
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -27997,6 +44129,7 @@ var _naturalCompare = __webpack_require__(/*! ./naturalCompare.mjs */ "../../../
* Given an invalid input string and a list of valid options, returns a filtered
* list of valid options sorted based on their similarity with the input.
*/
+
function suggestionList(input, options) {
const optionsByDistance = Object.create(null);
const lexicalDistance = new LexicalDistance(input);
@@ -28026,6 +44159,7 @@ function suggestionList(input, options) {
*
* This distance can be useful for detecting typos in input or sorting
*/
+
class LexicalDistance {
constructor(input) {
this._input = input;
@@ -28037,8 +44171,8 @@ class LexicalDistance {
if (this._input === option) {
return 0;
}
- const optionLowerCase = option.toLowerCase();
- // Any case change counts as a single edit
+ const optionLowerCase = option.toLowerCase(); // Any case change counts as a single edit
+
if (this._inputLowerCase === optionLowerCase) {
return 1;
}
@@ -28068,7 +44202,8 @@ class LexicalDistance {
// delete
currentRow[j - 1] + 1,
// insert
- upRow[j - 1] + cost);
+ upRow[j - 1] + cost // substitute
+ );
if (i > 1 && j > 1 && a[i - 1] === b[j - 2] && a[i - 2] === b[j - 1]) {
// transposition
const doubleDiagonalCell = rows[(i - 2) % 3][j - 2];
@@ -28078,8 +44213,8 @@ class LexicalDistance {
smallestCell = currentCell;
}
currentRow[j] = currentCell;
- }
- // Early exit, since distance can't go smaller than smallest element of the previous row.
+ } // Early exit, since distance can't go smaller than smallest element of the previous row.
+
if (smallestCell > threshold) {
return undefined;
}
@@ -28105,6 +44240,7 @@ function stringToArray(str) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -28115,6 +44251,7 @@ var _inspect = __webpack_require__(/*! ./inspect.mjs */ "../../../node_modules/g
/**
* Sometimes a non-error is thrown, wrap it as an Error instance to ensure a consistent Error interface.
*/
+
function toError(thrownValue) {
return thrownValue instanceof Error ? thrownValue : new NonErrorThrown(thrownValue);
}
@@ -28134,6 +44271,7 @@ class NonErrorThrown extends Error {
\**********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -28162,6 +44300,7 @@ function toObjMap(obj) {
\******************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -28174,6 +44313,25 @@ exports.isNode = isNode;
* identify the region of the source from which the AST derived.
*/
class Location {
+ /**
+ * The character offset at which this Node begins.
+ */
+
+ /**
+ * The character offset at which this Node ends.
+ */
+
+ /**
+ * The Token at which this Node begins.
+ */
+
+ /**
+ * The Token at which this Node ends.
+ */
+
+ /**
+ * The Source document the AST represents.
+ */
constructor(startToken, endToken, source) {
this.start = startToken.start;
this.end = endToken.end;
@@ -28197,14 +44355,45 @@ class Location {
*/
exports.Location = Location;
class Token {
- // eslint-disable-next-line max-params
+ /**
+ * The kind of Token.
+ */
+
+ /**
+ * The character offset at which this Node begins.
+ */
+
+ /**
+ * The character offset at which this Node ends.
+ */
+
+ /**
+ * The 1-indexed line number on which this Token appears.
+ */
+
+ /**
+ * The 1-indexed column number at which this Token begins.
+ */
+
+ /**
+ * For non-punctuation tokens, represents the interpreted value of the token.
+ *
+ * Note: is undefined for punctuation tokens, but typed as string for
+ * convenience in the parser.
+ */
+
+ /**
+ * Tokens exist as nodes in a double-linked-list amongst all tokens
+ * including ignored tokens. is always the first node and
+ * the last.
+ */
constructor(kind, start, end, line, column, value) {
this.kind = kind;
this.start = start;
this.end = end;
this.line = line;
- this.column = column;
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ this.column = column; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+
this.value = value;
this.prev = null;
this.next = null;
@@ -28221,6 +44410,10 @@ class Token {
};
}
}
+/**
+ * The list of all possible AST node types.
+ */
+
/**
* @internal
*/
@@ -28232,16 +44425,8 @@ const QueryDocumentKeys = exports.QueryDocumentKeys = {
VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],
Variable: ['name'],
SelectionSet: ['selections'],
- Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet',
- // Note: Client Controlled Nullability is experimental and may be changed
- // or removed in the future.
- 'nullabilityAssertion'],
+ Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],
Argument: ['name', 'value'],
- // Note: Client Controlled Nullability is experimental and may be changed
- // or removed in the future.
- ListNullabilityOperator: ['nullabilityAssertion'],
- NonNullAssertion: ['nullabilityAssertion'],
- ErrorBoundary: ['nullabilityAssertion'],
FragmentSpread: ['name', 'directives'],
InlineFragment: ['typeCondition', 'directives', 'selectionSet'],
FragmentDefinition: ['name',
@@ -28284,10 +44469,13 @@ const kindValues = new Set(Object.keys(QueryDocumentKeys));
/**
* @internal
*/
+
function isNode(maybeNode) {
const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
return typeof maybeKind === 'string' && kindValues.has(maybeKind);
}
+/** Name */
+
var OperationTypeNode;
(function (OperationTypeNode) {
OperationTypeNode['QUERY'] = 'query';
@@ -28303,6 +44491,7 @@ var OperationTypeNode;
\**************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -28320,28 +44509,28 @@ var _characterClasses = __webpack_require__(/*! ./characterClasses.mjs */ "../..
*
* @internal
*/
+
function dedentBlockStringLines(lines) {
- var _firstNonEmptyLine;
+ var _firstNonEmptyLine2;
let commonIndent = Number.MAX_SAFE_INTEGER;
let firstNonEmptyLine = null;
let lastNonEmptyLine = -1;
for (let i = 0; i < lines.length; ++i) {
+ var _firstNonEmptyLine;
const line = lines[i];
const indent = leadingWhitespace(line);
if (indent === line.length) {
continue; // skip empty lines
}
- firstNonEmptyLine ??= i;
+ firstNonEmptyLine = (_firstNonEmptyLine = firstNonEmptyLine) !== null && _firstNonEmptyLine !== void 0 ? _firstNonEmptyLine : i;
lastNonEmptyLine = i;
if (i !== 0 && indent < commonIndent) {
commonIndent = indent;
}
}
- return lines
- // Remove common indentation from all lines but first.
- .map((line, i) => i === 0 ? line : line.slice(commonIndent))
- // Remove leading and trailing blank lines.
- .slice((_firstNonEmptyLine = firstNonEmptyLine) !== null && _firstNonEmptyLine !== void 0 ? _firstNonEmptyLine : 0, lastNonEmptyLine + 1);
+ return lines // Remove common indentation from all lines but first.
+ .map((line, i) => i === 0 ? line : line.slice(commonIndent)) // Remove leading and trailing blank lines.
+ .slice((_firstNonEmptyLine2 = firstNonEmptyLine) !== null && _firstNonEmptyLine2 !== void 0 ? _firstNonEmptyLine2 : 0, lastNonEmptyLine + 1);
}
function leadingWhitespace(str) {
let i = 0;
@@ -28353,6 +44542,7 @@ function leadingWhitespace(str) {
/**
* @internal
*/
+
function isPrintableAsBlockString(value) {
if (value === '') {
return true; // empty string is printable
@@ -28378,10 +44568,12 @@ function isPrintableAsBlockString(value) {
case 0x000f:
return false;
// Has non-printable characters
+
case 0x000d:
// \r
return false;
// Has \r or \r\n which will be replaced as \n
+
case 10:
// \n
if (isEmptyLine && !seenNonEmptyLine) {
@@ -28392,12 +44584,13 @@ function isPrintableAsBlockString(value) {
hasIndent = false;
break;
case 9: // \t
+
case 32:
//
- hasIndent ||= isEmptyLine;
+ hasIndent || (hasIndent = isEmptyLine);
break;
default:
- hasCommonIndent &&= hasIndent;
+ hasCommonIndent && (hasCommonIndent = hasIndent);
isEmptyLine = false;
}
}
@@ -28416,24 +44609,25 @@ function isPrintableAsBlockString(value) {
*
* @internal
*/
+
function printBlockString(value, options) {
- const escapedValue = value.replaceAll('"""', '\\"""');
- // Expand a block string's raw value into independent lines.
+ const escapedValue = value.replace(/"""/g, '\\"""'); // Expand a block string's raw value into independent lines.
+
const lines = escapedValue.split(/\r\n|[\n\r]/g);
- const isSingleLine = lines.length === 1;
- // If common indentation is found we can fix some of those cases by adding leading new line
- const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every(line => line.length === 0 || (0, _characterClasses.isWhiteSpace)(line.charCodeAt(0)));
- // Trailing triple quotes just looks confusing but doesn't force trailing new line
- const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
- // Trailing quote (single or double) or slash forces trailing new line
+ const isSingleLine = lines.length === 1; // If common indentation is found we can fix some of those cases by adding leading new line
+
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every(line => line.length === 0 || (0, _characterClasses.isWhiteSpace)(line.charCodeAt(0))); // Trailing triple quotes just looks confusing but doesn't force trailing new line
+
+ const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""'); // Trailing quote (single or double) or slash forces trailing new line
+
const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
const hasTrailingSlash = value.endsWith('\\');
const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && (
// add leading and trailing new lines only if it improves readability
!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
- let result = '';
- // Format a multi-line block quote to account for leading space.
+ let result = ''; // Format a multi-line block quote to account for leading space.
+
const skipLeadingNewLine = isSingleLine && (0, _characterClasses.isWhiteSpace)(value.charCodeAt(0));
if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
result += '\n';
@@ -28453,6 +44647,7 @@ function printBlockString(value, options) {
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -28481,6 +44676,7 @@ function isWhiteSpace(code) {
* ```
* @internal
*/
+
function isDigit(code) {
return code >= 0x0030 && code <= 0x0039;
}
@@ -28494,6 +44690,7 @@ function isDigit(code) {
* ```
* @internal
*/
+
function isLetter(code) {
return code >= 0x0061 && code <= 0x007a ||
// A-Z
@@ -28508,6 +44705,7 @@ function isLetter(code) {
* ```
* @internal
*/
+
function isNameStart(code) {
return isLetter(code) || code === 0x005f;
}
@@ -28520,6 +44718,7 @@ function isNameStart(code) {
* ```
* @internal
*/
+
function isNameContinue(code) {
return isLetter(code) || isDigit(code) || code === 0x005f;
}
@@ -28532,6 +44731,7 @@ function isNameContinue(code) {
\********************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -28543,7 +44743,6 @@ exports.DirectiveLocation = void 0;
*/
var DirectiveLocation;
(function (DirectiveLocation) {
- /** Request Definitions */
DirectiveLocation['QUERY'] = 'QUERY';
DirectiveLocation['MUTATION'] = 'MUTATION';
DirectiveLocation['SUBSCRIPTION'] = 'SUBSCRIPTION';
@@ -28552,7 +44751,6 @@ var DirectiveLocation;
DirectiveLocation['FRAGMENT_SPREAD'] = 'FRAGMENT_SPREAD';
DirectiveLocation['INLINE_FRAGMENT'] = 'INLINE_FRAGMENT';
DirectiveLocation['VARIABLE_DEFINITION'] = 'VARIABLE_DEFINITION';
- /** Type System Definitions */
DirectiveLocation['SCHEMA'] = 'SCHEMA';
DirectiveLocation['SCALAR'] = 'SCALAR';
DirectiveLocation['OBJECT'] = 'OBJECT';
@@ -28566,6 +44764,12 @@ var DirectiveLocation;
DirectiveLocation['INPUT_FIELD_DEFINITION'] = 'INPUT_FIELD_DEFINITION';
})(DirectiveLocation || (exports.DirectiveLocation = DirectiveLocation = {}));
+/**
+ * The enum type representing the directive location values.
+ *
+ * @deprecated Please use `DirectiveLocation`. Will be remove in v17.
+ */
+
/***/ }),
/***/ "../../../node_modules/graphql/language/index.mjs":
@@ -28574,6 +44778,7 @@ var DirectiveLocation;
\********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -28645,6 +44850,12 @@ Object.defineProperty(exports, "getLocation", ({
return _location.getLocation;
}
}));
+Object.defineProperty(exports, "getVisitFn", ({
+ enumerable: true,
+ get: function () {
+ return _visitor.getVisitFn;
+ }
+}));
Object.defineProperty(exports, "isConstValueNode", ({
enumerable: true,
get: function () {
@@ -28663,12 +44874,6 @@ Object.defineProperty(exports, "isExecutableDefinitionNode", ({
return _predicates.isExecutableDefinitionNode;
}
}));
-Object.defineProperty(exports, "isNullabilityAssertionNode", ({
- enumerable: true,
- get: function () {
- return _predicates.isNullabilityAssertionNode;
- }
-}));
Object.defineProperty(exports, "isSelectionNode", ({
enumerable: true,
get: function () {
@@ -28786,6 +44991,7 @@ var _directiveLocation = __webpack_require__(/*! ./directiveLocation.mjs */ "../
\********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -28797,24 +45003,16 @@ exports.Kind = void 0;
*/
var Kind;
(function (Kind) {
- /** Name */
Kind['NAME'] = 'Name';
- /** Document */
Kind['DOCUMENT'] = 'Document';
Kind['OPERATION_DEFINITION'] = 'OperationDefinition';
Kind['VARIABLE_DEFINITION'] = 'VariableDefinition';
Kind['SELECTION_SET'] = 'SelectionSet';
Kind['FIELD'] = 'Field';
Kind['ARGUMENT'] = 'Argument';
- /** Nullability Modifiers */
- Kind['LIST_NULLABILITY_OPERATOR'] = 'ListNullabilityOperator';
- Kind['NON_NULL_ASSERTION'] = 'NonNullAssertion';
- Kind['ERROR_BOUNDARY'] = 'ErrorBoundary';
- /** Fragments */
Kind['FRAGMENT_SPREAD'] = 'FragmentSpread';
Kind['INLINE_FRAGMENT'] = 'InlineFragment';
Kind['FRAGMENT_DEFINITION'] = 'FragmentDefinition';
- /** Values */
Kind['VARIABLE'] = 'Variable';
Kind['INT'] = 'IntValue';
Kind['FLOAT'] = 'FloatValue';
@@ -28825,16 +45023,12 @@ var Kind;
Kind['LIST'] = 'ListValue';
Kind['OBJECT'] = 'ObjectValue';
Kind['OBJECT_FIELD'] = 'ObjectField';
- /** Directives */
Kind['DIRECTIVE'] = 'Directive';
- /** Types */
Kind['NAMED_TYPE'] = 'NamedType';
Kind['LIST_TYPE'] = 'ListType';
Kind['NON_NULL_TYPE'] = 'NonNullType';
- /** Type System Definitions */
Kind['SCHEMA_DEFINITION'] = 'SchemaDefinition';
Kind['OPERATION_TYPE_DEFINITION'] = 'OperationTypeDefinition';
- /** Type Definitions */
Kind['SCALAR_TYPE_DEFINITION'] = 'ScalarTypeDefinition';
Kind['OBJECT_TYPE_DEFINITION'] = 'ObjectTypeDefinition';
Kind['FIELD_DEFINITION'] = 'FieldDefinition';
@@ -28844,11 +45038,8 @@ var Kind;
Kind['ENUM_TYPE_DEFINITION'] = 'EnumTypeDefinition';
Kind['ENUM_VALUE_DEFINITION'] = 'EnumValueDefinition';
Kind['INPUT_OBJECT_TYPE_DEFINITION'] = 'InputObjectTypeDefinition';
- /** Directive Definitions */
Kind['DIRECTIVE_DEFINITION'] = 'DirectiveDefinition';
- /** Type System Extensions */
Kind['SCHEMA_EXTENSION'] = 'SchemaExtension';
- /** Type Extensions */
Kind['SCALAR_TYPE_EXTENSION'] = 'ScalarTypeExtension';
Kind['OBJECT_TYPE_EXTENSION'] = 'ObjectTypeExtension';
Kind['INTERFACE_TYPE_EXTENSION'] = 'InterfaceTypeExtension';
@@ -28857,6 +45048,12 @@ var Kind;
Kind['INPUT_OBJECT_TYPE_EXTENSION'] = 'InputObjectTypeExtension';
})(Kind || (exports.Kind = Kind = {}));
+/**
+ * The enum type representing the possible kind values of AST nodes.
+ *
+ * @deprecated Please use `Kind`. Will be remove in v17.
+ */
+
/***/ }),
/***/ "../../../node_modules/graphql/language/lexer.mjs":
@@ -28865,6 +45062,7 @@ var Kind;
\********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -28885,7 +45083,23 @@ var _tokenKind = __webpack_require__(/*! ./tokenKind.mjs */ "../../../node_modul
* EOF, after which the lexer will repeatedly return the same EOF token
* whenever called.
*/
+
class Lexer {
+ /**
+ * The previously focused non-ignored token.
+ */
+
+ /**
+ * The currently focused non-ignored token.
+ */
+
+ /**
+ * The (1-indexed) line containing the current token.
+ */
+
+ /**
+ * The character offset at which the current line begins.
+ */
constructor(source) {
const startOfFileToken = new _ast.Token(_tokenKind.TokenKind.SOF, 0, 0, 0, 0);
this.source = source;
@@ -28900,6 +45114,7 @@ class Lexer {
/**
* Advances the token stream to the next non-ignored token.
*/
+
advance() {
this.lastToken = this.token;
const token = this.token = this.lookahead();
@@ -28909,6 +45124,7 @@ class Lexer {
* Looks ahead and returns the next non-ignored token, but does not change
* the state of Lexer.
*/
+
lookahead() {
let token = this.token;
if (token.kind !== _tokenKind.TokenKind.EOF) {
@@ -28917,10 +45133,10 @@ class Lexer {
token = token.next;
} else {
// Read the next token and form a link in the token linked-list.
- const nextToken = readNextToken(this, token.end);
- // @ts-expect-error next is only mutable during parsing.
- token.next = nextToken;
- // @ts-expect-error prev is only mutable during parsing.
+ const nextToken = readNextToken(this, token.end); // @ts-expect-error next is only mutable during parsing.
+
+ token.next = nextToken; // @ts-expect-error prev is only mutable during parsing.
+
nextToken.prev = token;
token = nextToken;
}
@@ -28934,7 +45150,7 @@ class Lexer {
*/
exports.Lexer = Lexer;
function isPunctuatorTokenKind(kind) {
- return kind === _tokenKind.TokenKind.BANG || kind === _tokenKind.TokenKind.QUESTION_MARK || kind === _tokenKind.TokenKind.DOLLAR || kind === _tokenKind.TokenKind.AMP || kind === _tokenKind.TokenKind.PAREN_L || kind === _tokenKind.TokenKind.PAREN_R || kind === _tokenKind.TokenKind.SPREAD || kind === _tokenKind.TokenKind.COLON || kind === _tokenKind.TokenKind.EQUALS || kind === _tokenKind.TokenKind.AT || kind === _tokenKind.TokenKind.BRACKET_L || kind === _tokenKind.TokenKind.BRACKET_R || kind === _tokenKind.TokenKind.BRACE_L || kind === _tokenKind.TokenKind.PIPE || kind === _tokenKind.TokenKind.BRACE_R;
+ return kind === _tokenKind.TokenKind.BANG || kind === _tokenKind.TokenKind.DOLLAR || kind === _tokenKind.TokenKind.AMP || kind === _tokenKind.TokenKind.PAREN_L || kind === _tokenKind.TokenKind.PAREN_R || kind === _tokenKind.TokenKind.SPREAD || kind === _tokenKind.TokenKind.COLON || kind === _tokenKind.TokenKind.EQUALS || kind === _tokenKind.TokenKind.AT || kind === _tokenKind.TokenKind.BRACKET_L || kind === _tokenKind.TokenKind.BRACKET_R || kind === _tokenKind.TokenKind.BRACE_L || kind === _tokenKind.TokenKind.PIPE || kind === _tokenKind.TokenKind.BRACE_R;
}
/**
* A Unicode scalar value is any Unicode code point except surrogate code
@@ -28944,6 +45160,7 @@ function isPunctuatorTokenKind(kind) {
* SourceCharacter ::
* - "Any Unicode scalar value"
*/
+
function isUnicodeScalarValue(code) {
return code >= 0x0000 && code <= 0xd7ff || code >= 0xe000 && code <= 0x10ffff;
}
@@ -28955,6 +45172,7 @@ function isUnicodeScalarValue(code) {
* encodes a supplementary code point (above U+FFFF), but unpaired surrogate
* code points are not valid source characters.
*/
+
function isSupplementaryCodePoint(body, location) {
return isLeadingSurrogate(body.charCodeAt(location)) && isTrailingSurrogate(body.charCodeAt(location + 1));
}
@@ -28971,6 +45189,7 @@ function isTrailingSurrogate(code) {
* Printable ASCII is printed quoted, while other points are printed in Unicode
* code point form (ie. U+1234).
*/
+
function printCodePointAt(lexer, location) {
const code = lexer.source.body.codePointAt(location);
if (code === undefined) {
@@ -28979,13 +45198,14 @@ function printCodePointAt(lexer, location) {
// Printable ASCII
const char = String.fromCodePoint(code);
return char === '"' ? "'\"'" : `"${char}"`;
- }
- // Unicode code point
+ } // Unicode code point
+
return 'U+' + code.toString(16).toUpperCase().padStart(4, '0');
}
/**
* Create a token with line and column location information.
*/
+
function createToken(lexer, kind, start, end, value) {
const line = lexer.line;
const col = 1 + start - lexer.lineStart;
@@ -28998,13 +45218,14 @@ function createToken(lexer, kind, start, end, value) {
* punctuators immediately or calls the appropriate helper function for more
* complicated tokens.
*/
+
function readNextToken(lexer, start) {
const body = lexer.source.body;
const bodyLength = body.length;
let position = start;
while (position < bodyLength) {
- const code = body.charCodeAt(position);
- // SourceCharacter
+ const code = body.charCodeAt(position); // SourceCharacter
+
switch (code) {
// Ignored ::
// - UnicodeBOM
@@ -29021,8 +45242,11 @@ function readNextToken(lexer, start) {
//
// Comma :: ,
case 0xfeff: //
+
case 0x0009: // \t
+
case 0x0020: //
+
case 0x002c:
// ,
++position;
@@ -29031,6 +45255,7 @@ function readNextToken(lexer, start) {
// - "New Line (U+000A)"
// - "Carriage Return (U+000D)" [lookahead != "New Line (U+000A)"]
// - "Carriage Return (U+000D)" "New Line (U+000A)"
+
case 0x000a:
// \n
++position;
@@ -29048,6 +45273,7 @@ function readNextToken(lexer, start) {
lexer.lineStart = position;
continue;
// Comment
+
case 0x0023:
// #
return readComment(lexer, position);
@@ -29059,6 +45285,7 @@ function readNextToken(lexer, start) {
// - StringValue
//
// Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
+
case 0x0021:
// !
return createToken(lexer, _tokenKind.TokenKind.BANG, position, position + 1);
@@ -29104,22 +45331,20 @@ function readNextToken(lexer, start) {
case 0x007d:
// }
return createToken(lexer, _tokenKind.TokenKind.BRACE_R, position, position + 1);
- case 0x003f:
- // ?
- return createToken(lexer, _tokenKind.TokenKind.QUESTION_MARK, position, position + 1);
// StringValue
+
case 0x0022:
// "
if (body.charCodeAt(position + 1) === 0x0022 && body.charCodeAt(position + 2) === 0x0022) {
return readBlockString(lexer, position);
}
return readString(lexer, position);
- }
- // IntValue | FloatValue (Digit | -)
+ } // IntValue | FloatValue (Digit | -)
+
if ((0, _characterClasses.isDigit)(code) || code === 0x002d) {
return readNumber(lexer, position, code);
- }
- // Name
+ } // Name
+
if ((0, _characterClasses.isNameStart)(code)) {
return readName(lexer, position);
}
@@ -29136,17 +45361,18 @@ function readNextToken(lexer, start) {
* CommentChar :: SourceCharacter but not LineTerminator
* ```
*/
+
function readComment(lexer, start) {
const body = lexer.source.body;
const bodyLength = body.length;
let position = start + 1;
while (position < bodyLength) {
- const code = body.charCodeAt(position);
- // LineTerminator (\n | \r)
+ const code = body.charCodeAt(position); // LineTerminator (\n | \r)
+
if (code === 0x000a || code === 0x000d) {
break;
- }
- // SourceCharacter
+ } // SourceCharacter
+
if (isUnicodeScalarValue(code)) {
++position;
} else if (isSupplementaryCodePoint(body, position)) {
@@ -29186,16 +45412,17 @@ function readComment(lexer, start) {
* Sign :: one of + -
* ```
*/
+
function readNumber(lexer, start, firstCode) {
const body = lexer.source.body;
let position = start;
let code = firstCode;
- let isFloat = false;
- // NegativeSign (-)
+ let isFloat = false; // NegativeSign (-)
+
if (code === 0x002d) {
code = body.charCodeAt(++position);
- }
- // Zero (0)
+ } // Zero (0)
+
if (code === 0x0030) {
code = body.charCodeAt(++position);
if ((0, _characterClasses.isDigit)(code)) {
@@ -29204,26 +45431,26 @@ function readNumber(lexer, start, firstCode) {
} else {
position = readDigits(lexer, position, code);
code = body.charCodeAt(position);
- }
- // Full stop (.)
+ } // Full stop (.)
+
if (code === 0x002e) {
isFloat = true;
code = body.charCodeAt(++position);
position = readDigits(lexer, position, code);
code = body.charCodeAt(position);
- }
- // E e
+ } // E e
+
if (code === 0x0045 || code === 0x0065) {
isFloat = true;
- code = body.charCodeAt(++position);
- // + -
+ code = body.charCodeAt(++position); // + -
+
if (code === 0x002b || code === 0x002d) {
code = body.charCodeAt(++position);
}
position = readDigits(lexer, position, code);
code = body.charCodeAt(position);
- }
- // Numbers cannot be followed by . or NameStart
+ } // Numbers cannot be followed by . or NameStart
+
if (code === 0x002e || (0, _characterClasses.isNameStart)(code)) {
throw (0, _syntaxError.syntaxError)(lexer.source, position, `Invalid number, expected digit but got: ${printCodePointAt(lexer, position)}.`);
}
@@ -29232,12 +45459,14 @@ function readNumber(lexer, start, firstCode) {
/**
* Returns the new position in the source after reading one or more digits.
*/
+
function readDigits(lexer, start, firstCode) {
if (!(0, _characterClasses.isDigit)(firstCode)) {
throw (0, _syntaxError.syntaxError)(lexer.source, start, `Invalid number, expected digit but got: ${printCodePointAt(lexer, start)}.`);
}
const body = lexer.source.body;
let position = start + 1; // +1 to skip first firstCode
+
while ((0, _characterClasses.isDigit)(body.charCodeAt(position))) {
++position;
}
@@ -29263,6 +45492,7 @@ function readDigits(lexer, start, firstCode) {
* EscapedCharacter :: one of `"` `\` `/` `b` `f` `n` `r` `t`
* ```
*/
+
function readString(lexer, start) {
const body = lexer.source.body;
const bodyLength = body.length;
@@ -29270,13 +45500,13 @@ function readString(lexer, start) {
let chunkStart = position;
let value = '';
while (position < bodyLength) {
- const code = body.charCodeAt(position);
- // Closing Quote (")
+ const code = body.charCodeAt(position); // Closing Quote (")
+
if (code === 0x0022) {
value += body.slice(chunkStart, position);
return createToken(lexer, _tokenKind.TokenKind.STRING, start, position + 1, value);
- }
- // Escape Sequence (\)
+ } // Escape Sequence (\)
+
if (code === 0x005c) {
value += body.slice(chunkStart, position);
const escape = body.charCodeAt(position + 1) === 0x0075 // u
@@ -29286,12 +45516,12 @@ function readString(lexer, start) {
position += escape.size;
chunkStart = position;
continue;
- }
- // LineTerminator (\n | \r)
+ } // LineTerminator (\n | \r)
+
if (code === 0x000a || code === 0x000d) {
break;
- }
- // SourceCharacter
+ } // SourceCharacter
+
if (isUnicodeScalarValue(code)) {
++position;
} else if (isSupplementaryCodePoint(body, position)) {
@@ -29301,15 +45531,16 @@ function readString(lexer, start) {
}
}
throw (0, _syntaxError.syntaxError)(lexer.source, position, 'Unterminated string.');
-}
+} // The string value and lexed size of an escape sequence.
+
function readEscapedUnicodeVariableWidth(lexer, position) {
const body = lexer.source.body;
let point = 0;
- let size = 3;
- // Cannot be larger than 12 chars (\u{00000000}).
+ let size = 3; // Cannot be larger than 12 chars (\u{00000000}).
+
while (size < 12) {
- const code = body.charCodeAt(position + size++);
- // Closing Brace (})
+ const code = body.charCodeAt(position + size++); // Closing Brace (})
+
if (code === 0x007d) {
// Must be at least 5 chars (\u{0}) and encode a Unicode scalar value.
if (size < 5 || !isUnicodeScalarValue(point)) {
@@ -29319,8 +45550,8 @@ function readEscapedUnicodeVariableWidth(lexer, position) {
value: String.fromCodePoint(point),
size
};
- }
- // Append this hex digit to the code point.
+ } // Append this hex digit to the code point.
+
point = point << 4 | readHexDigit(code);
if (point < 0) {
break;
@@ -29336,9 +45567,9 @@ function readEscapedUnicodeFixedWidth(lexer, position) {
value: String.fromCodePoint(code),
size: 6
};
- }
- // GraphQL allows JSON-style surrogate pair escape sequences, but only when
+ } // GraphQL allows JSON-style surrogate pair escape sequences, but only when
// a valid pair is formed.
+
if (isLeadingSurrogate(code)) {
// \u
if (body.charCodeAt(position + 6) === 0x005c && body.charCodeAt(position + 7) === 0x0075) {
@@ -29366,6 +45597,7 @@ function readEscapedUnicodeFixedWidth(lexer, position) {
*
* Returns a negative number if any char was not a valid hexadecimal digit.
*/
+
function read16BitHexCode(body, position) {
// readHexDigit() returns -1 on error. ORing a negative value with any other
// value always produces a negative value.
@@ -29385,6 +45617,7 @@ function read16BitHexCode(body, position) {
* - `A` `B` `C` `D` `E` `F`
* - `a` `b` `c` `d` `e` `f`
*/
+
function readHexDigit(code) {
return code >= 0x0030 && code <= 0x0039 // 0-9
? code - 0x0030 : code >= 0x0041 && code <= 0x0046 // A-F
@@ -29403,6 +45636,7 @@ function readHexDigit(code) {
* | `r` | U+000D | carriage return |
* | `t` | U+0009 | horizontal tab |
*/
+
function readEscapedCharacter(lexer, position) {
const body = lexer.source.body;
const code = body.charCodeAt(position + 1);
@@ -29470,6 +45704,7 @@ function readEscapedCharacter(lexer, position) {
* - `\"""`
* ```
*/
+
function readBlockString(lexer, start) {
const body = lexer.source.body;
const bodyLength = body.length;
@@ -29479,8 +45714,8 @@ function readBlockString(lexer, start) {
let currentLine = '';
const blockLines = [];
while (position < bodyLength) {
- const code = body.charCodeAt(position);
- // Closing Triple-Quote (""")
+ const code = body.charCodeAt(position); // Closing Triple-Quote (""")
+
if (code === 0x0022 && body.charCodeAt(position + 1) === 0x0022 && body.charCodeAt(position + 2) === 0x0022) {
currentLine += body.slice(chunkStart, position);
blockLines.push(currentLine);
@@ -29490,15 +45725,16 @@ function readBlockString(lexer, start) {
lexer.line += blockLines.length - 1;
lexer.lineStart = lineStart;
return token;
- }
- // Escaped Triple-Quote (\""")
+ } // Escaped Triple-Quote (\""")
+
if (code === 0x005c && body.charCodeAt(position + 1) === 0x0022 && body.charCodeAt(position + 2) === 0x0022 && body.charCodeAt(position + 3) === 0x0022) {
currentLine += body.slice(chunkStart, position);
chunkStart = position + 1; // skip only slash
+
position += 4;
continue;
- }
- // LineTerminator
+ } // LineTerminator
+
if (code === 0x000a || code === 0x000d) {
currentLine += body.slice(chunkStart, position);
blockLines.push(currentLine);
@@ -29511,8 +45747,8 @@ function readBlockString(lexer, start) {
chunkStart = position;
lineStart = position;
continue;
- }
- // SourceCharacter
+ } // SourceCharacter
+
if (isUnicodeScalarValue(code)) {
++position;
} else if (isSupplementaryCodePoint(body, position)) {
@@ -29531,6 +45767,7 @@ function readBlockString(lexer, start) {
* - NameStart NameContinue* [lookahead != NameContinue]
* ```
*/
+
function readName(lexer, start) {
const body = lexer.source.body;
const bodyLength = body.length;
@@ -29554,6 +45791,7 @@ function readName(lexer, start) {
\***********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -29562,6 +45800,10 @@ Object.defineProperty(exports, "__esModule", ({
exports.getLocation = getLocation;
var _invariant = __webpack_require__(/*! ../jsutils/invariant.mjs */ "../../../node_modules/graphql/jsutils/invariant.mjs");
const LineRegExp = /\r\n|[\n\r]/g;
+/**
+ * Represents a location in a Source.
+ */
+
/**
* Takes a Source and a UTF-8 character offset, and returns the corresponding
* line and column as a SourceLocation.
@@ -29591,6 +45833,7 @@ function getLocation(source, position) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -29608,6 +45851,10 @@ var _kinds = __webpack_require__(/*! ./kinds.mjs */ "../../../node_modules/graph
var _lexer = __webpack_require__(/*! ./lexer.mjs */ "../../../node_modules/graphql/language/lexer.mjs");
var _source = __webpack_require__(/*! ./source.mjs */ "../../../node_modules/graphql/language/source.mjs");
var _tokenKind = __webpack_require__(/*! ./tokenKind.mjs */ "../../../node_modules/graphql/language/tokenKind.mjs");
+/**
+ * Configuration options to control parser behavior
+ */
+
/**
* Given a GraphQL source, parses it into a Document.
* Throws GraphQLError if a syntax error is encountered.
@@ -29626,6 +45873,7 @@ function parse(source, options) {
*
* Consider providing the results to the utility function: valueFromAST().
*/
+
function parseValue(source, options) {
const parser = new Parser(source, options);
parser.expectToken(_tokenKind.TokenKind.SOF);
@@ -29637,6 +45885,7 @@ function parseValue(source, options) {
* Similar to parseValue(), but raises a parse error if it encounters a
* variable. The return type will be a constant value.
*/
+
function parseConstValue(source, options) {
const parser = new Parser(source, options);
parser.expectToken(_tokenKind.TokenKind.SOF);
@@ -29654,6 +45903,7 @@ function parseConstValue(source, options) {
*
* Consider providing the results to the utility function: typeFromAST().
*/
+
function parseType(source, options) {
const parser = new Parser(source, options);
parser.expectToken(_tokenKind.TokenKind.SOF);
@@ -29672,6 +45922,7 @@ function parseType(source, options) {
*
* @internal
*/
+
class Parser {
constructor(source, options = {}) {
const sourceObj = (0, _source.isSource)(source) ? source : new _source.Source(source);
@@ -29682,17 +45933,19 @@ class Parser {
/**
* Converts a name lex token into a name parse node.
*/
+
parseName() {
const token = this.expectToken(_tokenKind.TokenKind.NAME);
return this.node(token, {
kind: _kinds.Kind.NAME,
value: token.value
});
- }
- // Implements the parsing rules in the Document section.
+ } // Implements the parsing rules in the Document section.
+
/**
* Document : Definition+
*/
+
parseDocument() {
return this.node(this._lexer.token, {
kind: _kinds.Kind.DOCUMENT,
@@ -29722,11 +45975,12 @@ class Parser {
* - EnumTypeDefinition
* - InputObjectTypeDefinition
*/
+
parseDefinition() {
if (this.peek(_tokenKind.TokenKind.BRACE_L)) {
return this.parseOperationDefinition();
- }
- // Many definitions begin with a description and require a lookahead.
+ } // Many definitions begin with a description and require a lookahead.
+
const hasDescription = this.peekDescription();
const keywordToken = hasDescription ? this._lexer.lookahead() : this._lexer.token;
if (keywordToken.kind === _tokenKind.TokenKind.NAME) {
@@ -29763,13 +46017,14 @@ class Parser {
}
}
throw this.unexpected(keywordToken);
- }
- // Implements the parsing rules in the Operations section.
+ } // Implements the parsing rules in the Operations section.
+
/**
* OperationDefinition :
* - SelectionSet
* - OperationType Name? VariableDefinitions? Directives? SelectionSet
*/
+
parseOperationDefinition() {
const start = this._lexer.token;
if (this.peek(_tokenKind.TokenKind.BRACE_L)) {
@@ -29799,6 +46054,7 @@ class Parser {
/**
* OperationType : one of query mutation subscription
*/
+
parseOperationType() {
const operationToken = this.expectToken(_tokenKind.TokenKind.NAME);
switch (operationToken.value) {
@@ -29814,12 +46070,14 @@ class Parser {
/**
* VariableDefinitions : ( VariableDefinition+ )
*/
+
parseVariableDefinitions() {
return this.optionalMany(_tokenKind.TokenKind.PAREN_L, this.parseVariableDefinition, _tokenKind.TokenKind.PAREN_R);
}
/**
* VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
*/
+
parseVariableDefinition() {
return this.node(this._lexer.token, {
kind: _kinds.Kind.VARIABLE_DEFINITION,
@@ -29832,6 +46090,7 @@ class Parser {
/**
* Variable : $ Name
*/
+
parseVariable() {
const start = this._lexer.token;
this.expectToken(_tokenKind.TokenKind.DOLLAR);
@@ -29845,6 +46104,7 @@ class Parser {
* SelectionSet : { Selection+ }
* ```
*/
+
parseSelectionSet() {
return this.node(this._lexer.token, {
kind: _kinds.Kind.SELECTION_SET,
@@ -29857,6 +46117,7 @@ class Parser {
* - FragmentSpread
* - InlineFragment
*/
+
parseSelection() {
return this.peek(_tokenKind.TokenKind.SPREAD) ? this.parseFragment() : this.parseField();
}
@@ -29865,6 +46126,7 @@ class Parser {
*
* Alias : Name :
*/
+
parseField() {
const start = this._lexer.token;
const nameOrAlias = this.parseName();
@@ -29881,47 +46143,22 @@ class Parser {
alias,
name,
arguments: this.parseArguments(false),
- // Experimental support for Client Controlled Nullability changes
- // the grammar of Field:
- nullabilityAssertion: this.parseNullabilityAssertion(),
directives: this.parseDirectives(false),
selectionSet: this.peek(_tokenKind.TokenKind.BRACE_L) ? this.parseSelectionSet() : undefined
});
}
- // TODO: add grammar comment after it finalizes
- parseNullabilityAssertion() {
- // Note: Client Controlled Nullability is experimental and may be changed or
- // removed in the future.
- if (this._options.experimentalClientControlledNullability !== true) {
- return undefined;
- }
- const start = this._lexer.token;
- let nullabilityAssertion;
- if (this.expectOptionalToken(_tokenKind.TokenKind.BRACKET_L)) {
- const innerModifier = this.parseNullabilityAssertion();
- this.expectToken(_tokenKind.TokenKind.BRACKET_R);
- nullabilityAssertion = this.node(start, {
- kind: _kinds.Kind.LIST_NULLABILITY_OPERATOR,
- nullabilityAssertion: innerModifier
- });
- }
- if (this.expectOptionalToken(_tokenKind.TokenKind.BANG)) {
- nullabilityAssertion = this.node(start, {
- kind: _kinds.Kind.NON_NULL_ASSERTION,
- nullabilityAssertion
- });
- } else if (this.expectOptionalToken(_tokenKind.TokenKind.QUESTION_MARK)) {
- nullabilityAssertion = this.node(start, {
- kind: _kinds.Kind.ERROR_BOUNDARY,
- nullabilityAssertion
- });
- }
- return nullabilityAssertion;
- }
+ /**
+ * Arguments[Const] : ( Argument[?Const]+ )
+ */
+
parseArguments(isConst) {
const item = isConst ? this.parseConstArgument : this.parseArgument;
return this.optionalMany(_tokenKind.TokenKind.PAREN_L, item, _tokenKind.TokenKind.PAREN_R);
}
+ /**
+ * Argument[Const] : Name : Value[?Const]
+ */
+
parseArgument(isConst = false) {
const start = this._lexer.token;
const name = this.parseName();
@@ -29934,8 +46171,8 @@ class Parser {
}
parseConstArgument() {
return this.parseArgument(true);
- }
- // Implements the parsing rules in the Fragments section.
+ } // Implements the parsing rules in the Fragments section.
+
/**
* Corresponds to both FragmentSpread and InlineFragment in the spec.
*
@@ -29943,6 +46180,7 @@ class Parser {
*
* InlineFragment : ... TypeCondition? Directives? SelectionSet
*/
+
parseFragment() {
const start = this._lexer.token;
this.expectToken(_tokenKind.TokenKind.SPREAD);
@@ -29967,12 +46205,13 @@ class Parser {
*
* TypeCondition : NamedType
*/
+
parseFragmentDefinition() {
const start = this._lexer.token;
- this.expectKeyword('fragment');
- // Legacy support for defining variables within fragments changes
+ this.expectKeyword('fragment'); // Legacy support for defining variables within fragments changes
// the grammar of FragmentDefinition:
// - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet
+
if (this._options.allowLegacyFragmentVariables === true) {
return this.node(start, {
kind: _kinds.Kind.FRAGMENT_DEFINITION,
@@ -29994,12 +46233,33 @@ class Parser {
/**
* FragmentName : Name but not `on`
*/
+
parseFragmentName() {
if (this._lexer.token.value === 'on') {
throw this.unexpected();
}
return this.parseName();
- }
+ } // Implements the parsing rules in the Values section.
+
+ /**
+ * Value[Const] :
+ * - [~Const] Variable
+ * - IntValue
+ * - FloatValue
+ * - StringValue
+ * - BooleanValue
+ * - NullValue
+ * - EnumValue
+ * - ListValue[?Const]
+ * - ObjectValue[?Const]
+ *
+ * BooleanValue : one of `true` `false`
+ *
+ * NullValue : `null`
+ *
+ * EnumValue : Name but not `true`, `false` or `null`
+ */
+
parseValueLiteral(isConst) {
const token = this._lexer.token;
switch (token.kind) {
@@ -30072,6 +46332,12 @@ class Parser {
block: token.kind === _tokenKind.TokenKind.BLOCK_STRING
});
}
+ /**
+ * ListValue[Const] :
+ * - [ ]
+ * - [ Value[?Const]+ ]
+ */
+
parseList(isConst) {
const item = () => this.parseValueLiteral(isConst);
return this.node(this._lexer.token, {
@@ -30079,6 +46345,14 @@ class Parser {
values: this.any(_tokenKind.TokenKind.BRACKET_L, item, _tokenKind.TokenKind.BRACKET_R)
});
}
+ /**
+ * ```
+ * ObjectValue[Const] :
+ * - { }
+ * - { ObjectField[?Const]+ }
+ * ```
+ */
+
parseObject(isConst) {
const item = () => this.parseObjectField(isConst);
return this.node(this._lexer.token, {
@@ -30086,6 +46360,10 @@ class Parser {
fields: this.any(_tokenKind.TokenKind.BRACE_L, item, _tokenKind.TokenKind.BRACE_R)
});
}
+ /**
+ * ObjectField[Const] : Name : Value[?Const]
+ */
+
parseObjectField(isConst) {
const start = this._lexer.token;
const name = this.parseName();
@@ -30095,7 +46373,12 @@ class Parser {
name,
value: this.parseValueLiteral(isConst)
});
- }
+ } // Implements the parsing rules in the Directives section.
+
+ /**
+ * Directives[Const] : Directive[?Const]+
+ */
+
parseDirectives(isConst) {
const directives = [];
while (this.peek(_tokenKind.TokenKind.AT)) {
@@ -30106,6 +46389,12 @@ class Parser {
parseConstDirectives() {
return this.parseDirectives(true);
}
+ /**
+ * ```
+ * Directive[Const] : @ Name Arguments[?Const]?
+ * ```
+ */
+
parseDirective(isConst) {
const start = this._lexer.token;
this.expectToken(_tokenKind.TokenKind.AT);
@@ -30114,14 +46403,15 @@ class Parser {
name: this.parseName(),
arguments: this.parseArguments(isConst)
});
- }
- // Implements the parsing rules in the Types section.
+ } // Implements the parsing rules in the Types section.
+
/**
* Type :
* - NamedType
* - ListType
* - NonNullType
*/
+
parseTypeReference() {
const start = this._lexer.token;
let type;
@@ -30146,19 +46436,21 @@ class Parser {
/**
* NamedType : Name
*/
+
parseNamedType() {
return this.node(this._lexer.token, {
kind: _kinds.Kind.NAMED_TYPE,
name: this.parseName()
});
- }
- // Implements the parsing rules in the Type Definition section.
+ } // Implements the parsing rules in the Type Definition section.
+
peekDescription() {
return this.peek(_tokenKind.TokenKind.STRING) || this.peek(_tokenKind.TokenKind.BLOCK_STRING);
}
/**
* Description : StringValue
*/
+
parseDescription() {
if (this.peekDescription()) {
return this.parseStringLiteral();
@@ -30169,6 +46461,7 @@ class Parser {
* SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }
* ```
*/
+
parseSchemaDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30185,6 +46478,7 @@ class Parser {
/**
* OperationTypeDefinition : OperationType : NamedType
*/
+
parseOperationTypeDefinition() {
const start = this._lexer.token;
const operation = this.parseOperationType();
@@ -30199,6 +46493,7 @@ class Parser {
/**
* ScalarTypeDefinition : Description? scalar Name Directives[Const]?
*/
+
parseScalarTypeDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30217,6 +46512,7 @@ class Parser {
* Description?
* type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?
*/
+
parseObjectTypeDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30239,6 +46535,7 @@ class Parser {
* - implements `&`? NamedType
* - ImplementsInterfaces & NamedType
*/
+
parseImplementsInterfaces() {
return this.expectOptionalKeyword('implements') ? this.delimitedMany(_tokenKind.TokenKind.AMP, this.parseNamedType) : [];
}
@@ -30247,6 +46544,7 @@ class Parser {
* FieldsDefinition : { FieldDefinition+ }
* ```
*/
+
parseFieldsDefinition() {
return this.optionalMany(_tokenKind.TokenKind.BRACE_L, this.parseFieldDefinition, _tokenKind.TokenKind.BRACE_R);
}
@@ -30254,6 +46552,7 @@ class Parser {
* FieldDefinition :
* - Description? Name ArgumentsDefinition? : Type Directives[Const]?
*/
+
parseFieldDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30274,6 +46573,7 @@ class Parser {
/**
* ArgumentsDefinition : ( InputValueDefinition+ )
*/
+
parseArgumentDefs() {
return this.optionalMany(_tokenKind.TokenKind.PAREN_L, this.parseInputValueDef, _tokenKind.TokenKind.PAREN_R);
}
@@ -30281,6 +46581,7 @@ class Parser {
* InputValueDefinition :
* - Description? Name : Type DefaultValue? Directives[Const]?
*/
+
parseInputValueDef() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30305,6 +46606,7 @@ class Parser {
* InterfaceTypeDefinition :
* - Description? interface Name Directives[Const]? FieldsDefinition?
*/
+
parseInterfaceTypeDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30326,6 +46628,7 @@ class Parser {
* UnionTypeDefinition :
* - Description? union Name Directives[Const]? UnionMemberTypes?
*/
+
parseUnionTypeDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30346,6 +46649,7 @@ class Parser {
* - = `|`? NamedType
* - UnionMemberTypes | NamedType
*/
+
parseUnionMemberTypes() {
return this.expectOptionalToken(_tokenKind.TokenKind.EQUALS) ? this.delimitedMany(_tokenKind.TokenKind.PIPE, this.parseNamedType) : [];
}
@@ -30353,6 +46657,7 @@ class Parser {
* EnumTypeDefinition :
* - Description? enum Name Directives[Const]? EnumValuesDefinition?
*/
+
parseEnumTypeDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30373,12 +46678,14 @@ class Parser {
* EnumValuesDefinition : { EnumValueDefinition+ }
* ```
*/
+
parseEnumValuesDefinition() {
return this.optionalMany(_tokenKind.TokenKind.BRACE_L, this.parseEnumValueDefinition, _tokenKind.TokenKind.BRACE_R);
}
/**
* EnumValueDefinition : Description? EnumValue Directives[Const]?
*/
+
parseEnumValueDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30394,6 +46701,7 @@ class Parser {
/**
* EnumValue : Name but not `true`, `false` or `null`
*/
+
parseEnumValueName() {
if (this._lexer.token.value === 'true' || this._lexer.token.value === 'false' || this._lexer.token.value === 'null') {
throw (0, _syntaxError.syntaxError)(this._lexer.source, this._lexer.token.start, `${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`);
@@ -30404,6 +46712,7 @@ class Parser {
* InputObjectTypeDefinition :
* - Description? input Name Directives[Const]? InputFieldsDefinition?
*/
+
parseInputObjectTypeDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30424,6 +46733,7 @@ class Parser {
* InputFieldsDefinition : { InputValueDefinition+ }
* ```
*/
+
parseInputFieldsDefinition() {
return this.optionalMany(_tokenKind.TokenKind.BRACE_L, this.parseInputValueDef, _tokenKind.TokenKind.BRACE_R);
}
@@ -30440,6 +46750,7 @@ class Parser {
* - EnumTypeExtension
* - InputObjectTypeDefinition
*/
+
parseTypeSystemExtension() {
const keywordToken = this._lexer.lookahead();
if (keywordToken.kind === _tokenKind.TokenKind.NAME) {
@@ -30469,6 +46780,7 @@ class Parser {
* - extend schema Directives[Const]
* ```
*/
+
parseSchemaExtension() {
const start = this._lexer.token;
this.expectKeyword('extend');
@@ -30488,6 +46800,7 @@ class Parser {
* ScalarTypeExtension :
* - extend scalar Name Directives[Const]
*/
+
parseScalarTypeExtension() {
const start = this._lexer.token;
this.expectKeyword('extend');
@@ -30509,6 +46822,7 @@ class Parser {
* - extend type Name ImplementsInterfaces? Directives[Const]
* - extend type Name ImplementsInterfaces
*/
+
parseObjectTypeExtension() {
const start = this._lexer.token;
this.expectKeyword('extend');
@@ -30534,6 +46848,7 @@ class Parser {
* - extend interface Name ImplementsInterfaces? Directives[Const]
* - extend interface Name ImplementsInterfaces
*/
+
parseInterfaceTypeExtension() {
const start = this._lexer.token;
this.expectKeyword('extend');
@@ -30558,6 +46873,7 @@ class Parser {
* - extend union Name Directives[Const]? UnionMemberTypes
* - extend union Name Directives[Const]
*/
+
parseUnionTypeExtension() {
const start = this._lexer.token;
this.expectKeyword('extend');
@@ -30580,6 +46896,7 @@ class Parser {
* - extend enum Name Directives[Const]? EnumValuesDefinition
* - extend enum Name Directives[Const]
*/
+
parseEnumTypeExtension() {
const start = this._lexer.token;
this.expectKeyword('extend');
@@ -30602,6 +46919,7 @@ class Parser {
* - extend input Name Directives[Const]? InputFieldsDefinition
* - extend input Name Directives[Const]
*/
+
parseInputObjectTypeExtension() {
const start = this._lexer.token;
this.expectKeyword('extend');
@@ -30625,6 +46943,7 @@ class Parser {
* - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations
* ```
*/
+
parseDirectiveDefinition() {
const start = this._lexer.token;
const description = this.parseDescription();
@@ -30649,6 +46968,7 @@ class Parser {
* - `|`? DirectiveLocation
* - DirectiveLocations | DirectiveLocation
*/
+
parseDirectiveLocations() {
return this.delimitedMany(_tokenKind.TokenKind.PIPE, this.parseDirectiveLocation);
}
@@ -30679,20 +46999,22 @@ class Parser {
* `INPUT_OBJECT`
* `INPUT_FIELD_DEFINITION`
*/
+
parseDirectiveLocation() {
const start = this._lexer.token;
const name = this.parseName();
- if (Object.hasOwn(_directiveLocation.DirectiveLocation, name.value)) {
+ if (Object.prototype.hasOwnProperty.call(_directiveLocation.DirectiveLocation, name.value)) {
return name;
}
throw this.unexpected(start);
- }
- // Core parsing utility functions
+ } // Core parsing utility functions
+
/**
* Returns a node that, if configured to do so, sets a "loc" field as a
* location object, used to identify the place in the source that created a
* given parsed object.
*/
+
node(startToken, node) {
if (this._options.noLocation !== true) {
node.loc = new _ast.Location(startToken, this._lexer.lastToken, this._lexer.source);
@@ -30702,6 +47024,7 @@ class Parser {
/**
* Determines if the next token is of a given kind
*/
+
peek(kind) {
return this._lexer.token.kind === kind;
}
@@ -30709,6 +47032,7 @@ class Parser {
* If the next token is of the given kind, return that token after advancing the lexer.
* Otherwise, do not change the parser state and throw an error.
*/
+
expectToken(kind) {
const token = this._lexer.token;
if (token.kind === kind) {
@@ -30721,6 +47045,7 @@ class Parser {
* If the next token is of the given kind, return "true" after advancing the lexer.
* Otherwise, do not change the parser state and return "false".
*/
+
expectOptionalToken(kind) {
const token = this._lexer.token;
if (token.kind === kind) {
@@ -30733,6 +47058,7 @@ class Parser {
* If the next token is a given keyword, advance the lexer.
* Otherwise, do not change the parser state and throw an error.
*/
+
expectKeyword(value) {
const token = this._lexer.token;
if (token.kind === _tokenKind.TokenKind.NAME && token.value === value) {
@@ -30745,6 +47071,7 @@ class Parser {
* If the next token is a given keyword, return "true" after advancing the lexer.
* Otherwise, do not change the parser state and return "false".
*/
+
expectOptionalKeyword(value) {
const token = this._lexer.token;
if (token.kind === _tokenKind.TokenKind.NAME && token.value === value) {
@@ -30756,6 +47083,7 @@ class Parser {
/**
* Helper function for creating an error when an unexpected lexed token is encountered.
*/
+
unexpected(atToken) {
const token = atToken !== null && atToken !== void 0 ? atToken : this._lexer.token;
return (0, _syntaxError.syntaxError)(this._lexer.source, token.start, `Unexpected ${getTokenDesc(token)}.`);
@@ -30765,6 +47093,7 @@ class Parser {
* This list begins with a lex token of openKind and ends with a lex token of closeKind.
* Advances the parser to the next lex token after the closing token.
*/
+
any(openKind, parseFn, closeKind) {
this.expectToken(openKind);
const nodes = [];
@@ -30779,6 +47108,7 @@ class Parser {
* that begins with a lex token of openKind and ends with a lex token of closeKind.
* Advances the parser to the next lex token after the closing token.
*/
+
optionalMany(openKind, parseFn, closeKind) {
if (this.expectOptionalToken(openKind)) {
const nodes = [];
@@ -30794,6 +47124,7 @@ class Parser {
* This list begins with a lex token of openKind and ends with a lex token of closeKind.
* Advances the parser to the next lex token after the closing token.
*/
+
many(openKind, parseFn, closeKind) {
this.expectToken(openKind);
const nodes = [];
@@ -30807,6 +47138,7 @@ class Parser {
* This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.
* Advances the parser to the next lex token after last item in the list.
*/
+
delimitedMany(delimiterKind, parseFn) {
this.expectOptionalToken(delimiterKind);
const nodes = [];
@@ -30823,7 +47155,7 @@ class Parser {
if (maxTokens !== undefined && token.kind !== _tokenKind.TokenKind.EOF) {
++this._tokenCounter;
if (this._tokenCounter > maxTokens) {
- throw (0, _syntaxError.syntaxError)(this._lexer.source, token.start, `Document contains more than ${maxTokens} tokens. Parsing aborted.`);
+ throw (0, _syntaxError.syntaxError)(this._lexer.source, token.start, `Document contains more that ${maxTokens} tokens. Parsing aborted.`);
}
}
}
@@ -30839,6 +47171,7 @@ function getTokenDesc(token) {
/**
* A helper function to describe a token kind as a string for debugging.
*/
+
function getTokenKindDesc(kind) {
return (0, _lexer.isPunctuatorTokenKind)(kind) ? `"${kind}"` : kind;
}
@@ -30851,6 +47184,7 @@ function getTokenKindDesc(kind) {
\*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -30859,7 +47193,6 @@ Object.defineProperty(exports, "__esModule", ({
exports.isConstValueNode = isConstValueNode;
exports.isDefinitionNode = isDefinitionNode;
exports.isExecutableDefinitionNode = isExecutableDefinitionNode;
-exports.isNullabilityAssertionNode = isNullabilityAssertionNode;
exports.isSelectionNode = isSelectionNode;
exports.isTypeDefinitionNode = isTypeDefinitionNode;
exports.isTypeExtensionNode = isTypeExtensionNode;
@@ -30877,9 +47210,6 @@ function isExecutableDefinitionNode(node) {
function isSelectionNode(node) {
return node.kind === _kinds.Kind.FIELD || node.kind === _kinds.Kind.FRAGMENT_SPREAD || node.kind === _kinds.Kind.INLINE_FRAGMENT;
}
-function isNullabilityAssertionNode(node) {
- return node.kind === _kinds.Kind.LIST_NULLABILITY_OPERATOR || node.kind === _kinds.Kind.NON_NULL_ASSERTION || node.kind === _kinds.Kind.ERROR_BOUNDARY;
-}
function isValueNode(node) {
return node.kind === _kinds.Kind.VARIABLE || node.kind === _kinds.Kind.INT || node.kind === _kinds.Kind.FLOAT || node.kind === _kinds.Kind.STRING || node.kind === _kinds.Kind.BOOLEAN || node.kind === _kinds.Kind.NULL || node.kind === _kinds.Kind.ENUM || node.kind === _kinds.Kind.LIST || node.kind === _kinds.Kind.OBJECT;
}
@@ -30910,6 +47240,7 @@ function isTypeExtensionNode(node) {
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -30927,6 +47258,7 @@ function printLocation(location) {
/**
* Render a helpful description of the location in the GraphQL Source document.
*/
+
function printSourceLocation(source, sourceLocation) {
const firstLineColumnOffset = source.locationOffset.column - 1;
const body = ''.padStart(firstLineColumnOffset) + source.body;
@@ -30937,8 +47269,8 @@ function printSourceLocation(source, sourceLocation) {
const columnNum = sourceLocation.column + columnOffset;
const locationStr = `${source.name}:${lineNum}:${columnNum}\n`;
const lines = body.split(/\r\n|[\n\r]/g);
- const locationLine = lines[lineIndex];
- // Special case for minified documents
+ const locationLine = lines[lineIndex]; // Special case for minified documents
+
if (locationLine.length > 120) {
const subLineIndex = Math.floor(columnNum / 80);
const subLineColumnNum = columnNum % 80;
@@ -30966,6 +47298,7 @@ function printPrefixedLines(lines) {
\**************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -30978,14 +47311,24 @@ exports.printString = printString;
*/
function printString(str) {
return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
-}
-// eslint-disable-next-line no-control-regex
+} // eslint-disable-next-line no-control-regex
+
const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
function escapedReplacer(str) {
return escapeSequences[str.charCodeAt(0)];
-}
-// prettier-ignore
-const escapeSequences = ['\\u0000', '\\u0001', '\\u0002', '\\u0003', '\\u0004', '\\u0005', '\\u0006', '\\u0007', '\\b', '\\t', '\\n', '\\u000B', '\\f', '\\r', '\\u000E', '\\u000F', '\\u0010', '\\u0011', '\\u0012', '\\u0013', '\\u0014', '\\u0015', '\\u0016', '\\u0017', '\\u0018', '\\u0019', '\\u001A', '\\u001B', '\\u001C', '\\u001D', '\\u001E', '\\u001F', '', '', '\\"', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '\\\\', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '\\u007F', '\\u0080', '\\u0081', '\\u0082', '\\u0083', '\\u0084', '\\u0085', '\\u0086', '\\u0087', '\\u0088', '\\u0089', '\\u008A', '\\u008B', '\\u008C', '\\u008D', '\\u008E', '\\u008F', '\\u0090', '\\u0091', '\\u0092', '\\u0093', '\\u0094', '\\u0095', '\\u0096', '\\u0097', '\\u0098', '\\u0099', '\\u009A', '\\u009B', '\\u009C', '\\u009D', '\\u009E', '\\u009F'];
+} // prettier-ignore
+
+const escapeSequences = ['\\u0000', '\\u0001', '\\u0002', '\\u0003', '\\u0004', '\\u0005', '\\u0006', '\\u0007', '\\b', '\\t', '\\n', '\\u000B', '\\f', '\\r', '\\u000E', '\\u000F', '\\u0010', '\\u0011', '\\u0012', '\\u0013', '\\u0014', '\\u0015', '\\u0016', '\\u0017', '\\u0018', '\\u0019', '\\u001A', '\\u001B', '\\u001C', '\\u001D', '\\u001E', '\\u001F', '', '', '\\"', '', '', '', '', '', '', '', '', '', '', '', '', '',
+// 2F
+'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
+// 3F
+'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
+// 4F
+'', '', '', '', '', '', '', '', '', '', '', '', '\\\\', '', '', '',
+// 5F
+'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
+// 6F
+'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '\\u007F', '\\u0080', '\\u0081', '\\u0082', '\\u0083', '\\u0084', '\\u0085', '\\u0086', '\\u0087', '\\u0088', '\\u0089', '\\u008A', '\\u008B', '\\u008C', '\\u008D', '\\u008E', '\\u008F', '\\u0090', '\\u0091', '\\u0092', '\\u0093', '\\u0094', '\\u0095', '\\u0096', '\\u0097', '\\u0098', '\\u0099', '\\u009A', '\\u009B', '\\u009C', '\\u009D', '\\u009E', '\\u009F'];
/***/ }),
@@ -30995,6 +47338,7 @@ const escapeSequences = ['\\u0000', '\\u0001', '\\u0002', '\\u0003', '\\u0004',
\**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -31008,6 +47352,7 @@ var _visitor = __webpack_require__(/*! ./visitor.mjs */ "../../../node_modules/g
* Converts an AST into a string, using one set of reasonable
* formatting rules.
*/
+
function print(ast) {
return (0, _visitor.visit)(ast, printDocASTReducer);
}
@@ -31026,9 +47371,9 @@ const printDocASTReducer = {
OperationDefinition: {
leave(node) {
const varDefs = wrap('(', join(node.variableDefinitions, ', '), ')');
- const prefix = join([node.operation, join([node.name, varDefs]), join(node.directives, ' ')], ' ');
- // Anonymous queries with no directives or variable definitions can use
+ const prefix = join([node.operation, join([node.name, varDefs]), join(node.directives, ' ')], ' '); // Anonymous queries with no directives or variable definitions can use
// the query short form.
+
return (prefix === 'query' ? '' : prefix + ' ') + node.selectionSet;
}
},
@@ -31050,19 +47395,15 @@ const printDocASTReducer = {
alias,
name,
arguments: args,
- nullabilityAssertion,
directives,
selectionSet
}) {
- const prefix = join([wrap('', alias, ': '), name], '');
+ const prefix = wrap('', alias, ': ') + name;
let argsLine = prefix + wrap('(', join(args, ', '), ')');
if (argsLine.length > MAX_LINE_LENGTH) {
argsLine = prefix + wrap('(\n', indent(join(args, '\n')), '\n)');
}
- return join([argsLine,
- // Note: Client Controlled Nullability is experimental and may be
- // changed or removed in the future.
- nullabilityAssertion, wrap(' ', join(directives, ' ')), wrap(' ', selectionSet)]);
+ return join([argsLine, join(directives, ' '), selectionSet], ' ');
}
},
Argument: {
@@ -31071,28 +47412,6 @@ const printDocASTReducer = {
value
}) => name + ': ' + value
},
- // Nullability Modifiers
- ListNullabilityOperator: {
- leave({
- nullabilityAssertion
- }) {
- return join(['[', nullabilityAssertion, ']']);
- }
- },
- NonNullAssertion: {
- leave({
- nullabilityAssertion
- }) {
- return join([nullabilityAssertion, '!']);
- }
- },
- ErrorBoundary: {
- leave({
- nullabilityAssertion
- }) {
- return join([nullabilityAssertion, '?']);
- }
- },
// Fragments
FragmentSpread: {
leave: ({
@@ -31114,8 +47433,8 @@ const printDocASTReducer = {
variableDefinitions,
directives,
selectionSet
- }) =>
- // Note: fragment variable definitions are experimental and may be changed
+ } // Note: fragment variable definitions are experimental and may be changed
+ ) =>
// or removed in the future.
`fragment ${name}${wrap('(', join(variableDefinitions, ', '), ')')} ` + `on ${typeCondition} ${wrap('', join(directives, ' '), ' ')}` + selectionSet
},
@@ -31134,7 +47453,7 @@ const printDocASTReducer = {
leave: ({
value,
block: isBlockString
- }) => isBlockString === true ? (0, _blockString.printBlockString)(value) : (0, _printString.printString)(value)
+ }) => isBlockString ? (0, _blockString.printBlockString)(value) : (0, _printString.printString)(value)
},
BooleanValue: {
leave: ({
@@ -31152,21 +47471,12 @@ const printDocASTReducer = {
ListValue: {
leave: ({
values
- }) => {
- const valuesLine = '[' + join(values, ', ') + ']';
- if (valuesLine.length > MAX_LINE_LENGTH) {
- return '[\n' + indent(join(values, '\n')) + '\n]';
- }
- return valuesLine;
- }
+ }) => '[' + join(values, ', ') + ']'
},
ObjectValue: {
leave: ({
fields
- }) => {
- const fieldsLine = '{ ' + join(fields, ', ') + ' }';
- return fieldsLine.length > MAX_LINE_LENGTH ? block(fields) : fieldsLine;
- }
+ }) => '{' + join(fields, ', ') + '}'
},
ObjectField: {
leave: ({
@@ -31348,6 +47658,7 @@ const printDocASTReducer = {
* Given maybeArray, print an empty string if it is null or empty, otherwise
* print all items together separated by separator if provided
*/
+
function join(maybeArray, separator = '') {
var _maybeArray$filter$jo;
return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter(x => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : '';
@@ -31355,21 +47666,25 @@ function join(maybeArray, separator = '') {
/**
* Given array, print each item on its own line, wrapped in an indented `{ }` block.
*/
+
function block(array) {
return wrap('{\n', indent(join(array, '\n')), '\n}');
}
/**
* If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.
*/
+
function wrap(start, maybeString, end = '') {
return maybeString != null && maybeString !== '' ? start + maybeString + end : '';
}
function indent(str) {
- return wrap(' ', str.replaceAll('\n', '\n '));
+ return wrap(' ', str.replace(/\n/g, '\n '));
}
function hasMultilineItems(maybeArray) {
var _maybeArray$some;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some(str => str.includes('\n'))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
}
@@ -31382,6 +47697,7 @@ function hasMultilineItems(maybeArray) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -31390,6 +47706,7 @@ Object.defineProperty(exports, "__esModule", ({
exports.Source = void 0;
exports.isSource = isSource;
var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
+var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _instanceOf = __webpack_require__(/*! ../jsutils/instanceOf.mjs */ "../../../node_modules/graphql/jsutils/instanceOf.mjs");
/**
* A representation of source input to GraphQL. The `name` and `locationOffset` parameters are
@@ -31403,6 +47720,7 @@ class Source {
line: 1,
column: 1
}) {
+ typeof body === 'string' || (0, _devAssert.devAssert)(false, `Body must be a string. Received: ${(0, _inspect.inspect)(body)}.`);
this.body = body;
this.name = name;
this.locationOffset = locationOffset;
@@ -31431,6 +47749,7 @@ function isSource(source) {
\************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -31446,7 +47765,6 @@ var TokenKind;
TokenKind['SOF'] = '';
TokenKind['EOF'] = '';
TokenKind['BANG'] = '!';
- TokenKind['QUESTION_MARK'] = '?';
TokenKind['DOLLAR'] = '$';
TokenKind['AMP'] = '&';
TokenKind['PAREN_L'] = '(';
@@ -31468,6 +47786,12 @@ var TokenKind;
TokenKind['COMMENT'] = 'Comment';
})(TokenKind || (exports.TokenKind = TokenKind = {}));
+/**
+ * The enum type representing the token kinds values.
+ *
+ * @deprecated Please use `TokenKind`. Will be remove in v17.
+ */
+
/***/ }),
/***/ "../../../node_modules/graphql/language/visitor.mjs":
@@ -31476,6 +47800,7 @@ var TokenKind;
\**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -31483,19 +47808,105 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.BREAK = void 0;
exports.getEnterLeaveForKind = getEnterLeaveForKind;
+exports.getVisitFn = getVisitFn;
exports.visit = visit;
exports.visitInParallel = visitInParallel;
var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _ast = __webpack_require__(/*! ./ast.mjs */ "../../../node_modules/graphql/language/ast.mjs");
var _kinds = __webpack_require__(/*! ./kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
+/**
+ * A visitor is provided to visit, it contains the collection of
+ * relevant functions to be called during the visitor's traversal.
+ */
+
const BREAK = exports.BREAK = Object.freeze({});
+/**
+ * visit() will walk through an AST using a depth-first traversal, calling
+ * the visitor's enter function at each node in the traversal, and calling the
+ * leave function after visiting that node and all of its child nodes.
+ *
+ * By returning different values from the enter and leave functions, the
+ * behavior of the visitor can be altered, including skipping over a sub-tree of
+ * the AST (by returning false), editing the AST by returning a value or null
+ * to remove the value, or to stop the whole traversal by returning BREAK.
+ *
+ * When using visit() to edit an AST, the original AST will not be modified, and
+ * a new version of the AST with the changes applied will be returned from the
+ * visit function.
+ *
+ * ```ts
+ * const editedAST = visit(ast, {
+ * enter(node, key, parent, path, ancestors) {
+ * // @return
+ * // undefined: no action
+ * // false: skip visiting this node
+ * // visitor.BREAK: stop visiting altogether
+ * // null: delete this node
+ * // any value: replace this node with the returned value
+ * },
+ * leave(node, key, parent, path, ancestors) {
+ * // @return
+ * // undefined: no action
+ * // false: no action
+ * // visitor.BREAK: stop visiting altogether
+ * // null: delete this node
+ * // any value: replace this node with the returned value
+ * }
+ * });
+ * ```
+ *
+ * Alternatively to providing enter() and leave() functions, a visitor can
+ * instead provide functions named the same as the kinds of AST nodes, or
+ * enter/leave visitors at a named key, leading to three permutations of the
+ * visitor API:
+ *
+ * 1) Named visitors triggered when entering a node of a specific kind.
+ *
+ * ```ts
+ * visit(ast, {
+ * Kind(node) {
+ * // enter the "Kind" node
+ * }
+ * })
+ * ```
+ *
+ * 2) Named visitors that trigger upon entering and leaving a node of a specific kind.
+ *
+ * ```ts
+ * visit(ast, {
+ * Kind: {
+ * enter(node) {
+ * // enter the "Kind" node
+ * }
+ * leave(node) {
+ * // leave the "Kind" node
+ * }
+ * }
+ * })
+ * ```
+ *
+ * 3) Generic visitors that trigger upon entering and leaving any node.
+ *
+ * ```ts
+ * visit(ast, {
+ * enter(node) {
+ * // enter any node
+ * },
+ * leave(node) {
+ * // leave any node
+ * }
+ * })
+ * ```
+ */
+
function visit(root, visitor, visitorKeys = _ast.QueryDocumentKeys) {
const enterLeaveMap = new Map();
for (const kind of Object.values(_kinds.Kind)) {
enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
}
/* eslint-disable no-undef-init */
+
let stack = undefined;
let inArray = Array.isArray(root);
let keys = [root];
@@ -31507,6 +47918,7 @@ function visit(root, visitor, visitorKeys = _ast.QueryDocumentKeys) {
const path = [];
const ancestors = [];
/* eslint-enable no-undef-init */
+
do {
index++;
const isLeaving = index === keys.length;
@@ -31540,7 +47952,7 @@ function visit(root, visitor, visitorKeys = _ast.QueryDocumentKeys) {
edits = stack.edits;
inArray = stack.inArray;
stack = stack.prev;
- } else if (parent != null) {
+ } else if (parent) {
key = inArray ? index : keys[index];
node = parent[key];
if (node === null || node === undefined) {
@@ -31580,7 +47992,7 @@ function visit(root, visitor, visitorKeys = _ast.QueryDocumentKeys) {
if (isLeaving) {
path.pop();
} else {
- var _visitorKeys$node$kin;
+ var _node$kind;
stack = {
inArray,
index,
@@ -31589,10 +48001,10 @@ function visit(root, visitor, visitorKeys = _ast.QueryDocumentKeys) {
prev: stack
};
inArray = Array.isArray(node);
- keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
index = -1;
edits = [];
- if (parent != null) {
+ if (parent) {
ancestors.push(parent);
}
parent = node;
@@ -31600,7 +48012,7 @@ function visit(root, visitor, visitorKeys = _ast.QueryDocumentKeys) {
} while (stack !== undefined);
if (edits.length !== 0) {
// New root
- return edits.at(-1)[1];
+ return edits[edits.length - 1][1];
}
return root;
}
@@ -31610,6 +48022,7 @@ function visit(root, visitor, visitorKeys = _ast.QueryDocumentKeys) {
*
* If a prior visitor edits a node, no following visitors will see that node.
*/
+
function visitInParallel(visitors) {
const skipping = new Array(visitors.length).fill(null);
const mergedVisitor = Object.create(null);
@@ -31622,7 +48035,7 @@ function visitInParallel(visitors) {
enter,
leave
} = getEnterLeaveForKind(visitors[i], kind);
- hasVisitor ||= enter != null || leave != null;
+ hasVisitor || (hasVisitor = enter != null || leave != null);
enterList[i] = enter;
leaveList[i] = leave;
}
@@ -31670,6 +48083,7 @@ function visitInParallel(visitors) {
/**
* Given a visitor instance and a node kind, return EnterLeaveVisitor for that kind.
*/
+
function getEnterLeaveForKind(visitor, kind) {
const kindVisitor = visitor[kind];
if (typeof kindVisitor === 'object') {
@@ -31681,13 +48095,29 @@ function getEnterLeaveForKind(visitor, kind) {
enter: kindVisitor,
leave: undefined
};
- }
- // { enter() {}, leave() {} }
+ } // { enter() {}, leave() {} }
+
return {
enter: visitor.enter,
leave: visitor.leave
};
}
+/**
+ * Given a visitor instance, if it is leaving or not, and a node kind, return
+ * the function the visitor runtime should call.
+ *
+ * @deprecated Please use `getEnterLeaveForKind` instead. Will be removed in v17
+ */
+
+/* c8 ignore next 8 */
+
+function getVisitFn(visitor, kind, isLeaving) {
+ const {
+ enter,
+ leave
+ } = getEnterLeaveForKind(visitor, kind);
+ return isLeaving ? leave : enter;
+}
/***/ }),
@@ -31697,6 +48127,7 @@ function getEnterLeaveForKind(visitor, kind) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -31704,12 +48135,16 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.assertEnumValueName = assertEnumValueName;
exports.assertName = assertName;
+var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
var _GraphQLError = __webpack_require__(/*! ../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
var _characterClasses = __webpack_require__(/*! ../language/characterClasses.mjs */ "../../../node_modules/graphql/language/characterClasses.mjs");
/**
* Upholds the spec rules about naming.
*/
+
function assertName(name) {
+ name != null || (0, _devAssert.devAssert)(false, 'Must provide name.');
+ typeof name === 'string' || (0, _devAssert.devAssert)(false, 'Expected name to be a string.');
if (name.length === 0) {
throw new _GraphQLError.GraphQLError('Expected name to be a non-empty string.');
}
@@ -31728,6 +48163,7 @@ function assertName(name) {
*
* @internal
*/
+
function assertEnumValueName(name) {
if (name === 'true' || name === 'false' || name === 'null') {
throw new _GraphQLError.GraphQLError(`Enum values cannot be named: ${name}`);
@@ -31743,6 +48179,7 @@ function assertEnumValueName(name) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -31796,6 +48233,7 @@ var _didYouMean = __webpack_require__(/*! ../jsutils/didYouMean.mjs */ "../../..
var _identityFunc = __webpack_require__(/*! ../jsutils/identityFunc.mjs */ "../../../node_modules/graphql/jsutils/identityFunc.mjs");
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _instanceOf = __webpack_require__(/*! ../jsutils/instanceOf.mjs */ "../../../node_modules/graphql/jsutils/instanceOf.mjs");
+var _isObjectLike = __webpack_require__(/*! ../jsutils/isObjectLike.mjs */ "../../../node_modules/graphql/jsutils/isObjectLike.mjs");
var _keyMap = __webpack_require__(/*! ../jsutils/keyMap.mjs */ "../../../node_modules/graphql/jsutils/keyMap.mjs");
var _keyValMap = __webpack_require__(/*! ../jsutils/keyValMap.mjs */ "../../../node_modules/graphql/jsutils/keyValMap.mjs");
var _mapValue = __webpack_require__(/*! ../jsutils/mapValue.mjs */ "../../../node_modules/graphql/jsutils/mapValue.mjs");
@@ -31818,6 +48256,7 @@ function assertType(type) {
/**
* There are predicates for each kind of GraphQL type.
*/
+
function isScalarType(type) {
return (0, _instanceOf.instanceOf)(type, GraphQLScalarType);
}
@@ -31890,6 +48329,10 @@ function assertNonNullType(type) {
}
return type;
}
+/**
+ * These types may be used as input types for arguments and directives.
+ */
+
function isInputType(type) {
return isScalarType(type) || isEnumType(type) || isInputObjectType(type) || isWrappingType(type) && isInputType(type.ofType);
}
@@ -31899,6 +48342,10 @@ function assertInputType(type) {
}
return type;
}
+/**
+ * These types may be used as output types as the result of fields.
+ */
+
function isOutputType(type) {
return isScalarType(type) || isObjectType(type) || isInterfaceType(type) || isUnionType(type) || isEnumType(type) || isWrappingType(type) && isOutputType(type.ofType);
}
@@ -31908,6 +48355,10 @@ function assertOutputType(type) {
}
return type;
}
+/**
+ * These types may describe types which may be leaf values.
+ */
+
function isLeafType(type) {
return isScalarType(type) || isEnumType(type);
}
@@ -31917,6 +48368,10 @@ function assertLeafType(type) {
}
return type;
}
+/**
+ * These types may describe the parent context of a selection set.
+ */
+
function isCompositeType(type) {
return isObjectType(type) || isInterfaceType(type) || isUnionType(type);
}
@@ -31926,6 +48381,10 @@ function assertCompositeType(type) {
}
return type;
}
+/**
+ * These types may describe the parent context of a selection set.
+ */
+
function isAbstractType(type) {
return isInterfaceType(type) || isUnionType(type);
}
@@ -31954,8 +48413,10 @@ function assertAbstractType(type) {
* })
* ```
*/
+
class GraphQLList {
constructor(ofType) {
+ isType(ofType) || (0, _devAssert.devAssert)(false, `Expected ${(0, _inspect.inspect)(ofType)} to be a GraphQL type.`);
this.ofType = ofType;
}
get [Symbol.toStringTag]() {
@@ -31992,6 +48453,7 @@ class GraphQLList {
exports.GraphQLList = GraphQLList;
class GraphQLNonNull {
constructor(ofType) {
+ isNullableType(ofType) || (0, _devAssert.devAssert)(false, `Expected ${(0, _inspect.inspect)(ofType)} to be a GraphQL nullable type.`);
this.ofType = ofType;
}
get [Symbol.toStringTag]() {
@@ -32004,6 +48466,9 @@ class GraphQLNonNull {
return this.toString();
}
}
+/**
+ * These types wrap and modify other types
+ */
exports.GraphQLNonNull = GraphQLNonNull;
function isWrappingType(type) {
return isListType(type) || isNonNullType(type);
@@ -32014,6 +48479,10 @@ function assertWrappingType(type) {
}
return type;
}
+/**
+ * These types can all accept null as a value.
+ */
+
function isNullableType(type) {
return isType(type) && !isNonNullType(type);
}
@@ -32028,6 +48497,10 @@ function getNullableType(type) {
return isNonNullType(type) ? type.ofType : type;
}
}
+/**
+ * These named types do not include modifiers like List or NonNull.
+ */
+
function isNamedType(type) {
return isScalarType(type) || isObjectType(type) || isInterfaceType(type) || isUnionType(type) || isEnumType(type) || isInputObjectType(type);
}
@@ -32046,12 +48519,27 @@ function getNamedType(type) {
return unwrappedType;
}
}
+/**
+ * Used while defining GraphQL types to allow for circular references in
+ * otherwise immutable type definitions.
+ */
+
function resolveReadonlyArrayThunk(thunk) {
return typeof thunk === 'function' ? thunk() : thunk;
}
function resolveObjMapThunk(thunk) {
return typeof thunk === 'function' ? thunk() : thunk;
}
+/**
+ * Custom extensions
+ *
+ * @remarks
+ * Use a unique identifier name for your extension, for example the name of
+ * your library or project. Do not use a shortened identifier as this increases
+ * the risk of conflicts. We recommend you add at most one extension field,
+ * an object which can contain all the values you need.
+ */
+
/**
* Scalar Type Definition
*
@@ -32096,6 +48584,8 @@ class GraphQLScalarType {
this.extensions = (0, _toObjMap.toObjMap)(config.extensions);
this.astNode = config.astNode;
this.extensionASTNodes = (_config$extensionASTN = config.extensionASTNodes) !== null && _config$extensionASTN !== void 0 ? _config$extensionASTN : [];
+ config.specifiedByURL == null || typeof config.specifiedByURL === 'string' || (0, _devAssert.devAssert)(false, `${this.name} must provide "specifiedByURL" as a string, ` + `but got: ${(0, _inspect.inspect)(config.specifiedByURL)}.`);
+ config.serialize == null || typeof config.serialize === 'function' || (0, _devAssert.devAssert)(false, `${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);
if (config.parseLiteral) {
typeof config.parseValue === 'function' && typeof config.parseLiteral === 'function' || (0, _devAssert.devAssert)(false, `${this.name} must provide both "parseValue" and "parseLiteral" functions.`);
}
@@ -32123,6 +48613,7 @@ class GraphQLScalarType {
return this.toString();
}
}
+
/**
* Object Type Definition
*
@@ -32173,10 +48664,9 @@ class GraphQLObjectType {
this.extensions = (0, _toObjMap.toObjMap)(config.extensions);
this.astNode = config.astNode;
this.extensionASTNodes = (_config$extensionASTN2 = config.extensionASTNodes) !== null && _config$extensionASTN2 !== void 0 ? _config$extensionASTN2 : [];
- // prettier-ignore
- // FIXME: blocked by https://github.com/prettier/prettier/issues/14625
- this._fields = defineFieldMap.bind(undefined, config.fields);
- this._interfaces = defineInterfaces.bind(undefined, config.interfaces);
+ this._fields = () => defineFieldMap(config);
+ this._interfaces = () => defineInterfaces(config);
+ config.isTypeOf == null || typeof config.isTypeOf === 'function' || (0, _devAssert.devAssert)(false, `${this.name} must provide "isTypeOf" as a function, ` + `but got: ${(0, _inspect.inspect)(config.isTypeOf)}.`);
}
get [Symbol.toStringTag]() {
return 'GraphQLObjectType';
@@ -32213,14 +48703,21 @@ class GraphQLObjectType {
}
}
exports.GraphQLObjectType = GraphQLObjectType;
-function defineInterfaces(interfaces) {
- return resolveReadonlyArrayThunk(interfaces !== null && interfaces !== void 0 ? interfaces : []);
+function defineInterfaces(config) {
+ var _config$interfaces;
+ const interfaces = resolveReadonlyArrayThunk((_config$interfaces = config.interfaces) !== null && _config$interfaces !== void 0 ? _config$interfaces : []);
+ Array.isArray(interfaces) || (0, _devAssert.devAssert)(false, `${config.name} interfaces must be an Array or a function which returns an Array.`);
+ return interfaces;
}
-function defineFieldMap(fields) {
- const fieldMap = resolveObjMapThunk(fields);
+function defineFieldMap(config) {
+ const fieldMap = resolveObjMapThunk(config.fields);
+ isPlainObj(fieldMap) || (0, _devAssert.devAssert)(false, `${config.name} fields must be an object with field names as keys or a function which returns such an object.`);
return (0, _mapValue.mapValue)(fieldMap, (fieldConfig, fieldName) => {
var _fieldConfig$args;
+ isPlainObj(fieldConfig) || (0, _devAssert.devAssert)(false, `${config.name}.${fieldName} field config must be an object.`);
+ fieldConfig.resolve == null || typeof fieldConfig.resolve === 'function' || (0, _devAssert.devAssert)(false, `${config.name}.${fieldName} field resolver must be a function if ` + `provided, but got: ${(0, _inspect.inspect)(fieldConfig.resolve)}.`);
const argsConfig = (_fieldConfig$args = fieldConfig.args) !== null && _fieldConfig$args !== void 0 ? _fieldConfig$args : {};
+ isPlainObj(argsConfig) || (0, _devAssert.devAssert)(false, `${config.name}.${fieldName} args must be an object with argument names as keys.`);
return {
name: (0, _assertName.assertName)(fieldName),
description: fieldConfig.description,
@@ -32234,8 +48731,8 @@ function defineFieldMap(fields) {
};
});
}
-function defineArguments(args) {
- return Object.entries(args).map(([argName, argConfig]) => ({
+function defineArguments(config) {
+ return Object.entries(config).map(([argName, argConfig]) => ({
name: (0, _assertName.assertName)(argName),
description: argConfig.description,
type: argConfig.type,
@@ -32245,6 +48742,9 @@ function defineArguments(args) {
astNode: argConfig.astNode
}));
}
+function isPlainObj(obj) {
+ return (0, _isObjectLike.isObjectLike)(obj) && !Array.isArray(obj);
+}
function fieldsToFieldsConfig(fields) {
return (0, _mapValue.mapValue)(fields, field => ({
description: field.description,
@@ -32260,6 +48760,7 @@ function fieldsToFieldsConfig(fields) {
/**
* @internal
*/
+
function argsToArgsConfig(args) {
return (0, _keyValMap.keyValMap)(args, arg => arg.name, arg => ({
description: arg.description,
@@ -32273,6 +48774,7 @@ function argsToArgsConfig(args) {
function isRequiredArgument(arg) {
return isNonNullType(arg.type) && arg.defaultValue === undefined;
}
+
/**
* Interface Type Definition
*
@@ -32301,10 +48803,9 @@ class GraphQLInterfaceType {
this.extensions = (0, _toObjMap.toObjMap)(config.extensions);
this.astNode = config.astNode;
this.extensionASTNodes = (_config$extensionASTN3 = config.extensionASTNodes) !== null && _config$extensionASTN3 !== void 0 ? _config$extensionASTN3 : [];
- // prettier-ignore
- // FIXME: blocked by https://github.com/prettier/prettier/issues/14625
- this._fields = defineFieldMap.bind(undefined, config.fields);
- this._interfaces = defineInterfaces.bind(undefined, config.interfaces);
+ this._fields = defineFieldMap.bind(undefined, config);
+ this._interfaces = defineInterfaces.bind(undefined, config);
+ config.resolveType == null || typeof config.resolveType === 'function' || (0, _devAssert.devAssert)(false, `${this.name} must provide "resolveType" as a function, ` + `but got: ${(0, _inspect.inspect)(config.resolveType)}.`);
}
get [Symbol.toStringTag]() {
return 'GraphQLInterfaceType';
@@ -32340,6 +48841,7 @@ class GraphQLInterfaceType {
return this.toString();
}
}
+
/**
* Union Type Definition
*
@@ -32374,7 +48876,8 @@ class GraphQLUnionType {
this.extensions = (0, _toObjMap.toObjMap)(config.extensions);
this.astNode = config.astNode;
this.extensionASTNodes = (_config$extensionASTN4 = config.extensionASTNodes) !== null && _config$extensionASTN4 !== void 0 ? _config$extensionASTN4 : [];
- this._types = defineTypes.bind(undefined, config.types);
+ this._types = defineTypes.bind(undefined, config);
+ config.resolveType == null || typeof config.resolveType === 'function' || (0, _devAssert.devAssert)(false, `${this.name} must provide "resolveType" as a function, ` + `but got: ${(0, _inspect.inspect)(config.resolveType)}.`);
}
get [Symbol.toStringTag]() {
return 'GraphQLUnionType';
@@ -32404,19 +48907,12 @@ class GraphQLUnionType {
}
}
exports.GraphQLUnionType = GraphQLUnionType;
-function defineTypes(types) {
- return resolveReadonlyArrayThunk(types);
-}
-function enumValuesFromConfig(values) {
- return Object.entries(values).map(([valueName, valueConfig]) => ({
- name: (0, _assertName.assertEnumValueName)(valueName),
- description: valueConfig.description,
- value: valueConfig.value !== undefined ? valueConfig.value : valueName,
- deprecationReason: valueConfig.deprecationReason,
- extensions: (0, _toObjMap.toObjMap)(valueConfig.extensions),
- astNode: valueConfig.astNode
- }));
+function defineTypes(config) {
+ const types = resolveReadonlyArrayThunk(config.types);
+ Array.isArray(types) || (0, _devAssert.devAssert)(false, `Must provide Array of types or a function which returns such an array for Union ${config.name}.`);
+ return types;
}
+
/**
* Enum Type Definition
*
@@ -32440,7 +48936,8 @@ function enumValuesFromConfig(values) {
* Note: If a value is not provided in a definition, the name of the enum value
* will be used as its internal value.
*/
-class GraphQLEnumType /* */ {
+class GraphQLEnumType {
+ /* */
constructor(config) {
var _config$extensionASTN5;
this.name = (0, _assertName.assertName)(config.name);
@@ -32448,7 +48945,7 @@ class GraphQLEnumType /* */ {
this.extensions = (0, _toObjMap.toObjMap)(config.extensions);
this.astNode = config.astNode;
this.extensionASTNodes = (_config$extensionASTN5 = config.extensionASTNodes) !== null && _config$extensionASTN5 !== void 0 ? _config$extensionASTN5 : [];
- this._values = typeof config.values === 'function' ? config.values : enumValuesFromConfig(config.values);
+ this._values = typeof config.values === 'function' ? config.values : defineEnumValues(this.name, config.values);
this._valueLookup = null;
this._nameLookup = null;
}
@@ -32457,7 +48954,7 @@ class GraphQLEnumType /* */ {
}
getValues() {
if (typeof this._values === 'function') {
- this._values = enumValuesFromConfig(this._values());
+ this._values = defineEnumValues(this.name, this._values());
}
return this._values;
}
@@ -32467,7 +48964,7 @@ class GraphQLEnumType /* */ {
}
return this._nameLookup[name];
}
- serialize(outputValue /* T */) {
+ serialize(outputValue) {
if (this._valueLookup === null) {
this._valueLookup = new Map(this.getValues().map(enumValue => [enumValue.value, enumValue]));
}
@@ -32477,7 +48974,8 @@ class GraphQLEnumType /* */ {
}
return enumValue.name;
}
- parseValue(inputValue) {
+ parseValue(inputValue) /* T */
+ {
if (typeof inputValue !== 'string') {
const valueStr = (0, _inspect.inspect)(inputValue);
throw new _GraphQLError.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${valueStr}.` + didYouMeanEnumValue(this, valueStr));
@@ -32488,7 +48986,8 @@ class GraphQLEnumType /* */ {
}
return enumValue.value;
}
- parseLiteral(valueNode, _variables) {
+ parseLiteral(valueNode, _variables) /* T */
+ {
// Note: variables will be resolved to a value before calling this function.
if (valueNode.kind !== _kinds.Kind.ENUM) {
const valueStr = (0, _printer.print)(valueNode);
@@ -32535,6 +49034,21 @@ function didYouMeanEnumValue(enumType, unknownValueStr) {
const suggestedValues = (0, _suggestionList.suggestionList)(unknownValueStr, allNames);
return (0, _didYouMean.didYouMean)('the enum value', suggestedValues);
}
+function defineEnumValues(typeName, valueMap) {
+ isPlainObj(valueMap) || (0, _devAssert.devAssert)(false, `${typeName} values must be an object with value names as keys.`);
+ return Object.entries(valueMap).map(([valueName, valueConfig]) => {
+ isPlainObj(valueConfig) || (0, _devAssert.devAssert)(false, `${typeName}.${valueName} must refer to an object with a "value" key ` + `representing an internal value but got: ${(0, _inspect.inspect)(valueConfig)}.`);
+ return {
+ name: (0, _assertName.assertEnumValueName)(valueName),
+ description: valueConfig.description,
+ value: valueConfig.value !== undefined ? valueConfig.value : valueName,
+ deprecationReason: valueConfig.deprecationReason,
+ extensions: (0, _toObjMap.toObjMap)(valueConfig.extensions),
+ astNode: valueConfig.astNode
+ };
+ });
+}
+
/**
* Input Object Type Definition
*
@@ -32565,7 +49079,7 @@ class GraphQLInputObjectType {
this.astNode = config.astNode;
this.extensionASTNodes = (_config$extensionASTN6 = config.extensionASTNodes) !== null && _config$extensionASTN6 !== void 0 ? _config$extensionASTN6 : [];
this.isOneOf = (_config$isOneOf = config.isOneOf) !== null && _config$isOneOf !== void 0 ? _config$isOneOf : false;
- this._fields = defineInputFieldMap.bind(undefined, config.fields);
+ this._fields = defineInputFieldMap.bind(undefined, config);
}
get [Symbol.toStringTag]() {
return 'GraphQLInputObjectType';
@@ -32603,17 +49117,21 @@ class GraphQLInputObjectType {
}
}
exports.GraphQLInputObjectType = GraphQLInputObjectType;
-function defineInputFieldMap(fields) {
- const fieldMap = resolveObjMapThunk(fields);
- return (0, _mapValue.mapValue)(fieldMap, (fieldConfig, fieldName) => ({
- name: (0, _assertName.assertName)(fieldName),
- description: fieldConfig.description,
- type: fieldConfig.type,
- defaultValue: fieldConfig.defaultValue,
- deprecationReason: fieldConfig.deprecationReason,
- extensions: (0, _toObjMap.toObjMap)(fieldConfig.extensions),
- astNode: fieldConfig.astNode
- }));
+function defineInputFieldMap(config) {
+ const fieldMap = resolveObjMapThunk(config.fields);
+ isPlainObj(fieldMap) || (0, _devAssert.devAssert)(false, `${config.name} fields must be an object with field names as keys or a function which returns such an object.`);
+ return (0, _mapValue.mapValue)(fieldMap, (fieldConfig, fieldName) => {
+ !('resolve' in fieldConfig) || (0, _devAssert.devAssert)(false, `${config.name}.${fieldName} field has a resolve property, but Input Types cannot define resolvers.`);
+ return {
+ name: (0, _assertName.assertName)(fieldName),
+ description: fieldConfig.description,
+ type: fieldConfig.type,
+ defaultValue: fieldConfig.defaultValue,
+ deprecationReason: fieldConfig.deprecationReason,
+ extensions: (0, _toObjMap.toObjMap)(fieldConfig.extensions),
+ astNode: fieldConfig.astNode
+ };
+ });
}
function isRequiredInputField(field) {
return isNonNullType(field.type) && field.defaultValue === undefined;
@@ -32627,18 +49145,21 @@ function isRequiredInputField(field) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
-exports.GraphQLStreamDirective = exports.GraphQLSpecifiedByDirective = exports.GraphQLSkipDirective = exports.GraphQLOneOfDirective = exports.GraphQLIncludeDirective = exports.GraphQLDirective = exports.GraphQLDeprecatedDirective = exports.GraphQLDeferDirective = exports.DEFAULT_DEPRECATION_REASON = void 0;
+exports.GraphQLSpecifiedByDirective = exports.GraphQLSkipDirective = exports.GraphQLOneOfDirective = exports.GraphQLIncludeDirective = exports.GraphQLDirective = exports.GraphQLDeprecatedDirective = exports.DEFAULT_DEPRECATION_REASON = void 0;
exports.assertDirective = assertDirective;
exports.isDirective = isDirective;
exports.isSpecifiedDirective = isSpecifiedDirective;
exports.specifiedDirectives = void 0;
+var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _instanceOf = __webpack_require__(/*! ../jsutils/instanceOf.mjs */ "../../../node_modules/graphql/jsutils/instanceOf.mjs");
+var _isObjectLike = __webpack_require__(/*! ../jsutils/isObjectLike.mjs */ "../../../node_modules/graphql/jsutils/isObjectLike.mjs");
var _toObjMap = __webpack_require__(/*! ../jsutils/toObjMap.mjs */ "../../../node_modules/graphql/jsutils/toObjMap.mjs");
var _directiveLocation = __webpack_require__(/*! ../language/directiveLocation.mjs */ "../../../node_modules/graphql/language/directiveLocation.mjs");
var _assertName = __webpack_require__(/*! ./assertName.mjs */ "../../../node_modules/graphql/type/assertName.mjs");
@@ -32647,6 +49168,7 @@ var _scalars = __webpack_require__(/*! ./scalars.mjs */ "../../../node_modules/g
/**
* Test if the given value is a GraphQL directive.
*/
+
function isDirective(directive) {
return (0, _instanceOf.instanceOf)(directive, GraphQLDirective);
}
@@ -32656,6 +49178,16 @@ function assertDirective(directive) {
}
return directive;
}
+/**
+ * Custom extensions
+ *
+ * @remarks
+ * Use a unique identifier name for your extension, for example the name of
+ * your library or project. Do not use a shortened identifier as this increases
+ * the risk of conflicts. We recommend you add at most one extension field,
+ * an object which can contain all the values you need.
+ */
+
/**
* Directives are used by the GraphQL runtime as a way of modifying execution
* behavior. Type system creators will usually not create these directly.
@@ -32669,7 +49201,9 @@ class GraphQLDirective {
this.isRepeatable = (_config$isRepeatable = config.isRepeatable) !== null && _config$isRepeatable !== void 0 ? _config$isRepeatable : false;
this.extensions = (0, _toObjMap.toObjMap)(config.extensions);
this.astNode = config.astNode;
+ Array.isArray(config.locations) || (0, _devAssert.devAssert)(false, `@${config.name} locations must be an Array.`);
const args = (_config$args = config.args) !== null && _config$args !== void 0 ? _config$args : {};
+ (0, _isObjectLike.isObjectLike)(args) && !Array.isArray(args) || (0, _devAssert.devAssert)(false, `@${config.name} args must be an object with argument names as keys.`);
this.args = (0, _definition.defineArguments)(args);
}
get [Symbol.toStringTag]() {
@@ -32693,6 +49227,7 @@ class GraphQLDirective {
return this.toString();
}
}
+
/**
* Used to conditionally include fields or fragments.
*/
@@ -32711,6 +49246,7 @@ const GraphQLIncludeDirective = exports.GraphQLIncludeDirective = new GraphQLDir
/**
* Used to conditionally skip (exclude) fields or fragments.
*/
+
const GraphQLSkipDirective = exports.GraphQLSkipDirective = new GraphQLDirective({
name: 'skip',
description: 'Directs the executor to skip this field or fragment when the `if` argument is true.',
@@ -32722,56 +49258,15 @@ const GraphQLSkipDirective = exports.GraphQLSkipDirective = new GraphQLDirective
}
}
});
-/**
- * Used to conditionally defer fragments.
- */
-const GraphQLDeferDirective = exports.GraphQLDeferDirective = new GraphQLDirective({
- name: 'defer',
- description: 'Directs the executor to defer this fragment when the `if` argument is true or undefined.',
- locations: [_directiveLocation.DirectiveLocation.FRAGMENT_SPREAD, _directiveLocation.DirectiveLocation.INLINE_FRAGMENT],
- args: {
- if: {
- type: new _definition.GraphQLNonNull(_scalars.GraphQLBoolean),
- description: 'Deferred when true or undefined.',
- defaultValue: true
- },
- label: {
- type: _scalars.GraphQLString,
- description: 'Unique name'
- }
- }
-});
-/**
- * Used to conditionally stream list fields.
- */
-const GraphQLStreamDirective = exports.GraphQLStreamDirective = new GraphQLDirective({
- name: 'stream',
- description: 'Directs the executor to stream plural fields when the `if` argument is true or undefined.',
- locations: [_directiveLocation.DirectiveLocation.FIELD],
- args: {
- if: {
- type: new _definition.GraphQLNonNull(_scalars.GraphQLBoolean),
- description: 'Stream when true or undefined.',
- defaultValue: true
- },
- label: {
- type: _scalars.GraphQLString,
- description: 'Unique name'
- },
- initialCount: {
- defaultValue: 0,
- type: _scalars.GraphQLInt,
- description: 'Number of items to return immediately'
- }
- }
-});
/**
* Constant string used for default reason for a deprecation.
*/
+
const DEFAULT_DEPRECATION_REASON = exports.DEFAULT_DEPRECATION_REASON = 'No longer supported';
/**
* Used to declare element of a GraphQL schema as deprecated.
*/
+
const GraphQLDeprecatedDirective = exports.GraphQLDeprecatedDirective = new GraphQLDirective({
name: 'deprecated',
description: 'Marks an element of a GraphQL schema as no longer supported.',
@@ -32787,6 +49282,7 @@ const GraphQLDeprecatedDirective = exports.GraphQLDeprecatedDirective = new Grap
/**
* Used to provide a URL for specifying the behavior of custom scalar definitions.
*/
+
const GraphQLSpecifiedByDirective = exports.GraphQLSpecifiedByDirective = new GraphQLDirective({
name: 'specifiedBy',
description: 'Exposes a URL that specifies the behavior of this scalar.',
@@ -32801,6 +49297,7 @@ const GraphQLSpecifiedByDirective = exports.GraphQLSpecifiedByDirective = new Gr
/**
* Used to indicate an Input Object is a OneOf Input Object.
*/
+
const GraphQLOneOfDirective = exports.GraphQLOneOfDirective = new GraphQLDirective({
name: 'oneOf',
description: 'Indicates exactly one field must be supplied and this field must not be `null`.',
@@ -32810,6 +49307,7 @@ const GraphQLOneOfDirective = exports.GraphQLOneOfDirective = new GraphQLDirecti
/**
* The full list of specified directives.
*/
+
const specifiedDirectives = exports.specifiedDirectives = Object.freeze([GraphQLIncludeDirective, GraphQLSkipDirective, GraphQLDeprecatedDirective, GraphQLSpecifiedByDirective, GraphQLOneOfDirective]);
function isSpecifiedDirective(directive) {
return specifiedDirectives.some(({
@@ -32825,6 +49323,7 @@ function isSpecifiedDirective(directive) {
\****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -32854,12 +49353,6 @@ Object.defineProperty(exports, "GraphQLBoolean", ({
return _scalars.GraphQLBoolean;
}
}));
-Object.defineProperty(exports, "GraphQLDeferDirective", ({
- enumerable: true,
- get: function () {
- return _directives.GraphQLDeferDirective;
- }
-}));
Object.defineProperty(exports, "GraphQLDeprecatedDirective", ({
enumerable: true,
get: function () {
@@ -32962,12 +49455,6 @@ Object.defineProperty(exports, "GraphQLSpecifiedByDirective", ({
return _directives.GraphQLSpecifiedByDirective;
}
}));
-Object.defineProperty(exports, "GraphQLStreamDirective", ({
- enumerable: true,
- get: function () {
- return _directives.GraphQLStreamDirective;
- }
-}));
Object.defineProperty(exports, "GraphQLString", ({
enumerable: true,
get: function () {
@@ -33392,6 +49879,7 @@ var _assertName = __webpack_require__(/*! ./assertName.mjs */ "../../../node_mod
\************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -33474,7 +49962,7 @@ const __Directive = exports.__Directive = new _definition.GraphQLObjectType({
resolve(field, {
includeDeprecated
}) {
- return includeDeprecated === true ? field.args : field.args.filter(arg => arg.deprecationReason == null);
+ return includeDeprecated ? field.args : field.args.filter(arg => arg.deprecationReason == null);
}
}
})
@@ -33594,6 +50082,7 @@ const __Type = exports.__Type = new _definition.GraphQLObjectType({
}
/* c8 ignore next 3 */
// Not reachable, all possible types have been considered)
+
false || (0, _invariant.invariant)(false, `Unexpected type: "${(0, _inspect.inspect)(type)}".`);
}
},
@@ -33603,9 +50092,8 @@ const __Type = exports.__Type = new _definition.GraphQLObjectType({
},
description: {
type: _scalars.GraphQLString,
- resolve: type =>
- // FIXME: add test case
- /* c8 ignore next */
+ resolve: (type // FIXME: add test case
+ ) => /* c8 ignore next */
'description' in type ? type.description : undefined
},
specifiedByURL: {
@@ -33625,7 +50113,7 @@ const __Type = exports.__Type = new _definition.GraphQLObjectType({
}) {
if ((0, _definition.isObjectType)(type) || (0, _definition.isInterfaceType)(type)) {
const fields = Object.values(type.getFields());
- return includeDeprecated === true ? fields : fields.filter(field => field.deprecationReason == null);
+ return includeDeprecated ? fields : fields.filter(field => field.deprecationReason == null);
}
}
},
@@ -33660,7 +50148,7 @@ const __Type = exports.__Type = new _definition.GraphQLObjectType({
}) {
if ((0, _definition.isEnumType)(type)) {
const values = type.getValues();
- return includeDeprecated === true ? values : values.filter(field => field.deprecationReason == null);
+ return includeDeprecated ? values : values.filter(field => field.deprecationReason == null);
}
}
},
@@ -33677,7 +50165,7 @@ const __Type = exports.__Type = new _definition.GraphQLObjectType({
}) {
if ((0, _definition.isInputObjectType)(type)) {
const values = Object.values(type.getFields());
- return includeDeprecated === true ? values : values.filter(field => field.deprecationReason == null);
+ return includeDeprecated ? values : values.filter(field => field.deprecationReason == null);
}
}
},
@@ -33718,7 +50206,7 @@ const __Field = exports.__Field = new _definition.GraphQLObjectType({
resolve(field, {
includeDeprecated
}) {
- return includeDeprecated === true ? field.args : field.args.filter(arg => arg.deprecationReason == null);
+ return includeDeprecated ? field.args : field.args.filter(arg => arg.deprecationReason == null);
}
},
type: {
@@ -33848,6 +50336,7 @@ const __TypeKind = exports.__TypeKind = new _definition.GraphQLEnumType({
* Note that these are GraphQLField and not GraphQLFieldConfig,
* so the format for args is different.
*/
+
const SchemaMetaFieldDef = exports.SchemaMetaFieldDef = {
name: '__schema',
type: new _definition.GraphQLNonNull(__Schema),
@@ -33909,6 +50398,7 @@ function isIntrospectionType(type) {
\******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -33927,11 +50417,13 @@ var _definition = __webpack_require__(/*! ./definition.mjs */ "../../../node_mod
* Maximum possible Int value as per GraphQL Spec (32-bit signed integer).
* n.b. This differs from JavaScript's numbers that are IEEE 754 doubles safe up-to 2^53 - 1
* */
+
const GRAPHQL_MAX_INT = exports.GRAPHQL_MAX_INT = 2147483647;
/**
* Minimum possible Int value as per GraphQL Spec (32-bit signed integer).
* n.b. This differs from JavaScript's numbers that are IEEE 754 doubles safe starting at -(2^53 - 1)
* */
+
const GRAPHQL_MIN_INT = exports.GRAPHQL_MIN_INT = -2147483648;
const GraphQLInt = exports.GraphQLInt = new _definition.GraphQLScalarType({
name: 'Int',
@@ -34002,9 +50494,7 @@ const GraphQLFloat = exports.GraphQLFloat = new _definition.GraphQLScalarType({
},
parseLiteral(valueNode) {
if (valueNode.kind !== _kinds.Kind.FLOAT && valueNode.kind !== _kinds.Kind.INT) {
- throw new _GraphQLError.GraphQLError(`Float cannot represent non numeric value: ${(0, _printer.print)(valueNode)}`, {
- nodes: valueNode
- });
+ throw new _GraphQLError.GraphQLError(`Float cannot represent non numeric value: ${(0, _printer.print)(valueNode)}`, valueNode);
}
return parseFloat(valueNode.value);
}
@@ -34013,9 +50503,9 @@ const GraphQLString = exports.GraphQLString = new _definition.GraphQLScalarType(
name: 'String',
description: 'The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.',
serialize(outputValue) {
- const coercedValue = serializeObject(outputValue);
- // Serialize string, boolean and number values to a string, but do not
+ const coercedValue = serializeObject(outputValue); // Serialize string, boolean and number values to a string, but do not
// attempt to coerce object, function, symbol, or other types as strings.
+
if (typeof coercedValue === 'string') {
return coercedValue;
}
@@ -34106,10 +50596,10 @@ function isSpecifiedScalarType(type) {
return specifiedScalarTypes.some(({
name
}) => type.name === name);
-}
-// Support serializing objects with custom valueOf() or toJSON() functions -
+} // Support serializing objects with custom valueOf() or toJSON() functions -
// a common way to represent a complex value which can be represented as
// a string (ex: MongoDB id objects).
+
function serializeObject(outputValue) {
if ((0, _isObjectLike.isObjectLike)(outputValue)) {
if (typeof outputValue.valueOf === 'function') {
@@ -34133,6 +50623,7 @@ function serializeObject(outputValue) {
\*****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -34141,8 +50632,10 @@ Object.defineProperty(exports, "__esModule", ({
exports.GraphQLSchema = void 0;
exports.assertSchema = assertSchema;
exports.isSchema = isSchema;
+var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _instanceOf = __webpack_require__(/*! ../jsutils/instanceOf.mjs */ "../../../node_modules/graphql/jsutils/instanceOf.mjs");
+var _isObjectLike = __webpack_require__(/*! ../jsutils/isObjectLike.mjs */ "../../../node_modules/graphql/jsutils/isObjectLike.mjs");
var _toObjMap = __webpack_require__(/*! ../jsutils/toObjMap.mjs */ "../../../node_modules/graphql/jsutils/toObjMap.mjs");
var _ast = __webpack_require__(/*! ../language/ast.mjs */ "../../../node_modules/graphql/language/ast.mjs");
var _definition = __webpack_require__(/*! ./definition.mjs */ "../../../node_modules/graphql/type/definition.mjs");
@@ -34151,6 +50644,7 @@ var _introspection = __webpack_require__(/*! ./introspection.mjs */ "../../../no
/**
* Test if the given value is a GraphQL schema.
*/
+
function isSchema(schema) {
return (0, _instanceOf.instanceOf)(schema, GraphQLSchema);
}
@@ -34160,6 +50654,16 @@ function assertSchema(schema) {
}
return schema;
}
+/**
+ * Custom extensions
+ *
+ * @remarks
+ * Use a unique identifier name for your extension, for example the name of
+ * your library or project. Do not use a shortened identifier as this increases
+ * the risk of conflicts. We recommend you add at most one extension field,
+ * an object which can contain all the values you need.
+ */
+
/**
* Schema Definition
*
@@ -34229,22 +50733,28 @@ function assertSchema(schema) {
* ```
*/
class GraphQLSchema {
+ // Used as a cache for validateSchema().
constructor(config) {
var _config$extensionASTN, _config$directives;
+
// If this schema was built from a source known to be valid, then it may be
// marked with assumeValid to avoid an additional type system validation.
- this.__validationErrors = config.assumeValid === true ? [] : undefined;
+ this.__validationErrors = config.assumeValid === true ? [] : undefined; // Check for common mistakes during construction to produce early errors.
+
+ (0, _isObjectLike.isObjectLike)(config) || (0, _devAssert.devAssert)(false, 'Must provide configuration object.');
+ !config.types || Array.isArray(config.types) || (0, _devAssert.devAssert)(false, `"types" must be Array if provided but got: ${(0, _inspect.inspect)(config.types)}.`);
+ !config.directives || Array.isArray(config.directives) || (0, _devAssert.devAssert)(false, '"directives" must be Array if provided but got: ' + `${(0, _inspect.inspect)(config.directives)}.`);
this.description = config.description;
this.extensions = (0, _toObjMap.toObjMap)(config.extensions);
this.astNode = config.astNode;
this.extensionASTNodes = (_config$extensionASTN = config.extensionASTNodes) !== null && _config$extensionASTN !== void 0 ? _config$extensionASTN : [];
this._queryType = config.query;
this._mutationType = config.mutation;
- this._subscriptionType = config.subscription;
- // Provide specified directives (e.g. @include and @skip) by default.
- this._directives = (_config$directives = config.directives) !== null && _config$directives !== void 0 ? _config$directives : _directives.specifiedDirectives;
- // To preserve order of user-provided types, we add first to add them to
+ this._subscriptionType = config.subscription; // Provide specified directives (e.g. @include and @skip) by default.
+
+ this._directives = (_config$directives = config.directives) !== null && _config$directives !== void 0 ? _config$directives : _directives.specifiedDirectives; // To preserve order of user-provided types, we add first to add them to
// the set of "collected" types, so `collectReferencedTypes` ignore them.
+
const allReferencedTypes = new Set(config.types);
if (config.types != null) {
for (const type of config.types) {
@@ -34271,17 +50781,18 @@ class GraphQLSchema {
}
}
}
- collectReferencedTypes(_introspection.__Schema, allReferencedTypes);
- // Storing the resulting map for reference by the schema.
+ collectReferencedTypes(_introspection.__Schema, allReferencedTypes); // Storing the resulting map for reference by the schema.
+
this._typeMap = Object.create(null);
- this._subTypeMap = new Map();
- // Keep track of all implementations by interface name.
+ this._subTypeMap = Object.create(null); // Keep track of all implementations by interface name.
+
this._implementationsMap = Object.create(null);
for (const namedType of allReferencedTypes) {
if (namedType == null) {
continue;
}
const typeName = namedType.name;
+ typeName || (0, _devAssert.devAssert)(false, 'One of the provided types for building the Schema is missing a name.');
if (this._typeMap[typeName] !== undefined) {
throw new Error(`Schema must contain uniquely named types but contains multiple types named "${typeName}".`);
}
@@ -34356,17 +50867,25 @@ class GraphQLSchema {
};
}
isSubType(abstractType, maybeSubType) {
- let set = this._subTypeMap.get(abstractType);
- if (set === undefined) {
+ let map = this._subTypeMap[abstractType.name];
+ if (map === undefined) {
+ map = Object.create(null);
if ((0, _definition.isUnionType)(abstractType)) {
- set = new Set(abstractType.getTypes());
+ for (const type of abstractType.getTypes()) {
+ map[type.name] = true;
+ }
} else {
const implementations = this.getImplementations(abstractType);
- set = new Set([...implementations.objects, ...implementations.interfaces]);
+ for (const type of implementations.objects) {
+ map[type.name] = true;
+ }
+ for (const type of implementations.interfaces) {
+ map[type.name] = true;
+ }
}
- this._subTypeMap.set(abstractType, set);
+ this._subTypeMap[abstractType.name] = map;
}
- return set.has(maybeSubType);
+ return map[maybeSubType.name] !== undefined;
}
getDirectives() {
return this._directives;
@@ -34374,33 +50893,6 @@ class GraphQLSchema {
getDirective(name) {
return this.getDirectives().find(directive => directive.name === name);
}
- /**
- * This method looks up the field on the given type definition.
- * It has special casing for the three introspection fields, `__schema`,
- * `__type` and `__typename`.
- *
- * `__typename` is special because it can always be queried as a field, even
- * in situations where no other fields are allowed, like on a Union.
- *
- * `__schema` and `__type` could get automatically added to the query type,
- * but that would require mutating type definitions, which would cause issues.
- */
- getField(parentType, fieldName) {
- switch (fieldName) {
- case _introspection.SchemaMetaFieldDef.name:
- return this.getQueryType() === parentType ? _introspection.SchemaMetaFieldDef : undefined;
- case _introspection.TypeMetaFieldDef.name:
- return this.getQueryType() === parentType ? _introspection.TypeMetaFieldDef : undefined;
- case _introspection.TypeNameMetaFieldDef.name:
- return _introspection.TypeNameMetaFieldDef;
- }
- // this function is part "hot" path inside executor and check presence
- // of 'getFields' is faster than to use `!isUnionType`
- if ('getFields' in parentType) {
- return parentType.getFields()[fieldName];
- }
- return undefined;
- }
toConfig() {
return {
description: this.description,
@@ -34452,6 +50944,7 @@ function collectReferencedTypes(type, typeSet) {
\*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -34459,9 +50952,6 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.assertValidSchema = assertValidSchema;
exports.validateSchema = validateSchema;
-var _AccumulatorMap = __webpack_require__(/*! ../jsutils/AccumulatorMap.mjs */ "../../../node_modules/graphql/jsutils/AccumulatorMap.mjs");
-var _capitalize = __webpack_require__(/*! ../jsutils/capitalize.mjs */ "../../../node_modules/graphql/jsutils/capitalize.mjs");
-var _formatList = __webpack_require__(/*! ../jsutils/formatList.mjs */ "../../../node_modules/graphql/jsutils/formatList.mjs");
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _GraphQLError = __webpack_require__(/*! ../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
var _ast = __webpack_require__(/*! ../language/ast.mjs */ "../../../node_modules/graphql/language/ast.mjs");
@@ -34477,20 +50967,21 @@ var _schema = __webpack_require__(/*! ./schema.mjs */ "../../../node_modules/gra
* Validation runs synchronously, returning an array of encountered errors, or
* an empty array if no errors were encountered and the Schema is valid.
*/
+
function validateSchema(schema) {
// First check to ensure the provided value is in fact a GraphQLSchema.
- (0, _schema.assertSchema)(schema);
- // If this Schema has already been validated, return the previous results.
+ (0, _schema.assertSchema)(schema); // If this Schema has already been validated, return the previous results.
+
if (schema.__validationErrors) {
return schema.__validationErrors;
- }
- // Validate the schema, producing a list of errors.
+ } // Validate the schema, producing a list of errors.
+
const context = new SchemaValidationContext(schema);
validateRootTypes(context);
validateDirectives(context);
- validateTypes(context);
- // Persist the results of validation before returning to ensure validation
+ validateTypes(context); // Persist the results of validation before returning to ensure validation
// does not run multiple times for this schema.
+
const errors = context.getErrors();
schema.__validationErrors = errors;
return errors;
@@ -34499,6 +50990,7 @@ function validateSchema(schema) {
* Utility function which asserts a schema is valid by throwing an error if
* it is invalid.
*/
+
function assertValidSchema(schema) {
const errors = validateSchema(schema);
if (errors.length !== 0) {
@@ -34522,28 +51014,22 @@ class SchemaValidationContext {
}
function validateRootTypes(context) {
const schema = context.schema;
- if (schema.getQueryType() == null) {
+ const queryType = schema.getQueryType();
+ if (!queryType) {
context.reportError('Query root type must be provided.', schema.astNode);
+ } else if (!(0, _definition.isObjectType)(queryType)) {
+ var _getOperationTypeNode;
+ context.reportError(`Query root type must be Object type, it cannot be ${(0, _inspect.inspect)(queryType)}.`, (_getOperationTypeNode = getOperationTypeNode(schema, _ast.OperationTypeNode.QUERY)) !== null && _getOperationTypeNode !== void 0 ? _getOperationTypeNode : queryType.astNode);
}
- const rootTypesMap = new _AccumulatorMap.AccumulatorMap();
- for (const operationType of Object.values(_ast.OperationTypeNode)) {
- const rootType = schema.getRootType(operationType);
- if (rootType != null) {
- if (!(0, _definition.isObjectType)(rootType)) {
- var _getOperationTypeNode;
- const operationTypeStr = (0, _capitalize.capitalize)(operationType);
- const rootTypeStr = (0, _inspect.inspect)(rootType);
- context.reportError(operationType === _ast.OperationTypeNode.QUERY ? `${operationTypeStr} root type must be Object type, it cannot be ${rootTypeStr}.` : `${operationTypeStr} root type must be Object type if provided, it cannot be ${rootTypeStr}.`, (_getOperationTypeNode = getOperationTypeNode(schema, operationType)) !== null && _getOperationTypeNode !== void 0 ? _getOperationTypeNode : rootType.astNode);
- } else {
- rootTypesMap.add(rootType, operationType);
- }
- }
+ const mutationType = schema.getMutationType();
+ if (mutationType && !(0, _definition.isObjectType)(mutationType)) {
+ var _getOperationTypeNode2;
+ context.reportError('Mutation root type must be Object type if provided, it cannot be ' + `${(0, _inspect.inspect)(mutationType)}.`, (_getOperationTypeNode2 = getOperationTypeNode(schema, _ast.OperationTypeNode.MUTATION)) !== null && _getOperationTypeNode2 !== void 0 ? _getOperationTypeNode2 : mutationType.astNode);
}
- for (const [rootType, operationTypes] of rootTypesMap) {
- if (operationTypes.length > 1) {
- const operationList = (0, _formatList.andList)(operationTypes);
- context.reportError(`All root types must be different, "${rootType.name}" type is used as ${operationList} root types.`, operationTypes.map(operationType => getOperationTypeNode(schema, operationType)));
- }
+ const subscriptionType = schema.getSubscriptionType();
+ if (subscriptionType && !(0, _definition.isObjectType)(subscriptionType)) {
+ var _getOperationTypeNode3;
+ context.reportError('Subscription root type must be Object type if provided, it cannot be ' + `${(0, _inspect.inspect)(subscriptionType)}.`, (_getOperationTypeNode3 = getOperationTypeNode(schema, _ast.OperationTypeNode.SUBSCRIPTION)) !== null && _getOperationTypeNode3 !== void 0 ? _getOperationTypeNode3 : subscriptionType.astNode);
}
}
function getOperationTypeNode(schema, operation) {
@@ -34552,7 +51038,9 @@ function getOperationTypeNode(schema, operation) {
// FIXME: https://github.com/graphql/graphql-js/issues/2203
schemaNode => {
var _schemaNode$operation;
- return /* c8 ignore next */(_schemaNode$operation = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.operationTypes) !== null && _schemaNode$operation !== void 0 ? _schemaNode$operation : [];
+ return /* c8 ignore next */(
+ (_schemaNode$operation = schemaNode === null || schemaNode === void 0 ? void 0 : schemaNode.operationTypes) !== null && _schemaNode$operation !== void 0 ? _schemaNode$operation : []
+ );
}).find(operationNode => operationNode.operation === operation)) === null || _flatMap$find === void 0 ? void 0 : _flatMap$find.type;
}
function validateDirectives(context) {
@@ -34561,17 +51049,15 @@ function validateDirectives(context) {
if (!(0, _directives.isDirective)(directive)) {
context.reportError(`Expected directive but got: ${(0, _inspect.inspect)(directive)}.`, directive === null || directive === void 0 ? void 0 : directive.astNode);
continue;
- }
- // Ensure they are named correctly.
- validateName(context, directive);
- if (directive.locations.length === 0) {
- context.reportError(`Directive @${directive.name} must include 1 or more locations.`, directive.astNode);
- }
+ } // Ensure they are named correctly.
+
+ validateName(context, directive); // TODO: Ensure proper locations.
// Ensure the arguments are valid.
+
for (const arg of directive.args) {
// Ensure they are named correctly.
- validateName(context, arg);
- // Ensure the type is an input type.
+ validateName(context, arg); // Ensure the type is an input type.
+
if (!(0, _definition.isInputType)(arg.type)) {
context.reportError(`The type of @${directive.name}(${arg.name}:) must be Input Type ` + `but got: ${(0, _inspect.inspect)(arg.type)}.`, arg.astNode);
}
@@ -34596,20 +51082,20 @@ function validateTypes(context) {
if (!(0, _definition.isNamedType)(type)) {
context.reportError(`Expected GraphQL named type but got: ${(0, _inspect.inspect)(type)}.`, type.astNode);
continue;
- }
- // Ensure it is named correctly (excluding introspection types).
+ } // Ensure it is named correctly (excluding introspection types).
+
if (!(0, _introspection.isIntrospectionType)(type)) {
validateName(context, type);
}
if ((0, _definition.isObjectType)(type)) {
// Ensure fields are valid
- validateFields(context, type);
- // Ensure objects implement the interfaces they claim to.
+ validateFields(context, type); // Ensure objects implement the interfaces they claim to.
+
validateInterfaces(context, type);
} else if ((0, _definition.isInterfaceType)(type)) {
// Ensure fields are valid.
- validateFields(context, type);
- // Ensure interfaces implement the interfaces they claim to.
+ validateFields(context, type); // Ensure interfaces implement the interfaces they claim to.
+
validateInterfaces(context, type);
} else if ((0, _definition.isUnionType)(type)) {
// Ensure Unions include valid member types.
@@ -34619,32 +51105,32 @@ function validateTypes(context) {
validateEnumValues(context, type);
} else if ((0, _definition.isInputObjectType)(type)) {
// Ensure Input Object fields are valid.
- validateInputFields(context, type);
- // Ensure Input Objects do not contain non-nullable circular references
+ validateInputFields(context, type); // Ensure Input Objects do not contain non-nullable circular references
+
validateInputObjectCircularRefs(type);
}
}
}
function validateFields(context, type) {
- const fields = Object.values(type.getFields());
- // Objects and Interfaces both must define one or more fields.
+ const fields = Object.values(type.getFields()); // Objects and Interfaces both must define one or more fields.
+
if (fields.length === 0) {
context.reportError(`Type ${type.name} must define one or more fields.`, [type.astNode, ...type.extensionASTNodes]);
}
for (const field of fields) {
// Ensure they are named correctly.
- validateName(context, field);
- // Ensure the type is an output type
+ validateName(context, field); // Ensure the type is an output type
+
if (!(0, _definition.isOutputType)(field.type)) {
var _field$astNode;
context.reportError(`The type of ${type.name}.${field.name} must be Output Type ` + `but got: ${(0, _inspect.inspect)(field.type)}.`, (_field$astNode = field.astNode) === null || _field$astNode === void 0 ? void 0 : _field$astNode.type);
- }
- // Ensure the arguments are valid
+ } // Ensure the arguments are valid
+
for (const arg of field.args) {
- const argName = arg.name;
- // Ensure they are named correctly.
- validateName(context, arg);
- // Ensure the type is an input type
+ const argName = arg.name; // Ensure they are named correctly.
+
+ validateName(context, arg); // Ensure the type is an input type
+
if (!(0, _definition.isInputType)(arg.type)) {
var _arg$astNode2;
context.reportError(`The type of ${type.name}.${field.name}(${argName}:) must be Input ` + `Type but got: ${(0, _inspect.inspect)(arg.type)}.`, (_arg$astNode2 = arg.astNode) === null || _arg$astNode2 === void 0 ? void 0 : _arg$astNode2.type);
@@ -34657,7 +51143,7 @@ function validateFields(context, type) {
}
}
function validateInterfaces(context, type) {
- const ifaceTypeNames = new Set();
+ const ifaceTypeNames = Object.create(null);
for (const iface of type.getInterfaces()) {
if (!(0, _definition.isInterfaceType)(iface)) {
context.reportError(`Type ${(0, _inspect.inspect)(type)} must only implement Interface types, ` + `it cannot implement ${(0, _inspect.inspect)(iface)}.`, getAllImplementsInterfaceNodes(type, iface));
@@ -34667,51 +51153,50 @@ function validateInterfaces(context, type) {
context.reportError(`Type ${type.name} cannot implement itself because it would create a circular reference.`, getAllImplementsInterfaceNodes(type, iface));
continue;
}
- if (ifaceTypeNames.has(iface.name)) {
+ if (ifaceTypeNames[iface.name]) {
context.reportError(`Type ${type.name} can only implement ${iface.name} once.`, getAllImplementsInterfaceNodes(type, iface));
continue;
}
- ifaceTypeNames.add(iface.name);
+ ifaceTypeNames[iface.name] = true;
validateTypeImplementsAncestors(context, type, iface);
validateTypeImplementsInterface(context, type, iface);
}
}
function validateTypeImplementsInterface(context, type, iface) {
- const typeFieldMap = type.getFields();
- // Assert each interface field is implemented.
+ const typeFieldMap = type.getFields(); // Assert each interface field is implemented.
+
for (const ifaceField of Object.values(iface.getFields())) {
const fieldName = ifaceField.name;
- const typeField = typeFieldMap[fieldName];
- // Assert interface field exists on type.
- if (typeField == null) {
+ const typeField = typeFieldMap[fieldName]; // Assert interface field exists on type.
+
+ if (!typeField) {
context.reportError(`Interface field ${iface.name}.${fieldName} expected but ${type.name} does not provide it.`, [ifaceField.astNode, type.astNode, ...type.extensionASTNodes]);
continue;
- }
- // Assert interface field type is satisfied by type field type, by being
+ } // Assert interface field type is satisfied by type field type, by being
// a valid subtype. (covariant)
+
if (!(0, _typeComparators.isTypeSubTypeOf)(context.schema, typeField.type, ifaceField.type)) {
var _ifaceField$astNode, _typeField$astNode;
context.reportError(`Interface field ${iface.name}.${fieldName} expects type ` + `${(0, _inspect.inspect)(ifaceField.type)} but ${type.name}.${fieldName} ` + `is type ${(0, _inspect.inspect)(typeField.type)}.`, [(_ifaceField$astNode = ifaceField.astNode) === null || _ifaceField$astNode === void 0 ? void 0 : _ifaceField$astNode.type, (_typeField$astNode = typeField.astNode) === null || _typeField$astNode === void 0 ? void 0 : _typeField$astNode.type]);
- }
- // Assert each interface field arg is implemented.
+ } // Assert each interface field arg is implemented.
+
for (const ifaceArg of ifaceField.args) {
const argName = ifaceArg.name;
- const typeArg = typeField.args.find(arg => arg.name === argName);
- // Assert interface field arg exists on object field.
+ const typeArg = typeField.args.find(arg => arg.name === argName); // Assert interface field arg exists on object field.
+
if (!typeArg) {
context.reportError(`Interface field argument ${iface.name}.${fieldName}(${argName}:) expected but ${type.name}.${fieldName} does not provide it.`, [ifaceArg.astNode, typeField.astNode]);
continue;
- }
- // Assert interface field arg type matches object field arg type.
+ } // Assert interface field arg type matches object field arg type.
// (invariant)
// TODO: change to contravariant?
+
if (!(0, _typeComparators.isEqualType)(ifaceArg.type, typeArg.type)) {
var _ifaceArg$astNode, _typeArg$astNode;
context.reportError(`Interface field argument ${iface.name}.${fieldName}(${argName}:) ` + `expects type ${(0, _inspect.inspect)(ifaceArg.type)} but ` + `${type.name}.${fieldName}(${argName}:) is type ` + `${(0, _inspect.inspect)(typeArg.type)}.`, [(_ifaceArg$astNode = ifaceArg.astNode) === null || _ifaceArg$astNode === void 0 ? void 0 : _ifaceArg$astNode.type, (_typeArg$astNode = typeArg.astNode) === null || _typeArg$astNode === void 0 ? void 0 : _typeArg$astNode.type]);
- }
- // TODO: validate default values?
- }
- // Assert additional arguments must not be required.
+ } // TODO: validate default values?
+ } // Assert additional arguments must not be required.
+
for (const typeArg of typeField.args) {
const argName = typeArg.name;
const ifaceArg = ifaceField.args.find(arg => arg.name === argName);
@@ -34734,13 +51219,13 @@ function validateUnionMembers(context, union) {
if (memberTypes.length === 0) {
context.reportError(`Union type ${union.name} must define one or more member types.`, [union.astNode, ...union.extensionASTNodes]);
}
- const includedTypeNames = new Set();
+ const includedTypeNames = Object.create(null);
for (const memberType of memberTypes) {
- if (includedTypeNames.has(memberType.name)) {
+ if (includedTypeNames[memberType.name]) {
context.reportError(`Union type ${union.name} can only include type ${memberType.name} once.`, getUnionMemberTypeNodes(union, memberType.name));
continue;
}
- includedTypeNames.add(memberType.name);
+ includedTypeNames[memberType.name] = true;
if (!(0, _definition.isObjectType)(memberType)) {
context.reportError(`Union type ${union.name} can only include Object types, ` + `it cannot include ${(0, _inspect.inspect)(memberType)}.`, getUnionMemberTypeNodes(union, String(memberType)));
}
@@ -34760,12 +51245,12 @@ function validateInputFields(context, inputObj) {
const fields = Object.values(inputObj.getFields());
if (fields.length === 0) {
context.reportError(`Input Object type ${inputObj.name} must define one or more fields.`, [inputObj.astNode, ...inputObj.extensionASTNodes]);
- }
- // Ensure the arguments are valid
+ } // Ensure the arguments are valid
+
for (const field of fields) {
// Ensure they are named correctly.
- validateName(context, field);
- // Ensure the type is an input type
+ validateName(context, field); // Ensure the type is an input type
+
if (!(0, _definition.isInputType)(field.type)) {
var _field$astNode2;
context.reportError(`The type of ${inputObj.name}.${field.name} must be Input Type ` + `but got: ${(0, _inspect.inspect)(field.type)}.`, (_field$astNode2 = field.astNode) === null || _field$astNode2 === void 0 ? void 0 : _field$astNode2.type);
@@ -34792,20 +51277,20 @@ function createInputObjectCircularRefsValidator(context) {
// Modified copy of algorithm from 'src/validation/rules/NoFragmentCycles.js'.
// Tracks already visited types to maintain O(N) and to ensure that cycles
// are not redundantly reported.
- const visitedTypes = new Set();
- // Array of types nodes used to produce meaningful errors
- const fieldPath = [];
- // Position in the type path
+ const visitedTypes = Object.create(null); // Array of types nodes used to produce meaningful errors
+
+ const fieldPath = []; // Position in the type path
+
const fieldPathIndexByTypeName = Object.create(null);
- return detectCycleRecursive;
- // This does a straight-forward DFS to find cycles.
+ return detectCycleRecursive; // This does a straight-forward DFS to find cycles.
// It does not terminate when a cycle was found but continues to explore
// the graph to find all possible cycles.
+
function detectCycleRecursive(inputObj) {
- if (visitedTypes.has(inputObj)) {
+ if (visitedTypes[inputObj.name]) {
return;
}
- visitedTypes.add(inputObj);
+ visitedTypes[inputObj.name] = true;
fieldPathIndexByTypeName[inputObj.name] = fieldPath.length;
const fields = Object.values(inputObj.getFields());
for (const field of fields) {
@@ -34831,11 +51316,13 @@ function getAllImplementsInterfaceNodes(type, iface) {
astNode,
extensionASTNodes
} = type;
- const nodes = astNode != null ? [astNode, ...extensionASTNodes] : extensionASTNodes;
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
+ const nodes = astNode != null ? [astNode, ...extensionASTNodes] : extensionASTNodes; // FIXME: https://github.com/graphql/graphql-js/issues/2203
+
return nodes.flatMap(typeNode => {
var _typeNode$interfaces;
- return /* c8 ignore next */(_typeNode$interfaces = typeNode.interfaces) !== null && _typeNode$interfaces !== void 0 ? _typeNode$interfaces : [];
+ return /* c8 ignore next */(
+ (_typeNode$interfaces = typeNode.interfaces) !== null && _typeNode$interfaces !== void 0 ? _typeNode$interfaces : []
+ );
}).filter(ifaceNode => ifaceNode.name.value === iface.name);
}
function getUnionMemberTypeNodes(union, typeName) {
@@ -34843,11 +51330,13 @@ function getUnionMemberTypeNodes(union, typeName) {
astNode,
extensionASTNodes
} = union;
- const nodes = astNode != null ? [astNode, ...extensionASTNodes] : extensionASTNodes;
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
+ const nodes = astNode != null ? [astNode, ...extensionASTNodes] : extensionASTNodes; // FIXME: https://github.com/graphql/graphql-js/issues/2203
+
return nodes.flatMap(unionNode => {
var _unionNode$types;
- return /* c8 ignore next */(_unionNode$types = unionNode.types) !== null && _unionNode$types !== void 0 ? _unionNode$types : [];
+ return /* c8 ignore next */(
+ (_unionNode$types = unionNode.types) !== null && _unionNode$types !== void 0 ? _unionNode$types : []
+ );
}).filter(typeNode => typeNode.name.value === typeName);
}
function getDeprecatedDirectiveNode(definitionNode) {
@@ -34863,6 +51352,7 @@ function getDeprecatedDirectiveNode(definitionNode) {
\************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -34874,12 +51364,14 @@ var _ast = __webpack_require__(/*! ../language/ast.mjs */ "../../../node_modules
var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
var _visitor = __webpack_require__(/*! ../language/visitor.mjs */ "../../../node_modules/graphql/language/visitor.mjs");
var _definition = __webpack_require__(/*! ../type/definition.mjs */ "../../../node_modules/graphql/type/definition.mjs");
+var _introspection = __webpack_require__(/*! ../type/introspection.mjs */ "../../../node_modules/graphql/type/introspection.mjs");
var _typeFromAST = __webpack_require__(/*! ./typeFromAST.mjs */ "../../../node_modules/graphql/utilities/typeFromAST.mjs");
/**
* TypeInfo is a utility class which, given a GraphQL schema, can keep track
* of the current field and type definitions at any point in a GraphQL document
* AST during a recursive descent by calling `enter(node)` and `leave(node)`.
*/
+
class TypeInfo {
constructor(schema,
/**
@@ -34914,22 +51406,34 @@ class TypeInfo {
return 'TypeInfo';
}
getType() {
- return this._typeStack.at(-1);
+ if (this._typeStack.length > 0) {
+ return this._typeStack[this._typeStack.length - 1];
+ }
}
getParentType() {
- return this._parentTypeStack.at(-1);
+ if (this._parentTypeStack.length > 0) {
+ return this._parentTypeStack[this._parentTypeStack.length - 1];
+ }
}
getInputType() {
- return this._inputTypeStack.at(-1);
+ if (this._inputTypeStack.length > 0) {
+ return this._inputTypeStack[this._inputTypeStack.length - 1];
+ }
}
getParentInputType() {
- return this._inputTypeStack.at(-2);
+ if (this._inputTypeStack.length > 1) {
+ return this._inputTypeStack[this._inputTypeStack.length - 2];
+ }
}
getFieldDef() {
- return this._fieldDefStack.at(-1);
+ if (this._fieldDefStack.length > 0) {
+ return this._fieldDefStack[this._fieldDefStack.length - 1];
+ }
}
getDefaultValue() {
- return this._defaultValueStack.at(-1);
+ if (this._defaultValueStack.length > 0) {
+ return this._defaultValueStack[this._defaultValueStack.length - 1];
+ }
}
getDirective() {
return this._directive;
@@ -34941,11 +51445,11 @@ class TypeInfo {
return this._enumValue;
}
enter(node) {
- const schema = this._schema;
- // Note: many of the types below are explicitly typed as "unknown" to drop
+ const schema = this._schema; // Note: many of the types below are explicitly typed as "unknown" to drop
// any assumptions of a valid schema to ensure runtime types are properly
// checked before continuing since TypeInfo is used as part of validation
// which occurs before guarantees of schema and document validity.
+
switch (node.kind) {
case _kinds.Kind.SELECTION_SET:
{
@@ -35011,8 +51515,8 @@ class TypeInfo {
case _kinds.Kind.LIST:
{
const listType = (0, _definition.getNullableType)(this.getInputType());
- const itemType = (0, _definition.isListType)(listType) ? listType.ofType : listType;
- // List positions never have a default value.
+ const itemType = (0, _definition.isListType)(listType) ? listType.ofType : listType; // List positions never have a default value.
+
this._defaultValueStack.push(undefined);
this._inputTypeStack.push((0, _definition.isInputType)(itemType) ? itemType : undefined);
break;
@@ -35024,7 +51528,7 @@ class TypeInfo {
let inputField;
if ((0, _definition.isInputObjectType)(objectType)) {
inputField = objectType.getFields()[node.name.value];
- if (inputField != null) {
+ if (inputField) {
inputFieldType = inputField.type;
}
}
@@ -35042,8 +51546,7 @@ class TypeInfo {
this._enumValue = enumValue;
break;
}
- default:
- // Ignore other nodes
+ default: // Ignore other nodes
}
}
leave(node) {
@@ -35079,19 +51582,37 @@ class TypeInfo {
case _kinds.Kind.ENUM:
this._enumValue = null;
break;
- default:
- // Ignore other nodes
+ default: // Ignore other nodes
}
}
}
+
+/**
+ * Not exactly the same as the executor's definition of getFieldDef, in this
+ * statically evaluated environment we do not always have an Object type,
+ * and need to handle Interface and Union types.
+ */
exports.TypeInfo = TypeInfo;
function getFieldDef(schema, parentType, fieldNode) {
- return schema.getField(parentType, fieldNode.name.value);
+ const name = fieldNode.name.value;
+ if (name === _introspection.SchemaMetaFieldDef.name && schema.getQueryType() === parentType) {
+ return _introspection.SchemaMetaFieldDef;
+ }
+ if (name === _introspection.TypeMetaFieldDef.name && schema.getQueryType() === parentType) {
+ return _introspection.TypeMetaFieldDef;
+ }
+ if (name === _introspection.TypeNameMetaFieldDef.name && (0, _definition.isCompositeType)(parentType)) {
+ return _introspection.TypeNameMetaFieldDef;
+ }
+ if ((0, _definition.isObjectType)(parentType) || (0, _definition.isInterfaceType)(parentType)) {
+ return parentType.getFields()[name];
+ }
}
/**
* Creates a new visitor instance which maintains a provided TypeInfo instance
* along with visiting visitor.
*/
+
function visitWithTypeInfo(typeInfo, visitor) {
return {
enter(...args) {
@@ -35124,12 +51645,64 @@ function visitWithTypeInfo(typeInfo, visitor) {
/***/ }),
+/***/ "../../../node_modules/graphql/utilities/assertValidName.mjs":
+/*!*******************************************************************!*\
+ !*** ../../../node_modules/graphql/utilities/assertValidName.mjs ***!
+ \*******************************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.assertValidName = assertValidName;
+exports.isValidNameError = isValidNameError;
+var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
+var _GraphQLError = __webpack_require__(/*! ../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
+var _assertName = __webpack_require__(/*! ../type/assertName.mjs */ "../../../node_modules/graphql/type/assertName.mjs");
+/* c8 ignore start */
+
+/**
+ * Upholds the spec rules about naming.
+ * @deprecated Please use `assertName` instead. Will be removed in v17
+ */
+
+function assertValidName(name) {
+ const error = isValidNameError(name);
+ if (error) {
+ throw error;
+ }
+ return name;
+}
+/**
+ * Returns an Error if a name is invalid.
+ * @deprecated Please use `assertName` instead. Will be removed in v17
+ */
+
+function isValidNameError(name) {
+ typeof name === 'string' || (0, _devAssert.devAssert)(false, 'Expected name to be a string.');
+ if (name.startsWith('__')) {
+ return new _GraphQLError.GraphQLError(`Name "${name}" must not begin with "__", which is reserved by GraphQL introspection.`);
+ }
+ try {
+ (0, _assertName.assertName)(name);
+ } catch (error) {
+ return error;
+ }
+}
+/* c8 ignore stop */
+
+/***/ }),
+
/***/ "../../../node_modules/graphql/utilities/astFromValue.mjs":
/*!****************************************************************!*\
!*** ../../../node_modules/graphql/utilities/astFromValue.mjs ***!
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -35164,6 +51737,7 @@ var _scalars = __webpack_require__(/*! ../type/scalars.mjs */ "../../../node_mod
* | null | NullValue |
*
*/
+
function astFromValue(value, type) {
if ((0, _definition.isNonNullType)(type)) {
const astValue = astFromValue(value, type.ofType);
@@ -35171,19 +51745,19 @@ function astFromValue(value, type) {
return null;
}
return astValue;
- }
- // only explicit null, not undefined, NaN
+ } // only explicit null, not undefined, NaN
+
if (value === null) {
return {
kind: _kinds.Kind.NULL
};
- }
- // undefined
+ } // undefined
+
if (value === undefined) {
return null;
- }
- // Convert JavaScript array to GraphQL list. If the GraphQLType is a list, but
+ } // Convert JavaScript array to GraphQL list. If the GraphQLType is a list, but
// the value is not an array, convert the value using the list's item type.
+
if ((0, _definition.isListType)(type)) {
const itemType = type.ofType;
if ((0, _isIterableObject.isIterableObject)(value)) {
@@ -35200,9 +51774,9 @@ function astFromValue(value, type) {
};
}
return astFromValue(value, itemType);
- }
- // Populate the fields of the input object by creating ASTs from each value
+ } // Populate the fields of the input object by creating ASTs from each value
// in the JavaScript object according to the fields in the input type.
+
if ((0, _definition.isInputObjectType)(type)) {
if (!(0, _isObjectLike.isObjectLike)(value)) {
return null;
@@ -35232,15 +51806,15 @@ function astFromValue(value, type) {
const serialized = type.serialize(value);
if (serialized == null) {
return null;
- }
- // Others serialize based on their corresponding JavaScript scalar types.
+ } // Others serialize based on their corresponding JavaScript scalar types.
+
if (typeof serialized === 'boolean') {
return {
kind: _kinds.Kind.BOOLEAN,
value: serialized
};
- }
- // JavaScript numbers can be Int or Float values.
+ } // JavaScript numbers can be Int or Float values.
+
if (typeof serialized === 'number' && Number.isFinite(serialized)) {
const stringNum = String(serialized);
return integerStringRegExp.test(stringNum) ? {
@@ -35258,8 +51832,8 @@ function astFromValue(value, type) {
kind: _kinds.Kind.ENUM,
value: serialized
};
- }
- // ID types can use Int literals.
+ } // ID types can use Int literals.
+
if (type === _scalars.GraphQLID && integerStringRegExp.test(serialized)) {
return {
kind: _kinds.Kind.INT,
@@ -35275,6 +51849,7 @@ function astFromValue(value, type) {
}
/* c8 ignore next 3 */
// Not reachable, all possible types have been considered.
+
false || (0, _invariant.invariant)(false, 'Unexpected input type: ' + (0, _inspect.inspect)(type));
}
/**
@@ -35282,6 +51857,7 @@ function astFromValue(value, type) {
* - NegativeSign? 0
* - NegativeSign? NonZeroDigit ( Digit+ )?
*/
+
const integerStringRegExp = /^-?(?:0|[1-9][0-9]*)$/;
/***/ }),
@@ -35292,6 +51868,7 @@ const integerStringRegExp = /^-?(?:0|[1-9][0-9]*)$/;
\******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -35299,6 +51876,8 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.buildASTSchema = buildASTSchema;
exports.buildSchema = buildSchema;
+var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
+var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
var _parser = __webpack_require__(/*! ../language/parser.mjs */ "../../../node_modules/graphql/language/parser.mjs");
var _directives = __webpack_require__(/*! ../type/directives.mjs */ "../../../node_modules/graphql/type/directives.mjs");
var _schema = __webpack_require__(/*! ../type/schema.mjs */ "../../../node_modules/graphql/type/schema.mjs");
@@ -35315,6 +51894,7 @@ var _extendSchema = __webpack_require__(/*! ./extendSchema.mjs */ "../../../node
* has no resolve methods, so execution will use default resolvers.
*/
function buildASTSchema(documentAST, options) {
+ documentAST != null && documentAST.kind === _kinds.Kind.DOCUMENT || (0, _devAssert.devAssert)(false, 'Must provide valid Document AST.');
if ((options === null || options === void 0 ? void 0 : options.assumeValid) !== true && (options === null || options === void 0 ? void 0 : options.assumeValidSDL) !== true) {
(0, _validate.assertValidSDL)(documentAST);
}
@@ -35360,6 +51940,7 @@ function buildASTSchema(documentAST, options) {
* A helper function to build a GraphQLSchema directly from a source
* document.
*/
+
function buildSchema(source, options) {
const document = (0, _parser.parse)(source, {
noLocation: options === null || options === void 0 ? void 0 : options.noLocation,
@@ -35379,6 +51960,7 @@ function buildSchema(source, options) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -35408,50 +51990,49 @@ var _valueFromAST = __webpack_require__(/*! ./valueFromAST.mjs */ "../../../node
* This function expects a complete introspection result. Don't forget to check
* the "errors" field of a server response before calling this function.
*/
+
function buildClientSchema(introspection, options) {
- // Even though the `introspection` argument is typed, in most cases it's received
- // as an untyped value from the server, so we will do an additional check here.
- (0, _isObjectLike.isObjectLike)(introspection) && (0, _isObjectLike.isObjectLike)(introspection.__schema) || (0, _devAssert.devAssert)(false, `Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0, _inspect.inspect)(introspection)}.`);
- // Get the schema from the introspection result.
- const schemaIntrospection = introspection.__schema;
- // Iterate through all types, getting the type definition for each.
- const typeMap = new Map(schemaIntrospection.types.map(typeIntrospection => [typeIntrospection.name, buildType(typeIntrospection)]));
- // Include standard types only if they are used.
+ (0, _isObjectLike.isObjectLike)(introspection) && (0, _isObjectLike.isObjectLike)(introspection.__schema) || (0, _devAssert.devAssert)(false, `Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0, _inspect.inspect)(introspection)}.`); // Get the schema from the introspection result.
+
+ const schemaIntrospection = introspection.__schema; // Iterate through all types, getting the type definition for each.
+
+ const typeMap = (0, _keyValMap.keyValMap)(schemaIntrospection.types, typeIntrospection => typeIntrospection.name, typeIntrospection => buildType(typeIntrospection)); // Include standard types only if they are used.
+
for (const stdType of [..._scalars.specifiedScalarTypes, ..._introspection.introspectionTypes]) {
- if (typeMap.has(stdType.name)) {
- typeMap.set(stdType.name, stdType);
+ if (typeMap[stdType.name]) {
+ typeMap[stdType.name] = stdType;
}
- }
- // Get the root Query, Mutation, and Subscription types.
- const queryType = schemaIntrospection.queryType != null ? getObjectType(schemaIntrospection.queryType) : null;
- const mutationType = schemaIntrospection.mutationType != null ? getObjectType(schemaIntrospection.mutationType) : null;
- const subscriptionType = schemaIntrospection.subscriptionType != null ? getObjectType(schemaIntrospection.subscriptionType) : null;
- // Get the directives supported by Introspection, assuming empty-set if
+ } // Get the root Query, Mutation, and Subscription types.
+
+ const queryType = schemaIntrospection.queryType ? getObjectType(schemaIntrospection.queryType) : null;
+ const mutationType = schemaIntrospection.mutationType ? getObjectType(schemaIntrospection.mutationType) : null;
+ const subscriptionType = schemaIntrospection.subscriptionType ? getObjectType(schemaIntrospection.subscriptionType) : null; // Get the directives supported by Introspection, assuming empty-set if
// directives were not queried for.
- const directives = schemaIntrospection.directives != null ? schemaIntrospection.directives.map(buildDirective) : [];
- // Then produce and return a Schema with these types.
+
+ const directives = schemaIntrospection.directives ? schemaIntrospection.directives.map(buildDirective) : []; // Then produce and return a Schema with these types.
+
return new _schema.GraphQLSchema({
description: schemaIntrospection.description,
query: queryType,
mutation: mutationType,
subscription: subscriptionType,
- types: [...typeMap.values()],
+ types: Object.values(typeMap),
directives,
assumeValid: options === null || options === void 0 ? void 0 : options.assumeValid
- });
- // Given a type reference in introspection, return the GraphQLType instance.
+ }); // Given a type reference in introspection, return the GraphQLType instance.
// preferring cached instances before building new instances.
+
function getType(typeRef) {
if (typeRef.kind === _introspection.TypeKind.LIST) {
const itemRef = typeRef.ofType;
- if (itemRef == null) {
+ if (!itemRef) {
throw new Error('Decorated type deeper than introspection query.');
}
return new _definition.GraphQLList(getType(itemRef));
}
if (typeRef.kind === _introspection.TypeKind.NON_NULL) {
const nullableRef = typeRef.ofType;
- if (nullableRef == null) {
+ if (!nullableRef) {
throw new Error('Decorated type deeper than introspection query.');
}
const nullableType = getType(nullableRef);
@@ -35464,8 +52045,8 @@ function buildClientSchema(introspection, options) {
if (!typeName) {
throw new Error(`Unknown type reference: ${(0, _inspect.inspect)(typeRef)}.`);
}
- const type = typeMap.get(typeName);
- if (type == null) {
+ const type = typeMap[typeName];
+ if (!type) {
throw new Error(`Invalid or incomplete schema, unknown type: ${typeName}. Ensure that a full introspection query is used in order to build a client schema.`);
}
return type;
@@ -35475,9 +52056,9 @@ function buildClientSchema(introspection, options) {
}
function getInterfaceType(typeRef) {
return (0, _definition.assertInterfaceType)(getNamedType(typeRef));
- }
- // Given a type's introspection result, construct the correct
+ } // Given a type's introspection result, construct the correct
// GraphQLType instance.
+
function buildType(type) {
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (type != null && type.name != null && type.kind != null) {
@@ -35514,7 +52095,7 @@ function buildClientSchema(introspection, options) {
if (implementingIntrospection.interfaces === null && implementingIntrospection.kind === _introspection.TypeKind.INTERFACE) {
return [];
}
- if (implementingIntrospection.interfaces == null) {
+ if (!implementingIntrospection.interfaces) {
const implementingIntrospectionStr = (0, _inspect.inspect)(implementingIntrospection);
throw new Error(`Introspection result missing interfaces: ${implementingIntrospectionStr}.`);
}
@@ -35537,7 +52118,7 @@ function buildClientSchema(introspection, options) {
});
}
function buildUnionDef(unionIntrospection) {
- if (unionIntrospection.possibleTypes == null) {
+ if (!unionIntrospection.possibleTypes) {
const unionIntrospectionStr = (0, _inspect.inspect)(unionIntrospection);
throw new Error(`Introspection result missing possibleTypes: ${unionIntrospectionStr}.`);
}
@@ -35548,7 +52129,7 @@ function buildClientSchema(introspection, options) {
});
}
function buildEnumDef(enumIntrospection) {
- if (enumIntrospection.enumValues == null) {
+ if (!enumIntrospection.enumValues) {
const enumIntrospectionStr = (0, _inspect.inspect)(enumIntrospection);
throw new Error(`Introspection result missing enumValues: ${enumIntrospectionStr}.`);
}
@@ -35562,7 +52143,7 @@ function buildClientSchema(introspection, options) {
});
}
function buildInputObjectDef(inputObjectIntrospection) {
- if (inputObjectIntrospection.inputFields == null) {
+ if (!inputObjectIntrospection.inputFields) {
const inputObjectIntrospectionStr = (0, _inspect.inspect)(inputObjectIntrospection);
throw new Error(`Introspection result missing inputFields: ${inputObjectIntrospectionStr}.`);
}
@@ -35574,7 +52155,7 @@ function buildClientSchema(introspection, options) {
});
}
function buildFieldDefMap(typeIntrospection) {
- if (typeIntrospection.fields == null) {
+ if (!typeIntrospection.fields) {
throw new Error(`Introspection result missing fields: ${(0, _inspect.inspect)(typeIntrospection)}.`);
}
return (0, _keyValMap.keyValMap)(typeIntrospection.fields, fieldIntrospection => fieldIntrospection.name, buildField);
@@ -35585,7 +52166,7 @@ function buildClientSchema(introspection, options) {
const typeStr = (0, _inspect.inspect)(type);
throw new Error(`Introspection must provide output type for fields, but received: ${typeStr}.`);
}
- if (fieldIntrospection.args == null) {
+ if (!fieldIntrospection.args) {
const fieldIntrospectionStr = (0, _inspect.inspect)(fieldIntrospection);
throw new Error(`Introspection result missing field args: ${fieldIntrospectionStr}.`);
}
@@ -35614,11 +52195,11 @@ function buildClientSchema(introspection, options) {
};
}
function buildDirective(directiveIntrospection) {
- if (directiveIntrospection.args == null) {
+ if (!directiveIntrospection.args) {
const directiveIntrospectionStr = (0, _inspect.inspect)(directiveIntrospection);
throw new Error(`Introspection result missing directive args: ${directiveIntrospectionStr}.`);
}
- if (directiveIntrospection.locations == null) {
+ if (!directiveIntrospection.locations) {
const directiveIntrospectionStr = (0, _inspect.inspect)(directiveIntrospection);
throw new Error(`Introspection result missing directive locations: ${directiveIntrospectionStr}.`);
}
@@ -35640,6 +52221,7 @@ function buildClientSchema(introspection, options) {
\********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -35689,8 +52271,8 @@ function coerceInputValueImpl(inputValue, type, onError, path) {
const itemPath = (0, _Path.addPath)(path, index, undefined);
return coerceInputValueImpl(itemValue, itemType, onError, itemPath);
});
- }
- // Lists accept a non-list value as a list of one.
+ } // Lists accept a non-list value as a list of one.
+
return [coerceInputValueImpl(inputValue, itemType, onError, path)];
}
if ((0, _definition.isInputObjectType)(type)) {
@@ -35712,10 +52294,10 @@ function coerceInputValueImpl(inputValue, type, onError, path) {
continue;
}
coercedValue[field.name] = coerceInputValueImpl(fieldValue, field.type, onError, (0, _Path.addPath)(path, field.name, type.name));
- }
- // Ensure every provided field is defined.
+ } // Ensure every provided field is defined.
+
for (const fieldName of Object.keys(inputValue)) {
- if (fieldDefs[fieldName] == null) {
+ if (!fieldDefs[fieldName]) {
const suggestions = (0, _suggestionList.suggestionList)(fieldName, Object.keys(type.getFields()));
onError((0, _Path.pathToArray)(path), inputValue, new _GraphQLError.GraphQLError(`Field "${fieldName}" is not defined by type "${type.name}".` + (0, _didYouMean.didYouMean)(suggestions)));
}
@@ -35734,10 +52316,10 @@ function coerceInputValueImpl(inputValue, type, onError, path) {
return coercedValue;
}
if ((0, _definition.isLeafType)(type)) {
- let parseResult;
- // Scalars and Enums determine if an input value is valid via parseValue(),
+ let parseResult; // Scalars and Enums determine if a input value is valid via parseValue(),
// which can throw to indicate failure. If it throws, maintain a reference
// to the original error.
+
try {
parseResult = type.parseValue(inputValue);
} catch (error) {
@@ -35757,6 +52339,7 @@ function coerceInputValueImpl(inputValue, type, onError, path) {
}
/* c8 ignore next 3 */
// Not reachable, all possible types have been considered.
+
false || (0, _invariant.invariant)(false, 'Unexpected input type: ' + (0, _inspect.inspect)(type));
}
@@ -35768,6 +52351,7 @@ function coerceInputValueImpl(inputValue, type, onError, path) {
\*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -35780,6 +52364,7 @@ var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_mod
* concatenate the ASTs together into batched AST, useful for validating many
* GraphQL source files which together represent one conceptual application.
*/
+
function concatAST(documents) {
const definitions = [];
for (const doc of documents) {
@@ -35799,6 +52384,7 @@ function concatAST(documents) {
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -35806,11 +52392,13 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports.extendSchema = extendSchema;
exports.extendSchemaImpl = extendSchemaImpl;
-var _AccumulatorMap = __webpack_require__(/*! ../jsutils/AccumulatorMap.mjs */ "../../../node_modules/graphql/jsutils/AccumulatorMap.mjs");
+var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _invariant = __webpack_require__(/*! ../jsutils/invariant.mjs */ "../../../node_modules/graphql/jsutils/invariant.mjs");
+var _keyMap = __webpack_require__(/*! ../jsutils/keyMap.mjs */ "../../../node_modules/graphql/jsutils/keyMap.mjs");
var _mapValue = __webpack_require__(/*! ../jsutils/mapValue.mjs */ "../../../node_modules/graphql/jsutils/mapValue.mjs");
var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
+var _predicates = __webpack_require__(/*! ../language/predicates.mjs */ "../../../node_modules/graphql/language/predicates.mjs");
var _definition = __webpack_require__(/*! ../type/definition.mjs */ "../../../node_modules/graphql/type/definition.mjs");
var _directives = __webpack_require__(/*! ../type/directives.mjs */ "../../../node_modules/graphql/type/directives.mjs");
var _introspection = __webpack_require__(/*! ../type/introspection.mjs */ "../../../node_modules/graphql/type/introspection.mjs");
@@ -35833,6 +52421,7 @@ var _valueFromAST = __webpack_require__(/*! ./valueFromAST.mjs */ "../../../node
*/
function extendSchema(schema, documentAST, options) {
(0, _schema.assertSchema)(schema);
+ documentAST != null && documentAST.kind === _kinds.Kind.DOCUMENT || (0, _devAssert.devAssert)(false, 'Must provide valid Document AST.');
if ((options === null || options === void 0 ? void 0 : options.assumeValid) !== true && (options === null || options === void 0 ? void 0 : options.assumeValidSDL) !== true) {
(0, _validate.assertValidSDLExtension)(documentAST, schema);
}
@@ -35843,77 +52432,47 @@ function extendSchema(schema, documentAST, options) {
/**
* @internal
*/
+
function extendSchemaImpl(schemaConfig, documentAST, options) {
- var _schemaDef$descriptio, _schemaDef, _schemaDef$descriptio2, _schemaDef2, _options$assumeValid;
+ var _schemaDef, _schemaDef$descriptio, _schemaDef2, _options$assumeValid;
+
// Collect the type definitions and extensions found in the document.
const typeDefs = [];
- const scalarExtensions = new _AccumulatorMap.AccumulatorMap();
- const objectExtensions = new _AccumulatorMap.AccumulatorMap();
- const interfaceExtensions = new _AccumulatorMap.AccumulatorMap();
- const unionExtensions = new _AccumulatorMap.AccumulatorMap();
- const enumExtensions = new _AccumulatorMap.AccumulatorMap();
- const inputObjectExtensions = new _AccumulatorMap.AccumulatorMap();
- // New directives and types are separate because a directives and types can
+ const typeExtensionsMap = Object.create(null); // New directives and types are separate because a directives and types can
// have the same name. For example, a type named "skip".
+
const directiveDefs = [];
- let schemaDef;
- // Schema extensions are collected which may add additional operation types.
+ let schemaDef; // Schema extensions are collected which may add additional operation types.
+
const schemaExtensions = [];
- let isSchemaChanged = false;
for (const def of documentAST.definitions) {
- switch (def.kind) {
- case _kinds.Kind.SCHEMA_DEFINITION:
- schemaDef = def;
- break;
- case _kinds.Kind.SCHEMA_EXTENSION:
- schemaExtensions.push(def);
- break;
- case _kinds.Kind.DIRECTIVE_DEFINITION:
- directiveDefs.push(def);
- break;
- // Type Definitions
- case _kinds.Kind.SCALAR_TYPE_DEFINITION:
- case _kinds.Kind.OBJECT_TYPE_DEFINITION:
- case _kinds.Kind.INTERFACE_TYPE_DEFINITION:
- case _kinds.Kind.UNION_TYPE_DEFINITION:
- case _kinds.Kind.ENUM_TYPE_DEFINITION:
- case _kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION:
- typeDefs.push(def);
- break;
- // Type System Extensions
- case _kinds.Kind.SCALAR_TYPE_EXTENSION:
- scalarExtensions.add(def.name.value, def);
- break;
- case _kinds.Kind.OBJECT_TYPE_EXTENSION:
- objectExtensions.add(def.name.value, def);
- break;
- case _kinds.Kind.INTERFACE_TYPE_EXTENSION:
- interfaceExtensions.add(def.name.value, def);
- break;
- case _kinds.Kind.UNION_TYPE_EXTENSION:
- unionExtensions.add(def.name.value, def);
- break;
- case _kinds.Kind.ENUM_TYPE_EXTENSION:
- enumExtensions.add(def.name.value, def);
- break;
- case _kinds.Kind.INPUT_OBJECT_TYPE_EXTENSION:
- inputObjectExtensions.add(def.name.value, def);
- break;
- default:
- continue;
+ if (def.kind === _kinds.Kind.SCHEMA_DEFINITION) {
+ schemaDef = def;
+ } else if (def.kind === _kinds.Kind.SCHEMA_EXTENSION) {
+ schemaExtensions.push(def);
+ } else if ((0, _predicates.isTypeDefinitionNode)(def)) {
+ typeDefs.push(def);
+ } else if ((0, _predicates.isTypeExtensionNode)(def)) {
+ const extendedTypeName = def.name.value;
+ const existingTypeExtensions = typeExtensionsMap[extendedTypeName];
+ typeExtensionsMap[extendedTypeName] = existingTypeExtensions ? existingTypeExtensions.concat([def]) : [def];
+ } else if (def.kind === _kinds.Kind.DIRECTIVE_DEFINITION) {
+ directiveDefs.push(def);
}
- isSchemaChanged = true;
- }
- // If this document contains no new types, extensions, or directives then
+ } // If this document contains no new types, extensions, or directives then
// return the same unmodified GraphQLSchema instance.
- if (!isSchemaChanged) {
+
+ if (Object.keys(typeExtensionsMap).length === 0 && typeDefs.length === 0 && directiveDefs.length === 0 && schemaExtensions.length === 0 && schemaDef == null) {
return schemaConfig;
}
- const typeMap = new Map(schemaConfig.types.map(type => [type.name, extendNamedType(type)]));
+ const typeMap = Object.create(null);
+ for (const existingType of schemaConfig.types) {
+ typeMap[existingType.name] = extendNamedType(existingType);
+ }
for (const typeNode of typeDefs) {
- var _stdTypeMap$get;
+ var _stdTypeMap$name;
const name = typeNode.name.value;
- typeMap.set(name, (_stdTypeMap$get = stdTypeMap.get(name)) !== null && _stdTypeMap$get !== void 0 ? _stdTypeMap$get : buildType(typeNode));
+ typeMap[name] = (_stdTypeMap$name = stdTypeMap[name]) !== null && _stdTypeMap$name !== void 0 ? _stdTypeMap$name : buildType(typeNode);
}
const operationTypes = {
// Get the extended root operation types.
@@ -35923,20 +52482,20 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
// Then, incorporate schema definition and all schema extensions.
...(schemaDef && getOperationTypes([schemaDef])),
...getOperationTypes(schemaExtensions)
- };
- // Then produce and return a Schema config with these types.
+ }; // Then produce and return a Schema config with these types.
+
return {
- description: (_schemaDef$descriptio = (_schemaDef = schemaDef) === null || _schemaDef === void 0 ? void 0 : (_schemaDef$descriptio2 = _schemaDef.description) === null || _schemaDef$descriptio2 === void 0 ? void 0 : _schemaDef$descriptio2.value) !== null && _schemaDef$descriptio !== void 0 ? _schemaDef$descriptio : schemaConfig.description,
+ description: (_schemaDef = schemaDef) === null || _schemaDef === void 0 ? void 0 : (_schemaDef$descriptio = _schemaDef.description) === null || _schemaDef$descriptio === void 0 ? void 0 : _schemaDef$descriptio.value,
...operationTypes,
- types: Array.from(typeMap.values()),
+ types: Object.values(typeMap),
directives: [...schemaConfig.directives.map(replaceDirective), ...directiveDefs.map(buildDirective)],
- extensions: schemaConfig.extensions,
+ extensions: Object.create(null),
astNode: (_schemaDef2 = schemaDef) !== null && _schemaDef2 !== void 0 ? _schemaDef2 : schemaConfig.astNode,
extensionASTNodes: schemaConfig.extensionASTNodes.concat(schemaExtensions),
assumeValid: (_options$assumeValid = options === null || options === void 0 ? void 0 : options.assumeValid) !== null && _options$assumeValid !== void 0 ? _options$assumeValid : false
- };
- // Below are functions used for producing this schema that have closed over
+ }; // Below are functions used for producing this schema that have closed over
// this scope and have access to the schema, cache, and newly defined types.
+
function replaceType(type) {
if ((0, _definition.isListType)(type)) {
// @ts-expect-error
@@ -35945,21 +52504,17 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
if ((0, _definition.isNonNullType)(type)) {
// @ts-expect-error
return new _definition.GraphQLNonNull(replaceType(type.ofType));
- }
- // @ts-expect-error FIXME
+ } // @ts-expect-error FIXME
+
return replaceNamedType(type);
}
function replaceNamedType(type) {
// Note: While this could make early assertions to get the correctly
// typed values, that would throw immediately while type system
// validation with validateSchema() will produce more actionable results.
- return typeMap.get(type.name);
+ return typeMap[type.name];
}
function replaceDirective(directive) {
- if ((0, _directives.isSpecifiedDirective)(directive)) {
- // Builtin directives are not extended.
- return directive;
- }
const config = directive.toConfig();
return new _directives.GraphQLDirective({
...config,
@@ -35991,12 +52546,13 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
}
/* c8 ignore next 3 */
// Not reachable, all possible type definition nodes have been considered.
+
false || (0, _invariant.invariant)(false, 'Unexpected type: ' + (0, _inspect.inspect)(type));
}
function extendInputObjectType(type) {
- var _inputObjectExtension;
+ var _typeExtensionsMap$co;
const config = type.toConfig();
- const extensions = (_inputObjectExtension = inputObjectExtensions.get(config.name)) !== null && _inputObjectExtension !== void 0 ? _inputObjectExtension : [];
+ const extensions = (_typeExtensionsMap$co = typeExtensionsMap[config.name]) !== null && _typeExtensionsMap$co !== void 0 ? _typeExtensionsMap$co : [];
return new _definition.GraphQLInputObjectType({
...config,
fields: () => ({
@@ -36010,9 +52566,9 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
});
}
function extendEnumType(type) {
- var _enumExtensions$get;
+ var _typeExtensionsMap$ty;
const config = type.toConfig();
- const extensions = (_enumExtensions$get = enumExtensions.get(type.name)) !== null && _enumExtensions$get !== void 0 ? _enumExtensions$get : [];
+ const extensions = (_typeExtensionsMap$ty = typeExtensionsMap[type.name]) !== null && _typeExtensionsMap$ty !== void 0 ? _typeExtensionsMap$ty : [];
return new _definition.GraphQLEnumType({
...config,
values: {
@@ -36023,9 +52579,9 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
});
}
function extendScalarType(type) {
- var _scalarExtensions$get;
+ var _typeExtensionsMap$co2;
const config = type.toConfig();
- const extensions = (_scalarExtensions$get = scalarExtensions.get(config.name)) !== null && _scalarExtensions$get !== void 0 ? _scalarExtensions$get : [];
+ const extensions = (_typeExtensionsMap$co2 = typeExtensionsMap[config.name]) !== null && _typeExtensionsMap$co2 !== void 0 ? _typeExtensionsMap$co2 : [];
let specifiedByURL = config.specifiedByURL;
for (const extensionNode of extensions) {
var _getSpecifiedByURL;
@@ -36038,9 +52594,9 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
});
}
function extendObjectType(type) {
- var _objectExtensions$get;
+ var _typeExtensionsMap$co3;
const config = type.toConfig();
- const extensions = (_objectExtensions$get = objectExtensions.get(config.name)) !== null && _objectExtensions$get !== void 0 ? _objectExtensions$get : [];
+ const extensions = (_typeExtensionsMap$co3 = typeExtensionsMap[config.name]) !== null && _typeExtensionsMap$co3 !== void 0 ? _typeExtensionsMap$co3 : [];
return new _definition.GraphQLObjectType({
...config,
interfaces: () => [...type.getInterfaces().map(replaceNamedType), ...buildInterfaces(extensions)],
@@ -36052,9 +52608,9 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
});
}
function extendInterfaceType(type) {
- var _interfaceExtensions$;
+ var _typeExtensionsMap$co4;
const config = type.toConfig();
- const extensions = (_interfaceExtensions$ = interfaceExtensions.get(config.name)) !== null && _interfaceExtensions$ !== void 0 ? _interfaceExtensions$ : [];
+ const extensions = (_typeExtensionsMap$co4 = typeExtensionsMap[config.name]) !== null && _typeExtensionsMap$co4 !== void 0 ? _typeExtensionsMap$co4 : [];
return new _definition.GraphQLInterfaceType({
...config,
interfaces: () => [...type.getInterfaces().map(replaceNamedType), ...buildInterfaces(extensions)],
@@ -36066,9 +52622,9 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
});
}
function extendUnionType(type) {
- var _unionExtensions$get;
+ var _typeExtensionsMap$co5;
const config = type.toConfig();
- const extensions = (_unionExtensions$get = unionExtensions.get(config.name)) !== null && _unionExtensions$get !== void 0 ? _unionExtensions$get : [];
+ const extensions = (_typeExtensionsMap$co5 = typeExtensionsMap[config.name]) !== null && _typeExtensionsMap$co5 !== void 0 ? _typeExtensionsMap$co5 : [];
return new _definition.GraphQLUnionType({
...config,
types: () => [...type.getTypes().map(replaceNamedType), ...buildUnionTypes(extensions)],
@@ -36092,8 +52648,10 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
const opTypes = {};
for (const node of nodes) {
var _node$operationTypes;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
- const operationTypesNodes = /* c8 ignore next */(_node$operationTypes = node.operationTypes) !== null && _node$operationTypes !== void 0 ? _node$operationTypes : [];
+ const operationTypesNodes = /* c8 ignore next */
+ (_node$operationTypes = node.operationTypes) !== null && _node$operationTypes !== void 0 ? _node$operationTypes : [];
for (const operationType of operationTypesNodes) {
// Note: While this could make early assertions to get the correctly
// typed values below, that would throw immediately while type system
@@ -36105,9 +52663,9 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
return opTypes;
}
function getNamedType(node) {
- var _stdTypeMap$get2;
+ var _stdTypeMap$name2;
const name = node.name.value;
- const type = (_stdTypeMap$get2 = stdTypeMap.get(name)) !== null && _stdTypeMap$get2 !== void 0 ? _stdTypeMap$get2 : typeMap.get(name);
+ const type = (_stdTypeMap$name2 = stdTypeMap[name]) !== null && _stdTypeMap$name2 !== void 0 ? _stdTypeMap$name2 : typeMap[name];
if (type === undefined) {
throw new Error(`Unknown type: "${name}".`);
}
@@ -36140,8 +52698,10 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
const fieldConfigMap = Object.create(null);
for (const node of nodes) {
var _node$fields;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
- const nodeFields = /* c8 ignore next */(_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];
+ const nodeFields = /* c8 ignore next */
+ (_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];
for (const field of nodeFields) {
var _field$description;
fieldConfigMap[field.name.value] = {
@@ -36160,10 +52720,12 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
}
function buildArgumentMap(args) {
// FIXME: https://github.com/graphql/graphql-js/issues/2203
- const argsNodes = /* c8 ignore next */args !== null && args !== void 0 ? args : [];
+ const argsNodes = /* c8 ignore next */
+ args !== null && args !== void 0 ? args : [];
const argConfigMap = Object.create(null);
for (const arg of argsNodes) {
var _arg$description;
+
// Note: While this could make assertions to get the correctly typed
// value, that would throw immediately while type system validation
// with validateSchema() will produce more actionable results.
@@ -36182,10 +52744,13 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
const inputFieldMap = Object.create(null);
for (const node of nodes) {
var _node$fields2;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
- const fieldsNodes = /* c8 ignore next */(_node$fields2 = node.fields) !== null && _node$fields2 !== void 0 ? _node$fields2 : [];
+ const fieldsNodes = /* c8 ignore next */
+ (_node$fields2 = node.fields) !== null && _node$fields2 !== void 0 ? _node$fields2 : [];
for (const field of fieldsNodes) {
var _field$description2;
+
// Note: While this could make assertions to get the correctly typed
// value, that would throw immediately while type system validation
// with validateSchema() will produce more actionable results.
@@ -36205,8 +52770,10 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
const enumValueMap = Object.create(null);
for (const node of nodes) {
var _node$values;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
- const valuesNodes = /* c8 ignore next */(_node$values = node.values) !== null && _node$values !== void 0 ? _node$values : [];
+ const valuesNodes = /* c8 ignore next */
+ (_node$values = node.values) !== null && _node$values !== void 0 ? _node$values : [];
for (const value of valuesNodes) {
var _value$description;
enumValueMap[value.name.value] = {
@@ -36227,7 +52794,9 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
// FIXME: https://github.com/graphql/graphql-js/issues/2203
node => {
var _node$interfaces$map, _node$interfaces;
- return /* c8 ignore next */(_node$interfaces$map = (_node$interfaces = node.interfaces) === null || _node$interfaces === void 0 ? void 0 : _node$interfaces.map(getNamedType)) !== null && _node$interfaces$map !== void 0 ? _node$interfaces$map : [];
+ return /* c8 ignore next */(
+ (_node$interfaces$map = (_node$interfaces = node.interfaces) === null || _node$interfaces === void 0 ? void 0 : _node$interfaces.map(getNamedType)) !== null && _node$interfaces$map !== void 0 ? _node$interfaces$map : []
+ );
});
}
function buildUnionTypes(nodes) {
@@ -36239,16 +52808,19 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
// FIXME: https://github.com/graphql/graphql-js/issues/2203
node => {
var _node$types$map, _node$types;
- return /* c8 ignore next */(_node$types$map = (_node$types = node.types) === null || _node$types === void 0 ? void 0 : _node$types.map(getNamedType)) !== null && _node$types$map !== void 0 ? _node$types$map : [];
+ return /* c8 ignore next */(
+ (_node$types$map = (_node$types = node.types) === null || _node$types === void 0 ? void 0 : _node$types.map(getNamedType)) !== null && _node$types$map !== void 0 ? _node$types$map : []
+ );
});
}
function buildType(astNode) {
+ var _typeExtensionsMap$na;
const name = astNode.name.value;
+ const extensionASTNodes = (_typeExtensionsMap$na = typeExtensionsMap[name]) !== null && _typeExtensionsMap$na !== void 0 ? _typeExtensionsMap$na : [];
switch (astNode.kind) {
case _kinds.Kind.OBJECT_TYPE_DEFINITION:
{
- var _objectExtensions$get2, _astNode$description;
- const extensionASTNodes = (_objectExtensions$get2 = objectExtensions.get(name)) !== null && _objectExtensions$get2 !== void 0 ? _objectExtensions$get2 : [];
+ var _astNode$description;
const allNodes = [astNode, ...extensionASTNodes];
return new _definition.GraphQLObjectType({
name,
@@ -36261,8 +52833,7 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
}
case _kinds.Kind.INTERFACE_TYPE_DEFINITION:
{
- var _interfaceExtensions$2, _astNode$description2;
- const extensionASTNodes = (_interfaceExtensions$2 = interfaceExtensions.get(name)) !== null && _interfaceExtensions$2 !== void 0 ? _interfaceExtensions$2 : [];
+ var _astNode$description2;
const allNodes = [astNode, ...extensionASTNodes];
return new _definition.GraphQLInterfaceType({
name,
@@ -36275,8 +52846,7 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
}
case _kinds.Kind.ENUM_TYPE_DEFINITION:
{
- var _enumExtensions$get2, _astNode$description3;
- const extensionASTNodes = (_enumExtensions$get2 = enumExtensions.get(name)) !== null && _enumExtensions$get2 !== void 0 ? _enumExtensions$get2 : [];
+ var _astNode$description3;
const allNodes = [astNode, ...extensionASTNodes];
return new _definition.GraphQLEnumType({
name,
@@ -36288,8 +52858,7 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
}
case _kinds.Kind.UNION_TYPE_DEFINITION:
{
- var _unionExtensions$get2, _astNode$description4;
- const extensionASTNodes = (_unionExtensions$get2 = unionExtensions.get(name)) !== null && _unionExtensions$get2 !== void 0 ? _unionExtensions$get2 : [];
+ var _astNode$description4;
const allNodes = [astNode, ...extensionASTNodes];
return new _definition.GraphQLUnionType({
name,
@@ -36301,8 +52870,7 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
}
case _kinds.Kind.SCALAR_TYPE_DEFINITION:
{
- var _scalarExtensions$get2, _astNode$description5;
- const extensionASTNodes = (_scalarExtensions$get2 = scalarExtensions.get(name)) !== null && _scalarExtensions$get2 !== void 0 ? _scalarExtensions$get2 : [];
+ var _astNode$description5;
return new _definition.GraphQLScalarType({
name,
description: (_astNode$description5 = astNode.description) === null || _astNode$description5 === void 0 ? void 0 : _astNode$description5.value,
@@ -36313,8 +52881,7 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
}
case _kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION:
{
- var _inputObjectExtension2, _astNode$description6;
- const extensionASTNodes = (_inputObjectExtension2 = inputObjectExtensions.get(name)) !== null && _inputObjectExtension2 !== void 0 ? _inputObjectExtension2 : [];
+ var _astNode$description6;
const allNodes = [astNode, ...extensionASTNodes];
return new _definition.GraphQLInputObjectType({
name,
@@ -36328,27 +52895,30 @@ function extendSchemaImpl(schemaConfig, documentAST, options) {
}
}
}
-const stdTypeMap = new Map([..._scalars.specifiedScalarTypes, ..._introspection.introspectionTypes].map(type => [type.name, type]));
+const stdTypeMap = (0, _keyMap.keyMap)([..._scalars.specifiedScalarTypes, ..._introspection.introspectionTypes], type => type.name);
/**
* Given a field or enum value node, returns the string value for the
* deprecation reason.
*/
+
function getDeprecationReason(node) {
- const deprecated = (0, _values.getDirectiveValues)(_directives.GraphQLDeprecatedDirective, node);
- // @ts-expect-error validated by `getDirectiveValues`
+ const deprecated = (0, _values.getDirectiveValues)(_directives.GraphQLDeprecatedDirective, node); // @ts-expect-error validated by `getDirectiveValues`
+
return deprecated === null || deprecated === void 0 ? void 0 : deprecated.reason;
}
/**
* Given a scalar node, returns the string value for the specifiedByURL.
*/
+
function getSpecifiedByURL(node) {
- const specifiedBy = (0, _values.getDirectiveValues)(_directives.GraphQLSpecifiedByDirective, node);
- // @ts-expect-error validated by `getDirectiveValues`
+ const specifiedBy = (0, _values.getDirectiveValues)(_directives.GraphQLSpecifiedByDirective, node); // @ts-expect-error validated by `getDirectiveValues`
+
return specifiedBy === null || specifiedBy === void 0 ? void 0 : specifiedBy.url;
}
/**
* Given an input object node, returns if the node should be OneOf.
*/
+
function isOneOf(node) {
return Boolean((0, _values.getDirectiveValues)(_directives.GraphQLOneOfDirective, node));
}
@@ -36361,6 +52931,7 @@ function isOneOf(node) {
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -36417,6 +52988,7 @@ function findBreakingChanges(oldSchema, newSchema) {
* Given two schemas, returns an Array containing descriptions of all the types
* of potentially dangerous changes covered by the other functions down below.
*/
+
function findDangerousChanges(oldSchema, newSchema) {
// @ts-expect-error
return findSchemaChanges(oldSchema, newSchema).filter(change => change.type in DangerousChangeType);
@@ -36685,8 +53257,8 @@ function isChangeSafeForInputObjectFieldOrFieldArg(oldType, newType) {
// moving from non-null to nullable of the same underlying type is safe
!(0, _definition.isNonNullType)(newType) && isChangeSafeForInputObjectFieldOrFieldArg(oldType.ofType, newType)
);
- }
- // if they're both named types, see if their names are equivalent
+ } // if they're both named types, see if their names are equivalent
+
return (0, _definition.isNamedType)(newType) && oldType.name === newType.name;
}
function typeKindName(type) {
@@ -36710,6 +53282,7 @@ function typeKindName(type) {
}
/* c8 ignore next 3 */
// Not reachable, all possible types have been considered.
+
false || (0, _invariant.invariant)(false, 'Unexpected type: ' + (0, _inspect.inspect)(type));
}
function stringifyValue(value, type) {
@@ -36755,6 +53328,7 @@ function diff(oldArray, newArray) {
\*************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -36900,6 +53474,7 @@ function getIntrospectionQuery(options) {
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -36912,6 +53487,7 @@ var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_mod
* name. If a name is not provided, an operation is only returned if only one is
* provided in the document.
*/
+
function getOperationAST(documentAST, operationName) {
let operation = null;
for (const definition of documentAST.definitions) {
@@ -36935,12 +53511,67 @@ function getOperationAST(documentAST, operationName) {
/***/ }),
+/***/ "../../../node_modules/graphql/utilities/getOperationRootType.mjs":
+/*!************************************************************************!*\
+ !*** ../../../node_modules/graphql/utilities/getOperationRootType.mjs ***!
+ \************************************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.getOperationRootType = getOperationRootType;
+var _GraphQLError = __webpack_require__(/*! ../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
+/**
+ * Extracts the root type of the operation from the schema.
+ *
+ * @deprecated Please use `GraphQLSchema.getRootType` instead. Will be removed in v17
+ */
+function getOperationRootType(schema, operation) {
+ if (operation.operation === 'query') {
+ const queryType = schema.getQueryType();
+ if (!queryType) {
+ throw new _GraphQLError.GraphQLError('Schema does not define the required query root type.', {
+ nodes: operation
+ });
+ }
+ return queryType;
+ }
+ if (operation.operation === 'mutation') {
+ const mutationType = schema.getMutationType();
+ if (!mutationType) {
+ throw new _GraphQLError.GraphQLError('Schema is not configured for mutations.', {
+ nodes: operation
+ });
+ }
+ return mutationType;
+ }
+ if (operation.operation === 'subscription') {
+ const subscriptionType = schema.getSubscriptionType();
+ if (!subscriptionType) {
+ throw new _GraphQLError.GraphQLError('Schema is not configured for subscriptions.', {
+ nodes: operation
+ });
+ }
+ return subscriptionType;
+ }
+ throw new _GraphQLError.GraphQLError('Can only have query, mutation and subscription operations.', {
+ nodes: operation
+ });
+}
+
+/***/ }),
+
/***/ "../../../node_modules/graphql/utilities/index.mjs":
/*!*********************************************************!*\
!*** ../../../node_modules/graphql/utilities/index.mjs ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -36964,6 +53595,12 @@ Object.defineProperty(exports, "TypeInfo", ({
return _TypeInfo.TypeInfo;
}
}));
+Object.defineProperty(exports, "assertValidName", ({
+ enumerable: true,
+ get: function () {
+ return _assertValidName.assertValidName;
+ }
+}));
Object.defineProperty(exports, "astFromValue", ({
enumerable: true,
get: function () {
@@ -37036,6 +53673,12 @@ Object.defineProperty(exports, "getOperationAST", ({
return _getOperationAST.getOperationAST;
}
}));
+Object.defineProperty(exports, "getOperationRootType", ({
+ enumerable: true,
+ get: function () {
+ return _getOperationRootType.getOperationRootType;
+ }
+}));
Object.defineProperty(exports, "introspectionFromSchema", ({
enumerable: true,
get: function () {
@@ -37054,18 +53697,18 @@ Object.defineProperty(exports, "isTypeSubTypeOf", ({
return _typeComparators.isTypeSubTypeOf;
}
}));
+Object.defineProperty(exports, "isValidNameError", ({
+ enumerable: true,
+ get: function () {
+ return _assertValidName.isValidNameError;
+ }
+}));
Object.defineProperty(exports, "lexicographicSortSchema", ({
enumerable: true,
get: function () {
return _lexicographicSortSchema.lexicographicSortSchema;
}
}));
-Object.defineProperty(exports, "printDirective", ({
- enumerable: true,
- get: function () {
- return _printSchema.printDirective;
- }
-}));
Object.defineProperty(exports, "printIntrospectionSchema", ({
enumerable: true,
get: function () {
@@ -37122,6 +53765,7 @@ Object.defineProperty(exports, "visitWithTypeInfo", ({
}));
var _getIntrospectionQuery = __webpack_require__(/*! ./getIntrospectionQuery.mjs */ "../../../node_modules/graphql/utilities/getIntrospectionQuery.mjs");
var _getOperationAST = __webpack_require__(/*! ./getOperationAST.mjs */ "../../../node_modules/graphql/utilities/getOperationAST.mjs");
+var _getOperationRootType = __webpack_require__(/*! ./getOperationRootType.mjs */ "../../../node_modules/graphql/utilities/getOperationRootType.mjs");
var _introspectionFromSchema = __webpack_require__(/*! ./introspectionFromSchema.mjs */ "../../../node_modules/graphql/utilities/introspectionFromSchema.mjs");
var _buildClientSchema = __webpack_require__(/*! ./buildClientSchema.mjs */ "../../../node_modules/graphql/utilities/buildClientSchema.mjs");
var _buildASTSchema = __webpack_require__(/*! ./buildASTSchema.mjs */ "../../../node_modules/graphql/utilities/buildASTSchema.mjs");
@@ -37138,6 +53782,7 @@ var _concatAST = __webpack_require__(/*! ./concatAST.mjs */ "../../../node_modul
var _separateOperations = __webpack_require__(/*! ./separateOperations.mjs */ "../../../node_modules/graphql/utilities/separateOperations.mjs");
var _stripIgnoredCharacters = __webpack_require__(/*! ./stripIgnoredCharacters.mjs */ "../../../node_modules/graphql/utilities/stripIgnoredCharacters.mjs");
var _typeComparators = __webpack_require__(/*! ./typeComparators.mjs */ "../../../node_modules/graphql/utilities/typeComparators.mjs");
+var _assertValidName = __webpack_require__(/*! ./assertValidName.mjs */ "../../../node_modules/graphql/utilities/assertValidName.mjs");
var _findBreakingChanges = __webpack_require__(/*! ./findBreakingChanges.mjs */ "../../../node_modules/graphql/utilities/findBreakingChanges.mjs");
/***/ }),
@@ -37148,6 +53793,7 @@ var _findBreakingChanges = __webpack_require__(/*! ./findBreakingChanges.mjs */
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -37167,6 +53813,7 @@ var _getIntrospectionQuery = __webpack_require__(/*! ./getIntrospectionQuery.mjs
* This is the inverse of buildClientSchema. The primary use case is outside
* of the server context, for instance when doing schema comparisons.
*/
+
function introspectionFromSchema(schema, options) {
const optionsWithDefaults = {
specifiedByUrl: true,
@@ -37181,7 +53828,7 @@ function introspectionFromSchema(schema, options) {
schema,
document
});
- result.errors == null && result.data != null || (0, _invariant.invariant)(false);
+ !result.errors && result.data || (0, _invariant.invariant)(false);
return result.data;
}
@@ -37193,6 +53840,7 @@ function introspectionFromSchema(schema, options) {
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -37201,6 +53849,7 @@ Object.defineProperty(exports, "__esModule", ({
exports.lexicographicSortSchema = lexicographicSortSchema;
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _invariant = __webpack_require__(/*! ../jsutils/invariant.mjs */ "../../../node_modules/graphql/jsutils/invariant.mjs");
+var _keyValMap = __webpack_require__(/*! ../jsutils/keyValMap.mjs */ "../../../node_modules/graphql/jsutils/keyValMap.mjs");
var _naturalCompare = __webpack_require__(/*! ../jsutils/naturalCompare.mjs */ "../../../node_modules/graphql/jsutils/naturalCompare.mjs");
var _definition = __webpack_require__(/*! ../type/definition.mjs */ "../../../node_modules/graphql/type/definition.mjs");
var _directives = __webpack_require__(/*! ../type/directives.mjs */ "../../../node_modules/graphql/type/directives.mjs");
@@ -37211,12 +53860,13 @@ var _schema = __webpack_require__(/*! ../type/schema.mjs */ "../../../node_modul
*
* This function returns a sorted copy of the given GraphQLSchema.
*/
+
function lexicographicSortSchema(schema) {
const schemaConfig = schema.toConfig();
- const typeMap = new Map(sortByName(schemaConfig.types).map(type => [type.name, sortNamedType(type)]));
+ const typeMap = (0, _keyValMap.keyValMap)(sortByName(schemaConfig.types), type => type.name, sortNamedType);
return new _schema.GraphQLSchema({
...schemaConfig,
- types: Array.from(typeMap.values()),
+ types: Object.values(typeMap),
directives: sortByName(schemaConfig.directives).map(sortDirective),
query: replaceMaybeType(schemaConfig.query),
mutation: replaceMaybeType(schemaConfig.mutation),
@@ -37229,12 +53879,12 @@ function lexicographicSortSchema(schema) {
} else if ((0, _definition.isNonNullType)(type)) {
// @ts-expect-error
return new _definition.GraphQLNonNull(replaceType(type.ofType));
- }
- // @ts-expect-error FIXME: TS Conversion
+ } // @ts-expect-error FIXME: TS Conversion
+
return replaceNamedType(type);
}
function replaceNamedType(type) {
- return typeMap.get(type.name);
+ return typeMap[type.name];
}
function replaceMaybeType(maybeType) {
return maybeType && replaceNamedType(maybeType);
@@ -37312,6 +53962,7 @@ function lexicographicSortSchema(schema) {
}
/* c8 ignore next 3 */
// Not reachable, all possible types have been considered.
+
false || (0, _invariant.invariant)(false, 'Unexpected type: ' + (0, _inspect.inspect)(type));
}
}
@@ -37341,12 +53992,12 @@ function sortBy(array, mapToKey) {
\***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
-exports.printDirective = printDirective;
exports.printIntrospectionSchema = printIntrospectionSchema;
exports.printSchema = printSchema;
exports.printType = printType;
@@ -37375,19 +54026,23 @@ function printFilteredSchema(schema, directiveFilter, typeFilter) {
return [printSchemaDefinition(schema), ...directives.map(directive => printDirective(directive)), ...types.map(type => printType(type))].filter(Boolean).join('\n\n');
}
function printSchemaDefinition(schema) {
- const queryType = schema.getQueryType();
- const mutationType = schema.getMutationType();
- const subscriptionType = schema.getSubscriptionType();
- // Special case: When a schema has no root operation types, no valid schema
- // definition can be printed.
- if (!queryType && !mutationType && !subscriptionType) {
+ if (schema.description == null && isSchemaOfCommonNames(schema)) {
return;
}
- // Only print a schema definition if there is a description or if it should
- // not be omitted because of having default type names.
- if (schema.description != null || !hasDefaultRootOperationTypes(schema)) {
- return printDescription(schema) + 'schema {\n' + (queryType ? ` query: ${queryType.name}\n` : '') + (mutationType ? ` mutation: ${mutationType.name}\n` : '') + (subscriptionType ? ` subscription: ${subscriptionType.name}\n` : '') + '}';
+ const operationTypes = [];
+ const queryType = schema.getQueryType();
+ if (queryType) {
+ operationTypes.push(` query: ${queryType.name}`);
}
+ const mutationType = schema.getMutationType();
+ if (mutationType) {
+ operationTypes.push(` mutation: ${mutationType.name}`);
+ }
+ const subscriptionType = schema.getSubscriptionType();
+ if (subscriptionType) {
+ operationTypes.push(` subscription: ${subscriptionType.name}`);
+ }
+ return printDescription(schema) + `schema {\n${operationTypes.join('\n')}\n}`;
}
/**
* GraphQL schema define root types for each type of operation. These types are
@@ -37402,16 +54057,23 @@ function printSchemaDefinition(schema) {
* }
* ```
*
- * When using this naming convention, the schema description can be omitted so
- * long as these names are only used for operation types.
- *
- * Note however that if any of these default names are used elsewhere in the
- * schema but not as a root operation type, the schema definition must still
- * be printed to avoid ambiguity.
+ * When using this naming convention, the schema description can be omitted.
*/
-function hasDefaultRootOperationTypes(schema) {
- /* eslint-disable eqeqeq */
- return schema.getQueryType() == schema.getType('Query') && schema.getMutationType() == schema.getType('Mutation') && schema.getSubscriptionType() == schema.getType('Subscription');
+
+function isSchemaOfCommonNames(schema) {
+ const queryType = schema.getQueryType();
+ if (queryType && queryType.name !== 'Query') {
+ return false;
+ }
+ const mutationType = schema.getMutationType();
+ if (mutationType && mutationType.name !== 'Mutation') {
+ return false;
+ }
+ const subscriptionType = schema.getSubscriptionType();
+ if (subscriptionType && subscriptionType.name !== 'Subscription') {
+ return false;
+ }
+ return true;
}
function printType(type) {
if ((0, _definition.isScalarType)(type)) {
@@ -37434,6 +54096,7 @@ function printType(type) {
}
/* c8 ignore next 3 */
// Not reachable, all possible types have been considered.
+
false || (0, _invariant.invariant)(false, 'Unexpected type: ' + (0, _inspect.inspect)(type));
}
function printScalar(type) {
@@ -37472,9 +54135,9 @@ function printBlock(items) {
function printArgs(args, indentation = '') {
if (args.length === 0) {
return '';
- }
- // If every arg does not have a description, print them on one line.
- if (args.every(arg => arg.description == null)) {
+ } // If every arg does not have a description, print them on one line.
+
+ if (args.every(arg => !arg.description)) {
return '(' + args.map(printInputValue).join(', ') + ')';
}
return '(\n' + args.map((arg, i) => printDescription(arg, ' ' + indentation, !i) + ' ' + indentation + printInputValue(arg)).join('\n') + '\n' + indentation + ')';
@@ -37526,7 +54189,7 @@ function printDescription(def, indentation = '', firstInBlock = true) {
block: (0, _blockString.isPrintableAsBlockString)(description)
});
const prefix = indentation && !firstInBlock ? '\n' + indentation : indentation;
- return prefix + blockString.replaceAll('\n', '\n' + indentation) + '\n';
+ return prefix + blockString.replace(/\n/g, '\n' + indentation) + '\n';
}
/***/ }),
@@ -37537,6 +54200,7 @@ function printDescription(def, indentation = '', firstInBlock = true) {
\**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -37551,10 +54215,11 @@ var _visitor = __webpack_require__(/*! ../language/visitor.mjs */ "../../../node
* which contains a single operation as well the fragment definitions it
* refers to.
*/
+
function separateOperations(documentAST) {
const operations = [];
- const depGraph = Object.create(null);
- // Populate metadata and build a dependency graph.
+ const depGraph = Object.create(null); // Populate metadata and build a dependency graph.
+
for (const definitionNode of documentAST.definitions) {
switch (definitionNode.kind) {
case _kinds.Kind.OPERATION_DEFINITION:
@@ -37563,22 +54228,21 @@ function separateOperations(documentAST) {
case _kinds.Kind.FRAGMENT_DEFINITION:
depGraph[definitionNode.name.value] = collectDependencies(definitionNode.selectionSet);
break;
- default:
- // ignore non-executable definitions
+ default: // ignore non-executable definitions
}
- }
- // For each operation, produce a new synthesized AST which includes only what
+ } // For each operation, produce a new synthesized AST which includes only what
// is necessary for completing that operation.
+
const separatedDocumentASTs = Object.create(null);
for (const operation of operations) {
const dependencies = new Set();
for (const fragmentName of collectDependencies(operation.selectionSet)) {
collectTransitiveDependencies(dependencies, depGraph, fragmentName);
- }
- // Provides the empty string for anonymous operations.
- const operationName = operation.name ? operation.name.value : '';
- // The list of definition nodes to be included for this operation, sorted
+ } // Provides the empty string for anonymous operations.
+
+ const operationName = operation.name ? operation.name.value : ''; // The list of definition nodes to be included for this operation, sorted
// to retain the same order as the original document.
+
separatedDocumentASTs[operationName] = {
kind: _kinds.Kind.DOCUMENT,
definitions: documentAST.definitions.filter(node => node === operation || node.kind === _kinds.Kind.FRAGMENT_DEFINITION && dependencies.has(node.name.value))
@@ -37586,6 +54250,7 @@ function separateOperations(documentAST) {
}
return separatedDocumentASTs;
}
+
// From a dependency graph, collects a list of transitive dependencies by
// recursing through a dependency graph.
function collectTransitiveDependencies(collected, depGraph, fromName) {
@@ -37617,6 +54282,7 @@ function collectDependencies(selectionSet) {
\*****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -37632,6 +54298,7 @@ var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_mod
*
* @internal
*/
+
function sortValueNode(valueNode) {
switch (valueNode.kind) {
case _kinds.Kind.OBJECT:
@@ -37669,6 +54336,7 @@ function sortFields(fields) {
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -37739,6 +54407,7 @@ var _tokenKind = __webpack_require__(/*! ../language/tokenKind.mjs */ "../../../
* """Type description""" type Foo{"""Field description""" bar:String}
* ```
*/
+
function stripIgnoredCharacters(source) {
const sourceObj = (0, _source.isSource)(source) ? source : new _source.Source(source);
const body = sourceObj.body;
@@ -37753,6 +54422,7 @@ function stripIgnoredCharacters(source) {
* Also prevent case of non-punctuator token following by spread resulting
* in invalid token (e.g. `1...` is invalid Float token).
*/
+
const isNonPunctuator = !(0, _lexer.isPunctuatorTokenKind)(currentToken.kind);
if (wasLastAddedTokenNonPunctuator) {
if (isNonPunctuator || currentToken.kind === _tokenKind.TokenKind.SPREAD) {
@@ -37780,6 +54450,7 @@ function stripIgnoredCharacters(source) {
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -37796,28 +54467,29 @@ function isEqualType(typeA, typeB) {
// Equivalent types are equal.
if (typeA === typeB) {
return true;
- }
- // If either type is non-null, the other must also be non-null.
+ } // If either type is non-null, the other must also be non-null.
+
if ((0, _definition.isNonNullType)(typeA) && (0, _definition.isNonNullType)(typeB)) {
return isEqualType(typeA.ofType, typeB.ofType);
- }
- // If either type is a list, the other must also be a list.
+ } // If either type is a list, the other must also be a list.
+
if ((0, _definition.isListType)(typeA) && (0, _definition.isListType)(typeB)) {
return isEqualType(typeA.ofType, typeB.ofType);
- }
- // Otherwise the types are not equal.
+ } // Otherwise the types are not equal.
+
return false;
}
/**
* Provided a type and a super type, return true if the first type is either
* equal or a subset of the second super type (covariant).
*/
+
function isTypeSubTypeOf(schema, maybeSubType, superType) {
// Equivalent type is a valid subtype
if (maybeSubType === superType) {
return true;
- }
- // If superType is non-null, maybeSubType must also be non-null.
+ } // If superType is non-null, maybeSubType must also be non-null.
+
if ((0, _definition.isNonNullType)(superType)) {
if ((0, _definition.isNonNullType)(maybeSubType)) {
return isTypeSubTypeOf(schema, maybeSubType.ofType, superType.ofType);
@@ -37827,8 +54499,8 @@ function isTypeSubTypeOf(schema, maybeSubType, superType) {
if ((0, _definition.isNonNullType)(maybeSubType)) {
// If superType is nullable, maybeSubType may be non-null or nullable.
return isTypeSubTypeOf(schema, maybeSubType.ofType, superType);
- }
- // If superType type is a list, maybeSubType type must also be a list.
+ } // If superType type is a list, maybeSubType type must also be a list.
+
if ((0, _definition.isListType)(superType)) {
if ((0, _definition.isListType)(maybeSubType)) {
return isTypeSubTypeOf(schema, maybeSubType.ofType, superType.ofType);
@@ -37838,9 +54510,9 @@ function isTypeSubTypeOf(schema, maybeSubType, superType) {
if ((0, _definition.isListType)(maybeSubType)) {
// If superType is not a list, maybeSubType must also be not a list.
return false;
- }
- // If superType type is an abstract type, check if it is super type of maybeSubType.
+ } // If superType type is an abstract type, check if it is super type of maybeSubType.
// Otherwise, the child type is not a valid subtype of the parent type.
+
return (0, _definition.isAbstractType)(superType) && ((0, _definition.isInterfaceType)(maybeSubType) || (0, _definition.isObjectType)(maybeSubType)) && schema.isSubType(superType, maybeSubType);
}
/**
@@ -37852,6 +54524,7 @@ function isTypeSubTypeOf(schema, maybeSubType, superType) {
*
* This function is commutative.
*/
+
function doTypesOverlap(schema, typeA, typeB) {
// Equivalent types overlap
if (typeA === typeB) {
@@ -37862,15 +54535,15 @@ function doTypesOverlap(schema, typeA, typeB) {
// If both types are abstract, then determine if there is any intersection
// between possible concrete types of each.
return schema.getPossibleTypes(typeA).some(type => schema.isSubType(typeB, type));
- }
- // Determine if the latter type is a possible concrete type of the former.
+ } // Determine if the latter type is a possible concrete type of the former.
+
return schema.isSubType(typeA, typeB);
}
if ((0, _definition.isAbstractType)(typeB)) {
// Determine if the former type is a possible concrete type of the latter.
return schema.isSubType(typeB, typeA);
- }
- // Otherwise the types do not overlap.
+ } // Otherwise the types do not overlap.
+
return false;
}
@@ -37882,6 +54555,7 @@ function doTypesOverlap(schema, typeA, typeB) {
\***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -37915,6 +54589,7 @@ function typeFromAST(schema, typeNode) {
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -37923,6 +54598,7 @@ Object.defineProperty(exports, "__esModule", ({
exports.valueFromAST = valueFromAST;
var _inspect = __webpack_require__(/*! ../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
var _invariant = __webpack_require__(/*! ../jsutils/invariant.mjs */ "../../../node_modules/graphql/jsutils/invariant.mjs");
+var _keyMap = __webpack_require__(/*! ../jsutils/keyMap.mjs */ "../../../node_modules/graphql/jsutils/keyMap.mjs");
var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
var _definition = __webpack_require__(/*! ../type/definition.mjs */ "../../../node_modules/graphql/type/definition.mjs");
/**
@@ -37945,6 +54621,7 @@ var _definition = __webpack_require__(/*! ../type/definition.mjs */ "../../../no
* | NullValue | null |
*
*/
+
function valueFromAST(valueNode, type, variables) {
if (!valueNode) {
// When there is no node, then there is also no value.
@@ -37960,10 +54637,10 @@ function valueFromAST(valueNode, type, variables) {
const variableValue = variables[variableName];
if (variableValue === null && (0, _definition.isNonNullType)(type)) {
return; // Invalid: intentionally return no value.
- }
- // Note: This does no further checking that this variable is correct.
+ } // Note: This does no further checking that this variable is correct.
// This assumes that this query has been validated and the variable
// usage here is of the correct type.
+
return variableValue;
}
if ((0, _definition.isNonNullType)(type)) {
@@ -38009,10 +54686,10 @@ function valueFromAST(valueNode, type, variables) {
return; // Invalid: intentionally return no value.
}
const coercedObj = Object.create(null);
- const fieldNodes = new Map(valueNode.fields.map(field => [field.name.value, field]));
+ const fieldNodes = (0, _keyMap.keyMap)(valueNode.fields, field => field.name.value);
for (const field of Object.values(type.getFields())) {
- const fieldNode = fieldNodes.get(field.name);
- if (fieldNode == null || isMissingVariable(fieldNode.value, variables)) {
+ const fieldNode = fieldNodes[field.name];
+ if (!fieldNode || isMissingVariable(fieldNode.value, variables)) {
if (field.defaultValue !== undefined) {
coercedObj[field.name] = field.defaultValue;
} else if ((0, _definition.isNonNullType)(field.type)) {
@@ -38054,10 +54731,11 @@ function valueFromAST(valueNode, type, variables) {
}
/* c8 ignore next 3 */
// Not reachable, all possible input types have been considered.
+
false || (0, _invariant.invariant)(false, 'Unexpected input type: ' + (0, _inspect.inspect)(type));
-}
-// Returns true if the provided valueNode is a variable which is not defined
+} // Returns true if the provided valueNode is a variable which is not defined
// in the set of variables.
+
function isMissingVariable(valueNode, variables) {
return valueNode.kind === _kinds.Kind.VARIABLE && (variables == null || variables[valueNode.name.value] === undefined);
}
@@ -38070,6 +54748,7 @@ function isMissingVariable(valueNode, variables) {
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -38094,6 +54773,7 @@ var _kinds = __webpack_require__(/*! ../language/kinds.mjs */ "../../../node_mod
* | Null | null |
*
*/
+
function valueFromASTUntyped(valueNode, variables) {
switch (valueNode.kind) {
case _kinds.Kind.NULL:
@@ -38123,6 +54803,7 @@ function valueFromASTUntyped(valueNode, variables) {
\**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -38192,14 +54873,14 @@ class ASTValidationContext {
let fragments = this._recursivelyReferencedFragments.get(operation);
if (!fragments) {
fragments = [];
- const collectedNames = new Set();
+ const collectedNames = Object.create(null);
const nodesToVisit = [operation.selectionSet];
let node;
while (node = nodesToVisit.pop()) {
for (const spread of this.getFragmentSpreads(node)) {
const fragName = spread.name.value;
- if (!collectedNames.has(fragName)) {
- collectedNames.add(fragName);
+ if (collectedNames[fragName] !== true) {
+ collectedNames[fragName] = true;
const fragment = this.getFragment(fragName);
if (fragment) {
fragments.push(fragment);
@@ -38307,29 +54988,12 @@ exports.ValidationContext = ValidationContext;
\**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
-Object.defineProperty(exports, "DeferStreamDirectiveLabelRule", ({
- enumerable: true,
- get: function () {
- return _DeferStreamDirectiveLabelRule.DeferStreamDirectiveLabelRule;
- }
-}));
-Object.defineProperty(exports, "DeferStreamDirectiveOnRootFieldRule", ({
- enumerable: true,
- get: function () {
- return _DeferStreamDirectiveOnRootFieldRule.DeferStreamDirectiveOnRootFieldRule;
- }
-}));
-Object.defineProperty(exports, "DeferStreamDirectiveOnValidOperationsRule", ({
- enumerable: true,
- get: function () {
- return _DeferStreamDirectiveOnValidOperationsRule.DeferStreamDirectiveOnValidOperationsRule;
- }
-}));
Object.defineProperty(exports, "ExecutableDefinitionsRule", ({
enumerable: true,
get: function () {
@@ -38462,12 +55126,6 @@ Object.defineProperty(exports, "SingleFieldSubscriptionsRule", ({
return _SingleFieldSubscriptionsRule.SingleFieldSubscriptionsRule;
}
}));
-Object.defineProperty(exports, "StreamDirectiveOnListFieldRule", ({
- enumerable: true,
- get: function () {
- return _StreamDirectiveOnListFieldRule.StreamDirectiveOnListFieldRule;
- }
-}));
Object.defineProperty(exports, "UniqueArgumentDefinitionNamesRule", ({
enumerable: true,
get: function () {
@@ -38585,9 +55243,6 @@ Object.defineProperty(exports, "validate", ({
var _validate = __webpack_require__(/*! ./validate.mjs */ "../../../node_modules/graphql/validation/validate.mjs");
var _ValidationContext = __webpack_require__(/*! ./ValidationContext.mjs */ "../../../node_modules/graphql/validation/ValidationContext.mjs");
var _specifiedRules = __webpack_require__(/*! ./specifiedRules.mjs */ "../../../node_modules/graphql/validation/specifiedRules.mjs");
-var _DeferStreamDirectiveLabelRule = __webpack_require__(/*! ./rules/DeferStreamDirectiveLabelRule.mjs */ "../../../node_modules/graphql/validation/rules/DeferStreamDirectiveLabelRule.mjs");
-var _DeferStreamDirectiveOnRootFieldRule = __webpack_require__(/*! ./rules/DeferStreamDirectiveOnRootFieldRule.mjs */ "../../../node_modules/graphql/validation/rules/DeferStreamDirectiveOnRootFieldRule.mjs");
-var _DeferStreamDirectiveOnValidOperationsRule = __webpack_require__(/*! ./rules/DeferStreamDirectiveOnValidOperationsRule.mjs */ "../../../node_modules/graphql/validation/rules/DeferStreamDirectiveOnValidOperationsRule.mjs");
var _ExecutableDefinitionsRule = __webpack_require__(/*! ./rules/ExecutableDefinitionsRule.mjs */ "../../../node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs");
var _FieldsOnCorrectTypeRule = __webpack_require__(/*! ./rules/FieldsOnCorrectTypeRule.mjs */ "../../../node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs");
var _FragmentsOnCompositeTypesRule = __webpack_require__(/*! ./rules/FragmentsOnCompositeTypesRule.mjs */ "../../../node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs");
@@ -38605,7 +55260,6 @@ var _PossibleFragmentSpreadsRule = __webpack_require__(/*! ./rules/PossibleFragm
var _ProvidedRequiredArgumentsRule = __webpack_require__(/*! ./rules/ProvidedRequiredArgumentsRule.mjs */ "../../../node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs");
var _ScalarLeafsRule = __webpack_require__(/*! ./rules/ScalarLeafsRule.mjs */ "../../../node_modules/graphql/validation/rules/ScalarLeafsRule.mjs");
var _SingleFieldSubscriptionsRule = __webpack_require__(/*! ./rules/SingleFieldSubscriptionsRule.mjs */ "../../../node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs");
-var _StreamDirectiveOnListFieldRule = __webpack_require__(/*! ./rules/StreamDirectiveOnListFieldRule.mjs */ "../../../node_modules/graphql/validation/rules/StreamDirectiveOnListFieldRule.mjs");
var _UniqueArgumentNamesRule = __webpack_require__(/*! ./rules/UniqueArgumentNamesRule.mjs */ "../../../node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs");
var _UniqueDirectivesPerLocationRule = __webpack_require__(/*! ./rules/UniqueDirectivesPerLocationRule.mjs */ "../../../node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs");
var _UniqueFragmentNamesRule = __webpack_require__(/*! ./rules/UniqueFragmentNamesRule.mjs */ "../../../node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs");
@@ -38629,188 +55283,13 @@ var _NoSchemaIntrospectionCustomRule = __webpack_require__(/*! ./rules/custom/No
/***/ }),
-/***/ "../../../node_modules/graphql/validation/rules/DeferStreamDirectiveLabelRule.mjs":
-/*!****************************************************************************************!*\
- !*** ../../../node_modules/graphql/validation/rules/DeferStreamDirectiveLabelRule.mjs ***!
- \****************************************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.DeferStreamDirectiveLabelRule = DeferStreamDirectiveLabelRule;
-var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
-var _kinds = __webpack_require__(/*! ../../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
-var _directives = __webpack_require__(/*! ../../type/directives.mjs */ "../../../node_modules/graphql/type/directives.mjs");
-/**
- * Defer and stream directive labels are unique
- *
- * A GraphQL document is only valid if defer and stream directives' label argument is static and unique.
- */
-function DeferStreamDirectiveLabelRule(context) {
- const knownLabels = new Map();
- return {
- Directive(node) {
- if (node.name.value === _directives.GraphQLDeferDirective.name || node.name.value === _directives.GraphQLStreamDirective.name) {
- var _node$arguments;
- const labelArgument = (_node$arguments = node.arguments) === null || _node$arguments === void 0 ? void 0 : _node$arguments.find(arg => arg.name.value === 'label');
- const labelValue = labelArgument === null || labelArgument === void 0 ? void 0 : labelArgument.value;
- if (!labelValue) {
- return;
- }
- if (labelValue.kind !== _kinds.Kind.STRING) {
- context.reportError(new _GraphQLError.GraphQLError(`Directive "${node.name.value}"'s label argument must be a static string.`, {
- nodes: node
- }));
- return;
- }
- const knownLabel = knownLabels.get(labelValue.value);
- if (knownLabel != null) {
- context.reportError(new _GraphQLError.GraphQLError('Defer/Stream directive label argument must be unique.', {
- nodes: [knownLabel, node]
- }));
- } else {
- knownLabels.set(labelValue.value, node);
- }
- }
- }
- };
-}
-
-/***/ }),
-
-/***/ "../../../node_modules/graphql/validation/rules/DeferStreamDirectiveOnRootFieldRule.mjs":
-/*!**********************************************************************************************!*\
- !*** ../../../node_modules/graphql/validation/rules/DeferStreamDirectiveOnRootFieldRule.mjs ***!
- \**********************************************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.DeferStreamDirectiveOnRootFieldRule = DeferStreamDirectiveOnRootFieldRule;
-var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
-var _directives = __webpack_require__(/*! ../../type/directives.mjs */ "../../../node_modules/graphql/type/directives.mjs");
-/**
- * Defer and stream directives are used on valid root field
- *
- * A GraphQL document is only valid if defer directives are not used on root mutation or subscription types.
- */
-function DeferStreamDirectiveOnRootFieldRule(context) {
- return {
- Directive(node) {
- const mutationType = context.getSchema().getMutationType();
- const subscriptionType = context.getSchema().getSubscriptionType();
- const parentType = context.getParentType();
- if (parentType && node.name.value === _directives.GraphQLDeferDirective.name) {
- if (mutationType && parentType === mutationType) {
- context.reportError(new _GraphQLError.GraphQLError(`Defer directive cannot be used on root mutation type "${parentType.name}".`, {
- nodes: node
- }));
- }
- if (subscriptionType && parentType === subscriptionType) {
- context.reportError(new _GraphQLError.GraphQLError(`Defer directive cannot be used on root subscription type "${parentType.name}".`, {
- nodes: node
- }));
- }
- }
- if (parentType && node.name.value === _directives.GraphQLStreamDirective.name) {
- if (mutationType && parentType === mutationType) {
- context.reportError(new _GraphQLError.GraphQLError(`Stream directive cannot be used on root mutation type "${parentType.name}".`, {
- nodes: node
- }));
- }
- if (subscriptionType && parentType === subscriptionType) {
- context.reportError(new _GraphQLError.GraphQLError(`Stream directive cannot be used on root subscription type "${parentType.name}".`, {
- nodes: node
- }));
- }
- }
- }
- };
-}
-
-/***/ }),
-
-/***/ "../../../node_modules/graphql/validation/rules/DeferStreamDirectiveOnValidOperationsRule.mjs":
-/*!****************************************************************************************************!*\
- !*** ../../../node_modules/graphql/validation/rules/DeferStreamDirectiveOnValidOperationsRule.mjs ***!
- \****************************************************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.DeferStreamDirectiveOnValidOperationsRule = DeferStreamDirectiveOnValidOperationsRule;
-var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
-var _ast = __webpack_require__(/*! ../../language/ast.mjs */ "../../../node_modules/graphql/language/ast.mjs");
-var _kinds = __webpack_require__(/*! ../../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
-var _directives = __webpack_require__(/*! ../../type/directives.mjs */ "../../../node_modules/graphql/type/directives.mjs");
-function ifArgumentCanBeFalse(node) {
- var _node$arguments;
- const ifArgument = (_node$arguments = node.arguments) === null || _node$arguments === void 0 ? void 0 : _node$arguments.find(arg => arg.name.value === 'if');
- if (!ifArgument) {
- return false;
- }
- if (ifArgument.value.kind === _kinds.Kind.BOOLEAN) {
- if (ifArgument.value.value) {
- return false;
- }
- } else if (ifArgument.value.kind !== _kinds.Kind.VARIABLE) {
- return false;
- }
- return true;
-}
-/**
- * Defer And Stream Directives Are Used On Valid Operations
- *
- * A GraphQL document is only valid if defer directives are not used on root mutation or subscription types.
- */
-function DeferStreamDirectiveOnValidOperationsRule(context) {
- const fragmentsUsedOnSubscriptions = new Set();
- return {
- OperationDefinition(operation) {
- if (operation.operation === _ast.OperationTypeNode.SUBSCRIPTION) {
- for (const fragment of context.getRecursivelyReferencedFragments(operation)) {
- fragmentsUsedOnSubscriptions.add(fragment.name.value);
- }
- }
- },
- Directive(node, _key, _parent, _path, ancestors) {
- const definitionNode = ancestors[2];
- if ('kind' in definitionNode && (definitionNode.kind === _kinds.Kind.FRAGMENT_DEFINITION && fragmentsUsedOnSubscriptions.has(definitionNode.name.value) || definitionNode.kind === _kinds.Kind.OPERATION_DEFINITION && definitionNode.operation === _ast.OperationTypeNode.SUBSCRIPTION)) {
- if (node.name.value === _directives.GraphQLDeferDirective.name) {
- if (!ifArgumentCanBeFalse(node)) {
- context.reportError(new _GraphQLError.GraphQLError('Defer directive not supported on subscription operations. Disable `@defer` by setting the `if` argument to `false`.', {
- nodes: node
- }));
- }
- } else if (node.name.value === _directives.GraphQLStreamDirective.name) {
- if (!ifArgumentCanBeFalse(node)) {
- context.reportError(new _GraphQLError.GraphQLError('Stream directive not supported on subscription operations. Disable `@stream` by setting the `if` argument to `false`.', {
- nodes: node
- }));
- }
- }
- }
- }
- };
-}
-
-/***/ }),
-
/***/ "../../../node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs":
/*!************************************************************************************!*\
!*** ../../../node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs ***!
\************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -38852,6 +55331,7 @@ function ExecutableDefinitionsRule(context) {
\**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -38880,14 +55360,14 @@ function FieldsOnCorrectTypeRule(context) {
if (!fieldDef) {
// This field doesn't exist, lets look for suggestions.
const schema = context.getSchema();
- const fieldName = node.name.value;
- // First determine if there are any suggested types to condition on.
- let suggestion = (0, _didYouMean.didYouMean)('to use an inline fragment on', getSuggestedTypeNames(schema, type, fieldName));
- // If there are no suggested types, then perhaps this was a typo?
+ const fieldName = node.name.value; // First determine if there are any suggested types to condition on.
+
+ let suggestion = (0, _didYouMean.didYouMean)('to use an inline fragment on', getSuggestedTypeNames(schema, type, fieldName)); // If there are no suggested types, then perhaps this was a typo?
+
if (suggestion === '') {
suggestion = (0, _didYouMean.didYouMean)(getSuggestedFieldNames(type, fieldName));
- }
- // Report an error, including helpful suggestions.
+ } // Report an error, including helpful suggestions.
+
context.reportError(new _GraphQLError.GraphQLError(`Cannot query field "${fieldName}" on type "${type.name}".` + suggestion, {
nodes: node
}));
@@ -38901,6 +55381,7 @@ function FieldsOnCorrectTypeRule(context) {
* they implement. If any of those types include the provided field, suggest them,
* sorted by how often the type is referenced.
*/
+
function getSuggestedTypeNames(schema, type, fieldName) {
if (!(0, _definition.isAbstractType)(type)) {
// Must be an Object type, which does not have possible fields.
@@ -38909,18 +55390,18 @@ function getSuggestedTypeNames(schema, type, fieldName) {
const suggestedTypes = new Set();
const usageCount = Object.create(null);
for (const possibleType of schema.getPossibleTypes(type)) {
- if (possibleType.getFields()[fieldName] == null) {
+ if (!possibleType.getFields()[fieldName]) {
continue;
- }
- // This object type defines this field.
+ } // This object type defines this field.
+
suggestedTypes.add(possibleType);
usageCount[possibleType.name] = 1;
for (const possibleInterface of possibleType.getInterfaces()) {
var _usageCount$possibleI;
- if (possibleInterface.getFields()[fieldName] == null) {
+ if (!possibleInterface.getFields()[fieldName]) {
continue;
- }
- // This interface type defines this field.
+ } // This interface type defines this field.
+
suggestedTypes.add(possibleInterface);
usageCount[possibleInterface.name] = ((_usageCount$possibleI = usageCount[possibleInterface.name]) !== null && _usageCount$possibleI !== void 0 ? _usageCount$possibleI : 0) + 1;
}
@@ -38930,8 +55411,8 @@ function getSuggestedTypeNames(schema, type, fieldName) {
const usageCountDiff = usageCount[typeB.name] - usageCount[typeA.name];
if (usageCountDiff !== 0) {
return usageCountDiff;
- }
- // Suggest super types first followed by subtypes
+ } // Suggest super types first followed by subtypes
+
if ((0, _definition.isInterfaceType)(typeA) && schema.isSubType(typeA, typeB)) {
return -1;
}
@@ -38945,12 +55426,13 @@ function getSuggestedTypeNames(schema, type, fieldName) {
* For the field name provided, determine if there are any similar field names
* that may be the result of a typo.
*/
+
function getSuggestedFieldNames(type, fieldName) {
if ((0, _definition.isObjectType)(type) || (0, _definition.isInterfaceType)(type)) {
const possibleFieldNames = Object.keys(type.getFields());
return (0, _suggestionList.suggestionList)(fieldName, possibleFieldNames);
- }
- // Otherwise, must be a Union type, which does not define fields.
+ } // Otherwise, must be a Union type, which does not define fields.
+
return [];
}
@@ -38962,6 +55444,7 @@ function getSuggestedFieldNames(type, fieldName) {
\****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39015,6 +55498,7 @@ function FragmentsOnCompositeTypesRule(context) {
\*********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39058,28 +55542,31 @@ function KnownArgumentNamesRule(context) {
/**
* @internal
*/
+
function KnownArgumentNamesOnDirectivesRule(context) {
- const directiveArgs = new Map();
+ const directiveArgs = Object.create(null);
const schema = context.getSchema();
const definedDirectives = schema ? schema.getDirectives() : _directives.specifiedDirectives;
for (const directive of definedDirectives) {
- directiveArgs.set(directive.name, directive.args.map(arg => arg.name));
+ directiveArgs[directive.name] = directive.args.map(arg => arg.name);
}
const astDefinitions = context.getDocument().definitions;
for (const def of astDefinitions) {
if (def.kind === _kinds.Kind.DIRECTIVE_DEFINITION) {
var _def$arguments;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
const argsNodes = (_def$arguments = def.arguments) !== null && _def$arguments !== void 0 ? _def$arguments : [];
- directiveArgs.set(def.name.value, argsNodes.map(arg => arg.name.value));
+ directiveArgs[def.name.value] = argsNodes.map(arg => arg.name.value);
}
}
return {
Directive(directiveNode) {
const directiveName = directiveNode.name.value;
- const knownArgs = directiveArgs.get(directiveName);
- if (directiveNode.arguments != null && knownArgs != null) {
+ const knownArgs = directiveArgs[directiveName];
+ if (directiveNode.arguments && knownArgs) {
for (const argNode of directiveNode.arguments) {
const argName = argNode.name.value;
if (!knownArgs.includes(argName)) {
@@ -39103,6 +55590,7 @@ function KnownArgumentNamesOnDirectivesRule(context) {
\******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39125,30 +55613,30 @@ var _directives = __webpack_require__(/*! ../../type/directives.mjs */ "../../..
* See https://spec.graphql.org/draft/#sec-Directives-Are-Defined
*/
function KnownDirectivesRule(context) {
- const locationsMap = new Map();
+ const locationsMap = Object.create(null);
const schema = context.getSchema();
const definedDirectives = schema ? schema.getDirectives() : _directives.specifiedDirectives;
for (const directive of definedDirectives) {
- locationsMap.set(directive.name, directive.locations);
+ locationsMap[directive.name] = directive.locations;
}
const astDefinitions = context.getDocument().definitions;
for (const def of astDefinitions) {
if (def.kind === _kinds.Kind.DIRECTIVE_DEFINITION) {
- locationsMap.set(def.name.value, def.locations.map(name => name.value));
+ locationsMap[def.name.value] = def.locations.map(name => name.value);
}
}
return {
Directive(node, _key, _parent, _path, ancestors) {
const name = node.name.value;
- const locations = locationsMap.get(name);
- if (locations == null) {
+ const locations = locationsMap[name];
+ if (!locations) {
context.reportError(new _GraphQLError.GraphQLError(`Unknown directive "@${name}".`, {
nodes: node
}));
return;
}
const candidateLocation = getDirectiveLocationForASTPath(ancestors);
- if (candidateLocation != null && !locations.includes(candidateLocation)) {
+ if (candidateLocation && !locations.includes(candidateLocation)) {
context.reportError(new _GraphQLError.GraphQLError(`Directive "@${name}" may not be used on ${candidateLocation}.`, {
nodes: node
}));
@@ -39157,8 +55645,8 @@ function KnownDirectivesRule(context) {
};
}
function getDirectiveLocationForASTPath(ancestors) {
- const appliedTo = ancestors.at(-1);
- appliedTo != null && 'kind' in appliedTo || (0, _invariant.invariant)(false);
+ const appliedTo = ancestors[ancestors.length - 1];
+ 'kind' in appliedTo || (0, _invariant.invariant)(false);
switch (appliedTo.kind) {
case _kinds.Kind.OPERATION_DEFINITION:
return getDirectiveLocationForOperation(appliedTo.operation);
@@ -39199,12 +55687,14 @@ function getDirectiveLocationForASTPath(ancestors) {
return _directiveLocation.DirectiveLocation.INPUT_OBJECT;
case _kinds.Kind.INPUT_VALUE_DEFINITION:
{
- const parentNode = ancestors.at(-3);
- parentNode != null && 'kind' in parentNode || (0, _invariant.invariant)(false);
+ const parentNode = ancestors[ancestors.length - 3];
+ 'kind' in parentNode || (0, _invariant.invariant)(false);
return parentNode.kind === _kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION ? _directiveLocation.DirectiveLocation.INPUT_FIELD_DEFINITION : _directiveLocation.DirectiveLocation.ARGUMENT_DEFINITION;
}
// Not reachable, all possible types have been considered.
- /* c8 ignore next 2 */
+
+ /* c8 ignore next */
+
default:
false || (0, _invariant.invariant)(false, 'Unexpected kind: ' + (0, _inspect.inspect)(appliedTo.kind));
}
@@ -39228,6 +55718,7 @@ function getDirectiveLocationForOperation(operation) {
\*********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39265,6 +55756,7 @@ function KnownFragmentNamesRule(context) {
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39286,23 +55778,26 @@ var _scalars = __webpack_require__(/*! ../../type/scalars.mjs */ "../../../node_
* See https://spec.graphql.org/draft/#sec-Fragment-Spread-Type-Existence
*/
function KnownTypeNamesRule(context) {
- var _context$getSchema$ge, _context$getSchema;
- const {
- definitions
- } = context.getDocument();
- const existingTypesMap = (_context$getSchema$ge = (_context$getSchema = context.getSchema()) === null || _context$getSchema === void 0 ? void 0 : _context$getSchema.getTypeMap()) !== null && _context$getSchema$ge !== void 0 ? _context$getSchema$ge : {};
- const typeNames = new Set([...Object.keys(existingTypesMap), ...definitions.filter(_predicates.isTypeDefinitionNode).map(def => def.name.value)]);
+ const schema = context.getSchema();
+ const existingTypesMap = schema ? schema.getTypeMap() : Object.create(null);
+ const definedTypes = Object.create(null);
+ for (const def of context.getDocument().definitions) {
+ if ((0, _predicates.isTypeDefinitionNode)(def)) {
+ definedTypes[def.name.value] = true;
+ }
+ }
+ const typeNames = [...Object.keys(existingTypesMap), ...Object.keys(definedTypes)];
return {
NamedType(node, _1, parent, _2, ancestors) {
const typeName = node.name.value;
- if (!typeNames.has(typeName)) {
+ if (!existingTypesMap[typeName] && !definedTypes[typeName]) {
var _ancestors$;
const definitionNode = (_ancestors$ = ancestors[2]) !== null && _ancestors$ !== void 0 ? _ancestors$ : parent;
const isSDL = definitionNode != null && isSDLNode(definitionNode);
- if (isSDL && standardTypeNames.has(typeName)) {
+ if (isSDL && standardTypeNames.includes(typeName)) {
return;
}
- const suggestedTypes = (0, _suggestionList.suggestionList)(typeName, isSDL ? [...standardTypeNames, ...typeNames] : [...typeNames]);
+ const suggestedTypes = (0, _suggestionList.suggestionList)(typeName, isSDL ? standardTypeNames.concat(typeNames) : typeNames);
context.reportError(new _GraphQLError.GraphQLError(`Unknown type "${typeName}".` + (0, _didYouMean.didYouMean)(suggestedTypes), {
nodes: node
}));
@@ -39310,7 +55805,7 @@ function KnownTypeNamesRule(context) {
}
};
}
-const standardTypeNames = new Set([..._scalars.specifiedScalarTypes, ..._introspection.introspectionTypes].map(type => type.name));
+const standardTypeNames = [..._scalars.specifiedScalarTypes, ..._introspection.introspectionTypes].map(type => type.name);
function isSDLNode(value) {
return 'kind' in value && ((0, _predicates.isTypeSystemDefinitionNode)(value) || (0, _predicates.isTypeSystemExtensionNode)(value));
}
@@ -39323,6 +55818,7 @@ function isSDLNode(value) {
\*************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39363,6 +55859,7 @@ function LoneAnonymousOperationRule(context) {
\***********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39406,6 +55903,7 @@ function LoneSchemaDefinitionRule(context) {
\************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39429,14 +55927,14 @@ function MaxIntrospectionDepthRule(context) {
}
const fragment = context.getFragment(fragmentName);
if (!fragment) {
- // Missing fragments checks are handled by the `KnownFragmentNamesRule`.
+ // Missing fragments checks are handled by `KnownFragmentNamesRule`.
return false;
- }
- // Rather than following an immutable programming pattern which has
+ } // Rather than following an immutable programming pattern which has
// significant memory and garbage collection overhead, we've opted to
// take a mutable approach for efficiency's sake. Importantly visiting a
// fragment twice is fine, so long as you don't do one visit inside the
// other.
+
try {
visitedFragments[fragmentName] = true;
return checkDepth(fragment, visitedFragments, depth);
@@ -39446,15 +55944,14 @@ function MaxIntrospectionDepthRule(context) {
}
if (node.kind === _kinds.Kind.FIELD && (
// check all introspection lists
- // TODO: instead of relying on field names, check whether the type is a list
node.name.value === 'fields' || node.name.value === 'interfaces' || node.name.value === 'possibleTypes' || node.name.value === 'inputFields')) {
// eslint-disable-next-line no-param-reassign
depth++;
if (depth >= MAX_LISTS_DEPTH) {
return true;
}
- }
- // handles fields and inline fragments
+ } // handles fields and inline fragments
+
if ('selectionSet' in node && node.selectionSet) {
for (const child of node.selectionSet.selections) {
if (checkDepth(child, visitedFragments, depth)) {
@@ -39486,6 +55983,7 @@ function MaxIntrospectionDepthRule(context) {
\*******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39504,10 +56002,10 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
function NoFragmentCyclesRule(context) {
// Tracks already visited fragments to maintain O(N) and to ensure that cycles
// are not redundantly reported.
- const visitedFrags = new Set();
- // Array of AST nodes used to produce meaningful errors
- const spreadPath = [];
- // Position in the spread path
+ const visitedFrags = Object.create(null); // Array of AST nodes used to produce meaningful errors
+
+ const spreadPath = []; // Position in the spread path
+
const spreadPathIndexByName = Object.create(null);
return {
OperationDefinition: () => false,
@@ -39515,16 +56013,16 @@ function NoFragmentCyclesRule(context) {
detectCycleRecursive(node);
return false;
}
- };
- // This does a straight-forward DFS to find cycles.
+ }; // This does a straight-forward DFS to find cycles.
// It does not terminate when a cycle was found but continues to explore
// the graph to find all possible cycles.
+
function detectCycleRecursive(fragment) {
- if (visitedFrags.has(fragment.name.value)) {
+ if (visitedFrags[fragment.name.value]) {
return;
}
const fragmentName = fragment.name.value;
- visitedFrags.add(fragmentName);
+ visitedFrags[fragmentName] = true;
const spreadNodes = context.getFragmentSpreads(fragment.selectionSet);
if (spreadNodes.length === 0) {
return;
@@ -39560,6 +56058,7 @@ function NoFragmentCyclesRule(context) {
\***********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39576,21 +56075,28 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
* See https://spec.graphql.org/draft/#sec-All-Variable-Uses-Defined
*/
function NoUndefinedVariablesRule(context) {
+ let variableNameDefined = Object.create(null);
return {
- OperationDefinition(operation) {
- var _operation$variableDe;
- const variableNameDefined = new Set((_operation$variableDe = operation.variableDefinitions) === null || _operation$variableDe === void 0 ? void 0 : _operation$variableDe.map(node => node.variable.name.value));
- const usages = context.getRecursiveVariableUsages(operation);
- for (const {
- node
- } of usages) {
- const varName = node.name.value;
- if (!variableNameDefined.has(varName)) {
- context.reportError(new _GraphQLError.GraphQLError(operation.name ? `Variable "$${varName}" is not defined by operation "${operation.name.value}".` : `Variable "$${varName}" is not defined.`, {
- nodes: [node, operation]
- }));
+ OperationDefinition: {
+ enter() {
+ variableNameDefined = Object.create(null);
+ },
+ leave(operation) {
+ const usages = context.getRecursiveVariableUsages(operation);
+ for (const {
+ node
+ } of usages) {
+ const varName = node.name.value;
+ if (variableNameDefined[varName] !== true) {
+ context.reportError(new _GraphQLError.GraphQLError(operation.name ? `Variable "$${varName}" is not defined by operation "${operation.name.value}".` : `Variable "$${varName}" is not defined.`, {
+ nodes: [node, operation]
+ }));
+ }
}
}
+ },
+ VariableDefinition(node) {
+ variableNameDefined[node.variable.name.value] = true;
}
};
}
@@ -39603,6 +56109,7 @@ function NoUndefinedVariablesRule(context) {
\********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39619,13 +56126,11 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
* See https://spec.graphql.org/draft/#sec-Fragments-Must-Be-Used
*/
function NoUnusedFragmentsRule(context) {
- const fragmentNameUsed = new Set();
+ const operationDefs = [];
const fragmentDefs = [];
return {
- OperationDefinition(operation) {
- for (const fragment of context.getRecursivelyReferencedFragments(operation)) {
- fragmentNameUsed.add(fragment.name.value);
- }
+ OperationDefinition(node) {
+ operationDefs.push(node);
return false;
},
FragmentDefinition(node) {
@@ -39634,9 +56139,15 @@ function NoUnusedFragmentsRule(context) {
},
Document: {
leave() {
+ const fragmentNameUsed = Object.create(null);
+ for (const operation of operationDefs) {
+ for (const fragment of context.getRecursivelyReferencedFragments(operation)) {
+ fragmentNameUsed[fragment.name.value] = true;
+ }
+ }
for (const fragmentDef of fragmentDefs) {
const fragName = fragmentDef.name.value;
- if (!fragmentNameUsed.has(fragName)) {
+ if (fragmentNameUsed[fragName] !== true) {
context.reportError(new _GraphQLError.GraphQLError(`Fragment "${fragName}" is never used.`, {
nodes: fragmentDef
}));
@@ -39655,6 +56166,7 @@ function NoUnusedFragmentsRule(context) {
\********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39671,24 +56183,32 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
* See https://spec.graphql.org/draft/#sec-All-Variables-Used
*/
function NoUnusedVariablesRule(context) {
+ let variableDefs = [];
return {
- OperationDefinition(operation) {
- var _operation$variableDe;
- const usages = context.getRecursiveVariableUsages(operation);
- const variableNameUsed = new Set(usages.map(({
- node
- }) => node.name.value));
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
- /* c8 ignore next */
- const variableDefinitions = (_operation$variableDe = operation.variableDefinitions) !== null && _operation$variableDe !== void 0 ? _operation$variableDe : [];
- for (const variableDef of variableDefinitions) {
- const variableName = variableDef.variable.name.value;
- if (!variableNameUsed.has(variableName)) {
- context.reportError(new _GraphQLError.GraphQLError(operation.name ? `Variable "$${variableName}" is never used in operation "${operation.name.value}".` : `Variable "$${variableName}" is never used.`, {
- nodes: variableDef
- }));
+ OperationDefinition: {
+ enter() {
+ variableDefs = [];
+ },
+ leave(operation) {
+ const variableNameUsed = Object.create(null);
+ const usages = context.getRecursiveVariableUsages(operation);
+ for (const {
+ node
+ } of usages) {
+ variableNameUsed[node.name.value] = true;
+ }
+ for (const variableDef of variableDefs) {
+ const variableName = variableDef.variable.name.value;
+ if (variableNameUsed[variableName] !== true) {
+ context.reportError(new _GraphQLError.GraphQLError(operation.name ? `Variable "$${variableName}" is never used in operation "${operation.name.value}".` : `Variable "$${variableName}" is never used.`, {
+ nodes: variableDef
+ }));
+ }
}
}
+ },
+ VariableDefinition(def) {
+ variableDefs.push(def);
}
};
}
@@ -39701,6 +56221,7 @@ function NoUnusedVariablesRule(context) {
\*******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -39714,9 +56235,6 @@ var _printer = __webpack_require__(/*! ../../language/printer.mjs */ "../../../n
var _definition = __webpack_require__(/*! ../../type/definition.mjs */ "../../../node_modules/graphql/type/definition.mjs");
var _sortValueNode = __webpack_require__(/*! ../../utilities/sortValueNode.mjs */ "../../../node_modules/graphql/utilities/sortValueNode.mjs");
var _typeFromAST = __webpack_require__(/*! ../../utilities/typeFromAST.mjs */ "../../../node_modules/graphql/utilities/typeFromAST.mjs");
-/* eslint-disable max-params */
-// This file contains a lot of such errors but we plan to refactor it anyway
-// so just disable it for entire file.
function reasonMessage(reason) {
if (Array.isArray(reason)) {
return reason.map(([responseName, subReason]) => `subfields "${responseName}" conflict because ` + reasonMessage(subReason)).join(' and ');
@@ -39732,14 +56250,15 @@ function reasonMessage(reason) {
*
* See https://spec.graphql.org/draft/#sec-Field-Selection-Merging
*/
+
function OverlappingFieldsCanBeMergedRule(context) {
// A memoization for when two fragments are compared "between" each other for
// conflicts. Two fragments may be compared many times, so memoizing this can
// dramatically improve the performance of this validator.
- const comparedFragmentPairs = new PairSet();
- // A cache for the "field map" and list of fragment names found in any given
+ const comparedFragmentPairs = new PairSet(); // A cache for the "field map" and list of fragment names found in any given
// selection set. Selection sets may be asked for this information multiple
// times, so this improves the performance of this validator.
+
const cachedFieldsAndFragmentNames = new Map();
return {
SelectionSet(selectionSet) {
@@ -39753,6 +56272,7 @@ function OverlappingFieldsCanBeMergedRule(context) {
}
};
}
+
/**
* Algorithm:
*
@@ -39812,43 +56332,43 @@ function OverlappingFieldsCanBeMergedRule(context) {
// GraphQL Document.
function findConflictsWithinSelectionSet(context, cachedFieldsAndFragmentNames, comparedFragmentPairs, parentType, selectionSet) {
const conflicts = [];
- const [fieldMap, fragmentNames] = getFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, parentType, selectionSet);
- // (A) Find find all conflicts "within" the fields of this selection set.
+ const [fieldMap, fragmentNames] = getFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, parentType, selectionSet); // (A) Find find all conflicts "within" the fields of this selection set.
// Note: this is the *only place* `collectConflictsWithin` is called.
+
collectConflictsWithin(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, fieldMap);
if (fragmentNames.length !== 0) {
// (B) Then collect conflicts between these fields and those represented by
// each spread fragment name found.
for (let i = 0; i < fragmentNames.length; i++) {
- collectConflictsBetweenFieldsAndFragment(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, false, fieldMap, fragmentNames[i]);
- // (C) Then compare this fragment with all other fragments found in this
+ collectConflictsBetweenFieldsAndFragment(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, false, fieldMap, fragmentNames[i]); // (C) Then compare this fragment with all other fragments found in this
// selection set to collect conflicts between fragments spread together.
// This compares each item in the list of fragment names to every other
// item in that same list (except for itself).
+
for (let j = i + 1; j < fragmentNames.length; j++) {
collectConflictsBetweenFragments(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, false, fragmentNames[i], fragmentNames[j]);
}
}
}
return conflicts;
-}
-// Collect all conflicts found between a set of fields and a fragment reference
+} // Collect all conflicts found between a set of fields and a fragment reference
// including via spreading in any nested fragments.
+
function collectConflictsBetweenFieldsAndFragment(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap, fragmentName) {
const fragment = context.getFragment(fragmentName);
if (!fragment) {
return;
}
- const [fieldMap2, referencedFragmentNames] = getReferencedFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, fragment);
- // Do not compare a fragment's fieldMap to itself.
+ const [fieldMap2, referencedFragmentNames] = getReferencedFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, fragment); // Do not compare a fragment's fieldMap to itself.
+
if (fieldMap === fieldMap2) {
return;
- }
- // (D) First collect any conflicts between the provided collection of fields
+ } // (D) First collect any conflicts between the provided collection of fields
// and the collection of fields represented by the given fragment.
- collectConflictsBetween(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap, fieldMap2);
- // (E) Then collect any conflicts between the provided collection of fields
+
+ collectConflictsBetween(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap, fieldMap2); // (E) Then collect any conflicts between the provided collection of fields
// and any fragment names found in the given fragment.
+
for (const referencedFragmentName of referencedFragmentNames) {
// Memoize so two fragments are not compared for conflicts more than once.
if (comparedFragmentPairs.has(referencedFragmentName, fragmentName, areMutuallyExclusive)) {
@@ -39857,15 +56377,15 @@ function collectConflictsBetweenFieldsAndFragment(context, conflicts, cachedFiel
comparedFragmentPairs.add(referencedFragmentName, fragmentName, areMutuallyExclusive);
collectConflictsBetweenFieldsAndFragment(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap, referencedFragmentName);
}
-}
-// Collect all conflicts found between two fragments, including via spreading in
+} // Collect all conflicts found between two fragments, including via spreading in
// any nested fragments.
+
function collectConflictsBetweenFragments(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fragmentName1, fragmentName2) {
// No need to compare a fragment to itself.
if (fragmentName1 === fragmentName2) {
return;
- }
- // Memoize so two fragments are not compared for conflicts more than once.
+ } // Memoize so two fragments are not compared for conflicts more than once.
+
if (comparedFragmentPairs.has(fragmentName1, fragmentName2, areMutuallyExclusive)) {
return;
}
@@ -39876,57 +56396,57 @@ function collectConflictsBetweenFragments(context, conflicts, cachedFieldsAndFra
return;
}
const [fieldMap1, referencedFragmentNames1] = getReferencedFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, fragment1);
- const [fieldMap2, referencedFragmentNames2] = getReferencedFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, fragment2);
- // (F) First, collect all conflicts between these two collections of fields
+ const [fieldMap2, referencedFragmentNames2] = getReferencedFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, fragment2); // (F) First, collect all conflicts between these two collections of fields
// (not including any nested fragments).
- collectConflictsBetween(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap1, fieldMap2);
- // (G) Then collect conflicts between the first fragment and any nested
+
+ collectConflictsBetween(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap1, fieldMap2); // (G) Then collect conflicts between the first fragment and any nested
// fragments spread in the second fragment.
+
for (const referencedFragmentName2 of referencedFragmentNames2) {
collectConflictsBetweenFragments(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fragmentName1, referencedFragmentName2);
- }
- // (G) Then collect conflicts between the second fragment and any nested
+ } // (G) Then collect conflicts between the second fragment and any nested
// fragments spread in the first fragment.
+
for (const referencedFragmentName1 of referencedFragmentNames1) {
collectConflictsBetweenFragments(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, referencedFragmentName1, fragmentName2);
}
-}
-// Find all conflicts found between two selection sets, including those found
+} // Find all conflicts found between two selection sets, including those found
// via spreading in fragments. Called when determining if conflicts exist
// between the sub-fields of two overlapping fields.
+
function findConflictsBetweenSubSelectionSets(context, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, parentType1, selectionSet1, parentType2, selectionSet2) {
const conflicts = [];
const [fieldMap1, fragmentNames1] = getFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, parentType1, selectionSet1);
- const [fieldMap2, fragmentNames2] = getFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, parentType2, selectionSet2);
- // (H) First, collect all conflicts between these two collections of field.
- collectConflictsBetween(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap1, fieldMap2);
- // (I) Then collect conflicts between the first collection of fields and
+ const [fieldMap2, fragmentNames2] = getFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, parentType2, selectionSet2); // (H) First, collect all conflicts between these two collections of field.
+
+ collectConflictsBetween(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap1, fieldMap2); // (I) Then collect conflicts between the first collection of fields and
// those referenced by each fragment name associated with the second.
+
for (const fragmentName2 of fragmentNames2) {
collectConflictsBetweenFieldsAndFragment(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap1, fragmentName2);
- }
- // (I) Then collect conflicts between the second collection of fields and
+ } // (I) Then collect conflicts between the second collection of fields and
// those referenced by each fragment name associated with the first.
+
for (const fragmentName1 of fragmentNames1) {
collectConflictsBetweenFieldsAndFragment(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fieldMap2, fragmentName1);
- }
- // (J) Also collect conflicts between any fragment names by the first and
+ } // (J) Also collect conflicts between any fragment names by the first and
// fragment names by the second. This compares each item in the first set of
// names to each item in the second set of names.
+
for (const fragmentName1 of fragmentNames1) {
for (const fragmentName2 of fragmentNames2) {
collectConflictsBetweenFragments(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, areMutuallyExclusive, fragmentName1, fragmentName2);
}
}
return conflicts;
-}
-// Collect all Conflicts "within" one collection of fields.
+} // Collect all Conflicts "within" one collection of fields.
+
function collectConflictsWithin(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, fieldMap) {
// A field map is a keyed collection, where each key represents a response
// name and the value at that key is a list of all fields which provide that
// response name. For every response name, if there are multiple fields, they
// must be compared to find a potential conflict.
- for (const [responseName, fields] of fieldMap.entries()) {
+ for (const [responseName, fields] of Object.entries(fieldMap)) {
// This compares every field in the list to every other field in this list
// (except to itself). If the list only has one item, nothing needs to
// be compared.
@@ -39943,21 +56463,21 @@ function collectConflictsWithin(context, conflicts, cachedFieldsAndFragmentNames
}
}
}
-}
-// Collect all Conflicts between two collections of fields. This is similar to,
+} // Collect all Conflicts between two collections of fields. This is similar to,
// but different from the `collectConflictsWithin` function above. This check
// assumes that `collectConflictsWithin` has already been called on each
// provided collection of fields. This is true because this validator traverses
// each individual selection set.
+
function collectConflictsBetween(context, conflicts, cachedFieldsAndFragmentNames, comparedFragmentPairs, parentFieldsAreMutuallyExclusive, fieldMap1, fieldMap2) {
// A field map is a keyed collection, where each key represents a response
// name and the value at that key is a list of all fields which provide that
// response name. For any response name which appears in both provided field
// maps, each field from the first field map must be compared to every field
// in the second field map to find potential conflicts.
- for (const [responseName, fields1] of fieldMap1.entries()) {
- const fields2 = fieldMap2.get(responseName);
- if (fields2 != null) {
+ for (const [responseName, fields1] of Object.entries(fieldMap1)) {
+ const fields2 = fieldMap2[responseName];
+ if (fields2) {
for (const field1 of fields1) {
for (const field2 of fields2) {
const conflict = findConflict(context, cachedFieldsAndFragmentNames, comparedFragmentPairs, parentFieldsAreMutuallyExclusive, responseName, field1, field2);
@@ -39968,14 +56488,12 @@ function collectConflictsBetween(context, conflicts, cachedFieldsAndFragmentName
}
}
}
-}
-// Determines if there is a conflict between two particular fields, including
+} // Determines if there is a conflict between two particular fields, including
// comparing their sub-fields.
+
function findConflict(context, cachedFieldsAndFragmentNames, comparedFragmentPairs, parentFieldsAreMutuallyExclusive, responseName, field1, field2) {
- var _node1$directives, _node2$directives;
const [parentType1, node1, def1] = field1;
- const [parentType2, node2, def2] = field2;
- // If it is known that two fields could not possibly apply at the same
+ const [parentType2, node2, def2] = field2; // If it is known that two fields could not possibly apply at the same
// time, due to the parent types, then it is safe to permit them to diverge
// in aliased field or arguments used as they will not present any ambiguity
// by differing.
@@ -39983,6 +56501,7 @@ function findConflict(context, cachedFieldsAndFragmentNames, comparedFragmentPai
// different Object types. Interface or Union types might overlap - if not
// in the current state of the schema, then perhaps in some future version,
// thus may not safely diverge.
+
const areMutuallyExclusive = parentFieldsAreMutuallyExclusive || parentType1 !== parentType2 && (0, _definition.isObjectType)(parentType1) && (0, _definition.isObjectType)(parentType2);
if (!areMutuallyExclusive) {
// Two aliases must refer to the same field.
@@ -39990,27 +56509,21 @@ function findConflict(context, cachedFieldsAndFragmentNames, comparedFragmentPai
const name2 = node2.name.value;
if (name1 !== name2) {
return [[responseName, `"${name1}" and "${name2}" are different fields`], [node1], [node2]];
- }
- // Two field calls must have the same arguments.
+ } // Two field calls must have the same arguments.
+
if (!sameArguments(node1, node2)) {
return [[responseName, 'they have differing arguments'], [node1], [node2]];
}
- }
- // FIXME https://github.com/graphql/graphql-js/issues/2203
- const directives1 = /* c8 ignore next */(_node1$directives = node1.directives) !== null && _node1$directives !== void 0 ? _node1$directives : [];
- const directives2 = /* c8 ignore next */(_node2$directives = node2.directives) !== null && _node2$directives !== void 0 ? _node2$directives : [];
- if (!sameStreams(directives1, directives2)) {
- return [[responseName, 'they have differing stream directives'], [node1], [node2]];
- }
- // The return type for each field.
+ } // The return type for each field.
+
const type1 = def1 === null || def1 === void 0 ? void 0 : def1.type;
const type2 = def2 === null || def2 === void 0 ? void 0 : def2.type;
if (type1 && type2 && doTypesConflict(type1, type2)) {
return [[responseName, `they return conflicting types "${(0, _inspect.inspect)(type1)}" and "${(0, _inspect.inspect)(type2)}"`], [node1], [node2]];
- }
- // Collect and compare sub-fields. Use the same "visited fragment names" list
+ } // Collect and compare sub-fields. Use the same "visited fragment names" list
// for both collections so fields in a fragment reference are never
// compared to themselves.
+
const selectionSet1 = node1.selectionSet;
const selectionSet2 = node2.selectionSet;
if (selectionSet1 && selectionSet2) {
@@ -40027,8 +56540,12 @@ function sameArguments(node1, node2) {
if (args2 === undefined || args2.length === 0) {
return false;
}
+ /* c8 ignore next */
+
if (args1.length !== args2.length) {
+ /* c8 ignore next */
return false;
+ /* c8 ignore next */
}
const values2 = new Map(args2.map(({
name,
@@ -40045,26 +56562,10 @@ function sameArguments(node1, node2) {
}
function stringifyValue(value) {
return (0, _printer.print)((0, _sortValueNode.sortValueNode)(value));
-}
-function getStreamDirective(directives) {
- return directives.find(directive => directive.name.value === 'stream');
-}
-function sameStreams(directives1, directives2) {
- const stream1 = getStreamDirective(directives1);
- const stream2 = getStreamDirective(directives2);
- if (!stream1 && !stream2) {
- // both fields do not have streams
- return true;
- } else if (stream1 && stream2) {
- // check if both fields have equivalent streams
- return sameArguments(stream1, stream2);
- }
- // fields have a mix of stream and no stream
- return false;
-}
-// Two types conflict if both types could not apply to a value simultaneously.
+} // Two types conflict if both types could not apply to a value simultaneously.
// Composite types are ignored as their individual field types will be compared
// later recursively. However List and Non-Null types must match.
+
function doTypesConflict(type1, type2) {
if ((0, _definition.isListType)(type1)) {
return (0, _definition.isListType)(type2) ? doTypesConflict(type1.ofType, type2.ofType) : true;
@@ -40082,24 +56583,24 @@ function doTypesConflict(type1, type2) {
return type1 !== type2;
}
return false;
-}
-// Given a selection set, return the collection of fields (a mapping of response
+} // Given a selection set, return the collection of fields (a mapping of response
// name to field nodes and definitions) as well as a list of fragment names
// referenced via fragment spreads.
+
function getFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, parentType, selectionSet) {
const cached = cachedFieldsAndFragmentNames.get(selectionSet);
if (cached) {
return cached;
}
- const nodeAndDefs = new Map();
- const fragmentNames = new Set();
+ const nodeAndDefs = Object.create(null);
+ const fragmentNames = Object.create(null);
_collectFieldsAndFragmentNames(context, parentType, selectionSet, nodeAndDefs, fragmentNames);
- const result = [nodeAndDefs, [...fragmentNames]];
+ const result = [nodeAndDefs, Object.keys(fragmentNames)];
cachedFieldsAndFragmentNames.set(selectionSet, result);
return result;
-}
-// Given a reference to a fragment, return the represented collection of fields
+} // Given a reference to a fragment, return the represented collection of fields
// as well as a list of nested fragment names referenced via fragment spreads.
+
function getReferencedFieldsAndFragmentNames(context, cachedFieldsAndFragmentNames, fragment) {
// Short-circuit building a type from the node if possible.
const cached = cachedFieldsAndFragmentNames.get(fragment.selectionSet);
@@ -40120,16 +56621,14 @@ function _collectFieldsAndFragmentNames(context, parentType, selectionSet, nodeA
fieldDef = parentType.getFields()[fieldName];
}
const responseName = selection.alias ? selection.alias.value : fieldName;
- let nodeAndDefsList = nodeAndDefs.get(responseName);
- if (nodeAndDefsList == null) {
- nodeAndDefsList = [];
- nodeAndDefs.set(responseName, nodeAndDefsList);
+ if (!nodeAndDefs[responseName]) {
+ nodeAndDefs[responseName] = [];
}
- nodeAndDefsList.push([parentType, selection, fieldDef]);
+ nodeAndDefs[responseName].push([parentType, selection, fieldDef]);
break;
}
case _kinds.Kind.FRAGMENT_SPREAD:
- fragmentNames.add(selection.name.value);
+ fragmentNames[selection.name.value] = true;
break;
case _kinds.Kind.INLINE_FRAGMENT:
{
@@ -40140,9 +56639,9 @@ function _collectFieldsAndFragmentNames(context, parentType, selectionSet, nodeA
}
}
}
-}
-// Given a series of Conflicts which occurred between two sub-fields, generate
+} // Given a series of Conflicts which occurred between two sub-fields, generate
// a single Conflict.
+
function subfieldConflicts(conflicts, responseName, node1, node2) {
if (conflicts.length > 0) {
return [[responseName, conflicts.map(([reason]) => reason)], [node1, ...conflicts.map(([, fields1]) => fields1).flat()], [node2, ...conflicts.map(([,, fields2]) => fields2).flat()]];
@@ -40151,6 +56650,7 @@ function subfieldConflicts(conflicts, responseName, node1, node2) {
/**
* A way to keep track of pairs of things when the ordering of the pair does not matter.
*/
+
class PairSet {
constructor() {
this._data = new Map();
@@ -40161,10 +56661,10 @@ class PairSet {
const result = (_this$_data$get = this._data.get(key1)) === null || _this$_data$get === void 0 ? void 0 : _this$_data$get.get(key2);
if (result === undefined) {
return false;
- }
- // areMutuallyExclusive being false is a superset of being true, hence if
+ } // areMutuallyExclusive being false is a superset of being true, hence if
// we want to know if this PairSet "has" these two with no exclusivity,
// we have to ensure it was added as such.
+
return areMutuallyExclusive ? true : areMutuallyExclusive === result;
}
add(a, b, areMutuallyExclusive) {
@@ -40186,6 +56686,7 @@ class PairSet {
\**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40249,6 +56750,7 @@ function getFragmentType(context, name) {
\*************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40270,10 +56772,10 @@ var _definition = __webpack_require__(/*! ../../type/definition.mjs */ "../../..
*/
function PossibleTypeExtensionsRule(context) {
const schema = context.getSchema();
- const definedTypes = new Map();
+ const definedTypes = Object.create(null);
for (const def of context.getDocument().definitions) {
if ((0, _predicates.isTypeDefinitionNode)(def)) {
- definedTypes.set(def.name.value, def);
+ definedTypes[def.name.value] = def;
}
}
return {
@@ -40286,15 +56788,15 @@ function PossibleTypeExtensionsRule(context) {
};
function checkExtension(node) {
const typeName = node.name.value;
- const defNode = definedTypes.get(typeName);
+ const defNode = definedTypes[typeName];
const existingType = schema === null || schema === void 0 ? void 0 : schema.getType(typeName);
let expectedKind;
- if (defNode != null) {
+ if (defNode) {
expectedKind = defKindToExtKind[defNode.kind];
} else if (existingType) {
expectedKind = typeToExtKind(existingType);
}
- if (expectedKind != null) {
+ if (expectedKind) {
if (expectedKind !== node.kind) {
const kindStr = extensionKindToTypeName(node.kind);
context.reportError(new _GraphQLError.GraphQLError(`Cannot extend non-${kindStr} type "${typeName}".`, {
@@ -40302,8 +56804,10 @@ function PossibleTypeExtensionsRule(context) {
}));
}
} else {
- var _schema$getTypeMap;
- const allTypeNames = [...definedTypes.keys(), ...Object.keys((_schema$getTypeMap = schema === null || schema === void 0 ? void 0 : schema.getTypeMap()) !== null && _schema$getTypeMap !== void 0 ? _schema$getTypeMap : {})];
+ const allTypeNames = Object.keys({
+ ...definedTypes,
+ ...(schema === null || schema === void 0 ? void 0 : schema.getTypeMap())
+ });
const suggestedTypes = (0, _suggestionList.suggestionList)(typeName, allTypeNames);
context.reportError(new _GraphQLError.GraphQLError(`Cannot extend type "${typeName}" because it is not defined.` + (0, _didYouMean.didYouMean)(suggestedTypes), {
nodes: node.name
@@ -40340,6 +56844,7 @@ function typeToExtKind(type) {
}
/* c8 ignore next 3 */
// Not reachable. All possible types have been considered
+
false || (0, _invariant.invariant)(false, 'Unexpected type: ' + (0, _inspect.inspect)(type));
}
function extensionKindToTypeName(kind) {
@@ -40357,7 +56862,9 @@ function extensionKindToTypeName(kind) {
case _kinds.Kind.INPUT_OBJECT_TYPE_EXTENSION:
return 'input object';
// Not reachable. All possible types have been considered
- /* c8 ignore next 2 */
+
+ /* c8 ignore next */
+
default:
false || (0, _invariant.invariant)(false, 'Unexpected kind: ' + (0, _inspect.inspect)(kind));
}
@@ -40371,6 +56878,7 @@ function extensionKindToTypeName(kind) {
\****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40379,6 +56887,7 @@ Object.defineProperty(exports, "__esModule", ({
exports.ProvidedRequiredArgumentsOnDirectivesRule = ProvidedRequiredArgumentsOnDirectivesRule;
exports.ProvidedRequiredArgumentsRule = ProvidedRequiredArgumentsRule;
var _inspect = __webpack_require__(/*! ../../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
+var _keyMap = __webpack_require__(/*! ../../jsutils/keyMap.mjs */ "../../../node_modules/graphql/jsutils/keyMap.mjs");
var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
var _kinds = __webpack_require__(/*! ../../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
var _printer = __webpack_require__(/*! ../../language/printer.mjs */ "../../../node_modules/graphql/language/printer.mjs");
@@ -40402,7 +56911,8 @@ function ProvidedRequiredArgumentsRule(context) {
if (!fieldDef) {
return false;
}
- const providedArgs = new Set( // FIXME: https://github.com/graphql/graphql-js/issues/2203
+ const providedArgs = new Set(
+ // FIXME: https://github.com/graphql/graphql-js/issues/2203
/* c8 ignore next */
(_fieldNode$arguments = fieldNode.arguments) === null || _fieldNode$arguments === void 0 ? void 0 : _fieldNode$arguments.map(arg => arg.name.value));
for (const argDef of fieldDef.args) {
@@ -40420,22 +56930,25 @@ function ProvidedRequiredArgumentsRule(context) {
/**
* @internal
*/
+
function ProvidedRequiredArgumentsOnDirectivesRule(context) {
var _schema$getDirectives;
- const requiredArgsMap = new Map();
+ const requiredArgsMap = Object.create(null);
const schema = context.getSchema();
const definedDirectives = (_schema$getDirectives = schema === null || schema === void 0 ? void 0 : schema.getDirectives()) !== null && _schema$getDirectives !== void 0 ? _schema$getDirectives : _directives.specifiedDirectives;
for (const directive of definedDirectives) {
- requiredArgsMap.set(directive.name, new Map(directive.args.filter(_definition.isRequiredArgument).map(arg => [arg.name, arg])));
+ requiredArgsMap[directive.name] = (0, _keyMap.keyMap)(directive.args.filter(_definition.isRequiredArgument), arg => arg.name);
}
const astDefinitions = context.getDocument().definitions;
for (const def of astDefinitions) {
if (def.kind === _kinds.Kind.DIRECTIVE_DEFINITION) {
var _def$arguments;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
const argNodes = (_def$arguments = def.arguments) !== null && _def$arguments !== void 0 ? _def$arguments : [];
- requiredArgsMap.set(def.name.value, new Map(argNodes.filter(isRequiredArgumentNode).map(arg => [arg.name.value, arg])));
+ requiredArgsMap[def.name.value] = (0, _keyMap.keyMap)(argNodes.filter(isRequiredArgumentNode), arg => arg.name.value);
}
}
return {
@@ -40443,14 +56956,16 @@ function ProvidedRequiredArgumentsOnDirectivesRule(context) {
// Validate on leave to allow for deeper errors to appear first.
leave(directiveNode) {
const directiveName = directiveNode.name.value;
- const requiredArgs = requiredArgsMap.get(directiveName);
- if (requiredArgs != null) {
+ const requiredArgs = requiredArgsMap[directiveName];
+ if (requiredArgs) {
var _directiveNode$argume;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
const argNodes = (_directiveNode$argume = directiveNode.arguments) !== null && _directiveNode$argume !== void 0 ? _directiveNode$argume : [];
const argNodeMap = new Set(argNodes.map(arg => arg.name.value));
- for (const [argName, argDef] of requiredArgs.entries()) {
+ for (const [argName, argDef] of Object.entries(requiredArgs)) {
if (!argNodeMap.has(argName)) {
const argType = (0, _definition.isType)(argDef.type) ? (0, _inspect.inspect)(argDef.type) : (0, _printer.print)(argDef.type);
context.reportError(new _GraphQLError.GraphQLError(`Directive "@${directiveName}" argument "${argName}" of type "${argType}" is required, but it was not provided.`, {
@@ -40475,6 +56990,7 @@ function isRequiredArgumentNode(arg) {
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40524,6 +57040,7 @@ function ScalarLeafsRule(context) {
\***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40533,9 +57050,6 @@ exports.SingleFieldSubscriptionsRule = SingleFieldSubscriptionsRule;
var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
var _kinds = __webpack_require__(/*! ../../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
var _collectFields = __webpack_require__(/*! ../../execution/collectFields.mjs */ "../../../node_modules/graphql/execution/collectFields.mjs");
-function toNodes(fieldGroup) {
- return fieldGroup.map(fieldDetails => fieldDetails.node);
-}
/**
* Subscriptions must only include a non-introspection field.
*
@@ -40560,22 +57074,21 @@ function SingleFieldSubscriptionsRule(context) {
fragments[definition.name.value] = definition;
}
}
- const {
- groupedFieldSet
- } = (0, _collectFields.collectFields)(schema, fragments, variableValues, subscriptionType, node);
- if (groupedFieldSet.size > 1) {
- const fieldGroups = [...groupedFieldSet.values()];
- const extraFieldGroups = fieldGroups.slice(1);
- const extraFieldSelections = extraFieldGroups.flatMap(fieldGroup => toNodes(fieldGroup));
+ const fields = (0, _collectFields.collectFields)(schema, fragments, variableValues, subscriptionType, node.selectionSet);
+ if (fields.size > 1) {
+ const fieldSelectionLists = [...fields.values()];
+ const extraFieldSelectionLists = fieldSelectionLists.slice(1);
+ const extraFieldSelections = extraFieldSelectionLists.flat();
context.reportError(new _GraphQLError.GraphQLError(operationName != null ? `Subscription "${operationName}" must select only one top level field.` : 'Anonymous Subscription must select only one top level field.', {
nodes: extraFieldSelections
}));
}
- for (const fieldGroup of groupedFieldSet.values()) {
- const fieldName = toNodes(fieldGroup)[0].name.value;
+ for (const fieldNodes of fields.values()) {
+ const field = fieldNodes[0];
+ const fieldName = field.name.value;
if (fieldName.startsWith('__')) {
context.reportError(new _GraphQLError.GraphQLError(operationName != null ? `Subscription "${operationName}" must not select an introspection top level field.` : 'Anonymous Subscription must not select an introspection top level field.', {
- nodes: toNodes(fieldGroup)
+ nodes: fieldNodes
}));
}
}
@@ -40587,48 +57100,13 @@ function SingleFieldSubscriptionsRule(context) {
/***/ }),
-/***/ "../../../node_modules/graphql/validation/rules/StreamDirectiveOnListFieldRule.mjs":
-/*!*****************************************************************************************!*\
- !*** ../../../node_modules/graphql/validation/rules/StreamDirectiveOnListFieldRule.mjs ***!
- \*****************************************************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-Object.defineProperty(exports, "__esModule", ({
- value: true
-}));
-exports.StreamDirectiveOnListFieldRule = StreamDirectiveOnListFieldRule;
-var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
-var _definition = __webpack_require__(/*! ../../type/definition.mjs */ "../../../node_modules/graphql/type/definition.mjs");
-var _directives = __webpack_require__(/*! ../../type/directives.mjs */ "../../../node_modules/graphql/type/directives.mjs");
-/**
- * Stream directives are used on list fields
- *
- * A GraphQL document is only valid if stream directives are used on list fields.
- */
-function StreamDirectiveOnListFieldRule(context) {
- return {
- Directive(node) {
- const fieldDef = context.getFieldDef();
- const parentType = context.getParentType();
- if (fieldDef && parentType && node.name.value === _directives.GraphQLStreamDirective.name && !((0, _definition.isListType)(fieldDef.type) || (0, _definition.isWrappingType)(fieldDef.type) && (0, _definition.isListType)(fieldDef.type.ofType))) {
- context.reportError(new _GraphQLError.GraphQLError(`Stream directive cannot be used on non-list field "${fieldDef.name}" on type "${parentType.name}".`, {
- nodes: node
- }));
- }
- }
- };
-}
-
-/***/ }),
-
/***/ "../../../node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs":
/*!********************************************************************************************!*\
!*** ../../../node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs ***!
\********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40647,7 +57125,9 @@ function UniqueArgumentDefinitionNamesRule(context) {
return {
DirectiveDefinition(directiveNode) {
var _directiveNode$argume;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
const argumentNodes = (_directiveNode$argume = directiveNode.arguments) !== null && _directiveNode$argume !== void 0 ? _directiveNode$argume : [];
return checkArgUniqueness(`@${directiveNode.name.value}`, argumentNodes);
@@ -40659,15 +57139,17 @@ function UniqueArgumentDefinitionNamesRule(context) {
};
function checkArgUniquenessPerField(typeNode) {
var _typeNode$fields;
- const typeName = typeNode.name.value;
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
+ const typeName = typeNode.name.value; // FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
+
const fieldNodes = (_typeNode$fields = typeNode.fields) !== null && _typeNode$fields !== void 0 ? _typeNode$fields : [];
for (const fieldDef of fieldNodes) {
var _fieldDef$arguments;
- const fieldName = fieldDef.name.value;
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
+ const fieldName = fieldDef.name.value; // FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
+
const argumentNodes = (_fieldDef$arguments = fieldDef.arguments) !== null && _fieldDef$arguments !== void 0 ? _fieldDef$arguments : [];
checkArgUniqueness(`${typeName}.${fieldName}`, argumentNodes);
}
@@ -40694,6 +57176,7 @@ function UniqueArgumentDefinitionNamesRule(context) {
\**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40717,7 +57200,9 @@ function UniqueArgumentNamesRule(context) {
};
function checkArgUniqueness(parentNode) {
var _parentNode$arguments;
+
// FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
const argumentNodes = (_parentNode$arguments = parentNode.arguments) !== null && _parentNode$arguments !== void 0 ? _parentNode$arguments : [];
const seenArgs = (0, _groupBy.groupBy)(argumentNodes, arg => arg.name.value);
@@ -40739,6 +57224,7 @@ function UniqueArgumentNamesRule(context) {
\***********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40752,7 +57238,7 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
* A GraphQL document is only valid if all defined directives have unique names.
*/
function UniqueDirectiveNamesRule(context) {
- const knownDirectiveNames = new Map();
+ const knownDirectiveNames = Object.create(null);
const schema = context.getSchema();
return {
DirectiveDefinition(node) {
@@ -40763,13 +57249,12 @@ function UniqueDirectiveNamesRule(context) {
}));
return;
}
- const knownName = knownDirectiveNames.get(directiveName);
- if (knownName) {
+ if (knownDirectiveNames[directiveName]) {
context.reportError(new _GraphQLError.GraphQLError(`There can be only one directive named "@${directiveName}".`, {
- nodes: [knownName, node.name]
+ nodes: [knownDirectiveNames[directiveName], node.name]
}));
} else {
- knownDirectiveNames.set(directiveName, node.name);
+ knownDirectiveNames[directiveName] = node.name;
}
return false;
}
@@ -40784,6 +57269,7 @@ function UniqueDirectiveNamesRule(context) {
\******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40803,20 +57289,20 @@ var _directives = __webpack_require__(/*! ../../type/directives.mjs */ "../../..
* See https://spec.graphql.org/draft/#sec-Directives-Are-Unique-Per-Location
*/
function UniqueDirectivesPerLocationRule(context) {
- const uniqueDirectiveMap = new Map();
+ const uniqueDirectiveMap = Object.create(null);
const schema = context.getSchema();
const definedDirectives = schema ? schema.getDirectives() : _directives.specifiedDirectives;
for (const directive of definedDirectives) {
- uniqueDirectiveMap.set(directive.name, !directive.isRepeatable);
+ uniqueDirectiveMap[directive.name] = !directive.isRepeatable;
}
const astDefinitions = context.getDocument().definitions;
for (const def of astDefinitions) {
if (def.kind === _kinds.Kind.DIRECTIVE_DEFINITION) {
- uniqueDirectiveMap.set(def.name.value, !def.repeatable);
+ uniqueDirectiveMap[def.name.value] = !def.repeatable;
}
}
- const schemaDirectives = new Map();
- const typeDirectivesMap = new Map();
+ const schemaDirectives = Object.create(null);
+ const typeDirectivesMap = Object.create(null);
return {
// Many different AST nodes may contain directives. Rather than listing
// them all, just listen for entering any node, and check to see if it
@@ -40830,24 +57316,22 @@ function UniqueDirectivesPerLocationRule(context) {
seenDirectives = schemaDirectives;
} else if ((0, _predicates.isTypeDefinitionNode)(node) || (0, _predicates.isTypeExtensionNode)(node)) {
const typeName = node.name.value;
- seenDirectives = typeDirectivesMap.get(typeName);
+ seenDirectives = typeDirectivesMap[typeName];
if (seenDirectives === undefined) {
- seenDirectives = new Map();
- typeDirectivesMap.set(typeName, seenDirectives);
+ typeDirectivesMap[typeName] = seenDirectives = Object.create(null);
}
} else {
- seenDirectives = new Map();
+ seenDirectives = Object.create(null);
}
for (const directive of node.directives) {
const directiveName = directive.name.value;
- if (uniqueDirectiveMap.get(directiveName) === true) {
- const seenDirective = seenDirectives.get(directiveName);
- if (seenDirective != null) {
+ if (uniqueDirectiveMap[directiveName]) {
+ if (seenDirectives[directiveName]) {
context.reportError(new _GraphQLError.GraphQLError(`The directive "@${directiveName}" can only be used once at this location.`, {
- nodes: [seenDirective, directive]
+ nodes: [seenDirectives[directiveName], directive]
}));
} else {
- seenDirectives.set(directiveName, directive);
+ seenDirectives[directiveName] = directive;
}
}
}
@@ -40863,6 +57347,7 @@ function UniqueDirectivesPerLocationRule(context) {
\***********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40879,7 +57364,7 @@ var _definition = __webpack_require__(/*! ../../type/definition.mjs */ "../../..
function UniqueEnumValueNamesRule(context) {
const schema = context.getSchema();
const existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);
- const knownValueNames = new Map();
+ const knownValueNames = Object.create(null);
return {
EnumTypeDefinition: checkValueUniqueness,
EnumTypeExtension: checkValueUniqueness
@@ -40887,14 +57372,14 @@ function UniqueEnumValueNamesRule(context) {
function checkValueUniqueness(node) {
var _node$values;
const typeName = node.name.value;
- let valueNames = knownValueNames.get(typeName);
- if (valueNames == null) {
- valueNames = new Map();
- knownValueNames.set(typeName, valueNames);
- }
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
+ if (!knownValueNames[typeName]) {
+ knownValueNames[typeName] = Object.create(null);
+ } // FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
+
const valueNodes = (_node$values = node.values) !== null && _node$values !== void 0 ? _node$values : [];
+ const valueNames = knownValueNames[typeName];
for (const valueDef of valueNodes) {
const valueName = valueDef.name.value;
const existingType = existingTypeMap[typeName];
@@ -40902,15 +57387,12 @@ function UniqueEnumValueNamesRule(context) {
context.reportError(new _GraphQLError.GraphQLError(`Enum value "${typeName}.${valueName}" already exists in the schema. It cannot also be defined in this type extension.`, {
nodes: valueDef.name
}));
- continue;
- }
- const knownValueName = valueNames.get(valueName);
- if (knownValueName != null) {
+ } else if (valueNames[valueName]) {
context.reportError(new _GraphQLError.GraphQLError(`Enum value "${typeName}.${valueName}" can only be defined once.`, {
- nodes: [knownValueName, valueDef.name]
+ nodes: [valueNames[valueName], valueDef.name]
}));
} else {
- valueNames.set(valueName, valueDef.name);
+ valueNames[valueName] = valueDef.name;
}
}
return false;
@@ -40925,6 +57407,7 @@ function UniqueEnumValueNamesRule(context) {
\*****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -40941,7 +57424,7 @@ var _definition = __webpack_require__(/*! ../../type/definition.mjs */ "../../..
function UniqueFieldDefinitionNamesRule(context) {
const schema = context.getSchema();
const existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);
- const knownFieldNames = new Map();
+ const knownFieldNames = Object.create(null);
return {
InputObjectTypeDefinition: checkFieldUniqueness,
InputObjectTypeExtension: checkFieldUniqueness,
@@ -40953,29 +57436,26 @@ function UniqueFieldDefinitionNamesRule(context) {
function checkFieldUniqueness(node) {
var _node$fields;
const typeName = node.name.value;
- let fieldNames = knownFieldNames.get(typeName);
- if (fieldNames == null) {
- fieldNames = new Map();
- knownFieldNames.set(typeName, fieldNames);
- }
- // FIXME: https://github.com/graphql/graphql-js/issues/2203
+ if (!knownFieldNames[typeName]) {
+ knownFieldNames[typeName] = Object.create(null);
+ } // FIXME: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
+
const fieldNodes = (_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];
+ const fieldNames = knownFieldNames[typeName];
for (const fieldDef of fieldNodes) {
const fieldName = fieldDef.name.value;
if (hasField(existingTypeMap[typeName], fieldName)) {
context.reportError(new _GraphQLError.GraphQLError(`Field "${typeName}.${fieldName}" already exists in the schema. It cannot also be defined in this type extension.`, {
nodes: fieldDef.name
}));
- continue;
- }
- const knownFieldName = fieldNames.get(fieldName);
- if (knownFieldName != null) {
+ } else if (fieldNames[fieldName]) {
context.reportError(new _GraphQLError.GraphQLError(`Field "${typeName}.${fieldName}" can only be defined once.`, {
- nodes: [knownFieldName, fieldDef.name]
+ nodes: [fieldNames[fieldName], fieldDef.name]
}));
} else {
- fieldNames.set(fieldName, fieldDef.name);
+ fieldNames[fieldName] = fieldDef.name;
}
}
return false;
@@ -40996,6 +57476,7 @@ function hasField(type, fieldName) {
\**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41011,18 +57492,17 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
* See https://spec.graphql.org/draft/#sec-Fragment-Name-Uniqueness
*/
function UniqueFragmentNamesRule(context) {
- const knownFragmentNames = new Map();
+ const knownFragmentNames = Object.create(null);
return {
OperationDefinition: () => false,
FragmentDefinition(node) {
const fragmentName = node.name.value;
- const knownFragmentName = knownFragmentNames.get(fragmentName);
- if (knownFragmentName != null) {
+ if (knownFragmentNames[fragmentName]) {
context.reportError(new _GraphQLError.GraphQLError(`There can be only one fragment named "${fragmentName}".`, {
- nodes: [knownFragmentName, node.name]
+ nodes: [knownFragmentNames[fragmentName], node.name]
}));
} else {
- knownFragmentNames.set(fragmentName, node.name);
+ knownFragmentNames[fragmentName] = node.name;
}
return false;
}
@@ -41037,6 +57517,7 @@ function UniqueFragmentNamesRule(context) {
\************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41055,28 +57536,27 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
*/
function UniqueInputFieldNamesRule(context) {
const knownNameStack = [];
- let knownNames = new Map();
+ let knownNames = Object.create(null);
return {
ObjectValue: {
enter() {
knownNameStack.push(knownNames);
- knownNames = new Map();
+ knownNames = Object.create(null);
},
leave() {
const prevKnownNames = knownNameStack.pop();
- prevKnownNames != null || (0, _invariant.invariant)(false);
+ prevKnownNames || (0, _invariant.invariant)(false);
knownNames = prevKnownNames;
}
},
ObjectField(node) {
const fieldName = node.name.value;
- const knownName = knownNames.get(fieldName);
- if (knownName != null) {
+ if (knownNames[fieldName]) {
context.reportError(new _GraphQLError.GraphQLError(`There can be only one input field named "${fieldName}".`, {
- nodes: [knownName, node.name]
+ nodes: [knownNames[fieldName], node.name]
}));
} else {
- knownNames.set(fieldName, node.name);
+ knownNames[fieldName] = node.name;
}
}
};
@@ -41090,6 +57570,7 @@ function UniqueInputFieldNamesRule(context) {
\***********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41105,18 +57586,17 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
* See https://spec.graphql.org/draft/#sec-Operation-Name-Uniqueness
*/
function UniqueOperationNamesRule(context) {
- const knownOperationNames = new Map();
+ const knownOperationNames = Object.create(null);
return {
OperationDefinition(node) {
const operationName = node.name;
- if (operationName != null) {
- const knownOperationName = knownOperationNames.get(operationName.value);
- if (knownOperationName != null) {
+ if (operationName) {
+ if (knownOperationNames[operationName.value]) {
context.reportError(new _GraphQLError.GraphQLError(`There can be only one operation named "${operationName.value}".`, {
- nodes: [knownOperationName, operationName]
+ nodes: [knownOperationNames[operationName.value], operationName]
}));
} else {
- knownOperationNames.set(operationName.value, operationName);
+ knownOperationNames[operationName.value] = operationName;
}
}
return false;
@@ -41133,6 +57613,7 @@ function UniqueOperationNamesRule(context) {
\***********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41147,7 +57628,7 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
*/
function UniqueOperationTypesRule(context) {
const schema = context.getSchema();
- const definedOperationTypes = new Map();
+ const definedOperationTypes = Object.create(null);
const existingOperationTypes = schema ? {
query: schema.getQueryType(),
mutation: schema.getMutationType(),
@@ -41159,12 +57640,14 @@ function UniqueOperationTypesRule(context) {
};
function checkOperationTypes(node) {
var _node$operationTypes;
+
// See: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
const operationTypesNodes = (_node$operationTypes = node.operationTypes) !== null && _node$operationTypes !== void 0 ? _node$operationTypes : [];
for (const operationType of operationTypesNodes) {
const operation = operationType.operation;
- const alreadyDefinedOperationType = definedOperationTypes.get(operation);
+ const alreadyDefinedOperationType = definedOperationTypes[operation];
if (existingOperationTypes[operation]) {
context.reportError(new _GraphQLError.GraphQLError(`Type for ${operation} already defined in the schema. It cannot be redefined.`, {
nodes: operationType
@@ -41174,7 +57657,7 @@ function UniqueOperationTypesRule(context) {
nodes: [alreadyDefinedOperationType, operationType]
}));
} else {
- definedOperationTypes.set(operation, operationType);
+ definedOperationTypes[operation] = operationType;
}
}
return false;
@@ -41189,6 +57672,7 @@ function UniqueOperationTypesRule(context) {
\******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41202,7 +57686,7 @@ var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../
* A GraphQL document is only valid if all defined types have unique names.
*/
function UniqueTypeNamesRule(context) {
- const knownTypeNames = new Map();
+ const knownTypeNames = Object.create(null);
const schema = context.getSchema();
return {
ScalarTypeDefinition: checkTypeName,
@@ -41220,13 +57704,12 @@ function UniqueTypeNamesRule(context) {
}));
return;
}
- const knownNameNode = knownTypeNames.get(typeName);
- if (knownNameNode != null) {
+ if (knownTypeNames[typeName]) {
context.reportError(new _GraphQLError.GraphQLError(`There can be only one type named "${typeName}".`, {
- nodes: [knownNameNode, node.name]
+ nodes: [knownTypeNames[typeName], node.name]
}));
} else {
- knownTypeNames.set(typeName, node.name);
+ knownTypeNames[typeName] = node.name;
}
return false;
}
@@ -41240,6 +57723,7 @@ function UniqueTypeNamesRule(context) {
\**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41257,7 +57741,9 @@ function UniqueVariableNamesRule(context) {
return {
OperationDefinition(operationNode) {
var _operationNode$variab;
+
// See: https://github.com/graphql/graphql-js/issues/2203
+
/* c8 ignore next */
const variableDefinitions = (_operationNode$variab = operationNode.variableDefinitions) !== null && _operationNode$variab !== void 0 ? _operationNode$variab : [];
const seenVariableDefinitions = (0, _groupBy.groupBy)(variableDefinitions, node => node.variable.name.value);
@@ -41280,6 +57766,7 @@ function UniqueVariableNamesRule(context) {
\**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41288,6 +57775,7 @@ Object.defineProperty(exports, "__esModule", ({
exports.ValuesOfCorrectTypeRule = ValuesOfCorrectTypeRule;
var _didYouMean = __webpack_require__(/*! ../../jsutils/didYouMean.mjs */ "../../../node_modules/graphql/jsutils/didYouMean.mjs");
var _inspect = __webpack_require__(/*! ../../jsutils/inspect.mjs */ "../../../node_modules/graphql/jsutils/inspect.mjs");
+var _keyMap = __webpack_require__(/*! ../../jsutils/keyMap.mjs */ "../../../node_modules/graphql/jsutils/keyMap.mjs");
var _suggestionList = __webpack_require__(/*! ../../jsutils/suggestionList.mjs */ "../../../node_modules/graphql/jsutils/suggestionList.mjs");
var _GraphQLError = __webpack_require__(/*! ../../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
var _kinds = __webpack_require__(/*! ../../language/kinds.mjs */ "../../../node_modules/graphql/language/kinds.mjs");
@@ -41326,11 +57814,11 @@ function ValuesOfCorrectTypeRule(context) {
if (!(0, _definition.isInputObjectType)(type)) {
isValidValueNode(context, node);
return false; // Don't traverse further.
- }
- // Ensure every required field exists.
- const fieldNodeMap = new Map(node.fields.map(field => [field.name.value, field]));
+ } // Ensure every required field exists.
+
+ const fieldNodeMap = (0, _keyMap.keyMap)(node.fields, field => field.name.value);
for (const fieldDef of Object.values(type.getFields())) {
- const fieldNode = fieldNodeMap.get(fieldDef.name);
+ const fieldNode = fieldNodeMap[fieldDef.name];
if (!fieldNode && (0, _definition.isRequiredInputField)(fieldDef)) {
const typeStr = (0, _inspect.inspect)(fieldDef.type);
context.reportError(new _GraphQLError.GraphQLError(`Field "${type.name}.${fieldDef.name}" of required type "${typeStr}" was not provided.`, {
@@ -41371,6 +57859,7 @@ function ValuesOfCorrectTypeRule(context) {
* Any value literal may be a valid representation of a Scalar, depending on
* that scalar type.
*/
+
function isValidValueNode(context, node) {
// Report any error at the full type expected by the location.
const locationType = context.getInputType();
@@ -41384,11 +57873,12 @@ function isValidValueNode(context, node) {
nodes: node
}));
return;
- }
- // Scalars and Enums determine if a literal value is valid via parseLiteral(),
+ } // Scalars and Enums determine if a literal value is valid via parseLiteral(),
// which may throw or return an invalid value to indicate failure.
+
try {
- const parseResult = type.parseLiteral(node, undefined /* variables */);
+ const parseResult = type.parseLiteral(node, undefined
+ /* variables */);
if (parseResult === undefined) {
const typeStr = (0, _inspect.inspect)(locationType);
context.reportError(new _GraphQLError.GraphQLError(`Expected value of type "${typeStr}", found ${(0, _printer.print)(node)}.`, {
@@ -41408,8 +57898,8 @@ function isValidValueNode(context, node) {
}
}
function validateOneOfInputObject(context, node, type, fieldNodeMap, variableDefinitions) {
- var _fieldNodeMap$get;
- const keys = Array.from(fieldNodeMap.keys());
+ var _fieldNodeMap$keys$;
+ const keys = Object.keys(fieldNodeMap);
const isNotExactlyOneField = keys.length !== 1;
if (isNotExactlyOneField) {
context.reportError(new _GraphQLError.GraphQLError(`OneOf Input Object "${type.name}" must specify exactly one key.`, {
@@ -41417,7 +57907,7 @@ function validateOneOfInputObject(context, node, type, fieldNodeMap, variableDef
}));
return;
}
- const value = (_fieldNodeMap$get = fieldNodeMap.get(keys[0])) === null || _fieldNodeMap$get === void 0 ? void 0 : _fieldNodeMap$get.value;
+ const value = (_fieldNodeMap$keys$ = fieldNodeMap[keys[0]]) === null || _fieldNodeMap$keys$ === void 0 ? void 0 : _fieldNodeMap$keys$.value;
const isNullLiteral = !value || value.kind === _kinds.Kind.NULL;
const isVariable = (value === null || value === void 0 ? void 0 : value.kind) === _kinds.Kind.VARIABLE;
if (isNullLiteral) {
@@ -41446,6 +57936,7 @@ function validateOneOfInputObject(context, node, type, fieldNodeMap, variableDef
\*************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41487,6 +57978,7 @@ function VariablesAreInputTypesRule(context) {
\*****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41507,11 +57999,11 @@ var _typeFromAST = __webpack_require__(/*! ../../utilities/typeFromAST.mjs */ ".
* See https://spec.graphql.org/draft/#sec-All-Variable-Usages-are-Allowed
*/
function VariablesInAllowedPositionRule(context) {
- let varDefMap;
+ let varDefMap = Object.create(null);
return {
OperationDefinition: {
enter() {
- varDefMap = new Map();
+ varDefMap = Object.create(null);
},
leave(operation) {
const usages = context.getRecursiveVariableUsages(operation);
@@ -41521,7 +58013,7 @@ function VariablesInAllowedPositionRule(context) {
defaultValue
} of usages) {
const varName = node.name.value;
- const varDef = varDefMap.get(varName);
+ const varDef = varDefMap[varName];
if (varDef && type) {
// A var type is allowed if it is the same or more strict (e.g. is
// a subtype of) than the expected type. It can be more strict if
@@ -41542,7 +58034,7 @@ function VariablesInAllowedPositionRule(context) {
}
},
VariableDefinition(node) {
- varDefMap.set(node.variable.name.value, node);
+ varDefMap[node.variable.name.value] = node;
}
};
}
@@ -41551,6 +58043,7 @@ function VariablesInAllowedPositionRule(context) {
* which includes considering if default values exist for either the variable
* or the location at which it is located.
*/
+
function allowedVariableUsage(schema, varType, varDefaultValue, locationType, locationDefaultValue) {
if ((0, _definition.isNonNullType)(locationType) && !(0, _definition.isNonNullType)(varType)) {
const hasNonNullVariableDefaultValue = varDefaultValue != null && varDefaultValue.kind !== _kinds.Kind.NULL;
@@ -41572,6 +58065,7 @@ function allowedVariableUsage(schema, varType, varDefaultValue, locationType, lo
\****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41657,6 +58151,7 @@ function NoDeprecatedCustomRule(context) {
\*************************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41697,15 +58192,13 @@ function NoSchemaIntrospectionCustomRule(context) {
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.specifiedSDLRules = exports.specifiedRules = exports.recommendedRules = void 0;
-var _DeferStreamDirectiveLabelRule = __webpack_require__(/*! ./rules/DeferStreamDirectiveLabelRule.mjs */ "../../../node_modules/graphql/validation/rules/DeferStreamDirectiveLabelRule.mjs");
-var _DeferStreamDirectiveOnRootFieldRule = __webpack_require__(/*! ./rules/DeferStreamDirectiveOnRootFieldRule.mjs */ "../../../node_modules/graphql/validation/rules/DeferStreamDirectiveOnRootFieldRule.mjs");
-var _DeferStreamDirectiveOnValidOperationsRule = __webpack_require__(/*! ./rules/DeferStreamDirectiveOnValidOperationsRule.mjs */ "../../../node_modules/graphql/validation/rules/DeferStreamDirectiveOnValidOperationsRule.mjs");
var _ExecutableDefinitionsRule = __webpack_require__(/*! ./rules/ExecutableDefinitionsRule.mjs */ "../../../node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs");
var _FieldsOnCorrectTypeRule = __webpack_require__(/*! ./rules/FieldsOnCorrectTypeRule.mjs */ "../../../node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs");
var _FragmentsOnCompositeTypesRule = __webpack_require__(/*! ./rules/FragmentsOnCompositeTypesRule.mjs */ "../../../node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs");
@@ -41726,7 +58219,6 @@ var _PossibleTypeExtensionsRule = __webpack_require__(/*! ./rules/PossibleTypeEx
var _ProvidedRequiredArgumentsRule = __webpack_require__(/*! ./rules/ProvidedRequiredArgumentsRule.mjs */ "../../../node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs");
var _ScalarLeafsRule = __webpack_require__(/*! ./rules/ScalarLeafsRule.mjs */ "../../../node_modules/graphql/validation/rules/ScalarLeafsRule.mjs");
var _SingleFieldSubscriptionsRule = __webpack_require__(/*! ./rules/SingleFieldSubscriptionsRule.mjs */ "../../../node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs");
-var _StreamDirectiveOnListFieldRule = __webpack_require__(/*! ./rules/StreamDirectiveOnListFieldRule.mjs */ "../../../node_modules/graphql/validation/rules/StreamDirectiveOnListFieldRule.mjs");
var _UniqueArgumentDefinitionNamesRule = __webpack_require__(/*! ./rules/UniqueArgumentDefinitionNamesRule.mjs */ "../../../node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs");
var _UniqueArgumentNamesRule = __webpack_require__(/*! ./rules/UniqueArgumentNamesRule.mjs */ "../../../node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs");
var _UniqueDirectiveNamesRule = __webpack_require__(/*! ./rules/UniqueDirectiveNamesRule.mjs */ "../../../node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs");
@@ -41742,14 +58234,7 @@ var _UniqueVariableNamesRule = __webpack_require__(/*! ./rules/UniqueVariableNam
var _ValuesOfCorrectTypeRule = __webpack_require__(/*! ./rules/ValuesOfCorrectTypeRule.mjs */ "../../../node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs");
var _VariablesAreInputTypesRule = __webpack_require__(/*! ./rules/VariablesAreInputTypesRule.mjs */ "../../../node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs");
var _VariablesInAllowedPositionRule = __webpack_require__(/*! ./rules/VariablesInAllowedPositionRule.mjs */ "../../../node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs");
-// Spec Section: "Defer And Stream Directive Labels Are Unique"
-
-// Spec Section: "Defer And Stream Directives Are Used On Valid Root Field"
-
-// Spec Section: "Defer And Stream Directives Are Used On Valid Operations"
-
// Spec Section: "Executable Definitions"
-
// Spec Section: "Field Selections on Objects, Interfaces, and Unions Types"
// Spec Section: "Fragments on Composite Types"
@@ -41786,8 +58271,6 @@ var _VariablesInAllowedPositionRule = __webpack_require__(/*! ./rules/VariablesI
// Spec Section: "Subscriptions with Single Root Field"
-// Spec Section: "Stream Directives Are Used On List Fields"
-
// Spec Section: "Argument Uniqueness"
// Spec Section: "Directives Are Unique Per Location"
@@ -41817,10 +58300,12 @@ const recommendedRules = exports.recommendedRules = Object.freeze([_MaxIntrospec
* The order of the rules in this list has been adjusted to lead to the
* most clear output when encountering multiple validation errors.
*/
-const specifiedRules = exports.specifiedRules = Object.freeze([_ExecutableDefinitionsRule.ExecutableDefinitionsRule, _UniqueOperationNamesRule.UniqueOperationNamesRule, _LoneAnonymousOperationRule.LoneAnonymousOperationRule, _SingleFieldSubscriptionsRule.SingleFieldSubscriptionsRule, _KnownTypeNamesRule.KnownTypeNamesRule, _FragmentsOnCompositeTypesRule.FragmentsOnCompositeTypesRule, _VariablesAreInputTypesRule.VariablesAreInputTypesRule, _ScalarLeafsRule.ScalarLeafsRule, _FieldsOnCorrectTypeRule.FieldsOnCorrectTypeRule, _UniqueFragmentNamesRule.UniqueFragmentNamesRule, _KnownFragmentNamesRule.KnownFragmentNamesRule, _NoUnusedFragmentsRule.NoUnusedFragmentsRule, _PossibleFragmentSpreadsRule.PossibleFragmentSpreadsRule, _NoFragmentCyclesRule.NoFragmentCyclesRule, _UniqueVariableNamesRule.UniqueVariableNamesRule, _NoUndefinedVariablesRule.NoUndefinedVariablesRule, _NoUnusedVariablesRule.NoUnusedVariablesRule, _KnownDirectivesRule.KnownDirectivesRule, _UniqueDirectivesPerLocationRule.UniqueDirectivesPerLocationRule, _DeferStreamDirectiveOnRootFieldRule.DeferStreamDirectiveOnRootFieldRule, _DeferStreamDirectiveOnValidOperationsRule.DeferStreamDirectiveOnValidOperationsRule, _DeferStreamDirectiveLabelRule.DeferStreamDirectiveLabelRule, _StreamDirectiveOnListFieldRule.StreamDirectiveOnListFieldRule, _KnownArgumentNamesRule.KnownArgumentNamesRule, _UniqueArgumentNamesRule.UniqueArgumentNamesRule, _ValuesOfCorrectTypeRule.ValuesOfCorrectTypeRule, _ProvidedRequiredArgumentsRule.ProvidedRequiredArgumentsRule, _VariablesInAllowedPositionRule.VariablesInAllowedPositionRule, _OverlappingFieldsCanBeMergedRule.OverlappingFieldsCanBeMergedRule, _UniqueInputFieldNamesRule.UniqueInputFieldNamesRule, ...recommendedRules]);
+
+const specifiedRules = exports.specifiedRules = Object.freeze([_ExecutableDefinitionsRule.ExecutableDefinitionsRule, _UniqueOperationNamesRule.UniqueOperationNamesRule, _LoneAnonymousOperationRule.LoneAnonymousOperationRule, _SingleFieldSubscriptionsRule.SingleFieldSubscriptionsRule, _KnownTypeNamesRule.KnownTypeNamesRule, _FragmentsOnCompositeTypesRule.FragmentsOnCompositeTypesRule, _VariablesAreInputTypesRule.VariablesAreInputTypesRule, _ScalarLeafsRule.ScalarLeafsRule, _FieldsOnCorrectTypeRule.FieldsOnCorrectTypeRule, _UniqueFragmentNamesRule.UniqueFragmentNamesRule, _KnownFragmentNamesRule.KnownFragmentNamesRule, _NoUnusedFragmentsRule.NoUnusedFragmentsRule, _PossibleFragmentSpreadsRule.PossibleFragmentSpreadsRule, _NoFragmentCyclesRule.NoFragmentCyclesRule, _UniqueVariableNamesRule.UniqueVariableNamesRule, _NoUndefinedVariablesRule.NoUndefinedVariablesRule, _NoUnusedVariablesRule.NoUnusedVariablesRule, _KnownDirectivesRule.KnownDirectivesRule, _UniqueDirectivesPerLocationRule.UniqueDirectivesPerLocationRule, _KnownArgumentNamesRule.KnownArgumentNamesRule, _UniqueArgumentNamesRule.UniqueArgumentNamesRule, _ValuesOfCorrectTypeRule.ValuesOfCorrectTypeRule, _ProvidedRequiredArgumentsRule.ProvidedRequiredArgumentsRule, _VariablesInAllowedPositionRule.VariablesInAllowedPositionRule, _OverlappingFieldsCanBeMergedRule.OverlappingFieldsCanBeMergedRule, _UniqueInputFieldNamesRule.UniqueInputFieldNamesRule, ...recommendedRules]);
/**
* @internal
*/
+
const specifiedSDLRules = exports.specifiedSDLRules = Object.freeze([_LoneSchemaDefinitionRule.LoneSchemaDefinitionRule, _UniqueOperationTypesRule.UniqueOperationTypesRule, _UniqueTypeNamesRule.UniqueTypeNamesRule, _UniqueEnumValueNamesRule.UniqueEnumValueNamesRule, _UniqueFieldDefinitionNamesRule.UniqueFieldDefinitionNamesRule, _UniqueArgumentDefinitionNamesRule.UniqueArgumentDefinitionNamesRule, _UniqueDirectiveNamesRule.UniqueDirectiveNamesRule, _KnownTypeNamesRule.KnownTypeNamesRule, _KnownDirectivesRule.KnownDirectivesRule, _UniqueDirectivesPerLocationRule.UniqueDirectivesPerLocationRule, _PossibleTypeExtensionsRule.PossibleTypeExtensionsRule, _KnownArgumentNamesRule.KnownArgumentNamesOnDirectivesRule, _UniqueArgumentNamesRule.UniqueArgumentNamesRule, _UniqueInputFieldNamesRule.UniqueInputFieldNamesRule, _ProvidedRequiredArgumentsRule.ProvidedRequiredArgumentsOnDirectivesRule]);
/***/ }),
@@ -41831,6 +58316,7 @@ const specifiedSDLRules = exports.specifiedSDLRules = Object.freeze([_LoneSchema
\*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41840,6 +58326,7 @@ exports.assertValidSDL = assertValidSDL;
exports.assertValidSDLExtension = assertValidSDLExtension;
exports.validate = validate;
exports.validateSDL = validateSDL;
+var _devAssert = __webpack_require__(/*! ../jsutils/devAssert.mjs */ "../../../node_modules/graphql/jsutils/devAssert.mjs");
var _GraphQLError = __webpack_require__(/*! ../error/GraphQLError.mjs */ "../../../node_modules/graphql/error/GraphQLError.mjs");
var _visitor = __webpack_require__(/*! ../language/visitor.mjs */ "../../../node_modules/graphql/language/visitor.mjs");
var _validate = __webpack_require__(/*! ../type/validate.mjs */ "../../../node_modules/graphql/type/validate.mjs");
@@ -41866,30 +58353,32 @@ var _ValidationContext = __webpack_require__(/*! ./ValidationContext.mjs */ "../
* Optionally a custom TypeInfo instance may be provided. If not provided, one
* will be created from the provided schema.
*/
+
function validate(schema, documentAST, rules = _specifiedRules.specifiedRules, options, /** @deprecated will be removed in 17.0.0 */
typeInfo = new _TypeInfo.TypeInfo(schema)) {
var _options$maxErrors;
const maxErrors = (_options$maxErrors = options === null || options === void 0 ? void 0 : options.maxErrors) !== null && _options$maxErrors !== void 0 ? _options$maxErrors : 100;
- // If the schema used for validation is invalid, throw an error.
+ documentAST || (0, _devAssert.devAssert)(false, 'Must provide document.'); // If the schema used for validation is invalid, throw an error.
+
(0, _validate.assertValidSchema)(schema);
- const abortError = new _GraphQLError.GraphQLError('Too many validation errors, error limit reached. Validation aborted.');
+ const abortObj = Object.freeze({});
const errors = [];
const context = new _ValidationContext.ValidationContext(schema, documentAST, typeInfo, error => {
if (errors.length >= maxErrors) {
- throw abortError;
+ errors.push(new _GraphQLError.GraphQLError('Too many validation errors, error limit reached. Validation aborted.')); // eslint-disable-next-line @typescript-eslint/no-throw-literal
+
+ throw abortObj;
}
errors.push(error);
- });
- // This uses a specialized visitor which runs multiple visitors in parallel,
+ }); // This uses a specialized visitor which runs multiple visitors in parallel,
// while maintaining the visitor skip and break API.
- const visitor = (0, _visitor.visitInParallel)(rules.map(rule => rule(context)));
- // Visit the whole document with each instance of all provided rules.
+
+ const visitor = (0, _visitor.visitInParallel)(rules.map(rule => rule(context))); // Visit the whole document with each instance of all provided rules.
+
try {
(0, _visitor.visit)(documentAST, (0, _TypeInfo.visitWithTypeInfo)(typeInfo, visitor));
} catch (e) {
- if (e === abortError) {
- errors.push(abortError);
- } else {
+ if (e !== abortObj) {
throw e;
}
}
@@ -41898,6 +58387,7 @@ typeInfo = new _TypeInfo.TypeInfo(schema)) {
/**
* @internal
*/
+
function validateSDL(documentAST, schemaToExtend, rules = _specifiedRules.specifiedSDLRules) {
const errors = [];
const context = new _ValidationContext.SDLValidationContext(documentAST, schemaToExtend, error => {
@@ -41913,6 +58403,7 @@ function validateSDL(documentAST, schemaToExtend, rules = _specifiedRules.specif
*
* @internal
*/
+
function assertValidSDL(documentAST) {
const errors = validateSDL(documentAST);
if (errors.length !== 0) {
@@ -41925,6 +58416,7 @@ function assertValidSDL(documentAST) {
*
* @internal
*/
+
function assertValidSDLExtension(documentAST, schema) {
const errors = validateSDL(documentAST, schema);
if (errors.length !== 0) {
@@ -41940,6 +58432,7 @@ function assertValidSDLExtension(documentAST, schema) {
\*************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -41948,18 +58441,20 @@ Object.defineProperty(exports, "__esModule", ({
exports.versionInfo = exports.version = void 0;
// Note: This file is autogenerated using "resources/gen-version.js" script and
// automatically updated by "npm version" command.
+
/**
* A string containing the version of the GraphQL.js library
*/
-const version = exports.version = '17.0.0-alpha.7';
+const version = exports.version = '16.9.0';
/**
* An object containing the components of the GraphQL.js version string
*/
+
const versionInfo = exports.versionInfo = Object.freeze({
- major: 17,
- minor: 0,
+ major: 16,
+ minor: 9,
patch: 0,
- preReleaseTag: 'alpha.7'
+ preReleaseTag: null
});
/***/ }),
@@ -41970,6 +58465,7 @@ const versionInfo = exports.versionInfo = Object.freeze({
\**************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -42001,6 +58497,7 @@ if (true) {
\******************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
/*!
* is-plain-object
*
@@ -42043,6 +58540,7 @@ module.exports = function isPlainObject(o) {
\***************************************************/
/***/ (function(module) {
+"use strict";
/*!
* is-primitive
*
@@ -42067,6 +58565,7 @@ module.exports = function isPrimitive(val) {
\**********************************************/
/***/ (function(module) {
+"use strict";
var toString = {}.toString;
@@ -42082,6 +58581,7 @@ module.exports = Array.isArray || function (arr) {
\***********************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
/*!
* isobject
*
@@ -42104,6 +58604,7 @@ module.exports = function isObject(val) {
\***********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var uc_micro = __webpack_require__(/*! uc.micro */ "../../../node_modules/uc.micro/build/index.cjs.js");
@@ -42797,6 +59298,7 @@ module.exports = LinkifyIt;
\***********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var mdurl = __webpack_require__(/*! mdurl */ "../../../node_modules/mdurl/build/index.cjs.js");
@@ -48336,6 +64838,7 @@ module.exports = MarkdownIt;
\******************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
/* eslint-disable no-bitwise */
@@ -48832,6 +65335,7 @@ exports.parse = urlParse;
\****************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
var e = new TextDecoder();
@@ -48901,6 +65405,7 @@ exports.meros = t;
\******************************************************/
/***/ (function(module) {
+"use strict";
function nullthrows(x, message) {
@@ -48925,6 +65430,7 @@ Object.defineProperty(module.exports, "__esModule", ({
\*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -49879,6 +66385,7 @@ exports.wrap = wrap;
\*********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
/** Highest positive signed 32-bit float value */
@@ -50313,12 +66820,293 @@ var _default = exports["default"] = punycode;
/***/ }),
+/***/ "../../../node_modules/react-compiler-runtime/dist/index.js":
+/*!******************************************************************!*\
+ !*** ../../../node_modules/react-compiler-runtime/dist/index.js ***!
+ \******************************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ * @lightSyntaxTransform
+ * @noflow
+ * @nolint
+ * @preventMunge
+ * @preserve-invariant-messages
+ */
+
+"use no memo";
+'use strict';
+
+var React = __webpack_require__(/*! react */ "react");
+function _interopNamespaceDefault(e) {
+ var n = Object.create(null);
+ if (e) {
+ Object.keys(e).forEach(function (k) {
+ if (k !== 'default') {
+ var d = Object.getOwnPropertyDescriptor(e, k);
+ Object.defineProperty(n, k, d.get ? d : {
+ enumerable: true,
+ get: function () {
+ return e[k];
+ }
+ });
+ }
+ });
+ }
+ n.default = e;
+ return Object.freeze(n);
+}
+var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
+var _a, _b;
+const {
+ useRef,
+ useEffect,
+ isValidElement
+} = React__namespace;
+const ReactSecretInternals = (_a = React__namespace.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) !== null && _a !== void 0 ? _a : React__namespace.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
+const $empty = Symbol.for('react.memo_cache_sentinel');
+const c = typeof ((_b = React__namespace.__COMPILER_RUNTIME) === null || _b === void 0 ? void 0 : _b.c) === 'function' ? React__namespace.__COMPILER_RUNTIME.c : function c(size) {
+ return React__namespace.useMemo(() => {
+ const $ = new Array(size);
+ for (let ii = 0; ii < size; ii++) {
+ $[ii] = $empty;
+ }
+ $[$empty] = true;
+ return $;
+ }, []);
+};
+const LazyGuardDispatcher = {};
+['readContext', 'useCallback', 'useContext', 'useEffect', 'useImperativeHandle', 'useInsertionEffect', 'useLayoutEffect', 'useMemo', 'useReducer', 'useRef', 'useState', 'useDebugValue', 'useDeferredValue', 'useTransition', 'useMutableSource', 'useSyncExternalStore', 'useId', 'unstable_isNewReconciler', 'getCacheSignal', 'getCacheForType', 'useCacheRefresh'].forEach(name => {
+ LazyGuardDispatcher[name] = () => {
+ throw new Error(`[React] Unexpected React hook call (${name}) from a React compiled function. ` + "Check that all hooks are called directly and named according to convention ('use[A-Z]') ");
+ };
+});
+let originalDispatcher = null;
+LazyGuardDispatcher['useMemoCache'] = count => {
+ if (originalDispatcher == null) {
+ throw new Error('React Compiler internal invariant violation: unexpected null dispatcher');
+ } else {
+ return originalDispatcher.useMemoCache(count);
+ }
+};
+var GuardKind;
+(function (GuardKind) {
+ GuardKind[GuardKind["PushGuardContext"] = 0] = "PushGuardContext";
+ GuardKind[GuardKind["PopGuardContext"] = 1] = "PopGuardContext";
+ GuardKind[GuardKind["PushExpectHook"] = 2] = "PushExpectHook";
+ GuardKind[GuardKind["PopExpectHook"] = 3] = "PopExpectHook";
+})(GuardKind || (GuardKind = {}));
+function setCurrent(newDispatcher) {
+ ReactSecretInternals.ReactCurrentDispatcher.current = newDispatcher;
+ return ReactSecretInternals.ReactCurrentDispatcher.current;
+}
+const guardFrames = [];
+function $dispatcherGuard(kind) {
+ const curr = ReactSecretInternals.ReactCurrentDispatcher.current;
+ if (kind === GuardKind.PushGuardContext) {
+ guardFrames.push(curr);
+ if (guardFrames.length === 1) {
+ originalDispatcher = curr;
+ }
+ if (curr === LazyGuardDispatcher) {
+ throw new Error(`[React] Unexpected call to custom hook or component from a React compiled function. ` + "Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') " + 'and (2) components are returned as JSX instead of being directly invoked.');
+ }
+ setCurrent(LazyGuardDispatcher);
+ } else if (kind === GuardKind.PopGuardContext) {
+ const lastFrame = guardFrames.pop();
+ if (lastFrame == null) {
+ throw new Error('React Compiler internal error: unexpected null in guard stack');
+ }
+ if (guardFrames.length === 0) {
+ originalDispatcher = null;
+ }
+ setCurrent(lastFrame);
+ } else if (kind === GuardKind.PushExpectHook) {
+ guardFrames.push(curr);
+ setCurrent(originalDispatcher);
+ } else if (kind === GuardKind.PopExpectHook) {
+ const lastFrame = guardFrames.pop();
+ if (lastFrame == null) {
+ throw new Error('React Compiler internal error: unexpected null in guard stack');
+ }
+ setCurrent(lastFrame);
+ } else {
+ throw new Error('React Compiler internal error: unreachable block' + kind);
+ }
+}
+function $reset($) {
+ for (let ii = 0; ii < $.length; ii++) {
+ $[ii] = $empty;
+ }
+}
+function $makeReadOnly() {
+ throw new Error('TODO: implement $makeReadOnly in react-compiler-runtime');
+}
+const renderCounterRegistry = new Map();
+function clearRenderCounterRegistry() {
+ for (const counters of renderCounterRegistry.values()) {
+ counters.forEach(counter => {
+ counter.count = 0;
+ });
+ }
+}
+function registerRenderCounter(name, val) {
+ let counters = renderCounterRegistry.get(name);
+ if (counters == null) {
+ counters = new Set();
+ renderCounterRegistry.set(name, counters);
+ }
+ counters.add(val);
+}
+function removeRenderCounter(name, val) {
+ const counters = renderCounterRegistry.get(name);
+ if (counters == null) {
+ return;
+ }
+ counters.delete(val);
+}
+function useRenderCounter(name) {
+ const val = useRef(null);
+ if (val.current != null) {
+ val.current.count += 1;
+ }
+ useEffect(() => {
+ if (val.current == null) {
+ const counter = {
+ count: 0
+ };
+ registerRenderCounter(name, counter);
+ val.current = counter;
+ }
+ return () => {
+ if (val.current !== null) {
+ removeRenderCounter(name, val.current);
+ }
+ };
+ });
+}
+const seenErrors = new Set();
+function $structuralCheck(oldValue, newValue, variableName, fnName, kind, loc) {
+ function error(l, r, path, depth) {
+ const str = `${fnName}:${loc} [${kind}] ${variableName}${path} changed from ${l} to ${r} at depth ${depth}`;
+ if (seenErrors.has(str)) {
+ return;
+ }
+ seenErrors.add(str);
+ console.error(str);
+ }
+ const depthLimit = 2;
+ function recur(oldValue, newValue, path, depth) {
+ if (depth > depthLimit) {
+ return;
+ } else if (oldValue === newValue) {
+ return;
+ } else if (typeof oldValue !== typeof newValue) {
+ error(`type ${typeof oldValue}`, `type ${typeof newValue}`, path, depth);
+ } else if (typeof oldValue === 'object') {
+ const oldArray = Array.isArray(oldValue);
+ const newArray = Array.isArray(newValue);
+ if (oldValue === null && newValue !== null) {
+ error('null', `type ${typeof newValue}`, path, depth);
+ } else if (newValue === null) {
+ error(`type ${typeof oldValue}`, 'null', path, depth);
+ } else if (oldValue instanceof Map) {
+ if (!(newValue instanceof Map)) {
+ error(`Map instance`, `other value`, path, depth);
+ } else if (oldValue.size !== newValue.size) {
+ error(`Map instance with size ${oldValue.size}`, `Map instance with size ${newValue.size}`, path, depth);
+ } else {
+ for (const [k, v] of oldValue) {
+ if (!newValue.has(k)) {
+ error(`Map instance with key ${k}`, `Map instance without key ${k}`, path, depth);
+ } else {
+ recur(v, newValue.get(k), `${path}.get(${k})`, depth + 1);
+ }
+ }
+ }
+ } else if (newValue instanceof Map) {
+ error('other value', `Map instance`, path, depth);
+ } else if (oldValue instanceof Set) {
+ if (!(newValue instanceof Set)) {
+ error(`Set instance`, `other value`, path, depth);
+ } else if (oldValue.size !== newValue.size) {
+ error(`Set instance with size ${oldValue.size}`, `Set instance with size ${newValue.size}`, path, depth);
+ } else {
+ for (const v of newValue) {
+ if (!oldValue.has(v)) {
+ error(`Set instance without element ${v}`, `Set instance with element ${v}`, path, depth);
+ }
+ }
+ }
+ } else if (newValue instanceof Set) {
+ error('other value', `Set instance`, path, depth);
+ } else if (oldArray || newArray) {
+ if (oldArray !== newArray) {
+ error(`type ${oldArray ? 'array' : 'object'}`, `type ${newArray ? 'array' : 'object'}`, path, depth);
+ } else if (oldValue.length !== newValue.length) {
+ error(`array with length ${oldValue.length}`, `array with length ${newValue.length}`, path, depth);
+ } else {
+ for (let ii = 0; ii < oldValue.length; ii++) {
+ recur(oldValue[ii], newValue[ii], `${path}[${ii}]`, depth + 1);
+ }
+ }
+ } else if (isValidElement(oldValue) || isValidElement(newValue)) {
+ if (isValidElement(oldValue) !== isValidElement(newValue)) {
+ error(`type ${isValidElement(oldValue) ? 'React element' : 'object'}`, `type ${isValidElement(newValue) ? 'React element' : 'object'}`, path, depth);
+ } else if (oldValue.type !== newValue.type) {
+ error(`React element of type ${oldValue.type}`, `React element of type ${newValue.type}`, path, depth);
+ } else {
+ recur(oldValue.props, newValue.props, `[props of ${path}]`, depth + 1);
+ }
+ } else {
+ for (const key in newValue) {
+ if (!(key in oldValue)) {
+ error(`object without key ${key}`, `object with key ${key}`, path, depth);
+ }
+ }
+ for (const key in oldValue) {
+ if (!(key in newValue)) {
+ error(`object with key ${key}`, `object without key ${key}`, path, depth);
+ } else {
+ recur(oldValue[key], newValue[key], `${path}.${key}`, depth + 1);
+ }
+ }
+ }
+ } else if (typeof oldValue === 'function') {
+ return;
+ } else if (isNaN(oldValue) || isNaN(newValue)) {
+ if (isNaN(oldValue) !== isNaN(newValue)) {
+ error(`${isNaN(oldValue) ? 'NaN' : 'non-NaN value'}`, `${isNaN(newValue) ? 'NaN' : 'non-NaN value'}`, path, depth);
+ }
+ } else if (oldValue !== newValue) {
+ error(oldValue, newValue, path, depth);
+ }
+ }
+ recur(oldValue, newValue, '', 0);
+}
+exports.$dispatcherGuard = $dispatcherGuard;
+exports.$makeReadOnly = $makeReadOnly;
+exports.$reset = $reset;
+exports.$structuralCheck = $structuralCheck;
+exports.c = c;
+exports.clearRenderCounterRegistry = clearRenderCounterRegistry;
+exports.renderCounterRegistry = renderCounterRegistry;
+exports.useRenderCounter = useRenderCounter;
+
+/***/ }),
+
/***/ "../../../node_modules/react-remove-scroll-bar/dist/es2015/component.js":
/*!******************************************************************************!*\
!*** ../../../node_modules/react-remove-scroll-bar/dist/es2015/component.js ***!
\******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50370,6 +67158,7 @@ exports.RemoveScrollBar = RemoveScrollBar;
\******************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50393,6 +67182,7 @@ var removedBarSizeVariable = exports.removedBarSizeVariable = '--removed-body-sc
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50446,6 +67236,7 @@ var _utils = __webpack_require__(/*! ./utils */ "../../../node_modules/react-rem
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50500,6 +67291,7 @@ exports.getGapWidth = getGapWidth;
\****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50530,6 +67322,7 @@ var _default = exports["default"] = ReactRemoveScroll;
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50720,6 +67513,7 @@ function RemoveScrollSideCar(props) {
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50798,6 +67592,7 @@ RemoveScroll.classNames = {
\*********************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50833,6 +67628,7 @@ var nonPassive = exports.nonPassive = passiveSupported ? {
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50950,6 +67746,7 @@ exports.handleScroll = handleScroll;
\**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50972,6 +67769,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -50989,6 +67787,7 @@ var effectCar = exports.effectCar = (0, _useSidecar.createSidecarMedium)();
\************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -51008,6 +67807,7 @@ var _default = exports["default"] = (0, _useSidecar.exportSidecar)(_medium.effec
\****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -51041,6 +67841,7 @@ exports.styleSingleton = styleSingleton;
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -51081,6 +67882,7 @@ exports.styleHookSingleton = styleHookSingleton;
\************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -51116,6 +67918,7 @@ var _hook = __webpack_require__(/*! ./hook */ "../../../node_modules/react-style
\****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -51178,6 +67981,7 @@ exports.stylesheetSingleton = stylesheetSingleton;
\************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
/**
* @license React
* react-jsx-runtime.development.js
@@ -52316,6 +69120,7 @@ if (true) {
\**************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
if (false) {} else {
@@ -52330,6 +69135,7 @@ if (false) {} else {
\************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
/*!
* set-value
*
@@ -52476,6 +69282,7 @@ module.exports = setValue;
\**********************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -52700,6 +69507,7 @@ exports.vw = vw;
\*******************************************************/
/***/ (function(module) {
+"use strict";
module.exports = function () {
@@ -52742,6 +69550,7 @@ module.exports = function () {
\*************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53310,6 +70119,7 @@ var _default = exports["default"] = {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
var regex$5 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
@@ -53333,6 +70143,7 @@ exports.Z = regex;
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53369,6 +70180,7 @@ function assignRef(ref, value) {
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53407,6 +70219,7 @@ function createCallbackRef(callback) {
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53483,6 +70296,7 @@ var _refToCallback = __webpack_require__(/*! ./refToCallback */ "../../../node_m
\**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53520,6 +70334,7 @@ function mergeRefs(refs) {
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53585,6 +70400,7 @@ function useRefToCallback(ref) {
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53616,6 +70432,7 @@ function transformRef(ref, transformer) {
\*************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53654,6 +70471,7 @@ function useMergeRefs(refs, defaultValue) {
\********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53710,6 +70528,7 @@ function useCallbackRef(initialValue, callback) {
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53745,6 +70564,7 @@ function useTransformRef(ref, transformer) {
\***************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53769,6 +70589,7 @@ exports.setConfig = setConfig;
\************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53789,6 +70610,7 @@ var env = exports.env = {
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53825,6 +70647,7 @@ function exportSidecar(medium, exported) {
\************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53861,6 +70684,7 @@ function sidecar(importer, errorComponent) {
\*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53930,6 +70754,7 @@ function useRealSidecar(importer, effect) {
\**************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -53992,6 +70817,7 @@ var _exports = __webpack_require__(/*! ./exports */ "../../../node_modules/use-s
\***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -54103,6 +70929,7 @@ function createSidecarMedium(options) {
\*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -54171,6 +70998,7 @@ function renderCar(WrappedComponent, defaults) {
\*************************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
@@ -56439,12584 +73267,20 @@ var Is;
/***/ }),
-/***/ "../../graphiql-react/dist/SchemaReference.cjs.js":
-/*!********************************************************!*\
- !*** ../../graphiql-react/dist/SchemaReference.cjs.js ***!
- \********************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
-const forEachState = __webpack_require__(/*! ./forEachState.cjs.js */ "../../graphiql-react/dist/forEachState.cjs.js");
-function getTypeInfo(schema, tokenState) {
- const info = {
- schema,
- type: null,
- parentType: null,
- inputType: null,
- directiveDef: null,
- fieldDef: null,
- argDef: null,
- argDefs: null,
- objectFieldDefs: null
- };
- forEachState.forEachState(tokenState, state => {
- var _a, _b;
- switch (state.kind) {
- case "Query":
- case "ShortQuery":
- info.type = schema.getQueryType();
- break;
- case "Mutation":
- info.type = schema.getMutationType();
- break;
- case "Subscription":
- info.type = schema.getSubscriptionType();
- break;
- case "InlineFragment":
- case "FragmentDefinition":
- if (state.type) {
- info.type = schema.getType(state.type);
- }
- break;
- case "Field":
- case "AliasedField":
- info.fieldDef = info.type && state.name ? getFieldDef(schema, info.parentType, state.name) : null;
- info.type = (_a = info.fieldDef) === null || _a === void 0 ? void 0 : _a.type;
- break;
- case "SelectionSet":
- info.parentType = info.type ? graphql.getNamedType(info.type) : null;
- break;
- case "Directive":
- info.directiveDef = state.name ? schema.getDirective(state.name) : null;
- break;
- case "Arguments":
- const parentDef = state.prevState ? state.prevState.kind === "Field" ? info.fieldDef : state.prevState.kind === "Directive" ? info.directiveDef : state.prevState.kind === "AliasedField" ? state.prevState.name && getFieldDef(schema, info.parentType, state.prevState.name) : null : null;
- info.argDefs = parentDef ? parentDef.args : null;
- break;
- case "Argument":
- info.argDef = null;
- if (info.argDefs) {
- for (let i = 0; i < info.argDefs.length; i++) {
- if (info.argDefs[i].name === state.name) {
- info.argDef = info.argDefs[i];
- break;
- }
- }
- }
- info.inputType = (_b = info.argDef) === null || _b === void 0 ? void 0 : _b.type;
- break;
- case "EnumValue":
- const enumType = info.inputType ? graphql.getNamedType(info.inputType) : null;
- info.enumValue = enumType instanceof graphql.GraphQLEnumType ? find(enumType.getValues(), val => val.value === state.name) : null;
- break;
- case "ListValue":
- const nullableType = info.inputType ? graphql.getNullableType(info.inputType) : null;
- info.inputType = nullableType instanceof graphql.GraphQLList ? nullableType.ofType : null;
- break;
- case "ObjectValue":
- const objectType = info.inputType ? graphql.getNamedType(info.inputType) : null;
- info.objectFieldDefs = objectType instanceof graphql.GraphQLInputObjectType ? objectType.getFields() : null;
- break;
- case "ObjectField":
- const objectField = state.name && info.objectFieldDefs ? info.objectFieldDefs[state.name] : null;
- info.inputType = objectField === null || objectField === void 0 ? void 0 : objectField.type;
- info.fieldDef = objectField;
- break;
- case "NamedType":
- info.type = state.name ? schema.getType(state.name) : null;
- break;
- }
- });
- return info;
-}
-function getFieldDef(schema, type, fieldName) {
- if (fieldName === graphql.SchemaMetaFieldDef.name && schema.getQueryType() === type) {
- return graphql.SchemaMetaFieldDef;
- }
- if (fieldName === graphql.TypeMetaFieldDef.name && schema.getQueryType() === type) {
- return graphql.TypeMetaFieldDef;
- }
- if (fieldName === graphql.TypeNameMetaFieldDef.name && graphql.isCompositeType(type)) {
- return graphql.TypeNameMetaFieldDef;
- }
- if (type && type.getFields) {
- return type.getFields()[fieldName];
- }
-}
-function find(array, predicate) {
- for (let i = 0; i < array.length; i++) {
- if (predicate(array[i])) {
- return array[i];
- }
- }
-}
-function getFieldReference(typeInfo) {
- return {
- kind: "Field",
- schema: typeInfo.schema,
- field: typeInfo.fieldDef,
- type: isMetaField(typeInfo.fieldDef) ? null : typeInfo.parentType
- };
-}
-function getDirectiveReference(typeInfo) {
- return {
- kind: "Directive",
- schema: typeInfo.schema,
- directive: typeInfo.directiveDef
- };
-}
-function getArgumentReference(typeInfo) {
- return typeInfo.directiveDef ? {
- kind: "Argument",
- schema: typeInfo.schema,
- argument: typeInfo.argDef,
- directive: typeInfo.directiveDef
- } : {
- kind: "Argument",
- schema: typeInfo.schema,
- argument: typeInfo.argDef,
- field: typeInfo.fieldDef,
- type: isMetaField(typeInfo.fieldDef) ? null : typeInfo.parentType
- };
-}
-function getEnumValueReference(typeInfo) {
- return {
- kind: "EnumValue",
- value: typeInfo.enumValue || void 0,
- type: typeInfo.inputType ? graphql.getNamedType(typeInfo.inputType) : void 0
- };
-}
-function getTypeReference(typeInfo, type) {
- return {
- kind: "Type",
- schema: typeInfo.schema,
- type: type || typeInfo.type
- };
-}
-function isMetaField(fieldDef) {
- return fieldDef.name.slice(0, 2) === "__";
-}
-exports.getArgumentReference = getArgumentReference;
-exports.getDirectiveReference = getDirectiveReference;
-exports.getEnumValueReference = getEnumValueReference;
-exports.getFieldReference = getFieldReference;
-exports.getTypeInfo = getTypeInfo;
-exports.getTypeReference = getTypeReference;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/brace-fold.cjs.js":
-/*!***************************************************!*\
- !*** ../../graphiql-react/dist/brace-fold.cjs.js ***!
- \***************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var braceFold$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- function bracketFolding(pairs) {
- return function (cm, start) {
- var line = start.line,
- lineText = cm.getLine(line);
- function findOpening(pair) {
- var tokenType;
- for (var at = start.ch, pass = 0;;) {
- var found2 = at <= 0 ? -1 : lineText.lastIndexOf(pair[0], at - 1);
- if (found2 == -1) {
- if (pass == 1) break;
- pass = 1;
- at = lineText.length;
- continue;
- }
- if (pass == 1 && found2 < start.ch) break;
- tokenType = cm.getTokenTypeAt(CodeMirror.Pos(line, found2 + 1));
- if (!/^(comment|string)/.test(tokenType)) return {
- ch: found2 + 1,
- tokenType,
- pair
- };
- at = found2 - 1;
- }
- }
- function findRange(found2) {
- var count = 1,
- lastLine = cm.lastLine(),
- end,
- startCh = found2.ch,
- endCh;
- outer: for (var i2 = line; i2 <= lastLine; ++i2) {
- var text = cm.getLine(i2),
- pos = i2 == line ? startCh : 0;
- for (;;) {
- var nextOpen = text.indexOf(found2.pair[0], pos),
- nextClose = text.indexOf(found2.pair[1], pos);
- if (nextOpen < 0) nextOpen = text.length;
- if (nextClose < 0) nextClose = text.length;
- pos = Math.min(nextOpen, nextClose);
- if (pos == text.length) break;
- if (cm.getTokenTypeAt(CodeMirror.Pos(i2, pos + 1)) == found2.tokenType) {
- if (pos == nextOpen) ++count;else if (! --count) {
- end = i2;
- endCh = pos;
- break outer;
- }
- }
- ++pos;
- }
- }
- if (end == null || line == end) return null;
- return {
- from: CodeMirror.Pos(line, startCh),
- to: CodeMirror.Pos(end, endCh)
- };
- }
- var found = [];
- for (var i = 0; i < pairs.length; i++) {
- var open = findOpening(pairs[i]);
- if (open) found.push(open);
- }
- found.sort(function (a, b) {
- return a.ch - b.ch;
- });
- for (var i = 0; i < found.length; i++) {
- var range = findRange(found[i]);
- if (range) return range;
- }
- return null;
- };
- }
- CodeMirror.registerHelper("fold", "brace", bracketFolding([["{", "}"], ["[", "]"]]));
- CodeMirror.registerHelper("fold", "brace-paren", bracketFolding([["{", "}"], ["[", "]"], ["(", ")"]]));
- CodeMirror.registerHelper("fold", "import", function (cm, start) {
- function hasImport(line) {
- if (line < cm.firstLine() || line > cm.lastLine()) return null;
- var start2 = cm.getTokenAt(CodeMirror.Pos(line, 1));
- if (!/\S/.test(start2.string)) start2 = cm.getTokenAt(CodeMirror.Pos(line, start2.end + 1));
- if (start2.type != "keyword" || start2.string != "import") return null;
- for (var i = line, e = Math.min(cm.lastLine(), line + 10); i <= e; ++i) {
- var text = cm.getLine(i),
- semi = text.indexOf(";");
- if (semi != -1) return {
- startCh: start2.end,
- end: CodeMirror.Pos(i, semi)
- };
- }
- }
- var startLine = start.line,
- has = hasImport(startLine),
- prev;
- if (!has || hasImport(startLine - 1) || (prev = hasImport(startLine - 2)) && prev.end.line == startLine - 1) return null;
- for (var end = has.end;;) {
- var next = hasImport(end.line + 1);
- if (next == null) break;
- end = next.end;
- }
- return {
- from: cm.clipPos(CodeMirror.Pos(startLine, has.startCh + 1)),
- to: end
- };
- });
- CodeMirror.registerHelper("fold", "include", function (cm, start) {
- function hasInclude(line) {
- if (line < cm.firstLine() || line > cm.lastLine()) return null;
- var start2 = cm.getTokenAt(CodeMirror.Pos(line, 1));
- if (!/\S/.test(start2.string)) start2 = cm.getTokenAt(CodeMirror.Pos(line, start2.end + 1));
- if (start2.type == "meta" && start2.string.slice(0, 8) == "#include") return start2.start + 8;
- }
- var startLine = start.line,
- has = hasInclude(startLine);
- if (has == null || hasInclude(startLine - 1) != null) return null;
- for (var end = startLine;;) {
- var next = hasInclude(end + 1);
- if (next == null) break;
- ++end;
- }
- return {
- from: CodeMirror.Pos(startLine, has + 1),
- to: cm.clipPos(CodeMirror.Pos(end))
- };
- });
- });
-})();
-var braceFoldExports = braceFold$2.exports;
-const braceFold = /* @__PURE__ */codemirror.getDefaultExportFromCjs(braceFoldExports);
-const braceFold$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: braceFold
-}, [braceFoldExports]);
-exports.braceFold = braceFold$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/closebrackets.cjs.js":
-/*!******************************************************!*\
- !*** ../../graphiql-react/dist/closebrackets.cjs.js ***!
- \******************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var closebrackets$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- var defaults = {
- pairs: `()[]{}''""`,
- closeBefore: `)]}'":;>`,
- triples: "",
- explode: "[]{}"
- };
- var Pos = CodeMirror.Pos;
- CodeMirror.defineOption("autoCloseBrackets", false, function (cm, val, old) {
- if (old && old != CodeMirror.Init) {
- cm.removeKeyMap(keyMap);
- cm.state.closeBrackets = null;
- }
- if (val) {
- ensureBound(getOption(val, "pairs"));
- cm.state.closeBrackets = val;
- cm.addKeyMap(keyMap);
- }
- });
- function getOption(conf, name) {
- if (name == "pairs" && typeof conf == "string") return conf;
- if (typeof conf == "object" && conf[name] != null) return conf[name];
- return defaults[name];
- }
- var keyMap = {
- Backspace: handleBackspace,
- Enter: handleEnter
- };
- function ensureBound(chars) {
- for (var i = 0; i < chars.length; i++) {
- var ch = chars.charAt(i),
- key = "'" + ch + "'";
- if (!keyMap[key]) keyMap[key] = handler(ch);
- }
- }
- ensureBound(defaults.pairs + "`");
- function handler(ch) {
- return function (cm) {
- return handleChar(cm, ch);
- };
- }
- function getConfig(cm) {
- var deflt = cm.state.closeBrackets;
- if (!deflt || deflt.override) return deflt;
- var mode = cm.getModeAt(cm.getCursor());
- return mode.closeBrackets || deflt;
- }
- function handleBackspace(cm) {
- var conf = getConfig(cm);
- if (!conf || cm.getOption("disableInput")) return CodeMirror.Pass;
- var pairs = getOption(conf, "pairs");
- var ranges = cm.listSelections();
- for (var i = 0; i < ranges.length; i++) {
- if (!ranges[i].empty()) return CodeMirror.Pass;
- var around = charsAround(cm, ranges[i].head);
- if (!around || pairs.indexOf(around) % 2 != 0) return CodeMirror.Pass;
- }
- for (var i = ranges.length - 1; i >= 0; i--) {
- var cur = ranges[i].head;
- cm.replaceRange("", Pos(cur.line, cur.ch - 1), Pos(cur.line, cur.ch + 1), "+delete");
- }
- }
- function handleEnter(cm) {
- var conf = getConfig(cm);
- var explode = conf && getOption(conf, "explode");
- if (!explode || cm.getOption("disableInput")) return CodeMirror.Pass;
- var ranges = cm.listSelections();
- for (var i = 0; i < ranges.length; i++) {
- if (!ranges[i].empty()) return CodeMirror.Pass;
- var around = charsAround(cm, ranges[i].head);
- if (!around || explode.indexOf(around) % 2 != 0) return CodeMirror.Pass;
- }
- cm.operation(function () {
- var linesep = cm.lineSeparator() || "\n";
- cm.replaceSelection(linesep + linesep, null);
- moveSel(cm, -1);
- ranges = cm.listSelections();
- for (var i2 = 0; i2 < ranges.length; i2++) {
- var line = ranges[i2].head.line;
- cm.indentLine(line, null, true);
- cm.indentLine(line + 1, null, true);
- }
- });
- }
- function moveSel(cm, dir) {
- var newRanges = [],
- ranges = cm.listSelections(),
- primary = 0;
- for (var i = 0; i < ranges.length; i++) {
- var range = ranges[i];
- if (range.head == cm.getCursor()) primary = i;
- var pos = range.head.ch || dir > 0 ? {
- line: range.head.line,
- ch: range.head.ch + dir
- } : {
- line: range.head.line - 1
- };
- newRanges.push({
- anchor: pos,
- head: pos
- });
- }
- cm.setSelections(newRanges, primary);
- }
- function contractSelection(sel) {
- var inverted = CodeMirror.cmpPos(sel.anchor, sel.head) > 0;
- return {
- anchor: new Pos(sel.anchor.line, sel.anchor.ch + (inverted ? -1 : 1)),
- head: new Pos(sel.head.line, sel.head.ch + (inverted ? 1 : -1))
- };
- }
- function handleChar(cm, ch) {
- var conf = getConfig(cm);
- if (!conf || cm.getOption("disableInput")) return CodeMirror.Pass;
- var pairs = getOption(conf, "pairs");
- var pos = pairs.indexOf(ch);
- if (pos == -1) return CodeMirror.Pass;
- var closeBefore = getOption(conf, "closeBefore");
- var triples = getOption(conf, "triples");
- var identical = pairs.charAt(pos + 1) == ch;
- var ranges = cm.listSelections();
- var opening = pos % 2 == 0;
- var type;
- for (var i = 0; i < ranges.length; i++) {
- var range = ranges[i],
- cur = range.head,
- curType;
- var next = cm.getRange(cur, Pos(cur.line, cur.ch + 1));
- if (opening && !range.empty()) {
- curType = "surround";
- } else if ((identical || !opening) && next == ch) {
- if (identical && stringStartsAfter(cm, cur)) curType = "both";else if (triples.indexOf(ch) >= 0 && cm.getRange(cur, Pos(cur.line, cur.ch + 3)) == ch + ch + ch) curType = "skipThree";else curType = "skip";
- } else if (identical && cur.ch > 1 && triples.indexOf(ch) >= 0 && cm.getRange(Pos(cur.line, cur.ch - 2), cur) == ch + ch) {
- if (cur.ch > 2 && /\bstring/.test(cm.getTokenTypeAt(Pos(cur.line, cur.ch - 2)))) return CodeMirror.Pass;
- curType = "addFour";
- } else if (identical) {
- var prev = cur.ch == 0 ? " " : cm.getRange(Pos(cur.line, cur.ch - 1), cur);
- if (!CodeMirror.isWordChar(next) && prev != ch && !CodeMirror.isWordChar(prev)) curType = "both";else return CodeMirror.Pass;
- } else if (opening && (next.length === 0 || /\s/.test(next) || closeBefore.indexOf(next) > -1)) {
- curType = "both";
- } else {
- return CodeMirror.Pass;
- }
- if (!type) type = curType;else if (type != curType) return CodeMirror.Pass;
- }
- var left = pos % 2 ? pairs.charAt(pos - 1) : ch;
- var right = pos % 2 ? ch : pairs.charAt(pos + 1);
- cm.operation(function () {
- if (type == "skip") {
- moveSel(cm, 1);
- } else if (type == "skipThree") {
- moveSel(cm, 3);
- } else if (type == "surround") {
- var sels = cm.getSelections();
- for (var i2 = 0; i2 < sels.length; i2++) sels[i2] = left + sels[i2] + right;
- cm.replaceSelections(sels, "around");
- sels = cm.listSelections().slice();
- for (var i2 = 0; i2 < sels.length; i2++) sels[i2] = contractSelection(sels[i2]);
- cm.setSelections(sels);
- } else if (type == "both") {
- cm.replaceSelection(left + right, null);
- cm.triggerElectric(left + right);
- moveSel(cm, -1);
- } else if (type == "addFour") {
- cm.replaceSelection(left + left + left + left, "before");
- moveSel(cm, 1);
- }
- });
- }
- function charsAround(cm, pos) {
- var str = cm.getRange(Pos(pos.line, pos.ch - 1), Pos(pos.line, pos.ch + 1));
- return str.length == 2 ? str : null;
- }
- function stringStartsAfter(cm, pos) {
- var token = cm.getTokenAt(Pos(pos.line, pos.ch + 1));
- return /\bstring/.test(token.type) && token.start == pos.ch && (pos.ch == 0 || !/\bstring/.test(cm.getTokenTypeAt(pos)));
- }
- });
-})();
-var closebracketsExports = closebrackets$2.exports;
-const closebrackets = /* @__PURE__ */codemirror.getDefaultExportFromCjs(closebracketsExports);
-const closebrackets$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: closebrackets
-}, [closebracketsExports]);
-exports.closebrackets = closebrackets$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/codemirror.cjs.js":
-/*!***************************************************!*\
- !*** ../../graphiql-react/dist/codemirror.cjs.js ***!
- \***************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror$1 = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var codemirrorExports = codemirror$1.requireCodemirror();
-const CodeMirror = /* @__PURE__ */codemirror$1.getDefaultExportFromCjs(codemirrorExports);
-const codemirror = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: CodeMirror
-}, [codemirrorExports]);
-exports.CodeMirror = CodeMirror;
-exports.codemirror = codemirror;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/codemirror.cjs2.js":
-/*!****************************************************!*\
- !*** ../../graphiql-react/dist/codemirror.cjs2.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : typeof self !== "undefined" ? self : {};
-function getDefaultExportFromCjs(x) {
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
-}
-var codemirror = {
- exports: {}
-};
-var hasRequiredCodemirror;
-function requireCodemirror() {
- if (hasRequiredCodemirror) return codemirror.exports;
- hasRequiredCodemirror = 1;
- (function (module2, exports2) {
- (function (global2, factory) {
- module2.exports = factory();
- })(commonjsGlobal, function () {
- var userAgent = navigator.userAgent;
- var platform = navigator.platform;
- var gecko = /gecko\/\d/i.test(userAgent);
- var ie_upto10 = /MSIE \d/.test(userAgent);
- var ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(userAgent);
- var edge = /Edge\/(\d+)/.exec(userAgent);
- var ie = ie_upto10 || ie_11up || edge;
- var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]);
- var webkit = !edge && /WebKit\//.test(userAgent);
- var qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent);
- var chrome = !edge && /Chrome\//.test(userAgent);
- var presto = /Opera\//.test(userAgent);
- var safari = /Apple Computer/.test(navigator.vendor);
- var mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent);
- var phantom = /PhantomJS/.test(userAgent);
- var ios = safari && (/Mobile\/\w+/.test(userAgent) || navigator.maxTouchPoints > 2);
- var android = /Android/.test(userAgent);
- var mobile = ios || android || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent);
- var mac = ios || /Mac/.test(platform);
- var chromeOS = /\bCrOS\b/.test(userAgent);
- var windows = /win/i.test(platform);
- var presto_version = presto && userAgent.match(/Version\/(\d*\.\d*)/);
- if (presto_version) {
- presto_version = Number(presto_version[1]);
- }
- if (presto_version && presto_version >= 15) {
- presto = false;
- webkit = true;
- }
- var flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11));
- var captureRightClick = gecko || ie && ie_version >= 9;
- function classTest(cls) {
- return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*");
- }
- var rmClass = function (node, cls) {
- var current = node.className;
- var match = classTest(cls).exec(current);
- if (match) {
- var after = current.slice(match.index + match[0].length);
- node.className = current.slice(0, match.index) + (after ? match[1] + after : "");
- }
- };
- function removeChildren(e) {
- for (var count = e.childNodes.length; count > 0; --count) {
- e.removeChild(e.firstChild);
- }
- return e;
- }
- function removeChildrenAndAdd(parent, e) {
- return removeChildren(parent).appendChild(e);
- }
- function elt(tag, content, className, style) {
- var e = document.createElement(tag);
- if (className) {
- e.className = className;
- }
- if (style) {
- e.style.cssText = style;
- }
- if (typeof content == "string") {
- e.appendChild(document.createTextNode(content));
- } else if (content) {
- for (var i2 = 0; i2 < content.length; ++i2) {
- e.appendChild(content[i2]);
- }
- }
- return e;
- }
- function eltP(tag, content, className, style) {
- var e = elt(tag, content, className, style);
- e.setAttribute("role", "presentation");
- return e;
- }
- var range;
- if (document.createRange) {
- range = function (node, start, end, endNode) {
- var r = document.createRange();
- r.setEnd(endNode || node, end);
- r.setStart(node, start);
- return r;
- };
- } else {
- range = function (node, start, end) {
- var r = document.body.createTextRange();
- try {
- r.moveToElementText(node.parentNode);
- } catch (e) {
- return r;
- }
- r.collapse(true);
- r.moveEnd("character", end);
- r.moveStart("character", start);
- return r;
- };
- }
- function contains(parent, child) {
- if (child.nodeType == 3) {
- child = child.parentNode;
- }
- if (parent.contains) {
- return parent.contains(child);
- }
- do {
- if (child.nodeType == 11) {
- child = child.host;
- }
- if (child == parent) {
- return true;
- }
- } while (child = child.parentNode);
- }
- function activeElt() {
- var activeElement;
- try {
- activeElement = document.activeElement;
- } catch (e) {
- activeElement = document.body || null;
- }
- while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement) {
- activeElement = activeElement.shadowRoot.activeElement;
- }
- return activeElement;
- }
- function addClass(node, cls) {
- var current = node.className;
- if (!classTest(cls).test(current)) {
- node.className += (current ? " " : "") + cls;
- }
- }
- function joinClasses(a, b) {
- var as = a.split(" ");
- for (var i2 = 0; i2 < as.length; i2++) {
- if (as[i2] && !classTest(as[i2]).test(b)) {
- b += " " + as[i2];
- }
- }
- return b;
- }
- var selectInput = function (node) {
- node.select();
- };
- if (ios) {
- selectInput = function (node) {
- node.selectionStart = 0;
- node.selectionEnd = node.value.length;
- };
- } else if (ie) {
- selectInput = function (node) {
- try {
- node.select();
- } catch (_e) {}
- };
- }
- function bind(f) {
- var args = Array.prototype.slice.call(arguments, 1);
- return function () {
- return f.apply(null, args);
- };
- }
- function copyObj(obj, target, overwrite) {
- if (!target) {
- target = {};
- }
- for (var prop2 in obj) {
- if (obj.hasOwnProperty(prop2) && (overwrite !== false || !target.hasOwnProperty(prop2))) {
- target[prop2] = obj[prop2];
- }
- }
- return target;
- }
- function countColumn(string, end, tabSize, startIndex, startValue) {
- if (end == null) {
- end = string.search(/[^\s\u00a0]/);
- if (end == -1) {
- end = string.length;
- }
- }
- for (var i2 = startIndex || 0, n = startValue || 0;;) {
- var nextTab = string.indexOf(" ", i2);
- if (nextTab < 0 || nextTab >= end) {
- return n + (end - i2);
- }
- n += nextTab - i2;
- n += tabSize - n % tabSize;
- i2 = nextTab + 1;
- }
- }
- var Delayed = function () {
- this.id = null;
- this.f = null;
- this.time = 0;
- this.handler = bind(this.onTimeout, this);
- };
- Delayed.prototype.onTimeout = function (self2) {
- self2.id = 0;
- if (self2.time <= + /* @__PURE__ */new Date()) {
- self2.f();
- } else {
- setTimeout(self2.handler, self2.time - + /* @__PURE__ */new Date());
- }
- };
- Delayed.prototype.set = function (ms, f) {
- this.f = f;
- var time = + /* @__PURE__ */new Date() + ms;
- if (!this.id || time < this.time) {
- clearTimeout(this.id);
- this.id = setTimeout(this.handler, ms);
- this.time = time;
- }
- };
- function indexOf(array, elt2) {
- for (var i2 = 0; i2 < array.length; ++i2) {
- if (array[i2] == elt2) {
- return i2;
- }
- }
- return -1;
- }
- var scrollerGap = 50;
- var Pass = {
- toString: function () {
- return "CodeMirror.Pass";
- }
- };
- var sel_dontScroll = {
- scroll: false
- },
- sel_mouse = {
- origin: "*mouse"
- },
- sel_move = {
- origin: "+move"
- };
- function findColumn(string, goal, tabSize) {
- for (var pos = 0, col = 0;;) {
- var nextTab = string.indexOf(" ", pos);
- if (nextTab == -1) {
- nextTab = string.length;
- }
- var skipped = nextTab - pos;
- if (nextTab == string.length || col + skipped >= goal) {
- return pos + Math.min(skipped, goal - col);
- }
- col += nextTab - pos;
- col += tabSize - col % tabSize;
- pos = nextTab + 1;
- if (col >= goal) {
- return pos;
- }
- }
- }
- var spaceStrs = [""];
- function spaceStr(n) {
- while (spaceStrs.length <= n) {
- spaceStrs.push(lst(spaceStrs) + " ");
- }
- return spaceStrs[n];
- }
- function lst(arr) {
- return arr[arr.length - 1];
- }
- function map(array, f) {
- var out = [];
- for (var i2 = 0; i2 < array.length; i2++) {
- out[i2] = f(array[i2], i2);
- }
- return out;
- }
- function insertSorted(array, value, score) {
- var pos = 0,
- priority = score(value);
- while (pos < array.length && score(array[pos]) <= priority) {
- pos++;
- }
- array.splice(pos, 0, value);
- }
- function nothing() {}
- function createObj(base, props) {
- var inst;
- if (Object.create) {
- inst = Object.create(base);
- } else {
- nothing.prototype = base;
- inst = new nothing();
- }
- if (props) {
- copyObj(props, inst);
- }
- return inst;
- }
- var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
- function isWordCharBasic(ch) {
- return /\w/.test(ch) || ch > "" && (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
- }
- function isWordChar(ch, helper) {
- if (!helper) {
- return isWordCharBasic(ch);
- }
- if (helper.source.indexOf("\\w") > -1 && isWordCharBasic(ch)) {
- return true;
- }
- return helper.test(ch);
- }
- function isEmpty(obj) {
- for (var n in obj) {
- if (obj.hasOwnProperty(n) && obj[n]) {
- return false;
- }
- }
- return true;
- }
- var extendingChars = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;
- function isExtendingChar(ch) {
- return ch.charCodeAt(0) >= 768 && extendingChars.test(ch);
- }
- function skipExtendingChars(str, pos, dir) {
- while ((dir < 0 ? pos > 0 : pos < str.length) && isExtendingChar(str.charAt(pos))) {
- pos += dir;
- }
- return pos;
- }
- function findFirst(pred, from, to) {
- var dir = from > to ? -1 : 1;
- for (;;) {
- if (from == to) {
- return from;
- }
- var midF = (from + to) / 2,
- mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);
- if (mid == from) {
- return pred(mid) ? from : to;
- }
- if (pred(mid)) {
- to = mid;
- } else {
- from = mid + dir;
- }
- }
- }
- function iterateBidiSections(order, from, to, f) {
- if (!order) {
- return f(from, to, "ltr", 0);
- }
- var found = false;
- for (var i2 = 0; i2 < order.length; ++i2) {
- var part = order[i2];
- if (part.from < to && part.to > from || from == to && part.to == from) {
- f(Math.max(part.from, from), Math.min(part.to, to), part.level == 1 ? "rtl" : "ltr", i2);
- found = true;
- }
- }
- if (!found) {
- f(from, to, "ltr");
- }
- }
- var bidiOther = null;
- function getBidiPartAt(order, ch, sticky) {
- var found;
- bidiOther = null;
- for (var i2 = 0; i2 < order.length; ++i2) {
- var cur = order[i2];
- if (cur.from < ch && cur.to > ch) {
- return i2;
- }
- if (cur.to == ch) {
- if (cur.from != cur.to && sticky == "before") {
- found = i2;
- } else {
- bidiOther = i2;
- }
- }
- if (cur.from == ch) {
- if (cur.from != cur.to && sticky != "before") {
- found = i2;
- } else {
- bidiOther = i2;
- }
- }
- }
- return found != null ? found : bidiOther;
- }
- var bidiOrdering = /* @__PURE__ */function () {
- var lowTypes = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";
- var arabicTypes = "nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";
- function charType(code) {
- if (code <= 247) {
- return lowTypes.charAt(code);
- } else if (1424 <= code && code <= 1524) {
- return "R";
- } else if (1536 <= code && code <= 1785) {
- return arabicTypes.charAt(code - 1536);
- } else if (1774 <= code && code <= 2220) {
- return "r";
- } else if (8192 <= code && code <= 8203) {
- return "w";
- } else if (code == 8204) {
- return "b";
- } else {
- return "L";
- }
- }
- var bidiRE = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
- var isNeutral = /[stwN]/,
- isStrong = /[LRr]/,
- countsAsLeft = /[Lb1n]/,
- countsAsNum = /[1n]/;
- function BidiSpan(level, from, to) {
- this.level = level;
- this.from = from;
- this.to = to;
- }
- return function (str, direction) {
- var outerType = direction == "ltr" ? "L" : "R";
- if (str.length == 0 || direction == "ltr" && !bidiRE.test(str)) {
- return false;
- }
- var len = str.length,
- types = [];
- for (var i2 = 0; i2 < len; ++i2) {
- types.push(charType(str.charCodeAt(i2)));
- }
- for (var i$12 = 0, prev = outerType; i$12 < len; ++i$12) {
- var type = types[i$12];
- if (type == "m") {
- types[i$12] = prev;
- } else {
- prev = type;
- }
- }
- for (var i$22 = 0, cur = outerType; i$22 < len; ++i$22) {
- var type$1 = types[i$22];
- if (type$1 == "1" && cur == "r") {
- types[i$22] = "n";
- } else if (isStrong.test(type$1)) {
- cur = type$1;
- if (type$1 == "r") {
- types[i$22] = "R";
- }
- }
- }
- for (var i$3 = 1, prev$1 = types[0]; i$3 < len - 1; ++i$3) {
- var type$2 = types[i$3];
- if (type$2 == "+" && prev$1 == "1" && types[i$3 + 1] == "1") {
- types[i$3] = "1";
- } else if (type$2 == "," && prev$1 == types[i$3 + 1] && (prev$1 == "1" || prev$1 == "n")) {
- types[i$3] = prev$1;
- }
- prev$1 = type$2;
- }
- for (var i$4 = 0; i$4 < len; ++i$4) {
- var type$3 = types[i$4];
- if (type$3 == ",") {
- types[i$4] = "N";
- } else if (type$3 == "%") {
- var end = void 0;
- for (end = i$4 + 1; end < len && types[end] == "%"; ++end) {}
- var replace = i$4 && types[i$4 - 1] == "!" || end < len && types[end] == "1" ? "1" : "N";
- for (var j = i$4; j < end; ++j) {
- types[j] = replace;
- }
- i$4 = end - 1;
- }
- }
- for (var i$5 = 0, cur$1 = outerType; i$5 < len; ++i$5) {
- var type$4 = types[i$5];
- if (cur$1 == "L" && type$4 == "1") {
- types[i$5] = "L";
- } else if (isStrong.test(type$4)) {
- cur$1 = type$4;
- }
- }
- for (var i$6 = 0; i$6 < len; ++i$6) {
- if (isNeutral.test(types[i$6])) {
- var end$1 = void 0;
- for (end$1 = i$6 + 1; end$1 < len && isNeutral.test(types[end$1]); ++end$1) {}
- var before = (i$6 ? types[i$6 - 1] : outerType) == "L";
- var after = (end$1 < len ? types[end$1] : outerType) == "L";
- var replace$1 = before == after ? before ? "L" : "R" : outerType;
- for (var j$1 = i$6; j$1 < end$1; ++j$1) {
- types[j$1] = replace$1;
- }
- i$6 = end$1 - 1;
- }
- }
- var order = [],
- m;
- for (var i$7 = 0; i$7 < len;) {
- if (countsAsLeft.test(types[i$7])) {
- var start = i$7;
- for (++i$7; i$7 < len && countsAsLeft.test(types[i$7]); ++i$7) {}
- order.push(new BidiSpan(0, start, i$7));
- } else {
- var pos = i$7,
- at = order.length,
- isRTL = direction == "rtl" ? 1 : 0;
- for (++i$7; i$7 < len && types[i$7] != "L"; ++i$7) {}
- for (var j$2 = pos; j$2 < i$7;) {
- if (countsAsNum.test(types[j$2])) {
- if (pos < j$2) {
- order.splice(at, 0, new BidiSpan(1, pos, j$2));
- at += isRTL;
- }
- var nstart = j$2;
- for (++j$2; j$2 < i$7 && countsAsNum.test(types[j$2]); ++j$2) {}
- order.splice(at, 0, new BidiSpan(2, nstart, j$2));
- at += isRTL;
- pos = j$2;
- } else {
- ++j$2;
- }
- }
- if (pos < i$7) {
- order.splice(at, 0, new BidiSpan(1, pos, i$7));
- }
- }
- }
- if (direction == "ltr") {
- if (order[0].level == 1 && (m = str.match(/^\s+/))) {
- order[0].from = m[0].length;
- order.unshift(new BidiSpan(0, 0, m[0].length));
- }
- if (lst(order).level == 1 && (m = str.match(/\s+$/))) {
- lst(order).to -= m[0].length;
- order.push(new BidiSpan(0, len - m[0].length, len));
- }
- }
- return direction == "rtl" ? order.reverse() : order;
- };
- }();
- function getOrder(line, direction) {
- var order = line.order;
- if (order == null) {
- order = line.order = bidiOrdering(line.text, direction);
- }
- return order;
- }
- var noHandlers = [];
- var on = function (emitter, type, f) {
- if (emitter.addEventListener) {
- emitter.addEventListener(type, f, false);
- } else if (emitter.attachEvent) {
- emitter.attachEvent("on" + type, f);
- } else {
- var map2 = emitter._handlers || (emitter._handlers = {});
- map2[type] = (map2[type] || noHandlers).concat(f);
- }
- };
- function getHandlers(emitter, type) {
- return emitter._handlers && emitter._handlers[type] || noHandlers;
- }
- function off(emitter, type, f) {
- if (emitter.removeEventListener) {
- emitter.removeEventListener(type, f, false);
- } else if (emitter.detachEvent) {
- emitter.detachEvent("on" + type, f);
- } else {
- var map2 = emitter._handlers,
- arr = map2 && map2[type];
- if (arr) {
- var index = indexOf(arr, f);
- if (index > -1) {
- map2[type] = arr.slice(0, index).concat(arr.slice(index + 1));
- }
- }
- }
- }
- function signal(emitter, type) {
- var handlers = getHandlers(emitter, type);
- if (!handlers.length) {
- return;
- }
- var args = Array.prototype.slice.call(arguments, 2);
- for (var i2 = 0; i2 < handlers.length; ++i2) {
- handlers[i2].apply(null, args);
- }
- }
- function signalDOMEvent(cm, e, override) {
- if (typeof e == "string") {
- e = {
- type: e,
- preventDefault: function () {
- this.defaultPrevented = true;
- }
- };
- }
- signal(cm, override || e.type, cm, e);
- return e_defaultPrevented(e) || e.codemirrorIgnore;
- }
- function signalCursorActivity(cm) {
- var arr = cm._handlers && cm._handlers.cursorActivity;
- if (!arr) {
- return;
- }
- var set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []);
- for (var i2 = 0; i2 < arr.length; ++i2) {
- if (indexOf(set, arr[i2]) == -1) {
- set.push(arr[i2]);
- }
- }
- }
- function hasHandler(emitter, type) {
- return getHandlers(emitter, type).length > 0;
- }
- function eventMixin(ctor) {
- ctor.prototype.on = function (type, f) {
- on(this, type, f);
- };
- ctor.prototype.off = function (type, f) {
- off(this, type, f);
- };
- }
- function e_preventDefault(e) {
- if (e.preventDefault) {
- e.preventDefault();
- } else {
- e.returnValue = false;
- }
- }
- function e_stopPropagation(e) {
- if (e.stopPropagation) {
- e.stopPropagation();
- } else {
- e.cancelBubble = true;
- }
- }
- function e_defaultPrevented(e) {
- return e.defaultPrevented != null ? e.defaultPrevented : e.returnValue == false;
- }
- function e_stop(e) {
- e_preventDefault(e);
- e_stopPropagation(e);
- }
- function e_target(e) {
- return e.target || e.srcElement;
- }
- function e_button(e) {
- var b = e.which;
- if (b == null) {
- if (e.button & 1) {
- b = 1;
- } else if (e.button & 2) {
- b = 3;
- } else if (e.button & 4) {
- b = 2;
- }
- }
- if (mac && e.ctrlKey && b == 1) {
- b = 3;
- }
- return b;
- }
- var dragAndDrop = function () {
- if (ie && ie_version < 9) {
- return false;
- }
- var div = elt("div");
- return "draggable" in div || "dragDrop" in div;
- }();
- var zwspSupported;
- function zeroWidthElement(measure) {
- if (zwspSupported == null) {
- var test = elt("span", "");
- removeChildrenAndAdd(measure, elt("span", [test, document.createTextNode("x")]));
- if (measure.firstChild.offsetHeight != 0) {
- zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8);
- }
- }
- var node = zwspSupported ? elt("span", "") : elt("span", " ", null, "display: inline-block; width: 1px; margin-right: -1px");
- node.setAttribute("cm-text", "");
- return node;
- }
- var badBidiRects;
- function hasBadBidiRects(measure) {
- if (badBidiRects != null) {
- return badBidiRects;
- }
- var txt = removeChildrenAndAdd(measure, document.createTextNode("AخA"));
- var r0 = range(txt, 0, 1).getBoundingClientRect();
- var r1 = range(txt, 1, 2).getBoundingClientRect();
- removeChildren(measure);
- if (!r0 || r0.left == r0.right) {
- return false;
- }
- return badBidiRects = r1.right - r0.right < 3;
- }
- var splitLinesAuto = "\n\nb".split(/\n/).length != 3 ? function (string) {
- var pos = 0,
- result = [],
- l = string.length;
- while (pos <= l) {
- var nl = string.indexOf("\n", pos);
- if (nl == -1) {
- nl = string.length;
- }
- var line = string.slice(pos, string.charAt(nl - 1) == "\r" ? nl - 1 : nl);
- var rt = line.indexOf("\r");
- if (rt != -1) {
- result.push(line.slice(0, rt));
- pos += rt + 1;
- } else {
- result.push(line);
- pos = nl + 1;
- }
- }
- return result;
- } : function (string) {
- return string.split(/\r\n?|\n/);
- };
- var hasSelection = window.getSelection ? function (te) {
- try {
- return te.selectionStart != te.selectionEnd;
- } catch (e) {
- return false;
- }
- } : function (te) {
- var range2;
- try {
- range2 = te.ownerDocument.selection.createRange();
- } catch (e) {}
- if (!range2 || range2.parentElement() != te) {
- return false;
- }
- return range2.compareEndPoints("StartToEnd", range2) != 0;
- };
- var hasCopyEvent = function () {
- var e = elt("div");
- if ("oncopy" in e) {
- return true;
- }
- e.setAttribute("oncopy", "return;");
- return typeof e.oncopy == "function";
- }();
- var badZoomedRects = null;
- function hasBadZoomedRects(measure) {
- if (badZoomedRects != null) {
- return badZoomedRects;
- }
- var node = removeChildrenAndAdd(measure, elt("span", "x"));
- var normal = node.getBoundingClientRect();
- var fromRange = range(node, 0, 1).getBoundingClientRect();
- return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1;
- }
- var modes = {},
- mimeModes = {};
- function defineMode(name, mode) {
- if (arguments.length > 2) {
- mode.dependencies = Array.prototype.slice.call(arguments, 2);
- }
- modes[name] = mode;
- }
- function defineMIME(mime, spec) {
- mimeModes[mime] = spec;
- }
- function resolveMode(spec) {
- if (typeof spec == "string" && mimeModes.hasOwnProperty(spec)) {
- spec = mimeModes[spec];
- } else if (spec && typeof spec.name == "string" && mimeModes.hasOwnProperty(spec.name)) {
- var found = mimeModes[spec.name];
- if (typeof found == "string") {
- found = {
- name: found
- };
- }
- spec = createObj(found, spec);
- spec.name = found.name;
- } else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(spec)) {
- return resolveMode("application/xml");
- } else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+json$/.test(spec)) {
- return resolveMode("application/json");
- }
- if (typeof spec == "string") {
- return {
- name: spec
- };
- } else {
- return spec || {
- name: "null"
- };
- }
- }
- function getMode(options, spec) {
- spec = resolveMode(spec);
- var mfactory = modes[spec.name];
- if (!mfactory) {
- return getMode(options, "text/plain");
- }
- var modeObj = mfactory(options, spec);
- if (modeExtensions.hasOwnProperty(spec.name)) {
- var exts = modeExtensions[spec.name];
- for (var prop2 in exts) {
- if (!exts.hasOwnProperty(prop2)) {
- continue;
- }
- if (modeObj.hasOwnProperty(prop2)) {
- modeObj["_" + prop2] = modeObj[prop2];
- }
- modeObj[prop2] = exts[prop2];
- }
- }
- modeObj.name = spec.name;
- if (spec.helperType) {
- modeObj.helperType = spec.helperType;
- }
- if (spec.modeProps) {
- for (var prop$1 in spec.modeProps) {
- modeObj[prop$1] = spec.modeProps[prop$1];
- }
- }
- return modeObj;
- }
- var modeExtensions = {};
- function extendMode(mode, properties) {
- var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : modeExtensions[mode] = {};
- copyObj(properties, exts);
- }
- function copyState(mode, state) {
- if (state === true) {
- return state;
- }
- if (mode.copyState) {
- return mode.copyState(state);
- }
- var nstate = {};
- for (var n in state) {
- var val = state[n];
- if (val instanceof Array) {
- val = val.concat([]);
- }
- nstate[n] = val;
- }
- return nstate;
- }
- function innerMode(mode, state) {
- var info;
- while (mode.innerMode) {
- info = mode.innerMode(state);
- if (!info || info.mode == mode) {
- break;
- }
- state = info.state;
- mode = info.mode;
- }
- return info || {
- mode,
- state
- };
- }
- function startState(mode, a1, a2) {
- return mode.startState ? mode.startState(a1, a2) : true;
- }
- var StringStream = function (string, tabSize, lineOracle) {
- this.pos = this.start = 0;
- this.string = string;
- this.tabSize = tabSize || 8;
- this.lastColumnPos = this.lastColumnValue = 0;
- this.lineStart = 0;
- this.lineOracle = lineOracle;
- };
- StringStream.prototype.eol = function () {
- return this.pos >= this.string.length;
- };
- StringStream.prototype.sol = function () {
- return this.pos == this.lineStart;
- };
- StringStream.prototype.peek = function () {
- return this.string.charAt(this.pos) || void 0;
- };
- StringStream.prototype.next = function () {
- if (this.pos < this.string.length) {
- return this.string.charAt(this.pos++);
- }
- };
- StringStream.prototype.eat = function (match) {
- var ch = this.string.charAt(this.pos);
- var ok;
- if (typeof match == "string") {
- ok = ch == match;
- } else {
- ok = ch && (match.test ? match.test(ch) : match(ch));
- }
- if (ok) {
- ++this.pos;
- return ch;
- }
- };
- StringStream.prototype.eatWhile = function (match) {
- var start = this.pos;
- while (this.eat(match)) {}
- return this.pos > start;
- };
- StringStream.prototype.eatSpace = function () {
- var start = this.pos;
- while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) {
- ++this.pos;
- }
- return this.pos > start;
- };
- StringStream.prototype.skipToEnd = function () {
- this.pos = this.string.length;
- };
- StringStream.prototype.skipTo = function (ch) {
- var found = this.string.indexOf(ch, this.pos);
- if (found > -1) {
- this.pos = found;
- return true;
- }
- };
- StringStream.prototype.backUp = function (n) {
- this.pos -= n;
- };
- StringStream.prototype.column = function () {
- if (this.lastColumnPos < this.start) {
- this.lastColumnValue = countColumn(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue);
- this.lastColumnPos = this.start;
- }
- return this.lastColumnValue - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0);
- };
- StringStream.prototype.indentation = function () {
- return countColumn(this.string, null, this.tabSize) - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0);
- };
- StringStream.prototype.match = function (pattern, consume, caseInsensitive) {
- if (typeof pattern == "string") {
- var cased = function (str) {
- return caseInsensitive ? str.toLowerCase() : str;
- };
- var substr = this.string.substr(this.pos, pattern.length);
- if (cased(substr) == cased(pattern)) {
- if (consume !== false) {
- this.pos += pattern.length;
- }
- return true;
- }
- } else {
- var match = this.string.slice(this.pos).match(pattern);
- if (match && match.index > 0) {
- return null;
- }
- if (match && consume !== false) {
- this.pos += match[0].length;
- }
- return match;
- }
- };
- StringStream.prototype.current = function () {
- return this.string.slice(this.start, this.pos);
- };
- StringStream.prototype.hideFirstChars = function (n, inner) {
- this.lineStart += n;
- try {
- return inner();
- } finally {
- this.lineStart -= n;
- }
- };
- StringStream.prototype.lookAhead = function (n) {
- var oracle = this.lineOracle;
- return oracle && oracle.lookAhead(n);
- };
- StringStream.prototype.baseToken = function () {
- var oracle = this.lineOracle;
- return oracle && oracle.baseToken(this.pos);
- };
- function getLine(doc, n) {
- n -= doc.first;
- if (n < 0 || n >= doc.size) {
- throw new Error("There is no line " + (n + doc.first) + " in the document.");
- }
- var chunk = doc;
- while (!chunk.lines) {
- for (var i2 = 0;; ++i2) {
- var child = chunk.children[i2],
- sz = child.chunkSize();
- if (n < sz) {
- chunk = child;
- break;
- }
- n -= sz;
- }
- }
- return chunk.lines[n];
- }
- function getBetween(doc, start, end) {
- var out = [],
- n = start.line;
- doc.iter(start.line, end.line + 1, function (line) {
- var text = line.text;
- if (n == end.line) {
- text = text.slice(0, end.ch);
- }
- if (n == start.line) {
- text = text.slice(start.ch);
- }
- out.push(text);
- ++n;
- });
- return out;
- }
- function getLines(doc, from, to) {
- var out = [];
- doc.iter(from, to, function (line) {
- out.push(line.text);
- });
- return out;
- }
- function updateLineHeight(line, height) {
- var diff = height - line.height;
- if (diff) {
- for (var n = line; n; n = n.parent) {
- n.height += diff;
- }
- }
- }
- function lineNo(line) {
- if (line.parent == null) {
- return null;
- }
- var cur = line.parent,
- no = indexOf(cur.lines, line);
- for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {
- for (var i2 = 0;; ++i2) {
- if (chunk.children[i2] == cur) {
- break;
- }
- no += chunk.children[i2].chunkSize();
- }
- }
- return no + cur.first;
- }
- function lineAtHeight(chunk, h) {
- var n = chunk.first;
- outer: do {
- for (var i$12 = 0; i$12 < chunk.children.length; ++i$12) {
- var child = chunk.children[i$12],
- ch = child.height;
- if (h < ch) {
- chunk = child;
- continue outer;
- }
- h -= ch;
- n += child.chunkSize();
- }
- return n;
- } while (!chunk.lines);
- var i2 = 0;
- for (; i2 < chunk.lines.length; ++i2) {
- var line = chunk.lines[i2],
- lh = line.height;
- if (h < lh) {
- break;
- }
- h -= lh;
- }
- return n + i2;
- }
- function isLine(doc, l) {
- return l >= doc.first && l < doc.first + doc.size;
- }
- function lineNumberFor(options, i2) {
- return String(options.lineNumberFormatter(i2 + options.firstLineNumber));
- }
- function Pos(line, ch, sticky) {
- if (sticky === void 0) sticky = null;
- if (!(this instanceof Pos)) {
- return new Pos(line, ch, sticky);
- }
- this.line = line;
- this.ch = ch;
- this.sticky = sticky;
- }
- function cmp(a, b) {
- return a.line - b.line || a.ch - b.ch;
- }
- function equalCursorPos(a, b) {
- return a.sticky == b.sticky && cmp(a, b) == 0;
- }
- function copyPos(x) {
- return Pos(x.line, x.ch);
- }
- function maxPos(a, b) {
- return cmp(a, b) < 0 ? b : a;
- }
- function minPos(a, b) {
- return cmp(a, b) < 0 ? a : b;
- }
- function clipLine(doc, n) {
- return Math.max(doc.first, Math.min(n, doc.first + doc.size - 1));
- }
- function clipPos(doc, pos) {
- if (pos.line < doc.first) {
- return Pos(doc.first, 0);
- }
- var last = doc.first + doc.size - 1;
- if (pos.line > last) {
- return Pos(last, getLine(doc, last).text.length);
- }
- return clipToLen(pos, getLine(doc, pos.line).text.length);
- }
- function clipToLen(pos, linelen) {
- var ch = pos.ch;
- if (ch == null || ch > linelen) {
- return Pos(pos.line, linelen);
- } else if (ch < 0) {
- return Pos(pos.line, 0);
- } else {
- return pos;
- }
- }
- function clipPosArray(doc, array) {
- var out = [];
- for (var i2 = 0; i2 < array.length; i2++) {
- out[i2] = clipPos(doc, array[i2]);
- }
- return out;
- }
- var SavedContext = function (state, lookAhead) {
- this.state = state;
- this.lookAhead = lookAhead;
- };
- var Context = function (doc, state, line, lookAhead) {
- this.state = state;
- this.doc = doc;
- this.line = line;
- this.maxLookAhead = lookAhead || 0;
- this.baseTokens = null;
- this.baseTokenPos = 1;
- };
- Context.prototype.lookAhead = function (n) {
- var line = this.doc.getLine(this.line + n);
- if (line != null && n > this.maxLookAhead) {
- this.maxLookAhead = n;
- }
- return line;
- };
- Context.prototype.baseToken = function (n) {
- if (!this.baseTokens) {
- return null;
- }
- while (this.baseTokens[this.baseTokenPos] <= n) {
- this.baseTokenPos += 2;
- }
- var type = this.baseTokens[this.baseTokenPos + 1];
- return {
- type: type && type.replace(/( |^)overlay .*/, ""),
- size: this.baseTokens[this.baseTokenPos] - n
- };
- };
- Context.prototype.nextLine = function () {
- this.line++;
- if (this.maxLookAhead > 0) {
- this.maxLookAhead--;
- }
- };
- Context.fromSaved = function (doc, saved, line) {
- if (saved instanceof SavedContext) {
- return new Context(doc, copyState(doc.mode, saved.state), line, saved.lookAhead);
- } else {
- return new Context(doc, copyState(doc.mode, saved), line);
- }
- };
- Context.prototype.save = function (copy) {
- var state = copy !== false ? copyState(this.doc.mode, this.state) : this.state;
- return this.maxLookAhead > 0 ? new SavedContext(state, this.maxLookAhead) : state;
- };
- function highlightLine(cm, line, context, forceToEnd) {
- var st = [cm.state.modeGen],
- lineClasses = {};
- runMode(cm, line.text, cm.doc.mode, context, function (end, style) {
- return st.push(end, style);
- }, lineClasses, forceToEnd);
- var state = context.state;
- var loop = function (o2) {
- context.baseTokens = st;
- var overlay = cm.state.overlays[o2],
- i2 = 1,
- at = 0;
- context.state = true;
- runMode(cm, line.text, overlay.mode, context, function (end, style) {
- var start = i2;
- while (at < end) {
- var i_end = st[i2];
- if (i_end > end) {
- st.splice(i2, 1, end, st[i2 + 1], i_end);
- }
- i2 += 2;
- at = Math.min(end, i_end);
- }
- if (!style) {
- return;
- }
- if (overlay.opaque) {
- st.splice(start, i2 - start, end, "overlay " + style);
- i2 = start + 2;
- } else {
- for (; start < i2; start += 2) {
- var cur = st[start + 1];
- st[start + 1] = (cur ? cur + " " : "") + "overlay " + style;
- }
- }
- }, lineClasses);
- context.state = state;
- context.baseTokens = null;
- context.baseTokenPos = 1;
- };
- for (var o = 0; o < cm.state.overlays.length; ++o) loop(o);
- return {
- styles: st,
- classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null
- };
- }
- function getLineStyles(cm, line, updateFrontier) {
- if (!line.styles || line.styles[0] != cm.state.modeGen) {
- var context = getContextBefore(cm, lineNo(line));
- var resetState = line.text.length > cm.options.maxHighlightLength && copyState(cm.doc.mode, context.state);
- var result = highlightLine(cm, line, context);
- if (resetState) {
- context.state = resetState;
- }
- line.stateAfter = context.save(!resetState);
- line.styles = result.styles;
- if (result.classes) {
- line.styleClasses = result.classes;
- } else if (line.styleClasses) {
- line.styleClasses = null;
- }
- if (updateFrontier === cm.doc.highlightFrontier) {
- cm.doc.modeFrontier = Math.max(cm.doc.modeFrontier, ++cm.doc.highlightFrontier);
- }
- }
- return line.styles;
- }
- function getContextBefore(cm, n, precise) {
- var doc = cm.doc,
- display = cm.display;
- if (!doc.mode.startState) {
- return new Context(doc, true, n);
- }
- var start = findStartLine(cm, n, precise);
- var saved = start > doc.first && getLine(doc, start - 1).stateAfter;
- var context = saved ? Context.fromSaved(doc, saved, start) : new Context(doc, startState(doc.mode), start);
- doc.iter(start, n, function (line) {
- processLine(cm, line.text, context);
- var pos = context.line;
- line.stateAfter = pos == n - 1 || pos % 5 == 0 || pos >= display.viewFrom && pos < display.viewTo ? context.save() : null;
- context.nextLine();
- });
- if (precise) {
- doc.modeFrontier = context.line;
- }
- return context;
- }
- function processLine(cm, text, context, startAt) {
- var mode = cm.doc.mode;
- var stream = new StringStream(text, cm.options.tabSize, context);
- stream.start = stream.pos = startAt || 0;
- if (text == "") {
- callBlankLine(mode, context.state);
- }
- while (!stream.eol()) {
- readToken(mode, stream, context.state);
- stream.start = stream.pos;
- }
- }
- function callBlankLine(mode, state) {
- if (mode.blankLine) {
- return mode.blankLine(state);
- }
- if (!mode.innerMode) {
- return;
- }
- var inner = innerMode(mode, state);
- if (inner.mode.blankLine) {
- return inner.mode.blankLine(inner.state);
- }
- }
- function readToken(mode, stream, state, inner) {
- for (var i2 = 0; i2 < 10; i2++) {
- if (inner) {
- inner[0] = innerMode(mode, state).mode;
- }
- var style = mode.token(stream, state);
- if (stream.pos > stream.start) {
- return style;
- }
- }
- throw new Error("Mode " + mode.name + " failed to advance stream.");
- }
- var Token = function (stream, type, state) {
- this.start = stream.start;
- this.end = stream.pos;
- this.string = stream.current();
- this.type = type || null;
- this.state = state;
- };
- function takeToken(cm, pos, precise, asArray) {
- var doc = cm.doc,
- mode = doc.mode,
- style;
- pos = clipPos(doc, pos);
- var line = getLine(doc, pos.line),
- context = getContextBefore(cm, pos.line, precise);
- var stream = new StringStream(line.text, cm.options.tabSize, context),
- tokens;
- if (asArray) {
- tokens = [];
- }
- while ((asArray || stream.pos < pos.ch) && !stream.eol()) {
- stream.start = stream.pos;
- style = readToken(mode, stream, context.state);
- if (asArray) {
- tokens.push(new Token(stream, style, copyState(doc.mode, context.state)));
- }
- }
- return asArray ? tokens : new Token(stream, style, context.state);
- }
- function extractLineClasses(type, output) {
- if (type) {
- for (;;) {
- var lineClass = type.match(/(?:^|\s+)line-(background-)?(\S+)/);
- if (!lineClass) {
- break;
- }
- type = type.slice(0, lineClass.index) + type.slice(lineClass.index + lineClass[0].length);
- var prop2 = lineClass[1] ? "bgClass" : "textClass";
- if (output[prop2] == null) {
- output[prop2] = lineClass[2];
- } else if (!new RegExp("(?:^|\\s)" + lineClass[2] + "(?:$|\\s)").test(output[prop2])) {
- output[prop2] += " " + lineClass[2];
- }
- }
- }
- return type;
- }
- function runMode(cm, text, mode, context, f, lineClasses, forceToEnd) {
- var flattenSpans = mode.flattenSpans;
- if (flattenSpans == null) {
- flattenSpans = cm.options.flattenSpans;
- }
- var curStart = 0,
- curStyle = null;
- var stream = new StringStream(text, cm.options.tabSize, context),
- style;
- var inner = cm.options.addModeClass && [null];
- if (text == "") {
- extractLineClasses(callBlankLine(mode, context.state), lineClasses);
- }
- while (!stream.eol()) {
- if (stream.pos > cm.options.maxHighlightLength) {
- flattenSpans = false;
- if (forceToEnd) {
- processLine(cm, text, context, stream.pos);
- }
- stream.pos = text.length;
- style = null;
- } else {
- style = extractLineClasses(readToken(mode, stream, context.state, inner), lineClasses);
- }
- if (inner) {
- var mName = inner[0].name;
- if (mName) {
- style = "m-" + (style ? mName + " " + style : mName);
- }
- }
- if (!flattenSpans || curStyle != style) {
- while (curStart < stream.start) {
- curStart = Math.min(stream.start, curStart + 5e3);
- f(curStart, curStyle);
- }
- curStyle = style;
- }
- stream.start = stream.pos;
- }
- while (curStart < stream.pos) {
- var pos = Math.min(stream.pos, curStart + 5e3);
- f(pos, curStyle);
- curStart = pos;
- }
- }
- function findStartLine(cm, n, precise) {
- var minindent,
- minline,
- doc = cm.doc;
- var lim = precise ? -1 : n - (cm.doc.mode.innerMode ? 1e3 : 100);
- for (var search = n; search > lim; --search) {
- if (search <= doc.first) {
- return doc.first;
- }
- var line = getLine(doc, search - 1),
- after = line.stateAfter;
- if (after && (!precise || search + (after instanceof SavedContext ? after.lookAhead : 0) <= doc.modeFrontier)) {
- return search;
- }
- var indented = countColumn(line.text, null, cm.options.tabSize);
- if (minline == null || minindent > indented) {
- minline = search - 1;
- minindent = indented;
- }
- }
- return minline;
- }
- function retreatFrontier(doc, n) {
- doc.modeFrontier = Math.min(doc.modeFrontier, n);
- if (doc.highlightFrontier < n - 10) {
- return;
- }
- var start = doc.first;
- for (var line = n - 1; line > start; line--) {
- var saved = getLine(doc, line).stateAfter;
- if (saved && (!(saved instanceof SavedContext) || line + saved.lookAhead < n)) {
- start = line + 1;
- break;
- }
- }
- doc.highlightFrontier = Math.min(doc.highlightFrontier, start);
- }
- var sawReadOnlySpans = false,
- sawCollapsedSpans = false;
- function seeReadOnlySpans() {
- sawReadOnlySpans = true;
- }
- function seeCollapsedSpans() {
- sawCollapsedSpans = true;
- }
- function MarkedSpan(marker, from, to) {
- this.marker = marker;
- this.from = from;
- this.to = to;
- }
- function getMarkedSpanFor(spans, marker) {
- if (spans) {
- for (var i2 = 0; i2 < spans.length; ++i2) {
- var span = spans[i2];
- if (span.marker == marker) {
- return span;
- }
- }
- }
- }
- function removeMarkedSpan(spans, span) {
- var r;
- for (var i2 = 0; i2 < spans.length; ++i2) {
- if (spans[i2] != span) {
- (r || (r = [])).push(spans[i2]);
- }
- }
- return r;
- }
- function addMarkedSpan(line, span, op) {
- var inThisOp = op && window.WeakSet && (op.markedSpans || (op.markedSpans = /* @__PURE__ */new WeakSet()));
- if (inThisOp && line.markedSpans && inThisOp.has(line.markedSpans)) {
- line.markedSpans.push(span);
- } else {
- line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
- if (inThisOp) {
- inThisOp.add(line.markedSpans);
- }
- }
- span.marker.attachLine(line);
- }
- function markedSpansBefore(old, startCh, isInsert) {
- var nw;
- if (old) {
- for (var i2 = 0; i2 < old.length; ++i2) {
- var span = old[i2],
- marker = span.marker;
- var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);
- if (startsBefore || span.from == startCh && marker.type == "bookmark" && (!isInsert || !span.marker.insertLeft)) {
- var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh);
- (nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to));
- }
- }
- }
- return nw;
- }
- function markedSpansAfter(old, endCh, isInsert) {
- var nw;
- if (old) {
- for (var i2 = 0; i2 < old.length; ++i2) {
- var span = old[i2],
- marker = span.marker;
- var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh);
- if (endsAfter || span.from == endCh && marker.type == "bookmark" && (!isInsert || span.marker.insertLeft)) {
- var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh);
- (nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh, span.to == null ? null : span.to - endCh));
- }
- }
- }
- return nw;
- }
- function stretchSpansOverChange(doc, change) {
- if (change.full) {
- return null;
- }
- var oldFirst = isLine(doc, change.from.line) && getLine(doc, change.from.line).markedSpans;
- var oldLast = isLine(doc, change.to.line) && getLine(doc, change.to.line).markedSpans;
- if (!oldFirst && !oldLast) {
- return null;
- }
- var startCh = change.from.ch,
- endCh = change.to.ch,
- isInsert = cmp(change.from, change.to) == 0;
- var first = markedSpansBefore(oldFirst, startCh, isInsert);
- var last = markedSpansAfter(oldLast, endCh, isInsert);
- var sameLine = change.text.length == 1,
- offset = lst(change.text).length + (sameLine ? startCh : 0);
- if (first) {
- for (var i2 = 0; i2 < first.length; ++i2) {
- var span = first[i2];
- if (span.to == null) {
- var found = getMarkedSpanFor(last, span.marker);
- if (!found) {
- span.to = startCh;
- } else if (sameLine) {
- span.to = found.to == null ? null : found.to + offset;
- }
- }
- }
- }
- if (last) {
- for (var i$12 = 0; i$12 < last.length; ++i$12) {
- var span$1 = last[i$12];
- if (span$1.to != null) {
- span$1.to += offset;
- }
- if (span$1.from == null) {
- var found$1 = getMarkedSpanFor(first, span$1.marker);
- if (!found$1) {
- span$1.from = offset;
- if (sameLine) {
- (first || (first = [])).push(span$1);
- }
- }
- } else {
- span$1.from += offset;
- if (sameLine) {
- (first || (first = [])).push(span$1);
- }
- }
- }
- }
- if (first) {
- first = clearEmptySpans(first);
- }
- if (last && last != first) {
- last = clearEmptySpans(last);
- }
- var newMarkers = [first];
- if (!sameLine) {
- var gap = change.text.length - 2,
- gapMarkers;
- if (gap > 0 && first) {
- for (var i$22 = 0; i$22 < first.length; ++i$22) {
- if (first[i$22].to == null) {
- (gapMarkers || (gapMarkers = [])).push(new MarkedSpan(first[i$22].marker, null, null));
- }
- }
- }
- for (var i$3 = 0; i$3 < gap; ++i$3) {
- newMarkers.push(gapMarkers);
- }
- newMarkers.push(last);
- }
- return newMarkers;
- }
- function clearEmptySpans(spans) {
- for (var i2 = 0; i2 < spans.length; ++i2) {
- var span = spans[i2];
- if (span.from != null && span.from == span.to && span.marker.clearWhenEmpty !== false) {
- spans.splice(i2--, 1);
- }
- }
- if (!spans.length) {
- return null;
- }
- return spans;
- }
- function removeReadOnlyRanges(doc, from, to) {
- var markers = null;
- doc.iter(from.line, to.line + 1, function (line) {
- if (line.markedSpans) {
- for (var i3 = 0; i3 < line.markedSpans.length; ++i3) {
- var mark = line.markedSpans[i3].marker;
- if (mark.readOnly && (!markers || indexOf(markers, mark) == -1)) {
- (markers || (markers = [])).push(mark);
- }
- }
- }
- });
- if (!markers) {
- return null;
- }
- var parts = [{
- from,
- to
- }];
- for (var i2 = 0; i2 < markers.length; ++i2) {
- var mk = markers[i2],
- m = mk.find(0);
- for (var j = 0; j < parts.length; ++j) {
- var p = parts[j];
- if (cmp(p.to, m.from) < 0 || cmp(p.from, m.to) > 0) {
- continue;
- }
- var newParts = [j, 1],
- dfrom = cmp(p.from, m.from),
- dto = cmp(p.to, m.to);
- if (dfrom < 0 || !mk.inclusiveLeft && !dfrom) {
- newParts.push({
- from: p.from,
- to: m.from
- });
- }
- if (dto > 0 || !mk.inclusiveRight && !dto) {
- newParts.push({
- from: m.to,
- to: p.to
- });
- }
- parts.splice.apply(parts, newParts);
- j += newParts.length - 3;
- }
- }
- return parts;
- }
- function detachMarkedSpans(line) {
- var spans = line.markedSpans;
- if (!spans) {
- return;
- }
- for (var i2 = 0; i2 < spans.length; ++i2) {
- spans[i2].marker.detachLine(line);
- }
- line.markedSpans = null;
- }
- function attachMarkedSpans(line, spans) {
- if (!spans) {
- return;
- }
- for (var i2 = 0; i2 < spans.length; ++i2) {
- spans[i2].marker.attachLine(line);
- }
- line.markedSpans = spans;
- }
- function extraLeft(marker) {
- return marker.inclusiveLeft ? -1 : 0;
- }
- function extraRight(marker) {
- return marker.inclusiveRight ? 1 : 0;
- }
- function compareCollapsedMarkers(a, b) {
- var lenDiff = a.lines.length - b.lines.length;
- if (lenDiff != 0) {
- return lenDiff;
- }
- var aPos = a.find(),
- bPos = b.find();
- var fromCmp = cmp(aPos.from, bPos.from) || extraLeft(a) - extraLeft(b);
- if (fromCmp) {
- return -fromCmp;
- }
- var toCmp = cmp(aPos.to, bPos.to) || extraRight(a) - extraRight(b);
- if (toCmp) {
- return toCmp;
- }
- return b.id - a.id;
- }
- function collapsedSpanAtSide(line, start) {
- var sps = sawCollapsedSpans && line.markedSpans,
- found;
- if (sps) {
- for (var sp = void 0, i2 = 0; i2 < sps.length; ++i2) {
- sp = sps[i2];
- if (sp.marker.collapsed && (start ? sp.from : sp.to) == null && (!found || compareCollapsedMarkers(found, sp.marker) < 0)) {
- found = sp.marker;
- }
- }
- }
- return found;
- }
- function collapsedSpanAtStart(line) {
- return collapsedSpanAtSide(line, true);
- }
- function collapsedSpanAtEnd(line) {
- return collapsedSpanAtSide(line, false);
- }
- function collapsedSpanAround(line, ch) {
- var sps = sawCollapsedSpans && line.markedSpans,
- found;
- if (sps) {
- for (var i2 = 0; i2 < sps.length; ++i2) {
- var sp = sps[i2];
- if (sp.marker.collapsed && (sp.from == null || sp.from < ch) && (sp.to == null || sp.to > ch) && (!found || compareCollapsedMarkers(found, sp.marker) < 0)) {
- found = sp.marker;
- }
- }
- }
- return found;
- }
- function conflictingCollapsedRange(doc, lineNo2, from, to, marker) {
- var line = getLine(doc, lineNo2);
- var sps = sawCollapsedSpans && line.markedSpans;
- if (sps) {
- for (var i2 = 0; i2 < sps.length; ++i2) {
- var sp = sps[i2];
- if (!sp.marker.collapsed) {
- continue;
- }
- var found = sp.marker.find(0);
- var fromCmp = cmp(found.from, from) || extraLeft(sp.marker) - extraLeft(marker);
- var toCmp = cmp(found.to, to) || extraRight(sp.marker) - extraRight(marker);
- if (fromCmp >= 0 && toCmp <= 0 || fromCmp <= 0 && toCmp >= 0) {
- continue;
- }
- if (fromCmp <= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.to, from) >= 0 : cmp(found.to, from) > 0) || fromCmp >= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.from, to) <= 0 : cmp(found.from, to) < 0)) {
- return true;
- }
- }
- }
- }
- function visualLine(line) {
- var merged;
- while (merged = collapsedSpanAtStart(line)) {
- line = merged.find(-1, true).line;
- }
- return line;
- }
- function visualLineEnd(line) {
- var merged;
- while (merged = collapsedSpanAtEnd(line)) {
- line = merged.find(1, true).line;
- }
- return line;
- }
- function visualLineContinued(line) {
- var merged, lines;
- while (merged = collapsedSpanAtEnd(line)) {
- line = merged.find(1, true).line;
- (lines || (lines = [])).push(line);
- }
- return lines;
- }
- function visualLineNo(doc, lineN) {
- var line = getLine(doc, lineN),
- vis = visualLine(line);
- if (line == vis) {
- return lineN;
- }
- return lineNo(vis);
- }
- function visualLineEndNo(doc, lineN) {
- if (lineN > doc.lastLine()) {
- return lineN;
- }
- var line = getLine(doc, lineN),
- merged;
- if (!lineIsHidden(doc, line)) {
- return lineN;
- }
- while (merged = collapsedSpanAtEnd(line)) {
- line = merged.find(1, true).line;
- }
- return lineNo(line) + 1;
- }
- function lineIsHidden(doc, line) {
- var sps = sawCollapsedSpans && line.markedSpans;
- if (sps) {
- for (var sp = void 0, i2 = 0; i2 < sps.length; ++i2) {
- sp = sps[i2];
- if (!sp.marker.collapsed) {
- continue;
- }
- if (sp.from == null) {
- return true;
- }
- if (sp.marker.widgetNode) {
- continue;
- }
- if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp)) {
- return true;
- }
- }
- }
- }
- function lineIsHiddenInner(doc, line, span) {
- if (span.to == null) {
- var end = span.marker.find(1, true);
- return lineIsHiddenInner(doc, end.line, getMarkedSpanFor(end.line.markedSpans, span.marker));
- }
- if (span.marker.inclusiveRight && span.to == line.text.length) {
- return true;
- }
- for (var sp = void 0, i2 = 0; i2 < line.markedSpans.length; ++i2) {
- sp = line.markedSpans[i2];
- if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to && (sp.to == null || sp.to != span.from) && (sp.marker.inclusiveLeft || span.marker.inclusiveRight) && lineIsHiddenInner(doc, line, sp)) {
- return true;
- }
- }
- }
- function heightAtLine(lineObj) {
- lineObj = visualLine(lineObj);
- var h = 0,
- chunk = lineObj.parent;
- for (var i2 = 0; i2 < chunk.lines.length; ++i2) {
- var line = chunk.lines[i2];
- if (line == lineObj) {
- break;
- } else {
- h += line.height;
- }
- }
- for (var p = chunk.parent; p; chunk = p, p = chunk.parent) {
- for (var i$12 = 0; i$12 < p.children.length; ++i$12) {
- var cur = p.children[i$12];
- if (cur == chunk) {
- break;
- } else {
- h += cur.height;
- }
- }
- }
- return h;
- }
- function lineLength(line) {
- if (line.height == 0) {
- return 0;
- }
- var len = line.text.length,
- merged,
- cur = line;
- while (merged = collapsedSpanAtStart(cur)) {
- var found = merged.find(0, true);
- cur = found.from.line;
- len += found.from.ch - found.to.ch;
- }
- cur = line;
- while (merged = collapsedSpanAtEnd(cur)) {
- var found$1 = merged.find(0, true);
- len -= cur.text.length - found$1.from.ch;
- cur = found$1.to.line;
- len += cur.text.length - found$1.to.ch;
- }
- return len;
- }
- function findMaxLine(cm) {
- var d = cm.display,
- doc = cm.doc;
- d.maxLine = getLine(doc, doc.first);
- d.maxLineLength = lineLength(d.maxLine);
- d.maxLineChanged = true;
- doc.iter(function (line) {
- var len = lineLength(line);
- if (len > d.maxLineLength) {
- d.maxLineLength = len;
- d.maxLine = line;
- }
- });
- }
- var Line = function (text, markedSpans, estimateHeight2) {
- this.text = text;
- attachMarkedSpans(this, markedSpans);
- this.height = estimateHeight2 ? estimateHeight2(this) : 1;
- };
- Line.prototype.lineNo = function () {
- return lineNo(this);
- };
- eventMixin(Line);
- function updateLine(line, text, markedSpans, estimateHeight2) {
- line.text = text;
- if (line.stateAfter) {
- line.stateAfter = null;
- }
- if (line.styles) {
- line.styles = null;
- }
- if (line.order != null) {
- line.order = null;
- }
- detachMarkedSpans(line);
- attachMarkedSpans(line, markedSpans);
- var estHeight = estimateHeight2 ? estimateHeight2(line) : 1;
- if (estHeight != line.height) {
- updateLineHeight(line, estHeight);
- }
- }
- function cleanUpLine(line) {
- line.parent = null;
- detachMarkedSpans(line);
- }
- var styleToClassCache = {},
- styleToClassCacheWithMode = {};
- function interpretTokenStyle(style, options) {
- if (!style || /^\s*$/.test(style)) {
- return null;
- }
- var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache;
- return cache[style] || (cache[style] = style.replace(/\S+/g, "cm-$&"));
- }
- function buildLineContent(cm, lineView) {
- var content = eltP("span", null, null, webkit ? "padding-right: .1px" : null);
- var builder = {
- pre: eltP("pre", [content], "CodeMirror-line"),
- content,
- col: 0,
- pos: 0,
- cm,
- trailingSpace: false,
- splitSpaces: cm.getOption("lineWrapping")
- };
- lineView.measure = {};
- for (var i2 = 0; i2 <= (lineView.rest ? lineView.rest.length : 0); i2++) {
- var line = i2 ? lineView.rest[i2 - 1] : lineView.line,
- order = void 0;
- builder.pos = 0;
- builder.addToken = buildToken;
- if (hasBadBidiRects(cm.display.measure) && (order = getOrder(line, cm.doc.direction))) {
- builder.addToken = buildTokenBadBidi(builder.addToken, order);
- }
- builder.map = [];
- var allowFrontierUpdate = lineView != cm.display.externalMeasured && lineNo(line);
- insertLineContent(line, builder, getLineStyles(cm, line, allowFrontierUpdate));
- if (line.styleClasses) {
- if (line.styleClasses.bgClass) {
- builder.bgClass = joinClasses(line.styleClasses.bgClass, builder.bgClass || "");
- }
- if (line.styleClasses.textClass) {
- builder.textClass = joinClasses(line.styleClasses.textClass, builder.textClass || "");
- }
- }
- if (builder.map.length == 0) {
- builder.map.push(0, 0, builder.content.appendChild(zeroWidthElement(cm.display.measure)));
- }
- if (i2 == 0) {
- lineView.measure.map = builder.map;
- lineView.measure.cache = {};
- } else {
- (lineView.measure.maps || (lineView.measure.maps = [])).push(builder.map);
- (lineView.measure.caches || (lineView.measure.caches = [])).push({});
- }
- }
- if (webkit) {
- var last = builder.content.lastChild;
- if (/\bcm-tab\b/.test(last.className) || last.querySelector && last.querySelector(".cm-tab")) {
- builder.content.className = "cm-tab-wrap-hack";
- }
- }
- signal(cm, "renderLine", cm, lineView.line, builder.pre);
- if (builder.pre.className) {
- builder.textClass = joinClasses(builder.pre.className, builder.textClass || "");
- }
- return builder;
- }
- function defaultSpecialCharPlaceholder(ch) {
- var token = elt("span", "•", "cm-invalidchar");
- token.title = "\\u" + ch.charCodeAt(0).toString(16);
- token.setAttribute("aria-label", token.title);
- return token;
- }
- function buildToken(builder, text, style, startStyle, endStyle, css, attributes) {
- if (!text) {
- return;
- }
- var displayText = builder.splitSpaces ? splitSpaces(text, builder.trailingSpace) : text;
- var special = builder.cm.state.specialChars,
- mustWrap = false;
- var content;
- if (!special.test(text)) {
- builder.col += text.length;
- content = document.createTextNode(displayText);
- builder.map.push(builder.pos, builder.pos + text.length, content);
- if (ie && ie_version < 9) {
- mustWrap = true;
- }
- builder.pos += text.length;
- } else {
- content = document.createDocumentFragment();
- var pos = 0;
- while (true) {
- special.lastIndex = pos;
- var m = special.exec(text);
- var skipped = m ? m.index - pos : text.length - pos;
- if (skipped) {
- var txt = document.createTextNode(displayText.slice(pos, pos + skipped));
- if (ie && ie_version < 9) {
- content.appendChild(elt("span", [txt]));
- } else {
- content.appendChild(txt);
- }
- builder.map.push(builder.pos, builder.pos + skipped, txt);
- builder.col += skipped;
- builder.pos += skipped;
- }
- if (!m) {
- break;
- }
- pos += skipped + 1;
- var txt$1 = void 0;
- if (m[0] == " ") {
- var tabSize = builder.cm.options.tabSize,
- tabWidth = tabSize - builder.col % tabSize;
- txt$1 = content.appendChild(elt("span", spaceStr(tabWidth), "cm-tab"));
- txt$1.setAttribute("role", "presentation");
- txt$1.setAttribute("cm-text", " ");
- builder.col += tabWidth;
- } else if (m[0] == "\r" || m[0] == "\n") {
- txt$1 = content.appendChild(elt("span", m[0] == "\r" ? "␍" : "", "cm-invalidchar"));
- txt$1.setAttribute("cm-text", m[0]);
- builder.col += 1;
- } else {
- txt$1 = builder.cm.options.specialCharPlaceholder(m[0]);
- txt$1.setAttribute("cm-text", m[0]);
- if (ie && ie_version < 9) {
- content.appendChild(elt("span", [txt$1]));
- } else {
- content.appendChild(txt$1);
- }
- builder.col += 1;
- }
- builder.map.push(builder.pos, builder.pos + 1, txt$1);
- builder.pos++;
- }
- }
- builder.trailingSpace = displayText.charCodeAt(text.length - 1) == 32;
- if (style || startStyle || endStyle || mustWrap || css || attributes) {
- var fullStyle = style || "";
- if (startStyle) {
- fullStyle += startStyle;
- }
- if (endStyle) {
- fullStyle += endStyle;
- }
- var token = elt("span", [content], fullStyle, css);
- if (attributes) {
- for (var attr in attributes) {
- if (attributes.hasOwnProperty(attr) && attr != "style" && attr != "class") {
- token.setAttribute(attr, attributes[attr]);
- }
- }
- }
- return builder.content.appendChild(token);
- }
- builder.content.appendChild(content);
- }
- function splitSpaces(text, trailingBefore) {
- if (text.length > 1 && !/ /.test(text)) {
- return text;
- }
- var spaceBefore = trailingBefore,
- result = "";
- for (var i2 = 0; i2 < text.length; i2++) {
- var ch = text.charAt(i2);
- if (ch == " " && spaceBefore && (i2 == text.length - 1 || text.charCodeAt(i2 + 1) == 32)) {
- ch = " ";
- }
- result += ch;
- spaceBefore = ch == " ";
- }
- return result;
- }
- function buildTokenBadBidi(inner, order) {
- return function (builder, text, style, startStyle, endStyle, css, attributes) {
- style = style ? style + " cm-force-border" : "cm-force-border";
- var start = builder.pos,
- end = start + text.length;
- for (;;) {
- var part = void 0;
- for (var i2 = 0; i2 < order.length; i2++) {
- part = order[i2];
- if (part.to > start && part.from <= start) {
- break;
- }
- }
- if (part.to >= end) {
- return inner(builder, text, style, startStyle, endStyle, css, attributes);
- }
- inner(builder, text.slice(0, part.to - start), style, startStyle, null, css, attributes);
- startStyle = null;
- text = text.slice(part.to - start);
- start = part.to;
- }
- };
- }
- function buildCollapsedSpan(builder, size, marker, ignoreWidget) {
- var widget = !ignoreWidget && marker.widgetNode;
- if (widget) {
- builder.map.push(builder.pos, builder.pos + size, widget);
- }
- if (!ignoreWidget && builder.cm.display.input.needsContentAttribute) {
- if (!widget) {
- widget = builder.content.appendChild(document.createElement("span"));
- }
- widget.setAttribute("cm-marker", marker.id);
- }
- if (widget) {
- builder.cm.display.input.setUneditable(widget);
- builder.content.appendChild(widget);
- }
- builder.pos += size;
- builder.trailingSpace = false;
- }
- function insertLineContent(line, builder, styles) {
- var spans = line.markedSpans,
- allText = line.text,
- at = 0;
- if (!spans) {
- for (var i$12 = 1; i$12 < styles.length; i$12 += 2) {
- builder.addToken(builder, allText.slice(at, at = styles[i$12]), interpretTokenStyle(styles[i$12 + 1], builder.cm.options));
- }
- return;
- }
- var len = allText.length,
- pos = 0,
- i2 = 1,
- text = "",
- style,
- css;
- var nextChange = 0,
- spanStyle,
- spanEndStyle,
- spanStartStyle,
- collapsed,
- attributes;
- for (;;) {
- if (nextChange == pos) {
- spanStyle = spanEndStyle = spanStartStyle = css = "";
- attributes = null;
- collapsed = null;
- nextChange = Infinity;
- var foundBookmarks = [],
- endStyles = void 0;
- for (var j = 0; j < spans.length; ++j) {
- var sp = spans[j],
- m = sp.marker;
- if (m.type == "bookmark" && sp.from == pos && m.widgetNode) {
- foundBookmarks.push(m);
- } else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {
- if (sp.to != null && sp.to != pos && nextChange > sp.to) {
- nextChange = sp.to;
- spanEndStyle = "";
- }
- if (m.className) {
- spanStyle += " " + m.className;
- }
- if (m.css) {
- css = (css ? css + ";" : "") + m.css;
- }
- if (m.startStyle && sp.from == pos) {
- spanStartStyle += " " + m.startStyle;
- }
- if (m.endStyle && sp.to == nextChange) {
- (endStyles || (endStyles = [])).push(m.endStyle, sp.to);
- }
- if (m.title) {
- (attributes || (attributes = {})).title = m.title;
- }
- if (m.attributes) {
- for (var attr in m.attributes) {
- (attributes || (attributes = {}))[attr] = m.attributes[attr];
- }
- }
- if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0)) {
- collapsed = sp;
- }
- } else if (sp.from > pos && nextChange > sp.from) {
- nextChange = sp.from;
- }
- }
- if (endStyles) {
- for (var j$1 = 0; j$1 < endStyles.length; j$1 += 2) {
- if (endStyles[j$1 + 1] == nextChange) {
- spanEndStyle += " " + endStyles[j$1];
- }
- }
- }
- if (!collapsed || collapsed.from == pos) {
- for (var j$2 = 0; j$2 < foundBookmarks.length; ++j$2) {
- buildCollapsedSpan(builder, 0, foundBookmarks[j$2]);
- }
- }
- if (collapsed && (collapsed.from || 0) == pos) {
- buildCollapsedSpan(builder, (collapsed.to == null ? len + 1 : collapsed.to) - pos, collapsed.marker, collapsed.from == null);
- if (collapsed.to == null) {
- return;
- }
- if (collapsed.to == pos) {
- collapsed = false;
- }
- }
- }
- if (pos >= len) {
- break;
- }
- var upto = Math.min(len, nextChange);
- while (true) {
- if (text) {
- var end = pos + text.length;
- if (!collapsed) {
- var tokenText = end > upto ? text.slice(0, upto - pos) : text;
- builder.addToken(builder, tokenText, style ? style + spanStyle : spanStyle, spanStartStyle, pos + tokenText.length == nextChange ? spanEndStyle : "", css, attributes);
- }
- if (end >= upto) {
- text = text.slice(upto - pos);
- pos = upto;
- break;
- }
- pos = end;
- spanStartStyle = "";
- }
- text = allText.slice(at, at = styles[i2++]);
- style = interpretTokenStyle(styles[i2++], builder.cm.options);
- }
- }
- }
- function LineView(doc, line, lineN) {
- this.line = line;
- this.rest = visualLineContinued(line);
- this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
- this.node = this.text = null;
- this.hidden = lineIsHidden(doc, line);
- }
- function buildViewArray(cm, from, to) {
- var array = [],
- nextPos;
- for (var pos = from; pos < to; pos = nextPos) {
- var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);
- nextPos = pos + view.size;
- array.push(view);
- }
- return array;
- }
- var operationGroup = null;
- function pushOperation(op) {
- if (operationGroup) {
- operationGroup.ops.push(op);
- } else {
- op.ownsGroup = operationGroup = {
- ops: [op],
- delayedCallbacks: []
- };
- }
- }
- function fireCallbacksForOps(group) {
- var callbacks = group.delayedCallbacks,
- i2 = 0;
- do {
- for (; i2 < callbacks.length; i2++) {
- callbacks[i2].call(null);
- }
- for (var j = 0; j < group.ops.length; j++) {
- var op = group.ops[j];
- if (op.cursorActivityHandlers) {
- while (op.cursorActivityCalled < op.cursorActivityHandlers.length) {
- op.cursorActivityHandlers[op.cursorActivityCalled++].call(null, op.cm);
- }
- }
- }
- } while (i2 < callbacks.length);
- }
- function finishOperation(op, endCb) {
- var group = op.ownsGroup;
- if (!group) {
- return;
- }
- try {
- fireCallbacksForOps(group);
- } finally {
- operationGroup = null;
- endCb(group);
- }
- }
- var orphanDelayedCallbacks = null;
- function signalLater(emitter, type) {
- var arr = getHandlers(emitter, type);
- if (!arr.length) {
- return;
- }
- var args = Array.prototype.slice.call(arguments, 2),
- list;
- if (operationGroup) {
- list = operationGroup.delayedCallbacks;
- } else if (orphanDelayedCallbacks) {
- list = orphanDelayedCallbacks;
- } else {
- list = orphanDelayedCallbacks = [];
- setTimeout(fireOrphanDelayed, 0);
- }
- var loop = function (i3) {
- list.push(function () {
- return arr[i3].apply(null, args);
- });
- };
- for (var i2 = 0; i2 < arr.length; ++i2) loop(i2);
- }
- function fireOrphanDelayed() {
- var delayed = orphanDelayedCallbacks;
- orphanDelayedCallbacks = null;
- for (var i2 = 0; i2 < delayed.length; ++i2) {
- delayed[i2]();
- }
- }
- function updateLineForChanges(cm, lineView, lineN, dims) {
- for (var j = 0; j < lineView.changes.length; j++) {
- var type = lineView.changes[j];
- if (type == "text") {
- updateLineText(cm, lineView);
- } else if (type == "gutter") {
- updateLineGutter(cm, lineView, lineN, dims);
- } else if (type == "class") {
- updateLineClasses(cm, lineView);
- } else if (type == "widget") {
- updateLineWidgets(cm, lineView, dims);
- }
- }
- lineView.changes = null;
- }
- function ensureLineWrapped(lineView) {
- if (lineView.node == lineView.text) {
- lineView.node = elt("div", null, null, "position: relative");
- if (lineView.text.parentNode) {
- lineView.text.parentNode.replaceChild(lineView.node, lineView.text);
- }
- lineView.node.appendChild(lineView.text);
- if (ie && ie_version < 8) {
- lineView.node.style.zIndex = 2;
- }
- }
- return lineView.node;
- }
- function updateLineBackground(cm, lineView) {
- var cls = lineView.bgClass ? lineView.bgClass + " " + (lineView.line.bgClass || "") : lineView.line.bgClass;
- if (cls) {
- cls += " CodeMirror-linebackground";
- }
- if (lineView.background) {
- if (cls) {
- lineView.background.className = cls;
- } else {
- lineView.background.parentNode.removeChild(lineView.background);
- lineView.background = null;
- }
- } else if (cls) {
- var wrap = ensureLineWrapped(lineView);
- lineView.background = wrap.insertBefore(elt("div", null, cls), wrap.firstChild);
- cm.display.input.setUneditable(lineView.background);
- }
- }
- function getLineContent(cm, lineView) {
- var ext = cm.display.externalMeasured;
- if (ext && ext.line == lineView.line) {
- cm.display.externalMeasured = null;
- lineView.measure = ext.measure;
- return ext.built;
- }
- return buildLineContent(cm, lineView);
- }
- function updateLineText(cm, lineView) {
- var cls = lineView.text.className;
- var built = getLineContent(cm, lineView);
- if (lineView.text == lineView.node) {
- lineView.node = built.pre;
- }
- lineView.text.parentNode.replaceChild(built.pre, lineView.text);
- lineView.text = built.pre;
- if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {
- lineView.bgClass = built.bgClass;
- lineView.textClass = built.textClass;
- updateLineClasses(cm, lineView);
- } else if (cls) {
- lineView.text.className = cls;
- }
- }
- function updateLineClasses(cm, lineView) {
- updateLineBackground(cm, lineView);
- if (lineView.line.wrapClass) {
- ensureLineWrapped(lineView).className = lineView.line.wrapClass;
- } else if (lineView.node != lineView.text) {
- lineView.node.className = "";
- }
- var textClass = lineView.textClass ? lineView.textClass + " " + (lineView.line.textClass || "") : lineView.line.textClass;
- lineView.text.className = textClass || "";
- }
- function updateLineGutter(cm, lineView, lineN, dims) {
- if (lineView.gutter) {
- lineView.node.removeChild(lineView.gutter);
- lineView.gutter = null;
- }
- if (lineView.gutterBackground) {
- lineView.node.removeChild(lineView.gutterBackground);
- lineView.gutterBackground = null;
- }
- if (lineView.line.gutterClass) {
- var wrap = ensureLineWrapped(lineView);
- lineView.gutterBackground = elt("div", null, "CodeMirror-gutter-background " + lineView.line.gutterClass, "left: " + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + "px; width: " + dims.gutterTotalWidth + "px");
- cm.display.input.setUneditable(lineView.gutterBackground);
- wrap.insertBefore(lineView.gutterBackground, lineView.text);
- }
- var markers = lineView.line.gutterMarkers;
- if (cm.options.lineNumbers || markers) {
- var wrap$1 = ensureLineWrapped(lineView);
- var gutterWrap = lineView.gutter = elt("div", null, "CodeMirror-gutter-wrapper", "left: " + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + "px");
- gutterWrap.setAttribute("aria-hidden", "true");
- cm.display.input.setUneditable(gutterWrap);
- wrap$1.insertBefore(gutterWrap, lineView.text);
- if (lineView.line.gutterClass) {
- gutterWrap.className += " " + lineView.line.gutterClass;
- }
- if (cm.options.lineNumbers && (!markers || !markers["CodeMirror-linenumbers"])) {
- lineView.lineNumber = gutterWrap.appendChild(elt("div", lineNumberFor(cm.options, lineN), "CodeMirror-linenumber CodeMirror-gutter-elt", "left: " + dims.gutterLeft["CodeMirror-linenumbers"] + "px; width: " + cm.display.lineNumInnerWidth + "px"));
- }
- if (markers) {
- for (var k = 0; k < cm.display.gutterSpecs.length; ++k) {
- var id = cm.display.gutterSpecs[k].className,
- found = markers.hasOwnProperty(id) && markers[id];
- if (found) {
- gutterWrap.appendChild(elt("div", [found], "CodeMirror-gutter-elt", "left: " + dims.gutterLeft[id] + "px; width: " + dims.gutterWidth[id] + "px"));
- }
- }
- }
- }
- }
- function updateLineWidgets(cm, lineView, dims) {
- if (lineView.alignable) {
- lineView.alignable = null;
- }
- var isWidget = classTest("CodeMirror-linewidget");
- for (var node = lineView.node.firstChild, next = void 0; node; node = next) {
- next = node.nextSibling;
- if (isWidget.test(node.className)) {
- lineView.node.removeChild(node);
- }
- }
- insertLineWidgets(cm, lineView, dims);
- }
- function buildLineElement(cm, lineView, lineN, dims) {
- var built = getLineContent(cm, lineView);
- lineView.text = lineView.node = built.pre;
- if (built.bgClass) {
- lineView.bgClass = built.bgClass;
- }
- if (built.textClass) {
- lineView.textClass = built.textClass;
- }
- updateLineClasses(cm, lineView);
- updateLineGutter(cm, lineView, lineN, dims);
- insertLineWidgets(cm, lineView, dims);
- return lineView.node;
- }
- function insertLineWidgets(cm, lineView, dims) {
- insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);
- if (lineView.rest) {
- for (var i2 = 0; i2 < lineView.rest.length; i2++) {
- insertLineWidgetsFor(cm, lineView.rest[i2], lineView, dims, false);
- }
- }
- }
- function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {
- if (!line.widgets) {
- return;
- }
- var wrap = ensureLineWrapped(lineView);
- for (var i2 = 0, ws = line.widgets; i2 < ws.length; ++i2) {
- var widget = ws[i2],
- node = elt("div", [widget.node], "CodeMirror-linewidget" + (widget.className ? " " + widget.className : ""));
- if (!widget.handleMouseEvents) {
- node.setAttribute("cm-ignore-events", "true");
- }
- positionLineWidget(widget, node, lineView, dims);
- cm.display.input.setUneditable(node);
- if (allowAbove && widget.above) {
- wrap.insertBefore(node, lineView.gutter || lineView.text);
- } else {
- wrap.appendChild(node);
- }
- signalLater(widget, "redraw");
- }
- }
- function positionLineWidget(widget, node, lineView, dims) {
- if (widget.noHScroll) {
- (lineView.alignable || (lineView.alignable = [])).push(node);
- var width = dims.wrapperWidth;
- node.style.left = dims.fixedPos + "px";
- if (!widget.coverGutter) {
- width -= dims.gutterTotalWidth;
- node.style.paddingLeft = dims.gutterTotalWidth + "px";
- }
- node.style.width = width + "px";
- }
- if (widget.coverGutter) {
- node.style.zIndex = 5;
- node.style.position = "relative";
- if (!widget.noHScroll) {
- node.style.marginLeft = -dims.gutterTotalWidth + "px";
- }
- }
- }
- function widgetHeight(widget) {
- if (widget.height != null) {
- return widget.height;
- }
- var cm = widget.doc.cm;
- if (!cm) {
- return 0;
- }
- if (!contains(document.body, widget.node)) {
- var parentStyle = "position: relative;";
- if (widget.coverGutter) {
- parentStyle += "margin-left: -" + cm.display.gutters.offsetWidth + "px;";
- }
- if (widget.noHScroll) {
- parentStyle += "width: " + cm.display.wrapper.clientWidth + "px;";
- }
- removeChildrenAndAdd(cm.display.measure, elt("div", [widget.node], null, parentStyle));
- }
- return widget.height = widget.node.parentNode.offsetHeight;
- }
- function eventInWidget(display, e) {
- for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
- if (!n || n.nodeType == 1 && n.getAttribute("cm-ignore-events") == "true" || n.parentNode == display.sizer && n != display.mover) {
- return true;
- }
- }
- }
- function paddingTop(display) {
- return display.lineSpace.offsetTop;
- }
- function paddingVert(display) {
- return display.mover.offsetHeight - display.lineSpace.offsetHeight;
- }
- function paddingH(display) {
- if (display.cachedPaddingH) {
- return display.cachedPaddingH;
- }
- var e = removeChildrenAndAdd(display.measure, elt("pre", "x", "CodeMirror-line-like"));
- var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;
- var data = {
- left: parseInt(style.paddingLeft),
- right: parseInt(style.paddingRight)
- };
- if (!isNaN(data.left) && !isNaN(data.right)) {
- display.cachedPaddingH = data;
- }
- return data;
- }
- function scrollGap(cm) {
- return scrollerGap - cm.display.nativeBarWidth;
- }
- function displayWidth(cm) {
- return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth;
- }
- function displayHeight(cm) {
- return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight;
- }
- function ensureLineHeights(cm, lineView, rect) {
- var wrapping = cm.options.lineWrapping;
- var curWidth = wrapping && displayWidth(cm);
- if (!lineView.measure.heights || wrapping && lineView.measure.width != curWidth) {
- var heights = lineView.measure.heights = [];
- if (wrapping) {
- lineView.measure.width = curWidth;
- var rects = lineView.text.firstChild.getClientRects();
- for (var i2 = 0; i2 < rects.length - 1; i2++) {
- var cur = rects[i2],
- next = rects[i2 + 1];
- if (Math.abs(cur.bottom - next.bottom) > 2) {
- heights.push((cur.bottom + next.top) / 2 - rect.top);
- }
- }
- }
- heights.push(rect.bottom - rect.top);
- }
- }
- function mapFromLineView(lineView, line, lineN) {
- if (lineView.line == line) {
- return {
- map: lineView.measure.map,
- cache: lineView.measure.cache
- };
- }
- if (lineView.rest) {
- for (var i2 = 0; i2 < lineView.rest.length; i2++) {
- if (lineView.rest[i2] == line) {
- return {
- map: lineView.measure.maps[i2],
- cache: lineView.measure.caches[i2]
- };
- }
- }
- for (var i$12 = 0; i$12 < lineView.rest.length; i$12++) {
- if (lineNo(lineView.rest[i$12]) > lineN) {
- return {
- map: lineView.measure.maps[i$12],
- cache: lineView.measure.caches[i$12],
- before: true
- };
- }
- }
- }
- }
- function updateExternalMeasurement(cm, line) {
- line = visualLine(line);
- var lineN = lineNo(line);
- var view = cm.display.externalMeasured = new LineView(cm.doc, line, lineN);
- view.lineN = lineN;
- var built = view.built = buildLineContent(cm, view);
- view.text = built.pre;
- removeChildrenAndAdd(cm.display.lineMeasure, built.pre);
- return view;
- }
- function measureChar(cm, line, ch, bias) {
- return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias);
- }
- function findViewForLine(cm, lineN) {
- if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo) {
- return cm.display.view[findViewIndex(cm, lineN)];
- }
- var ext = cm.display.externalMeasured;
- if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size) {
- return ext;
- }
- }
- function prepareMeasureForLine(cm, line) {
- var lineN = lineNo(line);
- var view = findViewForLine(cm, lineN);
- if (view && !view.text) {
- view = null;
- } else if (view && view.changes) {
- updateLineForChanges(cm, view, lineN, getDimensions(cm));
- cm.curOp.forceUpdate = true;
- }
- if (!view) {
- view = updateExternalMeasurement(cm, line);
- }
- var info = mapFromLineView(view, line, lineN);
- return {
- line,
- view,
- rect: null,
- map: info.map,
- cache: info.cache,
- before: info.before,
- hasHeights: false
- };
- }
- function measureCharPrepared(cm, prepared, ch, bias, varHeight) {
- if (prepared.before) {
- ch = -1;
- }
- var key = ch + (bias || ""),
- found;
- if (prepared.cache.hasOwnProperty(key)) {
- found = prepared.cache[key];
- } else {
- if (!prepared.rect) {
- prepared.rect = prepared.view.text.getBoundingClientRect();
- }
- if (!prepared.hasHeights) {
- ensureLineHeights(cm, prepared.view, prepared.rect);
- prepared.hasHeights = true;
- }
- found = measureCharInner(cm, prepared, ch, bias);
- if (!found.bogus) {
- prepared.cache[key] = found;
- }
- }
- return {
- left: found.left,
- right: found.right,
- top: varHeight ? found.rtop : found.top,
- bottom: varHeight ? found.rbottom : found.bottom
- };
- }
- var nullRect = {
- left: 0,
- right: 0,
- top: 0,
- bottom: 0
- };
- function nodeAndOffsetInLineMap(map2, ch, bias) {
- var node, start, end, collapse, mStart, mEnd;
- for (var i2 = 0; i2 < map2.length; i2 += 3) {
- mStart = map2[i2];
- mEnd = map2[i2 + 1];
- if (ch < mStart) {
- start = 0;
- end = 1;
- collapse = "left";
- } else if (ch < mEnd) {
- start = ch - mStart;
- end = start + 1;
- } else if (i2 == map2.length - 3 || ch == mEnd && map2[i2 + 3] > ch) {
- end = mEnd - mStart;
- start = end - 1;
- if (ch >= mEnd) {
- collapse = "right";
- }
- }
- if (start != null) {
- node = map2[i2 + 2];
- if (mStart == mEnd && bias == (node.insertLeft ? "left" : "right")) {
- collapse = bias;
- }
- if (bias == "left" && start == 0) {
- while (i2 && map2[i2 - 2] == map2[i2 - 3] && map2[i2 - 1].insertLeft) {
- node = map2[(i2 -= 3) + 2];
- collapse = "left";
- }
- }
- if (bias == "right" && start == mEnd - mStart) {
- while (i2 < map2.length - 3 && map2[i2 + 3] == map2[i2 + 4] && !map2[i2 + 5].insertLeft) {
- node = map2[(i2 += 3) + 2];
- collapse = "right";
- }
- }
- break;
- }
- }
- return {
- node,
- start,
- end,
- collapse,
- coverStart: mStart,
- coverEnd: mEnd
- };
- }
- function getUsefulRect(rects, bias) {
- var rect = nullRect;
- if (bias == "left") {
- for (var i2 = 0; i2 < rects.length; i2++) {
- if ((rect = rects[i2]).left != rect.right) {
- break;
- }
- }
- } else {
- for (var i$12 = rects.length - 1; i$12 >= 0; i$12--) {
- if ((rect = rects[i$12]).left != rect.right) {
- break;
- }
- }
- }
- return rect;
- }
- function measureCharInner(cm, prepared, ch, bias) {
- var place = nodeAndOffsetInLineMap(prepared.map, ch, bias);
- var node = place.node,
- start = place.start,
- end = place.end,
- collapse = place.collapse;
- var rect;
- if (node.nodeType == 3) {
- for (var i$12 = 0; i$12 < 4; i$12++) {
- while (start && isExtendingChar(prepared.line.text.charAt(place.coverStart + start))) {
- --start;
- }
- while (place.coverStart + end < place.coverEnd && isExtendingChar(prepared.line.text.charAt(place.coverStart + end))) {
- ++end;
- }
- if (ie && ie_version < 9 && start == 0 && end == place.coverEnd - place.coverStart) {
- rect = node.parentNode.getBoundingClientRect();
- } else {
- rect = getUsefulRect(range(node, start, end).getClientRects(), bias);
- }
- if (rect.left || rect.right || start == 0) {
- break;
- }
- end = start;
- start = start - 1;
- collapse = "right";
- }
- if (ie && ie_version < 11) {
- rect = maybeUpdateRectForZooming(cm.display.measure, rect);
- }
- } else {
- if (start > 0) {
- collapse = bias = "right";
- }
- var rects;
- if (cm.options.lineWrapping && (rects = node.getClientRects()).length > 1) {
- rect = rects[bias == "right" ? rects.length - 1 : 0];
- } else {
- rect = node.getBoundingClientRect();
- }
- }
- if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) {
- var rSpan = node.parentNode.getClientRects()[0];
- if (rSpan) {
- rect = {
- left: rSpan.left,
- right: rSpan.left + charWidth(cm.display),
- top: rSpan.top,
- bottom: rSpan.bottom
- };
- } else {
- rect = nullRect;
- }
- }
- var rtop = rect.top - prepared.rect.top,
- rbot = rect.bottom - prepared.rect.top;
- var mid = (rtop + rbot) / 2;
- var heights = prepared.view.measure.heights;
- var i2 = 0;
- for (; i2 < heights.length - 1; i2++) {
- if (mid < heights[i2]) {
- break;
- }
- }
- var top = i2 ? heights[i2 - 1] : 0,
- bot = heights[i2];
- var result = {
- left: (collapse == "right" ? rect.right : rect.left) - prepared.rect.left,
- right: (collapse == "left" ? rect.left : rect.right) - prepared.rect.left,
- top,
- bottom: bot
- };
- if (!rect.left && !rect.right) {
- result.bogus = true;
- }
- if (!cm.options.singleCursorHeightPerLine) {
- result.rtop = rtop;
- result.rbottom = rbot;
- }
- return result;
- }
- function maybeUpdateRectForZooming(measure, rect) {
- if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !hasBadZoomedRects(measure)) {
- return rect;
- }
- var scaleX = screen.logicalXDPI / screen.deviceXDPI;
- var scaleY = screen.logicalYDPI / screen.deviceYDPI;
- return {
- left: rect.left * scaleX,
- right: rect.right * scaleX,
- top: rect.top * scaleY,
- bottom: rect.bottom * scaleY
- };
- }
- function clearLineMeasurementCacheFor(lineView) {
- if (lineView.measure) {
- lineView.measure.cache = {};
- lineView.measure.heights = null;
- if (lineView.rest) {
- for (var i2 = 0; i2 < lineView.rest.length; i2++) {
- lineView.measure.caches[i2] = {};
- }
- }
- }
- }
- function clearLineMeasurementCache(cm) {
- cm.display.externalMeasure = null;
- removeChildren(cm.display.lineMeasure);
- for (var i2 = 0; i2 < cm.display.view.length; i2++) {
- clearLineMeasurementCacheFor(cm.display.view[i2]);
- }
- }
- function clearCaches(cm) {
- clearLineMeasurementCache(cm);
- cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;
- if (!cm.options.lineWrapping) {
- cm.display.maxLineChanged = true;
- }
- cm.display.lineNumChars = null;
- }
- function pageScrollX() {
- if (chrome && android) {
- return -(document.body.getBoundingClientRect().left - parseInt(getComputedStyle(document.body).marginLeft));
- }
- return window.pageXOffset || (document.documentElement || document.body).scrollLeft;
- }
- function pageScrollY() {
- if (chrome && android) {
- return -(document.body.getBoundingClientRect().top - parseInt(getComputedStyle(document.body).marginTop));
- }
- return window.pageYOffset || (document.documentElement || document.body).scrollTop;
- }
- function widgetTopHeight(lineObj) {
- var ref = visualLine(lineObj);
- var widgets = ref.widgets;
- var height = 0;
- if (widgets) {
- for (var i2 = 0; i2 < widgets.length; ++i2) {
- if (widgets[i2].above) {
- height += widgetHeight(widgets[i2]);
- }
- }
- }
- return height;
- }
- function intoCoordSystem(cm, lineObj, rect, context, includeWidgets) {
- if (!includeWidgets) {
- var height = widgetTopHeight(lineObj);
- rect.top += height;
- rect.bottom += height;
- }
- if (context == "line") {
- return rect;
- }
- if (!context) {
- context = "local";
- }
- var yOff = heightAtLine(lineObj);
- if (context == "local") {
- yOff += paddingTop(cm.display);
- } else {
- yOff -= cm.display.viewOffset;
- }
- if (context == "page" || context == "window") {
- var lOff = cm.display.lineSpace.getBoundingClientRect();
- yOff += lOff.top + (context == "window" ? 0 : pageScrollY());
- var xOff = lOff.left + (context == "window" ? 0 : pageScrollX());
- rect.left += xOff;
- rect.right += xOff;
- }
- rect.top += yOff;
- rect.bottom += yOff;
- return rect;
- }
- function fromCoordSystem(cm, coords, context) {
- if (context == "div") {
- return coords;
- }
- var left = coords.left,
- top = coords.top;
- if (context == "page") {
- left -= pageScrollX();
- top -= pageScrollY();
- } else if (context == "local" || !context) {
- var localBox = cm.display.sizer.getBoundingClientRect();
- left += localBox.left;
- top += localBox.top;
- }
- var lineSpaceBox = cm.display.lineSpace.getBoundingClientRect();
- return {
- left: left - lineSpaceBox.left,
- top: top - lineSpaceBox.top
- };
- }
- function charCoords(cm, pos, context, lineObj, bias) {
- if (!lineObj) {
- lineObj = getLine(cm.doc, pos.line);
- }
- return intoCoordSystem(cm, lineObj, measureChar(cm, lineObj, pos.ch, bias), context);
- }
- function cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) {
- lineObj = lineObj || getLine(cm.doc, pos.line);
- if (!preparedMeasure) {
- preparedMeasure = prepareMeasureForLine(cm, lineObj);
- }
- function get(ch2, right) {
- var m = measureCharPrepared(cm, preparedMeasure, ch2, right ? "right" : "left", varHeight);
- if (right) {
- m.left = m.right;
- } else {
- m.right = m.left;
- }
- return intoCoordSystem(cm, lineObj, m, context);
- }
- var order = getOrder(lineObj, cm.doc.direction),
- ch = pos.ch,
- sticky = pos.sticky;
- if (ch >= lineObj.text.length) {
- ch = lineObj.text.length;
- sticky = "before";
- } else if (ch <= 0) {
- ch = 0;
- sticky = "after";
- }
- if (!order) {
- return get(sticky == "before" ? ch - 1 : ch, sticky == "before");
- }
- function getBidi(ch2, partPos2, invert) {
- var part = order[partPos2],
- right = part.level == 1;
- return get(invert ? ch2 - 1 : ch2, right != invert);
- }
- var partPos = getBidiPartAt(order, ch, sticky);
- var other = bidiOther;
- var val = getBidi(ch, partPos, sticky == "before");
- if (other != null) {
- val.other = getBidi(ch, other, sticky != "before");
- }
- return val;
- }
- function estimateCoords(cm, pos) {
- var left = 0;
- pos = clipPos(cm.doc, pos);
- if (!cm.options.lineWrapping) {
- left = charWidth(cm.display) * pos.ch;
- }
- var lineObj = getLine(cm.doc, pos.line);
- var top = heightAtLine(lineObj) + paddingTop(cm.display);
- return {
- left,
- right: left,
- top,
- bottom: top + lineObj.height
- };
- }
- function PosWithInfo(line, ch, sticky, outside, xRel) {
- var pos = Pos(line, ch, sticky);
- pos.xRel = xRel;
- if (outside) {
- pos.outside = outside;
- }
- return pos;
- }
- function coordsChar(cm, x, y) {
- var doc = cm.doc;
- y += cm.display.viewOffset;
- if (y < 0) {
- return PosWithInfo(doc.first, 0, null, -1, -1);
- }
- var lineN = lineAtHeight(doc, y),
- last = doc.first + doc.size - 1;
- if (lineN > last) {
- return PosWithInfo(doc.first + doc.size - 1, getLine(doc, last).text.length, null, 1, 1);
- }
- if (x < 0) {
- x = 0;
- }
- var lineObj = getLine(doc, lineN);
- for (;;) {
- var found = coordsCharInner(cm, lineObj, lineN, x, y);
- var collapsed = collapsedSpanAround(lineObj, found.ch + (found.xRel > 0 || found.outside > 0 ? 1 : 0));
- if (!collapsed) {
- return found;
- }
- var rangeEnd = collapsed.find(1);
- if (rangeEnd.line == lineN) {
- return rangeEnd;
- }
- lineObj = getLine(doc, lineN = rangeEnd.line);
- }
- }
- function wrappedLineExtent(cm, lineObj, preparedMeasure, y) {
- y -= widgetTopHeight(lineObj);
- var end = lineObj.text.length;
- var begin = findFirst(function (ch) {
- return measureCharPrepared(cm, preparedMeasure, ch - 1).bottom <= y;
- }, end, 0);
- end = findFirst(function (ch) {
- return measureCharPrepared(cm, preparedMeasure, ch).top > y;
- }, begin, end);
- return {
- begin,
- end
- };
- }
- function wrappedLineExtentChar(cm, lineObj, preparedMeasure, target) {
- if (!preparedMeasure) {
- preparedMeasure = prepareMeasureForLine(cm, lineObj);
- }
- var targetTop = intoCoordSystem(cm, lineObj, measureCharPrepared(cm, preparedMeasure, target), "line").top;
- return wrappedLineExtent(cm, lineObj, preparedMeasure, targetTop);
- }
- function boxIsAfter(box, x, y, left) {
- return box.bottom <= y ? false : box.top > y ? true : (left ? box.left : box.right) > x;
- }
- function coordsCharInner(cm, lineObj, lineNo2, x, y) {
- y -= heightAtLine(lineObj);
- var preparedMeasure = prepareMeasureForLine(cm, lineObj);
- var widgetHeight2 = widgetTopHeight(lineObj);
- var begin = 0,
- end = lineObj.text.length,
- ltr = true;
- var order = getOrder(lineObj, cm.doc.direction);
- if (order) {
- var part = (cm.options.lineWrapping ? coordsBidiPartWrapped : coordsBidiPart)(cm, lineObj, lineNo2, preparedMeasure, order, x, y);
- ltr = part.level != 1;
- begin = ltr ? part.from : part.to - 1;
- end = ltr ? part.to : part.from - 1;
- }
- var chAround = null,
- boxAround = null;
- var ch = findFirst(function (ch2) {
- var box = measureCharPrepared(cm, preparedMeasure, ch2);
- box.top += widgetHeight2;
- box.bottom += widgetHeight2;
- if (!boxIsAfter(box, x, y, false)) {
- return false;
- }
- if (box.top <= y && box.left <= x) {
- chAround = ch2;
- boxAround = box;
- }
- return true;
- }, begin, end);
- var baseX,
- sticky,
- outside = false;
- if (boxAround) {
- var atLeft = x - boxAround.left < boxAround.right - x,
- atStart = atLeft == ltr;
- ch = chAround + (atStart ? 0 : 1);
- sticky = atStart ? "after" : "before";
- baseX = atLeft ? boxAround.left : boxAround.right;
- } else {
- if (!ltr && (ch == end || ch == begin)) {
- ch++;
- }
- sticky = ch == 0 ? "after" : ch == lineObj.text.length ? "before" : measureCharPrepared(cm, preparedMeasure, ch - (ltr ? 1 : 0)).bottom + widgetHeight2 <= y == ltr ? "after" : "before";
- var coords = cursorCoords(cm, Pos(lineNo2, ch, sticky), "line", lineObj, preparedMeasure);
- baseX = coords.left;
- outside = y < coords.top ? -1 : y >= coords.bottom ? 1 : 0;
- }
- ch = skipExtendingChars(lineObj.text, ch, 1);
- return PosWithInfo(lineNo2, ch, sticky, outside, x - baseX);
- }
- function coordsBidiPart(cm, lineObj, lineNo2, preparedMeasure, order, x, y) {
- var index = findFirst(function (i2) {
- var part2 = order[i2],
- ltr2 = part2.level != 1;
- return boxIsAfter(cursorCoords(cm, Pos(lineNo2, ltr2 ? part2.to : part2.from, ltr2 ? "before" : "after"), "line", lineObj, preparedMeasure), x, y, true);
- }, 0, order.length - 1);
- var part = order[index];
- if (index > 0) {
- var ltr = part.level != 1;
- var start = cursorCoords(cm, Pos(lineNo2, ltr ? part.from : part.to, ltr ? "after" : "before"), "line", lineObj, preparedMeasure);
- if (boxIsAfter(start, x, y, true) && start.top > y) {
- part = order[index - 1];
- }
- }
- return part;
- }
- function coordsBidiPartWrapped(cm, lineObj, _lineNo, preparedMeasure, order, x, y) {
- var ref = wrappedLineExtent(cm, lineObj, preparedMeasure, y);
- var begin = ref.begin;
- var end = ref.end;
- if (/\s/.test(lineObj.text.charAt(end - 1))) {
- end--;
- }
- var part = null,
- closestDist = null;
- for (var i2 = 0; i2 < order.length; i2++) {
- var p = order[i2];
- if (p.from >= end || p.to <= begin) {
- continue;
- }
- var ltr = p.level != 1;
- var endX = measureCharPrepared(cm, preparedMeasure, ltr ? Math.min(end, p.to) - 1 : Math.max(begin, p.from)).right;
- var dist = endX < x ? x - endX + 1e9 : endX - x;
- if (!part || closestDist > dist) {
- part = p;
- closestDist = dist;
- }
- }
- if (!part) {
- part = order[order.length - 1];
- }
- if (part.from < begin) {
- part = {
- from: begin,
- to: part.to,
- level: part.level
- };
- }
- if (part.to > end) {
- part = {
- from: part.from,
- to: end,
- level: part.level
- };
- }
- return part;
- }
- var measureText;
- function textHeight(display) {
- if (display.cachedTextHeight != null) {
- return display.cachedTextHeight;
- }
- if (measureText == null) {
- measureText = elt("pre", null, "CodeMirror-line-like");
- for (var i2 = 0; i2 < 49; ++i2) {
- measureText.appendChild(document.createTextNode("x"));
- measureText.appendChild(elt("br"));
- }
- measureText.appendChild(document.createTextNode("x"));
- }
- removeChildrenAndAdd(display.measure, measureText);
- var height = measureText.offsetHeight / 50;
- if (height > 3) {
- display.cachedTextHeight = height;
- }
- removeChildren(display.measure);
- return height || 1;
- }
- function charWidth(display) {
- if (display.cachedCharWidth != null) {
- return display.cachedCharWidth;
- }
- var anchor = elt("span", "xxxxxxxxxx");
- var pre = elt("pre", [anchor], "CodeMirror-line-like");
- removeChildrenAndAdd(display.measure, pre);
- var rect = anchor.getBoundingClientRect(),
- width = (rect.right - rect.left) / 10;
- if (width > 2) {
- display.cachedCharWidth = width;
- }
- return width || 10;
- }
- function getDimensions(cm) {
- var d = cm.display,
- left = {},
- width = {};
- var gutterLeft = d.gutters.clientLeft;
- for (var n = d.gutters.firstChild, i2 = 0; n; n = n.nextSibling, ++i2) {
- var id = cm.display.gutterSpecs[i2].className;
- left[id] = n.offsetLeft + n.clientLeft + gutterLeft;
- width[id] = n.clientWidth;
- }
- return {
- fixedPos: compensateForHScroll(d),
- gutterTotalWidth: d.gutters.offsetWidth,
- gutterLeft: left,
- gutterWidth: width,
- wrapperWidth: d.wrapper.clientWidth
- };
- }
- function compensateForHScroll(display) {
- return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left;
- }
- function estimateHeight(cm) {
- var th = textHeight(cm.display),
- wrapping = cm.options.lineWrapping;
- var perLine = wrapping && Math.max(5, cm.display.scroller.clientWidth / charWidth(cm.display) - 3);
- return function (line) {
- if (lineIsHidden(cm.doc, line)) {
- return 0;
- }
- var widgetsHeight = 0;
- if (line.widgets) {
- for (var i2 = 0; i2 < line.widgets.length; i2++) {
- if (line.widgets[i2].height) {
- widgetsHeight += line.widgets[i2].height;
- }
- }
- }
- if (wrapping) {
- return widgetsHeight + (Math.ceil(line.text.length / perLine) || 1) * th;
- } else {
- return widgetsHeight + th;
- }
- };
- }
- function estimateLineHeights(cm) {
- var doc = cm.doc,
- est = estimateHeight(cm);
- doc.iter(function (line) {
- var estHeight = est(line);
- if (estHeight != line.height) {
- updateLineHeight(line, estHeight);
- }
- });
- }
- function posFromMouse(cm, e, liberal, forRect) {
- var display = cm.display;
- if (!liberal && e_target(e).getAttribute("cm-not-content") == "true") {
- return null;
- }
- var x,
- y,
- space = display.lineSpace.getBoundingClientRect();
- try {
- x = e.clientX - space.left;
- y = e.clientY - space.top;
- } catch (e$1) {
- return null;
- }
- var coords = coordsChar(cm, x, y),
- line;
- if (forRect && coords.xRel > 0 && (line = getLine(cm.doc, coords.line).text).length == coords.ch) {
- var colDiff = countColumn(line, line.length, cm.options.tabSize) - line.length;
- coords = Pos(coords.line, Math.max(0, Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) - colDiff));
- }
- return coords;
- }
- function findViewIndex(cm, n) {
- if (n >= cm.display.viewTo) {
- return null;
- }
- n -= cm.display.viewFrom;
- if (n < 0) {
- return null;
- }
- var view = cm.display.view;
- for (var i2 = 0; i2 < view.length; i2++) {
- n -= view[i2].size;
- if (n < 0) {
- return i2;
- }
- }
- }
- function regChange(cm, from, to, lendiff) {
- if (from == null) {
- from = cm.doc.first;
- }
- if (to == null) {
- to = cm.doc.first + cm.doc.size;
- }
- if (!lendiff) {
- lendiff = 0;
- }
- var display = cm.display;
- if (lendiff && to < display.viewTo && (display.updateLineNumbers == null || display.updateLineNumbers > from)) {
- display.updateLineNumbers = from;
- }
- cm.curOp.viewChanged = true;
- if (from >= display.viewTo) {
- if (sawCollapsedSpans && visualLineNo(cm.doc, from) < display.viewTo) {
- resetView(cm);
- }
- } else if (to <= display.viewFrom) {
- if (sawCollapsedSpans && visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom) {
- resetView(cm);
- } else {
- display.viewFrom += lendiff;
- display.viewTo += lendiff;
- }
- } else if (from <= display.viewFrom && to >= display.viewTo) {
- resetView(cm);
- } else if (from <= display.viewFrom) {
- var cut = viewCuttingPoint(cm, to, to + lendiff, 1);
- if (cut) {
- display.view = display.view.slice(cut.index);
- display.viewFrom = cut.lineN;
- display.viewTo += lendiff;
- } else {
- resetView(cm);
- }
- } else if (to >= display.viewTo) {
- var cut$1 = viewCuttingPoint(cm, from, from, -1);
- if (cut$1) {
- display.view = display.view.slice(0, cut$1.index);
- display.viewTo = cut$1.lineN;
- } else {
- resetView(cm);
- }
- } else {
- var cutTop = viewCuttingPoint(cm, from, from, -1);
- var cutBot = viewCuttingPoint(cm, to, to + lendiff, 1);
- if (cutTop && cutBot) {
- display.view = display.view.slice(0, cutTop.index).concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN)).concat(display.view.slice(cutBot.index));
- display.viewTo += lendiff;
- } else {
- resetView(cm);
- }
- }
- var ext = display.externalMeasured;
- if (ext) {
- if (to < ext.lineN) {
- ext.lineN += lendiff;
- } else if (from < ext.lineN + ext.size) {
- display.externalMeasured = null;
- }
- }
- }
- function regLineChange(cm, line, type) {
- cm.curOp.viewChanged = true;
- var display = cm.display,
- ext = cm.display.externalMeasured;
- if (ext && line >= ext.lineN && line < ext.lineN + ext.size) {
- display.externalMeasured = null;
- }
- if (line < display.viewFrom || line >= display.viewTo) {
- return;
- }
- var lineView = display.view[findViewIndex(cm, line)];
- if (lineView.node == null) {
- return;
- }
- var arr = lineView.changes || (lineView.changes = []);
- if (indexOf(arr, type) == -1) {
- arr.push(type);
- }
- }
- function resetView(cm) {
- cm.display.viewFrom = cm.display.viewTo = cm.doc.first;
- cm.display.view = [];
- cm.display.viewOffset = 0;
- }
- function viewCuttingPoint(cm, oldN, newN, dir) {
- var index = findViewIndex(cm, oldN),
- diff,
- view = cm.display.view;
- if (!sawCollapsedSpans || newN == cm.doc.first + cm.doc.size) {
- return {
- index,
- lineN: newN
- };
- }
- var n = cm.display.viewFrom;
- for (var i2 = 0; i2 < index; i2++) {
- n += view[i2].size;
- }
- if (n != oldN) {
- if (dir > 0) {
- if (index == view.length - 1) {
- return null;
- }
- diff = n + view[index].size - oldN;
- index++;
- } else {
- diff = n - oldN;
- }
- oldN += diff;
- newN += diff;
- }
- while (visualLineNo(cm.doc, newN) != newN) {
- if (index == (dir < 0 ? 0 : view.length - 1)) {
- return null;
- }
- newN += dir * view[index - (dir < 0 ? 1 : 0)].size;
- index += dir;
- }
- return {
- index,
- lineN: newN
- };
- }
- function adjustView(cm, from, to) {
- var display = cm.display,
- view = display.view;
- if (view.length == 0 || from >= display.viewTo || to <= display.viewFrom) {
- display.view = buildViewArray(cm, from, to);
- display.viewFrom = from;
- } else {
- if (display.viewFrom > from) {
- display.view = buildViewArray(cm, from, display.viewFrom).concat(display.view);
- } else if (display.viewFrom < from) {
- display.view = display.view.slice(findViewIndex(cm, from));
- }
- display.viewFrom = from;
- if (display.viewTo < to) {
- display.view = display.view.concat(buildViewArray(cm, display.viewTo, to));
- } else if (display.viewTo > to) {
- display.view = display.view.slice(0, findViewIndex(cm, to));
- }
- }
- display.viewTo = to;
- }
- function countDirtyView(cm) {
- var view = cm.display.view,
- dirty = 0;
- for (var i2 = 0; i2 < view.length; i2++) {
- var lineView = view[i2];
- if (!lineView.hidden && (!lineView.node || lineView.changes)) {
- ++dirty;
- }
- }
- return dirty;
- }
- function updateSelection(cm) {
- cm.display.input.showSelection(cm.display.input.prepareSelection());
- }
- function prepareSelection(cm, primary) {
- if (primary === void 0) primary = true;
- var doc = cm.doc,
- result = {};
- var curFragment = result.cursors = document.createDocumentFragment();
- var selFragment = result.selection = document.createDocumentFragment();
- var customCursor = cm.options.$customCursor;
- if (customCursor) {
- primary = true;
- }
- for (var i2 = 0; i2 < doc.sel.ranges.length; i2++) {
- if (!primary && i2 == doc.sel.primIndex) {
- continue;
- }
- var range2 = doc.sel.ranges[i2];
- if (range2.from().line >= cm.display.viewTo || range2.to().line < cm.display.viewFrom) {
- continue;
- }
- var collapsed = range2.empty();
- if (customCursor) {
- var head = customCursor(cm, range2);
- if (head) {
- drawSelectionCursor(cm, head, curFragment);
- }
- } else if (collapsed || cm.options.showCursorWhenSelecting) {
- drawSelectionCursor(cm, range2.head, curFragment);
- }
- if (!collapsed) {
- drawSelectionRange(cm, range2, selFragment);
- }
- }
- return result;
- }
- function drawSelectionCursor(cm, head, output) {
- var pos = cursorCoords(cm, head, "div", null, null, !cm.options.singleCursorHeightPerLine);
- var cursor = output.appendChild(elt("div", " ", "CodeMirror-cursor"));
- cursor.style.left = pos.left + "px";
- cursor.style.top = pos.top + "px";
- cursor.style.height = Math.max(0, pos.bottom - pos.top) * cm.options.cursorHeight + "px";
- if (/\bcm-fat-cursor\b/.test(cm.getWrapperElement().className)) {
- var charPos = charCoords(cm, head, "div", null, null);
- var width = charPos.right - charPos.left;
- cursor.style.width = (width > 0 ? width : cm.defaultCharWidth()) + "px";
- }
- if (pos.other) {
- var otherCursor = output.appendChild(elt("div", " ", "CodeMirror-cursor CodeMirror-secondarycursor"));
- otherCursor.style.display = "";
- otherCursor.style.left = pos.other.left + "px";
- otherCursor.style.top = pos.other.top + "px";
- otherCursor.style.height = (pos.other.bottom - pos.other.top) * 0.85 + "px";
- }
- }
- function cmpCoords(a, b) {
- return a.top - b.top || a.left - b.left;
- }
- function drawSelectionRange(cm, range2, output) {
- var display = cm.display,
- doc = cm.doc;
- var fragment = document.createDocumentFragment();
- var padding = paddingH(cm.display),
- leftSide = padding.left;
- var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right;
- var docLTR = doc.direction == "ltr";
- function add(left, top, width, bottom) {
- if (top < 0) {
- top = 0;
- }
- top = Math.round(top);
- bottom = Math.round(bottom);
- fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left + "px;\n top: " + top + "px; width: " + (width == null ? rightSide - left : width) + "px;\n height: " + (bottom - top) + "px"));
- }
- function drawForLine(line, fromArg, toArg) {
- var lineObj = getLine(doc, line);
- var lineLen = lineObj.text.length;
- var start, end;
- function coords(ch, bias) {
- return charCoords(cm, Pos(line, ch), "div", lineObj, bias);
- }
- function wrapX(pos, dir, side) {
- var extent = wrappedLineExtentChar(cm, lineObj, null, pos);
- var prop2 = dir == "ltr" == (side == "after") ? "left" : "right";
- var ch = side == "after" ? extent.begin : extent.end - (/\s/.test(lineObj.text.charAt(extent.end - 1)) ? 2 : 1);
- return coords(ch, prop2)[prop2];
- }
- var order = getOrder(lineObj, doc.direction);
- iterateBidiSections(order, fromArg || 0, toArg == null ? lineLen : toArg, function (from, to, dir, i2) {
- var ltr = dir == "ltr";
- var fromPos = coords(from, ltr ? "left" : "right");
- var toPos = coords(to - 1, ltr ? "right" : "left");
- var openStart = fromArg == null && from == 0,
- openEnd = toArg == null && to == lineLen;
- var first = i2 == 0,
- last = !order || i2 == order.length - 1;
- if (toPos.top - fromPos.top <= 3) {
- var openLeft = (docLTR ? openStart : openEnd) && first;
- var openRight = (docLTR ? openEnd : openStart) && last;
- var left = openLeft ? leftSide : (ltr ? fromPos : toPos).left;
- var right = openRight ? rightSide : (ltr ? toPos : fromPos).right;
- add(left, fromPos.top, right - left, fromPos.bottom);
- } else {
- var topLeft, topRight, botLeft, botRight;
- if (ltr) {
- topLeft = docLTR && openStart && first ? leftSide : fromPos.left;
- topRight = docLTR ? rightSide : wrapX(from, dir, "before");
- botLeft = docLTR ? leftSide : wrapX(to, dir, "after");
- botRight = docLTR && openEnd && last ? rightSide : toPos.right;
- } else {
- topLeft = !docLTR ? leftSide : wrapX(from, dir, "before");
- topRight = !docLTR && openStart && first ? rightSide : fromPos.right;
- botLeft = !docLTR && openEnd && last ? leftSide : toPos.left;
- botRight = !docLTR ? rightSide : wrapX(to, dir, "after");
- }
- add(topLeft, fromPos.top, topRight - topLeft, fromPos.bottom);
- if (fromPos.bottom < toPos.top) {
- add(leftSide, fromPos.bottom, null, toPos.top);
- }
- add(botLeft, toPos.top, botRight - botLeft, toPos.bottom);
- }
- if (!start || cmpCoords(fromPos, start) < 0) {
- start = fromPos;
- }
- if (cmpCoords(toPos, start) < 0) {
- start = toPos;
- }
- if (!end || cmpCoords(fromPos, end) < 0) {
- end = fromPos;
- }
- if (cmpCoords(toPos, end) < 0) {
- end = toPos;
- }
- });
- return {
- start,
- end
- };
- }
- var sFrom = range2.from(),
- sTo = range2.to();
- if (sFrom.line == sTo.line) {
- drawForLine(sFrom.line, sFrom.ch, sTo.ch);
- } else {
- var fromLine = getLine(doc, sFrom.line),
- toLine = getLine(doc, sTo.line);
- var singleVLine = visualLine(fromLine) == visualLine(toLine);
- var leftEnd = drawForLine(sFrom.line, sFrom.ch, singleVLine ? fromLine.text.length + 1 : null).end;
- var rightStart = drawForLine(sTo.line, singleVLine ? 0 : null, sTo.ch).start;
- if (singleVLine) {
- if (leftEnd.top < rightStart.top - 2) {
- add(leftEnd.right, leftEnd.top, null, leftEnd.bottom);
- add(leftSide, rightStart.top, rightStart.left, rightStart.bottom);
- } else {
- add(leftEnd.right, leftEnd.top, rightStart.left - leftEnd.right, leftEnd.bottom);
- }
- }
- if (leftEnd.bottom < rightStart.top) {
- add(leftSide, leftEnd.bottom, null, rightStart.top);
- }
- }
- output.appendChild(fragment);
- }
- function restartBlink(cm) {
- if (!cm.state.focused) {
- return;
- }
- var display = cm.display;
- clearInterval(display.blinker);
- var on2 = true;
- display.cursorDiv.style.visibility = "";
- if (cm.options.cursorBlinkRate > 0) {
- display.blinker = setInterval(function () {
- if (!cm.hasFocus()) {
- onBlur(cm);
- }
- display.cursorDiv.style.visibility = (on2 = !on2) ? "" : "hidden";
- }, cm.options.cursorBlinkRate);
- } else if (cm.options.cursorBlinkRate < 0) {
- display.cursorDiv.style.visibility = "hidden";
- }
- }
- function ensureFocus(cm) {
- if (!cm.hasFocus()) {
- cm.display.input.focus();
- if (!cm.state.focused) {
- onFocus(cm);
- }
- }
- }
- function delayBlurEvent(cm) {
- cm.state.delayingBlurEvent = true;
- setTimeout(function () {
- if (cm.state.delayingBlurEvent) {
- cm.state.delayingBlurEvent = false;
- if (cm.state.focused) {
- onBlur(cm);
- }
- }
- }, 100);
- }
- function onFocus(cm, e) {
- if (cm.state.delayingBlurEvent && !cm.state.draggingText) {
- cm.state.delayingBlurEvent = false;
- }
- if (cm.options.readOnly == "nocursor") {
- return;
- }
- if (!cm.state.focused) {
- signal(cm, "focus", cm, e);
- cm.state.focused = true;
- addClass(cm.display.wrapper, "CodeMirror-focused");
- if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) {
- cm.display.input.reset();
- if (webkit) {
- setTimeout(function () {
- return cm.display.input.reset(true);
- }, 20);
- }
- }
- cm.display.input.receivedFocus();
- }
- restartBlink(cm);
- }
- function onBlur(cm, e) {
- if (cm.state.delayingBlurEvent) {
- return;
- }
- if (cm.state.focused) {
- signal(cm, "blur", cm, e);
- cm.state.focused = false;
- rmClass(cm.display.wrapper, "CodeMirror-focused");
- }
- clearInterval(cm.display.blinker);
- setTimeout(function () {
- if (!cm.state.focused) {
- cm.display.shift = false;
- }
- }, 150);
- }
- function updateHeightsInViewport(cm) {
- var display = cm.display;
- var prevBottom = display.lineDiv.offsetTop;
- var viewTop = Math.max(0, display.scroller.getBoundingClientRect().top);
- var oldHeight = display.lineDiv.getBoundingClientRect().top;
- var mustScroll = 0;
- for (var i2 = 0; i2 < display.view.length; i2++) {
- var cur = display.view[i2],
- wrapping = cm.options.lineWrapping;
- var height = void 0,
- width = 0;
- if (cur.hidden) {
- continue;
- }
- oldHeight += cur.line.height;
- if (ie && ie_version < 8) {
- var bot = cur.node.offsetTop + cur.node.offsetHeight;
- height = bot - prevBottom;
- prevBottom = bot;
- } else {
- var box = cur.node.getBoundingClientRect();
- height = box.bottom - box.top;
- if (!wrapping && cur.text.firstChild) {
- width = cur.text.firstChild.getBoundingClientRect().right - box.left - 1;
- }
- }
- var diff = cur.line.height - height;
- if (diff > 5e-3 || diff < -5e-3) {
- if (oldHeight < viewTop) {
- mustScroll -= diff;
- }
- updateLineHeight(cur.line, height);
- updateWidgetHeight(cur.line);
- if (cur.rest) {
- for (var j = 0; j < cur.rest.length; j++) {
- updateWidgetHeight(cur.rest[j]);
- }
- }
- }
- if (width > cm.display.sizerWidth) {
- var chWidth = Math.ceil(width / charWidth(cm.display));
- if (chWidth > cm.display.maxLineLength) {
- cm.display.maxLineLength = chWidth;
- cm.display.maxLine = cur.line;
- cm.display.maxLineChanged = true;
- }
- }
- }
- if (Math.abs(mustScroll) > 2) {
- display.scroller.scrollTop += mustScroll;
- }
- }
- function updateWidgetHeight(line) {
- if (line.widgets) {
- for (var i2 = 0; i2 < line.widgets.length; ++i2) {
- var w = line.widgets[i2],
- parent = w.node.parentNode;
- if (parent) {
- w.height = parent.offsetHeight;
- }
- }
- }
- }
- function visibleLines(display, doc, viewport) {
- var top = viewport && viewport.top != null ? Math.max(0, viewport.top) : display.scroller.scrollTop;
- top = Math.floor(top - paddingTop(display));
- var bottom = viewport && viewport.bottom != null ? viewport.bottom : top + display.wrapper.clientHeight;
- var from = lineAtHeight(doc, top),
- to = lineAtHeight(doc, bottom);
- if (viewport && viewport.ensure) {
- var ensureFrom = viewport.ensure.from.line,
- ensureTo = viewport.ensure.to.line;
- if (ensureFrom < from) {
- from = ensureFrom;
- to = lineAtHeight(doc, heightAtLine(getLine(doc, ensureFrom)) + display.wrapper.clientHeight);
- } else if (Math.min(ensureTo, doc.lastLine()) >= to) {
- from = lineAtHeight(doc, heightAtLine(getLine(doc, ensureTo)) - display.wrapper.clientHeight);
- to = ensureTo;
- }
- }
- return {
- from,
- to: Math.max(to, from + 1)
- };
- }
- function maybeScrollWindow(cm, rect) {
- if (signalDOMEvent(cm, "scrollCursorIntoView")) {
- return;
- }
- var display = cm.display,
- box = display.sizer.getBoundingClientRect(),
- doScroll = null;
- if (rect.top + box.top < 0) {
- doScroll = true;
- } else if (rect.bottom + box.top > (window.innerHeight || document.documentElement.clientHeight)) {
- doScroll = false;
- }
- if (doScroll != null && !phantom) {
- var scrollNode = elt("div", "", null, "position: absolute;\n top: " + (rect.top - display.viewOffset - paddingTop(cm.display)) + "px;\n height: " + (rect.bottom - rect.top + scrollGap(cm) + display.barHeight) + "px;\n left: " + rect.left + "px; width: " + Math.max(2, rect.right - rect.left) + "px;");
- cm.display.lineSpace.appendChild(scrollNode);
- scrollNode.scrollIntoView(doScroll);
- cm.display.lineSpace.removeChild(scrollNode);
- }
- }
- function scrollPosIntoView(cm, pos, end, margin) {
- if (margin == null) {
- margin = 0;
- }
- var rect;
- if (!cm.options.lineWrapping && pos == end) {
- end = pos.sticky == "before" ? Pos(pos.line, pos.ch + 1, "before") : pos;
- pos = pos.ch ? Pos(pos.line, pos.sticky == "before" ? pos.ch - 1 : pos.ch, "after") : pos;
- }
- for (var limit = 0; limit < 5; limit++) {
- var changed = false;
- var coords = cursorCoords(cm, pos);
- var endCoords = !end || end == pos ? coords : cursorCoords(cm, end);
- rect = {
- left: Math.min(coords.left, endCoords.left),
- top: Math.min(coords.top, endCoords.top) - margin,
- right: Math.max(coords.left, endCoords.left),
- bottom: Math.max(coords.bottom, endCoords.bottom) + margin
- };
- var scrollPos = calculateScrollPos(cm, rect);
- var startTop = cm.doc.scrollTop,
- startLeft = cm.doc.scrollLeft;
- if (scrollPos.scrollTop != null) {
- updateScrollTop(cm, scrollPos.scrollTop);
- if (Math.abs(cm.doc.scrollTop - startTop) > 1) {
- changed = true;
- }
- }
- if (scrollPos.scrollLeft != null) {
- setScrollLeft(cm, scrollPos.scrollLeft);
- if (Math.abs(cm.doc.scrollLeft - startLeft) > 1) {
- changed = true;
- }
- }
- if (!changed) {
- break;
- }
- }
- return rect;
- }
- function scrollIntoView(cm, rect) {
- var scrollPos = calculateScrollPos(cm, rect);
- if (scrollPos.scrollTop != null) {
- updateScrollTop(cm, scrollPos.scrollTop);
- }
- if (scrollPos.scrollLeft != null) {
- setScrollLeft(cm, scrollPos.scrollLeft);
- }
- }
- function calculateScrollPos(cm, rect) {
- var display = cm.display,
- snapMargin = textHeight(cm.display);
- if (rect.top < 0) {
- rect.top = 0;
- }
- var screentop = cm.curOp && cm.curOp.scrollTop != null ? cm.curOp.scrollTop : display.scroller.scrollTop;
- var screen2 = displayHeight(cm),
- result = {};
- if (rect.bottom - rect.top > screen2) {
- rect.bottom = rect.top + screen2;
- }
- var docBottom = cm.doc.height + paddingVert(display);
- var atTop = rect.top < snapMargin,
- atBottom = rect.bottom > docBottom - snapMargin;
- if (rect.top < screentop) {
- result.scrollTop = atTop ? 0 : rect.top;
- } else if (rect.bottom > screentop + screen2) {
- var newTop = Math.min(rect.top, (atBottom ? docBottom : rect.bottom) - screen2);
- if (newTop != screentop) {
- result.scrollTop = newTop;
- }
- }
- var gutterSpace = cm.options.fixedGutter ? 0 : display.gutters.offsetWidth;
- var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft - gutterSpace;
- var screenw = displayWidth(cm) - display.gutters.offsetWidth;
- var tooWide = rect.right - rect.left > screenw;
- if (tooWide) {
- rect.right = rect.left + screenw;
- }
- if (rect.left < 10) {
- result.scrollLeft = 0;
- } else if (rect.left < screenleft) {
- result.scrollLeft = Math.max(0, rect.left + gutterSpace - (tooWide ? 0 : 10));
- } else if (rect.right > screenw + screenleft - 3) {
- result.scrollLeft = rect.right + (tooWide ? 0 : 10) - screenw;
- }
- return result;
- }
- function addToScrollTop(cm, top) {
- if (top == null) {
- return;
- }
- resolveScrollToPos(cm);
- cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;
- }
- function ensureCursorVisible(cm) {
- resolveScrollToPos(cm);
- var cur = cm.getCursor();
- cm.curOp.scrollToPos = {
- from: cur,
- to: cur,
- margin: cm.options.cursorScrollMargin
- };
- }
- function scrollToCoords(cm, x, y) {
- if (x != null || y != null) {
- resolveScrollToPos(cm);
- }
- if (x != null) {
- cm.curOp.scrollLeft = x;
- }
- if (y != null) {
- cm.curOp.scrollTop = y;
- }
- }
- function scrollToRange(cm, range2) {
- resolveScrollToPos(cm);
- cm.curOp.scrollToPos = range2;
- }
- function resolveScrollToPos(cm) {
- var range2 = cm.curOp.scrollToPos;
- if (range2) {
- cm.curOp.scrollToPos = null;
- var from = estimateCoords(cm, range2.from),
- to = estimateCoords(cm, range2.to);
- scrollToCoordsRange(cm, from, to, range2.margin);
- }
- }
- function scrollToCoordsRange(cm, from, to, margin) {
- var sPos = calculateScrollPos(cm, {
- left: Math.min(from.left, to.left),
- top: Math.min(from.top, to.top) - margin,
- right: Math.max(from.right, to.right),
- bottom: Math.max(from.bottom, to.bottom) + margin
- });
- scrollToCoords(cm, sPos.scrollLeft, sPos.scrollTop);
- }
- function updateScrollTop(cm, val) {
- if (Math.abs(cm.doc.scrollTop - val) < 2) {
- return;
- }
- if (!gecko) {
- updateDisplaySimple(cm, {
- top: val
- });
- }
- setScrollTop(cm, val, true);
- if (gecko) {
- updateDisplaySimple(cm);
- }
- startWorker(cm, 100);
- }
- function setScrollTop(cm, val, forceScroll) {
- val = Math.max(0, Math.min(cm.display.scroller.scrollHeight - cm.display.scroller.clientHeight, val));
- if (cm.display.scroller.scrollTop == val && !forceScroll) {
- return;
- }
- cm.doc.scrollTop = val;
- cm.display.scrollbars.setScrollTop(val);
- if (cm.display.scroller.scrollTop != val) {
- cm.display.scroller.scrollTop = val;
- }
- }
- function setScrollLeft(cm, val, isScroller, forceScroll) {
- val = Math.max(0, Math.min(val, cm.display.scroller.scrollWidth - cm.display.scroller.clientWidth));
- if ((isScroller ? val == cm.doc.scrollLeft : Math.abs(cm.doc.scrollLeft - val) < 2) && !forceScroll) {
- return;
- }
- cm.doc.scrollLeft = val;
- alignHorizontally(cm);
- if (cm.display.scroller.scrollLeft != val) {
- cm.display.scroller.scrollLeft = val;
- }
- cm.display.scrollbars.setScrollLeft(val);
- }
- function measureForScrollbars(cm) {
- var d = cm.display,
- gutterW = d.gutters.offsetWidth;
- var docH = Math.round(cm.doc.height + paddingVert(cm.display));
- return {
- clientHeight: d.scroller.clientHeight,
- viewHeight: d.wrapper.clientHeight,
- scrollWidth: d.scroller.scrollWidth,
- clientWidth: d.scroller.clientWidth,
- viewWidth: d.wrapper.clientWidth,
- barLeft: cm.options.fixedGutter ? gutterW : 0,
- docHeight: docH,
- scrollHeight: docH + scrollGap(cm) + d.barHeight,
- nativeBarWidth: d.nativeBarWidth,
- gutterWidth: gutterW
- };
- }
- var NativeScrollbars = function (place, scroll, cm) {
- this.cm = cm;
- var vert = this.vert = elt("div", [elt("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar");
- var horiz = this.horiz = elt("div", [elt("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar");
- vert.tabIndex = horiz.tabIndex = -1;
- place(vert);
- place(horiz);
- on(vert, "scroll", function () {
- if (vert.clientHeight) {
- scroll(vert.scrollTop, "vertical");
- }
- });
- on(horiz, "scroll", function () {
- if (horiz.clientWidth) {
- scroll(horiz.scrollLeft, "horizontal");
- }
- });
- this.checkedZeroWidth = false;
- if (ie && ie_version < 8) {
- this.horiz.style.minHeight = this.vert.style.minWidth = "18px";
- }
- };
- NativeScrollbars.prototype.update = function (measure) {
- var needsH = measure.scrollWidth > measure.clientWidth + 1;
- var needsV = measure.scrollHeight > measure.clientHeight + 1;
- var sWidth = measure.nativeBarWidth;
- if (needsV) {
- this.vert.style.display = "block";
- this.vert.style.bottom = needsH ? sWidth + "px" : "0";
- var totalHeight = measure.viewHeight - (needsH ? sWidth : 0);
- this.vert.firstChild.style.height = Math.max(0, measure.scrollHeight - measure.clientHeight + totalHeight) + "px";
- } else {
- this.vert.scrollTop = 0;
- this.vert.style.display = "";
- this.vert.firstChild.style.height = "0";
- }
- if (needsH) {
- this.horiz.style.display = "block";
- this.horiz.style.right = needsV ? sWidth + "px" : "0";
- this.horiz.style.left = measure.barLeft + "px";
- var totalWidth = measure.viewWidth - measure.barLeft - (needsV ? sWidth : 0);
- this.horiz.firstChild.style.width = Math.max(0, measure.scrollWidth - measure.clientWidth + totalWidth) + "px";
- } else {
- this.horiz.style.display = "";
- this.horiz.firstChild.style.width = "0";
- }
- if (!this.checkedZeroWidth && measure.clientHeight > 0) {
- if (sWidth == 0) {
- this.zeroWidthHack();
- }
- this.checkedZeroWidth = true;
- }
- return {
- right: needsV ? sWidth : 0,
- bottom: needsH ? sWidth : 0
- };
- };
- NativeScrollbars.prototype.setScrollLeft = function (pos) {
- if (this.horiz.scrollLeft != pos) {
- this.horiz.scrollLeft = pos;
- }
- if (this.disableHoriz) {
- this.enableZeroWidthBar(this.horiz, this.disableHoriz, "horiz");
- }
- };
- NativeScrollbars.prototype.setScrollTop = function (pos) {
- if (this.vert.scrollTop != pos) {
- this.vert.scrollTop = pos;
- }
- if (this.disableVert) {
- this.enableZeroWidthBar(this.vert, this.disableVert, "vert");
- }
- };
- NativeScrollbars.prototype.zeroWidthHack = function () {
- var w = mac && !mac_geMountainLion ? "12px" : "18px";
- this.horiz.style.height = this.vert.style.width = w;
- this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none";
- this.disableHoriz = new Delayed();
- this.disableVert = new Delayed();
- };
- NativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay, type) {
- bar.style.pointerEvents = "auto";
- function maybeDisable() {
- var box = bar.getBoundingClientRect();
- var elt2 = type == "vert" ? document.elementFromPoint(box.right - 1, (box.top + box.bottom) / 2) : document.elementFromPoint((box.right + box.left) / 2, box.bottom - 1);
- if (elt2 != bar) {
- bar.style.pointerEvents = "none";
- } else {
- delay.set(1e3, maybeDisable);
- }
- }
- delay.set(1e3, maybeDisable);
- };
- NativeScrollbars.prototype.clear = function () {
- var parent = this.horiz.parentNode;
- parent.removeChild(this.horiz);
- parent.removeChild(this.vert);
- };
- var NullScrollbars = function () {};
- NullScrollbars.prototype.update = function () {
- return {
- bottom: 0,
- right: 0
- };
- };
- NullScrollbars.prototype.setScrollLeft = function () {};
- NullScrollbars.prototype.setScrollTop = function () {};
- NullScrollbars.prototype.clear = function () {};
- function updateScrollbars(cm, measure) {
- if (!measure) {
- measure = measureForScrollbars(cm);
- }
- var startWidth = cm.display.barWidth,
- startHeight = cm.display.barHeight;
- updateScrollbarsInner(cm, measure);
- for (var i2 = 0; i2 < 4 && startWidth != cm.display.barWidth || startHeight != cm.display.barHeight; i2++) {
- if (startWidth != cm.display.barWidth && cm.options.lineWrapping) {
- updateHeightsInViewport(cm);
- }
- updateScrollbarsInner(cm, measureForScrollbars(cm));
- startWidth = cm.display.barWidth;
- startHeight = cm.display.barHeight;
- }
- }
- function updateScrollbarsInner(cm, measure) {
- var d = cm.display;
- var sizes = d.scrollbars.update(measure);
- d.sizer.style.paddingRight = (d.barWidth = sizes.right) + "px";
- d.sizer.style.paddingBottom = (d.barHeight = sizes.bottom) + "px";
- d.heightForcer.style.borderBottom = sizes.bottom + "px solid transparent";
- if (sizes.right && sizes.bottom) {
- d.scrollbarFiller.style.display = "block";
- d.scrollbarFiller.style.height = sizes.bottom + "px";
- d.scrollbarFiller.style.width = sizes.right + "px";
- } else {
- d.scrollbarFiller.style.display = "";
- }
- if (sizes.bottom && cm.options.coverGutterNextToScrollbar && cm.options.fixedGutter) {
- d.gutterFiller.style.display = "block";
- d.gutterFiller.style.height = sizes.bottom + "px";
- d.gutterFiller.style.width = measure.gutterWidth + "px";
- } else {
- d.gutterFiller.style.display = "";
- }
- }
- var scrollbarModel = {
- "native": NativeScrollbars,
- "null": NullScrollbars
- };
- function initScrollbars(cm) {
- if (cm.display.scrollbars) {
- cm.display.scrollbars.clear();
- if (cm.display.scrollbars.addClass) {
- rmClass(cm.display.wrapper, cm.display.scrollbars.addClass);
- }
- }
- cm.display.scrollbars = new scrollbarModel[cm.options.scrollbarStyle](function (node) {
- cm.display.wrapper.insertBefore(node, cm.display.scrollbarFiller);
- on(node, "mousedown", function () {
- if (cm.state.focused) {
- setTimeout(function () {
- return cm.display.input.focus();
- }, 0);
- }
- });
- node.setAttribute("cm-not-content", "true");
- }, function (pos, axis) {
- if (axis == "horizontal") {
- setScrollLeft(cm, pos);
- } else {
- updateScrollTop(cm, pos);
- }
- }, cm);
- if (cm.display.scrollbars.addClass) {
- addClass(cm.display.wrapper, cm.display.scrollbars.addClass);
- }
- }
- var nextOpId = 0;
- function startOperation(cm) {
- cm.curOp = {
- cm,
- viewChanged: false,
- // Flag that indicates that lines might need to be redrawn
- startHeight: cm.doc.height,
- // Used to detect need to update scrollbar
- forceUpdate: false,
- // Used to force a redraw
- updateInput: 0,
- // Whether to reset the input textarea
- typing: false,
- // Whether this reset should be careful to leave existing text (for compositing)
- changeObjs: null,
- // Accumulated changes, for firing change events
- cursorActivityHandlers: null,
- // Set of handlers to fire cursorActivity on
- cursorActivityCalled: 0,
- // Tracks which cursorActivity handlers have been called already
- selectionChanged: false,
- // Whether the selection needs to be redrawn
- updateMaxLine: false,
- // Set when the widest line needs to be determined anew
- scrollLeft: null,
- scrollTop: null,
- // Intermediate scroll position, not pushed to DOM yet
- scrollToPos: null,
- // Used to scroll to a specific position
- focus: false,
- id: ++nextOpId,
- // Unique ID
- markArrays: null
- // Used by addMarkedSpan
- };
- pushOperation(cm.curOp);
- }
- function endOperation(cm) {
- var op = cm.curOp;
- if (op) {
- finishOperation(op, function (group) {
- for (var i2 = 0; i2 < group.ops.length; i2++) {
- group.ops[i2].cm.curOp = null;
- }
- endOperations(group);
- });
- }
- }
- function endOperations(group) {
- var ops = group.ops;
- for (var i2 = 0; i2 < ops.length; i2++) {
- endOperation_R1(ops[i2]);
- }
- for (var i$12 = 0; i$12 < ops.length; i$12++) {
- endOperation_W1(ops[i$12]);
- }
- for (var i$22 = 0; i$22 < ops.length; i$22++) {
- endOperation_R2(ops[i$22]);
- }
- for (var i$3 = 0; i$3 < ops.length; i$3++) {
- endOperation_W2(ops[i$3]);
- }
- for (var i$4 = 0; i$4 < ops.length; i$4++) {
- endOperation_finish(ops[i$4]);
- }
- }
- function endOperation_R1(op) {
- var cm = op.cm,
- display = cm.display;
- maybeClipScrollbars(cm);
- if (op.updateMaxLine) {
- findMaxLine(cm);
- }
- op.mustUpdate = op.viewChanged || op.forceUpdate || op.scrollTop != null || op.scrollToPos && (op.scrollToPos.from.line < display.viewFrom || op.scrollToPos.to.line >= display.viewTo) || display.maxLineChanged && cm.options.lineWrapping;
- op.update = op.mustUpdate && new DisplayUpdate(cm, op.mustUpdate && {
- top: op.scrollTop,
- ensure: op.scrollToPos
- }, op.forceUpdate);
- }
- function endOperation_W1(op) {
- op.updatedDisplay = op.mustUpdate && updateDisplayIfNeeded(op.cm, op.update);
- }
- function endOperation_R2(op) {
- var cm = op.cm,
- display = cm.display;
- if (op.updatedDisplay) {
- updateHeightsInViewport(cm);
- }
- op.barMeasure = measureForScrollbars(cm);
- if (display.maxLineChanged && !cm.options.lineWrapping) {
- op.adjustWidthTo = measureChar(cm, display.maxLine, display.maxLine.text.length).left + 3;
- cm.display.sizerWidth = op.adjustWidthTo;
- op.barMeasure.scrollWidth = Math.max(display.scroller.clientWidth, display.sizer.offsetLeft + op.adjustWidthTo + scrollGap(cm) + cm.display.barWidth);
- op.maxScrollLeft = Math.max(0, display.sizer.offsetLeft + op.adjustWidthTo - displayWidth(cm));
- }
- if (op.updatedDisplay || op.selectionChanged) {
- op.preparedSelection = display.input.prepareSelection();
- }
- }
- function endOperation_W2(op) {
- var cm = op.cm;
- if (op.adjustWidthTo != null) {
- cm.display.sizer.style.minWidth = op.adjustWidthTo + "px";
- if (op.maxScrollLeft < cm.doc.scrollLeft) {
- setScrollLeft(cm, Math.min(cm.display.scroller.scrollLeft, op.maxScrollLeft), true);
- }
- cm.display.maxLineChanged = false;
- }
- var takeFocus = op.focus && op.focus == activeElt();
- if (op.preparedSelection) {
- cm.display.input.showSelection(op.preparedSelection, takeFocus);
- }
- if (op.updatedDisplay || op.startHeight != cm.doc.height) {
- updateScrollbars(cm, op.barMeasure);
- }
- if (op.updatedDisplay) {
- setDocumentHeight(cm, op.barMeasure);
- }
- if (op.selectionChanged) {
- restartBlink(cm);
- }
- if (cm.state.focused && op.updateInput) {
- cm.display.input.reset(op.typing);
- }
- if (takeFocus) {
- ensureFocus(op.cm);
- }
- }
- function endOperation_finish(op) {
- var cm = op.cm,
- display = cm.display,
- doc = cm.doc;
- if (op.updatedDisplay) {
- postUpdateDisplay(cm, op.update);
- }
- if (display.wheelStartX != null && (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos)) {
- display.wheelStartX = display.wheelStartY = null;
- }
- if (op.scrollTop != null) {
- setScrollTop(cm, op.scrollTop, op.forceScroll);
- }
- if (op.scrollLeft != null) {
- setScrollLeft(cm, op.scrollLeft, true, true);
- }
- if (op.scrollToPos) {
- var rect = scrollPosIntoView(cm, clipPos(doc, op.scrollToPos.from), clipPos(doc, op.scrollToPos.to), op.scrollToPos.margin);
- maybeScrollWindow(cm, rect);
- }
- var hidden = op.maybeHiddenMarkers,
- unhidden = op.maybeUnhiddenMarkers;
- if (hidden) {
- for (var i2 = 0; i2 < hidden.length; ++i2) {
- if (!hidden[i2].lines.length) {
- signal(hidden[i2], "hide");
- }
- }
- }
- if (unhidden) {
- for (var i$12 = 0; i$12 < unhidden.length; ++i$12) {
- if (unhidden[i$12].lines.length) {
- signal(unhidden[i$12], "unhide");
- }
- }
- }
- if (display.wrapper.offsetHeight) {
- doc.scrollTop = cm.display.scroller.scrollTop;
- }
- if (op.changeObjs) {
- signal(cm, "changes", cm, op.changeObjs);
- }
- if (op.update) {
- op.update.finish();
- }
- }
- function runInOp(cm, f) {
- if (cm.curOp) {
- return f();
- }
- startOperation(cm);
- try {
- return f();
- } finally {
- endOperation(cm);
- }
- }
- function operation(cm, f) {
- return function () {
- if (cm.curOp) {
- return f.apply(cm, arguments);
- }
- startOperation(cm);
- try {
- return f.apply(cm, arguments);
- } finally {
- endOperation(cm);
- }
- };
- }
- function methodOp(f) {
- return function () {
- if (this.curOp) {
- return f.apply(this, arguments);
- }
- startOperation(this);
- try {
- return f.apply(this, arguments);
- } finally {
- endOperation(this);
- }
- };
- }
- function docMethodOp(f) {
- return function () {
- var cm = this.cm;
- if (!cm || cm.curOp) {
- return f.apply(this, arguments);
- }
- startOperation(cm);
- try {
- return f.apply(this, arguments);
- } finally {
- endOperation(cm);
- }
- };
- }
- function startWorker(cm, time) {
- if (cm.doc.highlightFrontier < cm.display.viewTo) {
- cm.state.highlight.set(time, bind(highlightWorker, cm));
- }
- }
- function highlightWorker(cm) {
- var doc = cm.doc;
- if (doc.highlightFrontier >= cm.display.viewTo) {
- return;
- }
- var end = + /* @__PURE__ */new Date() + cm.options.workTime;
- var context = getContextBefore(cm, doc.highlightFrontier);
- var changedLines = [];
- doc.iter(context.line, Math.min(doc.first + doc.size, cm.display.viewTo + 500), function (line) {
- if (context.line >= cm.display.viewFrom) {
- var oldStyles = line.styles;
- var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null;
- var highlighted = highlightLine(cm, line, context, true);
- if (resetState) {
- context.state = resetState;
- }
- line.styles = highlighted.styles;
- var oldCls = line.styleClasses,
- newCls = highlighted.classes;
- if (newCls) {
- line.styleClasses = newCls;
- } else if (oldCls) {
- line.styleClasses = null;
- }
- var ischange = !oldStyles || oldStyles.length != line.styles.length || oldCls != newCls && (!oldCls || !newCls || oldCls.bgClass != newCls.bgClass || oldCls.textClass != newCls.textClass);
- for (var i2 = 0; !ischange && i2 < oldStyles.length; ++i2) {
- ischange = oldStyles[i2] != line.styles[i2];
- }
- if (ischange) {
- changedLines.push(context.line);
- }
- line.stateAfter = context.save();
- context.nextLine();
- } else {
- if (line.text.length <= cm.options.maxHighlightLength) {
- processLine(cm, line.text, context);
- }
- line.stateAfter = context.line % 5 == 0 ? context.save() : null;
- context.nextLine();
- }
- if (+ /* @__PURE__ */new Date() > end) {
- startWorker(cm, cm.options.workDelay);
- return true;
- }
- });
- doc.highlightFrontier = context.line;
- doc.modeFrontier = Math.max(doc.modeFrontier, context.line);
- if (changedLines.length) {
- runInOp(cm, function () {
- for (var i2 = 0; i2 < changedLines.length; i2++) {
- regLineChange(cm, changedLines[i2], "text");
- }
- });
- }
- }
- var DisplayUpdate = function (cm, viewport, force) {
- var display = cm.display;
- this.viewport = viewport;
- this.visible = visibleLines(display, cm.doc, viewport);
- this.editorIsHidden = !display.wrapper.offsetWidth;
- this.wrapperHeight = display.wrapper.clientHeight;
- this.wrapperWidth = display.wrapper.clientWidth;
- this.oldDisplayWidth = displayWidth(cm);
- this.force = force;
- this.dims = getDimensions(cm);
- this.events = [];
- };
- DisplayUpdate.prototype.signal = function (emitter, type) {
- if (hasHandler(emitter, type)) {
- this.events.push(arguments);
- }
- };
- DisplayUpdate.prototype.finish = function () {
- for (var i2 = 0; i2 < this.events.length; i2++) {
- signal.apply(null, this.events[i2]);
- }
- };
- function maybeClipScrollbars(cm) {
- var display = cm.display;
- if (!display.scrollbarsClipped && display.scroller.offsetWidth) {
- display.nativeBarWidth = display.scroller.offsetWidth - display.scroller.clientWidth;
- display.heightForcer.style.height = scrollGap(cm) + "px";
- display.sizer.style.marginBottom = -display.nativeBarWidth + "px";
- display.sizer.style.borderRightWidth = scrollGap(cm) + "px";
- display.scrollbarsClipped = true;
- }
- }
- function selectionSnapshot(cm) {
- if (cm.hasFocus()) {
- return null;
- }
- var active = activeElt();
- if (!active || !contains(cm.display.lineDiv, active)) {
- return null;
- }
- var result = {
- activeElt: active
- };
- if (window.getSelection) {
- var sel = window.getSelection();
- if (sel.anchorNode && sel.extend && contains(cm.display.lineDiv, sel.anchorNode)) {
- result.anchorNode = sel.anchorNode;
- result.anchorOffset = sel.anchorOffset;
- result.focusNode = sel.focusNode;
- result.focusOffset = sel.focusOffset;
- }
- }
- return result;
- }
- function restoreSelection(snapshot) {
- if (!snapshot || !snapshot.activeElt || snapshot.activeElt == activeElt()) {
- return;
- }
- snapshot.activeElt.focus();
- if (!/^(INPUT|TEXTAREA)$/.test(snapshot.activeElt.nodeName) && snapshot.anchorNode && contains(document.body, snapshot.anchorNode) && contains(document.body, snapshot.focusNode)) {
- var sel = window.getSelection(),
- range2 = document.createRange();
- range2.setEnd(snapshot.anchorNode, snapshot.anchorOffset);
- range2.collapse(false);
- sel.removeAllRanges();
- sel.addRange(range2);
- sel.extend(snapshot.focusNode, snapshot.focusOffset);
- }
- }
- function updateDisplayIfNeeded(cm, update) {
- var display = cm.display,
- doc = cm.doc;
- if (update.editorIsHidden) {
- resetView(cm);
- return false;
- }
- if (!update.force && update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo && (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) && display.renderedView == display.view && countDirtyView(cm) == 0) {
- return false;
- }
- if (maybeUpdateLineNumberWidth(cm)) {
- resetView(cm);
- update.dims = getDimensions(cm);
- }
- var end = doc.first + doc.size;
- var from = Math.max(update.visible.from - cm.options.viewportMargin, doc.first);
- var to = Math.min(end, update.visible.to + cm.options.viewportMargin);
- if (display.viewFrom < from && from - display.viewFrom < 20) {
- from = Math.max(doc.first, display.viewFrom);
- }
- if (display.viewTo > to && display.viewTo - to < 20) {
- to = Math.min(end, display.viewTo);
- }
- if (sawCollapsedSpans) {
- from = visualLineNo(cm.doc, from);
- to = visualLineEndNo(cm.doc, to);
- }
- var different = from != display.viewFrom || to != display.viewTo || display.lastWrapHeight != update.wrapperHeight || display.lastWrapWidth != update.wrapperWidth;
- adjustView(cm, from, to);
- display.viewOffset = heightAtLine(getLine(cm.doc, display.viewFrom));
- cm.display.mover.style.top = display.viewOffset + "px";
- var toUpdate = countDirtyView(cm);
- if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view && (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo)) {
- return false;
- }
- var selSnapshot = selectionSnapshot(cm);
- if (toUpdate > 4) {
- display.lineDiv.style.display = "none";
- }
- patchDisplay(cm, display.updateLineNumbers, update.dims);
- if (toUpdate > 4) {
- display.lineDiv.style.display = "";
- }
- display.renderedView = display.view;
- restoreSelection(selSnapshot);
- removeChildren(display.cursorDiv);
- removeChildren(display.selectionDiv);
- display.gutters.style.height = display.sizer.style.minHeight = 0;
- if (different) {
- display.lastWrapHeight = update.wrapperHeight;
- display.lastWrapWidth = update.wrapperWidth;
- startWorker(cm, 400);
- }
- display.updateLineNumbers = null;
- return true;
- }
- function postUpdateDisplay(cm, update) {
- var viewport = update.viewport;
- for (var first = true;; first = false) {
- if (!first || !cm.options.lineWrapping || update.oldDisplayWidth == displayWidth(cm)) {
- if (viewport && viewport.top != null) {
- viewport = {
- top: Math.min(cm.doc.height + paddingVert(cm.display) - displayHeight(cm), viewport.top)
- };
- }
- update.visible = visibleLines(cm.display, cm.doc, viewport);
- if (update.visible.from >= cm.display.viewFrom && update.visible.to <= cm.display.viewTo) {
- break;
- }
- } else if (first) {
- update.visible = visibleLines(cm.display, cm.doc, viewport);
- }
- if (!updateDisplayIfNeeded(cm, update)) {
- break;
- }
- updateHeightsInViewport(cm);
- var barMeasure = measureForScrollbars(cm);
- updateSelection(cm);
- updateScrollbars(cm, barMeasure);
- setDocumentHeight(cm, barMeasure);
- update.force = false;
- }
- update.signal(cm, "update", cm);
- if (cm.display.viewFrom != cm.display.reportedViewFrom || cm.display.viewTo != cm.display.reportedViewTo) {
- update.signal(cm, "viewportChange", cm, cm.display.viewFrom, cm.display.viewTo);
- cm.display.reportedViewFrom = cm.display.viewFrom;
- cm.display.reportedViewTo = cm.display.viewTo;
- }
- }
- function updateDisplaySimple(cm, viewport) {
- var update = new DisplayUpdate(cm, viewport);
- if (updateDisplayIfNeeded(cm, update)) {
- updateHeightsInViewport(cm);
- postUpdateDisplay(cm, update);
- var barMeasure = measureForScrollbars(cm);
- updateSelection(cm);
- updateScrollbars(cm, barMeasure);
- setDocumentHeight(cm, barMeasure);
- update.finish();
- }
- }
- function patchDisplay(cm, updateNumbersFrom, dims) {
- var display = cm.display,
- lineNumbers = cm.options.lineNumbers;
- var container = display.lineDiv,
- cur = container.firstChild;
- function rm(node2) {
- var next = node2.nextSibling;
- if (webkit && mac && cm.display.currentWheelTarget == node2) {
- node2.style.display = "none";
- } else {
- node2.parentNode.removeChild(node2);
- }
- return next;
- }
- var view = display.view,
- lineN = display.viewFrom;
- for (var i2 = 0; i2 < view.length; i2++) {
- var lineView = view[i2];
- if (lineView.hidden) ;else if (!lineView.node || lineView.node.parentNode != container) {
- var node = buildLineElement(cm, lineView, lineN, dims);
- container.insertBefore(node, cur);
- } else {
- while (cur != lineView.node) {
- cur = rm(cur);
- }
- var updateNumber = lineNumbers && updateNumbersFrom != null && updateNumbersFrom <= lineN && lineView.lineNumber;
- if (lineView.changes) {
- if (indexOf(lineView.changes, "gutter") > -1) {
- updateNumber = false;
- }
- updateLineForChanges(cm, lineView, lineN, dims);
- }
- if (updateNumber) {
- removeChildren(lineView.lineNumber);
- lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));
- }
- cur = lineView.node.nextSibling;
- }
- lineN += lineView.size;
- }
- while (cur) {
- cur = rm(cur);
- }
- }
- function updateGutterSpace(display) {
- var width = display.gutters.offsetWidth;
- display.sizer.style.marginLeft = width + "px";
- signalLater(display, "gutterChanged", display);
- }
- function setDocumentHeight(cm, measure) {
- cm.display.sizer.style.minHeight = measure.docHeight + "px";
- cm.display.heightForcer.style.top = measure.docHeight + "px";
- cm.display.gutters.style.height = measure.docHeight + cm.display.barHeight + scrollGap(cm) + "px";
- }
- function alignHorizontally(cm) {
- var display = cm.display,
- view = display.view;
- if (!display.alignWidgets && (!display.gutters.firstChild || !cm.options.fixedGutter)) {
- return;
- }
- var comp = compensateForHScroll(display) - display.scroller.scrollLeft + cm.doc.scrollLeft;
- var gutterW = display.gutters.offsetWidth,
- left = comp + "px";
- for (var i2 = 0; i2 < view.length; i2++) {
- if (!view[i2].hidden) {
- if (cm.options.fixedGutter) {
- if (view[i2].gutter) {
- view[i2].gutter.style.left = left;
- }
- if (view[i2].gutterBackground) {
- view[i2].gutterBackground.style.left = left;
- }
- }
- var align = view[i2].alignable;
- if (align) {
- for (var j = 0; j < align.length; j++) {
- align[j].style.left = left;
- }
- }
- }
- }
- if (cm.options.fixedGutter) {
- display.gutters.style.left = comp + gutterW + "px";
- }
- }
- function maybeUpdateLineNumberWidth(cm) {
- if (!cm.options.lineNumbers) {
- return false;
- }
- var doc = cm.doc,
- last = lineNumberFor(cm.options, doc.first + doc.size - 1),
- display = cm.display;
- if (last.length != display.lineNumChars) {
- var test = display.measure.appendChild(elt("div", [elt("div", last)], "CodeMirror-linenumber CodeMirror-gutter-elt"));
- var innerW = test.firstChild.offsetWidth,
- padding = test.offsetWidth - innerW;
- display.lineGutter.style.width = "";
- display.lineNumInnerWidth = Math.max(innerW, display.lineGutter.offsetWidth - padding) + 1;
- display.lineNumWidth = display.lineNumInnerWidth + padding;
- display.lineNumChars = display.lineNumInnerWidth ? last.length : -1;
- display.lineGutter.style.width = display.lineNumWidth + "px";
- updateGutterSpace(cm.display);
- return true;
- }
- return false;
- }
- function getGutters(gutters, lineNumbers) {
- var result = [],
- sawLineNumbers = false;
- for (var i2 = 0; i2 < gutters.length; i2++) {
- var name = gutters[i2],
- style = null;
- if (typeof name != "string") {
- style = name.style;
- name = name.className;
- }
- if (name == "CodeMirror-linenumbers") {
- if (!lineNumbers) {
- continue;
- } else {
- sawLineNumbers = true;
- }
- }
- result.push({
- className: name,
- style
- });
- }
- if (lineNumbers && !sawLineNumbers) {
- result.push({
- className: "CodeMirror-linenumbers",
- style: null
- });
- }
- return result;
- }
- function renderGutters(display) {
- var gutters = display.gutters,
- specs = display.gutterSpecs;
- removeChildren(gutters);
- display.lineGutter = null;
- for (var i2 = 0; i2 < specs.length; ++i2) {
- var ref = specs[i2];
- var className = ref.className;
- var style = ref.style;
- var gElt = gutters.appendChild(elt("div", null, "CodeMirror-gutter " + className));
- if (style) {
- gElt.style.cssText = style;
- }
- if (className == "CodeMirror-linenumbers") {
- display.lineGutter = gElt;
- gElt.style.width = (display.lineNumWidth || 1) + "px";
- }
- }
- gutters.style.display = specs.length ? "" : "none";
- updateGutterSpace(display);
- }
- function updateGutters(cm) {
- renderGutters(cm.display);
- regChange(cm);
- alignHorizontally(cm);
- }
- function Display(place, doc, input, options) {
- var d = this;
- this.input = input;
- d.scrollbarFiller = elt("div", null, "CodeMirror-scrollbar-filler");
- d.scrollbarFiller.setAttribute("cm-not-content", "true");
- d.gutterFiller = elt("div", null, "CodeMirror-gutter-filler");
- d.gutterFiller.setAttribute("cm-not-content", "true");
- d.lineDiv = eltP("div", null, "CodeMirror-code");
- d.selectionDiv = elt("div", null, null, "position: relative; z-index: 1");
- d.cursorDiv = elt("div", null, "CodeMirror-cursors");
- d.measure = elt("div", null, "CodeMirror-measure");
- d.lineMeasure = elt("div", null, "CodeMirror-measure");
- d.lineSpace = eltP("div", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.lineDiv], null, "position: relative; outline: none");
- var lines = eltP("div", [d.lineSpace], "CodeMirror-lines");
- d.mover = elt("div", [lines], null, "position: relative");
- d.sizer = elt("div", [d.mover], "CodeMirror-sizer");
- d.sizerWidth = null;
- d.heightForcer = elt("div", null, null, "position: absolute; height: " + scrollerGap + "px; width: 1px;");
- d.gutters = elt("div", null, "CodeMirror-gutters");
- d.lineGutter = null;
- d.scroller = elt("div", [d.sizer, d.heightForcer, d.gutters], "CodeMirror-scroll");
- d.scroller.setAttribute("tabIndex", "-1");
- d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror");
- d.wrapper.setAttribute("translate", "no");
- if (ie && ie_version < 8) {
- d.gutters.style.zIndex = -1;
- d.scroller.style.paddingRight = 0;
- }
- if (!webkit && !(gecko && mobile)) {
- d.scroller.draggable = true;
- }
- if (place) {
- if (place.appendChild) {
- place.appendChild(d.wrapper);
- } else {
- place(d.wrapper);
- }
- }
- d.viewFrom = d.viewTo = doc.first;
- d.reportedViewFrom = d.reportedViewTo = doc.first;
- d.view = [];
- d.renderedView = null;
- d.externalMeasured = null;
- d.viewOffset = 0;
- d.lastWrapHeight = d.lastWrapWidth = 0;
- d.updateLineNumbers = null;
- d.nativeBarWidth = d.barHeight = d.barWidth = 0;
- d.scrollbarsClipped = false;
- d.lineNumWidth = d.lineNumInnerWidth = d.lineNumChars = null;
- d.alignWidgets = false;
- d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;
- d.maxLine = null;
- d.maxLineLength = 0;
- d.maxLineChanged = false;
- d.wheelDX = d.wheelDY = d.wheelStartX = d.wheelStartY = null;
- d.shift = false;
- d.selForContextMenu = null;
- d.activeTouch = null;
- d.gutterSpecs = getGutters(options.gutters, options.lineNumbers);
- renderGutters(d);
- input.init(d);
- }
- var wheelSamples = 0,
- wheelPixelsPerUnit = null;
- if (ie) {
- wheelPixelsPerUnit = -0.53;
- } else if (gecko) {
- wheelPixelsPerUnit = 15;
- } else if (chrome) {
- wheelPixelsPerUnit = -0.7;
- } else if (safari) {
- wheelPixelsPerUnit = -1 / 3;
- }
- function wheelEventDelta(e) {
- var dx = e.wheelDeltaX,
- dy = e.wheelDeltaY;
- if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) {
- dx = e.detail;
- }
- if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) {
- dy = e.detail;
- } else if (dy == null) {
- dy = e.wheelDelta;
- }
- return {
- x: dx,
- y: dy
- };
- }
- function wheelEventPixels(e) {
- var delta = wheelEventDelta(e);
- delta.x *= wheelPixelsPerUnit;
- delta.y *= wheelPixelsPerUnit;
- return delta;
- }
- function onScrollWheel(cm, e) {
- var delta = wheelEventDelta(e),
- dx = delta.x,
- dy = delta.y;
- var pixelsPerUnit = wheelPixelsPerUnit;
- if (e.deltaMode === 0) {
- dx = e.deltaX;
- dy = e.deltaY;
- pixelsPerUnit = 1;
- }
- var display = cm.display,
- scroll = display.scroller;
- var canScrollX = scroll.scrollWidth > scroll.clientWidth;
- var canScrollY = scroll.scrollHeight > scroll.clientHeight;
- if (!(dx && canScrollX || dy && canScrollY)) {
- return;
- }
- if (dy && mac && webkit) {
- outer: for (var cur = e.target, view = display.view; cur != scroll; cur = cur.parentNode) {
- for (var i2 = 0; i2 < view.length; i2++) {
- if (view[i2].node == cur) {
- cm.display.currentWheelTarget = cur;
- break outer;
- }
- }
- }
- }
- if (dx && !gecko && !presto && pixelsPerUnit != null) {
- if (dy && canScrollY) {
- updateScrollTop(cm, Math.max(0, scroll.scrollTop + dy * pixelsPerUnit));
- }
- setScrollLeft(cm, Math.max(0, scroll.scrollLeft + dx * pixelsPerUnit));
- if (!dy || dy && canScrollY) {
- e_preventDefault(e);
- }
- display.wheelStartX = null;
- return;
- }
- if (dy && pixelsPerUnit != null) {
- var pixels = dy * pixelsPerUnit;
- var top = cm.doc.scrollTop,
- bot = top + display.wrapper.clientHeight;
- if (pixels < 0) {
- top = Math.max(0, top + pixels - 50);
- } else {
- bot = Math.min(cm.doc.height, bot + pixels + 50);
- }
- updateDisplaySimple(cm, {
- top,
- bottom: bot
- });
- }
- if (wheelSamples < 20 && e.deltaMode !== 0) {
- if (display.wheelStartX == null) {
- display.wheelStartX = scroll.scrollLeft;
- display.wheelStartY = scroll.scrollTop;
- display.wheelDX = dx;
- display.wheelDY = dy;
- setTimeout(function () {
- if (display.wheelStartX == null) {
- return;
- }
- var movedX = scroll.scrollLeft - display.wheelStartX;
- var movedY = scroll.scrollTop - display.wheelStartY;
- var sample = movedY && display.wheelDY && movedY / display.wheelDY || movedX && display.wheelDX && movedX / display.wheelDX;
- display.wheelStartX = display.wheelStartY = null;
- if (!sample) {
- return;
- }
- wheelPixelsPerUnit = (wheelPixelsPerUnit * wheelSamples + sample) / (wheelSamples + 1);
- ++wheelSamples;
- }, 200);
- } else {
- display.wheelDX += dx;
- display.wheelDY += dy;
- }
- }
- }
- var Selection = function (ranges, primIndex) {
- this.ranges = ranges;
- this.primIndex = primIndex;
- };
- Selection.prototype.primary = function () {
- return this.ranges[this.primIndex];
- };
- Selection.prototype.equals = function (other) {
- if (other == this) {
- return true;
- }
- if (other.primIndex != this.primIndex || other.ranges.length != this.ranges.length) {
- return false;
- }
- for (var i2 = 0; i2 < this.ranges.length; i2++) {
- var here = this.ranges[i2],
- there = other.ranges[i2];
- if (!equalCursorPos(here.anchor, there.anchor) || !equalCursorPos(here.head, there.head)) {
- return false;
- }
- }
- return true;
- };
- Selection.prototype.deepCopy = function () {
- var out = [];
- for (var i2 = 0; i2 < this.ranges.length; i2++) {
- out[i2] = new Range(copyPos(this.ranges[i2].anchor), copyPos(this.ranges[i2].head));
- }
- return new Selection(out, this.primIndex);
- };
- Selection.prototype.somethingSelected = function () {
- for (var i2 = 0; i2 < this.ranges.length; i2++) {
- if (!this.ranges[i2].empty()) {
- return true;
- }
- }
- return false;
- };
- Selection.prototype.contains = function (pos, end) {
- if (!end) {
- end = pos;
- }
- for (var i2 = 0; i2 < this.ranges.length; i2++) {
- var range2 = this.ranges[i2];
- if (cmp(end, range2.from()) >= 0 && cmp(pos, range2.to()) <= 0) {
- return i2;
- }
- }
- return -1;
- };
- var Range = function (anchor, head) {
- this.anchor = anchor;
- this.head = head;
- };
- Range.prototype.from = function () {
- return minPos(this.anchor, this.head);
- };
- Range.prototype.to = function () {
- return maxPos(this.anchor, this.head);
- };
- Range.prototype.empty = function () {
- return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch;
- };
- function normalizeSelection(cm, ranges, primIndex) {
- var mayTouch = cm && cm.options.selectionsMayTouch;
- var prim = ranges[primIndex];
- ranges.sort(function (a, b) {
- return cmp(a.from(), b.from());
- });
- primIndex = indexOf(ranges, prim);
- for (var i2 = 1; i2 < ranges.length; i2++) {
- var cur = ranges[i2],
- prev = ranges[i2 - 1];
- var diff = cmp(prev.to(), cur.from());
- if (mayTouch && !cur.empty() ? diff > 0 : diff >= 0) {
- var from = minPos(prev.from(), cur.from()),
- to = maxPos(prev.to(), cur.to());
- var inv = prev.empty() ? cur.from() == cur.head : prev.from() == prev.head;
- if (i2 <= primIndex) {
- --primIndex;
- }
- ranges.splice(--i2, 2, new Range(inv ? to : from, inv ? from : to));
- }
- }
- return new Selection(ranges, primIndex);
- }
- function simpleSelection(anchor, head) {
- return new Selection([new Range(anchor, head || anchor)], 0);
- }
- function changeEnd(change) {
- if (!change.text) {
- return change.to;
- }
- return Pos(change.from.line + change.text.length - 1, lst(change.text).length + (change.text.length == 1 ? change.from.ch : 0));
- }
- function adjustForChange(pos, change) {
- if (cmp(pos, change.from) < 0) {
- return pos;
- }
- if (cmp(pos, change.to) <= 0) {
- return changeEnd(change);
- }
- var line = pos.line + change.text.length - (change.to.line - change.from.line) - 1,
- ch = pos.ch;
- if (pos.line == change.to.line) {
- ch += changeEnd(change).ch - change.to.ch;
- }
- return Pos(line, ch);
- }
- function computeSelAfterChange(doc, change) {
- var out = [];
- for (var i2 = 0; i2 < doc.sel.ranges.length; i2++) {
- var range2 = doc.sel.ranges[i2];
- out.push(new Range(adjustForChange(range2.anchor, change), adjustForChange(range2.head, change)));
- }
- return normalizeSelection(doc.cm, out, doc.sel.primIndex);
- }
- function offsetPos(pos, old, nw) {
- if (pos.line == old.line) {
- return Pos(nw.line, pos.ch - old.ch + nw.ch);
- } else {
- return Pos(nw.line + (pos.line - old.line), pos.ch);
- }
- }
- function computeReplacedSel(doc, changes, hint) {
- var out = [];
- var oldPrev = Pos(doc.first, 0),
- newPrev = oldPrev;
- for (var i2 = 0; i2 < changes.length; i2++) {
- var change = changes[i2];
- var from = offsetPos(change.from, oldPrev, newPrev);
- var to = offsetPos(changeEnd(change), oldPrev, newPrev);
- oldPrev = change.to;
- newPrev = to;
- if (hint == "around") {
- var range2 = doc.sel.ranges[i2],
- inv = cmp(range2.head, range2.anchor) < 0;
- out[i2] = new Range(inv ? to : from, inv ? from : to);
- } else {
- out[i2] = new Range(from, from);
- }
- }
- return new Selection(out, doc.sel.primIndex);
- }
- function loadMode(cm) {
- cm.doc.mode = getMode(cm.options, cm.doc.modeOption);
- resetModeState(cm);
- }
- function resetModeState(cm) {
- cm.doc.iter(function (line) {
- if (line.stateAfter) {
- line.stateAfter = null;
- }
- if (line.styles) {
- line.styles = null;
- }
- });
- cm.doc.modeFrontier = cm.doc.highlightFrontier = cm.doc.first;
- startWorker(cm, 100);
- cm.state.modeGen++;
- if (cm.curOp) {
- regChange(cm);
- }
- }
- function isWholeLineUpdate(doc, change) {
- return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" && (!doc.cm || doc.cm.options.wholeLineUpdateBefore);
- }
- function updateDoc(doc, change, markedSpans, estimateHeight2) {
- function spansFor(n) {
- return markedSpans ? markedSpans[n] : null;
- }
- function update(line, text2, spans) {
- updateLine(line, text2, spans, estimateHeight2);
- signalLater(line, "change", line, change);
- }
- function linesFor(start, end) {
- var result = [];
- for (var i2 = start; i2 < end; ++i2) {
- result.push(new Line(text[i2], spansFor(i2), estimateHeight2));
- }
- return result;
- }
- var from = change.from,
- to = change.to,
- text = change.text;
- var firstLine = getLine(doc, from.line),
- lastLine = getLine(doc, to.line);
- var lastText = lst(text),
- lastSpans = spansFor(text.length - 1),
- nlines = to.line - from.line;
- if (change.full) {
- doc.insert(0, linesFor(0, text.length));
- doc.remove(text.length, doc.size - text.length);
- } else if (isWholeLineUpdate(doc, change)) {
- var added = linesFor(0, text.length - 1);
- update(lastLine, lastLine.text, lastSpans);
- if (nlines) {
- doc.remove(from.line, nlines);
- }
- if (added.length) {
- doc.insert(from.line, added);
- }
- } else if (firstLine == lastLine) {
- if (text.length == 1) {
- update(firstLine, firstLine.text.slice(0, from.ch) + lastText + firstLine.text.slice(to.ch), lastSpans);
- } else {
- var added$1 = linesFor(1, text.length - 1);
- added$1.push(new Line(lastText + firstLine.text.slice(to.ch), lastSpans, estimateHeight2));
- update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));
- doc.insert(from.line + 1, added$1);
- }
- } else if (text.length == 1) {
- update(firstLine, firstLine.text.slice(0, from.ch) + text[0] + lastLine.text.slice(to.ch), spansFor(0));
- doc.remove(from.line + 1, nlines);
- } else {
- update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));
- update(lastLine, lastText + lastLine.text.slice(to.ch), lastSpans);
- var added$2 = linesFor(1, text.length - 1);
- if (nlines > 1) {
- doc.remove(from.line + 1, nlines - 1);
- }
- doc.insert(from.line + 1, added$2);
- }
- signalLater(doc, "change", doc, change);
- }
- function linkedDocs(doc, f, sharedHistOnly) {
- function propagate(doc2, skip, sharedHist) {
- if (doc2.linked) {
- for (var i2 = 0; i2 < doc2.linked.length; ++i2) {
- var rel = doc2.linked[i2];
- if (rel.doc == skip) {
- continue;
- }
- var shared = sharedHist && rel.sharedHist;
- if (sharedHistOnly && !shared) {
- continue;
- }
- f(rel.doc, shared);
- propagate(rel.doc, doc2, shared);
- }
- }
- }
- propagate(doc, null, true);
- }
- function attachDoc(cm, doc) {
- if (doc.cm) {
- throw new Error("This document is already in use.");
- }
- cm.doc = doc;
- doc.cm = cm;
- estimateLineHeights(cm);
- loadMode(cm);
- setDirectionClass(cm);
- cm.options.direction = doc.direction;
- if (!cm.options.lineWrapping) {
- findMaxLine(cm);
- }
- cm.options.mode = doc.modeOption;
- regChange(cm);
- }
- function setDirectionClass(cm) {
- (cm.doc.direction == "rtl" ? addClass : rmClass)(cm.display.lineDiv, "CodeMirror-rtl");
- }
- function directionChanged(cm) {
- runInOp(cm, function () {
- setDirectionClass(cm);
- regChange(cm);
- });
- }
- function History(prev) {
- this.done = [];
- this.undone = [];
- this.undoDepth = prev ? prev.undoDepth : Infinity;
- this.lastModTime = this.lastSelTime = 0;
- this.lastOp = this.lastSelOp = null;
- this.lastOrigin = this.lastSelOrigin = null;
- this.generation = this.maxGeneration = prev ? prev.maxGeneration : 1;
- }
- function historyChangeFromChange(doc, change) {
- var histChange = {
- from: copyPos(change.from),
- to: changeEnd(change),
- text: getBetween(doc, change.from, change.to)
- };
- attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);
- linkedDocs(doc, function (doc2) {
- return attachLocalSpans(doc2, histChange, change.from.line, change.to.line + 1);
- }, true);
- return histChange;
- }
- function clearSelectionEvents(array) {
- while (array.length) {
- var last = lst(array);
- if (last.ranges) {
- array.pop();
- } else {
- break;
- }
- }
- }
- function lastChangeEvent(hist, force) {
- if (force) {
- clearSelectionEvents(hist.done);
- return lst(hist.done);
- } else if (hist.done.length && !lst(hist.done).ranges) {
- return lst(hist.done);
- } else if (hist.done.length > 1 && !hist.done[hist.done.length - 2].ranges) {
- hist.done.pop();
- return lst(hist.done);
- }
- }
- function addChangeToHistory(doc, change, selAfter, opId) {
- var hist = doc.history;
- hist.undone.length = 0;
- var time = + /* @__PURE__ */new Date(),
- cur;
- var last;
- if ((hist.lastOp == opId || hist.lastOrigin == change.origin && change.origin && (change.origin.charAt(0) == "+" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500) || change.origin.charAt(0) == "*")) && (cur = lastChangeEvent(hist, hist.lastOp == opId))) {
- last = lst(cur.changes);
- if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {
- last.to = changeEnd(change);
- } else {
- cur.changes.push(historyChangeFromChange(doc, change));
- }
- } else {
- var before = lst(hist.done);
- if (!before || !before.ranges) {
- pushSelectionToHistory(doc.sel, hist.done);
- }
- cur = {
- changes: [historyChangeFromChange(doc, change)],
- generation: hist.generation
- };
- hist.done.push(cur);
- while (hist.done.length > hist.undoDepth) {
- hist.done.shift();
- if (!hist.done[0].ranges) {
- hist.done.shift();
- }
- }
- }
- hist.done.push(selAfter);
- hist.generation = ++hist.maxGeneration;
- hist.lastModTime = hist.lastSelTime = time;
- hist.lastOp = hist.lastSelOp = opId;
- hist.lastOrigin = hist.lastSelOrigin = change.origin;
- if (!last) {
- signal(doc, "historyAdded");
- }
- }
- function selectionEventCanBeMerged(doc, origin, prev, sel) {
- var ch = origin.charAt(0);
- return ch == "*" || ch == "+" && prev.ranges.length == sel.ranges.length && prev.somethingSelected() == sel.somethingSelected() && /* @__PURE__ */new Date() - doc.history.lastSelTime <= (doc.cm ? doc.cm.options.historyEventDelay : 500);
- }
- function addSelectionToHistory(doc, sel, opId, options) {
- var hist = doc.history,
- origin = options && options.origin;
- if (opId == hist.lastSelOp || origin && hist.lastSelOrigin == origin && (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin || selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))) {
- hist.done[hist.done.length - 1] = sel;
- } else {
- pushSelectionToHistory(sel, hist.done);
- }
- hist.lastSelTime = + /* @__PURE__ */new Date();
- hist.lastSelOrigin = origin;
- hist.lastSelOp = opId;
- if (options && options.clearRedo !== false) {
- clearSelectionEvents(hist.undone);
- }
- }
- function pushSelectionToHistory(sel, dest) {
- var top = lst(dest);
- if (!(top && top.ranges && top.equals(sel))) {
- dest.push(sel);
- }
- }
- function attachLocalSpans(doc, change, from, to) {
- var existing = change["spans_" + doc.id],
- n = 0;
- doc.iter(Math.max(doc.first, from), Math.min(doc.first + doc.size, to), function (line) {
- if (line.markedSpans) {
- (existing || (existing = change["spans_" + doc.id] = {}))[n] = line.markedSpans;
- }
- ++n;
- });
- }
- function removeClearedSpans(spans) {
- if (!spans) {
- return null;
- }
- var out;
- for (var i2 = 0; i2 < spans.length; ++i2) {
- if (spans[i2].marker.explicitlyCleared) {
- if (!out) {
- out = spans.slice(0, i2);
- }
- } else if (out) {
- out.push(spans[i2]);
- }
- }
- return !out ? spans : out.length ? out : null;
- }
- function getOldSpans(doc, change) {
- var found = change["spans_" + doc.id];
- if (!found) {
- return null;
- }
- var nw = [];
- for (var i2 = 0; i2 < change.text.length; ++i2) {
- nw.push(removeClearedSpans(found[i2]));
- }
- return nw;
- }
- function mergeOldSpans(doc, change) {
- var old = getOldSpans(doc, change);
- var stretched = stretchSpansOverChange(doc, change);
- if (!old) {
- return stretched;
- }
- if (!stretched) {
- return old;
- }
- for (var i2 = 0; i2 < old.length; ++i2) {
- var oldCur = old[i2],
- stretchCur = stretched[i2];
- if (oldCur && stretchCur) {
- spans: for (var j = 0; j < stretchCur.length; ++j) {
- var span = stretchCur[j];
- for (var k = 0; k < oldCur.length; ++k) {
- if (oldCur[k].marker == span.marker) {
- continue spans;
- }
- }
- oldCur.push(span);
- }
- } else if (stretchCur) {
- old[i2] = stretchCur;
- }
- }
- return old;
- }
- function copyHistoryArray(events, newGroup, instantiateSel) {
- var copy = [];
- for (var i2 = 0; i2 < events.length; ++i2) {
- var event = events[i2];
- if (event.ranges) {
- copy.push(instantiateSel ? Selection.prototype.deepCopy.call(event) : event);
- continue;
- }
- var changes = event.changes,
- newChanges = [];
- copy.push({
- changes: newChanges
- });
- for (var j = 0; j < changes.length; ++j) {
- var change = changes[j],
- m = void 0;
- newChanges.push({
- from: change.from,
- to: change.to,
- text: change.text
- });
- if (newGroup) {
- for (var prop2 in change) {
- if (m = prop2.match(/^spans_(\d+)$/)) {
- if (indexOf(newGroup, Number(m[1])) > -1) {
- lst(newChanges)[prop2] = change[prop2];
- delete change[prop2];
- }
- }
- }
- }
- }
- }
- return copy;
- }
- function extendRange(range2, head, other, extend) {
- if (extend) {
- var anchor = range2.anchor;
- if (other) {
- var posBefore = cmp(head, anchor) < 0;
- if (posBefore != cmp(other, anchor) < 0) {
- anchor = head;
- head = other;
- } else if (posBefore != cmp(head, other) < 0) {
- head = other;
- }
- }
- return new Range(anchor, head);
- } else {
- return new Range(other || head, head);
- }
- }
- function extendSelection(doc, head, other, options, extend) {
- if (extend == null) {
- extend = doc.cm && (doc.cm.display.shift || doc.extend);
- }
- setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options);
- }
- function extendSelections(doc, heads, options) {
- var out = [];
- var extend = doc.cm && (doc.cm.display.shift || doc.extend);
- for (var i2 = 0; i2 < doc.sel.ranges.length; i2++) {
- out[i2] = extendRange(doc.sel.ranges[i2], heads[i2], null, extend);
- }
- var newSel = normalizeSelection(doc.cm, out, doc.sel.primIndex);
- setSelection(doc, newSel, options);
- }
- function replaceOneSelection(doc, i2, range2, options) {
- var ranges = doc.sel.ranges.slice(0);
- ranges[i2] = range2;
- setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);
- }
- function setSimpleSelection(doc, anchor, head, options) {
- setSelection(doc, simpleSelection(anchor, head), options);
- }
- function filterSelectionChange(doc, sel, options) {
- var obj = {
- ranges: sel.ranges,
- update: function (ranges) {
- this.ranges = [];
- for (var i2 = 0; i2 < ranges.length; i2++) {
- this.ranges[i2] = new Range(clipPos(doc, ranges[i2].anchor), clipPos(doc, ranges[i2].head));
- }
- },
- origin: options && options.origin
- };
- signal(doc, "beforeSelectionChange", doc, obj);
- if (doc.cm) {
- signal(doc.cm, "beforeSelectionChange", doc.cm, obj);
- }
- if (obj.ranges != sel.ranges) {
- return normalizeSelection(doc.cm, obj.ranges, obj.ranges.length - 1);
- } else {
- return sel;
- }
- }
- function setSelectionReplaceHistory(doc, sel, options) {
- var done = doc.history.done,
- last = lst(done);
- if (last && last.ranges) {
- done[done.length - 1] = sel;
- setSelectionNoUndo(doc, sel, options);
- } else {
- setSelection(doc, sel, options);
- }
- }
- function setSelection(doc, sel, options) {
- setSelectionNoUndo(doc, sel, options);
- addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options);
- }
- function setSelectionNoUndo(doc, sel, options) {
- if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange")) {
- sel = filterSelectionChange(doc, sel, options);
- }
- var bias = options && options.bias || (cmp(sel.primary().head, doc.sel.primary().head) < 0 ? -1 : 1);
- setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, true));
- if (!(options && options.scroll === false) && doc.cm && doc.cm.getOption("readOnly") != "nocursor") {
- ensureCursorVisible(doc.cm);
- }
- }
- function setSelectionInner(doc, sel) {
- if (sel.equals(doc.sel)) {
- return;
- }
- doc.sel = sel;
- if (doc.cm) {
- doc.cm.curOp.updateInput = 1;
- doc.cm.curOp.selectionChanged = true;
- signalCursorActivity(doc.cm);
- }
- signalLater(doc, "cursorActivity", doc);
- }
- function reCheckSelection(doc) {
- setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));
- }
- function skipAtomicInSelection(doc, sel, bias, mayClear) {
- var out;
- for (var i2 = 0; i2 < sel.ranges.length; i2++) {
- var range2 = sel.ranges[i2];
- var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i2];
- var newAnchor = skipAtomic(doc, range2.anchor, old && old.anchor, bias, mayClear);
- var newHead = skipAtomic(doc, range2.head, old && old.head, bias, mayClear);
- if (out || newAnchor != range2.anchor || newHead != range2.head) {
- if (!out) {
- out = sel.ranges.slice(0, i2);
- }
- out[i2] = new Range(newAnchor, newHead);
- }
- }
- return out ? normalizeSelection(doc.cm, out, sel.primIndex) : sel;
- }
- function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {
- var line = getLine(doc, pos.line);
- if (line.markedSpans) {
- for (var i2 = 0; i2 < line.markedSpans.length; ++i2) {
- var sp = line.markedSpans[i2],
- m = sp.marker;
- var preventCursorLeft = "selectLeft" in m ? !m.selectLeft : m.inclusiveLeft;
- var preventCursorRight = "selectRight" in m ? !m.selectRight : m.inclusiveRight;
- if ((sp.from == null || (preventCursorLeft ? sp.from <= pos.ch : sp.from < pos.ch)) && (sp.to == null || (preventCursorRight ? sp.to >= pos.ch : sp.to > pos.ch))) {
- if (mayClear) {
- signal(m, "beforeCursorEnter");
- if (m.explicitlyCleared) {
- if (!line.markedSpans) {
- break;
- } else {
- --i2;
- continue;
- }
- }
- }
- if (!m.atomic) {
- continue;
- }
- if (oldPos) {
- var near = m.find(dir < 0 ? 1 : -1),
- diff = void 0;
- if (dir < 0 ? preventCursorRight : preventCursorLeft) {
- near = movePos(doc, near, -dir, near && near.line == pos.line ? line : null);
- }
- if (near && near.line == pos.line && (diff = cmp(near, oldPos)) && (dir < 0 ? diff < 0 : diff > 0)) {
- return skipAtomicInner(doc, near, pos, dir, mayClear);
- }
- }
- var far = m.find(dir < 0 ? -1 : 1);
- if (dir < 0 ? preventCursorLeft : preventCursorRight) {
- far = movePos(doc, far, dir, far.line == pos.line ? line : null);
- }
- return far ? skipAtomicInner(doc, far, pos, dir, mayClear) : null;
- }
- }
- }
- return pos;
- }
- function skipAtomic(doc, pos, oldPos, bias, mayClear) {
- var dir = bias || 1;
- var found = skipAtomicInner(doc, pos, oldPos, dir, mayClear) || !mayClear && skipAtomicInner(doc, pos, oldPos, dir, true) || skipAtomicInner(doc, pos, oldPos, -dir, mayClear) || !mayClear && skipAtomicInner(doc, pos, oldPos, -dir, true);
- if (!found) {
- doc.cantEdit = true;
- return Pos(doc.first, 0);
- }
- return found;
- }
- function movePos(doc, pos, dir, line) {
- if (dir < 0 && pos.ch == 0) {
- if (pos.line > doc.first) {
- return clipPos(doc, Pos(pos.line - 1));
- } else {
- return null;
- }
- } else if (dir > 0 && pos.ch == (line || getLine(doc, pos.line)).text.length) {
- if (pos.line < doc.first + doc.size - 1) {
- return Pos(pos.line + 1, 0);
- } else {
- return null;
- }
- } else {
- return new Pos(pos.line, pos.ch + dir);
- }
- }
- function selectAll(cm) {
- cm.setSelection(Pos(cm.firstLine(), 0), Pos(cm.lastLine()), sel_dontScroll);
- }
- function filterChange(doc, change, update) {
- var obj = {
- canceled: false,
- from: change.from,
- to: change.to,
- text: change.text,
- origin: change.origin,
- cancel: function () {
- return obj.canceled = true;
- }
- };
- if (update) {
- obj.update = function (from, to, text, origin) {
- if (from) {
- obj.from = clipPos(doc, from);
- }
- if (to) {
- obj.to = clipPos(doc, to);
- }
- if (text) {
- obj.text = text;
- }
- if (origin !== void 0) {
- obj.origin = origin;
- }
- };
- }
- signal(doc, "beforeChange", doc, obj);
- if (doc.cm) {
- signal(doc.cm, "beforeChange", doc.cm, obj);
- }
- if (obj.canceled) {
- if (doc.cm) {
- doc.cm.curOp.updateInput = 2;
- }
- return null;
- }
- return {
- from: obj.from,
- to: obj.to,
- text: obj.text,
- origin: obj.origin
- };
- }
- function makeChange(doc, change, ignoreReadOnly) {
- if (doc.cm) {
- if (!doc.cm.curOp) {
- return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly);
- }
- if (doc.cm.state.suppressEdits) {
- return;
- }
- }
- if (hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange")) {
- change = filterChange(doc, change, true);
- if (!change) {
- return;
- }
- }
- var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);
- if (split) {
- for (var i2 = split.length - 1; i2 >= 0; --i2) {
- makeChangeInner(doc, {
- from: split[i2].from,
- to: split[i2].to,
- text: i2 ? [""] : change.text,
- origin: change.origin
- });
- }
- } else {
- makeChangeInner(doc, change);
- }
- }
- function makeChangeInner(doc, change) {
- if (change.text.length == 1 && change.text[0] == "" && cmp(change.from, change.to) == 0) {
- return;
- }
- var selAfter = computeSelAfterChange(doc, change);
- addChangeToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN);
- makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change));
- var rebased = [];
- linkedDocs(doc, function (doc2, sharedHist) {
- if (!sharedHist && indexOf(rebased, doc2.history) == -1) {
- rebaseHist(doc2.history, change);
- rebased.push(doc2.history);
- }
- makeChangeSingleDoc(doc2, change, null, stretchSpansOverChange(doc2, change));
- });
- }
- function makeChangeFromHistory(doc, type, allowSelectionOnly) {
- var suppress = doc.cm && doc.cm.state.suppressEdits;
- if (suppress && !allowSelectionOnly) {
- return;
- }
- var hist = doc.history,
- event,
- selAfter = doc.sel;
- var source = type == "undo" ? hist.done : hist.undone,
- dest = type == "undo" ? hist.undone : hist.done;
- var i2 = 0;
- for (; i2 < source.length; i2++) {
- event = source[i2];
- if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges) {
- break;
- }
- }
- if (i2 == source.length) {
- return;
- }
- hist.lastOrigin = hist.lastSelOrigin = null;
- for (;;) {
- event = source.pop();
- if (event.ranges) {
- pushSelectionToHistory(event, dest);
- if (allowSelectionOnly && !event.equals(doc.sel)) {
- setSelection(doc, event, {
- clearRedo: false
- });
- return;
- }
- selAfter = event;
- } else if (suppress) {
- source.push(event);
- return;
- } else {
- break;
- }
- }
- var antiChanges = [];
- pushSelectionToHistory(selAfter, dest);
- dest.push({
- changes: antiChanges,
- generation: hist.generation
- });
- hist.generation = event.generation || ++hist.maxGeneration;
- var filter = hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange");
- var loop = function (i3) {
- var change = event.changes[i3];
- change.origin = type;
- if (filter && !filterChange(doc, change, false)) {
- source.length = 0;
- return {};
- }
- antiChanges.push(historyChangeFromChange(doc, change));
- var after = i3 ? computeSelAfterChange(doc, change) : lst(source);
- makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));
- if (!i3 && doc.cm) {
- doc.cm.scrollIntoView({
- from: change.from,
- to: changeEnd(change)
- });
- }
- var rebased = [];
- linkedDocs(doc, function (doc2, sharedHist) {
- if (!sharedHist && indexOf(rebased, doc2.history) == -1) {
- rebaseHist(doc2.history, change);
- rebased.push(doc2.history);
- }
- makeChangeSingleDoc(doc2, change, null, mergeOldSpans(doc2, change));
- });
- };
- for (var i$12 = event.changes.length - 1; i$12 >= 0; --i$12) {
- var returned = loop(i$12);
- if (returned) return returned.v;
- }
- }
- function shiftDoc(doc, distance) {
- if (distance == 0) {
- return;
- }
- doc.first += distance;
- doc.sel = new Selection(map(doc.sel.ranges, function (range2) {
- return new Range(Pos(range2.anchor.line + distance, range2.anchor.ch), Pos(range2.head.line + distance, range2.head.ch));
- }), doc.sel.primIndex);
- if (doc.cm) {
- regChange(doc.cm, doc.first, doc.first - distance, distance);
- for (var d = doc.cm.display, l = d.viewFrom; l < d.viewTo; l++) {
- regLineChange(doc.cm, l, "gutter");
- }
- }
- }
- function makeChangeSingleDoc(doc, change, selAfter, spans) {
- if (doc.cm && !doc.cm.curOp) {
- return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);
- }
- if (change.to.line < doc.first) {
- shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));
- return;
- }
- if (change.from.line > doc.lastLine()) {
- return;
- }
- if (change.from.line < doc.first) {
- var shift = change.text.length - 1 - (doc.first - change.from.line);
- shiftDoc(doc, shift);
- change = {
- from: Pos(doc.first, 0),
- to: Pos(change.to.line + shift, change.to.ch),
- text: [lst(change.text)],
- origin: change.origin
- };
- }
- var last = doc.lastLine();
- if (change.to.line > last) {
- change = {
- from: change.from,
- to: Pos(last, getLine(doc, last).text.length),
- text: [change.text[0]],
- origin: change.origin
- };
- }
- change.removed = getBetween(doc, change.from, change.to);
- if (!selAfter) {
- selAfter = computeSelAfterChange(doc, change);
- }
- if (doc.cm) {
- makeChangeSingleDocInEditor(doc.cm, change, spans);
- } else {
- updateDoc(doc, change, spans);
- }
- setSelectionNoUndo(doc, selAfter, sel_dontScroll);
- if (doc.cantEdit && skipAtomic(doc, Pos(doc.firstLine(), 0))) {
- doc.cantEdit = false;
- }
- }
- function makeChangeSingleDocInEditor(cm, change, spans) {
- var doc = cm.doc,
- display = cm.display,
- from = change.from,
- to = change.to;
- var recomputeMaxLength = false,
- checkWidthStart = from.line;
- if (!cm.options.lineWrapping) {
- checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));
- doc.iter(checkWidthStart, to.line + 1, function (line) {
- if (line == display.maxLine) {
- recomputeMaxLength = true;
- return true;
- }
- });
- }
- if (doc.sel.contains(change.from, change.to) > -1) {
- signalCursorActivity(cm);
- }
- updateDoc(doc, change, spans, estimateHeight(cm));
- if (!cm.options.lineWrapping) {
- doc.iter(checkWidthStart, from.line + change.text.length, function (line) {
- var len = lineLength(line);
- if (len > display.maxLineLength) {
- display.maxLine = line;
- display.maxLineLength = len;
- display.maxLineChanged = true;
- recomputeMaxLength = false;
- }
- });
- if (recomputeMaxLength) {
- cm.curOp.updateMaxLine = true;
- }
- }
- retreatFrontier(doc, from.line);
- startWorker(cm, 400);
- var lendiff = change.text.length - (to.line - from.line) - 1;
- if (change.full) {
- regChange(cm);
- } else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change)) {
- regLineChange(cm, from.line, "text");
- } else {
- regChange(cm, from.line, to.line + 1, lendiff);
- }
- var changesHandler = hasHandler(cm, "changes"),
- changeHandler = hasHandler(cm, "change");
- if (changeHandler || changesHandler) {
- var obj = {
- from,
- to,
- text: change.text,
- removed: change.removed,
- origin: change.origin
- };
- if (changeHandler) {
- signalLater(cm, "change", cm, obj);
- }
- if (changesHandler) {
- (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);
- }
- }
- cm.display.selForContextMenu = null;
- }
- function replaceRange(doc, code, from, to, origin) {
- var assign;
- if (!to) {
- to = from;
- }
- if (cmp(to, from) < 0) {
- assign = [to, from], from = assign[0], to = assign[1];
- }
- if (typeof code == "string") {
- code = doc.splitLines(code);
- }
- makeChange(doc, {
- from,
- to,
- text: code,
- origin
- });
- }
- function rebaseHistSelSingle(pos, from, to, diff) {
- if (to < pos.line) {
- pos.line += diff;
- } else if (from < pos.line) {
- pos.line = from;
- pos.ch = 0;
- }
- }
- function rebaseHistArray(array, from, to, diff) {
- for (var i2 = 0; i2 < array.length; ++i2) {
- var sub = array[i2],
- ok = true;
- if (sub.ranges) {
- if (!sub.copied) {
- sub = array[i2] = sub.deepCopy();
- sub.copied = true;
- }
- for (var j = 0; j < sub.ranges.length; j++) {
- rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);
- rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);
- }
- continue;
- }
- for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {
- var cur = sub.changes[j$1];
- if (to < cur.from.line) {
- cur.from = Pos(cur.from.line + diff, cur.from.ch);
- cur.to = Pos(cur.to.line + diff, cur.to.ch);
- } else if (from <= cur.to.line) {
- ok = false;
- break;
- }
- }
- if (!ok) {
- array.splice(0, i2 + 1);
- i2 = 0;
- }
- }
- }
- function rebaseHist(hist, change) {
- var from = change.from.line,
- to = change.to.line,
- diff = change.text.length - (to - from) - 1;
- rebaseHistArray(hist.done, from, to, diff);
- rebaseHistArray(hist.undone, from, to, diff);
- }
- function changeLine(doc, handle, changeType, op) {
- var no = handle,
- line = handle;
- if (typeof handle == "number") {
- line = getLine(doc, clipLine(doc, handle));
- } else {
- no = lineNo(handle);
- }
- if (no == null) {
- return null;
- }
- if (op(line, no) && doc.cm) {
- regLineChange(doc.cm, no, changeType);
- }
- return line;
- }
- function LeafChunk(lines) {
- this.lines = lines;
- this.parent = null;
- var height = 0;
- for (var i2 = 0; i2 < lines.length; ++i2) {
- lines[i2].parent = this;
- height += lines[i2].height;
- }
- this.height = height;
- }
- LeafChunk.prototype = {
- chunkSize: function () {
- return this.lines.length;
- },
- // Remove the n lines at offset 'at'.
- removeInner: function (at, n) {
- for (var i2 = at, e = at + n; i2 < e; ++i2) {
- var line = this.lines[i2];
- this.height -= line.height;
- cleanUpLine(line);
- signalLater(line, "delete");
- }
- this.lines.splice(at, n);
- },
- // Helper used to collapse a small branch into a single leaf.
- collapse: function (lines) {
- lines.push.apply(lines, this.lines);
- },
- // Insert the given array of lines at offset 'at', count them as
- // having the given height.
- insertInner: function (at, lines, height) {
- this.height += height;
- this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));
- for (var i2 = 0; i2 < lines.length; ++i2) {
- lines[i2].parent = this;
- }
- },
- // Used to iterate over a part of the tree.
- iterN: function (at, n, op) {
- for (var e = at + n; at < e; ++at) {
- if (op(this.lines[at])) {
- return true;
- }
- }
- }
- };
- function BranchChunk(children) {
- this.children = children;
- var size = 0,
- height = 0;
- for (var i2 = 0; i2 < children.length; ++i2) {
- var ch = children[i2];
- size += ch.chunkSize();
- height += ch.height;
- ch.parent = this;
- }
- this.size = size;
- this.height = height;
- this.parent = null;
- }
- BranchChunk.prototype = {
- chunkSize: function () {
- return this.size;
- },
- removeInner: function (at, n) {
- this.size -= n;
- for (var i2 = 0; i2 < this.children.length; ++i2) {
- var child = this.children[i2],
- sz = child.chunkSize();
- if (at < sz) {
- var rm = Math.min(n, sz - at),
- oldHeight = child.height;
- child.removeInner(at, rm);
- this.height -= oldHeight - child.height;
- if (sz == rm) {
- this.children.splice(i2--, 1);
- child.parent = null;
- }
- if ((n -= rm) == 0) {
- break;
- }
- at = 0;
- } else {
- at -= sz;
- }
- }
- if (this.size - n < 25 && (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))) {
- var lines = [];
- this.collapse(lines);
- this.children = [new LeafChunk(lines)];
- this.children[0].parent = this;
- }
- },
- collapse: function (lines) {
- for (var i2 = 0; i2 < this.children.length; ++i2) {
- this.children[i2].collapse(lines);
- }
- },
- insertInner: function (at, lines, height) {
- this.size += lines.length;
- this.height += height;
- for (var i2 = 0; i2 < this.children.length; ++i2) {
- var child = this.children[i2],
- sz = child.chunkSize();
- if (at <= sz) {
- child.insertInner(at, lines, height);
- if (child.lines && child.lines.length > 50) {
- var remaining = child.lines.length % 25 + 25;
- for (var pos = remaining; pos < child.lines.length;) {
- var leaf = new LeafChunk(child.lines.slice(pos, pos += 25));
- child.height -= leaf.height;
- this.children.splice(++i2, 0, leaf);
- leaf.parent = this;
- }
- child.lines = child.lines.slice(0, remaining);
- this.maybeSpill();
- }
- break;
- }
- at -= sz;
- }
- },
- // When a node has grown, check whether it should be split.
- maybeSpill: function () {
- if (this.children.length <= 10) {
- return;
- }
- var me = this;
- do {
- var spilled = me.children.splice(me.children.length - 5, 5);
- var sibling = new BranchChunk(spilled);
- if (!me.parent) {
- var copy = new BranchChunk(me.children);
- copy.parent = me;
- me.children = [copy, sibling];
- me = copy;
- } else {
- me.size -= sibling.size;
- me.height -= sibling.height;
- var myIndex = indexOf(me.parent.children, me);
- me.parent.children.splice(myIndex + 1, 0, sibling);
- }
- sibling.parent = me.parent;
- } while (me.children.length > 10);
- me.parent.maybeSpill();
- },
- iterN: function (at, n, op) {
- for (var i2 = 0; i2 < this.children.length; ++i2) {
- var child = this.children[i2],
- sz = child.chunkSize();
- if (at < sz) {
- var used = Math.min(n, sz - at);
- if (child.iterN(at, used, op)) {
- return true;
- }
- if ((n -= used) == 0) {
- break;
- }
- at = 0;
- } else {
- at -= sz;
- }
- }
- }
- };
- var LineWidget = function (doc, node, options) {
- if (options) {
- for (var opt in options) {
- if (options.hasOwnProperty(opt)) {
- this[opt] = options[opt];
- }
- }
- }
- this.doc = doc;
- this.node = node;
- };
- LineWidget.prototype.clear = function () {
- var cm = this.doc.cm,
- ws = this.line.widgets,
- line = this.line,
- no = lineNo(line);
- if (no == null || !ws) {
- return;
- }
- for (var i2 = 0; i2 < ws.length; ++i2) {
- if (ws[i2] == this) {
- ws.splice(i2--, 1);
- }
- }
- if (!ws.length) {
- line.widgets = null;
- }
- var height = widgetHeight(this);
- updateLineHeight(line, Math.max(0, line.height - height));
- if (cm) {
- runInOp(cm, function () {
- adjustScrollWhenAboveVisible(cm, line, -height);
- regLineChange(cm, no, "widget");
- });
- signalLater(cm, "lineWidgetCleared", cm, this, no);
- }
- };
- LineWidget.prototype.changed = function () {
- var this$1$1 = this;
- var oldH = this.height,
- cm = this.doc.cm,
- line = this.line;
- this.height = null;
- var diff = widgetHeight(this) - oldH;
- if (!diff) {
- return;
- }
- if (!lineIsHidden(this.doc, line)) {
- updateLineHeight(line, line.height + diff);
- }
- if (cm) {
- runInOp(cm, function () {
- cm.curOp.forceUpdate = true;
- adjustScrollWhenAboveVisible(cm, line, diff);
- signalLater(cm, "lineWidgetChanged", cm, this$1$1, lineNo(line));
- });
- }
- };
- eventMixin(LineWidget);
- function adjustScrollWhenAboveVisible(cm, line, diff) {
- if (heightAtLine(line) < (cm.curOp && cm.curOp.scrollTop || cm.doc.scrollTop)) {
- addToScrollTop(cm, diff);
- }
- }
- function addLineWidget(doc, handle, node, options) {
- var widget = new LineWidget(doc, node, options);
- var cm = doc.cm;
- if (cm && widget.noHScroll) {
- cm.display.alignWidgets = true;
- }
- changeLine(doc, handle, "widget", function (line) {
- var widgets = line.widgets || (line.widgets = []);
- if (widget.insertAt == null) {
- widgets.push(widget);
- } else {
- widgets.splice(Math.min(widgets.length, Math.max(0, widget.insertAt)), 0, widget);
- }
- widget.line = line;
- if (cm && !lineIsHidden(doc, line)) {
- var aboveVisible = heightAtLine(line) < doc.scrollTop;
- updateLineHeight(line, line.height + widgetHeight(widget));
- if (aboveVisible) {
- addToScrollTop(cm, widget.height);
- }
- cm.curOp.forceUpdate = true;
- }
- return true;
- });
- if (cm) {
- signalLater(cm, "lineWidgetAdded", cm, widget, typeof handle == "number" ? handle : lineNo(handle));
- }
- return widget;
- }
- var nextMarkerId = 0;
- var TextMarker = function (doc, type) {
- this.lines = [];
- this.type = type;
- this.doc = doc;
- this.id = ++nextMarkerId;
- };
- TextMarker.prototype.clear = function () {
- if (this.explicitlyCleared) {
- return;
- }
- var cm = this.doc.cm,
- withOp = cm && !cm.curOp;
- if (withOp) {
- startOperation(cm);
- }
- if (hasHandler(this, "clear")) {
- var found = this.find();
- if (found) {
- signalLater(this, "clear", found.from, found.to);
- }
- }
- var min = null,
- max = null;
- for (var i2 = 0; i2 < this.lines.length; ++i2) {
- var line = this.lines[i2];
- var span = getMarkedSpanFor(line.markedSpans, this);
- if (cm && !this.collapsed) {
- regLineChange(cm, lineNo(line), "text");
- } else if (cm) {
- if (span.to != null) {
- max = lineNo(line);
- }
- if (span.from != null) {
- min = lineNo(line);
- }
- }
- line.markedSpans = removeMarkedSpan(line.markedSpans, span);
- if (span.from == null && this.collapsed && !lineIsHidden(this.doc, line) && cm) {
- updateLineHeight(line, textHeight(cm.display));
- }
- }
- if (cm && this.collapsed && !cm.options.lineWrapping) {
- for (var i$12 = 0; i$12 < this.lines.length; ++i$12) {
- var visual = visualLine(this.lines[i$12]),
- len = lineLength(visual);
- if (len > cm.display.maxLineLength) {
- cm.display.maxLine = visual;
- cm.display.maxLineLength = len;
- cm.display.maxLineChanged = true;
- }
- }
- }
- if (min != null && cm && this.collapsed) {
- regChange(cm, min, max + 1);
- }
- this.lines.length = 0;
- this.explicitlyCleared = true;
- if (this.atomic && this.doc.cantEdit) {
- this.doc.cantEdit = false;
- if (cm) {
- reCheckSelection(cm.doc);
- }
- }
- if (cm) {
- signalLater(cm, "markerCleared", cm, this, min, max);
- }
- if (withOp) {
- endOperation(cm);
- }
- if (this.parent) {
- this.parent.clear();
- }
- };
- TextMarker.prototype.find = function (side, lineObj) {
- if (side == null && this.type == "bookmark") {
- side = 1;
- }
- var from, to;
- for (var i2 = 0; i2 < this.lines.length; ++i2) {
- var line = this.lines[i2];
- var span = getMarkedSpanFor(line.markedSpans, this);
- if (span.from != null) {
- from = Pos(lineObj ? line : lineNo(line), span.from);
- if (side == -1) {
- return from;
- }
- }
- if (span.to != null) {
- to = Pos(lineObj ? line : lineNo(line), span.to);
- if (side == 1) {
- return to;
- }
- }
- }
- return from && {
- from,
- to
- };
- };
- TextMarker.prototype.changed = function () {
- var this$1$1 = this;
- var pos = this.find(-1, true),
- widget = this,
- cm = this.doc.cm;
- if (!pos || !cm) {
- return;
- }
- runInOp(cm, function () {
- var line = pos.line,
- lineN = lineNo(pos.line);
- var view = findViewForLine(cm, lineN);
- if (view) {
- clearLineMeasurementCacheFor(view);
- cm.curOp.selectionChanged = cm.curOp.forceUpdate = true;
- }
- cm.curOp.updateMaxLine = true;
- if (!lineIsHidden(widget.doc, line) && widget.height != null) {
- var oldHeight = widget.height;
- widget.height = null;
- var dHeight = widgetHeight(widget) - oldHeight;
- if (dHeight) {
- updateLineHeight(line, line.height + dHeight);
- }
- }
- signalLater(cm, "markerChanged", cm, this$1$1);
- });
- };
- TextMarker.prototype.attachLine = function (line) {
- if (!this.lines.length && this.doc.cm) {
- var op = this.doc.cm.curOp;
- if (!op.maybeHiddenMarkers || indexOf(op.maybeHiddenMarkers, this) == -1) {
- (op.maybeUnhiddenMarkers || (op.maybeUnhiddenMarkers = [])).push(this);
- }
- }
- this.lines.push(line);
- };
- TextMarker.prototype.detachLine = function (line) {
- this.lines.splice(indexOf(this.lines, line), 1);
- if (!this.lines.length && this.doc.cm) {
- var op = this.doc.cm.curOp;
- (op.maybeHiddenMarkers || (op.maybeHiddenMarkers = [])).push(this);
- }
- };
- eventMixin(TextMarker);
- function markText(doc, from, to, options, type) {
- if (options && options.shared) {
- return markTextShared(doc, from, to, options, type);
- }
- if (doc.cm && !doc.cm.curOp) {
- return operation(doc.cm, markText)(doc, from, to, options, type);
- }
- var marker = new TextMarker(doc, type),
- diff = cmp(from, to);
- if (options) {
- copyObj(options, marker, false);
- }
- if (diff > 0 || diff == 0 && marker.clearWhenEmpty !== false) {
- return marker;
- }
- if (marker.replacedWith) {
- marker.collapsed = true;
- marker.widgetNode = eltP("span", [marker.replacedWith], "CodeMirror-widget");
- if (!options.handleMouseEvents) {
- marker.widgetNode.setAttribute("cm-ignore-events", "true");
- }
- if (options.insertLeft) {
- marker.widgetNode.insertLeft = true;
- }
- }
- if (marker.collapsed) {
- if (conflictingCollapsedRange(doc, from.line, from, to, marker) || from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker)) {
- throw new Error("Inserting collapsed marker partially overlapping an existing one");
- }
- seeCollapsedSpans();
- }
- if (marker.addToHistory) {
- addChangeToHistory(doc, {
- from,
- to,
- origin: "markText"
- }, doc.sel, NaN);
- }
- var curLine = from.line,
- cm = doc.cm,
- updateMaxLine;
- doc.iter(curLine, to.line + 1, function (line) {
- if (cm && marker.collapsed && !cm.options.lineWrapping && visualLine(line) == cm.display.maxLine) {
- updateMaxLine = true;
- }
- if (marker.collapsed && curLine != from.line) {
- updateLineHeight(line, 0);
- }
- addMarkedSpan(line, new MarkedSpan(marker, curLine == from.line ? from.ch : null, curLine == to.line ? to.ch : null), doc.cm && doc.cm.curOp);
- ++curLine;
- });
- if (marker.collapsed) {
- doc.iter(from.line, to.line + 1, function (line) {
- if (lineIsHidden(doc, line)) {
- updateLineHeight(line, 0);
- }
- });
- }
- if (marker.clearOnEnter) {
- on(marker, "beforeCursorEnter", function () {
- return marker.clear();
- });
- }
- if (marker.readOnly) {
- seeReadOnlySpans();
- if (doc.history.done.length || doc.history.undone.length) {
- doc.clearHistory();
- }
- }
- if (marker.collapsed) {
- marker.id = ++nextMarkerId;
- marker.atomic = true;
- }
- if (cm) {
- if (updateMaxLine) {
- cm.curOp.updateMaxLine = true;
- }
- if (marker.collapsed) {
- regChange(cm, from.line, to.line + 1);
- } else if (marker.className || marker.startStyle || marker.endStyle || marker.css || marker.attributes || marker.title) {
- for (var i2 = from.line; i2 <= to.line; i2++) {
- regLineChange(cm, i2, "text");
- }
- }
- if (marker.atomic) {
- reCheckSelection(cm.doc);
- }
- signalLater(cm, "markerAdded", cm, marker);
- }
- return marker;
- }
- var SharedTextMarker = function (markers, primary) {
- this.markers = markers;
- this.primary = primary;
- for (var i2 = 0; i2 < markers.length; ++i2) {
- markers[i2].parent = this;
- }
- };
- SharedTextMarker.prototype.clear = function () {
- if (this.explicitlyCleared) {
- return;
- }
- this.explicitlyCleared = true;
- for (var i2 = 0; i2 < this.markers.length; ++i2) {
- this.markers[i2].clear();
- }
- signalLater(this, "clear");
- };
- SharedTextMarker.prototype.find = function (side, lineObj) {
- return this.primary.find(side, lineObj);
- };
- eventMixin(SharedTextMarker);
- function markTextShared(doc, from, to, options, type) {
- options = copyObj(options);
- options.shared = false;
- var markers = [markText(doc, from, to, options, type)],
- primary = markers[0];
- var widget = options.widgetNode;
- linkedDocs(doc, function (doc2) {
- if (widget) {
- options.widgetNode = widget.cloneNode(true);
- }
- markers.push(markText(doc2, clipPos(doc2, from), clipPos(doc2, to), options, type));
- for (var i2 = 0; i2 < doc2.linked.length; ++i2) {
- if (doc2.linked[i2].isParent) {
- return;
- }
- }
- primary = lst(markers);
- });
- return new SharedTextMarker(markers, primary);
- }
- function findSharedMarkers(doc) {
- return doc.findMarks(Pos(doc.first, 0), doc.clipPos(Pos(doc.lastLine())), function (m) {
- return m.parent;
- });
- }
- function copySharedMarkers(doc, markers) {
- for (var i2 = 0; i2 < markers.length; i2++) {
- var marker = markers[i2],
- pos = marker.find();
- var mFrom = doc.clipPos(pos.from),
- mTo = doc.clipPos(pos.to);
- if (cmp(mFrom, mTo)) {
- var subMark = markText(doc, mFrom, mTo, marker.primary, marker.primary.type);
- marker.markers.push(subMark);
- subMark.parent = marker;
- }
- }
- }
- function detachSharedMarkers(markers) {
- var loop = function (i3) {
- var marker = markers[i3],
- linked = [marker.primary.doc];
- linkedDocs(marker.primary.doc, function (d) {
- return linked.push(d);
- });
- for (var j = 0; j < marker.markers.length; j++) {
- var subMarker = marker.markers[j];
- if (indexOf(linked, subMarker.doc) == -1) {
- subMarker.parent = null;
- marker.markers.splice(j--, 1);
- }
- }
- };
- for (var i2 = 0; i2 < markers.length; i2++) loop(i2);
- }
- var nextDocId = 0;
- var Doc = function (text, mode, firstLine, lineSep, direction) {
- if (!(this instanceof Doc)) {
- return new Doc(text, mode, firstLine, lineSep, direction);
- }
- if (firstLine == null) {
- firstLine = 0;
- }
- BranchChunk.call(this, [new LeafChunk([new Line("", null)])]);
- this.first = firstLine;
- this.scrollTop = this.scrollLeft = 0;
- this.cantEdit = false;
- this.cleanGeneration = 1;
- this.modeFrontier = this.highlightFrontier = firstLine;
- var start = Pos(firstLine, 0);
- this.sel = simpleSelection(start);
- this.history = new History(null);
- this.id = ++nextDocId;
- this.modeOption = mode;
- this.lineSep = lineSep;
- this.direction = direction == "rtl" ? "rtl" : "ltr";
- this.extend = false;
- if (typeof text == "string") {
- text = this.splitLines(text);
- }
- updateDoc(this, {
- from: start,
- to: start,
- text
- });
- setSelection(this, simpleSelection(start), sel_dontScroll);
- };
- Doc.prototype = createObj(BranchChunk.prototype, {
- constructor: Doc,
- // Iterate over the document. Supports two forms -- with only one
- // argument, it calls that for each line in the document. With
- // three, it iterates over the range given by the first two (with
- // the second being non-inclusive).
- iter: function (from, to, op) {
- if (op) {
- this.iterN(from - this.first, to - from, op);
- } else {
- this.iterN(this.first, this.first + this.size, from);
- }
- },
- // Non-public interface for adding and removing lines.
- insert: function (at, lines) {
- var height = 0;
- for (var i2 = 0; i2 < lines.length; ++i2) {
- height += lines[i2].height;
- }
- this.insertInner(at - this.first, lines, height);
- },
- remove: function (at, n) {
- this.removeInner(at - this.first, n);
- },
- // From here, the methods are part of the public interface. Most
- // are also available from CodeMirror (editor) instances.
- getValue: function (lineSep) {
- var lines = getLines(this, this.first, this.first + this.size);
- if (lineSep === false) {
- return lines;
- }
- return lines.join(lineSep || this.lineSeparator());
- },
- setValue: docMethodOp(function (code) {
- var top = Pos(this.first, 0),
- last = this.first + this.size - 1;
- makeChange(this, {
- from: top,
- to: Pos(last, getLine(this, last).text.length),
- text: this.splitLines(code),
- origin: "setValue",
- full: true
- }, true);
- if (this.cm) {
- scrollToCoords(this.cm, 0, 0);
- }
- setSelection(this, simpleSelection(top), sel_dontScroll);
- }),
- replaceRange: function (code, from, to, origin) {
- from = clipPos(this, from);
- to = to ? clipPos(this, to) : from;
- replaceRange(this, code, from, to, origin);
- },
- getRange: function (from, to, lineSep) {
- var lines = getBetween(this, clipPos(this, from), clipPos(this, to));
- if (lineSep === false) {
- return lines;
- }
- if (lineSep === "") {
- return lines.join("");
- }
- return lines.join(lineSep || this.lineSeparator());
- },
- getLine: function (line) {
- var l = this.getLineHandle(line);
- return l && l.text;
- },
- getLineHandle: function (line) {
- if (isLine(this, line)) {
- return getLine(this, line);
- }
- },
- getLineNumber: function (line) {
- return lineNo(line);
- },
- getLineHandleVisualStart: function (line) {
- if (typeof line == "number") {
- line = getLine(this, line);
- }
- return visualLine(line);
- },
- lineCount: function () {
- return this.size;
- },
- firstLine: function () {
- return this.first;
- },
- lastLine: function () {
- return this.first + this.size - 1;
- },
- clipPos: function (pos) {
- return clipPos(this, pos);
- },
- getCursor: function (start) {
- var range2 = this.sel.primary(),
- pos;
- if (start == null || start == "head") {
- pos = range2.head;
- } else if (start == "anchor") {
- pos = range2.anchor;
- } else if (start == "end" || start == "to" || start === false) {
- pos = range2.to();
- } else {
- pos = range2.from();
- }
- return pos;
- },
- listSelections: function () {
- return this.sel.ranges;
- },
- somethingSelected: function () {
- return this.sel.somethingSelected();
- },
- setCursor: docMethodOp(function (line, ch, options) {
- setSimpleSelection(this, clipPos(this, typeof line == "number" ? Pos(line, ch || 0) : line), null, options);
- }),
- setSelection: docMethodOp(function (anchor, head, options) {
- setSimpleSelection(this, clipPos(this, anchor), clipPos(this, head || anchor), options);
- }),
- extendSelection: docMethodOp(function (head, other, options) {
- extendSelection(this, clipPos(this, head), other && clipPos(this, other), options);
- }),
- extendSelections: docMethodOp(function (heads, options) {
- extendSelections(this, clipPosArray(this, heads), options);
- }),
- extendSelectionsBy: docMethodOp(function (f, options) {
- var heads = map(this.sel.ranges, f);
- extendSelections(this, clipPosArray(this, heads), options);
- }),
- setSelections: docMethodOp(function (ranges, primary, options) {
- if (!ranges.length) {
- return;
- }
- var out = [];
- for (var i2 = 0; i2 < ranges.length; i2++) {
- out[i2] = new Range(clipPos(this, ranges[i2].anchor), clipPos(this, ranges[i2].head || ranges[i2].anchor));
- }
- if (primary == null) {
- primary = Math.min(ranges.length - 1, this.sel.primIndex);
- }
- setSelection(this, normalizeSelection(this.cm, out, primary), options);
- }),
- addSelection: docMethodOp(function (anchor, head, options) {
- var ranges = this.sel.ranges.slice(0);
- ranges.push(new Range(clipPos(this, anchor), clipPos(this, head || anchor)));
- setSelection(this, normalizeSelection(this.cm, ranges, ranges.length - 1), options);
- }),
- getSelection: function (lineSep) {
- var ranges = this.sel.ranges,
- lines;
- for (var i2 = 0; i2 < ranges.length; i2++) {
- var sel = getBetween(this, ranges[i2].from(), ranges[i2].to());
- lines = lines ? lines.concat(sel) : sel;
- }
- if (lineSep === false) {
- return lines;
- } else {
- return lines.join(lineSep || this.lineSeparator());
- }
- },
- getSelections: function (lineSep) {
- var parts = [],
- ranges = this.sel.ranges;
- for (var i2 = 0; i2 < ranges.length; i2++) {
- var sel = getBetween(this, ranges[i2].from(), ranges[i2].to());
- if (lineSep !== false) {
- sel = sel.join(lineSep || this.lineSeparator());
- }
- parts[i2] = sel;
- }
- return parts;
- },
- replaceSelection: function (code, collapse, origin) {
- var dup = [];
- for (var i2 = 0; i2 < this.sel.ranges.length; i2++) {
- dup[i2] = code;
- }
- this.replaceSelections(dup, collapse, origin || "+input");
- },
- replaceSelections: docMethodOp(function (code, collapse, origin) {
- var changes = [],
- sel = this.sel;
- for (var i2 = 0; i2 < sel.ranges.length; i2++) {
- var range2 = sel.ranges[i2];
- changes[i2] = {
- from: range2.from(),
- to: range2.to(),
- text: this.splitLines(code[i2]),
- origin
- };
- }
- var newSel = collapse && collapse != "end" && computeReplacedSel(this, changes, collapse);
- for (var i$12 = changes.length - 1; i$12 >= 0; i$12--) {
- makeChange(this, changes[i$12]);
- }
- if (newSel) {
- setSelectionReplaceHistory(this, newSel);
- } else if (this.cm) {
- ensureCursorVisible(this.cm);
- }
- }),
- undo: docMethodOp(function () {
- makeChangeFromHistory(this, "undo");
- }),
- redo: docMethodOp(function () {
- makeChangeFromHistory(this, "redo");
- }),
- undoSelection: docMethodOp(function () {
- makeChangeFromHistory(this, "undo", true);
- }),
- redoSelection: docMethodOp(function () {
- makeChangeFromHistory(this, "redo", true);
- }),
- setExtending: function (val) {
- this.extend = val;
- },
- getExtending: function () {
- return this.extend;
- },
- historySize: function () {
- var hist = this.history,
- done = 0,
- undone = 0;
- for (var i2 = 0; i2 < hist.done.length; i2++) {
- if (!hist.done[i2].ranges) {
- ++done;
- }
- }
- for (var i$12 = 0; i$12 < hist.undone.length; i$12++) {
- if (!hist.undone[i$12].ranges) {
- ++undone;
- }
- }
- return {
- undo: done,
- redo: undone
- };
- },
- clearHistory: function () {
- var this$1$1 = this;
- this.history = new History(this.history);
- linkedDocs(this, function (doc) {
- return doc.history = this$1$1.history;
- }, true);
- },
- markClean: function () {
- this.cleanGeneration = this.changeGeneration(true);
- },
- changeGeneration: function (forceSplit) {
- if (forceSplit) {
- this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null;
- }
- return this.history.generation;
- },
- isClean: function (gen) {
- return this.history.generation == (gen || this.cleanGeneration);
- },
- getHistory: function () {
- return {
- done: copyHistoryArray(this.history.done),
- undone: copyHistoryArray(this.history.undone)
- };
- },
- setHistory: function (histData) {
- var hist = this.history = new History(this.history);
- hist.done = copyHistoryArray(histData.done.slice(0), null, true);
- hist.undone = copyHistoryArray(histData.undone.slice(0), null, true);
- },
- setGutterMarker: docMethodOp(function (line, gutterID, value) {
- return changeLine(this, line, "gutter", function (line2) {
- var markers = line2.gutterMarkers || (line2.gutterMarkers = {});
- markers[gutterID] = value;
- if (!value && isEmpty(markers)) {
- line2.gutterMarkers = null;
- }
- return true;
- });
- }),
- clearGutter: docMethodOp(function (gutterID) {
- var this$1$1 = this;
- this.iter(function (line) {
- if (line.gutterMarkers && line.gutterMarkers[gutterID]) {
- changeLine(this$1$1, line, "gutter", function () {
- line.gutterMarkers[gutterID] = null;
- if (isEmpty(line.gutterMarkers)) {
- line.gutterMarkers = null;
- }
- return true;
- });
- }
- });
- }),
- lineInfo: function (line) {
- var n;
- if (typeof line == "number") {
- if (!isLine(this, line)) {
- return null;
- }
- n = line;
- line = getLine(this, line);
- if (!line) {
- return null;
- }
- } else {
- n = lineNo(line);
- if (n == null) {
- return null;
- }
- }
- return {
- line: n,
- handle: line,
- text: line.text,
- gutterMarkers: line.gutterMarkers,
- textClass: line.textClass,
- bgClass: line.bgClass,
- wrapClass: line.wrapClass,
- widgets: line.widgets
- };
- },
- addLineClass: docMethodOp(function (handle, where, cls) {
- return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function (line) {
- var prop2 = where == "text" ? "textClass" : where == "background" ? "bgClass" : where == "gutter" ? "gutterClass" : "wrapClass";
- if (!line[prop2]) {
- line[prop2] = cls;
- } else if (classTest(cls).test(line[prop2])) {
- return false;
- } else {
- line[prop2] += " " + cls;
- }
- return true;
- });
- }),
- removeLineClass: docMethodOp(function (handle, where, cls) {
- return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function (line) {
- var prop2 = where == "text" ? "textClass" : where == "background" ? "bgClass" : where == "gutter" ? "gutterClass" : "wrapClass";
- var cur = line[prop2];
- if (!cur) {
- return false;
- } else if (cls == null) {
- line[prop2] = null;
- } else {
- var found = cur.match(classTest(cls));
- if (!found) {
- return false;
- }
- var end = found.index + found[0].length;
- line[prop2] = cur.slice(0, found.index) + (!found.index || end == cur.length ? "" : " ") + cur.slice(end) || null;
- }
- return true;
- });
- }),
- addLineWidget: docMethodOp(function (handle, node, options) {
- return addLineWidget(this, handle, node, options);
- }),
- removeLineWidget: function (widget) {
- widget.clear();
- },
- markText: function (from, to, options) {
- return markText(this, clipPos(this, from), clipPos(this, to), options, options && options.type || "range");
- },
- setBookmark: function (pos, options) {
- var realOpts = {
- replacedWith: options && (options.nodeType == null ? options.widget : options),
- insertLeft: options && options.insertLeft,
- clearWhenEmpty: false,
- shared: options && options.shared,
- handleMouseEvents: options && options.handleMouseEvents
- };
- pos = clipPos(this, pos);
- return markText(this, pos, pos, realOpts, "bookmark");
- },
- findMarksAt: function (pos) {
- pos = clipPos(this, pos);
- var markers = [],
- spans = getLine(this, pos.line).markedSpans;
- if (spans) {
- for (var i2 = 0; i2 < spans.length; ++i2) {
- var span = spans[i2];
- if ((span.from == null || span.from <= pos.ch) && (span.to == null || span.to >= pos.ch)) {
- markers.push(span.marker.parent || span.marker);
- }
- }
- }
- return markers;
- },
- findMarks: function (from, to, filter) {
- from = clipPos(this, from);
- to = clipPos(this, to);
- var found = [],
- lineNo2 = from.line;
- this.iter(from.line, to.line + 1, function (line) {
- var spans = line.markedSpans;
- if (spans) {
- for (var i2 = 0; i2 < spans.length; i2++) {
- var span = spans[i2];
- if (!(span.to != null && lineNo2 == from.line && from.ch >= span.to || span.from == null && lineNo2 != from.line || span.from != null && lineNo2 == to.line && span.from >= to.ch) && (!filter || filter(span.marker))) {
- found.push(span.marker.parent || span.marker);
- }
- }
- }
- ++lineNo2;
- });
- return found;
- },
- getAllMarks: function () {
- var markers = [];
- this.iter(function (line) {
- var sps = line.markedSpans;
- if (sps) {
- for (var i2 = 0; i2 < sps.length; ++i2) {
- if (sps[i2].from != null) {
- markers.push(sps[i2].marker);
- }
- }
- }
- });
- return markers;
- },
- posFromIndex: function (off2) {
- var ch,
- lineNo2 = this.first,
- sepSize = this.lineSeparator().length;
- this.iter(function (line) {
- var sz = line.text.length + sepSize;
- if (sz > off2) {
- ch = off2;
- return true;
- }
- off2 -= sz;
- ++lineNo2;
- });
- return clipPos(this, Pos(lineNo2, ch));
- },
- indexFromPos: function (coords) {
- coords = clipPos(this, coords);
- var index = coords.ch;
- if (coords.line < this.first || coords.ch < 0) {
- return 0;
- }
- var sepSize = this.lineSeparator().length;
- this.iter(this.first, coords.line, function (line) {
- index += line.text.length + sepSize;
- });
- return index;
- },
- copy: function (copyHistory) {
- var doc = new Doc(getLines(this, this.first, this.first + this.size), this.modeOption, this.first, this.lineSep, this.direction);
- doc.scrollTop = this.scrollTop;
- doc.scrollLeft = this.scrollLeft;
- doc.sel = this.sel;
- doc.extend = false;
- if (copyHistory) {
- doc.history.undoDepth = this.history.undoDepth;
- doc.setHistory(this.getHistory());
- }
- return doc;
- },
- linkedDoc: function (options) {
- if (!options) {
- options = {};
- }
- var from = this.first,
- to = this.first + this.size;
- if (options.from != null && options.from > from) {
- from = options.from;
- }
- if (options.to != null && options.to < to) {
- to = options.to;
- }
- var copy = new Doc(getLines(this, from, to), options.mode || this.modeOption, from, this.lineSep, this.direction);
- if (options.sharedHist) {
- copy.history = this.history;
- }
- (this.linked || (this.linked = [])).push({
- doc: copy,
- sharedHist: options.sharedHist
- });
- copy.linked = [{
- doc: this,
- isParent: true,
- sharedHist: options.sharedHist
- }];
- copySharedMarkers(copy, findSharedMarkers(this));
- return copy;
- },
- unlinkDoc: function (other) {
- if (other instanceof CodeMirror) {
- other = other.doc;
- }
- if (this.linked) {
- for (var i2 = 0; i2 < this.linked.length; ++i2) {
- var link = this.linked[i2];
- if (link.doc != other) {
- continue;
- }
- this.linked.splice(i2, 1);
- other.unlinkDoc(this);
- detachSharedMarkers(findSharedMarkers(this));
- break;
- }
- }
- if (other.history == this.history) {
- var splitIds = [other.id];
- linkedDocs(other, function (doc) {
- return splitIds.push(doc.id);
- }, true);
- other.history = new History(null);
- other.history.done = copyHistoryArray(this.history.done, splitIds);
- other.history.undone = copyHistoryArray(this.history.undone, splitIds);
- }
- },
- iterLinkedDocs: function (f) {
- linkedDocs(this, f);
- },
- getMode: function () {
- return this.mode;
- },
- getEditor: function () {
- return this.cm;
- },
- splitLines: function (str) {
- if (this.lineSep) {
- return str.split(this.lineSep);
- }
- return splitLinesAuto(str);
- },
- lineSeparator: function () {
- return this.lineSep || "\n";
- },
- setDirection: docMethodOp(function (dir) {
- if (dir != "rtl") {
- dir = "ltr";
- }
- if (dir == this.direction) {
- return;
- }
- this.direction = dir;
- this.iter(function (line) {
- return line.order = null;
- });
- if (this.cm) {
- directionChanged(this.cm);
- }
- })
- });
- Doc.prototype.eachLine = Doc.prototype.iter;
- var lastDrop = 0;
- function onDrop(e) {
- var cm = this;
- clearDragCursor(cm);
- if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) {
- return;
- }
- e_preventDefault(e);
- if (ie) {
- lastDrop = + /* @__PURE__ */new Date();
- }
- var pos = posFromMouse(cm, e, true),
- files = e.dataTransfer.files;
- if (!pos || cm.isReadOnly()) {
- return;
- }
- if (files && files.length && window.FileReader && window.File) {
- var n = files.length,
- text = Array(n),
- read = 0;
- var markAsReadAndPasteIfAllFilesAreRead = function () {
- if (++read == n) {
- operation(cm, function () {
- pos = clipPos(cm.doc, pos);
- var change = {
- from: pos,
- to: pos,
- text: cm.doc.splitLines(text.filter(function (t) {
- return t != null;
- }).join(cm.doc.lineSeparator())),
- origin: "paste"
- };
- makeChange(cm.doc, change);
- setSelectionReplaceHistory(cm.doc, simpleSelection(clipPos(cm.doc, pos), clipPos(cm.doc, changeEnd(change))));
- })();
- }
- };
- var readTextFromFile = function (file, i3) {
- if (cm.options.allowDropFileTypes && indexOf(cm.options.allowDropFileTypes, file.type) == -1) {
- markAsReadAndPasteIfAllFilesAreRead();
- return;
- }
- var reader = new FileReader();
- reader.onerror = function () {
- return markAsReadAndPasteIfAllFilesAreRead();
- };
- reader.onload = function () {
- var content = reader.result;
- if (/[\x00-\x08\x0e-\x1f]{2}/.test(content)) {
- markAsReadAndPasteIfAllFilesAreRead();
- return;
- }
- text[i3] = content;
- markAsReadAndPasteIfAllFilesAreRead();
- };
- reader.readAsText(file);
- };
- for (var i2 = 0; i2 < files.length; i2++) {
- readTextFromFile(files[i2], i2);
- }
- } else {
- if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {
- cm.state.draggingText(e);
- setTimeout(function () {
- return cm.display.input.focus();
- }, 20);
- return;
- }
- try {
- var text$1 = e.dataTransfer.getData("Text");
- if (text$1) {
- var selected;
- if (cm.state.draggingText && !cm.state.draggingText.copy) {
- selected = cm.listSelections();
- }
- setSelectionNoUndo(cm.doc, simpleSelection(pos, pos));
- if (selected) {
- for (var i$12 = 0; i$12 < selected.length; ++i$12) {
- replaceRange(cm.doc, "", selected[i$12].anchor, selected[i$12].head, "drag");
- }
- }
- cm.replaceSelection(text$1, "around", "paste");
- cm.display.input.focus();
- }
- } catch (e$1) {}
- }
- }
- function onDragStart(cm, e) {
- if (ie && (!cm.state.draggingText || + /* @__PURE__ */new Date() - lastDrop < 100)) {
- e_stop(e);
- return;
- }
- if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) {
- return;
- }
- e.dataTransfer.setData("Text", cm.getSelection());
- e.dataTransfer.effectAllowed = "copyMove";
- if (e.dataTransfer.setDragImage && !safari) {
- var img = elt("img", null, null, "position: fixed; left: 0; top: 0;");
- img.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
- if (presto) {
- img.width = img.height = 1;
- cm.display.wrapper.appendChild(img);
- img._top = img.offsetTop;
- }
- e.dataTransfer.setDragImage(img, 0, 0);
- if (presto) {
- img.parentNode.removeChild(img);
- }
- }
- }
- function onDragOver(cm, e) {
- var pos = posFromMouse(cm, e);
- if (!pos) {
- return;
- }
- var frag = document.createDocumentFragment();
- drawSelectionCursor(cm, pos, frag);
- if (!cm.display.dragCursor) {
- cm.display.dragCursor = elt("div", null, "CodeMirror-cursors CodeMirror-dragcursors");
- cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv);
- }
- removeChildrenAndAdd(cm.display.dragCursor, frag);
- }
- function clearDragCursor(cm) {
- if (cm.display.dragCursor) {
- cm.display.lineSpace.removeChild(cm.display.dragCursor);
- cm.display.dragCursor = null;
- }
- }
- function forEachCodeMirror(f) {
- if (!document.getElementsByClassName) {
- return;
- }
- var byClass = document.getElementsByClassName("CodeMirror"),
- editors = [];
- for (var i2 = 0; i2 < byClass.length; i2++) {
- var cm = byClass[i2].CodeMirror;
- if (cm) {
- editors.push(cm);
- }
- }
- if (editors.length) {
- editors[0].operation(function () {
- for (var i3 = 0; i3 < editors.length; i3++) {
- f(editors[i3]);
- }
- });
- }
- }
- var globalsRegistered = false;
- function ensureGlobalHandlers() {
- if (globalsRegistered) {
- return;
- }
- registerGlobalHandlers();
- globalsRegistered = true;
- }
- function registerGlobalHandlers() {
- var resizeTimer;
- on(window, "resize", function () {
- if (resizeTimer == null) {
- resizeTimer = setTimeout(function () {
- resizeTimer = null;
- forEachCodeMirror(onResize);
- }, 100);
- }
- });
- on(window, "blur", function () {
- return forEachCodeMirror(onBlur);
- });
- }
- function onResize(cm) {
- var d = cm.display;
- d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;
- d.scrollbarsClipped = false;
- cm.setSize();
- }
- var keyNames = {
- 3: "Pause",
- 8: "Backspace",
- 9: "Tab",
- 13: "Enter",
- 16: "Shift",
- 17: "Ctrl",
- 18: "Alt",
- 19: "Pause",
- 20: "CapsLock",
- 27: "Esc",
- 32: "Space",
- 33: "PageUp",
- 34: "PageDown",
- 35: "End",
- 36: "Home",
- 37: "Left",
- 38: "Up",
- 39: "Right",
- 40: "Down",
- 44: "PrintScrn",
- 45: "Insert",
- 46: "Delete",
- 59: ";",
- 61: "=",
- 91: "Mod",
- 92: "Mod",
- 93: "Mod",
- 106: "*",
- 107: "=",
- 109: "-",
- 110: ".",
- 111: "/",
- 145: "ScrollLock",
- 173: "-",
- 186: ";",
- 187: "=",
- 188: ",",
- 189: "-",
- 190: ".",
- 191: "/",
- 192: "`",
- 219: "[",
- 220: "\\",
- 221: "]",
- 222: "'",
- 224: "Mod",
- 63232: "Up",
- 63233: "Down",
- 63234: "Left",
- 63235: "Right",
- 63272: "Delete",
- 63273: "Home",
- 63275: "End",
- 63276: "PageUp",
- 63277: "PageDown",
- 63302: "Insert"
- };
- for (var i = 0; i < 10; i++) {
- keyNames[i + 48] = keyNames[i + 96] = String(i);
- }
- for (var i$1 = 65; i$1 <= 90; i$1++) {
- keyNames[i$1] = String.fromCharCode(i$1);
- }
- for (var i$2 = 1; i$2 <= 12; i$2++) {
- keyNames[i$2 + 111] = keyNames[i$2 + 63235] = "F" + i$2;
- }
- var keyMap = {};
- keyMap.basic = {
- "Left": "goCharLeft",
- "Right": "goCharRight",
- "Up": "goLineUp",
- "Down": "goLineDown",
- "End": "goLineEnd",
- "Home": "goLineStartSmart",
- "PageUp": "goPageUp",
- "PageDown": "goPageDown",
- "Delete": "delCharAfter",
- "Backspace": "delCharBefore",
- "Shift-Backspace": "delCharBefore",
- "Tab": "defaultTab",
- "Shift-Tab": "indentAuto",
- "Enter": "newlineAndIndent",
- "Insert": "toggleOverwrite",
- "Esc": "singleSelection"
- };
- keyMap.pcDefault = {
- "Ctrl-A": "selectAll",
- "Ctrl-D": "deleteLine",
- "Ctrl-Z": "undo",
- "Shift-Ctrl-Z": "redo",
- "Ctrl-Y": "redo",
- "Ctrl-Home": "goDocStart",
- "Ctrl-End": "goDocEnd",
- "Ctrl-Up": "goLineUp",
- "Ctrl-Down": "goLineDown",
- "Ctrl-Left": "goGroupLeft",
- "Ctrl-Right": "goGroupRight",
- "Alt-Left": "goLineStart",
- "Alt-Right": "goLineEnd",
- "Ctrl-Backspace": "delGroupBefore",
- "Ctrl-Delete": "delGroupAfter",
- "Ctrl-S": "save",
- "Ctrl-F": "find",
- "Ctrl-G": "findNext",
- "Shift-Ctrl-G": "findPrev",
- "Shift-Ctrl-F": "replace",
- "Shift-Ctrl-R": "replaceAll",
- "Ctrl-[": "indentLess",
- "Ctrl-]": "indentMore",
- "Ctrl-U": "undoSelection",
- "Shift-Ctrl-U": "redoSelection",
- "Alt-U": "redoSelection",
- "fallthrough": "basic"
- };
- keyMap.emacsy = {
- "Ctrl-F": "goCharRight",
- "Ctrl-B": "goCharLeft",
- "Ctrl-P": "goLineUp",
- "Ctrl-N": "goLineDown",
- "Ctrl-A": "goLineStart",
- "Ctrl-E": "goLineEnd",
- "Ctrl-V": "goPageDown",
- "Shift-Ctrl-V": "goPageUp",
- "Ctrl-D": "delCharAfter",
- "Ctrl-H": "delCharBefore",
- "Alt-Backspace": "delWordBefore",
- "Ctrl-K": "killLine",
- "Ctrl-T": "transposeChars",
- "Ctrl-O": "openLine"
- };
- keyMap.macDefault = {
- "Cmd-A": "selectAll",
- "Cmd-D": "deleteLine",
- "Cmd-Z": "undo",
- "Shift-Cmd-Z": "redo",
- "Cmd-Y": "redo",
- "Cmd-Home": "goDocStart",
- "Cmd-Up": "goDocStart",
- "Cmd-End": "goDocEnd",
- "Cmd-Down": "goDocEnd",
- "Alt-Left": "goGroupLeft",
- "Alt-Right": "goGroupRight",
- "Cmd-Left": "goLineLeft",
- "Cmd-Right": "goLineRight",
- "Alt-Backspace": "delGroupBefore",
- "Ctrl-Alt-Backspace": "delGroupAfter",
- "Alt-Delete": "delGroupAfter",
- "Cmd-S": "save",
- "Cmd-F": "find",
- "Cmd-G": "findNext",
- "Shift-Cmd-G": "findPrev",
- "Cmd-Alt-F": "replace",
- "Shift-Cmd-Alt-F": "replaceAll",
- "Cmd-[": "indentLess",
- "Cmd-]": "indentMore",
- "Cmd-Backspace": "delWrappedLineLeft",
- "Cmd-Delete": "delWrappedLineRight",
- "Cmd-U": "undoSelection",
- "Shift-Cmd-U": "redoSelection",
- "Ctrl-Up": "goDocStart",
- "Ctrl-Down": "goDocEnd",
- "fallthrough": ["basic", "emacsy"]
- };
- keyMap["default"] = mac ? keyMap.macDefault : keyMap.pcDefault;
- function normalizeKeyName(name) {
- var parts = name.split(/-(?!$)/);
- name = parts[parts.length - 1];
- var alt, ctrl, shift, cmd;
- for (var i2 = 0; i2 < parts.length - 1; i2++) {
- var mod = parts[i2];
- if (/^(cmd|meta|m)$/i.test(mod)) {
- cmd = true;
- } else if (/^a(lt)?$/i.test(mod)) {
- alt = true;
- } else if (/^(c|ctrl|control)$/i.test(mod)) {
- ctrl = true;
- } else if (/^s(hift)?$/i.test(mod)) {
- shift = true;
- } else {
- throw new Error("Unrecognized modifier name: " + mod);
- }
- }
- if (alt) {
- name = "Alt-" + name;
- }
- if (ctrl) {
- name = "Ctrl-" + name;
- }
- if (cmd) {
- name = "Cmd-" + name;
- }
- if (shift) {
- name = "Shift-" + name;
- }
- return name;
- }
- function normalizeKeyMap(keymap) {
- var copy = {};
- for (var keyname in keymap) {
- if (keymap.hasOwnProperty(keyname)) {
- var value = keymap[keyname];
- if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) {
- continue;
- }
- if (value == "...") {
- delete keymap[keyname];
- continue;
- }
- var keys = map(keyname.split(" "), normalizeKeyName);
- for (var i2 = 0; i2 < keys.length; i2++) {
- var val = void 0,
- name = void 0;
- if (i2 == keys.length - 1) {
- name = keys.join(" ");
- val = value;
- } else {
- name = keys.slice(0, i2 + 1).join(" ");
- val = "...";
- }
- var prev = copy[name];
- if (!prev) {
- copy[name] = val;
- } else if (prev != val) {
- throw new Error("Inconsistent bindings for " + name);
- }
- }
- delete keymap[keyname];
- }
- }
- for (var prop2 in copy) {
- keymap[prop2] = copy[prop2];
- }
- return keymap;
- }
- function lookupKey(key, map2, handle, context) {
- map2 = getKeyMap(map2);
- var found = map2.call ? map2.call(key, context) : map2[key];
- if (found === false) {
- return "nothing";
- }
- if (found === "...") {
- return "multi";
- }
- if (found != null && handle(found)) {
- return "handled";
- }
- if (map2.fallthrough) {
- if (Object.prototype.toString.call(map2.fallthrough) != "[object Array]") {
- return lookupKey(key, map2.fallthrough, handle, context);
- }
- for (var i2 = 0; i2 < map2.fallthrough.length; i2++) {
- var result = lookupKey(key, map2.fallthrough[i2], handle, context);
- if (result) {
- return result;
- }
- }
- }
- }
- function isModifierKey(value) {
- var name = typeof value == "string" ? value : keyNames[value.keyCode];
- return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod";
- }
- function addModifierNames(name, event, noShift) {
- var base = name;
- if (event.altKey && base != "Alt") {
- name = "Alt-" + name;
- }
- if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != "Ctrl") {
- name = "Ctrl-" + name;
- }
- if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != "Mod") {
- name = "Cmd-" + name;
- }
- if (!noShift && event.shiftKey && base != "Shift") {
- name = "Shift-" + name;
- }
- return name;
- }
- function keyName(event, noShift) {
- if (presto && event.keyCode == 34 && event["char"]) {
- return false;
- }
- var name = keyNames[event.keyCode];
- if (name == null || event.altGraphKey) {
- return false;
- }
- if (event.keyCode == 3 && event.code) {
- name = event.code;
- }
- return addModifierNames(name, event, noShift);
- }
- function getKeyMap(val) {
- return typeof val == "string" ? keyMap[val] : val;
- }
- function deleteNearSelection(cm, compute) {
- var ranges = cm.doc.sel.ranges,
- kill = [];
- for (var i2 = 0; i2 < ranges.length; i2++) {
- var toKill = compute(ranges[i2]);
- while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {
- var replaced = kill.pop();
- if (cmp(replaced.from, toKill.from) < 0) {
- toKill.from = replaced.from;
- break;
- }
- }
- kill.push(toKill);
- }
- runInOp(cm, function () {
- for (var i3 = kill.length - 1; i3 >= 0; i3--) {
- replaceRange(cm.doc, "", kill[i3].from, kill[i3].to, "+delete");
- }
- ensureCursorVisible(cm);
- });
- }
- function moveCharLogically(line, ch, dir) {
- var target = skipExtendingChars(line.text, ch + dir, dir);
- return target < 0 || target > line.text.length ? null : target;
- }
- function moveLogically(line, start, dir) {
- var ch = moveCharLogically(line, start.ch, dir);
- return ch == null ? null : new Pos(start.line, ch, dir < 0 ? "after" : "before");
- }
- function endOfLine(visually, cm, lineObj, lineNo2, dir) {
- if (visually) {
- if (cm.doc.direction == "rtl") {
- dir = -dir;
- }
- var order = getOrder(lineObj, cm.doc.direction);
- if (order) {
- var part = dir < 0 ? lst(order) : order[0];
- var moveInStorageOrder = dir < 0 == (part.level == 1);
- var sticky = moveInStorageOrder ? "after" : "before";
- var ch;
- if (part.level > 0 || cm.doc.direction == "rtl") {
- var prep = prepareMeasureForLine(cm, lineObj);
- ch = dir < 0 ? lineObj.text.length - 1 : 0;
- var targetTop = measureCharPrepared(cm, prep, ch).top;
- ch = findFirst(function (ch2) {
- return measureCharPrepared(cm, prep, ch2).top == targetTop;
- }, dir < 0 == (part.level == 1) ? part.from : part.to - 1, ch);
- if (sticky == "before") {
- ch = moveCharLogically(lineObj, ch, 1);
- }
- } else {
- ch = dir < 0 ? part.to : part.from;
- }
- return new Pos(lineNo2, ch, sticky);
- }
- }
- return new Pos(lineNo2, dir < 0 ? lineObj.text.length : 0, dir < 0 ? "before" : "after");
- }
- function moveVisually(cm, line, start, dir) {
- var bidi = getOrder(line, cm.doc.direction);
- if (!bidi) {
- return moveLogically(line, start, dir);
- }
- if (start.ch >= line.text.length) {
- start.ch = line.text.length;
- start.sticky = "before";
- } else if (start.ch <= 0) {
- start.ch = 0;
- start.sticky = "after";
- }
- var partPos = getBidiPartAt(bidi, start.ch, start.sticky),
- part = bidi[partPos];
- if (cm.doc.direction == "ltr" && part.level % 2 == 0 && (dir > 0 ? part.to > start.ch : part.from < start.ch)) {
- return moveLogically(line, start, dir);
- }
- var mv = function (pos, dir2) {
- return moveCharLogically(line, pos instanceof Pos ? pos.ch : pos, dir2);
- };
- var prep;
- var getWrappedLineExtent = function (ch2) {
- if (!cm.options.lineWrapping) {
- return {
- begin: 0,
- end: line.text.length
- };
- }
- prep = prep || prepareMeasureForLine(cm, line);
- return wrappedLineExtentChar(cm, line, prep, ch2);
- };
- var wrappedLineExtent2 = getWrappedLineExtent(start.sticky == "before" ? mv(start, -1) : start.ch);
- if (cm.doc.direction == "rtl" || part.level == 1) {
- var moveInStorageOrder = part.level == 1 == dir < 0;
- var ch = mv(start, moveInStorageOrder ? 1 : -1);
- if (ch != null && (!moveInStorageOrder ? ch >= part.from && ch >= wrappedLineExtent2.begin : ch <= part.to && ch <= wrappedLineExtent2.end)) {
- var sticky = moveInStorageOrder ? "before" : "after";
- return new Pos(start.line, ch, sticky);
- }
- }
- var searchInVisualLine = function (partPos2, dir2, wrappedLineExtent3) {
- var getRes = function (ch3, moveInStorageOrder3) {
- return moveInStorageOrder3 ? new Pos(start.line, mv(ch3, 1), "before") : new Pos(start.line, ch3, "after");
- };
- for (; partPos2 >= 0 && partPos2 < bidi.length; partPos2 += dir2) {
- var part2 = bidi[partPos2];
- var moveInStorageOrder2 = dir2 > 0 == (part2.level != 1);
- var ch2 = moveInStorageOrder2 ? wrappedLineExtent3.begin : mv(wrappedLineExtent3.end, -1);
- if (part2.from <= ch2 && ch2 < part2.to) {
- return getRes(ch2, moveInStorageOrder2);
- }
- ch2 = moveInStorageOrder2 ? part2.from : mv(part2.to, -1);
- if (wrappedLineExtent3.begin <= ch2 && ch2 < wrappedLineExtent3.end) {
- return getRes(ch2, moveInStorageOrder2);
- }
- }
- };
- var res = searchInVisualLine(partPos + dir, dir, wrappedLineExtent2);
- if (res) {
- return res;
- }
- var nextCh = dir > 0 ? wrappedLineExtent2.end : mv(wrappedLineExtent2.begin, -1);
- if (nextCh != null && !(dir > 0 && nextCh == line.text.length)) {
- res = searchInVisualLine(dir > 0 ? 0 : bidi.length - 1, dir, getWrappedLineExtent(nextCh));
- if (res) {
- return res;
- }
- }
- return null;
- }
- var commands = {
- selectAll,
- singleSelection: function (cm) {
- return cm.setSelection(cm.getCursor("anchor"), cm.getCursor("head"), sel_dontScroll);
- },
- killLine: function (cm) {
- return deleteNearSelection(cm, function (range2) {
- if (range2.empty()) {
- var len = getLine(cm.doc, range2.head.line).text.length;
- if (range2.head.ch == len && range2.head.line < cm.lastLine()) {
- return {
- from: range2.head,
- to: Pos(range2.head.line + 1, 0)
- };
- } else {
- return {
- from: range2.head,
- to: Pos(range2.head.line, len)
- };
- }
- } else {
- return {
- from: range2.from(),
- to: range2.to()
- };
- }
- });
- },
- deleteLine: function (cm) {
- return deleteNearSelection(cm, function (range2) {
- return {
- from: Pos(range2.from().line, 0),
- to: clipPos(cm.doc, Pos(range2.to().line + 1, 0))
- };
- });
- },
- delLineLeft: function (cm) {
- return deleteNearSelection(cm, function (range2) {
- return {
- from: Pos(range2.from().line, 0),
- to: range2.from()
- };
- });
- },
- delWrappedLineLeft: function (cm) {
- return deleteNearSelection(cm, function (range2) {
- var top = cm.charCoords(range2.head, "div").top + 5;
- var leftPos = cm.coordsChar({
- left: 0,
- top
- }, "div");
- return {
- from: leftPos,
- to: range2.from()
- };
- });
- },
- delWrappedLineRight: function (cm) {
- return deleteNearSelection(cm, function (range2) {
- var top = cm.charCoords(range2.head, "div").top + 5;
- var rightPos = cm.coordsChar({
- left: cm.display.lineDiv.offsetWidth + 100,
- top
- }, "div");
- return {
- from: range2.from(),
- to: rightPos
- };
- });
- },
- undo: function (cm) {
- return cm.undo();
- },
- redo: function (cm) {
- return cm.redo();
- },
- undoSelection: function (cm) {
- return cm.undoSelection();
- },
- redoSelection: function (cm) {
- return cm.redoSelection();
- },
- goDocStart: function (cm) {
- return cm.extendSelection(Pos(cm.firstLine(), 0));
- },
- goDocEnd: function (cm) {
- return cm.extendSelection(Pos(cm.lastLine()));
- },
- goLineStart: function (cm) {
- return cm.extendSelectionsBy(function (range2) {
- return lineStart(cm, range2.head.line);
- }, {
- origin: "+move",
- bias: 1
- });
- },
- goLineStartSmart: function (cm) {
- return cm.extendSelectionsBy(function (range2) {
- return lineStartSmart(cm, range2.head);
- }, {
- origin: "+move",
- bias: 1
- });
- },
- goLineEnd: function (cm) {
- return cm.extendSelectionsBy(function (range2) {
- return lineEnd(cm, range2.head.line);
- }, {
- origin: "+move",
- bias: -1
- });
- },
- goLineRight: function (cm) {
- return cm.extendSelectionsBy(function (range2) {
- var top = cm.cursorCoords(range2.head, "div").top + 5;
- return cm.coordsChar({
- left: cm.display.lineDiv.offsetWidth + 100,
- top
- }, "div");
- }, sel_move);
- },
- goLineLeft: function (cm) {
- return cm.extendSelectionsBy(function (range2) {
- var top = cm.cursorCoords(range2.head, "div").top + 5;
- return cm.coordsChar({
- left: 0,
- top
- }, "div");
- }, sel_move);
- },
- goLineLeftSmart: function (cm) {
- return cm.extendSelectionsBy(function (range2) {
- var top = cm.cursorCoords(range2.head, "div").top + 5;
- var pos = cm.coordsChar({
- left: 0,
- top
- }, "div");
- if (pos.ch < cm.getLine(pos.line).search(/\S/)) {
- return lineStartSmart(cm, range2.head);
- }
- return pos;
- }, sel_move);
- },
- goLineUp: function (cm) {
- return cm.moveV(-1, "line");
- },
- goLineDown: function (cm) {
- return cm.moveV(1, "line");
- },
- goPageUp: function (cm) {
- return cm.moveV(-1, "page");
- },
- goPageDown: function (cm) {
- return cm.moveV(1, "page");
- },
- goCharLeft: function (cm) {
- return cm.moveH(-1, "char");
- },
- goCharRight: function (cm) {
- return cm.moveH(1, "char");
- },
- goColumnLeft: function (cm) {
- return cm.moveH(-1, "column");
- },
- goColumnRight: function (cm) {
- return cm.moveH(1, "column");
- },
- goWordLeft: function (cm) {
- return cm.moveH(-1, "word");
- },
- goGroupRight: function (cm) {
- return cm.moveH(1, "group");
- },
- goGroupLeft: function (cm) {
- return cm.moveH(-1, "group");
- },
- goWordRight: function (cm) {
- return cm.moveH(1, "word");
- },
- delCharBefore: function (cm) {
- return cm.deleteH(-1, "codepoint");
- },
- delCharAfter: function (cm) {
- return cm.deleteH(1, "char");
- },
- delWordBefore: function (cm) {
- return cm.deleteH(-1, "word");
- },
- delWordAfter: function (cm) {
- return cm.deleteH(1, "word");
- },
- delGroupBefore: function (cm) {
- return cm.deleteH(-1, "group");
- },
- delGroupAfter: function (cm) {
- return cm.deleteH(1, "group");
- },
- indentAuto: function (cm) {
- return cm.indentSelection("smart");
- },
- indentMore: function (cm) {
- return cm.indentSelection("add");
- },
- indentLess: function (cm) {
- return cm.indentSelection("subtract");
- },
- insertTab: function (cm) {
- return cm.replaceSelection(" ");
- },
- insertSoftTab: function (cm) {
- var spaces = [],
- ranges = cm.listSelections(),
- tabSize = cm.options.tabSize;
- for (var i2 = 0; i2 < ranges.length; i2++) {
- var pos = ranges[i2].from();
- var col = countColumn(cm.getLine(pos.line), pos.ch, tabSize);
- spaces.push(spaceStr(tabSize - col % tabSize));
- }
- cm.replaceSelections(spaces);
- },
- defaultTab: function (cm) {
- if (cm.somethingSelected()) {
- cm.indentSelection("add");
- } else {
- cm.execCommand("insertTab");
- }
- },
- // Swap the two chars left and right of each selection's head.
- // Move cursor behind the two swapped characters afterwards.
- //
- // Doesn't consider line feeds a character.
- // Doesn't scan more than one line above to find a character.
- // Doesn't do anything on an empty line.
- // Doesn't do anything with non-empty selections.
- transposeChars: function (cm) {
- return runInOp(cm, function () {
- var ranges = cm.listSelections(),
- newSel = [];
- for (var i2 = 0; i2 < ranges.length; i2++) {
- if (!ranges[i2].empty()) {
- continue;
- }
- var cur = ranges[i2].head,
- line = getLine(cm.doc, cur.line).text;
- if (line) {
- if (cur.ch == line.length) {
- cur = new Pos(cur.line, cur.ch - 1);
- }
- if (cur.ch > 0) {
- cur = new Pos(cur.line, cur.ch + 1);
- cm.replaceRange(line.charAt(cur.ch - 1) + line.charAt(cur.ch - 2), Pos(cur.line, cur.ch - 2), cur, "+transpose");
- } else if (cur.line > cm.doc.first) {
- var prev = getLine(cm.doc, cur.line - 1).text;
- if (prev) {
- cur = new Pos(cur.line, 1);
- cm.replaceRange(line.charAt(0) + cm.doc.lineSeparator() + prev.charAt(prev.length - 1), Pos(cur.line - 1, prev.length - 1), cur, "+transpose");
- }
- }
- }
- newSel.push(new Range(cur, cur));
- }
- cm.setSelections(newSel);
- });
- },
- newlineAndIndent: function (cm) {
- return runInOp(cm, function () {
- var sels = cm.listSelections();
- for (var i2 = sels.length - 1; i2 >= 0; i2--) {
- cm.replaceRange(cm.doc.lineSeparator(), sels[i2].anchor, sels[i2].head, "+input");
- }
- sels = cm.listSelections();
- for (var i$12 = 0; i$12 < sels.length; i$12++) {
- cm.indentLine(sels[i$12].from().line, null, true);
- }
- ensureCursorVisible(cm);
- });
- },
- openLine: function (cm) {
- return cm.replaceSelection("\n", "start");
- },
- toggleOverwrite: function (cm) {
- return cm.toggleOverwrite();
- }
- };
- function lineStart(cm, lineN) {
- var line = getLine(cm.doc, lineN);
- var visual = visualLine(line);
- if (visual != line) {
- lineN = lineNo(visual);
- }
- return endOfLine(true, cm, visual, lineN, 1);
- }
- function lineEnd(cm, lineN) {
- var line = getLine(cm.doc, lineN);
- var visual = visualLineEnd(line);
- if (visual != line) {
- lineN = lineNo(visual);
- }
- return endOfLine(true, cm, line, lineN, -1);
- }
- function lineStartSmart(cm, pos) {
- var start = lineStart(cm, pos.line);
- var line = getLine(cm.doc, start.line);
- var order = getOrder(line, cm.doc.direction);
- if (!order || order[0].level == 0) {
- var firstNonWS = Math.max(start.ch, line.text.search(/\S/));
- var inWS = pos.line == start.line && pos.ch <= firstNonWS && pos.ch;
- return Pos(start.line, inWS ? 0 : firstNonWS, start.sticky);
- }
- return start;
- }
- function doHandleBinding(cm, bound, dropShift) {
- if (typeof bound == "string") {
- bound = commands[bound];
- if (!bound) {
- return false;
- }
- }
- cm.display.input.ensurePolled();
- var prevShift = cm.display.shift,
- done = false;
- try {
- if (cm.isReadOnly()) {
- cm.state.suppressEdits = true;
- }
- if (dropShift) {
- cm.display.shift = false;
- }
- done = bound(cm) != Pass;
- } finally {
- cm.display.shift = prevShift;
- cm.state.suppressEdits = false;
- }
- return done;
- }
- function lookupKeyForEditor(cm, name, handle) {
- for (var i2 = 0; i2 < cm.state.keyMaps.length; i2++) {
- var result = lookupKey(name, cm.state.keyMaps[i2], handle, cm);
- if (result) {
- return result;
- }
- }
- return cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm) || lookupKey(name, cm.options.keyMap, handle, cm);
- }
- var stopSeq = new Delayed();
- function dispatchKey(cm, name, e, handle) {
- var seq = cm.state.keySeq;
- if (seq) {
- if (isModifierKey(name)) {
- return "handled";
- }
- if (/\'$/.test(name)) {
- cm.state.keySeq = null;
- } else {
- stopSeq.set(50, function () {
- if (cm.state.keySeq == seq) {
- cm.state.keySeq = null;
- cm.display.input.reset();
- }
- });
- }
- if (dispatchKeyInner(cm, seq + " " + name, e, handle)) {
- return true;
- }
- }
- return dispatchKeyInner(cm, name, e, handle);
- }
- function dispatchKeyInner(cm, name, e, handle) {
- var result = lookupKeyForEditor(cm, name, handle);
- if (result == "multi") {
- cm.state.keySeq = name;
- }
- if (result == "handled") {
- signalLater(cm, "keyHandled", cm, name, e);
- }
- if (result == "handled" || result == "multi") {
- e_preventDefault(e);
- restartBlink(cm);
- }
- return !!result;
- }
- function handleKeyBinding(cm, e) {
- var name = keyName(e, true);
- if (!name) {
- return false;
- }
- if (e.shiftKey && !cm.state.keySeq) {
- return dispatchKey(cm, "Shift-" + name, e, function (b) {
- return doHandleBinding(cm, b, true);
- }) || dispatchKey(cm, name, e, function (b) {
- if (typeof b == "string" ? /^go[A-Z]/.test(b) : b.motion) {
- return doHandleBinding(cm, b);
- }
- });
- } else {
- return dispatchKey(cm, name, e, function (b) {
- return doHandleBinding(cm, b);
- });
- }
- }
- function handleCharBinding(cm, e, ch) {
- return dispatchKey(cm, "'" + ch + "'", e, function (b) {
- return doHandleBinding(cm, b, true);
- });
- }
- var lastStoppedKey = null;
- function onKeyDown(e) {
- var cm = this;
- if (e.target && e.target != cm.display.input.getField()) {
- return;
- }
- cm.curOp.focus = activeElt();
- if (signalDOMEvent(cm, e)) {
- return;
- }
- if (ie && ie_version < 11 && e.keyCode == 27) {
- e.returnValue = false;
- }
- var code = e.keyCode;
- cm.display.shift = code == 16 || e.shiftKey;
- var handled = handleKeyBinding(cm, e);
- if (presto) {
- lastStoppedKey = handled ? code : null;
- if (!handled && code == 88 && !hasCopyEvent && (mac ? e.metaKey : e.ctrlKey)) {
- cm.replaceSelection("", null, "cut");
- }
- }
- if (gecko && !mac && !handled && code == 46 && e.shiftKey && !e.ctrlKey && document.execCommand) {
- document.execCommand("cut");
- }
- if (code == 18 && !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className)) {
- showCrossHair(cm);
- }
- }
- function showCrossHair(cm) {
- var lineDiv = cm.display.lineDiv;
- addClass(lineDiv, "CodeMirror-crosshair");
- function up(e) {
- if (e.keyCode == 18 || !e.altKey) {
- rmClass(lineDiv, "CodeMirror-crosshair");
- off(document, "keyup", up);
- off(document, "mouseover", up);
- }
- }
- on(document, "keyup", up);
- on(document, "mouseover", up);
- }
- function onKeyUp(e) {
- if (e.keyCode == 16) {
- this.doc.sel.shift = false;
- }
- signalDOMEvent(this, e);
- }
- function onKeyPress(e) {
- var cm = this;
- if (e.target && e.target != cm.display.input.getField()) {
- return;
- }
- if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) {
- return;
- }
- var keyCode = e.keyCode,
- charCode = e.charCode;
- if (presto && keyCode == lastStoppedKey) {
- lastStoppedKey = null;
- e_preventDefault(e);
- return;
- }
- if (presto && (!e.which || e.which < 10) && handleKeyBinding(cm, e)) {
- return;
- }
- var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
- if (ch == "\b") {
- return;
- }
- if (handleCharBinding(cm, e, ch)) {
- return;
- }
- cm.display.input.onKeyPress(e);
- }
- var DOUBLECLICK_DELAY = 400;
- var PastClick = function (time, pos, button) {
- this.time = time;
- this.pos = pos;
- this.button = button;
- };
- PastClick.prototype.compare = function (time, pos, button) {
- return this.time + DOUBLECLICK_DELAY > time && cmp(pos, this.pos) == 0 && button == this.button;
- };
- var lastClick, lastDoubleClick;
- function clickRepeat(pos, button) {
- var now = + /* @__PURE__ */new Date();
- if (lastDoubleClick && lastDoubleClick.compare(now, pos, button)) {
- lastClick = lastDoubleClick = null;
- return "triple";
- } else if (lastClick && lastClick.compare(now, pos, button)) {
- lastDoubleClick = new PastClick(now, pos, button);
- lastClick = null;
- return "double";
- } else {
- lastClick = new PastClick(now, pos, button);
- lastDoubleClick = null;
- return "single";
- }
- }
- function onMouseDown(e) {
- var cm = this,
- display = cm.display;
- if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) {
- return;
- }
- display.input.ensurePolled();
- display.shift = e.shiftKey;
- if (eventInWidget(display, e)) {
- if (!webkit) {
- display.scroller.draggable = false;
- setTimeout(function () {
- return display.scroller.draggable = true;
- }, 100);
- }
- return;
- }
- if (clickInGutter(cm, e)) {
- return;
- }
- var pos = posFromMouse(cm, e),
- button = e_button(e),
- repeat = pos ? clickRepeat(pos, button) : "single";
- window.focus();
- if (button == 1 && cm.state.selectingText) {
- cm.state.selectingText(e);
- }
- if (pos && handleMappedButton(cm, button, pos, repeat, e)) {
- return;
- }
- if (button == 1) {
- if (pos) {
- leftButtonDown(cm, pos, repeat, e);
- } else if (e_target(e) == display.scroller) {
- e_preventDefault(e);
- }
- } else if (button == 2) {
- if (pos) {
- extendSelection(cm.doc, pos);
- }
- setTimeout(function () {
- return display.input.focus();
- }, 20);
- } else if (button == 3) {
- if (captureRightClick) {
- cm.display.input.onContextMenu(e);
- } else {
- delayBlurEvent(cm);
- }
- }
- }
- function handleMappedButton(cm, button, pos, repeat, event) {
- var name = "Click";
- if (repeat == "double") {
- name = "Double" + name;
- } else if (repeat == "triple") {
- name = "Triple" + name;
- }
- name = (button == 1 ? "Left" : button == 2 ? "Middle" : "Right") + name;
- return dispatchKey(cm, addModifierNames(name, event), event, function (bound) {
- if (typeof bound == "string") {
- bound = commands[bound];
- }
- if (!bound) {
- return false;
- }
- var done = false;
- try {
- if (cm.isReadOnly()) {
- cm.state.suppressEdits = true;
- }
- done = bound(cm, pos) != Pass;
- } finally {
- cm.state.suppressEdits = false;
- }
- return done;
- });
- }
- function configureMouse(cm, repeat, event) {
- var option = cm.getOption("configureMouse");
- var value = option ? option(cm, repeat, event) : {};
- if (value.unit == null) {
- var rect = chromeOS ? event.shiftKey && event.metaKey : event.altKey;
- value.unit = rect ? "rectangle" : repeat == "single" ? "char" : repeat == "double" ? "word" : "line";
- }
- if (value.extend == null || cm.doc.extend) {
- value.extend = cm.doc.extend || event.shiftKey;
- }
- if (value.addNew == null) {
- value.addNew = mac ? event.metaKey : event.ctrlKey;
- }
- if (value.moveOnDrag == null) {
- value.moveOnDrag = !(mac ? event.altKey : event.ctrlKey);
- }
- return value;
- }
- function leftButtonDown(cm, pos, repeat, event) {
- if (ie) {
- setTimeout(bind(ensureFocus, cm), 0);
- } else {
- cm.curOp.focus = activeElt();
- }
- var behavior = configureMouse(cm, repeat, event);
- var sel = cm.doc.sel,
- contained;
- if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() && repeat == "single" && (contained = sel.contains(pos)) > -1 && (cmp((contained = sel.ranges[contained]).from(), pos) < 0 || pos.xRel > 0) && (cmp(contained.to(), pos) > 0 || pos.xRel < 0)) {
- leftButtonStartDrag(cm, event, pos, behavior);
- } else {
- leftButtonSelect(cm, event, pos, behavior);
- }
- }
- function leftButtonStartDrag(cm, event, pos, behavior) {
- var display = cm.display,
- moved = false;
- var dragEnd = operation(cm, function (e) {
- if (webkit) {
- display.scroller.draggable = false;
- }
- cm.state.draggingText = false;
- if (cm.state.delayingBlurEvent) {
- if (cm.hasFocus()) {
- cm.state.delayingBlurEvent = false;
- } else {
- delayBlurEvent(cm);
- }
- }
- off(display.wrapper.ownerDocument, "mouseup", dragEnd);
- off(display.wrapper.ownerDocument, "mousemove", mouseMove);
- off(display.scroller, "dragstart", dragStart);
- off(display.scroller, "drop", dragEnd);
- if (!moved) {
- e_preventDefault(e);
- if (!behavior.addNew) {
- extendSelection(cm.doc, pos, null, null, behavior.extend);
- }
- if (webkit && !safari || ie && ie_version == 9) {
- setTimeout(function () {
- display.wrapper.ownerDocument.body.focus({
- preventScroll: true
- });
- display.input.focus();
- }, 20);
- } else {
- display.input.focus();
- }
- }
- });
- var mouseMove = function (e2) {
- moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;
- };
- var dragStart = function () {
- return moved = true;
- };
- if (webkit) {
- display.scroller.draggable = true;
- }
- cm.state.draggingText = dragEnd;
- dragEnd.copy = !behavior.moveOnDrag;
- on(display.wrapper.ownerDocument, "mouseup", dragEnd);
- on(display.wrapper.ownerDocument, "mousemove", mouseMove);
- on(display.scroller, "dragstart", dragStart);
- on(display.scroller, "drop", dragEnd);
- cm.state.delayingBlurEvent = true;
- setTimeout(function () {
- return display.input.focus();
- }, 20);
- if (display.scroller.dragDrop) {
- display.scroller.dragDrop();
- }
- }
- function rangeForUnit(cm, pos, unit) {
- if (unit == "char") {
- return new Range(pos, pos);
- }
- if (unit == "word") {
- return cm.findWordAt(pos);
- }
- if (unit == "line") {
- return new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0)));
- }
- var result = unit(cm, pos);
- return new Range(result.from, result.to);
- }
- function leftButtonSelect(cm, event, start, behavior) {
- if (ie) {
- delayBlurEvent(cm);
- }
- var display = cm.display,
- doc = cm.doc;
- e_preventDefault(event);
- var ourRange,
- ourIndex,
- startSel = doc.sel,
- ranges = startSel.ranges;
- if (behavior.addNew && !behavior.extend) {
- ourIndex = doc.sel.contains(start);
- if (ourIndex > -1) {
- ourRange = ranges[ourIndex];
- } else {
- ourRange = new Range(start, start);
- }
- } else {
- ourRange = doc.sel.primary();
- ourIndex = doc.sel.primIndex;
- }
- if (behavior.unit == "rectangle") {
- if (!behavior.addNew) {
- ourRange = new Range(start, start);
- }
- start = posFromMouse(cm, event, true, true);
- ourIndex = -1;
- } else {
- var range2 = rangeForUnit(cm, start, behavior.unit);
- if (behavior.extend) {
- ourRange = extendRange(ourRange, range2.anchor, range2.head, behavior.extend);
- } else {
- ourRange = range2;
- }
- }
- if (!behavior.addNew) {
- ourIndex = 0;
- setSelection(doc, new Selection([ourRange], 0), sel_mouse);
- startSel = doc.sel;
- } else if (ourIndex == -1) {
- ourIndex = ranges.length;
- setSelection(doc, normalizeSelection(cm, ranges.concat([ourRange]), ourIndex), {
- scroll: false,
- origin: "*mouse"
- });
- } else if (ranges.length > 1 && ranges[ourIndex].empty() && behavior.unit == "char" && !behavior.extend) {
- setSelection(doc, normalizeSelection(cm, ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0), {
- scroll: false,
- origin: "*mouse"
- });
- startSel = doc.sel;
- } else {
- replaceOneSelection(doc, ourIndex, ourRange, sel_mouse);
- }
- var lastPos = start;
- function extendTo(pos) {
- if (cmp(lastPos, pos) == 0) {
- return;
- }
- lastPos = pos;
- if (behavior.unit == "rectangle") {
- var ranges2 = [],
- tabSize = cm.options.tabSize;
- var startCol = countColumn(getLine(doc, start.line).text, start.ch, tabSize);
- var posCol = countColumn(getLine(doc, pos.line).text, pos.ch, tabSize);
- var left = Math.min(startCol, posCol),
- right = Math.max(startCol, posCol);
- for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line)); line <= end; line++) {
- var text = getLine(doc, line).text,
- leftPos = findColumn(text, left, tabSize);
- if (left == right) {
- ranges2.push(new Range(Pos(line, leftPos), Pos(line, leftPos)));
- } else if (text.length > leftPos) {
- ranges2.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize))));
- }
- }
- if (!ranges2.length) {
- ranges2.push(new Range(start, start));
- }
- setSelection(doc, normalizeSelection(cm, startSel.ranges.slice(0, ourIndex).concat(ranges2), ourIndex), {
- origin: "*mouse",
- scroll: false
- });
- cm.scrollIntoView(pos);
- } else {
- var oldRange = ourRange;
- var range3 = rangeForUnit(cm, pos, behavior.unit);
- var anchor = oldRange.anchor,
- head;
- if (cmp(range3.anchor, anchor) > 0) {
- head = range3.head;
- anchor = minPos(oldRange.from(), range3.anchor);
- } else {
- head = range3.anchor;
- anchor = maxPos(oldRange.to(), range3.head);
- }
- var ranges$1 = startSel.ranges.slice(0);
- ranges$1[ourIndex] = bidiSimplify(cm, new Range(clipPos(doc, anchor), head));
- setSelection(doc, normalizeSelection(cm, ranges$1, ourIndex), sel_mouse);
- }
- }
- var editorSize = display.wrapper.getBoundingClientRect();
- var counter = 0;
- function extend(e) {
- var curCount = ++counter;
- var cur = posFromMouse(cm, e, true, behavior.unit == "rectangle");
- if (!cur) {
- return;
- }
- if (cmp(cur, lastPos) != 0) {
- cm.curOp.focus = activeElt();
- extendTo(cur);
- var visible = visibleLines(display, doc);
- if (cur.line >= visible.to || cur.line < visible.from) {
- setTimeout(operation(cm, function () {
- if (counter == curCount) {
- extend(e);
- }
- }), 150);
- }
- } else {
- var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0;
- if (outside) {
- setTimeout(operation(cm, function () {
- if (counter != curCount) {
- return;
- }
- display.scroller.scrollTop += outside;
- extend(e);
- }), 50);
- }
- }
- }
- function done(e) {
- cm.state.selectingText = false;
- counter = Infinity;
- if (e) {
- e_preventDefault(e);
- display.input.focus();
- }
- off(display.wrapper.ownerDocument, "mousemove", move);
- off(display.wrapper.ownerDocument, "mouseup", up);
- doc.history.lastSelOrigin = null;
- }
- var move = operation(cm, function (e) {
- if (e.buttons === 0 || !e_button(e)) {
- done(e);
- } else {
- extend(e);
- }
- });
- var up = operation(cm, done);
- cm.state.selectingText = up;
- on(display.wrapper.ownerDocument, "mousemove", move);
- on(display.wrapper.ownerDocument, "mouseup", up);
- }
- function bidiSimplify(cm, range2) {
- var anchor = range2.anchor;
- var head = range2.head;
- var anchorLine = getLine(cm.doc, anchor.line);
- if (cmp(anchor, head) == 0 && anchor.sticky == head.sticky) {
- return range2;
- }
- var order = getOrder(anchorLine);
- if (!order) {
- return range2;
- }
- var index = getBidiPartAt(order, anchor.ch, anchor.sticky),
- part = order[index];
- if (part.from != anchor.ch && part.to != anchor.ch) {
- return range2;
- }
- var boundary = index + (part.from == anchor.ch == (part.level != 1) ? 0 : 1);
- if (boundary == 0 || boundary == order.length) {
- return range2;
- }
- var leftSide;
- if (head.line != anchor.line) {
- leftSide = (head.line - anchor.line) * (cm.doc.direction == "ltr" ? 1 : -1) > 0;
- } else {
- var headIndex = getBidiPartAt(order, head.ch, head.sticky);
- var dir = headIndex - index || (head.ch - anchor.ch) * (part.level == 1 ? -1 : 1);
- if (headIndex == boundary - 1 || headIndex == boundary) {
- leftSide = dir < 0;
- } else {
- leftSide = dir > 0;
- }
- }
- var usePart = order[boundary + (leftSide ? -1 : 0)];
- var from = leftSide == (usePart.level == 1);
- var ch = from ? usePart.from : usePart.to,
- sticky = from ? "after" : "before";
- return anchor.ch == ch && anchor.sticky == sticky ? range2 : new Range(new Pos(anchor.line, ch, sticky), head);
- }
- function gutterEvent(cm, e, type, prevent) {
- var mX, mY;
- if (e.touches) {
- mX = e.touches[0].clientX;
- mY = e.touches[0].clientY;
- } else {
- try {
- mX = e.clientX;
- mY = e.clientY;
- } catch (e$1) {
- return false;
- }
- }
- if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) {
- return false;
- }
- if (prevent) {
- e_preventDefault(e);
- }
- var display = cm.display;
- var lineBox = display.lineDiv.getBoundingClientRect();
- if (mY > lineBox.bottom || !hasHandler(cm, type)) {
- return e_defaultPrevented(e);
- }
- mY -= lineBox.top - display.viewOffset;
- for (var i2 = 0; i2 < cm.display.gutterSpecs.length; ++i2) {
- var g = display.gutters.childNodes[i2];
- if (g && g.getBoundingClientRect().right >= mX) {
- var line = lineAtHeight(cm.doc, mY);
- var gutter = cm.display.gutterSpecs[i2];
- signal(cm, type, cm, line, gutter.className, e);
- return e_defaultPrevented(e);
- }
- }
- }
- function clickInGutter(cm, e) {
- return gutterEvent(cm, e, "gutterClick", true);
- }
- function onContextMenu(cm, e) {
- if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) {
- return;
- }
- if (signalDOMEvent(cm, e, "contextmenu")) {
- return;
- }
- if (!captureRightClick) {
- cm.display.input.onContextMenu(e);
- }
- }
- function contextMenuInGutter(cm, e) {
- if (!hasHandler(cm, "gutterContextMenu")) {
- return false;
- }
- return gutterEvent(cm, e, "gutterContextMenu", false);
- }
- function themeChanged(cm) {
- cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
- clearCaches(cm);
- }
- var Init = {
- toString: function () {
- return "CodeMirror.Init";
- }
- };
- var defaults = {};
- var optionHandlers = {};
- function defineOptions(CodeMirror2) {
- var optionHandlers2 = CodeMirror2.optionHandlers;
- function option(name, deflt, handle, notOnInit) {
- CodeMirror2.defaults[name] = deflt;
- if (handle) {
- optionHandlers2[name] = notOnInit ? function (cm, val, old) {
- if (old != Init) {
- handle(cm, val, old);
- }
- } : handle;
- }
- }
- CodeMirror2.defineOption = option;
- CodeMirror2.Init = Init;
- option("value", "", function (cm, val) {
- return cm.setValue(val);
- }, true);
- option("mode", null, function (cm, val) {
- cm.doc.modeOption = val;
- loadMode(cm);
- }, true);
- option("indentUnit", 2, loadMode, true);
- option("indentWithTabs", false);
- option("smartIndent", true);
- option("tabSize", 4, function (cm) {
- resetModeState(cm);
- clearCaches(cm);
- regChange(cm);
- }, true);
- option("lineSeparator", null, function (cm, val) {
- cm.doc.lineSep = val;
- if (!val) {
- return;
- }
- var newBreaks = [],
- lineNo2 = cm.doc.first;
- cm.doc.iter(function (line) {
- for (var pos = 0;;) {
- var found = line.text.indexOf(val, pos);
- if (found == -1) {
- break;
- }
- pos = found + val.length;
- newBreaks.push(Pos(lineNo2, found));
- }
- lineNo2++;
- });
- for (var i2 = newBreaks.length - 1; i2 >= 0; i2--) {
- replaceRange(cm.doc, val, newBreaks[i2], Pos(newBreaks[i2].line, newBreaks[i2].ch + val.length));
- }
- });
- option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function (cm, val, old) {
- cm.state.specialChars = new RegExp(val.source + (val.test(" ") ? "" : "| "), "g");
- if (old != Init) {
- cm.refresh();
- }
- });
- option("specialCharPlaceholder", defaultSpecialCharPlaceholder, function (cm) {
- return cm.refresh();
- }, true);
- option("electricChars", true);
- option("inputStyle", mobile ? "contenteditable" : "textarea", function () {
- throw new Error("inputStyle can not (yet) be changed in a running editor");
- }, true);
- option("spellcheck", false, function (cm, val) {
- return cm.getInputField().spellcheck = val;
- }, true);
- option("autocorrect", false, function (cm, val) {
- return cm.getInputField().autocorrect = val;
- }, true);
- option("autocapitalize", false, function (cm, val) {
- return cm.getInputField().autocapitalize = val;
- }, true);
- option("rtlMoveVisually", !windows);
- option("wholeLineUpdateBefore", true);
- option("theme", "default", function (cm) {
- themeChanged(cm);
- updateGutters(cm);
- }, true);
- option("keyMap", "default", function (cm, val, old) {
- var next = getKeyMap(val);
- var prev = old != Init && getKeyMap(old);
- if (prev && prev.detach) {
- prev.detach(cm, next);
- }
- if (next.attach) {
- next.attach(cm, prev || null);
- }
- });
- option("extraKeys", null);
- option("configureMouse", null);
- option("lineWrapping", false, wrappingChanged, true);
- option("gutters", [], function (cm, val) {
- cm.display.gutterSpecs = getGutters(val, cm.options.lineNumbers);
- updateGutters(cm);
- }, true);
- option("fixedGutter", true, function (cm, val) {
- cm.display.gutters.style.left = val ? compensateForHScroll(cm.display) + "px" : "0";
- cm.refresh();
- }, true);
- option("coverGutterNextToScrollbar", false, function (cm) {
- return updateScrollbars(cm);
- }, true);
- option("scrollbarStyle", "native", function (cm) {
- initScrollbars(cm);
- updateScrollbars(cm);
- cm.display.scrollbars.setScrollTop(cm.doc.scrollTop);
- cm.display.scrollbars.setScrollLeft(cm.doc.scrollLeft);
- }, true);
- option("lineNumbers", false, function (cm, val) {
- cm.display.gutterSpecs = getGutters(cm.options.gutters, val);
- updateGutters(cm);
- }, true);
- option("firstLineNumber", 1, updateGutters, true);
- option("lineNumberFormatter", function (integer) {
- return integer;
- }, updateGutters, true);
- option("showCursorWhenSelecting", false, updateSelection, true);
- option("resetSelectionOnContextMenu", true);
- option("lineWiseCopyCut", true);
- option("pasteLinesPerSelection", true);
- option("selectionsMayTouch", false);
- option("readOnly", false, function (cm, val) {
- if (val == "nocursor") {
- onBlur(cm);
- cm.display.input.blur();
- }
- cm.display.input.readOnlyChanged(val);
- });
- option("screenReaderLabel", null, function (cm, val) {
- val = val === "" ? null : val;
- cm.display.input.screenReaderLabelChanged(val);
- });
- option("disableInput", false, function (cm, val) {
- if (!val) {
- cm.display.input.reset();
- }
- }, true);
- option("dragDrop", true, dragDropChanged);
- option("allowDropFileTypes", null);
- option("cursorBlinkRate", 530);
- option("cursorScrollMargin", 0);
- option("cursorHeight", 1, updateSelection, true);
- option("singleCursorHeightPerLine", true, updateSelection, true);
- option("workTime", 100);
- option("workDelay", 100);
- option("flattenSpans", true, resetModeState, true);
- option("addModeClass", false, resetModeState, true);
- option("pollInterval", 100);
- option("undoDepth", 200, function (cm, val) {
- return cm.doc.history.undoDepth = val;
- });
- option("historyEventDelay", 1250);
- option("viewportMargin", 10, function (cm) {
- return cm.refresh();
- }, true);
- option("maxHighlightLength", 1e4, resetModeState, true);
- option("moveInputWithCursor", true, function (cm, val) {
- if (!val) {
- cm.display.input.resetPosition();
- }
- });
- option("tabindex", null, function (cm, val) {
- return cm.display.input.getField().tabIndex = val || "";
- });
- option("autofocus", null);
- option("direction", "ltr", function (cm, val) {
- return cm.doc.setDirection(val);
- }, true);
- option("phrases", null);
- }
- function dragDropChanged(cm, value, old) {
- var wasOn = old && old != Init;
- if (!value != !wasOn) {
- var funcs = cm.display.dragFunctions;
- var toggle = value ? on : off;
- toggle(cm.display.scroller, "dragstart", funcs.start);
- toggle(cm.display.scroller, "dragenter", funcs.enter);
- toggle(cm.display.scroller, "dragover", funcs.over);
- toggle(cm.display.scroller, "dragleave", funcs.leave);
- toggle(cm.display.scroller, "drop", funcs.drop);
- }
- }
- function wrappingChanged(cm) {
- if (cm.options.lineWrapping) {
- addClass(cm.display.wrapper, "CodeMirror-wrap");
- cm.display.sizer.style.minWidth = "";
- cm.display.sizerWidth = null;
- } else {
- rmClass(cm.display.wrapper, "CodeMirror-wrap");
- findMaxLine(cm);
- }
- estimateLineHeights(cm);
- regChange(cm);
- clearCaches(cm);
- setTimeout(function () {
- return updateScrollbars(cm);
- }, 100);
- }
- function CodeMirror(place, options) {
- var this$1$1 = this;
- if (!(this instanceof CodeMirror)) {
- return new CodeMirror(place, options);
- }
- this.options = options = options ? copyObj(options) : {};
- copyObj(defaults, options, false);
- var doc = options.value;
- if (typeof doc == "string") {
- doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction);
- } else if (options.mode) {
- doc.modeOption = options.mode;
- }
- this.doc = doc;
- var input = new CodeMirror.inputStyles[options.inputStyle](this);
- var display = this.display = new Display(place, doc, input, options);
- display.wrapper.CodeMirror = this;
- themeChanged(this);
- if (options.lineWrapping) {
- this.display.wrapper.className += " CodeMirror-wrap";
- }
- initScrollbars(this);
- this.state = {
- keyMaps: [],
- // stores maps added by addKeyMap
- overlays: [],
- // highlighting overlays, as added by addOverlay
- modeGen: 0,
- // bumped when mode/overlay changes, used to invalidate highlighting info
- overwrite: false,
- delayingBlurEvent: false,
- focused: false,
- suppressEdits: false,
- // used to disable editing during key handlers when in readOnly mode
- pasteIncoming: -1,
- cutIncoming: -1,
- // help recognize paste/cut edits in input.poll
- selectingText: false,
- draggingText: false,
- highlight: new Delayed(),
- // stores highlight worker timeout
- keySeq: null,
- // Unfinished key sequence
- specialChars: null
- };
- if (options.autofocus && !mobile) {
- display.input.focus();
- }
- if (ie && ie_version < 11) {
- setTimeout(function () {
- return this$1$1.display.input.reset(true);
- }, 20);
- }
- registerEventHandlers(this);
- ensureGlobalHandlers();
- startOperation(this);
- this.curOp.forceUpdate = true;
- attachDoc(this, doc);
- if (options.autofocus && !mobile || this.hasFocus()) {
- setTimeout(function () {
- if (this$1$1.hasFocus() && !this$1$1.state.focused) {
- onFocus(this$1$1);
- }
- }, 20);
- } else {
- onBlur(this);
- }
- for (var opt in optionHandlers) {
- if (optionHandlers.hasOwnProperty(opt)) {
- optionHandlers[opt](this, options[opt], Init);
- }
- }
- maybeUpdateLineNumberWidth(this);
- if (options.finishInit) {
- options.finishInit(this);
- }
- for (var i2 = 0; i2 < initHooks.length; ++i2) {
- initHooks[i2](this);
- }
- endOperation(this);
- if (webkit && options.lineWrapping && getComputedStyle(display.lineDiv).textRendering == "optimizelegibility") {
- display.lineDiv.style.textRendering = "auto";
- }
- }
- CodeMirror.defaults = defaults;
- CodeMirror.optionHandlers = optionHandlers;
- function registerEventHandlers(cm) {
- var d = cm.display;
- on(d.scroller, "mousedown", operation(cm, onMouseDown));
- if (ie && ie_version < 11) {
- on(d.scroller, "dblclick", operation(cm, function (e) {
- if (signalDOMEvent(cm, e)) {
- return;
- }
- var pos = posFromMouse(cm, e);
- if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) {
- return;
- }
- e_preventDefault(e);
- var word = cm.findWordAt(pos);
- extendSelection(cm.doc, word.anchor, word.head);
- }));
- } else {
- on(d.scroller, "dblclick", function (e) {
- return signalDOMEvent(cm, e) || e_preventDefault(e);
- });
- }
- on(d.scroller, "contextmenu", function (e) {
- return onContextMenu(cm, e);
- });
- on(d.input.getField(), "contextmenu", function (e) {
- if (!d.scroller.contains(e.target)) {
- onContextMenu(cm, e);
- }
- });
- var touchFinished,
- prevTouch = {
- end: 0
- };
- function finishTouch() {
- if (d.activeTouch) {
- touchFinished = setTimeout(function () {
- return d.activeTouch = null;
- }, 1e3);
- prevTouch = d.activeTouch;
- prevTouch.end = + /* @__PURE__ */new Date();
- }
- }
- function isMouseLikeTouchEvent(e) {
- if (e.touches.length != 1) {
- return false;
- }
- var touch = e.touches[0];
- return touch.radiusX <= 1 && touch.radiusY <= 1;
- }
- function farAway(touch, other) {
- if (other.left == null) {
- return true;
- }
- var dx = other.left - touch.left,
- dy = other.top - touch.top;
- return dx * dx + dy * dy > 20 * 20;
- }
- on(d.scroller, "touchstart", function (e) {
- if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e) && !clickInGutter(cm, e)) {
- d.input.ensurePolled();
- clearTimeout(touchFinished);
- var now = + /* @__PURE__ */new Date();
- d.activeTouch = {
- start: now,
- moved: false,
- prev: now - prevTouch.end <= 300 ? prevTouch : null
- };
- if (e.touches.length == 1) {
- d.activeTouch.left = e.touches[0].pageX;
- d.activeTouch.top = e.touches[0].pageY;
- }
- }
- });
- on(d.scroller, "touchmove", function () {
- if (d.activeTouch) {
- d.activeTouch.moved = true;
- }
- });
- on(d.scroller, "touchend", function (e) {
- var touch = d.activeTouch;
- if (touch && !eventInWidget(d, e) && touch.left != null && !touch.moved && /* @__PURE__ */new Date() - touch.start < 300) {
- var pos = cm.coordsChar(d.activeTouch, "page"),
- range2;
- if (!touch.prev || farAway(touch, touch.prev)) {
- range2 = new Range(pos, pos);
- } else if (!touch.prev.prev || farAway(touch, touch.prev.prev)) {
- range2 = cm.findWordAt(pos);
- } else {
- range2 = new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0)));
- }
- cm.setSelection(range2.anchor, range2.head);
- cm.focus();
- e_preventDefault(e);
- }
- finishTouch();
- });
- on(d.scroller, "touchcancel", finishTouch);
- on(d.scroller, "scroll", function () {
- if (d.scroller.clientHeight) {
- updateScrollTop(cm, d.scroller.scrollTop);
- setScrollLeft(cm, d.scroller.scrollLeft, true);
- signal(cm, "scroll", cm);
- }
- });
- on(d.scroller, "mousewheel", function (e) {
- return onScrollWheel(cm, e);
- });
- on(d.scroller, "DOMMouseScroll", function (e) {
- return onScrollWheel(cm, e);
- });
- on(d.wrapper, "scroll", function () {
- return d.wrapper.scrollTop = d.wrapper.scrollLeft = 0;
- });
- d.dragFunctions = {
- enter: function (e) {
- if (!signalDOMEvent(cm, e)) {
- e_stop(e);
- }
- },
- over: function (e) {
- if (!signalDOMEvent(cm, e)) {
- onDragOver(cm, e);
- e_stop(e);
- }
- },
- start: function (e) {
- return onDragStart(cm, e);
- },
- drop: operation(cm, onDrop),
- leave: function (e) {
- if (!signalDOMEvent(cm, e)) {
- clearDragCursor(cm);
- }
- }
- };
- var inp = d.input.getField();
- on(inp, "keyup", function (e) {
- return onKeyUp.call(cm, e);
- });
- on(inp, "keydown", operation(cm, onKeyDown));
- on(inp, "keypress", operation(cm, onKeyPress));
- on(inp, "focus", function (e) {
- return onFocus(cm, e);
- });
- on(inp, "blur", function (e) {
- return onBlur(cm, e);
- });
- }
- var initHooks = [];
- CodeMirror.defineInitHook = function (f) {
- return initHooks.push(f);
- };
- function indentLine(cm, n, how, aggressive) {
- var doc = cm.doc,
- state;
- if (how == null) {
- how = "add";
- }
- if (how == "smart") {
- if (!doc.mode.indent) {
- how = "prev";
- } else {
- state = getContextBefore(cm, n).state;
- }
- }
- var tabSize = cm.options.tabSize;
- var line = getLine(doc, n),
- curSpace = countColumn(line.text, null, tabSize);
- if (line.stateAfter) {
- line.stateAfter = null;
- }
- var curSpaceString = line.text.match(/^\s*/)[0],
- indentation;
- if (!aggressive && !/\S/.test(line.text)) {
- indentation = 0;
- how = "not";
- } else if (how == "smart") {
- indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);
- if (indentation == Pass || indentation > 150) {
- if (!aggressive) {
- return;
- }
- how = "prev";
- }
- }
- if (how == "prev") {
- if (n > doc.first) {
- indentation = countColumn(getLine(doc, n - 1).text, null, tabSize);
- } else {
- indentation = 0;
- }
- } else if (how == "add") {
- indentation = curSpace + cm.options.indentUnit;
- } else if (how == "subtract") {
- indentation = curSpace - cm.options.indentUnit;
- } else if (typeof how == "number") {
- indentation = curSpace + how;
- }
- indentation = Math.max(0, indentation);
- var indentString = "",
- pos = 0;
- if (cm.options.indentWithTabs) {
- for (var i2 = Math.floor(indentation / tabSize); i2; --i2) {
- pos += tabSize;
- indentString += " ";
- }
- }
- if (pos < indentation) {
- indentString += spaceStr(indentation - pos);
- }
- if (indentString != curSpaceString) {
- replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), "+input");
- line.stateAfter = null;
- return true;
- } else {
- for (var i$12 = 0; i$12 < doc.sel.ranges.length; i$12++) {
- var range2 = doc.sel.ranges[i$12];
- if (range2.head.line == n && range2.head.ch < curSpaceString.length) {
- var pos$1 = Pos(n, curSpaceString.length);
- replaceOneSelection(doc, i$12, new Range(pos$1, pos$1));
- break;
- }
- }
- }
- }
- var lastCopied = null;
- function setLastCopied(newLastCopied) {
- lastCopied = newLastCopied;
- }
- function applyTextInput(cm, inserted, deleted, sel, origin) {
- var doc = cm.doc;
- cm.display.shift = false;
- if (!sel) {
- sel = doc.sel;
- }
- var recent = + /* @__PURE__ */new Date() - 200;
- var paste = origin == "paste" || cm.state.pasteIncoming > recent;
- var textLines = splitLinesAuto(inserted),
- multiPaste = null;
- if (paste && sel.ranges.length > 1) {
- if (lastCopied && lastCopied.text.join("\n") == inserted) {
- if (sel.ranges.length % lastCopied.text.length == 0) {
- multiPaste = [];
- for (var i2 = 0; i2 < lastCopied.text.length; i2++) {
- multiPaste.push(doc.splitLines(lastCopied.text[i2]));
- }
- }
- } else if (textLines.length == sel.ranges.length && cm.options.pasteLinesPerSelection) {
- multiPaste = map(textLines, function (l) {
- return [l];
- });
- }
- }
- var updateInput = cm.curOp.updateInput;
- for (var i$12 = sel.ranges.length - 1; i$12 >= 0; i$12--) {
- var range2 = sel.ranges[i$12];
- var from = range2.from(),
- to = range2.to();
- if (range2.empty()) {
- if (deleted && deleted > 0) {
- from = Pos(from.line, from.ch - deleted);
- } else if (cm.state.overwrite && !paste) {
- to = Pos(to.line, Math.min(getLine(doc, to.line).text.length, to.ch + lst(textLines).length));
- } else if (paste && lastCopied && lastCopied.lineWise && lastCopied.text.join("\n") == textLines.join("\n")) {
- from = to = Pos(from.line, 0);
- }
- }
- var changeEvent = {
- from,
- to,
- text: multiPaste ? multiPaste[i$12 % multiPaste.length] : textLines,
- origin: origin || (paste ? "paste" : cm.state.cutIncoming > recent ? "cut" : "+input")
- };
- makeChange(cm.doc, changeEvent);
- signalLater(cm, "inputRead", cm, changeEvent);
- }
- if (inserted && !paste) {
- triggerElectric(cm, inserted);
- }
- ensureCursorVisible(cm);
- if (cm.curOp.updateInput < 2) {
- cm.curOp.updateInput = updateInput;
- }
- cm.curOp.typing = true;
- cm.state.pasteIncoming = cm.state.cutIncoming = -1;
- }
- function handlePaste(e, cm) {
- var pasted = e.clipboardData && e.clipboardData.getData("Text");
- if (pasted) {
- e.preventDefault();
- if (!cm.isReadOnly() && !cm.options.disableInput) {
- runInOp(cm, function () {
- return applyTextInput(cm, pasted, 0, null, "paste");
- });
- }
- return true;
- }
- }
- function triggerElectric(cm, inserted) {
- if (!cm.options.electricChars || !cm.options.smartIndent) {
- return;
- }
- var sel = cm.doc.sel;
- for (var i2 = sel.ranges.length - 1; i2 >= 0; i2--) {
- var range2 = sel.ranges[i2];
- if (range2.head.ch > 100 || i2 && sel.ranges[i2 - 1].head.line == range2.head.line) {
- continue;
- }
- var mode = cm.getModeAt(range2.head);
- var indented = false;
- if (mode.electricChars) {
- for (var j = 0; j < mode.electricChars.length; j++) {
- if (inserted.indexOf(mode.electricChars.charAt(j)) > -1) {
- indented = indentLine(cm, range2.head.line, "smart");
- break;
- }
- }
- } else if (mode.electricInput) {
- if (mode.electricInput.test(getLine(cm.doc, range2.head.line).text.slice(0, range2.head.ch))) {
- indented = indentLine(cm, range2.head.line, "smart");
- }
- }
- if (indented) {
- signalLater(cm, "electricInput", cm, range2.head.line);
- }
- }
- }
- function copyableRanges(cm) {
- var text = [],
- ranges = [];
- for (var i2 = 0; i2 < cm.doc.sel.ranges.length; i2++) {
- var line = cm.doc.sel.ranges[i2].head.line;
- var lineRange = {
- anchor: Pos(line, 0),
- head: Pos(line + 1, 0)
- };
- ranges.push(lineRange);
- text.push(cm.getRange(lineRange.anchor, lineRange.head));
- }
- return {
- text,
- ranges
- };
- }
- function disableBrowserMagic(field, spellcheck, autocorrect, autocapitalize) {
- field.setAttribute("autocorrect", autocorrect ? "" : "off");
- field.setAttribute("autocapitalize", autocapitalize ? "" : "off");
- field.setAttribute("spellcheck", !!spellcheck);
- }
- function hiddenTextarea() {
- var te = elt("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none");
- var div = elt("div", [te], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");
- if (webkit) {
- te.style.width = "1000px";
- } else {
- te.setAttribute("wrap", "off");
- }
- if (ios) {
- te.style.border = "1px solid black";
- }
- disableBrowserMagic(te);
- return div;
- }
- function addEditorMethods(CodeMirror2) {
- var optionHandlers2 = CodeMirror2.optionHandlers;
- var helpers = CodeMirror2.helpers = {};
- CodeMirror2.prototype = {
- constructor: CodeMirror2,
- focus: function () {
- window.focus();
- this.display.input.focus();
- },
- setOption: function (option, value) {
- var options = this.options,
- old = options[option];
- if (options[option] == value && option != "mode") {
- return;
- }
- options[option] = value;
- if (optionHandlers2.hasOwnProperty(option)) {
- operation(this, optionHandlers2[option])(this, value, old);
- }
- signal(this, "optionChange", this, option);
- },
- getOption: function (option) {
- return this.options[option];
- },
- getDoc: function () {
- return this.doc;
- },
- addKeyMap: function (map2, bottom) {
- this.state.keyMaps[bottom ? "push" : "unshift"](getKeyMap(map2));
- },
- removeKeyMap: function (map2) {
- var maps = this.state.keyMaps;
- for (var i2 = 0; i2 < maps.length; ++i2) {
- if (maps[i2] == map2 || maps[i2].name == map2) {
- maps.splice(i2, 1);
- return true;
- }
- }
- },
- addOverlay: methodOp(function (spec, options) {
- var mode = spec.token ? spec : CodeMirror2.getMode(this.options, spec);
- if (mode.startState) {
- throw new Error("Overlays may not be stateful.");
- }
- insertSorted(this.state.overlays, {
- mode,
- modeSpec: spec,
- opaque: options && options.opaque,
- priority: options && options.priority || 0
- }, function (overlay) {
- return overlay.priority;
- });
- this.state.modeGen++;
- regChange(this);
- }),
- removeOverlay: methodOp(function (spec) {
- var overlays = this.state.overlays;
- for (var i2 = 0; i2 < overlays.length; ++i2) {
- var cur = overlays[i2].modeSpec;
- if (cur == spec || typeof spec == "string" && cur.name == spec) {
- overlays.splice(i2, 1);
- this.state.modeGen++;
- regChange(this);
- return;
- }
- }
- }),
- indentLine: methodOp(function (n, dir, aggressive) {
- if (typeof dir != "string" && typeof dir != "number") {
- if (dir == null) {
- dir = this.options.smartIndent ? "smart" : "prev";
- } else {
- dir = dir ? "add" : "subtract";
- }
- }
- if (isLine(this.doc, n)) {
- indentLine(this, n, dir, aggressive);
- }
- }),
- indentSelection: methodOp(function (how) {
- var ranges = this.doc.sel.ranges,
- end = -1;
- for (var i2 = 0; i2 < ranges.length; i2++) {
- var range2 = ranges[i2];
- if (!range2.empty()) {
- var from = range2.from(),
- to = range2.to();
- var start = Math.max(end, from.line);
- end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;
- for (var j = start; j < end; ++j) {
- indentLine(this, j, how);
- }
- var newRanges = this.doc.sel.ranges;
- if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i2].from().ch > 0) {
- replaceOneSelection(this.doc, i2, new Range(from, newRanges[i2].to()), sel_dontScroll);
- }
- } else if (range2.head.line > end) {
- indentLine(this, range2.head.line, how, true);
- end = range2.head.line;
- if (i2 == this.doc.sel.primIndex) {
- ensureCursorVisible(this);
- }
- }
- }
- }),
- // Fetch the parser token for a given character. Useful for hacks
- // that want to inspect the mode state (say, for completion).
- getTokenAt: function (pos, precise) {
- return takeToken(this, pos, precise);
- },
- getLineTokens: function (line, precise) {
- return takeToken(this, Pos(line), precise, true);
- },
- getTokenTypeAt: function (pos) {
- pos = clipPos(this.doc, pos);
- var styles = getLineStyles(this, getLine(this.doc, pos.line));
- var before = 0,
- after = (styles.length - 1) / 2,
- ch = pos.ch;
- var type;
- if (ch == 0) {
- type = styles[2];
- } else {
- for (;;) {
- var mid = before + after >> 1;
- if ((mid ? styles[mid * 2 - 1] : 0) >= ch) {
- after = mid;
- } else if (styles[mid * 2 + 1] < ch) {
- before = mid + 1;
- } else {
- type = styles[mid * 2 + 2];
- break;
- }
- }
- }
- var cut = type ? type.indexOf("overlay ") : -1;
- return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1);
- },
- getModeAt: function (pos) {
- var mode = this.doc.mode;
- if (!mode.innerMode) {
- return mode;
- }
- return CodeMirror2.innerMode(mode, this.getTokenAt(pos).state).mode;
- },
- getHelper: function (pos, type) {
- return this.getHelpers(pos, type)[0];
- },
- getHelpers: function (pos, type) {
- var found = [];
- if (!helpers.hasOwnProperty(type)) {
- return found;
- }
- var help = helpers[type],
- mode = this.getModeAt(pos);
- if (typeof mode[type] == "string") {
- if (help[mode[type]]) {
- found.push(help[mode[type]]);
- }
- } else if (mode[type]) {
- for (var i2 = 0; i2 < mode[type].length; i2++) {
- var val = help[mode[type][i2]];
- if (val) {
- found.push(val);
- }
- }
- } else if (mode.helperType && help[mode.helperType]) {
- found.push(help[mode.helperType]);
- } else if (help[mode.name]) {
- found.push(help[mode.name]);
- }
- for (var i$12 = 0; i$12 < help._global.length; i$12++) {
- var cur = help._global[i$12];
- if (cur.pred(mode, this) && indexOf(found, cur.val) == -1) {
- found.push(cur.val);
- }
- }
- return found;
- },
- getStateAfter: function (line, precise) {
- var doc = this.doc;
- line = clipLine(doc, line == null ? doc.first + doc.size - 1 : line);
- return getContextBefore(this, line + 1, precise).state;
- },
- cursorCoords: function (start, mode) {
- var pos,
- range2 = this.doc.sel.primary();
- if (start == null) {
- pos = range2.head;
- } else if (typeof start == "object") {
- pos = clipPos(this.doc, start);
- } else {
- pos = start ? range2.from() : range2.to();
- }
- return cursorCoords(this, pos, mode || "page");
- },
- charCoords: function (pos, mode) {
- return charCoords(this, clipPos(this.doc, pos), mode || "page");
- },
- coordsChar: function (coords, mode) {
- coords = fromCoordSystem(this, coords, mode || "page");
- return coordsChar(this, coords.left, coords.top);
- },
- lineAtHeight: function (height, mode) {
- height = fromCoordSystem(this, {
- top: height,
- left: 0
- }, mode || "page").top;
- return lineAtHeight(this.doc, height + this.display.viewOffset);
- },
- heightAtLine: function (line, mode, includeWidgets) {
- var end = false,
- lineObj;
- if (typeof line == "number") {
- var last = this.doc.first + this.doc.size - 1;
- if (line < this.doc.first) {
- line = this.doc.first;
- } else if (line > last) {
- line = last;
- end = true;
- }
- lineObj = getLine(this.doc, line);
- } else {
- lineObj = line;
- }
- return intoCoordSystem(this, lineObj, {
- top: 0,
- left: 0
- }, mode || "page", includeWidgets || end).top + (end ? this.doc.height - heightAtLine(lineObj) : 0);
- },
- defaultTextHeight: function () {
- return textHeight(this.display);
- },
- defaultCharWidth: function () {
- return charWidth(this.display);
- },
- getViewport: function () {
- return {
- from: this.display.viewFrom,
- to: this.display.viewTo
- };
- },
- addWidget: function (pos, node, scroll, vert, horiz) {
- var display = this.display;
- pos = cursorCoords(this, clipPos(this.doc, pos));
- var top = pos.bottom,
- left = pos.left;
- node.style.position = "absolute";
- node.setAttribute("cm-ignore-events", "true");
- this.display.input.setUneditable(node);
- display.sizer.appendChild(node);
- if (vert == "over") {
- top = pos.top;
- } else if (vert == "above" || vert == "near") {
- var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),
- hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);
- if ((vert == "above" || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight) {
- top = pos.top - node.offsetHeight;
- } else if (pos.bottom + node.offsetHeight <= vspace) {
- top = pos.bottom;
- }
- if (left + node.offsetWidth > hspace) {
- left = hspace - node.offsetWidth;
- }
- }
- node.style.top = top + "px";
- node.style.left = node.style.right = "";
- if (horiz == "right") {
- left = display.sizer.clientWidth - node.offsetWidth;
- node.style.right = "0px";
- } else {
- if (horiz == "left") {
- left = 0;
- } else if (horiz == "middle") {
- left = (display.sizer.clientWidth - node.offsetWidth) / 2;
- }
- node.style.left = left + "px";
- }
- if (scroll) {
- scrollIntoView(this, {
- left,
- top,
- right: left + node.offsetWidth,
- bottom: top + node.offsetHeight
- });
- }
- },
- triggerOnKeyDown: methodOp(onKeyDown),
- triggerOnKeyPress: methodOp(onKeyPress),
- triggerOnKeyUp: onKeyUp,
- triggerOnMouseDown: methodOp(onMouseDown),
- execCommand: function (cmd) {
- if (commands.hasOwnProperty(cmd)) {
- return commands[cmd].call(null, this);
- }
- },
- triggerElectric: methodOp(function (text) {
- triggerElectric(this, text);
- }),
- findPosH: function (from, amount, unit, visually) {
- var dir = 1;
- if (amount < 0) {
- dir = -1;
- amount = -amount;
- }
- var cur = clipPos(this.doc, from);
- for (var i2 = 0; i2 < amount; ++i2) {
- cur = findPosH(this.doc, cur, dir, unit, visually);
- if (cur.hitSide) {
- break;
- }
- }
- return cur;
- },
- moveH: methodOp(function (dir, unit) {
- var this$1$1 = this;
- this.extendSelectionsBy(function (range2) {
- if (this$1$1.display.shift || this$1$1.doc.extend || range2.empty()) {
- return findPosH(this$1$1.doc, range2.head, dir, unit, this$1$1.options.rtlMoveVisually);
- } else {
- return dir < 0 ? range2.from() : range2.to();
- }
- }, sel_move);
- }),
- deleteH: methodOp(function (dir, unit) {
- var sel = this.doc.sel,
- doc = this.doc;
- if (sel.somethingSelected()) {
- doc.replaceSelection("", null, "+delete");
- } else {
- deleteNearSelection(this, function (range2) {
- var other = findPosH(doc, range2.head, dir, unit, false);
- return dir < 0 ? {
- from: other,
- to: range2.head
- } : {
- from: range2.head,
- to: other
- };
- });
- }
- }),
- findPosV: function (from, amount, unit, goalColumn) {
- var dir = 1,
- x = goalColumn;
- if (amount < 0) {
- dir = -1;
- amount = -amount;
- }
- var cur = clipPos(this.doc, from);
- for (var i2 = 0; i2 < amount; ++i2) {
- var coords = cursorCoords(this, cur, "div");
- if (x == null) {
- x = coords.left;
- } else {
- coords.left = x;
- }
- cur = findPosV(this, coords, dir, unit);
- if (cur.hitSide) {
- break;
- }
- }
- return cur;
- },
- moveV: methodOp(function (dir, unit) {
- var this$1$1 = this;
- var doc = this.doc,
- goals = [];
- var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();
- doc.extendSelectionsBy(function (range2) {
- if (collapse) {
- return dir < 0 ? range2.from() : range2.to();
- }
- var headPos = cursorCoords(this$1$1, range2.head, "div");
- if (range2.goalColumn != null) {
- headPos.left = range2.goalColumn;
- }
- goals.push(headPos.left);
- var pos = findPosV(this$1$1, headPos, dir, unit);
- if (unit == "page" && range2 == doc.sel.primary()) {
- addToScrollTop(this$1$1, charCoords(this$1$1, pos, "div").top - headPos.top);
- }
- return pos;
- }, sel_move);
- if (goals.length) {
- for (var i2 = 0; i2 < doc.sel.ranges.length; i2++) {
- doc.sel.ranges[i2].goalColumn = goals[i2];
- }
- }
- }),
- // Find the word at the given position (as returned by coordsChar).
- findWordAt: function (pos) {
- var doc = this.doc,
- line = getLine(doc, pos.line).text;
- var start = pos.ch,
- end = pos.ch;
- if (line) {
- var helper = this.getHelper(pos, "wordChars");
- if ((pos.sticky == "before" || end == line.length) && start) {
- --start;
- } else {
- ++end;
- }
- var startChar = line.charAt(start);
- var check = isWordChar(startChar, helper) ? function (ch) {
- return isWordChar(ch, helper);
- } : /\s/.test(startChar) ? function (ch) {
- return /\s/.test(ch);
- } : function (ch) {
- return !/\s/.test(ch) && !isWordChar(ch);
- };
- while (start > 0 && check(line.charAt(start - 1))) {
- --start;
- }
- while (end < line.length && check(line.charAt(end))) {
- ++end;
- }
- }
- return new Range(Pos(pos.line, start), Pos(pos.line, end));
- },
- toggleOverwrite: function (value) {
- if (value != null && value == this.state.overwrite) {
- return;
- }
- if (this.state.overwrite = !this.state.overwrite) {
- addClass(this.display.cursorDiv, "CodeMirror-overwrite");
- } else {
- rmClass(this.display.cursorDiv, "CodeMirror-overwrite");
- }
- signal(this, "overwriteToggle", this, this.state.overwrite);
- },
- hasFocus: function () {
- return this.display.input.getField() == activeElt();
- },
- isReadOnly: function () {
- return !!(this.options.readOnly || this.doc.cantEdit);
- },
- scrollTo: methodOp(function (x, y) {
- scrollToCoords(this, x, y);
- }),
- getScrollInfo: function () {
- var scroller = this.display.scroller;
- return {
- left: scroller.scrollLeft,
- top: scroller.scrollTop,
- height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,
- width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,
- clientHeight: displayHeight(this),
- clientWidth: displayWidth(this)
- };
- },
- scrollIntoView: methodOp(function (range2, margin) {
- if (range2 == null) {
- range2 = {
- from: this.doc.sel.primary().head,
- to: null
- };
- if (margin == null) {
- margin = this.options.cursorScrollMargin;
- }
- } else if (typeof range2 == "number") {
- range2 = {
- from: Pos(range2, 0),
- to: null
- };
- } else if (range2.from == null) {
- range2 = {
- from: range2,
- to: null
- };
- }
- if (!range2.to) {
- range2.to = range2.from;
- }
- range2.margin = margin || 0;
- if (range2.from.line != null) {
- scrollToRange(this, range2);
- } else {
- scrollToCoordsRange(this, range2.from, range2.to, range2.margin);
- }
- }),
- setSize: methodOp(function (width, height) {
- var this$1$1 = this;
- var interpret = function (val) {
- return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val;
- };
- if (width != null) {
- this.display.wrapper.style.width = interpret(width);
- }
- if (height != null) {
- this.display.wrapper.style.height = interpret(height);
- }
- if (this.options.lineWrapping) {
- clearLineMeasurementCache(this);
- }
- var lineNo2 = this.display.viewFrom;
- this.doc.iter(lineNo2, this.display.viewTo, function (line) {
- if (line.widgets) {
- for (var i2 = 0; i2 < line.widgets.length; i2++) {
- if (line.widgets[i2].noHScroll) {
- regLineChange(this$1$1, lineNo2, "widget");
- break;
- }
- }
- }
- ++lineNo2;
- });
- this.curOp.forceUpdate = true;
- signal(this, "refresh", this);
- }),
- operation: function (f) {
- return runInOp(this, f);
- },
- startOperation: function () {
- return startOperation(this);
- },
- endOperation: function () {
- return endOperation(this);
- },
- refresh: methodOp(function () {
- var oldHeight = this.display.cachedTextHeight;
- regChange(this);
- this.curOp.forceUpdate = true;
- clearCaches(this);
- scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);
- updateGutterSpace(this.display);
- if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > 0.5 || this.options.lineWrapping) {
- estimateLineHeights(this);
- }
- signal(this, "refresh", this);
- }),
- swapDoc: methodOp(function (doc) {
- var old = this.doc;
- old.cm = null;
- if (this.state.selectingText) {
- this.state.selectingText();
- }
- attachDoc(this, doc);
- clearCaches(this);
- this.display.input.reset();
- scrollToCoords(this, doc.scrollLeft, doc.scrollTop);
- this.curOp.forceScroll = true;
- signalLater(this, "swapDoc", this, old);
- return old;
- }),
- phrase: function (phraseText) {
- var phrases = this.options.phrases;
- return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText;
- },
- getInputField: function () {
- return this.display.input.getField();
- },
- getWrapperElement: function () {
- return this.display.wrapper;
- },
- getScrollerElement: function () {
- return this.display.scroller;
- },
- getGutterElement: function () {
- return this.display.gutters;
- }
- };
- eventMixin(CodeMirror2);
- CodeMirror2.registerHelper = function (type, name, value) {
- if (!helpers.hasOwnProperty(type)) {
- helpers[type] = CodeMirror2[type] = {
- _global: []
- };
- }
- helpers[type][name] = value;
- };
- CodeMirror2.registerGlobalHelper = function (type, name, predicate, value) {
- CodeMirror2.registerHelper(type, name, value);
- helpers[type]._global.push({
- pred: predicate,
- val: value
- });
- };
- }
- function findPosH(doc, pos, dir, unit, visually) {
- var oldPos = pos;
- var origDir = dir;
- var lineObj = getLine(doc, pos.line);
- var lineDir = visually && doc.direction == "rtl" ? -dir : dir;
- function findNextLine() {
- var l = pos.line + lineDir;
- if (l < doc.first || l >= doc.first + doc.size) {
- return false;
- }
- pos = new Pos(l, pos.ch, pos.sticky);
- return lineObj = getLine(doc, l);
- }
- function moveOnce(boundToLine) {
- var next;
- if (unit == "codepoint") {
- var ch = lineObj.text.charCodeAt(pos.ch + (dir > 0 ? 0 : -1));
- if (isNaN(ch)) {
- next = null;
- } else {
- var astral = dir > 0 ? ch >= 55296 && ch < 56320 : ch >= 56320 && ch < 57343;
- next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (astral ? 2 : 1))), -dir);
- }
- } else if (visually) {
- next = moveVisually(doc.cm, lineObj, pos, dir);
- } else {
- next = moveLogically(lineObj, pos, dir);
- }
- if (next == null) {
- if (!boundToLine && findNextLine()) {
- pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir);
- } else {
- return false;
- }
- } else {
- pos = next;
- }
- return true;
- }
- if (unit == "char" || unit == "codepoint") {
- moveOnce();
- } else if (unit == "column") {
- moveOnce(true);
- } else if (unit == "word" || unit == "group") {
- var sawType = null,
- group = unit == "group";
- var helper = doc.cm && doc.cm.getHelper(pos, "wordChars");
- for (var first = true;; first = false) {
- if (dir < 0 && !moveOnce(!first)) {
- break;
- }
- var cur = lineObj.text.charAt(pos.ch) || "\n";
- var type = isWordChar(cur, helper) ? "w" : group && cur == "\n" ? "n" : !group || /\s/.test(cur) ? null : "p";
- if (group && !first && !type) {
- type = "s";
- }
- if (sawType && sawType != type) {
- if (dir < 0) {
- dir = 1;
- moveOnce();
- pos.sticky = "after";
- }
- break;
- }
- if (type) {
- sawType = type;
- }
- if (dir > 0 && !moveOnce(!first)) {
- break;
- }
- }
- }
- var result = skipAtomic(doc, pos, oldPos, origDir, true);
- if (equalCursorPos(oldPos, result)) {
- result.hitSide = true;
- }
- return result;
- }
- function findPosV(cm, pos, dir, unit) {
- var doc = cm.doc,
- x = pos.left,
- y;
- if (unit == "page") {
- var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);
- var moveAmount = Math.max(pageSize - 0.5 * textHeight(cm.display), 3);
- y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;
- } else if (unit == "line") {
- y = dir > 0 ? pos.bottom + 3 : pos.top - 3;
- }
- var target;
- for (;;) {
- target = coordsChar(cm, x, y);
- if (!target.outside) {
- break;
- }
- if (dir < 0 ? y <= 0 : y >= doc.height) {
- target.hitSide = true;
- break;
- }
- y += dir * 5;
- }
- return target;
- }
- var ContentEditableInput = function (cm) {
- this.cm = cm;
- this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null;
- this.polling = new Delayed();
- this.composing = null;
- this.gracePeriod = false;
- this.readDOMTimeout = null;
- };
- ContentEditableInput.prototype.init = function (display) {
- var this$1$1 = this;
- var input = this,
- cm = input.cm;
- var div = input.div = display.lineDiv;
- div.contentEditable = true;
- disableBrowserMagic(div, cm.options.spellcheck, cm.options.autocorrect, cm.options.autocapitalize);
- function belongsToInput(e) {
- for (var t = e.target; t; t = t.parentNode) {
- if (t == div) {
- return true;
- }
- if (/\bCodeMirror-(?:line)?widget\b/.test(t.className)) {
- break;
- }
- }
- return false;
- }
- on(div, "paste", function (e) {
- if (!belongsToInput(e) || signalDOMEvent(cm, e) || handlePaste(e, cm)) {
- return;
- }
- if (ie_version <= 11) {
- setTimeout(operation(cm, function () {
- return this$1$1.updateFromDOM();
- }), 20);
- }
- });
- on(div, "compositionstart", function (e) {
- this$1$1.composing = {
- data: e.data,
- done: false
- };
- });
- on(div, "compositionupdate", function (e) {
- if (!this$1$1.composing) {
- this$1$1.composing = {
- data: e.data,
- done: false
- };
- }
- });
- on(div, "compositionend", function (e) {
- if (this$1$1.composing) {
- if (e.data != this$1$1.composing.data) {
- this$1$1.readFromDOMSoon();
- }
- this$1$1.composing.done = true;
- }
- });
- on(div, "touchstart", function () {
- return input.forceCompositionEnd();
- });
- on(div, "input", function () {
- if (!this$1$1.composing) {
- this$1$1.readFromDOMSoon();
- }
- });
- function onCopyCut(e) {
- if (!belongsToInput(e) || signalDOMEvent(cm, e)) {
- return;
- }
- if (cm.somethingSelected()) {
- setLastCopied({
- lineWise: false,
- text: cm.getSelections()
- });
- if (e.type == "cut") {
- cm.replaceSelection("", null, "cut");
- }
- } else if (!cm.options.lineWiseCopyCut) {
- return;
- } else {
- var ranges = copyableRanges(cm);
- setLastCopied({
- lineWise: true,
- text: ranges.text
- });
- if (e.type == "cut") {
- cm.operation(function () {
- cm.setSelections(ranges.ranges, 0, sel_dontScroll);
- cm.replaceSelection("", null, "cut");
- });
- }
- }
- if (e.clipboardData) {
- e.clipboardData.clearData();
- var content = lastCopied.text.join("\n");
- e.clipboardData.setData("Text", content);
- if (e.clipboardData.getData("Text") == content) {
- e.preventDefault();
- return;
- }
- }
- var kludge = hiddenTextarea(),
- te = kludge.firstChild;
- cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);
- te.value = lastCopied.text.join("\n");
- var hadFocus = activeElt();
- selectInput(te);
- setTimeout(function () {
- cm.display.lineSpace.removeChild(kludge);
- hadFocus.focus();
- if (hadFocus == div) {
- input.showPrimarySelection();
- }
- }, 50);
- }
- on(div, "copy", onCopyCut);
- on(div, "cut", onCopyCut);
- };
- ContentEditableInput.prototype.screenReaderLabelChanged = function (label) {
- if (label) {
- this.div.setAttribute("aria-label", label);
- } else {
- this.div.removeAttribute("aria-label");
- }
- };
- ContentEditableInput.prototype.prepareSelection = function () {
- var result = prepareSelection(this.cm, false);
- result.focus = activeElt() == this.div;
- return result;
- };
- ContentEditableInput.prototype.showSelection = function (info, takeFocus) {
- if (!info || !this.cm.display.view.length) {
- return;
- }
- if (info.focus || takeFocus) {
- this.showPrimarySelection();
- }
- this.showMultipleSelections(info);
- };
- ContentEditableInput.prototype.getSelection = function () {
- return this.cm.display.wrapper.ownerDocument.getSelection();
- };
- ContentEditableInput.prototype.showPrimarySelection = function () {
- var sel = this.getSelection(),
- cm = this.cm,
- prim = cm.doc.sel.primary();
- var from = prim.from(),
- to = prim.to();
- if (cm.display.viewTo == cm.display.viewFrom || from.line >= cm.display.viewTo || to.line < cm.display.viewFrom) {
- sel.removeAllRanges();
- return;
- }
- var curAnchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);
- var curFocus = domToPos(cm, sel.focusNode, sel.focusOffset);
- if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad && cmp(minPos(curAnchor, curFocus), from) == 0 && cmp(maxPos(curAnchor, curFocus), to) == 0) {
- return;
- }
- var view = cm.display.view;
- var start = from.line >= cm.display.viewFrom && posToDOM(cm, from) || {
- node: view[0].measure.map[2],
- offset: 0
- };
- var end = to.line < cm.display.viewTo && posToDOM(cm, to);
- if (!end) {
- var measure = view[view.length - 1].measure;
- var map2 = measure.maps ? measure.maps[measure.maps.length - 1] : measure.map;
- end = {
- node: map2[map2.length - 1],
- offset: map2[map2.length - 2] - map2[map2.length - 3]
- };
- }
- if (!start || !end) {
- sel.removeAllRanges();
- return;
- }
- var old = sel.rangeCount && sel.getRangeAt(0),
- rng;
- try {
- rng = range(start.node, start.offset, end.offset, end.node);
- } catch (e) {}
- if (rng) {
- if (!gecko && cm.state.focused) {
- sel.collapse(start.node, start.offset);
- if (!rng.collapsed) {
- sel.removeAllRanges();
- sel.addRange(rng);
- }
- } else {
- sel.removeAllRanges();
- sel.addRange(rng);
- }
- if (old && sel.anchorNode == null) {
- sel.addRange(old);
- } else if (gecko) {
- this.startGracePeriod();
- }
- }
- this.rememberSelection();
- };
- ContentEditableInput.prototype.startGracePeriod = function () {
- var this$1$1 = this;
- clearTimeout(this.gracePeriod);
- this.gracePeriod = setTimeout(function () {
- this$1$1.gracePeriod = false;
- if (this$1$1.selectionChanged()) {
- this$1$1.cm.operation(function () {
- return this$1$1.cm.curOp.selectionChanged = true;
- });
- }
- }, 20);
- };
- ContentEditableInput.prototype.showMultipleSelections = function (info) {
- removeChildrenAndAdd(this.cm.display.cursorDiv, info.cursors);
- removeChildrenAndAdd(this.cm.display.selectionDiv, info.selection);
- };
- ContentEditableInput.prototype.rememberSelection = function () {
- var sel = this.getSelection();
- this.lastAnchorNode = sel.anchorNode;
- this.lastAnchorOffset = sel.anchorOffset;
- this.lastFocusNode = sel.focusNode;
- this.lastFocusOffset = sel.focusOffset;
- };
- ContentEditableInput.prototype.selectionInEditor = function () {
- var sel = this.getSelection();
- if (!sel.rangeCount) {
- return false;
- }
- var node = sel.getRangeAt(0).commonAncestorContainer;
- return contains(this.div, node);
- };
- ContentEditableInput.prototype.focus = function () {
- if (this.cm.options.readOnly != "nocursor") {
- if (!this.selectionInEditor() || activeElt() != this.div) {
- this.showSelection(this.prepareSelection(), true);
- }
- this.div.focus();
- }
- };
- ContentEditableInput.prototype.blur = function () {
- this.div.blur();
- };
- ContentEditableInput.prototype.getField = function () {
- return this.div;
- };
- ContentEditableInput.prototype.supportsTouch = function () {
- return true;
- };
- ContentEditableInput.prototype.receivedFocus = function () {
- var this$1$1 = this;
- var input = this;
- if (this.selectionInEditor()) {
- setTimeout(function () {
- return this$1$1.pollSelection();
- }, 20);
- } else {
- runInOp(this.cm, function () {
- return input.cm.curOp.selectionChanged = true;
- });
- }
- function poll() {
- if (input.cm.state.focused) {
- input.pollSelection();
- input.polling.set(input.cm.options.pollInterval, poll);
- }
- }
- this.polling.set(this.cm.options.pollInterval, poll);
- };
- ContentEditableInput.prototype.selectionChanged = function () {
- var sel = this.getSelection();
- return sel.anchorNode != this.lastAnchorNode || sel.anchorOffset != this.lastAnchorOffset || sel.focusNode != this.lastFocusNode || sel.focusOffset != this.lastFocusOffset;
- };
- ContentEditableInput.prototype.pollSelection = function () {
- if (this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged()) {
- return;
- }
- var sel = this.getSelection(),
- cm = this.cm;
- if (android && chrome && this.cm.display.gutterSpecs.length && isInGutter(sel.anchorNode)) {
- this.cm.triggerOnKeyDown({
- type: "keydown",
- keyCode: 8,
- preventDefault: Math.abs
- });
- this.blur();
- this.focus();
- return;
- }
- if (this.composing) {
- return;
- }
- this.rememberSelection();
- var anchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);
- var head = domToPos(cm, sel.focusNode, sel.focusOffset);
- if (anchor && head) {
- runInOp(cm, function () {
- setSelection(cm.doc, simpleSelection(anchor, head), sel_dontScroll);
- if (anchor.bad || head.bad) {
- cm.curOp.selectionChanged = true;
- }
- });
- }
- };
- ContentEditableInput.prototype.pollContent = function () {
- if (this.readDOMTimeout != null) {
- clearTimeout(this.readDOMTimeout);
- this.readDOMTimeout = null;
- }
- var cm = this.cm,
- display = cm.display,
- sel = cm.doc.sel.primary();
- var from = sel.from(),
- to = sel.to();
- if (from.ch == 0 && from.line > cm.firstLine()) {
- from = Pos(from.line - 1, getLine(cm.doc, from.line - 1).length);
- }
- if (to.ch == getLine(cm.doc, to.line).text.length && to.line < cm.lastLine()) {
- to = Pos(to.line + 1, 0);
- }
- if (from.line < display.viewFrom || to.line > display.viewTo - 1) {
- return false;
- }
- var fromIndex, fromLine, fromNode;
- if (from.line == display.viewFrom || (fromIndex = findViewIndex(cm, from.line)) == 0) {
- fromLine = lineNo(display.view[0].line);
- fromNode = display.view[0].node;
- } else {
- fromLine = lineNo(display.view[fromIndex].line);
- fromNode = display.view[fromIndex - 1].node.nextSibling;
- }
- var toIndex = findViewIndex(cm, to.line);
- var toLine, toNode;
- if (toIndex == display.view.length - 1) {
- toLine = display.viewTo - 1;
- toNode = display.lineDiv.lastChild;
- } else {
- toLine = lineNo(display.view[toIndex + 1].line) - 1;
- toNode = display.view[toIndex + 1].node.previousSibling;
- }
- if (!fromNode) {
- return false;
- }
- var newText = cm.doc.splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine));
- var oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length));
- while (newText.length > 1 && oldText.length > 1) {
- if (lst(newText) == lst(oldText)) {
- newText.pop();
- oldText.pop();
- toLine--;
- } else if (newText[0] == oldText[0]) {
- newText.shift();
- oldText.shift();
- fromLine++;
- } else {
- break;
- }
- }
- var cutFront = 0,
- cutEnd = 0;
- var newTop = newText[0],
- oldTop = oldText[0],
- maxCutFront = Math.min(newTop.length, oldTop.length);
- while (cutFront < maxCutFront && newTop.charCodeAt(cutFront) == oldTop.charCodeAt(cutFront)) {
- ++cutFront;
- }
- var newBot = lst(newText),
- oldBot = lst(oldText);
- var maxCutEnd = Math.min(newBot.length - (newText.length == 1 ? cutFront : 0), oldBot.length - (oldText.length == 1 ? cutFront : 0));
- while (cutEnd < maxCutEnd && newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1)) {
- ++cutEnd;
- }
- if (newText.length == 1 && oldText.length == 1 && fromLine == from.line) {
- while (cutFront && cutFront > from.ch && newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1)) {
- cutFront--;
- cutEnd++;
- }
- }
- newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd).replace(/^\u200b+/, "");
- newText[0] = newText[0].slice(cutFront).replace(/\u200b+$/, "");
- var chFrom = Pos(fromLine, cutFront);
- var chTo = Pos(toLine, oldText.length ? lst(oldText).length - cutEnd : 0);
- if (newText.length > 1 || newText[0] || cmp(chFrom, chTo)) {
- replaceRange(cm.doc, newText, chFrom, chTo, "+input");
- return true;
- }
- };
- ContentEditableInput.prototype.ensurePolled = function () {
- this.forceCompositionEnd();
- };
- ContentEditableInput.prototype.reset = function () {
- this.forceCompositionEnd();
- };
- ContentEditableInput.prototype.forceCompositionEnd = function () {
- if (!this.composing) {
- return;
- }
- clearTimeout(this.readDOMTimeout);
- this.composing = null;
- this.updateFromDOM();
- this.div.blur();
- this.div.focus();
- };
- ContentEditableInput.prototype.readFromDOMSoon = function () {
- var this$1$1 = this;
- if (this.readDOMTimeout != null) {
- return;
- }
- this.readDOMTimeout = setTimeout(function () {
- this$1$1.readDOMTimeout = null;
- if (this$1$1.composing) {
- if (this$1$1.composing.done) {
- this$1$1.composing = null;
- } else {
- return;
- }
- }
- this$1$1.updateFromDOM();
- }, 80);
- };
- ContentEditableInput.prototype.updateFromDOM = function () {
- var this$1$1 = this;
- if (this.cm.isReadOnly() || !this.pollContent()) {
- runInOp(this.cm, function () {
- return regChange(this$1$1.cm);
- });
- }
- };
- ContentEditableInput.prototype.setUneditable = function (node) {
- node.contentEditable = "false";
- };
- ContentEditableInput.prototype.onKeyPress = function (e) {
- if (e.charCode == 0 || this.composing) {
- return;
- }
- e.preventDefault();
- if (!this.cm.isReadOnly()) {
- operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0);
- }
- };
- ContentEditableInput.prototype.readOnlyChanged = function (val) {
- this.div.contentEditable = String(val != "nocursor");
- };
- ContentEditableInput.prototype.onContextMenu = function () {};
- ContentEditableInput.prototype.resetPosition = function () {};
- ContentEditableInput.prototype.needsContentAttribute = true;
- function posToDOM(cm, pos) {
- var view = findViewForLine(cm, pos.line);
- if (!view || view.hidden) {
- return null;
- }
- var line = getLine(cm.doc, pos.line);
- var info = mapFromLineView(view, line, pos.line);
- var order = getOrder(line, cm.doc.direction),
- side = "left";
- if (order) {
- var partPos = getBidiPartAt(order, pos.ch);
- side = partPos % 2 ? "right" : "left";
- }
- var result = nodeAndOffsetInLineMap(info.map, pos.ch, side);
- result.offset = result.collapse == "right" ? result.end : result.start;
- return result;
- }
- function isInGutter(node) {
- for (var scan = node; scan; scan = scan.parentNode) {
- if (/CodeMirror-gutter-wrapper/.test(scan.className)) {
- return true;
- }
- }
- return false;
- }
- function badPos(pos, bad) {
- if (bad) {
- pos.bad = true;
- }
- return pos;
- }
- function domTextBetween(cm, from, to, fromLine, toLine) {
- var text = "",
- closing = false,
- lineSep = cm.doc.lineSeparator(),
- extraLinebreak = false;
- function recognizeMarker(id) {
- return function (marker) {
- return marker.id == id;
- };
- }
- function close() {
- if (closing) {
- text += lineSep;
- if (extraLinebreak) {
- text += lineSep;
- }
- closing = extraLinebreak = false;
- }
- }
- function addText(str) {
- if (str) {
- close();
- text += str;
- }
- }
- function walk(node) {
- if (node.nodeType == 1) {
- var cmText = node.getAttribute("cm-text");
- if (cmText) {
- addText(cmText);
- return;
- }
- var markerID = node.getAttribute("cm-marker"),
- range2;
- if (markerID) {
- var found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), recognizeMarker(+markerID));
- if (found.length && (range2 = found[0].find(0))) {
- addText(getBetween(cm.doc, range2.from, range2.to).join(lineSep));
- }
- return;
- }
- if (node.getAttribute("contenteditable") == "false") {
- return;
- }
- var isBlock = /^(pre|div|p|li|table|br)$/i.test(node.nodeName);
- if (!/^br$/i.test(node.nodeName) && node.textContent.length == 0) {
- return;
- }
- if (isBlock) {
- close();
- }
- for (var i2 = 0; i2 < node.childNodes.length; i2++) {
- walk(node.childNodes[i2]);
- }
- if (/^(pre|p)$/i.test(node.nodeName)) {
- extraLinebreak = true;
- }
- if (isBlock) {
- closing = true;
- }
- } else if (node.nodeType == 3) {
- addText(node.nodeValue.replace(/\u200b/g, "").replace(/\u00a0/g, " "));
- }
- }
- for (;;) {
- walk(from);
- if (from == to) {
- break;
- }
- from = from.nextSibling;
- extraLinebreak = false;
- }
- return text;
- }
- function domToPos(cm, node, offset) {
- var lineNode;
- if (node == cm.display.lineDiv) {
- lineNode = cm.display.lineDiv.childNodes[offset];
- if (!lineNode) {
- return badPos(cm.clipPos(Pos(cm.display.viewTo - 1)), true);
- }
- node = null;
- offset = 0;
- } else {
- for (lineNode = node;; lineNode = lineNode.parentNode) {
- if (!lineNode || lineNode == cm.display.lineDiv) {
- return null;
- }
- if (lineNode.parentNode && lineNode.parentNode == cm.display.lineDiv) {
- break;
- }
- }
- }
- for (var i2 = 0; i2 < cm.display.view.length; i2++) {
- var lineView = cm.display.view[i2];
- if (lineView.node == lineNode) {
- return locateNodeInLineView(lineView, node, offset);
- }
- }
- }
- function locateNodeInLineView(lineView, node, offset) {
- var wrapper = lineView.text.firstChild,
- bad = false;
- if (!node || !contains(wrapper, node)) {
- return badPos(Pos(lineNo(lineView.line), 0), true);
- }
- if (node == wrapper) {
- bad = true;
- node = wrapper.childNodes[offset];
- offset = 0;
- if (!node) {
- var line = lineView.rest ? lst(lineView.rest) : lineView.line;
- return badPos(Pos(lineNo(line), line.text.length), bad);
- }
- }
- var textNode = node.nodeType == 3 ? node : null,
- topNode = node;
- if (!textNode && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {
- textNode = node.firstChild;
- if (offset) {
- offset = textNode.nodeValue.length;
- }
- }
- while (topNode.parentNode != wrapper) {
- topNode = topNode.parentNode;
- }
- var measure = lineView.measure,
- maps = measure.maps;
- function find(textNode2, topNode2, offset2) {
- for (var i2 = -1; i2 < (maps ? maps.length : 0); i2++) {
- var map2 = i2 < 0 ? measure.map : maps[i2];
- for (var j = 0; j < map2.length; j += 3) {
- var curNode = map2[j + 2];
- if (curNode == textNode2 || curNode == topNode2) {
- var line2 = lineNo(i2 < 0 ? lineView.line : lineView.rest[i2]);
- var ch = map2[j] + offset2;
- if (offset2 < 0 || curNode != textNode2) {
- ch = map2[j + (offset2 ? 1 : 0)];
- }
- return Pos(line2, ch);
- }
- }
- }
- }
- var found = find(textNode, topNode, offset);
- if (found) {
- return badPos(found, bad);
- }
- for (var after = topNode.nextSibling, dist = textNode ? textNode.nodeValue.length - offset : 0; after; after = after.nextSibling) {
- found = find(after, after.firstChild, 0);
- if (found) {
- return badPos(Pos(found.line, found.ch - dist), bad);
- } else {
- dist += after.textContent.length;
- }
- }
- for (var before = topNode.previousSibling, dist$1 = offset; before; before = before.previousSibling) {
- found = find(before, before.firstChild, -1);
- if (found) {
- return badPos(Pos(found.line, found.ch + dist$1), bad);
- } else {
- dist$1 += before.textContent.length;
- }
- }
- }
- var TextareaInput = function (cm) {
- this.cm = cm;
- this.prevInput = "";
- this.pollingFast = false;
- this.polling = new Delayed();
- this.hasSelection = false;
- this.composing = null;
- };
- TextareaInput.prototype.init = function (display) {
- var this$1$1 = this;
- var input = this,
- cm = this.cm;
- this.createField(display);
- var te = this.textarea;
- display.wrapper.insertBefore(this.wrapper, display.wrapper.firstChild);
- if (ios) {
- te.style.width = "0px";
- }
- on(te, "input", function () {
- if (ie && ie_version >= 9 && this$1$1.hasSelection) {
- this$1$1.hasSelection = null;
- }
- input.poll();
- });
- on(te, "paste", function (e) {
- if (signalDOMEvent(cm, e) || handlePaste(e, cm)) {
- return;
- }
- cm.state.pasteIncoming = + /* @__PURE__ */new Date();
- input.fastPoll();
- });
- function prepareCopyCut(e) {
- if (signalDOMEvent(cm, e)) {
- return;
- }
- if (cm.somethingSelected()) {
- setLastCopied({
- lineWise: false,
- text: cm.getSelections()
- });
- } else if (!cm.options.lineWiseCopyCut) {
- return;
- } else {
- var ranges = copyableRanges(cm);
- setLastCopied({
- lineWise: true,
- text: ranges.text
- });
- if (e.type == "cut") {
- cm.setSelections(ranges.ranges, null, sel_dontScroll);
- } else {
- input.prevInput = "";
- te.value = ranges.text.join("\n");
- selectInput(te);
- }
- }
- if (e.type == "cut") {
- cm.state.cutIncoming = + /* @__PURE__ */new Date();
- }
- }
- on(te, "cut", prepareCopyCut);
- on(te, "copy", prepareCopyCut);
- on(display.scroller, "paste", function (e) {
- if (eventInWidget(display, e) || signalDOMEvent(cm, e)) {
- return;
- }
- if (!te.dispatchEvent) {
- cm.state.pasteIncoming = + /* @__PURE__ */new Date();
- input.focus();
- return;
- }
- var event = new Event("paste");
- event.clipboardData = e.clipboardData;
- te.dispatchEvent(event);
- });
- on(display.lineSpace, "selectstart", function (e) {
- if (!eventInWidget(display, e)) {
- e_preventDefault(e);
- }
- });
- on(te, "compositionstart", function () {
- var start = cm.getCursor("from");
- if (input.composing) {
- input.composing.range.clear();
- }
- input.composing = {
- start,
- range: cm.markText(start, cm.getCursor("to"), {
- className: "CodeMirror-composing"
- })
- };
- });
- on(te, "compositionend", function () {
- if (input.composing) {
- input.poll();
- input.composing.range.clear();
- input.composing = null;
- }
- });
- };
- TextareaInput.prototype.createField = function (_display) {
- this.wrapper = hiddenTextarea();
- this.textarea = this.wrapper.firstChild;
- };
- TextareaInput.prototype.screenReaderLabelChanged = function (label) {
- if (label) {
- this.textarea.setAttribute("aria-label", label);
- } else {
- this.textarea.removeAttribute("aria-label");
- }
- };
- TextareaInput.prototype.prepareSelection = function () {
- var cm = this.cm,
- display = cm.display,
- doc = cm.doc;
- var result = prepareSelection(cm);
- if (cm.options.moveInputWithCursor) {
- var headPos = cursorCoords(cm, doc.sel.primary().head, "div");
- var wrapOff = display.wrapper.getBoundingClientRect(),
- lineOff = display.lineDiv.getBoundingClientRect();
- result.teTop = Math.max(0, Math.min(display.wrapper.clientHeight - 10, headPos.top + lineOff.top - wrapOff.top));
- result.teLeft = Math.max(0, Math.min(display.wrapper.clientWidth - 10, headPos.left + lineOff.left - wrapOff.left));
- }
- return result;
- };
- TextareaInput.prototype.showSelection = function (drawn) {
- var cm = this.cm,
- display = cm.display;
- removeChildrenAndAdd(display.cursorDiv, drawn.cursors);
- removeChildrenAndAdd(display.selectionDiv, drawn.selection);
- if (drawn.teTop != null) {
- this.wrapper.style.top = drawn.teTop + "px";
- this.wrapper.style.left = drawn.teLeft + "px";
- }
- };
- TextareaInput.prototype.reset = function (typing) {
- if (this.contextMenuPending || this.composing) {
- return;
- }
- var cm = this.cm;
- if (cm.somethingSelected()) {
- this.prevInput = "";
- var content = cm.getSelection();
- this.textarea.value = content;
- if (cm.state.focused) {
- selectInput(this.textarea);
- }
- if (ie && ie_version >= 9) {
- this.hasSelection = content;
- }
- } else if (!typing) {
- this.prevInput = this.textarea.value = "";
- if (ie && ie_version >= 9) {
- this.hasSelection = null;
- }
- }
- };
- TextareaInput.prototype.getField = function () {
- return this.textarea;
- };
- TextareaInput.prototype.supportsTouch = function () {
- return false;
- };
- TextareaInput.prototype.focus = function () {
- if (this.cm.options.readOnly != "nocursor" && (!mobile || activeElt() != this.textarea)) {
- try {
- this.textarea.focus();
- } catch (e) {}
- }
- };
- TextareaInput.prototype.blur = function () {
- this.textarea.blur();
- };
- TextareaInput.prototype.resetPosition = function () {
- this.wrapper.style.top = this.wrapper.style.left = 0;
- };
- TextareaInput.prototype.receivedFocus = function () {
- this.slowPoll();
- };
- TextareaInput.prototype.slowPoll = function () {
- var this$1$1 = this;
- if (this.pollingFast) {
- return;
- }
- this.polling.set(this.cm.options.pollInterval, function () {
- this$1$1.poll();
- if (this$1$1.cm.state.focused) {
- this$1$1.slowPoll();
- }
- });
- };
- TextareaInput.prototype.fastPoll = function () {
- var missed = false,
- input = this;
- input.pollingFast = true;
- function p() {
- var changed = input.poll();
- if (!changed && !missed) {
- missed = true;
- input.polling.set(60, p);
- } else {
- input.pollingFast = false;
- input.slowPoll();
- }
- }
- input.polling.set(20, p);
- };
- TextareaInput.prototype.poll = function () {
- var this$1$1 = this;
- var cm = this.cm,
- input = this.textarea,
- prevInput = this.prevInput;
- if (this.contextMenuPending || !cm.state.focused || hasSelection(input) && !prevInput && !this.composing || cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq) {
- return false;
- }
- var text = input.value;
- if (text == prevInput && !cm.somethingSelected()) {
- return false;
- }
- if (ie && ie_version >= 9 && this.hasSelection === text || mac && /[\uf700-\uf7ff]/.test(text)) {
- cm.display.input.reset();
- return false;
- }
- if (cm.doc.sel == cm.display.selForContextMenu) {
- var first = text.charCodeAt(0);
- if (first == 8203 && !prevInput) {
- prevInput = "";
- }
- if (first == 8666) {
- this.reset();
- return this.cm.execCommand("undo");
- }
- }
- var same = 0,
- l = Math.min(prevInput.length, text.length);
- while (same < l && prevInput.charCodeAt(same) == text.charCodeAt(same)) {
- ++same;
- }
- runInOp(cm, function () {
- applyTextInput(cm, text.slice(same), prevInput.length - same, null, this$1$1.composing ? "*compose" : null);
- if (text.length > 1e3 || text.indexOf("\n") > -1) {
- input.value = this$1$1.prevInput = "";
- } else {
- this$1$1.prevInput = text;
- }
- if (this$1$1.composing) {
- this$1$1.composing.range.clear();
- this$1$1.composing.range = cm.markText(this$1$1.composing.start, cm.getCursor("to"), {
- className: "CodeMirror-composing"
- });
- }
- });
- return true;
- };
- TextareaInput.prototype.ensurePolled = function () {
- if (this.pollingFast && this.poll()) {
- this.pollingFast = false;
- }
- };
- TextareaInput.prototype.onKeyPress = function () {
- if (ie && ie_version >= 9) {
- this.hasSelection = null;
- }
- this.fastPoll();
- };
- TextareaInput.prototype.onContextMenu = function (e) {
- var input = this,
- cm = input.cm,
- display = cm.display,
- te = input.textarea;
- if (input.contextMenuPending) {
- input.contextMenuPending();
- }
- var pos = posFromMouse(cm, e),
- scrollPos = display.scroller.scrollTop;
- if (!pos || presto) {
- return;
- }
- var reset = cm.options.resetSelectionOnContextMenu;
- if (reset && cm.doc.sel.contains(pos) == -1) {
- operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);
- }
- var oldCSS = te.style.cssText,
- oldWrapperCSS = input.wrapper.style.cssText;
- var wrapperBox = input.wrapper.offsetParent.getBoundingClientRect();
- input.wrapper.style.cssText = "position: static";
- te.style.cssText = "position: absolute; width: 30px; height: 30px;\n top: " + (e.clientY - wrapperBox.top - 5) + "px; left: " + (e.clientX - wrapperBox.left - 5) + "px;\n z-index: 1000; background: " + (ie ? "rgba(255, 255, 255, .05)" : "transparent") + ";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
- var oldScrollY;
- if (webkit) {
- oldScrollY = window.scrollY;
- }
- display.input.focus();
- if (webkit) {
- window.scrollTo(null, oldScrollY);
- }
- display.input.reset();
- if (!cm.somethingSelected()) {
- te.value = input.prevInput = " ";
- }
- input.contextMenuPending = rehide;
- display.selForContextMenu = cm.doc.sel;
- clearTimeout(display.detectingSelectAll);
- function prepareSelectAllHack() {
- if (te.selectionStart != null) {
- var selected = cm.somethingSelected();
- var extval = "" + (selected ? te.value : "");
- te.value = "⇚";
- te.value = extval;
- input.prevInput = selected ? "" : "";
- te.selectionStart = 1;
- te.selectionEnd = extval.length;
- display.selForContextMenu = cm.doc.sel;
- }
- }
- function rehide() {
- if (input.contextMenuPending != rehide) {
- return;
- }
- input.contextMenuPending = false;
- input.wrapper.style.cssText = oldWrapperCSS;
- te.style.cssText = oldCSS;
- if (ie && ie_version < 9) {
- display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos);
- }
- if (te.selectionStart != null) {
- if (!ie || ie && ie_version < 9) {
- prepareSelectAllHack();
- }
- var i2 = 0,
- poll = function () {
- if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 && te.selectionEnd > 0 && input.prevInput == "") {
- operation(cm, selectAll)(cm);
- } else if (i2++ < 10) {
- display.detectingSelectAll = setTimeout(poll, 500);
- } else {
- display.selForContextMenu = null;
- display.input.reset();
- }
- };
- display.detectingSelectAll = setTimeout(poll, 200);
- }
- }
- if (ie && ie_version >= 9) {
- prepareSelectAllHack();
- }
- if (captureRightClick) {
- e_stop(e);
- var mouseup = function () {
- off(window, "mouseup", mouseup);
- setTimeout(rehide, 20);
- };
- on(window, "mouseup", mouseup);
- } else {
- setTimeout(rehide, 50);
- }
- };
- TextareaInput.prototype.readOnlyChanged = function (val) {
- if (!val) {
- this.reset();
- }
- this.textarea.disabled = val == "nocursor";
- this.textarea.readOnly = !!val;
- };
- TextareaInput.prototype.setUneditable = function () {};
- TextareaInput.prototype.needsContentAttribute = false;
- function fromTextArea(textarea, options) {
- options = options ? copyObj(options) : {};
- options.value = textarea.value;
- if (!options.tabindex && textarea.tabIndex) {
- options.tabindex = textarea.tabIndex;
- }
- if (!options.placeholder && textarea.placeholder) {
- options.placeholder = textarea.placeholder;
- }
- if (options.autofocus == null) {
- var hasFocus = activeElt();
- options.autofocus = hasFocus == textarea || textarea.getAttribute("autofocus") != null && hasFocus == document.body;
- }
- function save() {
- textarea.value = cm.getValue();
- }
- var realSubmit;
- if (textarea.form) {
- on(textarea.form, "submit", save);
- if (!options.leaveSubmitMethodAlone) {
- var form = textarea.form;
- realSubmit = form.submit;
- try {
- var wrappedSubmit = form.submit = function () {
- save();
- form.submit = realSubmit;
- form.submit();
- form.submit = wrappedSubmit;
- };
- } catch (e) {}
- }
- }
- options.finishInit = function (cm2) {
- cm2.save = save;
- cm2.getTextArea = function () {
- return textarea;
- };
- cm2.toTextArea = function () {
- cm2.toTextArea = isNaN;
- save();
- textarea.parentNode.removeChild(cm2.getWrapperElement());
- textarea.style.display = "";
- if (textarea.form) {
- off(textarea.form, "submit", save);
- if (!options.leaveSubmitMethodAlone && typeof textarea.form.submit == "function") {
- textarea.form.submit = realSubmit;
- }
- }
- };
- };
- textarea.style.display = "none";
- var cm = CodeMirror(function (node) {
- return textarea.parentNode.insertBefore(node, textarea.nextSibling);
- }, options);
- return cm;
- }
- function addLegacyProps(CodeMirror2) {
- CodeMirror2.off = off;
- CodeMirror2.on = on;
- CodeMirror2.wheelEventPixels = wheelEventPixels;
- CodeMirror2.Doc = Doc;
- CodeMirror2.splitLines = splitLinesAuto;
- CodeMirror2.countColumn = countColumn;
- CodeMirror2.findColumn = findColumn;
- CodeMirror2.isWordChar = isWordCharBasic;
- CodeMirror2.Pass = Pass;
- CodeMirror2.signal = signal;
- CodeMirror2.Line = Line;
- CodeMirror2.changeEnd = changeEnd;
- CodeMirror2.scrollbarModel = scrollbarModel;
- CodeMirror2.Pos = Pos;
- CodeMirror2.cmpPos = cmp;
- CodeMirror2.modes = modes;
- CodeMirror2.mimeModes = mimeModes;
- CodeMirror2.resolveMode = resolveMode;
- CodeMirror2.getMode = getMode;
- CodeMirror2.modeExtensions = modeExtensions;
- CodeMirror2.extendMode = extendMode;
- CodeMirror2.copyState = copyState;
- CodeMirror2.startState = startState;
- CodeMirror2.innerMode = innerMode;
- CodeMirror2.commands = commands;
- CodeMirror2.keyMap = keyMap;
- CodeMirror2.keyName = keyName;
- CodeMirror2.isModifierKey = isModifierKey;
- CodeMirror2.lookupKey = lookupKey;
- CodeMirror2.normalizeKeyMap = normalizeKeyMap;
- CodeMirror2.StringStream = StringStream;
- CodeMirror2.SharedTextMarker = SharedTextMarker;
- CodeMirror2.TextMarker = TextMarker;
- CodeMirror2.LineWidget = LineWidget;
- CodeMirror2.e_preventDefault = e_preventDefault;
- CodeMirror2.e_stopPropagation = e_stopPropagation;
- CodeMirror2.e_stop = e_stop;
- CodeMirror2.addClass = addClass;
- CodeMirror2.contains = contains;
- CodeMirror2.rmClass = rmClass;
- CodeMirror2.keyNames = keyNames;
- }
- defineOptions(CodeMirror);
- addEditorMethods(CodeMirror);
- var dontDelegate = "iter insert remove copy getEditor constructor".split(" ");
- for (var prop in Doc.prototype) {
- if (Doc.prototype.hasOwnProperty(prop) && indexOf(dontDelegate, prop) < 0) {
- CodeMirror.prototype[prop] = /* @__PURE__ */function (method) {
- return function () {
- return method.apply(this.doc, arguments);
- };
- }(Doc.prototype[prop]);
- }
- }
- eventMixin(Doc);
- CodeMirror.inputStyles = {
- "textarea": TextareaInput,
- "contenteditable": ContentEditableInput
- };
- CodeMirror.defineMode = function (name) {
- if (!CodeMirror.defaults.mode && name != "null") {
- CodeMirror.defaults.mode = name;
- }
- defineMode.apply(this, arguments);
- };
- CodeMirror.defineMIME = defineMIME;
- CodeMirror.defineMode("null", function () {
- return {
- token: function (stream) {
- return stream.skipToEnd();
- }
- };
- });
- CodeMirror.defineMIME("text/plain", "null");
- CodeMirror.defineExtension = function (name, func) {
- CodeMirror.prototype[name] = func;
- };
- CodeMirror.defineDocExtension = function (name, func) {
- Doc.prototype[name] = func;
- };
- CodeMirror.fromTextArea = fromTextArea;
- addLegacyProps(CodeMirror);
- CodeMirror.version = "5.65.3";
- return CodeMirror;
- });
- })(codemirror);
- return codemirror.exports;
-}
-exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
-exports.requireCodemirror = requireCodemirror;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/comment.cjs.js":
-/*!************************************************!*\
- !*** ../../graphiql-react/dist/comment.cjs.js ***!
- \************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var comment$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- var noOptions = {};
- var nonWS = /[^\s\u00a0]/;
- var Pos = CodeMirror.Pos,
- cmp = CodeMirror.cmpPos;
- function firstNonWS(str) {
- var found = str.search(nonWS);
- return found == -1 ? 0 : found;
- }
- CodeMirror.commands.toggleComment = function (cm) {
- cm.toggleComment();
- };
- CodeMirror.defineExtension("toggleComment", function (options) {
- if (!options) options = noOptions;
- var cm = this;
- var minLine = Infinity,
- ranges = this.listSelections(),
- mode = null;
- for (var i = ranges.length - 1; i >= 0; i--) {
- var from = ranges[i].from(),
- to = ranges[i].to();
- if (from.line >= minLine) continue;
- if (to.line >= minLine) to = Pos(minLine, 0);
- minLine = from.line;
- if (mode == null) {
- if (cm.uncomment(from, to, options)) mode = "un";else {
- cm.lineComment(from, to, options);
- mode = "line";
- }
- } else if (mode == "un") {
- cm.uncomment(from, to, options);
- } else {
- cm.lineComment(from, to, options);
- }
- }
- });
- function probablyInsideString(cm, pos, line) {
- return /\bstring\b/.test(cm.getTokenTypeAt(Pos(pos.line, 0))) && !/^[\'\"\`]/.test(line);
- }
- function getMode(cm, pos) {
- var mode = cm.getMode();
- return mode.useInnerComments === false || !mode.innerMode ? mode : cm.getModeAt(pos);
- }
- CodeMirror.defineExtension("lineComment", function (from, to, options) {
- if (!options) options = noOptions;
- var self = this,
- mode = getMode(self, from);
- var firstLine = self.getLine(from.line);
- if (firstLine == null || probablyInsideString(self, from, firstLine)) return;
- var commentString = options.lineComment || mode.lineComment;
- if (!commentString) {
- if (options.blockCommentStart || mode.blockCommentStart) {
- options.fullLines = true;
- self.blockComment(from, to, options);
- }
- return;
- }
- var end = Math.min(to.ch != 0 || to.line == from.line ? to.line + 1 : to.line, self.lastLine() + 1);
- var pad = options.padding == null ? " " : options.padding;
- var blankLines = options.commentBlankLines || from.line == to.line;
- self.operation(function () {
- if (options.indent) {
- var baseString = null;
- for (var i = from.line; i < end; ++i) {
- var line = self.getLine(i);
- var whitespace = line.slice(0, firstNonWS(line));
- if (baseString == null || baseString.length > whitespace.length) {
- baseString = whitespace;
- }
- }
- for (var i = from.line; i < end; ++i) {
- var line = self.getLine(i),
- cut = baseString.length;
- if (!blankLines && !nonWS.test(line)) continue;
- if (line.slice(0, cut) != baseString) cut = firstNonWS(line);
- self.replaceRange(baseString + commentString + pad, Pos(i, 0), Pos(i, cut));
- }
- } else {
- for (var i = from.line; i < end; ++i) {
- if (blankLines || nonWS.test(self.getLine(i))) self.replaceRange(commentString + pad, Pos(i, 0));
- }
- }
- });
- });
- CodeMirror.defineExtension("blockComment", function (from, to, options) {
- if (!options) options = noOptions;
- var self = this,
- mode = getMode(self, from);
- var startString = options.blockCommentStart || mode.blockCommentStart;
- var endString = options.blockCommentEnd || mode.blockCommentEnd;
- if (!startString || !endString) {
- if ((options.lineComment || mode.lineComment) && options.fullLines != false) self.lineComment(from, to, options);
- return;
- }
- if (/\bcomment\b/.test(self.getTokenTypeAt(Pos(from.line, 0)))) return;
- var end = Math.min(to.line, self.lastLine());
- if (end != from.line && to.ch == 0 && nonWS.test(self.getLine(end))) --end;
- var pad = options.padding == null ? " " : options.padding;
- if (from.line > end) return;
- self.operation(function () {
- if (options.fullLines != false) {
- var lastLineHasText = nonWS.test(self.getLine(end));
- self.replaceRange(pad + endString, Pos(end));
- self.replaceRange(startString + pad, Pos(from.line, 0));
- var lead = options.blockCommentLead || mode.blockCommentLead;
- if (lead != null) {
- for (var i = from.line + 1; i <= end; ++i) if (i != end || lastLineHasText) self.replaceRange(lead + pad, Pos(i, 0));
- }
- } else {
- var atCursor = cmp(self.getCursor("to"), to) == 0,
- empty = !self.somethingSelected();
- self.replaceRange(endString, to);
- if (atCursor) self.setSelection(empty ? to : self.getCursor("from"), to);
- self.replaceRange(startString, from);
- }
- });
- });
- CodeMirror.defineExtension("uncomment", function (from, to, options) {
- if (!options) options = noOptions;
- var self = this,
- mode = getMode(self, from);
- var end = Math.min(to.ch != 0 || to.line == from.line ? to.line : to.line - 1, self.lastLine()),
- start = Math.min(from.line, end);
- var lineString = options.lineComment || mode.lineComment,
- lines = [];
- var pad = options.padding == null ? " " : options.padding,
- didSomething;
- lineComment: {
- if (!lineString) break lineComment;
- for (var i = start; i <= end; ++i) {
- var line = self.getLine(i);
- var found = line.indexOf(lineString);
- if (found > -1 && !/comment/.test(self.getTokenTypeAt(Pos(i, found + 1)))) found = -1;
- if (found == -1 && nonWS.test(line)) break lineComment;
- if (found > -1 && nonWS.test(line.slice(0, found))) break lineComment;
- lines.push(line);
- }
- self.operation(function () {
- for (var i2 = start; i2 <= end; ++i2) {
- var line2 = lines[i2 - start];
- var pos = line2.indexOf(lineString),
- endPos = pos + lineString.length;
- if (pos < 0) continue;
- if (line2.slice(endPos, endPos + pad.length) == pad) endPos += pad.length;
- didSomething = true;
- self.replaceRange("", Pos(i2, pos), Pos(i2, endPos));
- }
- });
- if (didSomething) return true;
- }
- var startString = options.blockCommentStart || mode.blockCommentStart;
- var endString = options.blockCommentEnd || mode.blockCommentEnd;
- if (!startString || !endString) return false;
- var lead = options.blockCommentLead || mode.blockCommentLead;
- var startLine = self.getLine(start),
- open = startLine.indexOf(startString);
- if (open == -1) return false;
- var endLine = end == start ? startLine : self.getLine(end);
- var close = endLine.indexOf(endString, end == start ? open + startString.length : 0);
- var insideStart = Pos(start, open + 1),
- insideEnd = Pos(end, close + 1);
- if (close == -1 || !/comment/.test(self.getTokenTypeAt(insideStart)) || !/comment/.test(self.getTokenTypeAt(insideEnd)) || self.getRange(insideStart, insideEnd, "\n").indexOf(endString) > -1) return false;
- var lastStart = startLine.lastIndexOf(startString, from.ch);
- var firstEnd = lastStart == -1 ? -1 : startLine.slice(0, from.ch).indexOf(endString, lastStart + startString.length);
- if (lastStart != -1 && firstEnd != -1 && firstEnd + endString.length != from.ch) return false;
- firstEnd = endLine.indexOf(endString, to.ch);
- var almostLastStart = endLine.slice(to.ch).lastIndexOf(startString, firstEnd - to.ch);
- lastStart = firstEnd == -1 || almostLastStart == -1 ? -1 : to.ch + almostLastStart;
- if (firstEnd != -1 && lastStart != -1 && lastStart != to.ch) return false;
- self.operation(function () {
- self.replaceRange("", Pos(end, close - (pad && endLine.slice(close - pad.length, close) == pad ? pad.length : 0)), Pos(end, close + endString.length));
- var openEnd = open + startString.length;
- if (pad && startLine.slice(openEnd, openEnd + pad.length) == pad) openEnd += pad.length;
- self.replaceRange("", Pos(start, open), Pos(start, openEnd));
- if (lead) for (var i2 = start + 1; i2 <= end; ++i2) {
- var line2 = self.getLine(i2),
- found2 = line2.indexOf(lead);
- if (found2 == -1 || nonWS.test(line2.slice(0, found2))) continue;
- var foundEnd = found2 + lead.length;
- if (pad && line2.slice(foundEnd, foundEnd + pad.length) == pad) foundEnd += pad.length;
- self.replaceRange("", Pos(i2, found2), Pos(i2, foundEnd));
- }
- });
- return true;
- });
- });
-})();
-var commentExports = comment$2.exports;
-const comment = /* @__PURE__ */codemirror.getDefaultExportFromCjs(commentExports);
-const comment$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: comment
-}, [commentExports]);
-exports.comment = comment$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/dialog.cjs.js":
-/*!***********************************************!*\
- !*** ../../graphiql-react/dist/dialog.cjs.js ***!
- \***********************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var dialog$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- function dialogDiv(cm, template, bottom) {
- var wrap = cm.getWrapperElement();
- var dialog2;
- dialog2 = wrap.appendChild(document.createElement("div"));
- if (bottom) dialog2.className = "CodeMirror-dialog CodeMirror-dialog-bottom";else dialog2.className = "CodeMirror-dialog CodeMirror-dialog-top";
- if (typeof template == "string") {
- dialog2.innerHTML = template;
- } else {
- dialog2.appendChild(template);
- }
- CodeMirror.addClass(wrap, "dialog-opened");
- return dialog2;
- }
- function closeNotification(cm, newVal) {
- if (cm.state.currentNotificationClose) cm.state.currentNotificationClose();
- cm.state.currentNotificationClose = newVal;
- }
- CodeMirror.defineExtension("openDialog", function (template, callback, options) {
- if (!options) options = {};
- closeNotification(this, null);
- var dialog2 = dialogDiv(this, template, options.bottom);
- var closed = false,
- me = this;
- function close(newVal) {
- if (typeof newVal == "string") {
- inp.value = newVal;
- } else {
- if (closed) return;
- closed = true;
- CodeMirror.rmClass(dialog2.parentNode, "dialog-opened");
- dialog2.parentNode.removeChild(dialog2);
- me.focus();
- if (options.onClose) options.onClose(dialog2);
- }
- }
- var inp = dialog2.getElementsByTagName("input")[0],
- button;
- if (inp) {
- inp.focus();
- if (options.value) {
- inp.value = options.value;
- if (options.selectValueOnOpen !== false) {
- inp.select();
- }
- }
- if (options.onInput) CodeMirror.on(inp, "input", function (e) {
- options.onInput(e, inp.value, close);
- });
- if (options.onKeyUp) CodeMirror.on(inp, "keyup", function (e) {
- options.onKeyUp(e, inp.value, close);
- });
- CodeMirror.on(inp, "keydown", function (e) {
- if (options && options.onKeyDown && options.onKeyDown(e, inp.value, close)) {
- return;
- }
- if (e.keyCode == 27 || options.closeOnEnter !== false && e.keyCode == 13) {
- inp.blur();
- CodeMirror.e_stop(e);
- close();
- }
- if (e.keyCode == 13) callback(inp.value, e);
- });
- if (options.closeOnBlur !== false) CodeMirror.on(dialog2, "focusout", function (evt) {
- if (evt.relatedTarget !== null) close();
- });
- } else if (button = dialog2.getElementsByTagName("button")[0]) {
- CodeMirror.on(button, "click", function () {
- close();
- me.focus();
- });
- if (options.closeOnBlur !== false) CodeMirror.on(button, "blur", close);
- button.focus();
- }
- return close;
- });
- CodeMirror.defineExtension("openConfirm", function (template, callbacks, options) {
- closeNotification(this, null);
- var dialog2 = dialogDiv(this, template, options && options.bottom);
- var buttons = dialog2.getElementsByTagName("button");
- var closed = false,
- me = this,
- blurring = 1;
- function close() {
- if (closed) return;
- closed = true;
- CodeMirror.rmClass(dialog2.parentNode, "dialog-opened");
- dialog2.parentNode.removeChild(dialog2);
- me.focus();
- }
- buttons[0].focus();
- for (var i = 0; i < buttons.length; ++i) {
- var b = buttons[i];
- (function (callback) {
- CodeMirror.on(b, "click", function (e) {
- CodeMirror.e_preventDefault(e);
- close();
- if (callback) callback(me);
- });
- })(callbacks[i]);
- CodeMirror.on(b, "blur", function () {
- --blurring;
- setTimeout(function () {
- if (blurring <= 0) close();
- }, 200);
- });
- CodeMirror.on(b, "focus", function () {
- ++blurring;
- });
- }
- });
- CodeMirror.defineExtension("openNotification", function (template, options) {
- closeNotification(this, close);
- var dialog2 = dialogDiv(this, template, options && options.bottom);
- var closed = false,
- doneTimer;
- var duration = options && typeof options.duration !== "undefined" ? options.duration : 5e3;
- function close() {
- if (closed) return;
- closed = true;
- clearTimeout(doneTimer);
- CodeMirror.rmClass(dialog2.parentNode, "dialog-opened");
- dialog2.parentNode.removeChild(dialog2);
- }
- CodeMirror.on(dialog2, "click", function (e) {
- CodeMirror.e_preventDefault(e);
- close();
- });
- if (duration) doneTimer = setTimeout(close, duration);
- return close;
- });
- });
-})();
-var dialogExports = dialog$2.exports;
-const dialog = /* @__PURE__ */codemirror.getDefaultExportFromCjs(dialogExports);
-const dialog$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: dialog
-}, [dialogExports]);
-exports.dialog = dialog$1;
-exports.dialogExports = dialogExports;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/foldgutter.cjs.js":
-/*!***************************************************!*\
- !*** ../../graphiql-react/dist/foldgutter.cjs.js ***!
- \***************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var foldgutter$2 = {
- exports: {}
-};
-var foldcode = {
- exports: {}
-};
-var hasRequiredFoldcode;
-function requireFoldcode() {
- if (hasRequiredFoldcode) return foldcode.exports;
- hasRequiredFoldcode = 1;
- (function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- function doFold(cm, pos, options, force) {
- if (options && options.call) {
- var finder = options;
- options = null;
- } else {
- var finder = getOption(cm, options, "rangeFinder");
- }
- if (typeof pos == "number") pos = CodeMirror.Pos(pos, 0);
- var minSize = getOption(cm, options, "minFoldSize");
- function getRange(allowFolded) {
- var range2 = finder(cm, pos);
- if (!range2 || range2.to.line - range2.from.line < minSize) return null;
- if (force === "fold") return range2;
- var marks = cm.findMarksAt(range2.from);
- for (var i = 0; i < marks.length; ++i) {
- if (marks[i].__isFold) {
- if (!allowFolded) return null;
- range2.cleared = true;
- marks[i].clear();
- }
- }
- return range2;
- }
- var range = getRange(true);
- if (getOption(cm, options, "scanUp")) while (!range && pos.line > cm.firstLine()) {
- pos = CodeMirror.Pos(pos.line - 1, 0);
- range = getRange(false);
- }
- if (!range || range.cleared || force === "unfold") return;
- var myWidget = makeWidget(cm, options, range);
- CodeMirror.on(myWidget, "mousedown", function (e) {
- myRange.clear();
- CodeMirror.e_preventDefault(e);
- });
- var myRange = cm.markText(range.from, range.to, {
- replacedWith: myWidget,
- clearOnEnter: getOption(cm, options, "clearOnEnter"),
- __isFold: true
- });
- myRange.on("clear", function (from, to) {
- CodeMirror.signal(cm, "unfold", cm, from, to);
- });
- CodeMirror.signal(cm, "fold", cm, range.from, range.to);
- }
- function makeWidget(cm, options, range) {
- var widget = getOption(cm, options, "widget");
- if (typeof widget == "function") {
- widget = widget(range.from, range.to);
- }
- if (typeof widget == "string") {
- var text = document.createTextNode(widget);
- widget = document.createElement("span");
- widget.appendChild(text);
- widget.className = "CodeMirror-foldmarker";
- } else if (widget) {
- widget = widget.cloneNode(true);
- }
- return widget;
- }
- CodeMirror.newFoldFunction = function (rangeFinder, widget) {
- return function (cm, pos) {
- doFold(cm, pos, {
- rangeFinder,
- widget
- });
- };
- };
- CodeMirror.defineExtension("foldCode", function (pos, options, force) {
- doFold(this, pos, options, force);
- });
- CodeMirror.defineExtension("isFolded", function (pos) {
- var marks = this.findMarksAt(pos);
- for (var i = 0; i < marks.length; ++i) if (marks[i].__isFold) return true;
- });
- CodeMirror.commands.toggleFold = function (cm) {
- cm.foldCode(cm.getCursor());
- };
- CodeMirror.commands.fold = function (cm) {
- cm.foldCode(cm.getCursor(), null, "fold");
- };
- CodeMirror.commands.unfold = function (cm) {
- cm.foldCode(cm.getCursor(), {
- scanUp: false
- }, "unfold");
- };
- CodeMirror.commands.foldAll = function (cm) {
- cm.operation(function () {
- for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++) cm.foldCode(CodeMirror.Pos(i, 0), {
- scanUp: false
- }, "fold");
- });
- };
- CodeMirror.commands.unfoldAll = function (cm) {
- cm.operation(function () {
- for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++) cm.foldCode(CodeMirror.Pos(i, 0), {
- scanUp: false
- }, "unfold");
- });
- };
- CodeMirror.registerHelper("fold", "combine", function () {
- var funcs = Array.prototype.slice.call(arguments, 0);
- return function (cm, start) {
- for (var i = 0; i < funcs.length; ++i) {
- var found = funcs[i](cm, start);
- if (found) return found;
- }
- };
- });
- CodeMirror.registerHelper("fold", "auto", function (cm, start) {
- var helpers = cm.getHelpers(start, "fold");
- for (var i = 0; i < helpers.length; i++) {
- var cur = helpers[i](cm, start);
- if (cur) return cur;
- }
- });
- var defaultOptions = {
- rangeFinder: CodeMirror.fold.auto,
- widget: "↔",
- minFoldSize: 0,
- scanUp: false,
- clearOnEnter: true
- };
- CodeMirror.defineOption("foldOptions", null);
- function getOption(cm, options, name) {
- if (options && options[name] !== void 0) return options[name];
- var editorOptions = cm.options.foldOptions;
- if (editorOptions && editorOptions[name] !== void 0) return editorOptions[name];
- return defaultOptions[name];
- }
- CodeMirror.defineExtension("foldOption", function (options, name) {
- return getOption(this, options, name);
- });
- });
- })();
- return foldcode.exports;
-}
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror(), requireFoldcode());
- })(function (CodeMirror) {
- CodeMirror.defineOption("foldGutter", false, function (cm, val, old) {
- if (old && old != CodeMirror.Init) {
- cm.clearGutter(cm.state.foldGutter.options.gutter);
- cm.state.foldGutter = null;
- cm.off("gutterClick", onGutterClick);
- cm.off("changes", onChange);
- cm.off("viewportChange", onViewportChange);
- cm.off("fold", onFold);
- cm.off("unfold", onFold);
- cm.off("swapDoc", onChange);
- }
- if (val) {
- cm.state.foldGutter = new State(parseOptions(val));
- updateInViewport(cm);
- cm.on("gutterClick", onGutterClick);
- cm.on("changes", onChange);
- cm.on("viewportChange", onViewportChange);
- cm.on("fold", onFold);
- cm.on("unfold", onFold);
- cm.on("swapDoc", onChange);
- }
- });
- var Pos = CodeMirror.Pos;
- function State(options) {
- this.options = options;
- this.from = this.to = 0;
- }
- function parseOptions(opts) {
- if (opts === true) opts = {};
- if (opts.gutter == null) opts.gutter = "CodeMirror-foldgutter";
- if (opts.indicatorOpen == null) opts.indicatorOpen = "CodeMirror-foldgutter-open";
- if (opts.indicatorFolded == null) opts.indicatorFolded = "CodeMirror-foldgutter-folded";
- return opts;
- }
- function isFolded(cm, line) {
- var marks = cm.findMarks(Pos(line, 0), Pos(line + 1, 0));
- for (var i = 0; i < marks.length; ++i) {
- if (marks[i].__isFold) {
- var fromPos = marks[i].find(-1);
- if (fromPos && fromPos.line === line) return marks[i];
- }
- }
- }
- function marker(spec) {
- if (typeof spec == "string") {
- var elt = document.createElement("div");
- elt.className = spec + " CodeMirror-guttermarker-subtle";
- return elt;
- } else {
- return spec.cloneNode(true);
- }
- }
- function updateFoldInfo(cm, from, to) {
- var opts = cm.state.foldGutter.options,
- cur = from - 1;
- var minSize = cm.foldOption(opts, "minFoldSize");
- var func = cm.foldOption(opts, "rangeFinder");
- var clsFolded = typeof opts.indicatorFolded == "string" && classTest(opts.indicatorFolded);
- var clsOpen = typeof opts.indicatorOpen == "string" && classTest(opts.indicatorOpen);
- cm.eachLine(from, to, function (line) {
- ++cur;
- var mark = null;
- var old = line.gutterMarkers;
- if (old) old = old[opts.gutter];
- if (isFolded(cm, cur)) {
- if (clsFolded && old && clsFolded.test(old.className)) return;
- mark = marker(opts.indicatorFolded);
- } else {
- var pos = Pos(cur, 0);
- var range = func && func(cm, pos);
- if (range && range.to.line - range.from.line >= minSize) {
- if (clsOpen && old && clsOpen.test(old.className)) return;
- mark = marker(opts.indicatorOpen);
- }
- }
- if (!mark && !old) return;
- cm.setGutterMarker(line, opts.gutter, mark);
- });
- }
- function classTest(cls) {
- return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*");
- }
- function updateInViewport(cm) {
- var vp = cm.getViewport(),
- state = cm.state.foldGutter;
- if (!state) return;
- cm.operation(function () {
- updateFoldInfo(cm, vp.from, vp.to);
- });
- state.from = vp.from;
- state.to = vp.to;
- }
- function onGutterClick(cm, line, gutter) {
- var state = cm.state.foldGutter;
- if (!state) return;
- var opts = state.options;
- if (gutter != opts.gutter) return;
- var folded = isFolded(cm, line);
- if (folded) folded.clear();else cm.foldCode(Pos(line, 0), opts);
- }
- function onChange(cm) {
- var state = cm.state.foldGutter;
- if (!state) return;
- var opts = state.options;
- state.from = state.to = 0;
- clearTimeout(state.changeUpdate);
- state.changeUpdate = setTimeout(function () {
- updateInViewport(cm);
- }, opts.foldOnChangeTimeSpan || 600);
- }
- function onViewportChange(cm) {
- var state = cm.state.foldGutter;
- if (!state) return;
- var opts = state.options;
- clearTimeout(state.changeUpdate);
- state.changeUpdate = setTimeout(function () {
- var vp = cm.getViewport();
- if (state.from == state.to || vp.from - state.to > 20 || state.from - vp.to > 20) {
- updateInViewport(cm);
- } else {
- cm.operation(function () {
- if (vp.from < state.from) {
- updateFoldInfo(cm, vp.from, state.from);
- state.from = vp.from;
- }
- if (vp.to > state.to) {
- updateFoldInfo(cm, state.to, vp.to);
- state.to = vp.to;
- }
- });
- }
- }, opts.updateViewportTimeSpan || 400);
- }
- function onFold(cm, from) {
- var state = cm.state.foldGutter;
- if (!state) return;
- var line = from.line;
- if (line >= state.from && line < state.to) updateFoldInfo(cm, line, line + 1);
- }
- });
-})();
-var foldgutterExports = foldgutter$2.exports;
-const foldgutter = /* @__PURE__ */codemirror.getDefaultExportFromCjs(foldgutterExports);
-const foldgutter$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: foldgutter
-}, [foldgutterExports]);
-exports.foldgutter = foldgutter$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/forEachState.cjs.js":
-/*!*****************************************************!*\
- !*** ../../graphiql-react/dist/forEachState.cjs.js ***!
- \*****************************************************/
-/***/ (function(__unused_webpack_module, exports) {
-
-
-
-function forEachState(stack, fn) {
- const reverseStateStack = [];
- let state = stack;
- while (state === null || state === void 0 ? void 0 : state.kind) {
- reverseStateStack.push(state);
- state = state.prevState;
- }
- for (let i = reverseStateStack.length - 1; i >= 0; i--) {
- fn(reverseStateStack[i]);
- }
-}
-exports.forEachState = forEachState;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/hint.cjs.js":
-/*!*********************************************!*\
- !*** ../../graphiql-react/dist/hint.cjs.js ***!
- \*********************************************/
+/***/ "../../codemirror-graphql/esm/hint.js":
+/*!********************************************!*\
+ !*** ../../codemirror-graphql/esm/hint.js ***!
+ \********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-__webpack_require__(/*! ./show-hint.cjs.js */ "../../graphiql-react/dist/show-hint.cjs.js");
-const graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
-codemirror.CodeMirror.registerHelper("hint", "graphql", (editor, options) => {
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+__webpack_require__(/*! codemirror/addon/hint/show-hint.js */ "../../../node_modules/codemirror/addon/hint/show-hint.js");
+var _graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.registerHelper('hint', 'graphql', (editor, options) => {
const {
schema,
externalFragments,
@@ -69028,8 +73292,8 @@ codemirror.CodeMirror.registerHelper("hint", "graphql", (editor, options) => {
const cur = editor.getCursor();
const token = editor.getTokenAt(cur);
const tokenStart = token.type !== null && /"|\w/.test(token.string[0]) ? token.start : token.end;
- const position = new graphqlLanguageService.Position(cur.line, tokenStart);
- const rawResults = graphqlLanguageService.getAutocompleteSuggestions(schema, editor.getValue(), position, token, externalFragments, autocompleteOptions);
+ const position = new _graphqlLanguageService.Position(cur.line, tokenStart);
+ const rawResults = (0, _graphqlLanguageService.getAutocompleteSuggestions)(schema, editor.getValue(), position, token, externalFragments, autocompleteOptions);
const results = {
list: rawResults.map(item => {
var _a;
@@ -69051,26 +73315,611 @@ codemirror.CodeMirror.registerHelper("hint", "graphql", (editor, options) => {
}
};
if ((results === null || results === void 0 ? void 0 : results.list) && results.list.length > 0) {
- results.from = codemirror.CodeMirror.Pos(results.from.line, results.from.ch);
- results.to = codemirror.CodeMirror.Pos(results.to.line, results.to.ch);
- codemirror.CodeMirror.signal(editor, "hasCompletion", editor, results, token);
+ results.from = _codemirror.default.Pos(results.from.line, results.from.ch);
+ results.to = _codemirror.default.Pos(results.to.line, results.to.ch);
+ _codemirror.default.signal(editor, 'hasCompletion', editor, results, token);
}
return results;
});
/***/ }),
-/***/ "../../graphiql-react/dist/hint.cjs2.js":
-/*!**********************************************!*\
- !*** ../../graphiql-react/dist/hint.cjs2.js ***!
- \**********************************************/
+/***/ "../../codemirror-graphql/esm/info.js":
+/*!********************************************!*\
+ !*** ../../codemirror-graphql/esm/info.js ***!
+ \********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-const graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
-const forEachState = __webpack_require__(/*! ./forEachState.cjs.js */ "../../graphiql-react/dist/forEachState.cjs.js");
+var _graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+var _getTypeInfo = _interopRequireDefault(__webpack_require__(/*! ./utils/getTypeInfo */ "../../codemirror-graphql/esm/utils/getTypeInfo.js"));
+var _SchemaReference = __webpack_require__(/*! ./utils/SchemaReference */ "../../codemirror-graphql/esm/utils/SchemaReference.js");
+__webpack_require__(/*! ./utils/info-addon */ "../../codemirror-graphql/esm/utils/info-addon.js");
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.registerHelper('info', 'graphql', (token, options) => {
+ var _a;
+ if (!options.schema || !token.state) {
+ return;
+ }
+ const {
+ kind,
+ step
+ } = token.state;
+ const typeInfo = (0, _getTypeInfo.default)(options.schema, token.state);
+ if (kind === 'Field' && step === 0 && typeInfo.fieldDef || kind === 'AliasedField' && step === 2 && typeInfo.fieldDef || kind === 'ObjectField' && step === 0 && typeInfo.fieldDef) {
+ const header = document.createElement('div');
+ header.className = 'CodeMirror-info-header';
+ renderField(header, typeInfo, options);
+ const into = document.createElement('div');
+ into.append(header);
+ renderDescription(into, options, typeInfo.fieldDef);
+ return into;
+ }
+ if (kind === 'Directive' && step === 1 && typeInfo.directiveDef) {
+ const header = document.createElement('div');
+ header.className = 'CodeMirror-info-header';
+ renderDirective(header, typeInfo, options);
+ const into = document.createElement('div');
+ into.append(header);
+ renderDescription(into, options, typeInfo.directiveDef);
+ return into;
+ }
+ if (kind === 'Argument' && step === 0 && typeInfo.argDef) {
+ const header = document.createElement('div');
+ header.className = 'CodeMirror-info-header';
+ renderArg(header, typeInfo, options);
+ const into = document.createElement('div');
+ into.append(header);
+ renderDescription(into, options, typeInfo.argDef);
+ return into;
+ }
+ if (kind === 'EnumValue' && ((_a = typeInfo.enumValue) === null || _a === void 0 ? void 0 : _a.description)) {
+ const header = document.createElement('div');
+ header.className = 'CodeMirror-info-header';
+ renderEnumValue(header, typeInfo, options);
+ const into = document.createElement('div');
+ into.append(header);
+ renderDescription(into, options, typeInfo.enumValue);
+ return into;
+ }
+ if (kind === 'NamedType' && typeInfo.type && typeInfo.type.description) {
+ const header = document.createElement('div');
+ header.className = 'CodeMirror-info-header';
+ renderType(header, typeInfo, options, typeInfo.type);
+ const into = document.createElement('div');
+ into.append(header);
+ renderDescription(into, options, typeInfo.type);
+ return into;
+ }
+});
+function renderField(into, typeInfo, options) {
+ renderQualifiedField(into, typeInfo, options);
+ renderTypeAnnotation(into, typeInfo, options, typeInfo.type);
+}
+function renderQualifiedField(into, typeInfo, options) {
+ var _a;
+ const fieldName = ((_a = typeInfo.fieldDef) === null || _a === void 0 ? void 0 : _a.name) || '';
+ text(into, fieldName, 'field-name', options, (0, _SchemaReference.getFieldReference)(typeInfo));
+}
+function renderDirective(into, typeInfo, options) {
+ var _a;
+ const name = '@' + (((_a = typeInfo.directiveDef) === null || _a === void 0 ? void 0 : _a.name) || '');
+ text(into, name, 'directive-name', options, (0, _SchemaReference.getDirectiveReference)(typeInfo));
+}
+function renderArg(into, typeInfo, options) {
+ var _a;
+ const name = ((_a = typeInfo.argDef) === null || _a === void 0 ? void 0 : _a.name) || '';
+ text(into, name, 'arg-name', options, (0, _SchemaReference.getArgumentReference)(typeInfo));
+ renderTypeAnnotation(into, typeInfo, options, typeInfo.inputType);
+}
+function renderEnumValue(into, typeInfo, options) {
+ var _a;
+ const name = ((_a = typeInfo.enumValue) === null || _a === void 0 ? void 0 : _a.name) || '';
+ renderType(into, typeInfo, options, typeInfo.inputType);
+ text(into, '.');
+ text(into, name, 'enum-value', options, (0, _SchemaReference.getEnumValueReference)(typeInfo));
+}
+function renderTypeAnnotation(into, typeInfo, options, t) {
+ const typeSpan = document.createElement('span');
+ typeSpan.className = 'type-name-pill';
+ if (t instanceof _graphql.GraphQLNonNull) {
+ renderType(typeSpan, typeInfo, options, t.ofType);
+ text(typeSpan, '!');
+ } else if (t instanceof _graphql.GraphQLList) {
+ text(typeSpan, '[');
+ renderType(typeSpan, typeInfo, options, t.ofType);
+ text(typeSpan, ']');
+ } else {
+ text(typeSpan, (t === null || t === void 0 ? void 0 : t.name) || '', 'type-name', options, (0, _SchemaReference.getTypeReference)(typeInfo, t));
+ }
+ into.append(typeSpan);
+}
+function renderType(into, typeInfo, options, t) {
+ if (t instanceof _graphql.GraphQLNonNull) {
+ renderType(into, typeInfo, options, t.ofType);
+ text(into, '!');
+ } else if (t instanceof _graphql.GraphQLList) {
+ text(into, '[');
+ renderType(into, typeInfo, options, t.ofType);
+ text(into, ']');
+ } else {
+ text(into, (t === null || t === void 0 ? void 0 : t.name) || '', 'type-name', options, (0, _SchemaReference.getTypeReference)(typeInfo, t));
+ }
+}
+function renderDescription(into, options, def) {
+ const {
+ description
+ } = def;
+ if (description) {
+ const descriptionDiv = document.createElement('div');
+ descriptionDiv.className = 'info-description';
+ if (options.renderDescription) {
+ descriptionDiv.innerHTML = options.renderDescription(description);
+ } else {
+ descriptionDiv.append(document.createTextNode(description));
+ }
+ into.append(descriptionDiv);
+ }
+ renderDeprecation(into, options, def);
+}
+function renderDeprecation(into, options, def) {
+ const reason = def.deprecationReason;
+ if (reason) {
+ const deprecationDiv = document.createElement('div');
+ deprecationDiv.className = 'info-deprecation';
+ into.append(deprecationDiv);
+ const label = document.createElement('span');
+ label.className = 'info-deprecation-label';
+ label.append(document.createTextNode('Deprecated'));
+ deprecationDiv.append(label);
+ const reasonDiv = document.createElement('div');
+ reasonDiv.className = 'info-deprecation-reason';
+ if (options.renderDescription) {
+ reasonDiv.innerHTML = options.renderDescription(reason);
+ } else {
+ reasonDiv.append(document.createTextNode(reason));
+ }
+ deprecationDiv.append(reasonDiv);
+ }
+}
+function text(into, content, className = '', options = {
+ onClick: null
+}, ref = null) {
+ if (className) {
+ const {
+ onClick
+ } = options;
+ let node;
+ if (onClick) {
+ node = document.createElement('a');
+ node.href = 'javascript:void 0';
+ node.addEventListener('click', e => {
+ e.preventDefault();
+ onClick(ref, e);
+ });
+ } else {
+ node = document.createElement('span');
+ }
+ node.className = className;
+ node.append(document.createTextNode(content));
+ into.append(node);
+ } else {
+ into.append(document.createTextNode(content));
+ }
+}
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/jump.js":
+/*!********************************************!*\
+ !*** ../../codemirror-graphql/esm/jump.js ***!
+ \********************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+var _getTypeInfo = _interopRequireDefault(__webpack_require__(/*! ./utils/getTypeInfo */ "../../codemirror-graphql/esm/utils/getTypeInfo.js"));
+var _SchemaReference = __webpack_require__(/*! ./utils/SchemaReference */ "../../codemirror-graphql/esm/utils/SchemaReference.js");
+__webpack_require__(/*! ./utils/jump-addon */ "../../codemirror-graphql/esm/utils/jump-addon.js");
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.registerHelper('jump', 'graphql', (token, options) => {
+ if (!options.schema || !options.onClick || !token.state) {
+ return;
+ }
+ const {
+ state
+ } = token;
+ const {
+ kind,
+ step
+ } = state;
+ const typeInfo = (0, _getTypeInfo.default)(options.schema, state);
+ if (kind === 'Field' && step === 0 && typeInfo.fieldDef || kind === 'AliasedField' && step === 2 && typeInfo.fieldDef) {
+ return (0, _SchemaReference.getFieldReference)(typeInfo);
+ }
+ if (kind === 'Directive' && step === 1 && typeInfo.directiveDef) {
+ return (0, _SchemaReference.getDirectiveReference)(typeInfo);
+ }
+ if (kind === 'Argument' && step === 0 && typeInfo.argDef) {
+ return (0, _SchemaReference.getArgumentReference)(typeInfo);
+ }
+ if (kind === 'EnumValue' && typeInfo.enumValue) {
+ return (0, _SchemaReference.getEnumValueReference)(typeInfo);
+ }
+ if (kind === 'NamedType' && typeInfo.type) {
+ return (0, _SchemaReference.getTypeReference)(typeInfo);
+ }
+});
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/lint.js":
+/*!********************************************!*\
+ !*** ../../codemirror-graphql/esm/lint.js ***!
+ \********************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+var _graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+const SEVERITY = ['error', 'warning', 'information', 'hint'];
+const TYPE = {
+ 'GraphQL: Validation': 'validation',
+ 'GraphQL: Deprecation': 'deprecation',
+ 'GraphQL: Syntax': 'syntax'
+};
+_codemirror.default.registerHelper('lint', 'graphql', (text, options) => {
+ const {
+ schema,
+ validationRules,
+ externalFragments
+ } = options;
+ const rawResults = (0, _graphqlLanguageService.getDiagnostics)(text, schema, validationRules, undefined, externalFragments);
+ const results = rawResults.map(error => ({
+ message: error.message,
+ severity: error.severity ? SEVERITY[error.severity - 1] : SEVERITY[0],
+ type: error.source ? TYPE[error.source] : undefined,
+ from: _codemirror.default.Pos(error.range.start.line, error.range.start.character),
+ to: _codemirror.default.Pos(error.range.end.line, error.range.end.character)
+ }));
+ return results;
+});
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/mode.js":
+/*!********************************************!*\
+ !*** ../../codemirror-graphql/esm/mode.js ***!
+ \********************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+var _modeFactory = _interopRequireDefault(__webpack_require__(/*! ./utils/mode-factory */ "../../codemirror-graphql/esm/utils/mode-factory.js"));
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.defineMode('graphql', _modeFactory.default);
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/results/mode.js":
+/*!****************************************************!*\
+ !*** ../../codemirror-graphql/esm/results/mode.js ***!
+ \****************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+var _graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
+var _modeIndent = _interopRequireDefault(__webpack_require__(/*! ../utils/mode-indent */ "../../codemirror-graphql/esm/utils/mode-indent.js"));
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.defineMode('graphql-results', config => {
+ const parser = (0, _graphqlLanguageService.onlineParser)({
+ eatWhitespace: stream => stream.eatSpace(),
+ lexRules: LexRules,
+ parseRules: ParseRules,
+ editorConfig: {
+ tabSize: config.tabSize
+ }
+ });
+ return {
+ config,
+ startState: parser.startState,
+ token: parser.token,
+ indent: _modeIndent.default,
+ electricInput: /^\s*[}\]]/,
+ fold: 'brace',
+ closeBrackets: {
+ pairs: '[]{}""',
+ explode: '[]{}'
+ }
+ };
+});
+const LexRules = {
+ Punctuation: /^\[|]|\{|\}|:|,/,
+ Number: /^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,
+ String: /^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,
+ Keyword: /^true|false|null/
+};
+const ParseRules = {
+ Document: [(0, _graphqlLanguageService.p)('{'), (0, _graphqlLanguageService.list)('Entry', (0, _graphqlLanguageService.p)(',')), (0, _graphqlLanguageService.p)('}')],
+ Entry: [(0, _graphqlLanguageService.t)('String', 'def'), (0, _graphqlLanguageService.p)(':'), 'Value'],
+ Value(token) {
+ switch (token.kind) {
+ case 'Number':
+ return 'NumberValue';
+ case 'String':
+ return 'StringValue';
+ case 'Punctuation':
+ switch (token.value) {
+ case '[':
+ return 'ListValue';
+ case '{':
+ return 'ObjectValue';
+ }
+ return null;
+ case 'Keyword':
+ switch (token.value) {
+ case 'true':
+ case 'false':
+ return 'BooleanValue';
+ case 'null':
+ return 'NullValue';
+ }
+ return null;
+ }
+ },
+ NumberValue: [(0, _graphqlLanguageService.t)('Number', 'number')],
+ StringValue: [(0, _graphqlLanguageService.t)('String', 'string')],
+ BooleanValue: [(0, _graphqlLanguageService.t)('Keyword', 'builtin')],
+ NullValue: [(0, _graphqlLanguageService.t)('Keyword', 'keyword')],
+ ListValue: [(0, _graphqlLanguageService.p)('['), (0, _graphqlLanguageService.list)('Value', (0, _graphqlLanguageService.p)(',')), (0, _graphqlLanguageService.p)(']')],
+ ObjectValue: [(0, _graphqlLanguageService.p)('{'), (0, _graphqlLanguageService.list)('ObjectField', (0, _graphqlLanguageService.p)(',')), (0, _graphqlLanguageService.p)('}')],
+ ObjectField: [(0, _graphqlLanguageService.t)('String', 'property'), (0, _graphqlLanguageService.p)(':'), 'Value']
+};
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/utils/SchemaReference.js":
+/*!*************************************************************!*\
+ !*** ../../codemirror-graphql/esm/utils/SchemaReference.js ***!
+ \*************************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.getArgumentReference = getArgumentReference;
+exports.getDirectiveReference = getDirectiveReference;
+exports.getEnumValueReference = getEnumValueReference;
+exports.getFieldReference = getFieldReference;
+exports.getTypeReference = getTypeReference;
+var _graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
+function getFieldReference(typeInfo) {
+ return {
+ kind: 'Field',
+ schema: typeInfo.schema,
+ field: typeInfo.fieldDef,
+ type: isMetaField(typeInfo.fieldDef) ? null : typeInfo.parentType
+ };
+}
+function getDirectiveReference(typeInfo) {
+ return {
+ kind: 'Directive',
+ schema: typeInfo.schema,
+ directive: typeInfo.directiveDef
+ };
+}
+function getArgumentReference(typeInfo) {
+ return typeInfo.directiveDef ? {
+ kind: 'Argument',
+ schema: typeInfo.schema,
+ argument: typeInfo.argDef,
+ directive: typeInfo.directiveDef
+ } : {
+ kind: 'Argument',
+ schema: typeInfo.schema,
+ argument: typeInfo.argDef,
+ field: typeInfo.fieldDef,
+ type: isMetaField(typeInfo.fieldDef) ? null : typeInfo.parentType
+ };
+}
+function getEnumValueReference(typeInfo) {
+ return {
+ kind: 'EnumValue',
+ value: typeInfo.enumValue || undefined,
+ type: typeInfo.inputType ? (0, _graphql.getNamedType)(typeInfo.inputType) : undefined
+ };
+}
+function getTypeReference(typeInfo, type) {
+ return {
+ kind: 'Type',
+ schema: typeInfo.schema,
+ type: type || typeInfo.type
+ };
+}
+function isMetaField(fieldDef) {
+ return fieldDef.name.slice(0, 2) === '__';
+}
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/utils/forEachState.js":
+/*!**********************************************************!*\
+ !*** ../../codemirror-graphql/esm/utils/forEachState.js ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, exports) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = forEachState;
+function forEachState(stack, fn) {
+ const reverseStateStack = [];
+ let state = stack;
+ while (state === null || state === void 0 ? void 0 : state.kind) {
+ reverseStateStack.push(state);
+ state = state.prevState;
+ }
+ for (let i = reverseStateStack.length - 1; i >= 0; i--) {
+ fn(reverseStateStack[i]);
+ }
+}
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/utils/getTypeInfo.js":
+/*!*********************************************************!*\
+ !*** ../../codemirror-graphql/esm/utils/getTypeInfo.js ***!
+ \*********************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = getTypeInfo;
+var _graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
+var _forEachState = _interopRequireDefault(__webpack_require__(/*! ./forEachState */ "../../codemirror-graphql/esm/utils/forEachState.js"));
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+function getTypeInfo(schema, tokenState) {
+ const info = {
+ schema,
+ type: null,
+ parentType: null,
+ inputType: null,
+ directiveDef: null,
+ fieldDef: null,
+ argDef: null,
+ argDefs: null,
+ objectFieldDefs: null
+ };
+ (0, _forEachState.default)(tokenState, state => {
+ var _a, _b;
+ switch (state.kind) {
+ case 'Query':
+ case 'ShortQuery':
+ info.type = schema.getQueryType();
+ break;
+ case 'Mutation':
+ info.type = schema.getMutationType();
+ break;
+ case 'Subscription':
+ info.type = schema.getSubscriptionType();
+ break;
+ case 'InlineFragment':
+ case 'FragmentDefinition':
+ if (state.type) {
+ info.type = schema.getType(state.type);
+ }
+ break;
+ case 'Field':
+ case 'AliasedField':
+ info.fieldDef = info.type && state.name ? getFieldDef(schema, info.parentType, state.name) : null;
+ info.type = (_a = info.fieldDef) === null || _a === void 0 ? void 0 : _a.type;
+ break;
+ case 'SelectionSet':
+ info.parentType = info.type ? (0, _graphql.getNamedType)(info.type) : null;
+ break;
+ case 'Directive':
+ info.directiveDef = state.name ? schema.getDirective(state.name) : null;
+ break;
+ case 'Arguments':
+ const parentDef = state.prevState ? state.prevState.kind === 'Field' ? info.fieldDef : state.prevState.kind === 'Directive' ? info.directiveDef : state.prevState.kind === 'AliasedField' ? state.prevState.name && getFieldDef(schema, info.parentType, state.prevState.name) : null : null;
+ info.argDefs = parentDef ? parentDef.args : null;
+ break;
+ case 'Argument':
+ info.argDef = null;
+ if (info.argDefs) {
+ for (let i = 0; i < info.argDefs.length; i++) {
+ if (info.argDefs[i].name === state.name) {
+ info.argDef = info.argDefs[i];
+ break;
+ }
+ }
+ }
+ info.inputType = (_b = info.argDef) === null || _b === void 0 ? void 0 : _b.type;
+ break;
+ case 'EnumValue':
+ const enumType = info.inputType ? (0, _graphql.getNamedType)(info.inputType) : null;
+ info.enumValue = enumType instanceof _graphql.GraphQLEnumType ? find(enumType.getValues(), val => val.value === state.name) : null;
+ break;
+ case 'ListValue':
+ const nullableType = info.inputType ? (0, _graphql.getNullableType)(info.inputType) : null;
+ info.inputType = nullableType instanceof _graphql.GraphQLList ? nullableType.ofType : null;
+ break;
+ case 'ObjectValue':
+ const objectType = info.inputType ? (0, _graphql.getNamedType)(info.inputType) : null;
+ info.objectFieldDefs = objectType instanceof _graphql.GraphQLInputObjectType ? objectType.getFields() : null;
+ break;
+ case 'ObjectField':
+ const objectField = state.name && info.objectFieldDefs ? info.objectFieldDefs[state.name] : null;
+ info.inputType = objectField === null || objectField === void 0 ? void 0 : objectField.type;
+ info.fieldDef = objectField;
+ break;
+ case 'NamedType':
+ info.type = state.name ? schema.getType(state.name) : null;
+ break;
+ }
+ });
+ return info;
+}
+function getFieldDef(schema, type, fieldName) {
+ if (fieldName === _graphql.SchemaMetaFieldDef.name && schema.getQueryType() === type) {
+ return _graphql.SchemaMetaFieldDef;
+ }
+ if (fieldName === _graphql.TypeMetaFieldDef.name && schema.getQueryType() === type) {
+ return _graphql.TypeMetaFieldDef;
+ }
+ if (fieldName === _graphql.TypeNameMetaFieldDef.name && (0, _graphql.isCompositeType)(type)) {
+ return _graphql.TypeNameMetaFieldDef;
+ }
+ if (type && type.getFields) {
+ return type.getFields()[fieldName];
+ }
+}
+function find(array, predicate) {
+ for (let i = 0; i < array.length; i++) {
+ if (predicate(array[i])) {
+ return array[i];
+ }
+ }
+}
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/utils/hintList.js":
+/*!******************************************************!*\
+ !*** ../../codemirror-graphql/esm/utils/hintList.js ***!
+ \******************************************************/
+/***/ (function(__unused_webpack_module, exports) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = hintList;
function hintList(cursor, token, list) {
const hints = filterAndSortList(list, normalizeText(token.string));
if (!hints) {
@@ -69106,7 +73955,7 @@ function filterNonEmpty(array, predicate) {
return filtered.length === 0 ? array : filtered;
}
function normalizeText(text) {
- return text.toLowerCase().replaceAll(/\W/g, "");
+ return text.toLowerCase().replaceAll(/\W/g, '');
}
function getProximity(suggestion, text) {
let proximity = lexicalDistance(text, suggestion);
@@ -69139,26 +73988,668 @@ function lexicalDistance(a, b) {
}
return d[aLength][bLength];
}
-codemirror.CodeMirror.registerHelper("hint", "graphql-variables", (editor, options) => {
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/utils/info-addon.js":
+/*!********************************************************!*\
+ !*** ../../codemirror-graphql/esm/utils/info-addon.js ***!
+ \********************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.defineOption('info', false, (cm, options, old) => {
+ if (old && old !== _codemirror.default.Init) {
+ const oldOnMouseOver = cm.state.info.onMouseOver;
+ _codemirror.default.off(cm.getWrapperElement(), 'mouseover', oldOnMouseOver);
+ clearTimeout(cm.state.info.hoverTimeout);
+ delete cm.state.info;
+ }
+ if (options) {
+ const state = cm.state.info = createState(options);
+ state.onMouseOver = onMouseOver.bind(null, cm);
+ _codemirror.default.on(cm.getWrapperElement(), 'mouseover', state.onMouseOver);
+ }
+});
+function createState(options) {
+ return {
+ options: options instanceof Function ? {
+ render: options
+ } : options === true ? {} : options
+ };
+}
+function getHoverTime(cm) {
+ const {
+ options
+ } = cm.state.info;
+ return (options === null || options === void 0 ? void 0 : options.hoverTime) || 500;
+}
+function onMouseOver(cm, e) {
+ const state = cm.state.info;
+ const target = e.target || e.srcElement;
+ if (!(target instanceof HTMLElement)) {
+ return;
+ }
+ if (target.nodeName !== 'SPAN' || state.hoverTimeout !== undefined) {
+ return;
+ }
+ const box = target.getBoundingClientRect();
+ const onMouseMove = function () {
+ clearTimeout(state.hoverTimeout);
+ state.hoverTimeout = setTimeout(onHover, hoverTime);
+ };
+ const onMouseOut = function () {
+ _codemirror.default.off(document, 'mousemove', onMouseMove);
+ _codemirror.default.off(cm.getWrapperElement(), 'mouseout', onMouseOut);
+ clearTimeout(state.hoverTimeout);
+ state.hoverTimeout = undefined;
+ };
+ const onHover = function () {
+ _codemirror.default.off(document, 'mousemove', onMouseMove);
+ _codemirror.default.off(cm.getWrapperElement(), 'mouseout', onMouseOut);
+ state.hoverTimeout = undefined;
+ onMouseHover(cm, box);
+ };
+ const hoverTime = getHoverTime(cm);
+ state.hoverTimeout = setTimeout(onHover, hoverTime);
+ _codemirror.default.on(document, 'mousemove', onMouseMove);
+ _codemirror.default.on(cm.getWrapperElement(), 'mouseout', onMouseOut);
+}
+function onMouseHover(cm, box) {
+ const pos = cm.coordsChar({
+ left: (box.left + box.right) / 2,
+ top: (box.top + box.bottom) / 2
+ }, 'window');
+ const state = cm.state.info;
+ const {
+ options
+ } = state;
+ const render = options.render || cm.getHelper(pos, 'info');
+ if (render) {
+ const token = cm.getTokenAt(pos, true);
+ if (token) {
+ const info = render(token, options, cm, pos);
+ if (info) {
+ showPopup(cm, box, info);
+ }
+ }
+ }
+}
+function showPopup(cm, box, info) {
+ const popup = document.createElement('div');
+ popup.className = 'CodeMirror-info';
+ popup.append(info);
+ document.body.append(popup);
+ const popupBox = popup.getBoundingClientRect();
+ const popupStyle = window.getComputedStyle(popup);
+ const popupWidth = popupBox.right - popupBox.left + parseFloat(popupStyle.marginLeft) + parseFloat(popupStyle.marginRight);
+ const popupHeight = popupBox.bottom - popupBox.top + parseFloat(popupStyle.marginTop) + parseFloat(popupStyle.marginBottom);
+ let topPos = box.bottom;
+ if (popupHeight > window.innerHeight - box.bottom - 15 && box.top > window.innerHeight - box.bottom) {
+ topPos = box.top - popupHeight;
+ }
+ if (topPos < 0) {
+ topPos = box.bottom;
+ }
+ let leftPos = Math.max(0, window.innerWidth - popupWidth - 15);
+ if (leftPos > box.left) {
+ leftPos = box.left;
+ }
+ popup.style.opacity = '1';
+ popup.style.top = topPos + 'px';
+ popup.style.left = leftPos + 'px';
+ let popupTimeout;
+ const onMouseOverPopup = function () {
+ clearTimeout(popupTimeout);
+ };
+ const onMouseOut = function () {
+ clearTimeout(popupTimeout);
+ popupTimeout = setTimeout(hidePopup, 200);
+ };
+ const hidePopup = function () {
+ _codemirror.default.off(popup, 'mouseover', onMouseOverPopup);
+ _codemirror.default.off(popup, 'mouseout', onMouseOut);
+ _codemirror.default.off(cm.getWrapperElement(), 'mouseout', onMouseOut);
+ if (popup.style.opacity) {
+ popup.style.opacity = '0';
+ setTimeout(() => {
+ if (popup.parentNode) {
+ popup.remove();
+ }
+ }, 600);
+ } else if (popup.parentNode) {
+ popup.remove();
+ }
+ };
+ _codemirror.default.on(popup, 'mouseover', onMouseOverPopup);
+ _codemirror.default.on(popup, 'mouseout', onMouseOut);
+ _codemirror.default.on(cm.getWrapperElement(), 'mouseout', onMouseOut);
+}
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/utils/jsonParse.js":
+/*!*******************************************************!*\
+ !*** ../../codemirror-graphql/esm/utils/jsonParse.js ***!
+ \*******************************************************/
+/***/ (function(__unused_webpack_module, exports) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.JSONSyntaxError = void 0;
+exports["default"] = jsonParse;
+function jsonParse(str) {
+ string = str;
+ strLen = str.length;
+ start = end = lastEnd = -1;
+ ch();
+ lex();
+ const ast = parseObj();
+ expect('EOF');
+ return ast;
+}
+let string;
+let strLen;
+let start;
+let end;
+let lastEnd;
+let code;
+let kind;
+function parseObj() {
+ const nodeStart = start;
+ const members = [];
+ expect('{');
+ if (!skip('}')) {
+ do {
+ members.push(parseMember());
+ } while (skip(','));
+ expect('}');
+ }
+ return {
+ kind: 'Object',
+ start: nodeStart,
+ end: lastEnd,
+ members
+ };
+}
+function parseMember() {
+ const nodeStart = start;
+ const key = kind === 'String' ? curToken() : null;
+ expect('String');
+ expect(':');
+ const value = parseVal();
+ return {
+ kind: 'Member',
+ start: nodeStart,
+ end: lastEnd,
+ key,
+ value
+ };
+}
+function parseArr() {
+ const nodeStart = start;
+ const values = [];
+ expect('[');
+ if (!skip(']')) {
+ do {
+ values.push(parseVal());
+ } while (skip(','));
+ expect(']');
+ }
+ return {
+ kind: 'Array',
+ start: nodeStart,
+ end: lastEnd,
+ values
+ };
+}
+function parseVal() {
+ switch (kind) {
+ case '[':
+ return parseArr();
+ case '{':
+ return parseObj();
+ case 'String':
+ case 'Number':
+ case 'Boolean':
+ case 'Null':
+ const token = curToken();
+ lex();
+ return token;
+ }
+ expect('Value');
+}
+function curToken() {
+ return {
+ kind,
+ start,
+ end,
+ value: JSON.parse(string.slice(start, end))
+ };
+}
+function expect(str) {
+ if (kind === str) {
+ lex();
+ return;
+ }
+ let found;
+ if (kind === 'EOF') {
+ found = '[end of file]';
+ } else if (end - start > 1) {
+ found = '`' + string.slice(start, end) + '`';
+ } else {
+ const match = string.slice(start).match(/^.+?\b/);
+ found = '`' + (match ? match[0] : string[start]) + '`';
+ }
+ throw syntaxError(`Expected ${str} but found ${found}.`);
+}
+class JSONSyntaxError extends Error {
+ constructor(message, position) {
+ super(message);
+ this.position = position;
+ }
+}
+exports.JSONSyntaxError = JSONSyntaxError;
+function syntaxError(message) {
+ return new JSONSyntaxError(message, {
+ start,
+ end
+ });
+}
+function skip(k) {
+ if (kind === k) {
+ lex();
+ return true;
+ }
+}
+function ch() {
+ if (end < strLen) {
+ end++;
+ code = end === strLen ? 0 : string.charCodeAt(end);
+ }
+ return code;
+}
+function lex() {
+ lastEnd = end;
+ while (code === 9 || code === 10 || code === 13 || code === 32) {
+ ch();
+ }
+ if (code === 0) {
+ kind = 'EOF';
+ return;
+ }
+ start = end;
+ switch (code) {
+ case 34:
+ kind = 'String';
+ return readString();
+ case 45:
+ case 48:
+ case 49:
+ case 50:
+ case 51:
+ case 52:
+ case 53:
+ case 54:
+ case 55:
+ case 56:
+ case 57:
+ kind = 'Number';
+ return readNumber();
+ case 102:
+ if (string.slice(start, start + 5) !== 'false') {
+ break;
+ }
+ end += 4;
+ ch();
+ kind = 'Boolean';
+ return;
+ case 110:
+ if (string.slice(start, start + 4) !== 'null') {
+ break;
+ }
+ end += 3;
+ ch();
+ kind = 'Null';
+ return;
+ case 116:
+ if (string.slice(start, start + 4) !== 'true') {
+ break;
+ }
+ end += 3;
+ ch();
+ kind = 'Boolean';
+ return;
+ }
+ kind = string[start];
+ ch();
+}
+function readString() {
+ ch();
+ while (code !== 34 && code > 31) {
+ if (code === 92) {
+ code = ch();
+ switch (code) {
+ case 34:
+ case 47:
+ case 92:
+ case 98:
+ case 102:
+ case 110:
+ case 114:
+ case 116:
+ ch();
+ break;
+ case 117:
+ ch();
+ readHex();
+ readHex();
+ readHex();
+ readHex();
+ break;
+ default:
+ throw syntaxError('Bad character escape sequence.');
+ }
+ } else if (end === strLen) {
+ throw syntaxError('Unterminated string.');
+ } else {
+ ch();
+ }
+ }
+ if (code === 34) {
+ ch();
+ return;
+ }
+ throw syntaxError('Unterminated string.');
+}
+function readHex() {
+ if (code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102) {
+ return ch();
+ }
+ throw syntaxError('Expected hexadecimal digit.');
+}
+function readNumber() {
+ if (code === 45) {
+ ch();
+ }
+ if (code === 48) {
+ ch();
+ } else {
+ readDigits();
+ }
+ if (code === 46) {
+ ch();
+ readDigits();
+ }
+ if (code === 69 || code === 101) {
+ code = ch();
+ if (code === 43 || code === 45) {
+ ch();
+ }
+ readDigits();
+ }
+}
+function readDigits() {
+ if (code < 48 || code > 57) {
+ throw syntaxError('Expected decimal digit.');
+ }
+ do {
+ ch();
+ } while (code >= 48 && code <= 57);
+}
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/utils/jump-addon.js":
+/*!********************************************************!*\
+ !*** ../../codemirror-graphql/esm/utils/jump-addon.js ***!
+ \********************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.defineOption('jump', false, (cm, options, old) => {
+ if (old && old !== _codemirror.default.Init) {
+ const oldOnMouseOver = cm.state.jump.onMouseOver;
+ _codemirror.default.off(cm.getWrapperElement(), 'mouseover', oldOnMouseOver);
+ const oldOnMouseOut = cm.state.jump.onMouseOut;
+ _codemirror.default.off(cm.getWrapperElement(), 'mouseout', oldOnMouseOut);
+ _codemirror.default.off(document, 'keydown', cm.state.jump.onKeyDown);
+ delete cm.state.jump;
+ }
+ if (options) {
+ const state = cm.state.jump = {
+ options,
+ onMouseOver: onMouseOver.bind(null, cm),
+ onMouseOut: onMouseOut.bind(null, cm),
+ onKeyDown: onKeyDown.bind(null, cm)
+ };
+ _codemirror.default.on(cm.getWrapperElement(), 'mouseover', state.onMouseOver);
+ _codemirror.default.on(cm.getWrapperElement(), 'mouseout', state.onMouseOut);
+ _codemirror.default.on(document, 'keydown', state.onKeyDown);
+ }
+});
+function onMouseOver(cm, event) {
+ const target = event.target || event.srcElement;
+ if (!(target instanceof HTMLElement)) {
+ return;
+ }
+ if ((target === null || target === void 0 ? void 0 : target.nodeName) !== 'SPAN') {
+ return;
+ }
+ const box = target.getBoundingClientRect();
+ const cursor = {
+ left: (box.left + box.right) / 2,
+ top: (box.top + box.bottom) / 2
+ };
+ cm.state.jump.cursor = cursor;
+ if (cm.state.jump.isHoldingModifier) {
+ enableJumpMode(cm);
+ }
+}
+function onMouseOut(cm) {
+ if (!cm.state.jump.isHoldingModifier && cm.state.jump.cursor) {
+ cm.state.jump.cursor = null;
+ return;
+ }
+ if (cm.state.jump.isHoldingModifier && cm.state.jump.marker) {
+ disableJumpMode(cm);
+ }
+}
+function onKeyDown(cm, event) {
+ if (cm.state.jump.isHoldingModifier || !isJumpModifier(event.key)) {
+ return;
+ }
+ cm.state.jump.isHoldingModifier = true;
+ if (cm.state.jump.cursor) {
+ enableJumpMode(cm);
+ }
+ const onKeyUp = upEvent => {
+ if (upEvent.code !== event.code) {
+ return;
+ }
+ cm.state.jump.isHoldingModifier = false;
+ if (cm.state.jump.marker) {
+ disableJumpMode(cm);
+ }
+ _codemirror.default.off(document, 'keyup', onKeyUp);
+ _codemirror.default.off(document, 'click', onClick);
+ cm.off('mousedown', onMouseDown);
+ };
+ const onClick = clickEvent => {
+ const {
+ destination,
+ options
+ } = cm.state.jump;
+ if (destination) {
+ options.onClick(destination, clickEvent);
+ }
+ };
+ const onMouseDown = (_, downEvent) => {
+ if (cm.state.jump.destination) {
+ downEvent.codemirrorIgnore = true;
+ }
+ };
+ _codemirror.default.on(document, 'keyup', onKeyUp);
+ _codemirror.default.on(document, 'click', onClick);
+ cm.on('mousedown', onMouseDown);
+}
+const isMac = typeof navigator !== 'undefined' && navigator.userAgent.includes('Mac');
+function isJumpModifier(key) {
+ return key === (isMac ? 'Meta' : 'Control');
+}
+function enableJumpMode(cm) {
+ if (cm.state.jump.marker) {
+ return;
+ }
+ const {
+ cursor,
+ options
+ } = cm.state.jump;
+ const pos = cm.coordsChar(cursor);
+ const token = cm.getTokenAt(pos, true);
+ const getDestination = options.getDestination || cm.getHelper(pos, 'jump');
+ if (getDestination) {
+ const destination = getDestination(token, options, cm);
+ if (destination) {
+ const marker = cm.markText({
+ line: pos.line,
+ ch: token.start
+ }, {
+ line: pos.line,
+ ch: token.end
+ }, {
+ className: 'CodeMirror-jump-token'
+ });
+ cm.state.jump.marker = marker;
+ cm.state.jump.destination = destination;
+ }
+ }
+}
+function disableJumpMode(cm) {
+ const {
+ marker
+ } = cm.state.jump;
+ cm.state.jump.marker = null;
+ cm.state.jump.destination = null;
+ marker.clear();
+}
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/utils/mode-factory.js":
+/*!**********************************************************!*\
+ !*** ../../codemirror-graphql/esm/utils/mode-factory.js ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
+var _modeIndent = _interopRequireDefault(__webpack_require__(/*! ./mode-indent */ "../../codemirror-graphql/esm/utils/mode-indent.js"));
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+const graphqlModeFactory = config => {
+ const parser = (0, _graphqlLanguageService.onlineParser)({
+ eatWhitespace: stream => stream.eatWhile(_graphqlLanguageService.isIgnored),
+ lexRules: _graphqlLanguageService.LexRules,
+ parseRules: _graphqlLanguageService.ParseRules,
+ editorConfig: {
+ tabSize: config.tabSize
+ }
+ });
+ return {
+ config,
+ startState: parser.startState,
+ token: parser.token,
+ indent: _modeIndent.default,
+ electricInput: /^\s*[})\]]/,
+ fold: 'brace',
+ lineComment: '#',
+ closeBrackets: {
+ pairs: '()[]{}""',
+ explode: '()[]{}'
+ }
+ };
+};
+var _default = exports["default"] = graphqlModeFactory;
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/utils/mode-indent.js":
+/*!*********************************************************!*\
+ !*** ../../codemirror-graphql/esm/utils/mode-indent.js ***!
+ \*********************************************************/
+/***/ (function(__unused_webpack_module, exports) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = indent;
+function indent(state, textAfter) {
+ var _a, _b;
+ const {
+ levels,
+ indentLevel
+ } = state;
+ const level = !levels || levels.length === 0 ? indentLevel : levels.at(-1) - (((_a = this.electricInput) === null || _a === void 0 ? void 0 : _a.test(textAfter)) ? 1 : 0);
+ return (level || 0) * (((_b = this.config) === null || _b === void 0 ? void 0 : _b.indentUnit) || 0);
+}
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/variables/hint.js":
+/*!******************************************************!*\
+ !*** ../../codemirror-graphql/esm/variables/hint.js ***!
+ \******************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+var _graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
+var _forEachState = _interopRequireDefault(__webpack_require__(/*! ../utils/forEachState */ "../../codemirror-graphql/esm/utils/forEachState.js"));
+var _hintList = _interopRequireDefault(__webpack_require__(/*! ../utils/hintList */ "../../codemirror-graphql/esm/utils/hintList.js"));
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.registerHelper('hint', 'graphql-variables', (editor, options) => {
const cur = editor.getCursor();
const token = editor.getTokenAt(cur);
const results = getVariablesHint(cur, token, options);
if ((results === null || results === void 0 ? void 0 : results.list) && results.list.length > 0) {
- results.from = codemirror.CodeMirror.Pos(results.from.line, results.from.ch);
- results.to = codemirror.CodeMirror.Pos(results.to.line, results.to.ch);
- codemirror.CodeMirror.signal(editor, "hasCompletion", editor, results, token);
+ results.from = _codemirror.default.Pos(results.from.line, results.from.ch);
+ results.to = _codemirror.default.Pos(results.to.line, results.to.ch);
+ _codemirror.default.signal(editor, 'hasCompletion', editor, results, token);
}
return results;
});
function getVariablesHint(cur, token, options) {
- const state = token.state.kind === "Invalid" ? token.state.prevState : token.state;
+ const state = token.state.kind === 'Invalid' ? token.state.prevState : token.state;
const {
kind,
step
} = state;
- if (kind === "Document" && step === 0) {
- return hintList(cur, token, [{
- text: "{"
+ if (kind === 'Document' && step === 0) {
+ return (0, _hintList.default)(cur, token, [{
+ text: '{'
}]);
}
const {
@@ -69168,45 +74659,45 @@ function getVariablesHint(cur, token, options) {
return;
}
const typeInfo = getTypeInfo(variableToType, token.state);
- if (kind === "Document" || kind === "Variable" && step === 0) {
+ if (kind === 'Document' || kind === 'Variable' && step === 0) {
const variableNames = Object.keys(variableToType);
- return hintList(cur, token, variableNames.map(name => ({
+ return (0, _hintList.default)(cur, token, variableNames.map(name => ({
text: `"${name}": `,
type: variableToType[name]
})));
}
- if ((kind === "ObjectValue" || kind === "ObjectField" && step === 0) && typeInfo.fields) {
+ if ((kind === 'ObjectValue' || kind === 'ObjectField' && step === 0) && typeInfo.fields) {
const inputFields = Object.keys(typeInfo.fields).map(fieldName => typeInfo.fields[fieldName]);
- return hintList(cur, token, inputFields.map(field => ({
+ return (0, _hintList.default)(cur, token, inputFields.map(field => ({
text: `"${field.name}": `,
type: field.type,
description: field.description
})));
}
- if (kind === "StringValue" || kind === "NumberValue" || kind === "BooleanValue" || kind === "NullValue" || kind === "ListValue" && step === 1 || kind === "ObjectField" && step === 2 || kind === "Variable" && step === 2) {
- const namedInputType = typeInfo.type ? graphql.getNamedType(typeInfo.type) : void 0;
- if (namedInputType instanceof graphql.GraphQLInputObjectType) {
- return hintList(cur, token, [{
- text: "{"
+ if (kind === 'StringValue' || kind === 'NumberValue' || kind === 'BooleanValue' || kind === 'NullValue' || kind === 'ListValue' && step === 1 || kind === 'ObjectField' && step === 2 || kind === 'Variable' && step === 2) {
+ const namedInputType = typeInfo.type ? (0, _graphql.getNamedType)(typeInfo.type) : undefined;
+ if (namedInputType instanceof _graphql.GraphQLInputObjectType) {
+ return (0, _hintList.default)(cur, token, [{
+ text: '{'
}]);
}
- if (namedInputType instanceof graphql.GraphQLEnumType) {
+ if (namedInputType instanceof _graphql.GraphQLEnumType) {
const values = namedInputType.getValues();
- return hintList(cur, token, values.map(value => ({
+ return (0, _hintList.default)(cur, token, values.map(value => ({
text: `"${value.name}"`,
type: namedInputType,
description: value.description
})));
}
- if (namedInputType === graphql.GraphQLBoolean) {
- return hintList(cur, token, [{
- text: "true",
- type: graphql.GraphQLBoolean,
- description: "Not false."
+ if (namedInputType === _graphql.GraphQLBoolean) {
+ return (0, _hintList.default)(cur, token, [{
+ text: 'true',
+ type: _graphql.GraphQLBoolean,
+ description: 'Not false.'
}, {
- text: "false",
- type: graphql.GraphQLBoolean,
- description: "Not true."
+ text: 'false',
+ type: _graphql.GraphQLBoolean,
+ description: 'Not true.'
}]);
}
}
@@ -69216,26 +74707,26 @@ function getTypeInfo(variableToType, tokenState) {
type: null,
fields: null
};
- forEachState.forEachState(tokenState, state => {
+ (0, _forEachState.default)(tokenState, state => {
switch (state.kind) {
- case "Variable":
+ case 'Variable':
{
info.type = variableToType[state.name];
break;
}
- case "ListValue":
+ case 'ListValue':
{
- const nullableType = info.type ? graphql.getNullableType(info.type) : void 0;
- info.type = nullableType instanceof graphql.GraphQLList ? nullableType.ofType : null;
+ const nullableType = info.type ? (0, _graphql.getNullableType)(info.type) : undefined;
+ info.type = nullableType instanceof _graphql.GraphQLList ? nullableType.ofType : null;
break;
}
- case "ObjectValue":
+ case 'ObjectValue':
{
- const objectType = info.type ? graphql.getNamedType(info.type) : void 0;
- info.fields = objectType instanceof graphql.GraphQLInputObjectType ? objectType.getFields() : null;
+ const objectType = info.type ? (0, _graphql.getNamedType)(info.type) : undefined;
+ info.fields = objectType instanceof _graphql.GraphQLInputObjectType ? objectType.getFields() : null;
break;
}
- case "ObjectField":
+ case 'ObjectField':
{
const objectField = state.name && info.fields ? info.fields[state.name] : null;
info.type = objectField === null || objectField === void 0 ? void 0 : objectField.type;
@@ -69248,18 +74739,260 @@ function getTypeInfo(variableToType, tokenState) {
/***/ }),
+/***/ "../../codemirror-graphql/esm/variables/lint.js":
+/*!******************************************************!*\
+ !*** ../../codemirror-graphql/esm/variables/lint.js ***!
+ \******************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+var _graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
+var _jsonParse = _interopRequireWildcard(__webpack_require__(/*! ../utils/jsonParse */ "../../codemirror-graphql/esm/utils/jsonParse.js"));
+function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
+function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.registerHelper('lint', 'graphql-variables', (text, options, editor) => {
+ if (!text) {
+ return [];
+ }
+ let ast;
+ try {
+ ast = (0, _jsonParse.default)(text);
+ } catch (error) {
+ if (error instanceof _jsonParse.JSONSyntaxError) {
+ return [lintError(editor, error.position, error.message)];
+ }
+ throw error;
+ }
+ const {
+ variableToType
+ } = options;
+ if (!variableToType) {
+ return [];
+ }
+ return validateVariables(editor, variableToType, ast);
+});
+function validateVariables(editor, variableToType, variablesAST) {
+ var _a;
+ const errors = [];
+ for (const member of variablesAST.members) {
+ if (member) {
+ const variableName = (_a = member.key) === null || _a === void 0 ? void 0 : _a.value;
+ const type = variableToType[variableName];
+ if (type) {
+ for (const [node, message] of validateValue(type, member.value)) {
+ errors.push(lintError(editor, node, message));
+ }
+ } else {
+ errors.push(lintError(editor, member.key, `Variable "$${variableName}" does not appear in any GraphQL query.`));
+ }
+ }
+ }
+ return errors;
+}
+function validateValue(type, valueAST) {
+ if (!type || !valueAST) {
+ return [];
+ }
+ if (type instanceof _graphql.GraphQLNonNull) {
+ if (valueAST.kind === 'Null') {
+ return [[valueAST, `Type "${type}" is non-nullable and cannot be null.`]];
+ }
+ return validateValue(type.ofType, valueAST);
+ }
+ if (valueAST.kind === 'Null') {
+ return [];
+ }
+ if (type instanceof _graphql.GraphQLList) {
+ const itemType = type.ofType;
+ if (valueAST.kind === 'Array') {
+ const values = valueAST.values || [];
+ return mapCat(values, item => validateValue(itemType, item));
+ }
+ return validateValue(itemType, valueAST);
+ }
+ if (type instanceof _graphql.GraphQLInputObjectType) {
+ if (valueAST.kind !== 'Object') {
+ return [[valueAST, `Type "${type}" must be an Object.`]];
+ }
+ const providedFields = Object.create(null);
+ const fieldErrors = mapCat(valueAST.members, member => {
+ var _a;
+ const fieldName = (_a = member === null || member === void 0 ? void 0 : member.key) === null || _a === void 0 ? void 0 : _a.value;
+ providedFields[fieldName] = true;
+ const inputField = type.getFields()[fieldName];
+ if (!inputField) {
+ return [[member.key, `Type "${type}" does not have a field "${fieldName}".`]];
+ }
+ const fieldType = inputField ? inputField.type : undefined;
+ return validateValue(fieldType, member.value);
+ });
+ for (const fieldName of Object.keys(type.getFields())) {
+ const field = type.getFields()[fieldName];
+ if (!providedFields[fieldName] && field.type instanceof _graphql.GraphQLNonNull && !field.defaultValue) {
+ fieldErrors.push([valueAST, `Object of type "${type}" is missing required field "${fieldName}".`]);
+ }
+ }
+ return fieldErrors;
+ }
+ if (type.name === 'Boolean' && valueAST.kind !== 'Boolean' || type.name === 'String' && valueAST.kind !== 'String' || type.name === 'ID' && valueAST.kind !== 'Number' && valueAST.kind !== 'String' || type.name === 'Float' && valueAST.kind !== 'Number' || type.name === 'Int' && (valueAST.kind !== 'Number' || (valueAST.value | 0) !== valueAST.value)) {
+ return [[valueAST, `Expected value of type "${type}".`]];
+ }
+ if ((type instanceof _graphql.GraphQLEnumType || type instanceof _graphql.GraphQLScalarType) && (valueAST.kind !== 'String' && valueAST.kind !== 'Number' && valueAST.kind !== 'Boolean' && valueAST.kind !== 'Null' || isNullish(type.parseValue(valueAST.value)))) {
+ return [[valueAST, `Expected value of type "${type}".`]];
+ }
+ return [];
+}
+function lintError(editor, node, message) {
+ return {
+ message,
+ severity: 'error',
+ type: 'validation',
+ from: editor.posFromIndex(node.start),
+ to: editor.posFromIndex(node.end)
+ };
+}
+function isNullish(value) {
+ return value === null || value === undefined || value !== value;
+}
+function mapCat(array, mapper) {
+ return Array.prototype.concat.apply([], array.map(mapper));
+}
+
+/***/ }),
+
+/***/ "../../codemirror-graphql/esm/variables/mode.js":
+/*!******************************************************!*\
+ !*** ../../codemirror-graphql/esm/variables/mode.js ***!
+ \******************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+var _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"));
+var _graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
+var _modeIndent = _interopRequireDefault(__webpack_require__(/*! ../utils/mode-indent */ "../../codemirror-graphql/esm/utils/mode-indent.js"));
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+_codemirror.default.defineMode('graphql-variables', config => {
+ const parser = (0, _graphqlLanguageService.onlineParser)({
+ eatWhitespace: stream => stream.eatSpace(),
+ lexRules: LexRules,
+ parseRules: ParseRules,
+ editorConfig: {
+ tabSize: config.tabSize
+ }
+ });
+ return {
+ config,
+ startState: parser.startState,
+ token: parser.token,
+ indent: _modeIndent.default,
+ electricInput: /^\s*[}\]]/,
+ fold: 'brace',
+ closeBrackets: {
+ pairs: '[]{}""',
+ explode: '[]{}'
+ }
+ };
+});
+const LexRules = {
+ Punctuation: /^\[|]|\{|\}|:|,/,
+ Number: /^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,
+ String: /^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,
+ Keyword: /^true|false|null/
+};
+const ParseRules = {
+ Document: [(0, _graphqlLanguageService.p)('{'), (0, _graphqlLanguageService.list)('Variable', (0, _graphqlLanguageService.opt)((0, _graphqlLanguageService.p)(','))), (0, _graphqlLanguageService.p)('}')],
+ Variable: [namedKey('variable'), (0, _graphqlLanguageService.p)(':'), 'Value'],
+ Value(token) {
+ switch (token.kind) {
+ case 'Number':
+ return 'NumberValue';
+ case 'String':
+ return 'StringValue';
+ case 'Punctuation':
+ switch (token.value) {
+ case '[':
+ return 'ListValue';
+ case '{':
+ return 'ObjectValue';
+ }
+ return null;
+ case 'Keyword':
+ switch (token.value) {
+ case 'true':
+ case 'false':
+ return 'BooleanValue';
+ case 'null':
+ return 'NullValue';
+ }
+ return null;
+ }
+ },
+ NumberValue: [(0, _graphqlLanguageService.t)('Number', 'number')],
+ StringValue: [(0, _graphqlLanguageService.t)('String', 'string')],
+ BooleanValue: [(0, _graphqlLanguageService.t)('Keyword', 'builtin')],
+ NullValue: [(0, _graphqlLanguageService.t)('Keyword', 'keyword')],
+ ListValue: [(0, _graphqlLanguageService.p)('['), (0, _graphqlLanguageService.list)('Value', (0, _graphqlLanguageService.opt)((0, _graphqlLanguageService.p)(','))), (0, _graphqlLanguageService.p)(']')],
+ ObjectValue: [(0, _graphqlLanguageService.p)('{'), (0, _graphqlLanguageService.list)('ObjectField', (0, _graphqlLanguageService.opt)((0, _graphqlLanguageService.p)(','))), (0, _graphqlLanguageService.p)('}')],
+ ObjectField: [namedKey('attribute'), (0, _graphqlLanguageService.p)(':'), 'Value']
+};
+function namedKey(style) {
+ return {
+ style,
+ match: token => token.kind === 'String',
+ update(state, token) {
+ state.name = token.value.slice(1, -1);
+ }
+ };
+}
+
+/***/ }),
+
/***/ "../../graphiql-react/dist/index.js":
/*!******************************************!*\
!*** ../../graphiql-react/dist/index.js ***!
\******************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
+function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
+function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
+ get: () => from[key],
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
+ });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
+// If the importer is in node compatibility mode or this is not an ESM
+// file that has been converted to a CommonJS file using a Babel-
+// compatible transform (i.e. "__esModule" has not been set), then set
+// "default" to the CommonJS "module.exports" for node compatibility.
+isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
+ value: mod,
+ enumerable: true
+}) : target, mod));
Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
const jsxRuntime = __webpack_require__(/*! react/jsx-runtime */ "../../../node_modules/react/jsx-runtime.js");
+const reactCompilerRuntime = __webpack_require__(/*! react-compiler-runtime */ "../../../node_modules/react-compiler-runtime/dist/index.js");
const React = __webpack_require__(/*! react */ "react");
const clsx = __webpack_require__(/*! clsx */ "../../../node_modules/clsx/dist/clsx.m.js");
const graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
@@ -69309,7 +75042,7 @@ function createContextHook(context) {
var _a;
const value = React.useContext(context);
if (value === null && (options == null ? void 0 : options.nonNull)) {
- throw new Error(`Tried to use \`${((_a = options.caller) == null ? void 0 : _a.name) || useGivenContext.caller.name}\` without the necessary context. Make sure to render the \`${context.displayName}Provider\` component higher up the tree.`);
+ throw new Error(`Tried to use \`${((_a = options.caller) == null ? void 0 : _a.name) || "a component"}\` without the necessary context. Make sure to render the \`${context.displayName}Provider\` component higher up the tree.`);
}
return value;
}
@@ -69320,19 +75053,49 @@ function createContextHook(context) {
}
const StorageContext = createNullableContext("StorageContext");
function StorageContextProvider(props) {
+ const $ = reactCompilerRuntime.c(8);
const isInitialRender = React.useRef(true);
- const [storage, setStorage] = React.useState(() => new toolkit.StorageAPI(props.storage));
- React.useEffect(() => {
- if (isInitialRender.current) {
- isInitialRender.current = false;
- } else {
- setStorage(new toolkit.StorageAPI(props.storage));
- }
- }, [props.storage]);
- return /* @__PURE__ */jsxRuntime.jsx(StorageContext.Provider, {
- value: storage,
- children: props.children
- });
+ let t0;
+ if ($[0] !== props.storage) {
+ t0 = () => new toolkit.StorageAPI(props.storage);
+ $[0] = props.storage;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ const [storage, setStorage] = React.useState(t0);
+ let t1;
+ let t2;
+ if ($[2] !== props.storage) {
+ t1 = () => {
+ if (isInitialRender.current) {
+ isInitialRender.current = false;
+ } else {
+ setStorage(new toolkit.StorageAPI(props.storage));
+ }
+ };
+ t2 = [props.storage];
+ $[2] = props.storage;
+ $[3] = t1;
+ $[4] = t2;
+ } else {
+ t1 = $[3];
+ t2 = $[4];
+ }
+ React.useEffect(t1, t2);
+ let t3;
+ if ($[5] !== props.children || $[6] !== storage) {
+ t3 = /* @__PURE__ */jsxRuntime.jsx(StorageContext.Provider, {
+ value: storage,
+ children: props.children
+ });
+ $[5] = props.children;
+ $[6] = storage;
+ $[7] = t3;
+ } else {
+ t3 = $[7];
+ }
+ return t3;
}
const useStorageContext = createContextHook(StorageContext);
const SvgArgument = ({
@@ -70153,67 +75916,208 @@ const TypeIcon = generateIcon(SvgType);
function generateIcon(RawComponent) {
const title = RawComponent.name.replace("Svg", "").replaceAll(/([A-Z])/g, " $1").trimStart().toLowerCase() + " icon";
function IconComponent(props) {
- return /* @__PURE__ */jsxRuntime.jsx(RawComponent, {
- title,
- ...props
- });
+ const $ = reactCompilerRuntime.c(2);
+ let t0;
+ if ($[0] !== props) {
+ t0 = /* @__PURE__ */jsxRuntime.jsx(RawComponent, {
+ title,
+ ...props
+ });
+ $[0] = props;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ return t0;
}
IconComponent.displayName = RawComponent.name;
return IconComponent;
}
-const UnStyledButton = React.forwardRef((props, ref) => /* @__PURE__ */jsxRuntime.jsx("button", {
- ...props,
- ref,
- className: clsx.clsx("graphiql-un-styled", props.className)
-}));
+const UnStyledButton = React.forwardRef((props, ref) => {
+ const $ = reactCompilerRuntime.c(6);
+ let t0;
+ if ($[0] !== props.className) {
+ t0 = clsx.clsx("graphiql-un-styled", props.className);
+ $[0] = props.className;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ if ($[2] !== props || $[3] !== ref || $[4] !== t0) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx("button", {
+ ...props,
+ ref,
+ className: t0
+ });
+ $[2] = props;
+ $[3] = ref;
+ $[4] = t0;
+ $[5] = t1;
+ } else {
+ t1 = $[5];
+ }
+ return t1;
+});
UnStyledButton.displayName = "UnStyledButton";
-const Button$1 = React.forwardRef((props, ref) => /* @__PURE__ */jsxRuntime.jsx("button", {
- ...props,
- ref,
- className: clsx.clsx("graphiql-button", {
- success: "graphiql-button-success",
- error: "graphiql-button-error"
- }[props.state], props.className)
-}));
+const Button$1 = React.forwardRef((props, ref) => {
+ const $ = reactCompilerRuntime.c(7);
+ let t0;
+ if ($[0] !== props.className || $[1] !== props.state) {
+ t0 = clsx.clsx("graphiql-button", {
+ success: "graphiql-button-success",
+ error: "graphiql-button-error"
+ }[props.state], props.className);
+ $[0] = props.className;
+ $[1] = props.state;
+ $[2] = t0;
+ } else {
+ t0 = $[2];
+ }
+ let t1;
+ if ($[3] !== props || $[4] !== ref || $[5] !== t0) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx("button", {
+ ...props,
+ ref,
+ className: t0
+ });
+ $[3] = props;
+ $[4] = ref;
+ $[5] = t0;
+ $[6] = t1;
+ } else {
+ t1 = $[6];
+ }
+ return t1;
+});
Button$1.displayName = "Button";
-const ButtonGroup = React.forwardRef((props, ref) => /* @__PURE__ */jsxRuntime.jsx("div", {
- ...props,
- ref,
- className: clsx.clsx("graphiql-button-group", props.className)
-}));
+const ButtonGroup = React.forwardRef((props, ref) => {
+ const $ = reactCompilerRuntime.c(6);
+ let t0;
+ if ($[0] !== props.className) {
+ t0 = clsx.clsx("graphiql-button-group", props.className);
+ $[0] = props.className;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ if ($[2] !== props || $[3] !== ref || $[4] !== t0) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx("div", {
+ ...props,
+ ref,
+ className: t0
+ });
+ $[2] = props;
+ $[3] = ref;
+ $[4] = t0;
+ $[5] = t1;
+ } else {
+ t1 = $[5];
+ }
+ return t1;
+});
ButtonGroup.displayName = "ButtonGroup";
const createComponentGroup = (root, children) => Object.entries(children).reduce((r, [key, value]) => {
r[key] = value;
return r;
}, root);
-const DialogClose = React.forwardRef((props, ref) => /* @__PURE__ */jsxRuntime.jsx(D__namespace.Close, {
- asChild: true,
- children: /* @__PURE__ */jsxRuntime.jsxs(UnStyledButton, {
- ...props,
- ref,
- type: "button",
- className: clsx.clsx("graphiql-dialog-close", props.className),
- children: [/* @__PURE__ */jsxRuntime.jsx(reactVisuallyHidden.Root, {
+const DialogClose = React.forwardRef((props, ref) => {
+ const $ = reactCompilerRuntime.c(8);
+ let t0;
+ if ($[0] !== props.className) {
+ t0 = clsx.clsx("graphiql-dialog-close", props.className);
+ $[0] = props.className;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ let t2;
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx(reactVisuallyHidden.Root, {
children: "Close dialog"
- }), /* @__PURE__ */jsxRuntime.jsx(CloseIcon, {})]
- })
-}));
+ });
+ t2 = /* @__PURE__ */jsxRuntime.jsx(CloseIcon, {});
+ $[2] = t1;
+ $[3] = t2;
+ } else {
+ t1 = $[2];
+ t2 = $[3];
+ }
+ let t3;
+ if ($[4] !== props || $[5] !== ref || $[6] !== t0) {
+ t3 = /* @__PURE__ */jsxRuntime.jsx(D__namespace.Close, {
+ asChild: true,
+ children: /* @__PURE__ */jsxRuntime.jsxs(UnStyledButton, {
+ ...props,
+ ref,
+ type: "button",
+ className: t0,
+ children: [t1, t2]
+ })
+ });
+ $[4] = props;
+ $[5] = ref;
+ $[6] = t0;
+ $[7] = t3;
+ } else {
+ t3 = $[7];
+ }
+ return t3;
+});
DialogClose.displayName = "Dialog.Close";
-function DialogRoot({
- children,
- ...props
-}) {
- return /* @__PURE__ */jsxRuntime.jsx(D__namespace.Root, {
- ...props,
- children: /* @__PURE__ */jsxRuntime.jsxs(D__namespace.Portal, {
- children: [/* @__PURE__ */jsxRuntime.jsx(D__namespace.Overlay, {
- className: "graphiql-dialog-overlay"
- }), /* @__PURE__ */jsxRuntime.jsx(D__namespace.Content, {
+function DialogRoot(t0) {
+ const $ = reactCompilerRuntime.c(9);
+ let children;
+ let props;
+ if ($[0] !== t0) {
+ ({
+ children,
+ ...props
+ } = t0);
+ $[0] = t0;
+ $[1] = children;
+ $[2] = props;
+ } else {
+ children = $[1];
+ props = $[2];
+ }
+ let t1;
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx(D__namespace.Overlay, {
+ className: "graphiql-dialog-overlay"
+ });
+ $[3] = t1;
+ } else {
+ t1 = $[3];
+ }
+ let t2;
+ if ($[4] !== children) {
+ t2 = /* @__PURE__ */jsxRuntime.jsxs(D__namespace.Portal, {
+ children: [t1, /* @__PURE__ */jsxRuntime.jsx(D__namespace.Content, {
className: "graphiql-dialog",
children
})]
- })
- });
+ });
+ $[4] = children;
+ $[5] = t2;
+ } else {
+ t2 = $[5];
+ }
+ let t3;
+ if ($[6] !== props || $[7] !== t2) {
+ t3 = /* @__PURE__ */jsxRuntime.jsx(D__namespace.Root, {
+ ...props,
+ children: t2
+ });
+ $[6] = props;
+ $[7] = t2;
+ $[8] = t3;
+ } else {
+ t3 = $[8];
+ }
+ return t3;
}
const Dialog = createComponentGroup(DialogRoot, {
Close: DialogClose,
@@ -70221,31 +76125,95 @@ const Dialog = createComponentGroup(DialogRoot, {
Trigger: D__namespace.Trigger,
Description: D__namespace.Description
});
-const Button = React.forwardRef((props, ref) => /* @__PURE__ */jsxRuntime.jsx(reactDropdownMenu.Trigger, {
- asChild: true,
- children: /* @__PURE__ */jsxRuntime.jsx("button", {
- ...props,
- ref,
- className: clsx.clsx("graphiql-un-styled", props.className)
- })
-}));
+const Button = React.forwardRef((props, ref) => {
+ const $ = reactCompilerRuntime.c(6);
+ let t0;
+ if ($[0] !== props.className) {
+ t0 = clsx.clsx("graphiql-un-styled", props.className);
+ $[0] = props.className;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ if ($[2] !== props || $[3] !== ref || $[4] !== t0) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx(reactDropdownMenu.Trigger, {
+ asChild: true,
+ children: /* @__PURE__ */jsxRuntime.jsx("button", {
+ ...props,
+ ref,
+ className: t0
+ })
+ });
+ $[2] = props;
+ $[3] = ref;
+ $[4] = t0;
+ $[5] = t1;
+ } else {
+ t1 = $[5];
+ }
+ return t1;
+});
Button.displayName = "DropdownMenuButton";
-function Content({
- children,
- align = "start",
- sideOffset = 5,
- className,
- ...props
-}) {
- return /* @__PURE__ */jsxRuntime.jsx(reactDropdownMenu.Portal, {
- children: /* @__PURE__ */jsxRuntime.jsx(reactDropdownMenu.Content, {
- align,
- sideOffset,
- className: clsx.clsx("graphiql-dropdown-content", className),
- ...props,
- children
- })
- });
+function Content(t0) {
+ const $ = reactCompilerRuntime.c(14);
+ let children;
+ let className;
+ let props;
+ let t1;
+ let t2;
+ if ($[0] !== t0) {
+ ({
+ children,
+ align: t1,
+ sideOffset: t2,
+ className,
+ ...props
+ } = t0);
+ $[0] = t0;
+ $[1] = children;
+ $[2] = className;
+ $[3] = props;
+ $[4] = t1;
+ $[5] = t2;
+ } else {
+ children = $[1];
+ className = $[2];
+ props = $[3];
+ t1 = $[4];
+ t2 = $[5];
+ }
+ const align = t1 === void 0 ? "start" : t1;
+ const sideOffset = t2 === void 0 ? 5 : t2;
+ let t3;
+ if ($[6] !== className) {
+ t3 = clsx.clsx("graphiql-dropdown-content", className);
+ $[6] = className;
+ $[7] = t3;
+ } else {
+ t3 = $[7];
+ }
+ let t4;
+ if ($[8] !== align || $[9] !== children || $[10] !== props || $[11] !== sideOffset || $[12] !== t3) {
+ t4 = /* @__PURE__ */jsxRuntime.jsx(reactDropdownMenu.Portal, {
+ children: /* @__PURE__ */jsxRuntime.jsx(reactDropdownMenu.Content, {
+ align,
+ sideOffset,
+ className: t3,
+ ...props,
+ children
+ })
+ });
+ $[8] = align;
+ $[9] = children;
+ $[10] = props;
+ $[11] = sideOffset;
+ $[12] = t3;
+ $[13] = t4;
+ } else {
+ t4 = $[13];
+ }
+ return t4;
}
const Item = ({
className,
@@ -70265,38 +76233,132 @@ const markdown = new MarkdownIt({
breaks: true,
linkify: true
});
-const MarkdownContent = React.forwardRef(({
- children,
- onlyShowFirstChild,
- type,
- ...props
-}, ref) => /* @__PURE__ */jsxRuntime.jsx("div", {
- ...props,
- ref,
- className: clsx.clsx(`graphiql-markdown-${type}`, onlyShowFirstChild && "graphiql-markdown-preview", props.className),
- dangerouslySetInnerHTML: {
- __html: markdown.render(children)
+const MarkdownContent = React.forwardRef((t0, ref) => {
+ const $ = reactCompilerRuntime.c(18);
+ let children;
+ let onlyShowFirstChild;
+ let props;
+ let type;
+ if ($[0] !== t0) {
+ ({
+ children,
+ onlyShowFirstChild,
+ type,
+ ...props
+ } = t0);
+ $[0] = t0;
+ $[1] = children;
+ $[2] = onlyShowFirstChild;
+ $[3] = props;
+ $[4] = type;
+ } else {
+ children = $[1];
+ onlyShowFirstChild = $[2];
+ props = $[3];
+ type = $[4];
}
-}));
+ const t1 = `graphiql-markdown-${type}`;
+ const t2 = onlyShowFirstChild && "graphiql-markdown-preview";
+ let t3;
+ if ($[5] !== props.className || $[6] !== t1 || $[7] !== t2) {
+ t3 = clsx.clsx(t1, t2, props.className);
+ $[5] = props.className;
+ $[6] = t1;
+ $[7] = t2;
+ $[8] = t3;
+ } else {
+ t3 = $[8];
+ }
+ let t4;
+ if ($[9] !== children) {
+ t4 = markdown.render(children);
+ $[9] = children;
+ $[10] = t4;
+ } else {
+ t4 = $[10];
+ }
+ let t5;
+ if ($[11] !== t4) {
+ t5 = {
+ __html: t4
+ };
+ $[11] = t4;
+ $[12] = t5;
+ } else {
+ t5 = $[12];
+ }
+ let t6;
+ if ($[13] !== props || $[14] !== ref || $[15] !== t3 || $[16] !== t5) {
+ t6 = /* @__PURE__ */jsxRuntime.jsx("div", {
+ ...props,
+ ref,
+ className: t3,
+ dangerouslySetInnerHTML: t5
+ });
+ $[13] = props;
+ $[14] = ref;
+ $[15] = t3;
+ $[16] = t5;
+ $[17] = t6;
+ } else {
+ t6 = $[17];
+ }
+ return t6;
+});
MarkdownContent.displayName = "MarkdownContent";
-const Spinner = React.forwardRef((props, ref) => /* @__PURE__ */jsxRuntime.jsx("div", {
- ...props,
- ref,
- className: clsx.clsx("graphiql-spinner", props.className)
-}));
+const Spinner = React.forwardRef((props, ref) => {
+ const $ = reactCompilerRuntime.c(6);
+ let t0;
+ if ($[0] !== props.className) {
+ t0 = clsx.clsx("graphiql-spinner", props.className);
+ $[0] = props.className;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ if ($[2] !== props || $[3] !== ref || $[4] !== t0) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx("div", {
+ ...props,
+ ref,
+ className: t0
+ });
+ $[2] = props;
+ $[3] = ref;
+ $[4] = t0;
+ $[5] = t1;
+ } else {
+ t1 = $[5];
+ }
+ return t1;
+});
Spinner.displayName = "Spinner";
-function TooltipRoot({
- children,
- align = "start",
- side = "bottom",
- sideOffset = 5,
- label
-}) {
- return /* @__PURE__ */jsxRuntime.jsxs(T__namespace.Root, {
- children: [/* @__PURE__ */jsxRuntime.jsx(T__namespace.Trigger, {
+function TooltipRoot(t0) {
+ const $ = reactCompilerRuntime.c(10);
+ const {
+ children,
+ align: t1,
+ side: t2,
+ sideOffset: t3,
+ label
+ } = t0;
+ const align = t1 === void 0 ? "start" : t1;
+ const side = t2 === void 0 ? "bottom" : t2;
+ const sideOffset = t3 === void 0 ? 5 : t3;
+ let t4;
+ if ($[0] !== children) {
+ t4 = /* @__PURE__ */jsxRuntime.jsx(T__namespace.Trigger, {
asChild: true,
children
- }), /* @__PURE__ */jsxRuntime.jsx(T__namespace.Portal, {
+ });
+ $[0] = children;
+ $[1] = t4;
+ } else {
+ t4 = $[1];
+ }
+ let t5;
+ if ($[2] !== align || $[3] !== label || $[4] !== side || $[5] !== sideOffset) {
+ t5 = /* @__PURE__ */jsxRuntime.jsx(T__namespace.Portal, {
children: /* @__PURE__ */jsxRuntime.jsx(T__namespace.Content, {
className: "graphiql-tooltip",
align,
@@ -70304,103 +76366,301 @@ function TooltipRoot({
sideOffset,
children: label
})
- })]
- });
+ });
+ $[2] = align;
+ $[3] = label;
+ $[4] = side;
+ $[5] = sideOffset;
+ $[6] = t5;
+ } else {
+ t5 = $[6];
+ }
+ let t6;
+ if ($[7] !== t4 || $[8] !== t5) {
+ t6 = /* @__PURE__ */jsxRuntime.jsxs(T__namespace.Root, {
+ children: [t4, t5]
+ });
+ $[7] = t4;
+ $[8] = t5;
+ $[9] = t6;
+ } else {
+ t6 = $[9];
+ }
+ return t6;
}
const Tooltip = createComponentGroup(TooltipRoot, {
Provider: T__namespace.Provider
});
-const TabRoot = React.forwardRef(({
- isActive,
- value,
- children,
- className,
- ...props
-}, ref) => /* @__PURE__ */jsxRuntime.jsx(framerMotion.Reorder.Item, {
- ...props,
- ref,
- value,
- "aria-selected": isActive ? "true" : void 0,
- role: "tab",
- className: clsx.clsx("graphiql-tab", isActive && "graphiql-tab-active", className),
- children
-}));
+const TabRoot = React.forwardRef((t0, ref) => {
+ const $ = reactCompilerRuntime.c(16);
+ let children;
+ let className;
+ let isActive;
+ let props;
+ let value;
+ if ($[0] !== t0) {
+ ({
+ isActive,
+ value,
+ children,
+ className,
+ ...props
+ } = t0);
+ $[0] = t0;
+ $[1] = children;
+ $[2] = className;
+ $[3] = isActive;
+ $[4] = props;
+ $[5] = value;
+ } else {
+ children = $[1];
+ className = $[2];
+ isActive = $[3];
+ props = $[4];
+ value = $[5];
+ }
+ const t1 = isActive ? "true" : void 0;
+ const t2 = isActive && "graphiql-tab-active";
+ let t3;
+ if ($[6] !== className || $[7] !== t2) {
+ t3 = clsx.clsx("graphiql-tab", t2, className);
+ $[6] = className;
+ $[7] = t2;
+ $[8] = t3;
+ } else {
+ t3 = $[8];
+ }
+ let t4;
+ if ($[9] !== children || $[10] !== props || $[11] !== ref || $[12] !== t1 || $[13] !== t3 || $[14] !== value) {
+ t4 = /* @__PURE__ */jsxRuntime.jsx(framerMotion.Reorder.Item, {
+ ...props,
+ ref,
+ value,
+ "aria-selected": t1,
+ role: "tab",
+ className: t3,
+ children
+ });
+ $[9] = children;
+ $[10] = props;
+ $[11] = ref;
+ $[12] = t1;
+ $[13] = t3;
+ $[14] = value;
+ $[15] = t4;
+ } else {
+ t4 = $[15];
+ }
+ return t4;
+});
TabRoot.displayName = "Tab";
-const TabButton = React.forwardRef((props, ref) => /* @__PURE__ */jsxRuntime.jsx(UnStyledButton, {
- ...props,
- ref,
- type: "button",
- className: clsx.clsx("graphiql-tab-button", props.className),
- children: props.children
-}));
+const TabButton = React.forwardRef((props, ref) => {
+ const $ = reactCompilerRuntime.c(6);
+ let t0;
+ if ($[0] !== props.className) {
+ t0 = clsx.clsx("graphiql-tab-button", props.className);
+ $[0] = props.className;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ if ($[2] !== props || $[3] !== ref || $[4] !== t0) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx(UnStyledButton, {
+ ...props,
+ ref,
+ type: "button",
+ className: t0,
+ children: props.children
+ });
+ $[2] = props;
+ $[3] = ref;
+ $[4] = t0;
+ $[5] = t1;
+ } else {
+ t1 = $[5];
+ }
+ return t1;
+});
TabButton.displayName = "Tab.Button";
-const TabClose = React.forwardRef((props, ref) => /* @__PURE__ */jsxRuntime.jsx(Tooltip, {
- label: "Close Tab",
- children: /* @__PURE__ */jsxRuntime.jsx(UnStyledButton, {
- "aria-label": "Close Tab",
- ...props,
- ref,
- type: "button",
- className: clsx.clsx("graphiql-tab-close", props.className),
- children: /* @__PURE__ */jsxRuntime.jsx(CloseIcon, {})
- })
-}));
+const TabClose = React.forwardRef((props, ref) => {
+ const $ = reactCompilerRuntime.c(7);
+ let t0;
+ if ($[0] !== props.className) {
+ t0 = clsx.clsx("graphiql-tab-close", props.className);
+ $[0] = props.className;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx(CloseIcon, {});
+ $[2] = t1;
+ } else {
+ t1 = $[2];
+ }
+ let t2;
+ if ($[3] !== props || $[4] !== ref || $[5] !== t0) {
+ t2 = /* @__PURE__ */jsxRuntime.jsx(Tooltip, {
+ label: "Close Tab",
+ children: /* @__PURE__ */jsxRuntime.jsx(UnStyledButton, {
+ "aria-label": "Close Tab",
+ ...props,
+ ref,
+ type: "button",
+ className: t0,
+ children: t1
+ })
+ });
+ $[3] = props;
+ $[4] = ref;
+ $[5] = t0;
+ $[6] = t2;
+ } else {
+ t2 = $[6];
+ }
+ return t2;
+});
TabClose.displayName = "Tab.Close";
const Tab = createComponentGroup(TabRoot, {
Button: TabButton,
Close: TabClose
});
-const Tabs = React.forwardRef(({
- values,
- onReorder,
- children,
- className,
- ...props
-}, ref) => /* @__PURE__ */jsxRuntime.jsx(framerMotion.Reorder.Group, {
- ...props,
- ref,
- values,
- onReorder,
- axis: "x",
- role: "tablist",
- className: clsx.clsx("graphiql-tabs", className),
- children
-}));
+const Tabs = React.forwardRef((t0, ref) => {
+ const $ = reactCompilerRuntime.c(15);
+ let children;
+ let className;
+ let onReorder;
+ let props;
+ let values;
+ if ($[0] !== t0) {
+ ({
+ values,
+ onReorder,
+ children,
+ className,
+ ...props
+ } = t0);
+ $[0] = t0;
+ $[1] = children;
+ $[2] = className;
+ $[3] = onReorder;
+ $[4] = props;
+ $[5] = values;
+ } else {
+ children = $[1];
+ className = $[2];
+ onReorder = $[3];
+ props = $[4];
+ values = $[5];
+ }
+ let t1;
+ if ($[6] !== className) {
+ t1 = clsx.clsx("graphiql-tabs", className);
+ $[6] = className;
+ $[7] = t1;
+ } else {
+ t1 = $[7];
+ }
+ let t2;
+ if ($[8] !== children || $[9] !== onReorder || $[10] !== props || $[11] !== ref || $[12] !== t1 || $[13] !== values) {
+ t2 = /* @__PURE__ */jsxRuntime.jsx(framerMotion.Reorder.Group, {
+ ...props,
+ ref,
+ values,
+ onReorder,
+ axis: "x",
+ role: "tablist",
+ className: t1,
+ children
+ });
+ $[8] = children;
+ $[9] = onReorder;
+ $[10] = props;
+ $[11] = ref;
+ $[12] = t1;
+ $[13] = values;
+ $[14] = t2;
+ } else {
+ t2 = $[14];
+ }
+ return t2;
+});
Tabs.displayName = "Tabs";
const HistoryContext = createNullableContext("HistoryContext");
-function HistoryContextProvider({
- maxHistoryLength = DEFAULT_HISTORY_LENGTH,
- children
-}) {
- const storage = useStorageContext();
- const [historyStore] = React.useState(() =>
- // Fall back to a noop storage when the StorageContext is empty
- new toolkit.HistoryStore(storage || new toolkit.StorageAPI(null), maxHistoryLength));
- const [items, setItems] = React.useState(() => historyStore.queries || []);
- const value = React.useMemo(() => ({
- addToHistory(operation) {
- historyStore.updateHistory(operation);
- setItems(historyStore.queries);
- },
- editLabel(operation, index) {
- historyStore.editLabel(operation, index);
- setItems(historyStore.queries);
- },
- items,
- toggleFavorite(operation) {
- historyStore.toggleFavorite(operation);
- setItems(historyStore.queries);
- },
- setActive: item => item,
- deleteFromHistory(item, clearFavorites) {
- historyStore.deleteHistory(item, clearFavorites);
- setItems(historyStore.queries);
- }
- }), [items, historyStore]);
- return /* @__PURE__ */jsxRuntime.jsx(HistoryContext.Provider, {
- value,
+function HistoryContextProvider(t0) {
+ const $ = reactCompilerRuntime.c(11);
+ const {
+ maxHistoryLength: t1,
children
- });
+ } = t0;
+ const maxHistoryLength = t1 === void 0 ? DEFAULT_HISTORY_LENGTH : t1;
+ const storage = useStorageContext();
+ let t2;
+ if ($[0] !== maxHistoryLength || $[1] !== storage) {
+ t2 = () => new toolkit.HistoryStore(storage || new toolkit.StorageAPI(null), maxHistoryLength);
+ $[0] = maxHistoryLength;
+ $[1] = storage;
+ $[2] = t2;
+ } else {
+ t2 = $[2];
+ }
+ const [historyStore] = React.useState(t2);
+ let t3;
+ if ($[3] !== historyStore.queries) {
+ t3 = () => historyStore.queries || [];
+ $[3] = historyStore.queries;
+ $[4] = t3;
+ } else {
+ t3 = $[4];
+ }
+ const [items, setItems] = React.useState(t3);
+ let t4;
+ if ($[5] !== historyStore || $[6] !== items) {
+ t4 = {
+ addToHistory(operation) {
+ historyStore.updateHistory(operation);
+ setItems(historyStore.queries);
+ },
+ editLabel(operation_0, index) {
+ historyStore.editLabel(operation_0, index);
+ setItems(historyStore.queries);
+ },
+ items,
+ toggleFavorite(operation_1) {
+ historyStore.toggleFavorite(operation_1);
+ setItems(historyStore.queries);
+ },
+ setActive: _temp$8,
+ deleteFromHistory(item_0, clearFavorites) {
+ historyStore.deleteHistory(item_0, clearFavorites);
+ setItems(historyStore.queries);
+ }
+ };
+ $[5] = historyStore;
+ $[6] = items;
+ $[7] = t4;
+ } else {
+ t4 = $[7];
+ }
+ const value = t4;
+ let t5;
+ if ($[8] !== children || $[9] !== value) {
+ t5 = /* @__PURE__ */jsxRuntime.jsx(HistoryContext.Provider, {
+ value,
+ children
+ });
+ $[8] = children;
+ $[9] = value;
+ $[10] = t5;
+ } else {
+ t5 = $[10];
+ }
+ return t5;
+}
+function _temp$8(item) {
+ return item;
}
const useHistoryContext = createContextHook(HistoryContext);
const DEFAULT_HISTORY_LENGTH = 20;
@@ -70415,9 +76675,9 @@ function History() {
...item,
index: i
})).reverse();
- const favorites = items.filter(item => item.favorite);
+ const favorites = items.filter(item_0 => item_0.favorite);
if (favorites.length) {
- items = items.filter(item => !item.favorite);
+ items = items.filter(item_1 => !item_1.favorite);
}
const [clearStatus, setClearStatus] = React.useState(null);
React.useEffect(() => {
@@ -70427,16 +76687,16 @@ function History() {
}, 2e3);
}
}, [clearStatus]);
- const handleClearStatus = React.useCallback(() => {
+ const handleClearStatus = () => {
try {
- for (const item of items) {
- deleteFromHistory(item, true);
+ for (const item_2 of items) {
+ deleteFromHistory(item_2, true);
}
setClearStatus("success");
} catch {
setClearStatus("error");
}
- }, [deleteFromHistory, items]);
+ };
return /* @__PURE__ */jsxRuntime.jsxs("section", {
"aria-label": "History",
className: "graphiql-history",
@@ -70454,101 +76714,202 @@ function History() {
})]
}), Boolean(favorites.length) && /* @__PURE__ */jsxRuntime.jsx("ul", {
className: "graphiql-history-items",
- children: favorites.map(item => /* @__PURE__ */jsxRuntime.jsx(HistoryItem, {
- item
- }, item.index))
+ children: favorites.map(item_3 => /* @__PURE__ */jsxRuntime.jsx(HistoryItem, {
+ item: item_3
+ }, item_3.index))
}), Boolean(favorites.length) && Boolean(items.length) && /* @__PURE__ */jsxRuntime.jsx("div", {
className: "graphiql-history-item-spacer"
}), Boolean(items.length) && /* @__PURE__ */jsxRuntime.jsx("ul", {
className: "graphiql-history-items",
- children: items.map(item => /* @__PURE__ */jsxRuntime.jsx(HistoryItem, {
- item
- }, item.index))
+ children: items.map(item_4 => /* @__PURE__ */jsxRuntime.jsx(HistoryItem, {
+ item: item_4
+ }, item_4.index))
})]
});
}
function HistoryItem(props) {
+ const $ = reactCompilerRuntime.c(40);
+ let t0;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t0 = {
+ nonNull: true,
+ caller: HistoryItem
+ };
+ $[0] = t0;
+ } else {
+ t0 = $[0];
+ }
const {
editLabel,
toggleFavorite,
deleteFromHistory,
setActive
- } = useHistoryContext({
- nonNull: true,
- caller: HistoryItem
- });
+ } = useHistoryContext(t0);
+ let t1;
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = {
+ nonNull: true,
+ caller: HistoryItem
+ };
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
const {
headerEditor,
queryEditor,
variableEditor
- } = useEditorContext({
- nonNull: true,
- caller: HistoryItem
- });
+ } = useEditorContext(t1);
const inputRef = React.useRef(null);
const buttonRef = React.useRef(null);
const [isEditable, setIsEditable] = React.useState(false);
- React.useEffect(() => {
- var _a;
- if (isEditable) {
- (_a = inputRef.current) == null ? void 0 : _a.focus();
- }
- }, [isEditable]);
- const displayName = props.item.label || props.item.operationName || formatQuery(props.item.query);
- const handleSave = React.useCallback(() => {
- var _a;
- setIsEditable(false);
- const {
- index,
- ...item
- } = props.item;
- editLabel({
- ...item,
- label: (_a = inputRef.current) == null ? void 0 : _a.value
- }, index);
- }, [editLabel, props.item]);
- const handleClose = React.useCallback(() => {
- setIsEditable(false);
- }, []);
- const handleEditLabel = React.useCallback(e => {
- e.stopPropagation();
- setIsEditable(true);
- }, []);
- const handleHistoryItemClick = React.useCallback(() => {
- const {
- query,
- variables,
- headers
- } = props.item;
- queryEditor == null ? void 0 : queryEditor.setValue(query !== null && query !== void 0 ? query : "");
- variableEditor == null ? void 0 : variableEditor.setValue(variables !== null && variables !== void 0 ? variables : "");
- headerEditor == null ? void 0 : headerEditor.setValue(headers !== null && headers !== void 0 ? headers : "");
- setActive(props.item);
- }, [headerEditor, props.item, queryEditor, setActive, variableEditor]);
- const handleDeleteItemFromHistory = React.useCallback(e => {
- e.stopPropagation();
- deleteFromHistory(props.item);
- }, [props.item, deleteFromHistory]);
- const handleToggleFavorite = React.useCallback(e => {
- e.stopPropagation();
- toggleFavorite(props.item);
- }, [props.item, toggleFavorite]);
- return /* @__PURE__ */jsxRuntime.jsx("li", {
- className: clsx.clsx("graphiql-history-item", isEditable && "editable"),
- children: isEditable ? /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ let t2;
+ let t3;
+ if ($[2] !== isEditable) {
+ t2 = () => {
+ var _a;
+ if (isEditable) {
+ (_a = inputRef.current) == null ? void 0 : _a.focus();
+ }
+ };
+ t3 = [isEditable];
+ $[2] = isEditable;
+ $[3] = t2;
+ $[4] = t3;
+ } else {
+ t2 = $[3];
+ t3 = $[4];
+ }
+ React.useEffect(t2, t3);
+ let t4;
+ if ($[5] !== props.item.label || $[6] !== props.item.operationName || $[7] !== props.item.query) {
+ t4 = props.item.label || props.item.operationName || formatQuery(props.item.query);
+ $[5] = props.item.label;
+ $[6] = props.item.operationName;
+ $[7] = props.item.query;
+ $[8] = t4;
+ } else {
+ t4 = $[8];
+ }
+ const displayName = t4;
+ let t5;
+ if ($[9] !== editLabel || $[10] !== props.item) {
+ t5 = () => {
+ var _a;
+ setIsEditable(false);
+ const {
+ index,
+ ...item
+ } = props.item;
+ editLabel({
+ ...item,
+ label: (_a = inputRef.current) == null ? void 0 : _a.value
+ }, index);
+ };
+ $[9] = editLabel;
+ $[10] = props.item;
+ $[11] = t5;
+ } else {
+ t5 = $[11];
+ }
+ const handleSave = t5;
+ let t6;
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
+ t6 = () => {
+ setIsEditable(false);
+ };
+ $[12] = t6;
+ } else {
+ t6 = $[12];
+ }
+ const handleClose = t6;
+ let t7;
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
+ t7 = e => {
+ e.stopPropagation();
+ setIsEditable(true);
+ };
+ $[13] = t7;
+ } else {
+ t7 = $[13];
+ }
+ const handleEditLabel = t7;
+ let t8;
+ if ($[14] !== headerEditor || $[15] !== props.item || $[16] !== queryEditor || $[17] !== setActive || $[18] !== variableEditor) {
+ t8 = () => {
+ const {
+ query,
+ variables,
+ headers
+ } = props.item;
+ queryEditor == null ? void 0 : queryEditor.setValue(query !== null && query !== void 0 ? query : "");
+ variableEditor == null ? void 0 : variableEditor.setValue(variables !== null && variables !== void 0 ? variables : "");
+ headerEditor == null ? void 0 : headerEditor.setValue(headers !== null && headers !== void 0 ? headers : "");
+ setActive(props.item);
+ };
+ $[14] = headerEditor;
+ $[15] = props.item;
+ $[16] = queryEditor;
+ $[17] = setActive;
+ $[18] = variableEditor;
+ $[19] = t8;
+ } else {
+ t8 = $[19];
+ }
+ const handleHistoryItemClick = t8;
+ let t9;
+ if ($[20] !== deleteFromHistory || $[21] !== props.item) {
+ t9 = e_0 => {
+ e_0.stopPropagation();
+ deleteFromHistory(props.item);
+ };
+ $[20] = deleteFromHistory;
+ $[21] = props.item;
+ $[22] = t9;
+ } else {
+ t9 = $[22];
+ }
+ const handleDeleteItemFromHistory = t9;
+ let t10;
+ if ($[23] !== props.item || $[24] !== toggleFavorite) {
+ t10 = e_1 => {
+ e_1.stopPropagation();
+ toggleFavorite(props.item);
+ };
+ $[23] = props.item;
+ $[24] = toggleFavorite;
+ $[25] = t10;
+ } else {
+ t10 = $[25];
+ }
+ const handleToggleFavorite = t10;
+ const t11 = isEditable && "editable";
+ let t12;
+ if ($[26] !== t11) {
+ t12 = clsx.clsx("graphiql-history-item", t11);
+ $[26] = t11;
+ $[27] = t12;
+ } else {
+ t12 = $[27];
+ }
+ let t13;
+ if ($[28] !== displayName || $[29] !== editLabel || $[30] !== handleDeleteItemFromHistory || $[31] !== handleHistoryItemClick || $[32] !== handleSave || $[33] !== handleToggleFavorite || $[34] !== isEditable || $[35] !== props.item) {
+ t13 = isEditable ? /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
children: [/* @__PURE__ */jsxRuntime.jsx("input", {
type: "text",
defaultValue: props.item.label,
ref: inputRef,
- onKeyDown: e => {
- if (e.key === "Esc") {
+ onKeyDown: e_2 => {
+ if (e_2.key === "Esc") {
setIsEditable(false);
- } else if (e.key === "Enter") {
- setIsEditable(false);
- editLabel({
- ...props.item,
- label: e.currentTarget.value
- });
+ } else {
+ if (e_2.key === "Enter") {
+ setIsEditable(false);
+ editLabel({
+ ...props.item,
+ label: e_2.currentTarget.value
+ });
+ }
}
},
placeholder: "Type a label"
@@ -70609,22 +76970,58 @@ function HistoryItem(props) {
})
})
})]
- })
- });
+ });
+ $[28] = displayName;
+ $[29] = editLabel;
+ $[30] = handleDeleteItemFromHistory;
+ $[31] = handleHistoryItemClick;
+ $[32] = handleSave;
+ $[33] = handleToggleFavorite;
+ $[34] = isEditable;
+ $[35] = props.item;
+ $[36] = t13;
+ } else {
+ t13 = $[36];
+ }
+ let t14;
+ if ($[37] !== t12 || $[38] !== t13) {
+ t14 = /* @__PURE__ */jsxRuntime.jsx("li", {
+ className: t12,
+ children: t13
+ });
+ $[37] = t12;
+ $[38] = t13;
+ $[39] = t14;
+ } else {
+ t14 = $[39];
+ }
+ return t14;
}
function formatQuery(query) {
return query == null ? void 0 : query.split("\n").map(line => line.replace(/#(.*)/, "")).join(" ").replaceAll("{", " { ").replaceAll("}", " } ").replaceAll(/[\s]{2,}/g, " ");
}
const ExecutionContext = createNullableContext("ExecutionContext");
-function ExecutionContextProvider({
- fetcher,
- getDefaultFieldNames,
- children,
- operationName
-}) {
+function ExecutionContextProvider(t0) {
+ const $ = reactCompilerRuntime.c(27);
+ const {
+ fetcher,
+ getDefaultFieldNames,
+ children,
+ operationName
+ } = t0;
if (!fetcher) {
throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");
}
+ let t1;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = {
+ nonNull: true,
+ caller: ExecutionContextProvider
+ };
+ $[0] = t1;
+ } else {
+ t1 = $[0];
+ }
const {
externalFragments,
headerEditor,
@@ -70632,162 +77029,228 @@ function ExecutionContextProvider({
responseEditor,
variableEditor,
updateActiveTabValues
- } = useEditorContext({
- nonNull: true,
- caller: ExecutionContextProvider
- });
+ } = useEditorContext(t1);
const history = useHistoryContext();
- const autoCompleteLeafs = useAutoCompleteLeafs({
- getDefaultFieldNames,
- caller: ExecutionContextProvider
- });
+ let t2;
+ if ($[1] !== getDefaultFieldNames) {
+ t2 = {
+ getDefaultFieldNames,
+ caller: ExecutionContextProvider
+ };
+ $[1] = getDefaultFieldNames;
+ $[2] = t2;
+ } else {
+ t2 = $[2];
+ }
+ const autoCompleteLeafs = useAutoCompleteLeafs(t2);
const [isFetching, setIsFetching] = React.useState(false);
const [subscription, setSubscription] = React.useState(null);
const queryIdRef = React.useRef(0);
- const stop = React.useCallback(() => {
- subscription == null ? void 0 : subscription.unsubscribe();
- setIsFetching(false);
- setSubscription(null);
- }, [subscription]);
- const run = React.useCallback(async () => {
- var _ref;
- if (!queryEditor || !responseEditor) {
- return;
- }
- if (subscription) {
- stop();
- return;
- }
- const setResponse = value2 => {
- responseEditor.setValue(value2);
- updateActiveTabValues({
- response: value2
- });
- };
- queryIdRef.current += 1;
- const queryId = queryIdRef.current;
- let query = autoCompleteLeafs() || queryEditor.getValue();
- const variablesString = variableEditor == null ? void 0 : variableEditor.getValue();
- let variables;
- try {
- variables = tryParseJsonObject({
- json: variablesString,
- errorMessageParse: "Variables are invalid JSON",
- errorMessageType: "Variables are not a JSON object."
- });
- } catch (error) {
- setResponse(error instanceof Error ? error.message : `${error}`);
- return;
- }
- const headersString = headerEditor == null ? void 0 : headerEditor.getValue();
- let headers;
- try {
- headers = tryParseJsonObject({
- json: headersString,
- errorMessageParse: "Headers are invalid JSON",
- errorMessageType: "Headers are not a JSON object."
- });
- } catch (error) {
- setResponse(error instanceof Error ? error.message : `${error}`);
- return;
- }
- if (externalFragments) {
- const fragmentDependencies = queryEditor.documentAST ? graphqlLanguageService.getFragmentDependenciesForAST(queryEditor.documentAST, externalFragments) : [];
- if (fragmentDependencies.length > 0) {
- query += "\n" + fragmentDependencies.map(node => graphql.print(node)).join("\n");
- }
- }
- setResponse("");
- setIsFetching(true);
- const opName = (_ref = operationName !== null && operationName !== void 0 ? operationName : queryEditor.operationName) !== null && _ref !== void 0 ? _ref : void 0;
- history == null ? void 0 : history.addToHistory({
- query,
- variables: variablesString,
- headers: headersString,
- operationName: opName
- });
- try {
- var _headers, _queryEditor$document;
- const fullResponse = {};
- const handleResponse = result => {
- if (queryId !== queryIdRef.current) {
- return;
- }
- let maybeMultipart = Array.isArray(result) ? result : false;
- if (!maybeMultipart && typeof result === "object" && result !== null && "hasNext" in result) {
- maybeMultipart = [result];
- }
- if (maybeMultipart) {
- for (const part of maybeMultipart) {
- mergeIncrementalResult(fullResponse, part);
- }
- setIsFetching(false);
- setResponse(toolkit.formatResult(fullResponse));
- } else {
- const response = toolkit.formatResult(result);
- setIsFetching(false);
- setResponse(response);
- }
- };
- const fetch2 = fetcher({
- query,
- variables,
- operationName: opName
- }, {
- headers: (_headers = headers) !== null && _headers !== void 0 ? _headers : void 0,
- documentAST: (_queryEditor$document = queryEditor.documentAST) !== null && _queryEditor$document !== void 0 ? _queryEditor$document : void 0
- });
- const value2 = await Promise.resolve(fetch2);
- if (toolkit.isObservable(value2)) {
- setSubscription(value2.subscribe({
- next(result) {
- handleResponse(result);
- },
- error(error) {
- setIsFetching(false);
- if (error) {
- setResponse(toolkit.formatError(error));
- }
- setSubscription(null);
- },
- complete() {
- setIsFetching(false);
- setSubscription(null);
- }
- }));
- } else if (toolkit.isAsyncIterable(value2)) {
- setSubscription({
- unsubscribe: () => {
- var _a, _b;
- return (_b = (_a = value2[Symbol.asyncIterator]()).return) == null ? void 0 : _b.call(_a);
- }
- });
- for await (const result of value2) {
- handleResponse(result);
- }
- setIsFetching(false);
- setSubscription(null);
- } else {
- handleResponse(value2);
- }
- } catch (error) {
+ let t3;
+ if ($[3] !== subscription) {
+ t3 = () => {
+ subscription == null ? void 0 : subscription.unsubscribe();
setIsFetching(false);
- setResponse(toolkit.formatError(error));
setSubscription(null);
- }
- }, [autoCompleteLeafs, externalFragments, fetcher, headerEditor, history, operationName, queryEditor, responseEditor, stop, subscription, updateActiveTabValues, variableEditor]);
+ };
+ $[3] = subscription;
+ $[4] = t3;
+ } else {
+ t3 = $[4];
+ }
+ const stop = t3;
+ let t4;
+ if ($[5] !== autoCompleteLeafs || $[6] !== externalFragments || $[7] !== fetcher || $[8] !== headerEditor || $[9] !== history || $[10] !== operationName || $[11] !== queryEditor || $[12] !== responseEditor || $[13] !== stop || $[14] !== subscription || $[15] !== updateActiveTabValues || $[16] !== variableEditor) {
+ t4 = async () => {
+ var _ref, _headers2, _queryEditor$document;
+ if (!queryEditor || !responseEditor) {
+ return;
+ }
+ if (subscription) {
+ stop();
+ return;
+ }
+ const setResponse = value => {
+ responseEditor.setValue(value);
+ updateActiveTabValues({
+ response: value
+ });
+ };
+ queryIdRef.current = queryIdRef.current + 1;
+ const queryId = queryIdRef.current;
+ let query = autoCompleteLeafs() || queryEditor.getValue();
+ const variablesString = variableEditor == null ? void 0 : variableEditor.getValue();
+ let variables;
+ try {
+ variables = tryParseJsonObject({
+ json: variablesString,
+ errorMessageParse: "Variables are invalid JSON",
+ errorMessageType: "Variables are not a JSON object."
+ });
+ } catch (t52) {
+ const error = t52;
+ setResponse(error instanceof Error ? error.message : `${error}`);
+ return;
+ }
+ const headersString = headerEditor == null ? void 0 : headerEditor.getValue();
+ let headers;
+ try {
+ headers = tryParseJsonObject({
+ json: headersString,
+ errorMessageParse: "Headers are invalid JSON",
+ errorMessageType: "Headers are not a JSON object."
+ });
+ } catch (t62) {
+ const error_0 = t62;
+ setResponse(error_0 instanceof Error ? error_0.message : `${error_0}`);
+ return;
+ }
+ if (externalFragments) {
+ const fragmentDependencies = queryEditor.documentAST ? graphqlLanguageService.getFragmentDependenciesForAST(queryEditor.documentAST, externalFragments) : [];
+ if (fragmentDependencies.length > 0) {
+ query = query + ("\n" + fragmentDependencies.map(_temp$7).join("\n"));
+ }
+ }
+ setResponse("");
+ setIsFetching(true);
+ const opName = (_ref = operationName !== null && operationName !== void 0 ? operationName : queryEditor.operationName) !== null && _ref !== void 0 ? _ref : void 0;
+ history == null ? void 0 : history.addToHistory({
+ query,
+ variables: variablesString,
+ headers: headersString,
+ operationName: opName
+ });
+ const _headers = (_headers2 = headers) !== null && _headers2 !== void 0 ? _headers2 : void 0;
+ const documentAST = (_queryEditor$document = queryEditor.documentAST) !== null && _queryEditor$document !== void 0 ? _queryEditor$document : void 0;
+ try {
+ const fullResponse = {};
+ const handleResponse = result => {
+ if (queryId !== queryIdRef.current) {
+ return;
+ }
+ let maybeMultipart = Array.isArray(result) ? result : false;
+ if (!maybeMultipart && typeof result === "object" && result !== null && "hasNext" in result) {
+ maybeMultipart = [result];
+ }
+ if (maybeMultipart) {
+ for (const part of maybeMultipart) {
+ mergeIncrementalResult(fullResponse, part);
+ }
+ setIsFetching(false);
+ setResponse(toolkit.formatResult(fullResponse));
+ } else {
+ const response = toolkit.formatResult(result);
+ setIsFetching(false);
+ setResponse(response);
+ }
+ };
+ const fetch2 = fetcher({
+ query,
+ variables,
+ operationName: opName
+ }, {
+ headers: _headers,
+ documentAST
+ });
+ const value_0 = await Promise.resolve(fetch2);
+ if (toolkit.isObservable(value_0)) {
+ setSubscription(value_0.subscribe({
+ next(result_0) {
+ handleResponse(result_0);
+ },
+ error(error_2) {
+ setIsFetching(false);
+ if (error_2) {
+ setResponse(toolkit.formatError(error_2));
+ }
+ setSubscription(null);
+ },
+ complete() {
+ setIsFetching(false);
+ setSubscription(null);
+ }
+ }));
+ } else {
+ if (toolkit.isAsyncIterable(value_0)) {
+ setSubscription({
+ unsubscribe: () => {
+ var _a, _b;
+ return (_b = (_a = value_0[Symbol.asyncIterator]()).return) == null ? void 0 : _b.call(_a);
+ }
+ });
+ await handleAsyncResults(handleResponse, value_0);
+ setIsFetching(false);
+ setSubscription(null);
+ } else {
+ handleResponse(value_0);
+ }
+ }
+ } catch (t72) {
+ const error_1 = t72;
+ setIsFetching(false);
+ setResponse(toolkit.formatError(error_1));
+ setSubscription(null);
+ }
+ };
+ $[5] = autoCompleteLeafs;
+ $[6] = externalFragments;
+ $[7] = fetcher;
+ $[8] = headerEditor;
+ $[9] = history;
+ $[10] = operationName;
+ $[11] = queryEditor;
+ $[12] = responseEditor;
+ $[13] = stop;
+ $[14] = subscription;
+ $[15] = updateActiveTabValues;
+ $[16] = variableEditor;
+ $[17] = t4;
+ } else {
+ t4 = $[17];
+ }
+ const run = t4;
const isSubscribed = Boolean(subscription);
- const value = React.useMemo(() => ({
- isFetching,
- isSubscribed,
- operationName: operationName !== null && operationName !== void 0 ? operationName : null,
- run,
- stop
- }), [isFetching, isSubscribed, operationName, run, stop]);
- return /* @__PURE__ */jsxRuntime.jsx(ExecutionContext.Provider, {
- value,
- children
- });
+ const t5 = operationName !== null && operationName !== void 0 ? operationName : null;
+ let t6;
+ if ($[18] !== isFetching || $[19] !== isSubscribed || $[20] !== run || $[21] !== stop || $[22] !== t5) {
+ t6 = {
+ isFetching,
+ isSubscribed,
+ operationName: t5,
+ run,
+ stop
+ };
+ $[18] = isFetching;
+ $[19] = isSubscribed;
+ $[20] = run;
+ $[21] = stop;
+ $[22] = t5;
+ $[23] = t6;
+ } else {
+ t6 = $[23];
+ }
+ const value_1 = t6;
+ let t7;
+ if ($[24] !== children || $[25] !== value_1) {
+ t7 = /* @__PURE__ */jsxRuntime.jsx(ExecutionContext.Provider, {
+ value: value_1,
+ children
+ });
+ $[24] = children;
+ $[25] = value_1;
+ $[26] = t7;
+ } else {
+ t7 = $[26];
+ }
+ return t7;
+}
+function _temp$7(node) {
+ return graphql.print(node);
+}
+async function handleAsyncResults(onResponse, value) {
+ for await (const result of value) {
+ onResponse(result);
+ }
}
const useExecutionContext = createContextHook(ExecutionContext);
function tryParseJsonObject({
@@ -70915,13 +77378,12 @@ const commonKeys = {
"Alt-Right": "goGroupRight"
};
async function importCodeMirror(addons, options) {
- const CodeMirror = await Promise.resolve().then(() => __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js")).then(n => n.codemirror).then(c =>
+ const CodeMirror = await Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror */ "../../../node_modules/codemirror/lib/codemirror.js"))).then(c =>
// Depending on bundler and settings the dynamic import either returns a
// function (e.g. parcel) or an object containing a `default` property
typeof c === "function" ? c : c.default);
- await Promise.all((options == null ? void 0 : options.useCommonAddons) === false ? addons : [Promise.resolve().then(() => __webpack_require__(/*! ./show-hint.cjs.js */ "../../graphiql-react/dist/show-hint.cjs.js")).then(n => n.showHint), Promise.resolve().then(() => __webpack_require__(/*! ./matchbrackets.cjs.js */ "../../graphiql-react/dist/matchbrackets.cjs.js")).then(n => n.matchbrackets), Promise.resolve().then(() => __webpack_require__(/*! ./closebrackets.cjs.js */ "../../graphiql-react/dist/closebrackets.cjs.js")).then(n => n.closebrackets), Promise.resolve().then(() => __webpack_require__(/*! ./brace-fold.cjs.js */ "../../graphiql-react/dist/brace-fold.cjs.js")).then(n => n.braceFold), Promise.resolve().then(() => __webpack_require__(/*! ./foldgutter.cjs.js */ "../../graphiql-react/dist/foldgutter.cjs.js")).then(n => n.foldgutter), Promise.resolve().then(() => __webpack_require__(/*! ./lint.cjs.js */ "../../graphiql-react/dist/lint.cjs.js")).then(n => n.lint), Promise.resolve().then(() => __webpack_require__(/*! ./searchcursor.cjs.js */ "../../graphiql-react/dist/searchcursor.cjs.js")).then(n => n.searchcursor), Promise.resolve().then(() => __webpack_require__(/*! ./jump-to-line.cjs.js */ "../../graphiql-react/dist/jump-to-line.cjs.js")).then(n => n.jumpToLine), Promise.resolve().then(() => __webpack_require__(/*! ./dialog.cjs.js */ "../../graphiql-react/dist/dialog.cjs.js")).then(n => n.dialog),
- // @ts-expect-error
- Promise.resolve().then(() => __webpack_require__(/*! ./sublime.cjs.js */ "../../graphiql-react/dist/sublime.cjs.js")).then(n => n.sublime), ...addons]);
+ await Promise.all((options == null ? void 0 : options.useCommonAddons) === false ? addons : [Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/hint/show-hint.js */ "../../../node_modules/codemirror/addon/hint/show-hint.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/edit/matchbrackets.js */ "../../../node_modules/codemirror/addon/edit/matchbrackets.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/edit/closebrackets.js */ "../../../node_modules/codemirror/addon/edit/closebrackets.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/fold/brace-fold.js */ "../../../node_modules/codemirror/addon/fold/brace-fold.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/fold/foldgutter.js */ "../../../node_modules/codemirror/addon/fold/foldgutter.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/lint/lint.js */ "../../../node_modules/codemirror/addon/lint/lint.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/search/searchcursor.js */ "../../../node_modules/codemirror/addon/search/searchcursor.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/search/jump-to-line.js */ "../../../node_modules/codemirror/addon/search/jump-to-line.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/dialog/dialog.js */ "../../../node_modules/codemirror/addon/dialog/dialog.js"))), // @ts-expect-error
+ Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/keymap/sublime.js */ "../../../node_modules/codemirror/keymap/sublime.js"))), ...addons]);
return CodeMirror;
}
const printDefault = ast => {
@@ -70930,158 +77392,320 @@ const printDefault = ast => {
}
return graphql.print(ast);
};
-function DefaultValue({
- field
-}) {
+function DefaultValue(t0) {
+ const $ = reactCompilerRuntime.c(12);
+ const {
+ field
+ } = t0;
if (!("defaultValue" in field) || field.defaultValue === void 0) {
return null;
}
- const ast = graphql.astFromValue(field.defaultValue, field.type);
- if (!ast) {
- return null;
+ const t1 = field.defaultValue;
+ const t2 = field.type;
+ let t3;
+ let t4;
+ let t5;
+ let t6;
+ if ($[0] !== field.defaultValue || $[1] !== field.type) {
+ t6 = Symbol.for("react.early_return_sentinel");
+ bb0: {
+ const ast = graphql.astFromValue(t1, t2);
+ if (!ast) {
+ t6 = null;
+ break bb0;
+ }
+ t5 = " = ";
+ t3 = "graphiql-doc-explorer-default-value";
+ t4 = printDefault(ast);
+ }
+ $[0] = field.defaultValue;
+ $[1] = field.type;
+ $[2] = t3;
+ $[3] = t4;
+ $[4] = t5;
+ $[5] = t6;
+ } else {
+ t3 = $[2];
+ t4 = $[3];
+ t5 = $[4];
+ t6 = $[5];
}
- return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
- children: [" = ", /* @__PURE__ */jsxRuntime.jsx("span", {
- className: "graphiql-doc-explorer-default-value",
- children: printDefault(ast)
- })]
- });
+ if (t6 !== Symbol.for("react.early_return_sentinel")) {
+ return t6;
+ }
+ let t7;
+ if ($[6] !== t3 || $[7] !== t4) {
+ t7 = /* @__PURE__ */jsxRuntime.jsx("span", {
+ className: t3,
+ children: t4
+ });
+ $[6] = t3;
+ $[7] = t4;
+ $[8] = t7;
+ } else {
+ t7 = $[8];
+ }
+ let t8;
+ if ($[9] !== t5 || $[10] !== t7) {
+ t8 = /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ children: [t5, t7]
+ });
+ $[9] = t5;
+ $[10] = t7;
+ $[11] = t8;
+ } else {
+ t8 = $[11];
+ }
+ return t8;
}
const SchemaContext = createNullableContext("SchemaContext");
-function SchemaContextProvider(props) {
- if (!props.fetcher) {
+function SchemaContextProvider(t0) {
+ const $ = reactCompilerRuntime.c(38);
+ let fetcher;
+ let onSchemaChange;
+ let props;
+ if ($[0] !== t0) {
+ ({
+ fetcher,
+ onSchemaChange,
+ ...props
+ } = t0);
+ $[0] = t0;
+ $[1] = fetcher;
+ $[2] = onSchemaChange;
+ $[3] = props;
+ } else {
+ fetcher = $[1];
+ onSchemaChange = $[2];
+ props = $[3];
+ }
+ if (!fetcher) {
throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");
}
+ let t1;
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = {
+ nonNull: true,
+ caller: SchemaContextProvider
+ };
+ $[4] = t1;
+ } else {
+ t1 = $[4];
+ }
const {
initialHeaders,
headerEditor
- } = useEditorContext({
- nonNull: true,
- caller: SchemaContextProvider
- });
+ } = useEditorContext(t1);
const [schema, setSchema] = React.useState();
const [isFetching, setIsFetching] = React.useState(false);
const [fetchError, setFetchError] = React.useState(null);
const counterRef = React.useRef(0);
- React.useEffect(() => {
- setSchema(graphql.isSchema(props.schema) || props.schema === null || props.schema === void 0 ? props.schema : void 0);
- counterRef.current++;
- }, [props.schema]);
+ let t2;
+ let t3;
+ if ($[5] !== props.schema) {
+ t2 = () => {
+ setSchema(graphql.isSchema(props.schema) || props.schema == null ? props.schema : void 0);
+ counterRef.current = counterRef.current + 1;
+ };
+ t3 = [props.schema];
+ $[5] = props.schema;
+ $[6] = t2;
+ $[7] = t3;
+ } else {
+ t2 = $[6];
+ t3 = $[7];
+ }
+ React.useEffect(t2, t3);
const headersRef = React.useRef(initialHeaders);
- React.useEffect(() => {
- if (headerEditor) {
- headersRef.current = headerEditor.getValue();
- }
- });
+ let t4;
+ if ($[8] !== headerEditor) {
+ t4 = () => {
+ if (headerEditor) {
+ headersRef.current = headerEditor.getValue();
+ }
+ };
+ $[8] = headerEditor;
+ $[9] = t4;
+ } else {
+ t4 = $[9];
+ }
+ React.useEffect(t4);
+ let t5;
+ if ($[10] !== props.inputValueDeprecation || $[11] !== props.introspectionQueryName || $[12] !== props.schemaDescription) {
+ t5 = {
+ inputValueDeprecation: props.inputValueDeprecation,
+ introspectionQueryName: props.introspectionQueryName,
+ schemaDescription: props.schemaDescription
+ };
+ $[10] = props.inputValueDeprecation;
+ $[11] = props.introspectionQueryName;
+ $[12] = props.schemaDescription;
+ $[13] = t5;
+ } else {
+ t5 = $[13];
+ }
const {
introspectionQuery,
introspectionQueryName,
introspectionQuerySansSubscriptions
- } = useIntrospectionQuery({
- inputValueDeprecation: props.inputValueDeprecation,
- introspectionQueryName: props.introspectionQueryName,
- schemaDescription: props.schemaDescription
- });
- const {
- fetcher,
- onSchemaChange,
- dangerouslyAssumeSchemaIsValid,
- children
- } = props;
- const introspect = React.useCallback(() => {
- if (graphql.isSchema(props.schema) || props.schema === null) {
- return;
- }
- const counter = ++counterRef.current;
- const maybeIntrospectionData = props.schema;
- async function fetchIntrospectionData() {
- if (maybeIntrospectionData) {
- return maybeIntrospectionData;
- }
- const parsedHeaders = parseHeaderString(headersRef.current);
- if (!parsedHeaders.isValidJSON) {
- setFetchError("Introspection failed as headers are invalid.");
+ } = useIntrospectionQuery(t5);
+ let t6;
+ if ($[14] !== fetcher || $[15] !== introspectionQuery || $[16] !== introspectionQueryName || $[17] !== introspectionQuerySansSubscriptions || $[18] !== onSchemaChange || $[19] !== props.schema) {
+ t6 = () => {
+ if (graphql.isSchema(props.schema) || props.schema === null) {
return;
}
- const fetcherOpts = parsedHeaders.headers ? {
- headers: parsedHeaders.headers
- } : {};
- const fetch2 = toolkit.fetcherReturnToPromise(fetcher({
- query: introspectionQuery,
- operationName: introspectionQueryName
- }, fetcherOpts));
- if (!toolkit.isPromise(fetch2)) {
- setFetchError("Fetcher did not return a Promise for introspection.");
- return;
- }
- setIsFetching(true);
- setFetchError(null);
- let result = await fetch2;
- if (typeof result !== "object" || result === null || !("data" in result)) {
- const fetch22 = toolkit.fetcherReturnToPromise(fetcher({
- query: introspectionQuerySansSubscriptions,
+ const counter = counterRef.current = counterRef.current + 1;
+ const maybeIntrospectionData = props.schema;
+ const fetchIntrospectionData = async function fetchIntrospectionData2() {
+ if (maybeIntrospectionData) {
+ return maybeIntrospectionData;
+ }
+ const parsedHeaders = parseHeaderString(headersRef.current);
+ if (!parsedHeaders.isValidJSON) {
+ setFetchError("Introspection failed as headers are invalid.");
+ return;
+ }
+ const fetcherOpts = parsedHeaders.headers ? {
+ headers: parsedHeaders.headers
+ } : {};
+ const fetch2 = toolkit.fetcherReturnToPromise(fetcher({
+ query: introspectionQuery,
operationName: introspectionQueryName
}, fetcherOpts));
- if (!toolkit.isPromise(fetch22)) {
- throw new Error("Fetcher did not return a Promise for introspection.");
+ if (!toolkit.isPromise(fetch2)) {
+ setFetchError("Fetcher did not return a Promise for introspection.");
+ return;
}
- result = await fetch22;
- }
- setIsFetching(false);
- if ((result == null ? void 0 : result.data) && "__schema" in result.data) {
- return result.data;
- }
- const responseString = typeof result === "string" ? result : toolkit.formatResult(result);
- setFetchError(responseString);
- }
- fetchIntrospectionData().then(introspectionData => {
- if (counter !== counterRef.current || !introspectionData) {
- return;
- }
- try {
- const newSchema = graphql.buildClientSchema(introspectionData);
- setSchema(newSchema);
- onSchemaChange == null ? void 0 : onSchemaChange(newSchema);
- } catch (error) {
- setFetchError(toolkit.formatError(error));
- }
- }).catch(error => {
- if (counter !== counterRef.current) {
- return;
- }
- setFetchError(toolkit.formatError(error));
- setIsFetching(false);
+ setIsFetching(true);
+ setFetchError(null);
+ let result = await fetch2;
+ if (typeof result !== "object" || result === null || !("data" in result)) {
+ const fetch22 = toolkit.fetcherReturnToPromise(fetcher({
+ query: introspectionQuerySansSubscriptions,
+ operationName: introspectionQueryName
+ }, fetcherOpts));
+ if (!toolkit.isPromise(fetch22)) {
+ throw new Error("Fetcher did not return a Promise for introspection.");
+ }
+ result = await fetch22;
+ }
+ setIsFetching(false);
+ if ((result == null ? void 0 : result.data) && "__schema" in result.data) {
+ return result.data;
+ }
+ const responseString = typeof result === "string" ? result : toolkit.formatResult(result);
+ setFetchError(responseString);
+ };
+ fetchIntrospectionData().then(introspectionData => {
+ if (counter !== counterRef.current || !introspectionData) {
+ return;
+ }
+ try {
+ const newSchema = graphql.buildClientSchema(introspectionData);
+ setSchema(newSchema);
+ if (onSchemaChange) {
+ onSchemaChange(newSchema);
+ }
+ } catch (t72) {
+ const error = t72;
+ setFetchError(toolkit.formatError(error));
+ }
+ }).catch(error_0 => {
+ if (counter !== counterRef.current) {
+ return;
+ }
+ setFetchError(toolkit.formatError(error_0));
+ setIsFetching(false);
+ });
+ };
+ $[14] = fetcher;
+ $[15] = introspectionQuery;
+ $[16] = introspectionQueryName;
+ $[17] = introspectionQuerySansSubscriptions;
+ $[18] = onSchemaChange;
+ $[19] = props.schema;
+ $[20] = t6;
+ } else {
+ t6 = $[20];
+ }
+ const introspect = t6;
+ let t7;
+ let t8;
+ if ($[21] !== introspect) {
+ t7 = () => {
+ introspect();
+ };
+ t8 = [introspect];
+ $[21] = introspect;
+ $[22] = t7;
+ $[23] = t8;
+ } else {
+ t7 = $[22];
+ t8 = $[23];
+ }
+ React.useEffect(t7, t8);
+ let t9;
+ if ($[24] !== introspect) {
+ t9 = () => {
+ const triggerIntrospection = function triggerIntrospection2(event) {
+ if (event.ctrlKey && event.key === "R") {
+ introspect();
+ }
+ };
+ window.addEventListener("keydown", triggerIntrospection);
+ return () => {
+ window.removeEventListener("keydown", triggerIntrospection);
+ };
+ };
+ $[24] = introspect;
+ $[25] = t9;
+ } else {
+ t9 = $[25];
+ }
+ React.useEffect(t9);
+ let t10;
+ if ($[26] !== props.dangerouslyAssumeSchemaIsValid || $[27] !== schema) {
+ t10 = !schema || props.dangerouslyAssumeSchemaIsValid ? [] : graphql.validateSchema(schema);
+ $[26] = props.dangerouslyAssumeSchemaIsValid;
+ $[27] = schema;
+ $[28] = t10;
+ } else {
+ t10 = $[28];
+ }
+ const validationErrors = t10;
+ let t11;
+ if ($[29] !== fetchError || $[30] !== introspect || $[31] !== isFetching || $[32] !== schema || $[33] !== validationErrors) {
+ t11 = {
+ fetchError,
+ introspect,
+ isFetching,
+ schema,
+ validationErrors
+ };
+ $[29] = fetchError;
+ $[30] = introspect;
+ $[31] = isFetching;
+ $[32] = schema;
+ $[33] = validationErrors;
+ $[34] = t11;
+ } else {
+ t11 = $[34];
+ }
+ const value = t11;
+ let t12;
+ if ($[35] !== props.children || $[36] !== value) {
+ t12 = /* @__PURE__ */jsxRuntime.jsx(SchemaContext.Provider, {
+ value,
+ children: props.children
});
- }, [fetcher, introspectionQueryName, introspectionQuery, introspectionQuerySansSubscriptions, onSchemaChange, props.schema]);
- React.useEffect(() => {
- introspect();
- }, [introspect]);
- React.useEffect(() => {
- function triggerIntrospection(event) {
- if (event.ctrlKey && event.key === "R") {
- introspect();
- }
- }
- window.addEventListener("keydown", triggerIntrospection);
- return () => window.removeEventListener("keydown", triggerIntrospection);
- });
- const validationErrors = React.useMemo(() => {
- if (!schema || dangerouslyAssumeSchemaIsValid) {
- return [];
- }
- return graphql.validateSchema(schema);
- }, [schema, dangerouslyAssumeSchemaIsValid]);
- const value = React.useMemo(() => ({
- fetchError,
- introspect,
- isFetching,
- schema,
- validationErrors
- }), [fetchError, introspect, isFetching, schema, validationErrors]);
- return /* @__PURE__ */jsxRuntime.jsx(SchemaContext.Provider, {
- value,
- children
- });
+ $[35] = props.children;
+ $[36] = value;
+ $[37] = t12;
+ } else {
+ t12 = $[37];
+ }
+ return t12;
}
const useSchemaContext = createContextHook(SchemaContext);
function useIntrospectionQuery({
@@ -71089,22 +77713,20 @@ function useIntrospectionQuery({
introspectionQueryName,
schemaDescription
}) {
- return React.useMemo(() => {
- const queryName = introspectionQueryName || "IntrospectionQuery";
- let query = graphql.getIntrospectionQuery({
- inputValueDeprecation,
- schemaDescription
- });
- if (introspectionQueryName) {
- query = query.replace("query IntrospectionQuery", `query ${queryName}`);
- }
- const querySansSubscriptions = query.replace("subscriptionType { name }", "");
- return {
- introspectionQueryName: queryName,
- introspectionQuery: query,
- introspectionQuerySansSubscriptions: querySansSubscriptions
- };
- }, [inputValueDeprecation, introspectionQueryName, schemaDescription]);
+ const queryName = introspectionQueryName || "IntrospectionQuery";
+ let query = graphql.getIntrospectionQuery({
+ inputValueDeprecation,
+ schemaDescription
+ });
+ if (introspectionQueryName) {
+ query = query.replace("query IntrospectionQuery", `query ${queryName}`);
+ }
+ const querySansSubscriptions = query.replace("subscriptionType { name }", "");
+ return {
+ introspectionQueryName: queryName,
+ introspectionQuery: query,
+ introspectionQuerySansSubscriptions: querySansSubscriptions
+ };
}
function parseHeaderString(headersString) {
let headers = null;
@@ -71126,99 +77748,175 @@ const initialNavStackItem = {
};
const ExplorerContext = createNullableContext("ExplorerContext");
function ExplorerContextProvider(props) {
+ const $ = reactCompilerRuntime.c(14);
+ let t0;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t0 = {
+ nonNull: true,
+ caller: ExplorerContextProvider
+ };
+ $[0] = t0;
+ } else {
+ t0 = $[0];
+ }
const {
schema,
validationErrors
- } = useSchemaContext({
- nonNull: true,
- caller: ExplorerContextProvider
- });
- const [navStack, setNavStack] = React.useState([initialNavStackItem]);
- const push = React.useCallback(item => {
- setNavStack(currentState => {
- const lastItem = currentState.at(-1);
- return lastItem.def === item.def ?
- // Avoid pushing duplicate items
- currentState : [...currentState, item];
- });
- }, []);
- const pop = React.useCallback(() => {
- setNavStack(currentState => currentState.length > 1 ? currentState.slice(0, -1) : currentState);
- }, []);
- const reset = React.useCallback(() => {
- setNavStack(currentState => currentState.length === 1 ? currentState : [initialNavStackItem]);
- }, []);
- React.useEffect(() => {
- if (schema == null || validationErrors.length > 0) {
- reset();
- } else {
- setNavStack(oldNavStack => {
- if (oldNavStack.length === 1) {
- return oldNavStack;
- }
- const newNavStack = [initialNavStackItem];
- let lastEntity = null;
- for (const item of oldNavStack) {
- if (item === initialNavStackItem) {
- continue;
- }
- if (item.def) {
- if (graphql.isNamedType(item.def)) {
- const newType = schema.getType(item.def.name);
- if (newType) {
- newNavStack.push({
- name: item.name,
- def: newType
- });
- lastEntity = newType;
- } else {
- break;
- }
- } else if (lastEntity === null) {
- break;
- } else if (graphql.isObjectType(lastEntity) || graphql.isInputObjectType(lastEntity)) {
- const field = lastEntity.getFields()[item.name];
- if (field) {
- newNavStack.push({
- name: item.name,
- def: field
- });
- } else {
- break;
- }
- } else if (graphql.isScalarType(lastEntity) || graphql.isEnumType(lastEntity) || graphql.isInterfaceType(lastEntity) || graphql.isUnionType(lastEntity)) {
- break;
- } else {
- const field = lastEntity;
- const arg = field.args.find(a => a.name === item.name);
- if (arg) {
- newNavStack.push({
- name: item.name,
- def: field
- });
- } else {
- break;
- }
- }
- } else {
- lastEntity = null;
- newNavStack.push(item);
- }
- }
- return newNavStack;
+ } = useSchemaContext(t0);
+ let t1;
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = [initialNavStackItem];
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const [navStack, setNavStack] = React.useState(t1);
+ let t2;
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
+ t2 = item => {
+ setNavStack(currentState => {
+ const lastItem = currentState.at(-1);
+ return lastItem.def === item.def ? currentState : [...currentState, item];
});
- }
- }, [reset, schema, validationErrors]);
- const value = React.useMemo(() => ({
- explorerNavStack: navStack,
- push,
- pop,
- reset
- }), [navStack, push, pop, reset]);
- return /* @__PURE__ */jsxRuntime.jsx(ExplorerContext.Provider, {
- value,
- children: props.children
- });
+ };
+ $[2] = t2;
+ } else {
+ t2 = $[2];
+ }
+ const push = t2;
+ let t3;
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
+ t3 = () => {
+ setNavStack(_temp$6);
+ };
+ $[3] = t3;
+ } else {
+ t3 = $[3];
+ }
+ const pop = t3;
+ let t4;
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
+ t4 = () => {
+ setNavStack(_temp2$3);
+ };
+ $[4] = t4;
+ } else {
+ t4 = $[4];
+ }
+ const reset = t4;
+ let t5;
+ let t6;
+ if ($[5] !== schema || $[6] !== validationErrors) {
+ t5 = () => {
+ if (schema == null || validationErrors.length > 0) {
+ reset();
+ } else {
+ setNavStack(oldNavStack => {
+ if (oldNavStack.length === 1) {
+ return oldNavStack;
+ }
+ const newNavStack = [initialNavStackItem];
+ let lastEntity = null;
+ for (const item_0 of oldNavStack) {
+ if (item_0 === initialNavStackItem) {
+ continue;
+ }
+ if (item_0.def) {
+ if (graphql.isNamedType(item_0.def)) {
+ const newType = schema.getType(item_0.def.name);
+ if (newType) {
+ newNavStack.push({
+ name: item_0.name,
+ def: newType
+ });
+ lastEntity = newType;
+ } else {
+ break;
+ }
+ } else {
+ if (lastEntity === null) {
+ break;
+ } else {
+ if (graphql.isObjectType(lastEntity) || graphql.isInputObjectType(lastEntity)) {
+ const field = lastEntity.getFields()[item_0.name];
+ if (field) {
+ newNavStack.push({
+ name: item_0.name,
+ def: field
+ });
+ } else {
+ break;
+ }
+ } else {
+ if (graphql.isScalarType(lastEntity) || graphql.isEnumType(lastEntity) || graphql.isInterfaceType(lastEntity) || graphql.isUnionType(lastEntity)) {
+ break;
+ } else {
+ const field_0 = lastEntity;
+ const arg = field_0.args.find(a => a.name === item_0.name);
+ if (arg) {
+ newNavStack.push({
+ name: item_0.name,
+ def: field_0
+ });
+ } else {
+ break;
+ }
+ }
+ }
+ }
+ }
+ } else {
+ lastEntity = null;
+ newNavStack.push(item_0);
+ }
+ }
+ return newNavStack;
+ });
+ }
+ };
+ t6 = [schema, validationErrors];
+ $[5] = schema;
+ $[6] = validationErrors;
+ $[7] = t5;
+ $[8] = t6;
+ } else {
+ t5 = $[7];
+ t6 = $[8];
+ }
+ React.useEffect(t5, t6);
+ let t7;
+ if ($[9] !== navStack) {
+ t7 = {
+ explorerNavStack: navStack,
+ push,
+ pop,
+ reset
+ };
+ $[9] = navStack;
+ $[10] = t7;
+ } else {
+ t7 = $[10];
+ }
+ const value = t7;
+ let t8;
+ if ($[11] !== props.children || $[12] !== value) {
+ t8 = /* @__PURE__ */jsxRuntime.jsx(ExplorerContext.Provider, {
+ value,
+ children: props.children
+ });
+ $[11] = props.children;
+ $[12] = value;
+ $[13] = t8;
+ } else {
+ t8 = $[13];
+ }
+ return t8;
+}
+function _temp2$3(currentState_1) {
+ return currentState_1.length === 1 ? currentState_1 : [initialNavStackItem];
+}
+function _temp$6(currentState_0) {
+ return currentState_0.length > 1 ? currentState_0.slice(0, -1) : currentState_0;
}
const useExplorerContext = createContextHook(ExplorerContext);
function renderType(type, renderNamedType) {
@@ -71235,52 +77933,122 @@ function renderType(type, renderNamedType) {
return renderNamedType(type);
}
function TypeLink(props) {
+ const $ = reactCompilerRuntime.c(6);
+ let t0;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t0 = {
+ nonNull: true,
+ caller: TypeLink
+ };
+ $[0] = t0;
+ } else {
+ t0 = $[0];
+ }
const {
push
- } = useExplorerContext({
- nonNull: true,
- caller: TypeLink
- });
+ } = useExplorerContext(t0);
if (!props.type) {
return null;
}
- return renderType(props.type, namedType => /* @__PURE__ */jsxRuntime.jsx("a", {
- className: "graphiql-doc-explorer-type-name",
- onClick: event => {
- event.preventDefault();
- push({
- name: namedType.name,
- def: namedType
- });
- },
- href: "#",
- children: namedType.name
- }));
+ let t1;
+ if ($[1] !== push) {
+ t1 = namedType => /* @__PURE__ */jsxRuntime.jsx("a", {
+ className: "graphiql-doc-explorer-type-name",
+ onClick: event => {
+ event.preventDefault();
+ push({
+ name: namedType.name,
+ def: namedType
+ });
+ },
+ href: "#",
+ children: namedType.name
+ });
+ $[1] = push;
+ $[2] = t1;
+ } else {
+ t1 = $[2];
+ }
+ let t2;
+ if ($[3] !== props.type || $[4] !== t1) {
+ t2 = renderType(props.type, t1);
+ $[3] = props.type;
+ $[4] = t1;
+ $[5] = t2;
+ } else {
+ t2 = $[5];
+ }
+ return t2;
}
-function Argument({
- arg,
- showDefaultValue,
- inline
-}) {
- const definition = /* @__PURE__ */jsxRuntime.jsxs("span", {
- children: [/* @__PURE__ */jsxRuntime.jsx("span", {
+function Argument(t0) {
+ const $ = reactCompilerRuntime.c(19);
+ const {
+ arg,
+ showDefaultValue,
+ inline
+ } = t0;
+ let t1;
+ if ($[0] !== arg.name) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx("span", {
className: "graphiql-doc-explorer-argument-name",
children: arg.name
- }), ": ", /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
+ });
+ $[0] = arg.name;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ let t2;
+ if ($[2] !== arg.type) {
+ t2 = /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
type: arg.type
- }), showDefaultValue !== false && /* @__PURE__ */jsxRuntime.jsx(DefaultValue, {
+ });
+ $[2] = arg.type;
+ $[3] = t2;
+ } else {
+ t2 = $[3];
+ }
+ let t3;
+ if ($[4] !== arg || $[5] !== showDefaultValue) {
+ t3 = showDefaultValue !== false && /* @__PURE__ */jsxRuntime.jsx(DefaultValue, {
field: arg
- })]
- });
+ });
+ $[4] = arg;
+ $[5] = showDefaultValue;
+ $[6] = t3;
+ } else {
+ t3 = $[6];
+ }
+ let t4;
+ if ($[7] !== t1 || $[8] !== t2 || $[9] !== t3) {
+ t4 = /* @__PURE__ */jsxRuntime.jsxs("span", {
+ children: [t1, ": ", t2, t3]
+ });
+ $[7] = t1;
+ $[8] = t2;
+ $[9] = t3;
+ $[10] = t4;
+ } else {
+ t4 = $[10];
+ }
+ const definition = t4;
if (inline) {
return definition;
}
- return /* @__PURE__ */jsxRuntime.jsxs("div", {
- className: "graphiql-doc-explorer-argument",
- children: [definition, arg.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
+ let t5;
+ if ($[11] !== arg.description) {
+ t5 = arg.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
type: "description",
children: arg.description
- }) : null, arg.deprecationReason ? /* @__PURE__ */jsxRuntime.jsxs("div", {
+ }) : null;
+ $[11] = arg.description;
+ $[12] = t5;
+ } else {
+ t5 = $[12];
+ }
+ let t6;
+ if ($[13] !== arg.deprecationReason) {
+ t6 = arg.deprecationReason ? /* @__PURE__ */jsxRuntime.jsxs("div", {
className: "graphiql-doc-explorer-argument-deprecation",
children: [/* @__PURE__ */jsxRuntime.jsx("div", {
className: "graphiql-doc-explorer-argument-deprecation-label",
@@ -71289,42 +78057,115 @@ function Argument({
type: "deprecation",
children: arg.deprecationReason
})]
- }) : null]
- });
+ }) : null;
+ $[13] = arg.deprecationReason;
+ $[14] = t6;
+ } else {
+ t6 = $[14];
+ }
+ let t7;
+ if ($[15] !== definition || $[16] !== t5 || $[17] !== t6) {
+ t7 = /* @__PURE__ */jsxRuntime.jsxs("div", {
+ className: "graphiql-doc-explorer-argument",
+ children: [definition, t5, t6]
+ });
+ $[15] = definition;
+ $[16] = t5;
+ $[17] = t6;
+ $[18] = t7;
+ } else {
+ t7 = $[18];
+ }
+ return t7;
}
function DeprecationReason(props) {
- var _props$preview;
- return props.children ? /* @__PURE__ */jsxRuntime.jsxs("div", {
- className: "graphiql-doc-explorer-deprecation",
- children: [/* @__PURE__ */jsxRuntime.jsx("div", {
- className: "graphiql-doc-explorer-deprecation-label",
- children: "Deprecated"
- }), /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
- type: "deprecation",
- onlyShowFirstChild: (_props$preview = props.preview) !== null && _props$preview !== void 0 ? _props$preview : true,
- children: props.children
- })]
- }) : null;
+ const $ = reactCompilerRuntime.c(3);
+ let t0;
+ if ($[0] !== props.children || $[1] !== props.preview) {
+ var _props$preview;
+ t0 = props.children ? /* @__PURE__ */jsxRuntime.jsxs("div", {
+ className: "graphiql-doc-explorer-deprecation",
+ children: [/* @__PURE__ */jsxRuntime.jsx("div", {
+ className: "graphiql-doc-explorer-deprecation-label",
+ children: "Deprecated"
+ }), /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
+ type: "deprecation",
+ onlyShowFirstChild: (_props$preview = props.preview) !== null && _props$preview !== void 0 ? _props$preview : true,
+ children: props.children
+ })]
+ }) : null;
+ $[0] = props.children;
+ $[1] = props.preview;
+ $[2] = t0;
+ } else {
+ t0 = $[2];
+ }
+ return t0;
}
-function Directive({
- directive
-}) {
- return /* @__PURE__ */jsxRuntime.jsxs("span", {
- className: "graphiql-doc-explorer-directive",
- children: ["@", directive.name.value]
- });
+function Directive(t0) {
+ const $ = reactCompilerRuntime.c(2);
+ const {
+ directive
+ } = t0;
+ let t1;
+ if ($[0] !== directive.name.value) {
+ t1 = /* @__PURE__ */jsxRuntime.jsxs("span", {
+ className: "graphiql-doc-explorer-directive",
+ children: ["@", directive.name.value]
+ });
+ $[0] = directive.name.value;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ return t1;
}
function ExplorerSection(props) {
+ const $ = reactCompilerRuntime.c(10);
const Icon2 = TYPE_TO_ICON[props.title];
- return /* @__PURE__ */jsxRuntime.jsxs("div", {
- children: [/* @__PURE__ */jsxRuntime.jsxs("div", {
+ let t0;
+ if ($[0] !== Icon2) {
+ t0 = /* @__PURE__ */jsxRuntime.jsx(Icon2, {});
+ $[0] = Icon2;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ if ($[2] !== props.title || $[3] !== t0) {
+ t1 = /* @__PURE__ */jsxRuntime.jsxs("div", {
className: "graphiql-doc-explorer-section-title",
- children: [/* @__PURE__ */jsxRuntime.jsx(Icon2, {}), props.title]
- }), /* @__PURE__ */jsxRuntime.jsx("div", {
+ children: [t0, props.title]
+ });
+ $[2] = props.title;
+ $[3] = t0;
+ $[4] = t1;
+ } else {
+ t1 = $[4];
+ }
+ let t2;
+ if ($[5] !== props.children) {
+ t2 = /* @__PURE__ */jsxRuntime.jsx("div", {
className: "graphiql-doc-explorer-section-content",
children: props.children
- })]
- });
+ });
+ $[5] = props.children;
+ $[6] = t2;
+ } else {
+ t2 = $[6];
+ }
+ let t3;
+ if ($[7] !== t1 || $[8] !== t2) {
+ t3 = /* @__PURE__ */jsxRuntime.jsxs("div", {
+ children: [t1, t2]
+ });
+ $[7] = t1;
+ $[8] = t2;
+ $[9] = t3;
+ } else {
+ t3 = $[9];
+ }
+ return t3;
}
const TYPE_TO_ICON = {
Arguments: ArgumentIcon,
@@ -71342,130 +78183,380 @@ const TYPE_TO_ICON = {
"All Schema Types": TypeIcon
};
function FieldDocumentation(props) {
- return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
- children: [props.field.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
+ const $ = reactCompilerRuntime.c(15);
+ let t0;
+ if ($[0] !== props.field.description) {
+ t0 = props.field.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
type: "description",
children: props.field.description
- }) : null, /* @__PURE__ */jsxRuntime.jsx(DeprecationReason, {
+ }) : null;
+ $[0] = props.field.description;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ if ($[2] !== props.field.deprecationReason) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx(DeprecationReason, {
preview: false,
children: props.field.deprecationReason
- }), /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ });
+ $[2] = props.field.deprecationReason;
+ $[3] = t1;
+ } else {
+ t1 = $[3];
+ }
+ let t2;
+ if ($[4] !== props.field.type) {
+ t2 = /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
title: "Type",
children: /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
type: props.field.type
})
- }), /* @__PURE__ */jsxRuntime.jsx(Arguments, {
+ });
+ $[4] = props.field.type;
+ $[5] = t2;
+ } else {
+ t2 = $[5];
+ }
+ let t3;
+ let t4;
+ if ($[6] !== props.field) {
+ t3 = /* @__PURE__ */jsxRuntime.jsx(Arguments, {
field: props.field
- }), /* @__PURE__ */jsxRuntime.jsx(Directives, {
+ });
+ t4 = /* @__PURE__ */jsxRuntime.jsx(Directives, {
field: props.field
- })]
- });
+ });
+ $[6] = props.field;
+ $[7] = t3;
+ $[8] = t4;
+ } else {
+ t3 = $[7];
+ t4 = $[8];
+ }
+ let t5;
+ if ($[9] !== t0 || $[10] !== t1 || $[11] !== t2 || $[12] !== t3 || $[13] !== t4) {
+ t5 = /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ children: [t0, t1, t2, t3, t4]
+ });
+ $[9] = t0;
+ $[10] = t1;
+ $[11] = t2;
+ $[12] = t3;
+ $[13] = t4;
+ $[14] = t5;
+ } else {
+ t5 = $[14];
+ }
+ return t5;
}
-function Arguments({
- field
-}) {
+function Arguments(t0) {
+ const $ = reactCompilerRuntime.c(12);
+ const {
+ field
+ } = t0;
const [showDeprecated, setShowDeprecated] = React.useState(false);
- const handleShowDeprecated = React.useCallback(() => {
- setShowDeprecated(true);
- }, []);
+ let t1;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = () => {
+ setShowDeprecated(true);
+ };
+ $[0] = t1;
+ } else {
+ t1 = $[0];
+ }
+ const handleShowDeprecated = t1;
if (!("args" in field)) {
return null;
}
- const args = [];
- const deprecatedArgs = [];
- for (const argument of field.args) {
- if (argument.deprecationReason) {
- deprecatedArgs.push(argument);
- } else {
- args.push(argument);
+ let args;
+ let deprecatedArgs;
+ let t2;
+ if ($[1] !== field.args) {
+ args = [];
+ deprecatedArgs = [];
+ for (const argument of field.args) {
+ if (argument.deprecationReason) {
+ deprecatedArgs.push(argument);
+ } else {
+ args.push(argument);
+ }
}
- }
- return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
- children: [args.length > 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ t2 = args.length > 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
title: "Arguments",
- children: args.map(arg => /* @__PURE__ */jsxRuntime.jsx(Argument, {
- arg
- }, arg.name))
- }) : null, deprecatedArgs.length > 0 ? showDeprecated || args.length === 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ children: args.map(_temp$5)
+ }) : null;
+ $[1] = field.args;
+ $[2] = args;
+ $[3] = deprecatedArgs;
+ $[4] = t2;
+ } else {
+ args = $[2];
+ deprecatedArgs = $[3];
+ t2 = $[4];
+ }
+ let t3;
+ if ($[5] !== args.length || $[6] !== deprecatedArgs || $[7] !== showDeprecated) {
+ t3 = deprecatedArgs.length > 0 ? showDeprecated || args.length === 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
title: "Deprecated Arguments",
- children: deprecatedArgs.map(arg => /* @__PURE__ */jsxRuntime.jsx(Argument, {
- arg
- }, arg.name))
+ children: deprecatedArgs.map(_temp2$2)
}) : /* @__PURE__ */jsxRuntime.jsx(Button$1, {
type: "button",
onClick: handleShowDeprecated,
children: "Show Deprecated Arguments"
- }) : null]
- });
+ }) : null;
+ $[5] = args.length;
+ $[6] = deprecatedArgs;
+ $[7] = showDeprecated;
+ $[8] = t3;
+ } else {
+ t3 = $[8];
+ }
+ let t4;
+ if ($[9] !== t2 || $[10] !== t3) {
+ t4 = /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ children: [t2, t3]
+ });
+ $[9] = t2;
+ $[10] = t3;
+ $[11] = t4;
+ } else {
+ t4 = $[11];
+ }
+ return t4;
}
-function Directives({
- field
-}) {
- var _a;
- const directives = ((_a = field.astNode) == null ? void 0 : _a.directives) || [];
+function _temp2$2(arg_0) {
+ return /* @__PURE__ */jsxRuntime.jsx(Argument, {
+ arg: arg_0
+ }, arg_0.name);
+}
+function _temp$5(arg) {
+ return /* @__PURE__ */jsxRuntime.jsx(Argument, {
+ arg
+ }, arg.name);
+}
+function Directives(t0) {
+ var _a, _b, _c;
+ const $ = reactCompilerRuntime.c(6);
+ const {
+ field
+ } = t0;
+ let t1;
+ if ($[0] !== ((_a = field.astNode) == null ? void 0 : _a.directives)) {
+ t1 = ((_b = field.astNode) == null ? void 0 : _b.directives) || [];
+ $[0] = (_c = field.astNode) == null ? void 0 : _c.directives;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const directives = t1;
if (!directives || directives.length === 0) {
return null;
}
- return /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
- title: "Directives",
- children: directives.map(directive => /* @__PURE__ */jsxRuntime.jsx("div", {
- children: /* @__PURE__ */jsxRuntime.jsx(Directive, {
- directive
- })
- }, directive.name.value))
- });
+ let t2;
+ if ($[2] !== directives) {
+ t2 = directives.map(_temp3$2);
+ $[2] = directives;
+ $[3] = t2;
+ } else {
+ t2 = $[3];
+ }
+ let t3;
+ if ($[4] !== t2) {
+ t3 = /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ title: "Directives",
+ children: t2
+ });
+ $[4] = t2;
+ $[5] = t3;
+ } else {
+ t3 = $[5];
+ }
+ return t3;
+}
+function _temp3$2(directive) {
+ return /* @__PURE__ */jsxRuntime.jsx("div", {
+ children: /* @__PURE__ */jsxRuntime.jsx(Directive, {
+ directive
+ })
+ }, directive.name.value);
}
function SchemaDocumentation(props) {
var _a, _b, _c, _d;
- const queryType = props.schema.getQueryType();
- const mutationType = (_b = (_a = props.schema).getMutationType) == null ? void 0 : _b.call(_a);
- const subscriptionType = (_d = (_c = props.schema).getSubscriptionType) == null ? void 0 : _d.call(_c);
- const typeMap = props.schema.getTypeMap();
- const ignoreTypesInAllSchema = [queryType == null ? void 0 : queryType.name, mutationType == null ? void 0 : mutationType.name, subscriptionType == null ? void 0 : subscriptionType.name];
- return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
- children: [/* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
- type: "description",
- children: props.schema.description || "A GraphQL schema provides a root type for each kind of operation."
- }), /* @__PURE__ */jsxRuntime.jsxs(ExplorerSection, {
- title: "Root Types",
- children: [queryType ? /* @__PURE__ */jsxRuntime.jsxs("div", {
+ const $ = reactCompilerRuntime.c(39);
+ let t0;
+ if ($[0] !== props.schema) {
+ t0 = props.schema.getQueryType();
+ $[0] = props.schema;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ const queryType = t0;
+ let t1;
+ if ($[2] !== props.schema) {
+ t1 = (_b = (_a = props.schema).getMutationType) == null ? void 0 : _b.call(_a);
+ $[2] = props.schema;
+ $[3] = t1;
+ } else {
+ t1 = $[3];
+ }
+ const mutationType = t1;
+ let t2;
+ if ($[4] !== props.schema) {
+ t2 = (_d = (_c = props.schema).getSubscriptionType) == null ? void 0 : _d.call(_c);
+ $[4] = props.schema;
+ $[5] = t2;
+ } else {
+ t2 = $[5];
+ }
+ const subscriptionType = t2;
+ let T0;
+ let t3;
+ let t4;
+ let t5;
+ let t6;
+ if ($[6] !== mutationType || $[7] !== props.schema || $[8] !== queryType || $[9] !== subscriptionType) {
+ const typeMap = props.schema.getTypeMap();
+ const t72 = queryType == null ? void 0 : queryType.name;
+ const t82 = mutationType == null ? void 0 : mutationType.name;
+ const t9 = subscriptionType == null ? void 0 : subscriptionType.name;
+ let t10;
+ if ($[15] !== t72 || $[16] !== t82 || $[17] !== t9) {
+ t10 = [t72, t82, t9];
+ $[15] = t72;
+ $[16] = t82;
+ $[17] = t9;
+ $[18] = t10;
+ } else {
+ t10 = $[18];
+ }
+ const ignoreTypesInAllSchema = t10;
+ const t11 = props.schema.description || "A GraphQL schema provides a root type for each kind of operation.";
+ if ($[19] !== t11) {
+ t5 = /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
+ type: "description",
+ children: t11
+ });
+ $[19] = t11;
+ $[20] = t5;
+ } else {
+ t5 = $[20];
+ }
+ let t12;
+ if ($[21] !== queryType) {
+ t12 = queryType ? /* @__PURE__ */jsxRuntime.jsxs("div", {
children: [/* @__PURE__ */jsxRuntime.jsx("span", {
className: "graphiql-doc-explorer-root-type",
children: "query"
}), ": ", /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
type: queryType
})]
- }) : null, mutationType && /* @__PURE__ */jsxRuntime.jsxs("div", {
+ }) : null;
+ $[21] = queryType;
+ $[22] = t12;
+ } else {
+ t12 = $[22];
+ }
+ let t13;
+ if ($[23] !== mutationType) {
+ t13 = mutationType && /* @__PURE__ */jsxRuntime.jsxs("div", {
children: [/* @__PURE__ */jsxRuntime.jsx("span", {
className: "graphiql-doc-explorer-root-type",
children: "mutation"
}), ": ", /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
type: mutationType
})]
- }), subscriptionType && /* @__PURE__ */jsxRuntime.jsxs("div", {
+ });
+ $[23] = mutationType;
+ $[24] = t13;
+ } else {
+ t13 = $[24];
+ }
+ let t14;
+ if ($[25] !== subscriptionType) {
+ t14 = subscriptionType && /* @__PURE__ */jsxRuntime.jsxs("div", {
children: [/* @__PURE__ */jsxRuntime.jsx("span", {
className: "graphiql-doc-explorer-root-type",
children: "subscription"
}), ": ", /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
type: subscriptionType
})]
- })]
- }), /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
- title: "All Schema Types",
- children: typeMap && /* @__PURE__ */jsxRuntime.jsx("div", {
- children: Object.values(typeMap).map(type => {
- if (ignoreTypesInAllSchema.includes(type.name) || type.name.startsWith("__")) {
- return null;
- }
- return /* @__PURE__ */jsxRuntime.jsx("div", {
- children: /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
- type
- })
- }, type.name);
- })
+ });
+ $[25] = subscriptionType;
+ $[26] = t14;
+ } else {
+ t14 = $[26];
+ }
+ if ($[27] !== t12 || $[28] !== t13 || $[29] !== t14) {
+ t6 = /* @__PURE__ */jsxRuntime.jsxs(ExplorerSection, {
+ title: "Root Types",
+ children: [t12, t13, t14]
+ });
+ $[27] = t12;
+ $[28] = t13;
+ $[29] = t14;
+ $[30] = t6;
+ } else {
+ t6 = $[30];
+ }
+ T0 = ExplorerSection;
+ t3 = "All Schema Types";
+ t4 = typeMap && /* @__PURE__ */jsxRuntime.jsx("div", {
+ children: Object.values(typeMap).map(type => {
+ if (ignoreTypesInAllSchema.includes(type.name) || type.name.startsWith("__")) {
+ return null;
+ }
+ return /* @__PURE__ */jsxRuntime.jsx("div", {
+ children: /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
+ type
+ })
+ }, type.name);
})
- })]
- });
+ });
+ $[6] = mutationType;
+ $[7] = props.schema;
+ $[8] = queryType;
+ $[9] = subscriptionType;
+ $[10] = T0;
+ $[11] = t3;
+ $[12] = t4;
+ $[13] = t5;
+ $[14] = t6;
+ } else {
+ T0 = $[10];
+ t3 = $[11];
+ t4 = $[12];
+ t5 = $[13];
+ t6 = $[14];
+ }
+ let t7;
+ if ($[31] !== T0 || $[32] !== t3 || $[33] !== t4) {
+ t7 = /* @__PURE__ */jsxRuntime.jsx(T0, {
+ title: t3,
+ children: t4
+ });
+ $[31] = T0;
+ $[32] = t3;
+ $[33] = t4;
+ $[34] = t7;
+ } else {
+ t7 = $[34];
+ }
+ let t8;
+ if ($[35] !== t5 || $[36] !== t6 || $[37] !== t7) {
+ t8 = /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ children: [t5, t6, t7]
+ });
+ $[35] = t5;
+ $[36] = t6;
+ $[37] = t7;
+ $[38] = t8;
+ } else {
+ t8 = $[38];
+ }
+ return t8;
}
function debounce(duration, fn) {
let timeout;
@@ -71480,6 +78571,8 @@ function debounce(duration, fn) {
};
}
function Search() {
+ "use no memo";
+
const {
explorerNavStack,
push
@@ -71541,7 +78634,7 @@ function Search() {
autoComplete: "off",
onFocus: handleFocus,
onBlur: handleFocus,
- onChange: event => setSearchValue(event.target.value),
+ onChange: event_0 => setSearchValue(event_0.target.value),
placeholder: `${isMacOs ? "⌘" : "Ctrl"} K`,
ref: inputRef,
value: searchValue,
@@ -71562,94 +78655,131 @@ function Search() {
}, `within-${i}`)), results.within.length > 0 && results.types.length + results.fields.length > 0 ? /* @__PURE__ */jsxRuntime.jsx("div", {
className: "graphiql-doc-explorer-search-divider",
children: "Other results"
- }) : null, results.types.map((result, i) => /* @__PURE__ */jsxRuntime.jsx(react.Combobox.Option, {
- value: result,
+ }) : null, results.types.map((result_0, i_0) => /* @__PURE__ */jsxRuntime.jsx(react.Combobox.Option, {
+ value: result_0,
"data-cy": "doc-explorer-option",
children: /* @__PURE__ */jsxRuntime.jsx(Type, {
- type: result.type
+ type: result_0.type
})
- }, `type-${i}`)), results.fields.map((result, i) => /* @__PURE__ */jsxRuntime.jsxs(react.Combobox.Option, {
- value: result,
+ }, `type-${i_0}`)), results.fields.map((result_1, i_1) => /* @__PURE__ */jsxRuntime.jsxs(react.Combobox.Option, {
+ value: result_1,
"data-cy": "doc-explorer-option",
children: [/* @__PURE__ */jsxRuntime.jsx(Type, {
- type: result.type
+ type: result_1.type
}), ".", /* @__PURE__ */jsxRuntime.jsx(Field$1, {
- field: result.field,
- argument: result.argument
+ field: result_1.field,
+ argument: result_1.argument
})]
- }, `field-${i}`))]
+ }, `field-${i_1}`))]
})]
});
}
+const _useSearchResults = useSearchResults;
function useSearchResults(caller) {
+ const $ = reactCompilerRuntime.c(9);
+ const t0 = caller || _useSearchResults;
+ let t1;
+ if ($[0] !== t0) {
+ t1 = {
+ nonNull: true,
+ caller: t0
+ };
+ $[0] = t0;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
const {
explorerNavStack
- } = useExplorerContext({
- nonNull: true,
- caller: caller || useSearchResults
- });
+ } = useExplorerContext(t1);
+ const t2 = caller || _useSearchResults;
+ let t3;
+ if ($[2] !== t2) {
+ t3 = {
+ nonNull: true,
+ caller: t2
+ };
+ $[2] = t2;
+ $[3] = t3;
+ } else {
+ t3 = $[3];
+ }
const {
schema
- } = useSchemaContext({
- nonNull: true,
- caller: caller || useSearchResults
- });
- const navItem = explorerNavStack.at(-1);
- return React.useCallback(searchValue => {
- const matches = {
- within: [],
- types: [],
- fields: []
- };
- if (!schema) {
- return matches;
- }
- const withinType = navItem.def;
- const typeMap = schema.getTypeMap();
- let typeNames = Object.keys(typeMap);
- if (withinType) {
- typeNames = typeNames.filter(n => n !== withinType.name);
- typeNames.unshift(withinType.name);
- }
- for (const typeName of typeNames) {
- if (matches.within.length + matches.types.length + matches.fields.length >= 100) {
- break;
+ } = useSchemaContext(t3);
+ let t4;
+ if ($[4] !== explorerNavStack) {
+ t4 = explorerNavStack.at(-1);
+ $[4] = explorerNavStack;
+ $[5] = t4;
+ } else {
+ t4 = $[5];
+ }
+ const navItem = t4;
+ let t5;
+ if ($[6] !== navItem || $[7] !== schema) {
+ t5 = searchValue => {
+ const matches = {
+ within: [],
+ types: [],
+ fields: []
+ };
+ if (!schema) {
+ return matches;
}
- const type = typeMap[typeName];
- if (withinType !== type && isMatch(typeName, searchValue)) {
- matches.types.push({
- type
- });
+ const withinType = navItem.def;
+ const typeMap = schema.getTypeMap();
+ let typeNames = Object.keys(typeMap);
+ if (withinType) {
+ typeNames = typeNames.filter(n => n !== withinType.name);
+ typeNames.unshift(withinType.name);
}
- if (!graphql.isObjectType(type) && !graphql.isInterfaceType(type) && !graphql.isInputObjectType(type)) {
- continue;
- }
- const fields = type.getFields();
- for (const fieldName in fields) {
- const field = fields[fieldName];
- let matchingArgs;
- if (!isMatch(fieldName, searchValue)) {
- if ("args" in field) {
- matchingArgs = field.args.filter(arg => isMatch(arg.name, searchValue));
- if (matchingArgs.length === 0) {
+ for (const typeName of typeNames) {
+ if (matches.within.length + matches.types.length + matches.fields.length >= 100) {
+ break;
+ }
+ const type = typeMap[typeName];
+ if (withinType !== type && isMatch(typeName, searchValue)) {
+ matches.types.push({
+ type
+ });
+ }
+ if (!graphql.isObjectType(type) && !graphql.isInterfaceType(type) && !graphql.isInputObjectType(type)) {
+ continue;
+ }
+ const fields = type.getFields();
+ for (const fieldName in fields) {
+ const field = fields[fieldName];
+ let matchingArgs;
+ if (!isMatch(fieldName, searchValue)) {
+ if ("args" in field) {
+ matchingArgs = field.args.filter(arg => isMatch(arg.name, searchValue));
+ if (matchingArgs.length === 0) {
+ continue;
+ }
+ } else {
continue;
}
- } else {
- continue;
}
+ matches[withinType === type ? "within" : "fields"].push(...(matchingArgs ? matchingArgs.map(argument => ({
+ type,
+ field,
+ argument
+ })) : [{
+ type,
+ field
+ }]));
}
- matches[withinType === type ? "within" : "fields"].push(...(matchingArgs ? matchingArgs.map(argument => ({
- type,
- field,
- argument
- })) : [{
- type,
- field
- }]));
}
- }
- return matches;
- }, [navItem.def, schema]);
+ return matches;
+ };
+ $[6] = navItem;
+ $[7] = schema;
+ $[8] = t5;
+ } else {
+ t5 = $[8];
+ }
+ return t5;
}
function isMatch(sourceText, searchValue) {
try {
@@ -71660,307 +78790,804 @@ function isMatch(sourceText, searchValue) {
}
}
function Type(props) {
- return /* @__PURE__ */jsxRuntime.jsx("span", {
- className: "graphiql-doc-explorer-search-type",
- children: props.type.name
- });
+ const $ = reactCompilerRuntime.c(2);
+ let t0;
+ if ($[0] !== props.type.name) {
+ t0 = /* @__PURE__ */jsxRuntime.jsx("span", {
+ className: "graphiql-doc-explorer-search-type",
+ children: props.type.name
+ });
+ $[0] = props.type.name;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ return t0;
}
-function Field$1({
- field,
- argument
-}) {
- return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
- children: [/* @__PURE__ */jsxRuntime.jsx("span", {
+function Field$1(t0) {
+ const $ = reactCompilerRuntime.c(7);
+ const {
+ field,
+ argument
+ } = t0;
+ let t1;
+ if ($[0] !== field.name) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx("span", {
className: "graphiql-doc-explorer-search-field",
children: field.name
- }), argument ? /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ });
+ $[0] = field.name;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ let t2;
+ if ($[2] !== argument) {
+ t2 = argument ? /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
children: ["(", /* @__PURE__ */jsxRuntime.jsx("span", {
className: "graphiql-doc-explorer-search-argument",
children: argument.name
- }), ":", " ", renderType(argument.type, namedType => /* @__PURE__ */jsxRuntime.jsx(Type, {
- type: namedType
- })), ")"]
- }) : null]
+ }), ":", " ", renderType(argument.type, _temp$4), ")"]
+ }) : null;
+ $[2] = argument;
+ $[3] = t2;
+ } else {
+ t2 = $[3];
+ }
+ let t3;
+ if ($[4] !== t1 || $[5] !== t2) {
+ t3 = /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ children: [t1, t2]
+ });
+ $[4] = t1;
+ $[5] = t2;
+ $[6] = t3;
+ } else {
+ t3 = $[6];
+ }
+ return t3;
+}
+function _temp$4(namedType) {
+ return /* @__PURE__ */jsxRuntime.jsx(Type, {
+ type: namedType
});
}
function FieldLink(props) {
+ const $ = reactCompilerRuntime.c(7);
+ let t0;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t0 = {
+ nonNull: true
+ };
+ $[0] = t0;
+ } else {
+ t0 = $[0];
+ }
const {
push
- } = useExplorerContext({
- nonNull: true
- });
- return /* @__PURE__ */jsxRuntime.jsx("a", {
- className: "graphiql-doc-explorer-field-name",
- onClick: event => {
+ } = useExplorerContext(t0);
+ let t1;
+ if ($[1] !== props.field || $[2] !== push) {
+ t1 = event => {
event.preventDefault();
push({
name: props.field.name,
def: props.field
});
- },
- href: "#",
- children: props.field.name
- });
+ };
+ $[1] = props.field;
+ $[2] = push;
+ $[3] = t1;
+ } else {
+ t1 = $[3];
+ }
+ let t2;
+ if ($[4] !== props.field.name || $[5] !== t1) {
+ t2 = /* @__PURE__ */jsxRuntime.jsx("a", {
+ className: "graphiql-doc-explorer-field-name",
+ onClick: t1,
+ href: "#",
+ children: props.field.name
+ });
+ $[4] = props.field.name;
+ $[5] = t1;
+ $[6] = t2;
+ } else {
+ t2 = $[6];
+ }
+ return t2;
}
function TypeDocumentation(props) {
- return graphql.isNamedType(props.type) ? /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
- children: [props.type.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
- type: "description",
- children: props.type.description
- }) : null, /* @__PURE__ */jsxRuntime.jsx(ImplementsInterfaces, {
- type: props.type
- }), /* @__PURE__ */jsxRuntime.jsx(Fields, {
- type: props.type
- }), /* @__PURE__ */jsxRuntime.jsx(EnumValues, {
- type: props.type
- }), /* @__PURE__ */jsxRuntime.jsx(PossibleTypes, {
- type: props.type
- })]
- }) : null;
+ const $ = reactCompilerRuntime.c(2);
+ let t0;
+ if ($[0] !== props.type) {
+ t0 = graphql.isNamedType(props.type) ? /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ children: [props.type.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
+ type: "description",
+ children: props.type.description
+ }) : null, /* @__PURE__ */jsxRuntime.jsx(ImplementsInterfaces, {
+ type: props.type
+ }), /* @__PURE__ */jsxRuntime.jsx(Fields, {
+ type: props.type
+ }), /* @__PURE__ */jsxRuntime.jsx(EnumValues, {
+ type: props.type
+ }), /* @__PURE__ */jsxRuntime.jsx(PossibleTypes, {
+ type: props.type
+ })]
+ }) : null;
+ $[0] = props.type;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ return t0;
}
-function ImplementsInterfaces({
- type
-}) {
+function ImplementsInterfaces(t0) {
+ const $ = reactCompilerRuntime.c(5);
+ const {
+ type
+ } = t0;
if (!graphql.isObjectType(type)) {
return null;
}
- const interfaces = type.getInterfaces();
- return interfaces.length > 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
- title: "Implements",
- children: type.getInterfaces().map(implementedInterface => /* @__PURE__ */jsxRuntime.jsx("div", {
- children: /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
- type: implementedInterface
- })
- }, implementedInterface.name))
- }) : null;
+ let t1;
+ if ($[0] !== type) {
+ t1 = type.getInterfaces();
+ $[0] = type;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const interfaces = t1;
+ let t2;
+ if ($[2] !== interfaces.length || $[3] !== type) {
+ t2 = interfaces.length > 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ title: "Implements",
+ children: type.getInterfaces().map(_temp$3)
+ }) : null;
+ $[2] = interfaces.length;
+ $[3] = type;
+ $[4] = t2;
+ } else {
+ t2 = $[4];
+ }
+ return t2;
}
-function Fields({
- type
-}) {
+function _temp$3(implementedInterface) {
+ return /* @__PURE__ */jsxRuntime.jsx("div", {
+ children: /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
+ type: implementedInterface
+ })
+ }, implementedInterface.name);
+}
+function Fields(t0) {
+ const $ = reactCompilerRuntime.c(12);
+ const {
+ type
+ } = t0;
const [showDeprecated, setShowDeprecated] = React.useState(false);
- const handleShowDeprecated = React.useCallback(() => {
- setShowDeprecated(true);
- }, []);
+ let t1;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = () => {
+ setShowDeprecated(true);
+ };
+ $[0] = t1;
+ } else {
+ t1 = $[0];
+ }
+ const handleShowDeprecated = t1;
if (!graphql.isObjectType(type) && !graphql.isInterfaceType(type) && !graphql.isInputObjectType(type)) {
return null;
}
- const fieldMap = type.getFields();
- const fields = [];
- const deprecatedFields = [];
- for (const field of Object.keys(fieldMap).map(name => fieldMap[name])) {
- if (field.deprecationReason) {
- deprecatedFields.push(field);
- } else {
- fields.push(field);
+ let deprecatedFields;
+ let fields;
+ let t2;
+ if ($[1] !== type) {
+ const fieldMap = type.getFields();
+ fields = [];
+ deprecatedFields = [];
+ for (const field of Object.keys(fieldMap).map(name => fieldMap[name])) {
+ if (field.deprecationReason) {
+ deprecatedFields.push(field);
+ } else {
+ fields.push(field);
+ }
}
- }
- return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
- children: [fields.length > 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ t2 = fields.length > 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
title: "Fields",
- children: fields.map(field => /* @__PURE__ */jsxRuntime.jsx(Field, {
- field
- }, field.name))
- }) : null, deprecatedFields.length > 0 ? showDeprecated || fields.length === 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ children: fields.map(_temp2$1)
+ }) : null;
+ $[1] = type;
+ $[2] = deprecatedFields;
+ $[3] = fields;
+ $[4] = t2;
+ } else {
+ deprecatedFields = $[2];
+ fields = $[3];
+ t2 = $[4];
+ }
+ let t3;
+ if ($[5] !== deprecatedFields || $[6] !== fields.length || $[7] !== showDeprecated) {
+ t3 = deprecatedFields.length > 0 ? showDeprecated || fields.length === 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
title: "Deprecated Fields",
- children: deprecatedFields.map(field => /* @__PURE__ */jsxRuntime.jsx(Field, {
- field
- }, field.name))
+ children: deprecatedFields.map(_temp3$1)
}) : /* @__PURE__ */jsxRuntime.jsx(Button$1, {
type: "button",
onClick: handleShowDeprecated,
children: "Show Deprecated Fields"
- }) : null]
- });
+ }) : null;
+ $[5] = deprecatedFields;
+ $[6] = fields.length;
+ $[7] = showDeprecated;
+ $[8] = t3;
+ } else {
+ t3 = $[8];
+ }
+ let t4;
+ if ($[9] !== t2 || $[10] !== t3) {
+ t4 = /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ children: [t2, t3]
+ });
+ $[9] = t2;
+ $[10] = t3;
+ $[11] = t4;
+ } else {
+ t4 = $[11];
+ }
+ return t4;
}
-function Field({
- field
-}) {
- const args = "args" in field ? field.args.filter(arg => !arg.deprecationReason) : [];
- return /* @__PURE__ */jsxRuntime.jsxs("div", {
- className: "graphiql-doc-explorer-item",
- children: [/* @__PURE__ */jsxRuntime.jsxs("div", {
- children: [/* @__PURE__ */jsxRuntime.jsx(FieldLink, {
- field
- }), args.length > 0 ? /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
- children: ["(", /* @__PURE__ */jsxRuntime.jsx("span", {
- children: args.map(arg => args.length === 1 ? /* @__PURE__ */jsxRuntime.jsx(Argument, {
- arg,
+function _temp3$1(field_1) {
+ return /* @__PURE__ */jsxRuntime.jsx(Field, {
+ field: field_1
+ }, field_1.name);
+}
+function _temp2$1(field_0) {
+ return /* @__PURE__ */jsxRuntime.jsx(Field, {
+ field: field_0
+ }, field_0.name);
+}
+function Field(t0) {
+ const $ = reactCompilerRuntime.c(22);
+ const {
+ field
+ } = t0;
+ let t1;
+ let t2;
+ let t3;
+ if ($[0] !== field) {
+ const args = "args" in field ? field.args.filter(_temp4$1) : [];
+ t3 = "graphiql-doc-explorer-item";
+ t1 = /* @__PURE__ */jsxRuntime.jsx(FieldLink, {
+ field
+ });
+ t2 = args.length > 0 ? /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ children: ["(", /* @__PURE__ */jsxRuntime.jsx("span", {
+ children: args.map(arg_0 => args.length === 1 ? /* @__PURE__ */jsxRuntime.jsx(Argument, {
+ arg: arg_0,
+ inline: true
+ }, arg_0.name) : /* @__PURE__ */jsxRuntime.jsx("div", {
+ className: "graphiql-doc-explorer-argument-multiple",
+ children: /* @__PURE__ */jsxRuntime.jsx(Argument, {
+ arg: arg_0,
inline: true
- }, arg.name) : /* @__PURE__ */jsxRuntime.jsx("div", {
- className: "graphiql-doc-explorer-argument-multiple",
- children: /* @__PURE__ */jsxRuntime.jsx(Argument, {
- arg,
- inline: true
- })
- }, arg.name))
- }), ")"]
- }) : null, ": ", /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
- type: field.type
- }), /* @__PURE__ */jsxRuntime.jsx(DefaultValue, {
- field
- })]
- }), field.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
+ })
+ }, arg_0.name))
+ }), ")"]
+ }) : null;
+ $[0] = field;
+ $[1] = t1;
+ $[2] = t2;
+ $[3] = t3;
+ } else {
+ t1 = $[1];
+ t2 = $[2];
+ t3 = $[3];
+ }
+ let t4;
+ if ($[4] !== field.type) {
+ t4 = /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
+ type: field.type
+ });
+ $[4] = field.type;
+ $[5] = t4;
+ } else {
+ t4 = $[5];
+ }
+ let t5;
+ if ($[6] !== field) {
+ t5 = /* @__PURE__ */jsxRuntime.jsx(DefaultValue, {
+ field
+ });
+ $[6] = field;
+ $[7] = t5;
+ } else {
+ t5 = $[7];
+ }
+ let t6;
+ if ($[8] !== t1 || $[9] !== t2 || $[10] !== t4 || $[11] !== t5) {
+ t6 = /* @__PURE__ */jsxRuntime.jsxs("div", {
+ children: [t1, t2, ": ", t4, t5]
+ });
+ $[8] = t1;
+ $[9] = t2;
+ $[10] = t4;
+ $[11] = t5;
+ $[12] = t6;
+ } else {
+ t6 = $[12];
+ }
+ let t7;
+ if ($[13] !== field.description) {
+ t7 = field.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
type: "description",
onlyShowFirstChild: true,
children: field.description
- }) : null, /* @__PURE__ */jsxRuntime.jsx(DeprecationReason, {
+ }) : null;
+ $[13] = field.description;
+ $[14] = t7;
+ } else {
+ t7 = $[14];
+ }
+ let t8;
+ if ($[15] !== field.deprecationReason) {
+ t8 = /* @__PURE__ */jsxRuntime.jsx(DeprecationReason, {
children: field.deprecationReason
- })]
- });
+ });
+ $[15] = field.deprecationReason;
+ $[16] = t8;
+ } else {
+ t8 = $[16];
+ }
+ let t9;
+ if ($[17] !== t3 || $[18] !== t6 || $[19] !== t7 || $[20] !== t8) {
+ t9 = /* @__PURE__ */jsxRuntime.jsxs("div", {
+ className: t3,
+ children: [t6, t7, t8]
+ });
+ $[17] = t3;
+ $[18] = t6;
+ $[19] = t7;
+ $[20] = t8;
+ $[21] = t9;
+ } else {
+ t9 = $[21];
+ }
+ return t9;
}
-function EnumValues({
- type
-}) {
+function _temp4$1(arg) {
+ return !arg.deprecationReason;
+}
+function EnumValues(t0) {
+ const $ = reactCompilerRuntime.c(12);
+ const {
+ type
+ } = t0;
const [showDeprecated, setShowDeprecated] = React.useState(false);
- const handleShowDeprecated = React.useCallback(() => {
- setShowDeprecated(true);
- }, []);
+ let t1;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = () => {
+ setShowDeprecated(true);
+ };
+ $[0] = t1;
+ } else {
+ t1 = $[0];
+ }
+ const handleShowDeprecated = t1;
if (!graphql.isEnumType(type)) {
return null;
}
- const values = [];
- const deprecatedValues = [];
- for (const value of type.getValues()) {
- if (value.deprecationReason) {
- deprecatedValues.push(value);
- } else {
- values.push(value);
+ let deprecatedValues;
+ let t2;
+ let values;
+ if ($[1] !== type) {
+ values = [];
+ deprecatedValues = [];
+ for (const value of type.getValues()) {
+ if (value.deprecationReason) {
+ deprecatedValues.push(value);
+ } else {
+ values.push(value);
+ }
}
- }
- return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
- children: [values.length > 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ t2 = values.length > 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
title: "Enum Values",
- children: values.map(value => /* @__PURE__ */jsxRuntime.jsx(EnumValue, {
- value
- }, value.name))
- }) : null, deprecatedValues.length > 0 ? showDeprecated || values.length === 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ children: values.map(_temp5)
+ }) : null;
+ $[1] = type;
+ $[2] = deprecatedValues;
+ $[3] = t2;
+ $[4] = values;
+ } else {
+ deprecatedValues = $[2];
+ t2 = $[3];
+ values = $[4];
+ }
+ let t3;
+ if ($[5] !== deprecatedValues || $[6] !== showDeprecated || $[7] !== values.length) {
+ t3 = deprecatedValues.length > 0 ? showDeprecated || values.length === 0 ? /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
title: "Deprecated Enum Values",
- children: deprecatedValues.map(value => /* @__PURE__ */jsxRuntime.jsx(EnumValue, {
- value
- }, value.name))
+ children: deprecatedValues.map(_temp6)
}) : /* @__PURE__ */jsxRuntime.jsx(Button$1, {
type: "button",
onClick: handleShowDeprecated,
children: "Show Deprecated Values"
- }) : null]
- });
+ }) : null;
+ $[5] = deprecatedValues;
+ $[6] = showDeprecated;
+ $[7] = values.length;
+ $[8] = t3;
+ } else {
+ t3 = $[8];
+ }
+ let t4;
+ if ($[9] !== t2 || $[10] !== t3) {
+ t4 = /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
+ children: [t2, t3]
+ });
+ $[9] = t2;
+ $[10] = t3;
+ $[11] = t4;
+ } else {
+ t4 = $[11];
+ }
+ return t4;
}
-function EnumValue({
- value
-}) {
- return /* @__PURE__ */jsxRuntime.jsxs("div", {
- className: "graphiql-doc-explorer-item",
- children: [/* @__PURE__ */jsxRuntime.jsx("div", {
+function _temp6(value_1) {
+ return /* @__PURE__ */jsxRuntime.jsx(EnumValue, {
+ value: value_1
+ }, value_1.name);
+}
+function _temp5(value_0) {
+ return /* @__PURE__ */jsxRuntime.jsx(EnumValue, {
+ value: value_0
+ }, value_0.name);
+}
+function EnumValue(t0) {
+ const $ = reactCompilerRuntime.c(10);
+ const {
+ value
+ } = t0;
+ let t1;
+ if ($[0] !== value.name) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx("div", {
className: "graphiql-doc-explorer-enum-value",
children: value.name
- }), value.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
+ });
+ $[0] = value.name;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ let t2;
+ if ($[2] !== value.description) {
+ t2 = value.description ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
type: "description",
children: value.description
- }) : null, value.deprecationReason ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
+ }) : null;
+ $[2] = value.description;
+ $[3] = t2;
+ } else {
+ t2 = $[3];
+ }
+ let t3;
+ if ($[4] !== value.deprecationReason) {
+ t3 = value.deprecationReason ? /* @__PURE__ */jsxRuntime.jsx(MarkdownContent, {
type: "deprecation",
children: value.deprecationReason
- }) : null]
- });
+ }) : null;
+ $[4] = value.deprecationReason;
+ $[5] = t3;
+ } else {
+ t3 = $[5];
+ }
+ let t4;
+ if ($[6] !== t1 || $[7] !== t2 || $[8] !== t3) {
+ t4 = /* @__PURE__ */jsxRuntime.jsxs("div", {
+ className: "graphiql-doc-explorer-item",
+ children: [t1, t2, t3]
+ });
+ $[6] = t1;
+ $[7] = t2;
+ $[8] = t3;
+ $[9] = t4;
+ } else {
+ t4 = $[9];
+ }
+ return t4;
}
-function PossibleTypes({
- type
-}) {
+function PossibleTypes(t0) {
+ const $ = reactCompilerRuntime.c(7);
+ const {
+ type
+ } = t0;
+ let t1;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = {
+ nonNull: true
+ };
+ $[0] = t1;
+ } else {
+ t1 = $[0];
+ }
const {
schema
- } = useSchemaContext({
- nonNull: true
- });
+ } = useSchemaContext(t1);
if (!schema || !graphql.isAbstractType(type)) {
return null;
}
- return /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
- title: graphql.isInterfaceType(type) ? "Implementations" : "Possible Types",
- children: schema.getPossibleTypes(type).map(possibleType => /* @__PURE__ */jsxRuntime.jsx("div", {
- children: /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
- type: possibleType
- })
- }, possibleType.name))
- });
+ const t2 = graphql.isInterfaceType(type) ? "Implementations" : "Possible Types";
+ let t3;
+ if ($[1] !== schema || $[2] !== type) {
+ t3 = schema.getPossibleTypes(type).map(_temp7);
+ $[1] = schema;
+ $[2] = type;
+ $[3] = t3;
+ } else {
+ t3 = $[3];
+ }
+ let t4;
+ if ($[4] !== t2 || $[5] !== t3) {
+ t4 = /* @__PURE__ */jsxRuntime.jsx(ExplorerSection, {
+ title: t2,
+ children: t3
+ });
+ $[4] = t2;
+ $[5] = t3;
+ $[6] = t4;
+ } else {
+ t4 = $[6];
+ }
+ return t4;
+}
+function _temp7(possibleType) {
+ return /* @__PURE__ */jsxRuntime.jsx("div", {
+ children: /* @__PURE__ */jsxRuntime.jsx(TypeLink, {
+ type: possibleType
+ })
+ }, possibleType.name);
}
function DocExplorer() {
+ const $ = reactCompilerRuntime.c(40);
+ let t0;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t0 = {
+ nonNull: true,
+ caller: DocExplorer
+ };
+ $[0] = t0;
+ } else {
+ t0 = $[0];
+ }
const {
fetchError,
isFetching,
schema,
validationErrors
- } = useSchemaContext({
- nonNull: true,
- caller: DocExplorer
- });
+ } = useSchemaContext(t0);
+ let t1;
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = {
+ nonNull: true,
+ caller: DocExplorer
+ };
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
const {
explorerNavStack,
pop
- } = useExplorerContext({
- nonNull: true,
- caller: DocExplorer
- });
- const navItem = explorerNavStack.at(-1);
- let content = null;
- if (fetchError) {
- content = /* @__PURE__ */jsxRuntime.jsx("div", {
- className: "graphiql-doc-explorer-error",
- children: "Error fetching schema"
- });
- } else if (validationErrors.length > 0) {
- content = /* @__PURE__ */jsxRuntime.jsxs("div", {
- className: "graphiql-doc-explorer-error",
- children: ["Schema is invalid: ", validationErrors[0].message]
- });
- } else if (isFetching) {
- content = /* @__PURE__ */jsxRuntime.jsx(Spinner, {});
- } else if (!schema) {
- content = /* @__PURE__ */jsxRuntime.jsx("div", {
- className: "graphiql-doc-explorer-error",
- children: "No GraphQL schema available"
- });
- } else if (explorerNavStack.length === 1) {
- content = /* @__PURE__ */jsxRuntime.jsx(SchemaDocumentation, {
- schema
- });
- } else if (graphql.isType(navItem.def)) {
- content = /* @__PURE__ */jsxRuntime.jsx(TypeDocumentation, {
- type: navItem.def
- });
- } else if (navItem.def) {
- content = /* @__PURE__ */jsxRuntime.jsx(FieldDocumentation, {
- field: navItem.def
- });
+ } = useExplorerContext(t1);
+ let content;
+ let navItem;
+ if ($[2] !== explorerNavStack || $[3] !== fetchError || $[4] !== isFetching || $[5] !== schema || $[6] !== validationErrors) {
+ navItem = explorerNavStack.at(-1);
+ content = null;
+ if (fetchError) {
+ let t22;
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
+ t22 = /* @__PURE__ */jsxRuntime.jsx("div", {
+ className: "graphiql-doc-explorer-error",
+ children: "Error fetching schema"
+ });
+ $[9] = t22;
+ } else {
+ t22 = $[9];
+ }
+ content = t22;
+ } else {
+ if (validationErrors.length > 0) {
+ const t22 = validationErrors[0];
+ let t32;
+ if ($[10] !== t22.message) {
+ t32 = /* @__PURE__ */jsxRuntime.jsxs("div", {
+ className: "graphiql-doc-explorer-error",
+ children: ["Schema is invalid: ", t22.message]
+ });
+ $[10] = t22.message;
+ $[11] = t32;
+ } else {
+ t32 = $[11];
+ }
+ content = t32;
+ } else {
+ if (isFetching) {
+ let t22;
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
+ t22 = /* @__PURE__ */jsxRuntime.jsx(Spinner, {});
+ $[12] = t22;
+ } else {
+ t22 = $[12];
+ }
+ content = t22;
+ } else {
+ if (!schema) {
+ let t22;
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
+ t22 = /* @__PURE__ */jsxRuntime.jsx("div", {
+ className: "graphiql-doc-explorer-error",
+ children: "No GraphQL schema available"
+ });
+ $[13] = t22;
+ } else {
+ t22 = $[13];
+ }
+ content = t22;
+ } else {
+ if (explorerNavStack.length === 1) {
+ let t22;
+ if ($[14] !== schema) {
+ t22 = /* @__PURE__ */jsxRuntime.jsx(SchemaDocumentation, {
+ schema
+ });
+ $[14] = schema;
+ $[15] = t22;
+ } else {
+ t22 = $[15];
+ }
+ content = t22;
+ } else {
+ if (graphql.isType(navItem.def)) {
+ let t22;
+ if ($[16] !== navItem.def) {
+ t22 = /* @__PURE__ */jsxRuntime.jsx(TypeDocumentation, {
+ type: navItem.def
+ });
+ $[16] = navItem.def;
+ $[17] = t22;
+ } else {
+ t22 = $[17];
+ }
+ content = t22;
+ } else {
+ if (navItem.def) {
+ let t22;
+ if ($[18] !== navItem.def) {
+ t22 = /* @__PURE__ */jsxRuntime.jsx(FieldDocumentation, {
+ field: navItem.def
+ });
+ $[18] = navItem.def;
+ $[19] = t22;
+ } else {
+ t22 = $[19];
+ }
+ content = t22;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ $[2] = explorerNavStack;
+ $[3] = fetchError;
+ $[4] = isFetching;
+ $[5] = schema;
+ $[6] = validationErrors;
+ $[7] = content;
+ $[8] = navItem;
+ } else {
+ content = $[7];
+ navItem = $[8];
}
let prevName;
if (explorerNavStack.length > 1) {
- prevName = explorerNavStack.at(-2).name;
+ let t22;
+ if ($[20] !== explorerNavStack) {
+ t22 = explorerNavStack.at(-2);
+ $[20] = explorerNavStack;
+ $[21] = t22;
+ } else {
+ t22 = $[21];
+ }
+ prevName = t22.name;
}
- return /* @__PURE__ */jsxRuntime.jsxs("section", {
- className: "graphiql-doc-explorer",
- "aria-label": "Documentation Explorer",
- children: [/* @__PURE__ */jsxRuntime.jsxs("div", {
+ let t2;
+ if ($[22] !== pop || $[23] !== prevName) {
+ t2 = prevName && /* @__PURE__ */jsxRuntime.jsxs("a", {
+ href: "#",
+ className: "graphiql-doc-explorer-back",
+ onClick: event => {
+ event.preventDefault();
+ pop();
+ },
+ "aria-label": `Go back to ${prevName}`,
+ children: [/* @__PURE__ */jsxRuntime.jsx(ChevronLeftIcon, {}), prevName]
+ });
+ $[22] = pop;
+ $[23] = prevName;
+ $[24] = t2;
+ } else {
+ t2 = $[24];
+ }
+ let t3;
+ if ($[25] !== navItem.name) {
+ t3 = /* @__PURE__ */jsxRuntime.jsx("div", {
+ className: "graphiql-doc-explorer-title",
+ children: navItem.name
+ });
+ $[25] = navItem.name;
+ $[26] = t3;
+ } else {
+ t3 = $[26];
+ }
+ let t4;
+ if ($[27] !== t2 || $[28] !== t3) {
+ t4 = /* @__PURE__ */jsxRuntime.jsxs("div", {
+ className: "graphiql-doc-explorer-header-content",
+ children: [t2, t3]
+ });
+ $[27] = t2;
+ $[28] = t3;
+ $[29] = t4;
+ } else {
+ t4 = $[29];
+ }
+ let t5;
+ if ($[30] !== navItem.name) {
+ t5 = /* @__PURE__ */jsxRuntime.jsx(Search, {}, navItem.name);
+ $[30] = navItem.name;
+ $[31] = t5;
+ } else {
+ t5 = $[31];
+ }
+ let t6;
+ if ($[32] !== t4 || $[33] !== t5) {
+ t6 = /* @__PURE__ */jsxRuntime.jsxs("div", {
className: "graphiql-doc-explorer-header",
- children: [/* @__PURE__ */jsxRuntime.jsxs("div", {
- className: "graphiql-doc-explorer-header-content",
- children: [prevName && /* @__PURE__ */jsxRuntime.jsxs("a", {
- href: "#",
- className: "graphiql-doc-explorer-back",
- onClick: event => {
- event.preventDefault();
- pop();
- },
- "aria-label": `Go back to ${prevName}`,
- children: [/* @__PURE__ */jsxRuntime.jsx(ChevronLeftIcon, {}), prevName]
- }), /* @__PURE__ */jsxRuntime.jsx("div", {
- className: "graphiql-doc-explorer-title",
- children: navItem.name
- })]
- }), /* @__PURE__ */jsxRuntime.jsx(Search, {}, navItem.name)]
- }), /* @__PURE__ */jsxRuntime.jsx("div", {
+ children: [t4, t5]
+ });
+ $[32] = t4;
+ $[33] = t5;
+ $[34] = t6;
+ } else {
+ t6 = $[34];
+ }
+ let t7;
+ if ($[35] !== content) {
+ t7 = /* @__PURE__ */jsxRuntime.jsx("div", {
className: "graphiql-doc-explorer-content",
children: content
- })]
- });
+ });
+ $[35] = content;
+ $[36] = t7;
+ } else {
+ t7 = $[36];
+ }
+ let t8;
+ if ($[37] !== t6 || $[38] !== t7) {
+ t8 = /* @__PURE__ */jsxRuntime.jsxs("section", {
+ className: "graphiql-doc-explorer",
+ "aria-label": "Documentation Explorer",
+ children: [t6, t7]
+ });
+ $[37] = t6;
+ $[38] = t7;
+ $[39] = t8;
+ } else {
+ t8 = $[39];
+ }
+ return t8;
}
const DOC_EXPLORER_PLUGIN = {
title: "Documentation Explorer",
@@ -71977,13 +79604,16 @@ const HISTORY_PLUGIN = {
};
const PluginContext = createNullableContext("PluginContext");
function PluginContextProvider(props) {
+ const $ = reactCompilerRuntime.c(27);
const storage = useStorageContext();
const explorerContext = useExplorerContext();
const historyContext = useHistoryContext();
const hasExplorerContext = Boolean(explorerContext);
const hasHistoryContext = Boolean(historyContext);
- const plugins = React.useMemo(() => {
- const pluginList = [];
+ let t0;
+ let pluginList;
+ if ($[0] !== hasExplorerContext || $[1] !== hasHistoryContext || $[2] !== props.plugins) {
+ pluginList = [];
const pluginTitles = {};
if (hasExplorerContext) {
pluginList.push(DOC_EXPLORER_PLUGIN);
@@ -71993,7 +79623,15 @@ function PluginContextProvider(props) {
pluginList.push(HISTORY_PLUGIN);
pluginTitles[HISTORY_PLUGIN.title] = true;
}
- for (const plugin of props.plugins || []) {
+ let t12;
+ if ($[4] !== props.plugins) {
+ t12 = props.plugins || [];
+ $[4] = props.plugins;
+ $[5] = t12;
+ } else {
+ t12 = $[5];
+ }
+ for (const plugin of t12) {
if (typeof plugin.title !== "string" || !plugin.title) {
throw new Error("All GraphiQL plugins must have a unique title");
}
@@ -72004,50 +79642,114 @@ function PluginContextProvider(props) {
pluginTitles[plugin.title] = true;
}
}
- return pluginList;
- }, [hasExplorerContext, hasHistoryContext, props.plugins]);
- const [visiblePlugin, internalSetVisiblePlugin] = React.useState(() => {
- const storedValue = storage == null ? void 0 : storage.get(STORAGE_KEY$4);
- const pluginForStoredValue = plugins.find(plugin => plugin.title === storedValue);
- if (pluginForStoredValue) {
- return pluginForStoredValue;
- }
- if (storedValue) {
- storage == null ? void 0 : storage.set(STORAGE_KEY$4, "");
- }
- if (!props.visiblePlugin) {
- return null;
- }
- return plugins.find(plugin => (typeof props.visiblePlugin === "string" ? plugin.title : plugin) === props.visiblePlugin) || null;
- });
+ $[0] = hasExplorerContext;
+ $[1] = hasHistoryContext;
+ $[2] = props.plugins;
+ $[3] = pluginList;
+ } else {
+ pluginList = $[3];
+ }
+ t0 = pluginList;
+ const plugins = t0;
+ let t1;
+ if ($[6] !== plugins || $[7] !== props.visiblePlugin || $[8] !== storage) {
+ t1 = () => {
+ const storedValue = storage == null ? void 0 : storage.get(STORAGE_KEY$4);
+ const pluginForStoredValue = plugins.find(plugin_0 => plugin_0.title === storedValue);
+ if (pluginForStoredValue) {
+ return pluginForStoredValue;
+ }
+ if (storedValue) {
+ storage == null ? void 0 : storage.set(STORAGE_KEY$4, "");
+ }
+ if (!props.visiblePlugin) {
+ return null;
+ }
+ return plugins.find(plugin_1 => (typeof props.visiblePlugin === "string" ? plugin_1.title : plugin_1) === props.visiblePlugin) || null;
+ };
+ $[6] = plugins;
+ $[7] = props.visiblePlugin;
+ $[8] = storage;
+ $[9] = t1;
+ } else {
+ t1 = $[9];
+ }
+ const [visiblePlugin, internalSetVisiblePlugin] = React.useState(t1);
const {
onTogglePluginVisibility,
children
} = props;
- const setVisiblePlugin = React.useCallback(plugin => {
- const newVisiblePlugin = plugin ? plugins.find(p => (typeof plugin === "string" ? p.title : p) === plugin) || null : null;
- internalSetVisiblePlugin(current => {
- if (newVisiblePlugin === current) {
- return current;
+ let t2;
+ if ($[10] !== onTogglePluginVisibility || $[11] !== plugins) {
+ t2 = plugin_2 => {
+ const newVisiblePlugin = plugin_2 ? plugins.find(p => (typeof plugin_2 === "string" ? p.title : p) === plugin_2) || null : null;
+ internalSetVisiblePlugin(current => {
+ if (newVisiblePlugin === current) {
+ return current;
+ }
+ onTogglePluginVisibility == null ? void 0 : onTogglePluginVisibility(newVisiblePlugin);
+ return newVisiblePlugin;
+ });
+ };
+ $[10] = onTogglePluginVisibility;
+ $[11] = plugins;
+ $[12] = t2;
+ } else {
+ t2 = $[12];
+ }
+ const setVisiblePlugin = t2;
+ let t3;
+ if ($[13] !== props.visiblePlugin || $[14] !== setVisiblePlugin) {
+ t3 = () => {
+ if (props.visiblePlugin) {
+ setVisiblePlugin(props.visiblePlugin);
}
- onTogglePluginVisibility == null ? void 0 : onTogglePluginVisibility(newVisiblePlugin);
- return newVisiblePlugin;
+ };
+ $[13] = props.visiblePlugin;
+ $[14] = setVisiblePlugin;
+ $[15] = t3;
+ } else {
+ t3 = $[15];
+ }
+ let t4;
+ if ($[16] !== plugins || $[17] !== props.visiblePlugin || $[18] !== setVisiblePlugin) {
+ t4 = [plugins, props.visiblePlugin, setVisiblePlugin];
+ $[16] = plugins;
+ $[17] = props.visiblePlugin;
+ $[18] = setVisiblePlugin;
+ $[19] = t4;
+ } else {
+ t4 = $[19];
+ }
+ React.useEffect(t3, t4);
+ let t5;
+ if ($[20] !== plugins || $[21] !== setVisiblePlugin || $[22] !== visiblePlugin) {
+ t5 = {
+ plugins,
+ setVisiblePlugin,
+ visiblePlugin
+ };
+ $[20] = plugins;
+ $[21] = setVisiblePlugin;
+ $[22] = visiblePlugin;
+ $[23] = t5;
+ } else {
+ t5 = $[23];
+ }
+ const value = t5;
+ let t6;
+ if ($[24] !== children || $[25] !== value) {
+ t6 = /* @__PURE__ */jsxRuntime.jsx(PluginContext.Provider, {
+ value,
+ children
});
- }, [onTogglePluginVisibility, plugins]);
- React.useEffect(() => {
- if (props.visiblePlugin) {
- setVisiblePlugin(props.visiblePlugin);
- }
- }, [plugins, props.visiblePlugin, setVisiblePlugin]);
- const value = React.useMemo(() => ({
- plugins,
- setVisiblePlugin,
- visiblePlugin
- }), [plugins, setVisiblePlugin, visiblePlugin]);
- return /* @__PURE__ */jsxRuntime.jsx(PluginContext.Provider, {
- value,
- children
- });
+ $[24] = children;
+ $[25] = value;
+ $[26] = t6;
+ } else {
+ t6 = $[26];
+ }
+ return t6;
}
const usePluginContext = createContextHook(PluginContext);
const STORAGE_KEY$4 = "visiblePlugin";
@@ -72199,244 +79901,476 @@ function onHasCompletion(_cm, data, schema, explorer, plugin, callback) {
}
}
function useSynchronizeValue(editor, value) {
- React.useEffect(() => {
- if (editor && typeof value === "string" && value !== editor.getValue()) {
- editor.setValue(value);
- }
- }, [editor, value]);
+ const $ = reactCompilerRuntime.c(4);
+ let t0;
+ let t1;
+ if ($[0] !== editor || $[1] !== value) {
+ t0 = () => {
+ if (editor && typeof value === "string" && value !== editor.getValue()) {
+ editor.setValue(value);
+ }
+ };
+ t1 = [editor, value];
+ $[0] = editor;
+ $[1] = value;
+ $[2] = t0;
+ $[3] = t1;
+ } else {
+ t0 = $[2];
+ t1 = $[3];
+ }
+ React.useEffect(t0, t1);
}
function useSynchronizeOption(editor, option, value) {
- React.useEffect(() => {
- if (editor) {
- editor.setOption(option, value);
- }
- }, [editor, option, value]);
+ const $ = reactCompilerRuntime.c(5);
+ let t0;
+ let t1;
+ if ($[0] !== editor || $[1] !== option || $[2] !== value) {
+ t0 = () => {
+ if (editor) {
+ editor.setOption(option, value);
+ }
+ };
+ t1 = [editor, option, value];
+ $[0] = editor;
+ $[1] = option;
+ $[2] = value;
+ $[3] = t0;
+ $[4] = t1;
+ } else {
+ t0 = $[3];
+ t1 = $[4];
+ }
+ React.useEffect(t0, t1);
}
function useChangeHandler(editor, callback, storageKey, tabProperty, caller) {
+ const $ = reactCompilerRuntime.c(10);
+ let t0;
+ if ($[0] !== caller) {
+ t0 = {
+ nonNull: true,
+ caller
+ };
+ $[0] = caller;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
const {
updateActiveTabValues
- } = useEditorContext({
- nonNull: true,
- caller
- });
+ } = useEditorContext(t0);
const storage = useStorageContext();
- React.useEffect(() => {
- if (!editor) {
- return;
- }
- const store = debounce(500, value => {
- if (!storage || storageKey === null) {
+ let t1;
+ let t2;
+ if ($[2] !== callback || $[3] !== editor || $[4] !== storage || $[5] !== storageKey || $[6] !== tabProperty || $[7] !== updateActiveTabValues) {
+ t1 = () => {
+ if (!editor) {
return;
}
- storage.set(storageKey, value);
- });
- const updateTab = debounce(100, value => {
- updateActiveTabValues({
- [tabProperty]: value
+ const store = debounce(500, value => {
+ if (!storage || storageKey === null) {
+ return;
+ }
+ storage.set(storageKey, value);
});
- });
- const handleChange = (editorInstance, changeObj) => {
- if (!changeObj) {
- return;
- }
- const newValue = editorInstance.getValue();
- store(newValue);
- updateTab(newValue);
- callback == null ? void 0 : callback(newValue);
- };
- editor.on("change", handleChange);
- return () => editor.off("change", handleChange);
- }, [callback, editor, storage, storageKey, tabProperty, updateActiveTabValues]);
-}
-function useCompletion(editor, callback, caller) {
- const {
- schema
- } = useSchemaContext({
- nonNull: true,
- caller
- });
- const explorer = useExplorerContext();
- const plugin = usePluginContext();
- React.useEffect(() => {
- if (!editor) {
- return;
- }
- const handleCompletion = (instance, changeObj) => {
- onHasCompletion(instance, changeObj, schema, explorer, plugin, type => {
- callback == null ? void 0 : callback({
- kind: "Type",
- type,
- schema: schema || void 0
+ const updateTab = debounce(100, value_0 => {
+ updateActiveTabValues({
+ [tabProperty]: value_0
});
});
+ const handleChange = (editorInstance, changeObj) => {
+ if (!changeObj) {
+ return;
+ }
+ const newValue = editorInstance.getValue();
+ store(newValue);
+ updateTab(newValue);
+ callback == null ? void 0 : callback(newValue);
+ };
+ editor.on("change", handleChange);
+ return () => editor.off("change", handleChange);
};
- editor.on(
- // @ts-expect-error @TODO additional args for hasCompletion event
- "hasCompletion", handleCompletion);
- return () => editor.off(
- // @ts-expect-error @TODO additional args for hasCompletion event
- "hasCompletion", handleCompletion);
- }, [callback, editor, explorer, plugin, schema]);
+ t2 = [callback, editor, storage, storageKey, tabProperty, updateActiveTabValues];
+ $[2] = callback;
+ $[3] = editor;
+ $[4] = storage;
+ $[5] = storageKey;
+ $[6] = tabProperty;
+ $[7] = updateActiveTabValues;
+ $[8] = t1;
+ $[9] = t2;
+ } else {
+ t1 = $[8];
+ t2 = $[9];
+ }
+ React.useEffect(t1, t2);
}
-function useKeyMap(editor, keys, callback) {
- React.useEffect(() => {
- if (!editor) {
- return;
- }
- for (const key of keys) {
- editor.removeKeyMap(key);
- }
- if (callback) {
- const keyMap = {};
- for (const key of keys) {
- keyMap[key] = () => callback();
- }
- editor.addKeyMap(keyMap);
- }
- }, [editor, keys, callback]);
-}
-function useCopyQuery({
- caller,
- onCopyQuery
-} = {}) {
- const {
- queryEditor
- } = useEditorContext({
- nonNull: true,
- caller: caller || useCopyQuery
- });
- return React.useCallback(() => {
- if (!queryEditor) {
- return;
- }
- const query = queryEditor.getValue();
- copyToClipboard(query);
- onCopyQuery == null ? void 0 : onCopyQuery(query);
- }, [queryEditor, onCopyQuery]);
-}
-function useMergeQuery({
- caller
-} = {}) {
- const {
- queryEditor
- } = useEditorContext({
- nonNull: true,
- caller: caller || useMergeQuery
- });
+function useCompletion(editor, callback, caller) {
+ const $ = reactCompilerRuntime.c(9);
+ let t0;
+ if ($[0] !== caller) {
+ t0 = {
+ nonNull: true,
+ caller
+ };
+ $[0] = caller;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
const {
schema
- } = useSchemaContext({
- nonNull: true,
- caller: useMergeQuery
- });
- return React.useCallback(() => {
- const documentAST = queryEditor == null ? void 0 : queryEditor.documentAST;
- const query = queryEditor == null ? void 0 : queryEditor.getValue();
- if (!documentAST || !query) {
- return;
- }
- queryEditor.setValue(graphql.print(toolkit.mergeAst(documentAST, schema)));
- }, [queryEditor, schema]);
+ } = useSchemaContext(t0);
+ const explorer = useExplorerContext();
+ const plugin = usePluginContext();
+ let t1;
+ let t2;
+ if ($[2] !== callback || $[3] !== editor || $[4] !== explorer || $[5] !== plugin || $[6] !== schema) {
+ t1 = () => {
+ if (!editor) {
+ return;
+ }
+ const handleCompletion = (instance, changeObj) => {
+ onHasCompletion(instance, changeObj, schema, explorer, plugin, type => {
+ callback == null ? void 0 : callback({
+ kind: "Type",
+ type,
+ schema: schema || void 0
+ });
+ });
+ };
+ editor.on("hasCompletion", handleCompletion);
+ return () => editor.off("hasCompletion", handleCompletion);
+ };
+ t2 = [callback, editor, explorer, plugin, schema];
+ $[2] = callback;
+ $[3] = editor;
+ $[4] = explorer;
+ $[5] = plugin;
+ $[6] = schema;
+ $[7] = t1;
+ $[8] = t2;
+ } else {
+ t1 = $[7];
+ t2 = $[8];
+ }
+ React.useEffect(t1, t2);
}
-function usePrettifyEditors({
- caller
-} = {}) {
+function useKeyMap(editor, keys, callback) {
+ const $ = reactCompilerRuntime.c(5);
+ let t0;
+ let t1;
+ if ($[0] !== callback || $[1] !== editor || $[2] !== keys) {
+ t0 = () => {
+ if (!editor) {
+ return;
+ }
+ for (const key of keys) {
+ editor.removeKeyMap(key);
+ }
+ if (callback) {
+ const keyMap = {};
+ for (const key_0 of keys) {
+ keyMap[key_0] = () => callback();
+ }
+ editor.addKeyMap(keyMap);
+ }
+ };
+ t1 = [editor, keys, callback];
+ $[0] = callback;
+ $[1] = editor;
+ $[2] = keys;
+ $[3] = t0;
+ $[4] = t1;
+ } else {
+ t0 = $[3];
+ t1 = $[4];
+ }
+ React.useEffect(t0, t1);
+}
+const _useCopyQuery = useCopyQuery;
+const _useMergeQuery = useMergeQuery;
+const _usePrettifyEditors = usePrettifyEditors;
+const _useAutoCompleteLeafs = useAutoCompleteLeafs;
+function useCopyQuery(t0) {
+ const $ = reactCompilerRuntime.c(7);
+ let t1;
+ if ($[0] !== t0) {
+ t1 = t0 === void 0 ? {} : t0;
+ $[0] = t0;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const {
+ caller,
+ onCopyQuery
+ } = t1;
+ const t2 = caller || _useCopyQuery;
+ let t3;
+ if ($[2] !== t2) {
+ t3 = {
+ nonNull: true,
+ caller: t2
+ };
+ $[2] = t2;
+ $[3] = t3;
+ } else {
+ t3 = $[3];
+ }
+ const {
+ queryEditor
+ } = useEditorContext(t3);
+ let t4;
+ if ($[4] !== onCopyQuery || $[5] !== queryEditor) {
+ t4 = () => {
+ if (!queryEditor) {
+ return;
+ }
+ const query = queryEditor.getValue();
+ copyToClipboard(query);
+ onCopyQuery == null ? void 0 : onCopyQuery(query);
+ };
+ $[4] = onCopyQuery;
+ $[5] = queryEditor;
+ $[6] = t4;
+ } else {
+ t4 = $[6];
+ }
+ return t4;
+}
+function useMergeQuery(t0) {
+ const $ = reactCompilerRuntime.c(8);
+ let t1;
+ if ($[0] !== t0) {
+ t1 = t0 === void 0 ? {} : t0;
+ $[0] = t0;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const {
+ caller
+ } = t1;
+ const t2 = caller || _useMergeQuery;
+ let t3;
+ if ($[2] !== t2) {
+ t3 = {
+ nonNull: true,
+ caller: t2
+ };
+ $[2] = t2;
+ $[3] = t3;
+ } else {
+ t3 = $[3];
+ }
+ const {
+ queryEditor
+ } = useEditorContext(t3);
+ let t4;
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
+ t4 = {
+ nonNull: true,
+ caller: _useMergeQuery
+ };
+ $[4] = t4;
+ } else {
+ t4 = $[4];
+ }
+ const {
+ schema
+ } = useSchemaContext(t4);
+ let t5;
+ if ($[5] !== queryEditor || $[6] !== schema) {
+ t5 = () => {
+ const documentAST = queryEditor == null ? void 0 : queryEditor.documentAST;
+ const query = queryEditor == null ? void 0 : queryEditor.getValue();
+ if (!documentAST || !query) {
+ return;
+ }
+ queryEditor.setValue(graphql.print(toolkit.mergeAst(documentAST, schema)));
+ };
+ $[5] = queryEditor;
+ $[6] = schema;
+ $[7] = t5;
+ } else {
+ t5 = $[7];
+ }
+ return t5;
+}
+function usePrettifyEditors(t0) {
+ const $ = reactCompilerRuntime.c(8);
+ let t1;
+ if ($[0] !== t0) {
+ t1 = t0 === void 0 ? {} : t0;
+ $[0] = t0;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const {
+ caller
+ } = t1;
+ const t2 = caller || _usePrettifyEditors;
+ let t3;
+ if ($[2] !== t2) {
+ t3 = {
+ nonNull: true,
+ caller: t2
+ };
+ $[2] = t2;
+ $[3] = t3;
+ } else {
+ t3 = $[3];
+ }
const {
queryEditor,
headerEditor,
variableEditor
- } = useEditorContext({
- nonNull: true,
- caller: caller || usePrettifyEditors
- });
- return React.useCallback(() => {
- if (variableEditor) {
- const variableEditorContent = variableEditor.getValue();
- try {
- const prettifiedVariableEditorContent = JSON.stringify(JSON.parse(variableEditorContent), null, 2);
- if (prettifiedVariableEditorContent !== variableEditorContent) {
- variableEditor.setValue(prettifiedVariableEditorContent);
- }
- } catch {}
- }
- if (headerEditor) {
- const headerEditorContent = headerEditor.getValue();
- try {
- const prettifiedHeaderEditorContent = JSON.stringify(JSON.parse(headerEditorContent), null, 2);
- if (prettifiedHeaderEditorContent !== headerEditorContent) {
- headerEditor.setValue(prettifiedHeaderEditorContent);
- }
- } catch {}
- }
- if (queryEditor) {
- const editorContent = queryEditor.getValue();
- const prettifiedEditorContent = graphql.print(graphql.parse(editorContent));
- if (prettifiedEditorContent !== editorContent) {
- queryEditor.setValue(prettifiedEditorContent);
+ } = useEditorContext(t3);
+ let t4;
+ if ($[4] !== headerEditor || $[5] !== queryEditor || $[6] !== variableEditor) {
+ t4 = () => {
+ if (variableEditor) {
+ const variableEditorContent = variableEditor.getValue();
+ try {
+ const prettifiedVariableEditorContent = JSON.stringify(JSON.parse(variableEditorContent), null, 2);
+ if (prettifiedVariableEditorContent !== variableEditorContent) {
+ variableEditor.setValue(prettifiedVariableEditorContent);
+ }
+ } catch {}
}
- }
- }, [queryEditor, variableEditor, headerEditor]);
+ if (headerEditor) {
+ const headerEditorContent = headerEditor.getValue();
+ try {
+ const prettifiedHeaderEditorContent = JSON.stringify(JSON.parse(headerEditorContent), null, 2);
+ if (prettifiedHeaderEditorContent !== headerEditorContent) {
+ headerEditor.setValue(prettifiedHeaderEditorContent);
+ }
+ } catch {}
+ }
+ if (queryEditor) {
+ const editorContent = queryEditor.getValue();
+ const prettifiedEditorContent = graphql.print(graphql.parse(editorContent));
+ if (prettifiedEditorContent !== editorContent) {
+ queryEditor.setValue(prettifiedEditorContent);
+ }
+ }
+ };
+ $[4] = headerEditor;
+ $[5] = queryEditor;
+ $[6] = variableEditor;
+ $[7] = t4;
+ } else {
+ t4 = $[7];
+ }
+ return t4;
}
-function useAutoCompleteLeafs({
- getDefaultFieldNames,
- caller
-} = {}) {
+function useAutoCompleteLeafs(t0) {
+ const $ = reactCompilerRuntime.c(10);
+ let t1;
+ if ($[0] !== t0) {
+ t1 = t0 === void 0 ? {} : t0;
+ $[0] = t0;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const {
+ getDefaultFieldNames,
+ caller
+ } = t1;
+ const t2 = caller || _useAutoCompleteLeafs;
+ let t3;
+ if ($[2] !== t2) {
+ t3 = {
+ nonNull: true,
+ caller: t2
+ };
+ $[2] = t2;
+ $[3] = t3;
+ } else {
+ t3 = $[3];
+ }
const {
schema
- } = useSchemaContext({
- nonNull: true,
- caller: caller || useAutoCompleteLeafs
- });
+ } = useSchemaContext(t3);
+ const t4 = caller || _useAutoCompleteLeafs;
+ let t5;
+ if ($[4] !== t4) {
+ t5 = {
+ nonNull: true,
+ caller: t4
+ };
+ $[4] = t4;
+ $[5] = t5;
+ } else {
+ t5 = $[5];
+ }
const {
queryEditor
- } = useEditorContext({
- nonNull: true,
- caller: caller || useAutoCompleteLeafs
- });
- return React.useCallback(() => {
- if (!queryEditor) {
- return;
- }
- const query = queryEditor.getValue();
- const {
- insertions,
- result
- } = toolkit.fillLeafs(schema, query, getDefaultFieldNames);
- if (insertions && insertions.length > 0) {
- queryEditor.operation(() => {
- const cursor = queryEditor.getCursor();
- const cursorIndex = queryEditor.indexFromPos(cursor);
- queryEditor.setValue(result || "");
- let added = 0;
- const markers = insertions.map(({
- index,
- string
- }) => queryEditor.markText(queryEditor.posFromIndex(index + added), queryEditor.posFromIndex(index + (added += string.length)), {
- className: "auto-inserted-leaf",
- clearOnEnter: true,
- title: "Automatically added leaf fields"
- }));
- setTimeout(() => {
- for (const marker of markers) {
- marker.clear();
+ } = useEditorContext(t5);
+ let t6;
+ if ($[6] !== getDefaultFieldNames || $[7] !== queryEditor || $[8] !== schema) {
+ t6 = () => {
+ if (!queryEditor) {
+ return;
+ }
+ const query = queryEditor.getValue();
+ const {
+ insertions,
+ result
+ } = toolkit.fillLeafs(schema, query, getDefaultFieldNames);
+ if (insertions && insertions.length > 0) {
+ queryEditor.operation(() => {
+ const cursor = queryEditor.getCursor();
+ const cursorIndex = queryEditor.indexFromPos(cursor);
+ queryEditor.setValue(result || "");
+ let added;
+ added = 0;
+ const markers = insertions.map(t7 => {
+ const {
+ index,
+ string
+ } = t7;
+ added = added + string.length;
+ return queryEditor.markText(queryEditor.posFromIndex(index + added), queryEditor.posFromIndex(index + added), {
+ className: "auto-inserted-leaf",
+ clearOnEnter: true,
+ title: "Automatically added leaf fields"
+ });
+ });
+ setTimeout(() => {
+ for (const marker of markers) {
+ marker.clear();
+ }
+ }, 7e3);
+ let newCursorIndex = cursorIndex;
+ for (const {
+ index: index_0,
+ string: string_0
+ } of insertions) {
+ if (index_0 < cursorIndex) {
+ newCursorIndex = newCursorIndex + string_0.length;
+ }
}
- }, 7e3);
- let newCursorIndex = cursorIndex;
- for (const {
- index,
- string
- } of insertions) {
- if (index < cursorIndex) {
- newCursorIndex += string.length;
- }
- }
- queryEditor.setCursor(queryEditor.posFromIndex(newCursorIndex));
- });
- }
- return result;
- }, [getDefaultFieldNames, queryEditor, schema]);
+ queryEditor.setCursor(queryEditor.posFromIndex(newCursorIndex));
+ });
+ }
+ return result;
+ };
+ $[6] = getDefaultFieldNames;
+ $[7] = queryEditor;
+ $[8] = schema;
+ $[9] = t6;
+ } else {
+ t6 = $[9];
+ }
+ return t6;
}
const useEditorState = editor => {
+ "use no memo";
+
var _ref2;
const context = useEditorContext({
nonNull: true
@@ -72459,143 +80393,265 @@ const useVariablesEditorState = () => {
const useHeadersEditorState = () => {
return useEditorState("header");
};
-function useOptimisticState([upstreamState, upstreamSetState]) {
- const lastStateRef = React.useRef({
- /** The last thing that we sent upstream; we're expecting this back */
- pending: null,
- /** The last thing we received from upstream */
- last: upstreamState
- });
+function useOptimisticState(t0) {
+ const $ = reactCompilerRuntime.c(12);
+ const [upstreamState, upstreamSetState] = t0;
+ let t1;
+ if ($[0] !== upstreamState) {
+ t1 = {
+ pending: null,
+ last: upstreamState
+ };
+ $[0] = upstreamState;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const lastStateRef = React.useRef(t1);
const [state, setOperationsText] = React.useState(upstreamState);
- React.useEffect(() => {
- if (lastStateRef.current.last === upstreamState) ;else {
- lastStateRef.current.last = upstreamState;
- if (lastStateRef.current.pending === null) {
- setOperationsText(upstreamState);
- } else if (lastStateRef.current.pending === upstreamState) {
- lastStateRef.current.pending = null;
- if (upstreamState !== state) {
- lastStateRef.current.pending = state;
- upstreamSetState(state);
+ let t2;
+ let t3;
+ if ($[2] !== state || $[3] !== upstreamSetState || $[4] !== upstreamState) {
+ t2 = () => {
+ if (lastStateRef.current.last === upstreamState) ;else {
+ lastStateRef.current.last = upstreamState;
+ if (lastStateRef.current.pending === null) {
+ setOperationsText(upstreamState);
+ } else {
+ if (lastStateRef.current.pending === upstreamState) {
+ lastStateRef.current.pending = null;
+ if (upstreamState !== state) {
+ lastStateRef.current.pending = state;
+ upstreamSetState(state);
+ }
+ } else {
+ lastStateRef.current.pending = null;
+ setOperationsText(upstreamState);
+ }
}
- } else {
- lastStateRef.current.pending = null;
- setOperationsText(upstreamState);
}
- }
- }, [upstreamState, state, upstreamSetState]);
- const setState = React.useCallback(newState => {
- setOperationsText(newState);
- if (lastStateRef.current.pending === null && lastStateRef.current.last !== newState) {
- lastStateRef.current.pending = newState;
- upstreamSetState(newState);
- }
- }, [upstreamSetState]);
- return React.useMemo(() => [state, setState], [state, setState]);
+ };
+ t3 = [upstreamState, state, upstreamSetState];
+ $[2] = state;
+ $[3] = upstreamSetState;
+ $[4] = upstreamState;
+ $[5] = t2;
+ $[6] = t3;
+ } else {
+ t2 = $[5];
+ t3 = $[6];
+ }
+ React.useEffect(t2, t3);
+ let t4;
+ if ($[7] !== upstreamSetState) {
+ t4 = newState => {
+ setOperationsText(newState);
+ if (lastStateRef.current.pending === null && lastStateRef.current.last !== newState) {
+ lastStateRef.current.pending = newState;
+ upstreamSetState(newState);
+ }
+ };
+ $[7] = upstreamSetState;
+ $[8] = t4;
+ } else {
+ t4 = $[8];
+ }
+ const setState = t4;
+ let t5;
+ if ($[9] !== setState || $[10] !== state) {
+ t5 = [state, setState];
+ $[9] = setState;
+ $[10] = state;
+ $[11] = t5;
+ } else {
+ t5 = $[11];
+ }
+ return t5;
}
-function useHeaderEditor({
- editorTheme = DEFAULT_EDITOR_THEME,
- keyMap = DEFAULT_KEY_MAP,
- onEdit,
- readOnly = false
-} = {}, caller) {
+function importCodeMirrorImports$3() {
+ return importCodeMirror([// @ts-expect-error
+ Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/mode/javascript/javascript.js */ "../../../node_modules/codemirror/mode/javascript/javascript.js")))]);
+}
+const _useHeaderEditor = useHeaderEditor;
+function useHeaderEditor(t0, caller) {
+ const $ = reactCompilerRuntime.c(17);
+ let t1;
+ if ($[0] !== t0) {
+ t1 = t0 === void 0 ? {} : t0;
+ $[0] = t0;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const {
+ editorTheme: t2,
+ keyMap: t3,
+ onEdit,
+ readOnly: t4
+ } = t1;
+ const editorTheme = t2 === void 0 ? DEFAULT_EDITOR_THEME : t2;
+ const keyMap = t3 === void 0 ? DEFAULT_KEY_MAP : t3;
+ const readOnly = t4 === void 0 ? false : t4;
+ const t5 = caller || _useHeaderEditor;
+ let t6;
+ if ($[2] !== t5) {
+ t6 = {
+ nonNull: true,
+ caller: t5
+ };
+ $[2] = t5;
+ $[3] = t6;
+ } else {
+ t6 = $[3];
+ }
const {
initialHeaders,
headerEditor,
setHeaderEditor,
shouldPersistHeaders
- } = useEditorContext({
- nonNull: true,
- caller: caller || useHeaderEditor
- });
+ } = useEditorContext(t6);
const executionContext = useExecutionContext();
- const merge = useMergeQuery({
- caller: caller || useHeaderEditor
- });
- const prettify = usePrettifyEditors({
- caller: caller || useHeaderEditor
- });
- const ref = React.useRef(null);
- React.useEffect(() => {
- let isActive = true;
- void importCodeMirror([
- // @ts-expect-error
- Promise.resolve().then(() => __webpack_require__(/*! ./javascript.cjs.js */ "../../graphiql-react/dist/javascript.cjs.js")).then(n => n.javascript)]).then(CodeMirror => {
- if (!isActive) {
- return;
- }
- const container = ref.current;
- if (!container) {
- return;
- }
- const newEditor = CodeMirror(container, {
- value: initialHeaders,
- lineNumbers: true,
- tabSize: 2,
- mode: {
- name: "javascript",
- json: true
- },
- theme: editorTheme,
- autoCloseBrackets: true,
- matchBrackets: true,
- showCursorWhenSelecting: true,
- readOnly: readOnly ? "nocursor" : false,
- foldGutter: true,
- gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
- extraKeys: commonKeys
- });
- newEditor.addKeyMap({
- "Cmd-Space"() {
- newEditor.showHint({
- completeSingle: false,
- container
- });
- },
- "Ctrl-Space"() {
- newEditor.showHint({
- completeSingle: false,
- container
- });
- },
- "Alt-Space"() {
- newEditor.showHint({
- completeSingle: false,
- container
- });
- },
- "Shift-Space"() {
- newEditor.showHint({
- completeSingle: false,
- container
- });
- }
- });
- newEditor.on("keyup", (editorInstance, event) => {
- const {
- code,
- key,
- shiftKey
- } = event;
- const isLetter = code.startsWith("Key");
- const isNumber = !shiftKey && code.startsWith("Digit");
- if (isLetter || isNumber || key === "_" || key === '"') {
- editorInstance.execCommand("autocomplete");
- }
- });
- setHeaderEditor(newEditor);
- });
- return () => {
- isActive = false;
+ const t7 = caller || _useHeaderEditor;
+ let t8;
+ if ($[4] !== t7) {
+ t8 = {
+ caller: t7
};
- }, [editorTheme, initialHeaders, readOnly, setHeaderEditor]);
+ $[4] = t7;
+ $[5] = t8;
+ } else {
+ t8 = $[5];
+ }
+ const merge = useMergeQuery(t8);
+ const t9 = caller || _useHeaderEditor;
+ let t10;
+ if ($[6] !== t9) {
+ t10 = {
+ caller: t9
+ };
+ $[6] = t9;
+ $[7] = t10;
+ } else {
+ t10 = $[7];
+ }
+ const prettify = usePrettifyEditors(t10);
+ const ref = React.useRef(null);
+ let t11;
+ let t12;
+ if ($[8] !== editorTheme || $[9] !== initialHeaders || $[10] !== readOnly || $[11] !== setHeaderEditor) {
+ t11 = () => {
+ let isActive;
+ isActive = true;
+ importCodeMirrorImports$3().then(CodeMirror => {
+ if (!isActive) {
+ return;
+ }
+ const container = ref.current;
+ if (!container) {
+ return;
+ }
+ const newEditor = CodeMirror(container, {
+ value: initialHeaders,
+ lineNumbers: true,
+ tabSize: 2,
+ mode: {
+ name: "javascript",
+ json: true
+ },
+ theme: editorTheme,
+ autoCloseBrackets: true,
+ matchBrackets: true,
+ showCursorWhenSelecting: true,
+ readOnly: readOnly ? "nocursor" : false,
+ foldGutter: true,
+ gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
+ extraKeys: commonKeys
+ });
+ newEditor.addKeyMap({
+ "Cmd-Space"() {
+ newEditor.showHint({
+ completeSingle: false,
+ container
+ });
+ },
+ "Ctrl-Space"() {
+ newEditor.showHint({
+ completeSingle: false,
+ container
+ });
+ },
+ "Alt-Space"() {
+ newEditor.showHint({
+ completeSingle: false,
+ container
+ });
+ },
+ "Shift-Space"() {
+ newEditor.showHint({
+ completeSingle: false,
+ container
+ });
+ }
+ });
+ newEditor.on("keyup", _temp$2);
+ setHeaderEditor(newEditor);
+ });
+ return () => {
+ isActive = false;
+ };
+ };
+ t12 = [editorTheme, initialHeaders, readOnly, setHeaderEditor];
+ $[8] = editorTheme;
+ $[9] = initialHeaders;
+ $[10] = readOnly;
+ $[11] = setHeaderEditor;
+ $[12] = t11;
+ $[13] = t12;
+ } else {
+ t11 = $[12];
+ t12 = $[13];
+ }
+ React.useEffect(t11, t12);
useSynchronizeOption(headerEditor, "keyMap", keyMap);
- useChangeHandler(headerEditor, onEdit, shouldPersistHeaders ? STORAGE_KEY$3 : null, "headers", useHeaderEditor);
- useKeyMap(headerEditor, ["Cmd-Enter", "Ctrl-Enter"], executionContext == null ? void 0 : executionContext.run);
- useKeyMap(headerEditor, ["Shift-Ctrl-P"], prettify);
- useKeyMap(headerEditor, ["Shift-Ctrl-M"], merge);
+ useChangeHandler(headerEditor, onEdit, shouldPersistHeaders ? STORAGE_KEY$3 : null, "headers", _useHeaderEditor);
+ let t13;
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
+ t13 = ["Cmd-Enter", "Ctrl-Enter"];
+ $[14] = t13;
+ } else {
+ t13 = $[14];
+ }
+ useKeyMap(headerEditor, t13, executionContext == null ? void 0 : executionContext.run);
+ let t14;
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
+ t14 = ["Shift-Ctrl-P"];
+ $[15] = t14;
+ } else {
+ t14 = $[15];
+ }
+ useKeyMap(headerEditor, t14, prettify);
+ let t15;
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
+ t15 = ["Shift-Ctrl-M"];
+ $[16] = t15;
+ } else {
+ t15 = $[16];
+ }
+ useKeyMap(headerEditor, t15, merge);
return ref;
}
+function _temp$2(editorInstance, event) {
+ const {
+ code,
+ key,
+ shiftKey
+ } = event;
+ const isLetter = code.startsWith("Key");
+ const isNumber = !shiftKey && code.startsWith("Digit");
+ if (isLetter || isNumber || key === "_" || key === '"') {
+ editorInstance.execCommand("autocomplete");
+ }
+}
const STORAGE_KEY$3 = "headers";
const invalidCharacters = Array.from({
length: 11
@@ -72606,20 +80662,79 @@ const sanitizeRegex = new RegExp("[" + invalidCharacters.join("") + "]", "g");
function normalizeWhitespace(line) {
return line.replace(sanitizeRegex, " ");
}
-function useQueryEditor({
- editorTheme = DEFAULT_EDITOR_THEME,
- keyMap = DEFAULT_KEY_MAP,
- onClickReference,
- onCopyQuery,
- onEdit,
- readOnly = false
-} = {}, caller) {
+function importCodeMirrorImports$2() {
+ return importCodeMirror([Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/comment/comment.js */ "../../../node_modules/codemirror/addon/comment/comment.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/search/search.js */ "../../../node_modules/codemirror/addon/search/search.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/hint.js */ "../../codemirror-graphql/esm/hint.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/lint.js */ "../../codemirror-graphql/esm/lint.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/info.js */ "../../codemirror-graphql/esm/info.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/jump.js */ "../../codemirror-graphql/esm/jump.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/mode.js */ "../../codemirror-graphql/esm/mode.js")))]);
+}
+const _useQueryEditor = useQueryEditor;
+function updateVariableEditor(variableEditor, operationFacts) {
+ variableEditor.state.lint.linterOptions.variableToType = operationFacts == null ? void 0 : operationFacts.variableToType;
+ variableEditor.options.lint.variableToType = operationFacts == null ? void 0 : operationFacts.variableToType;
+ variableEditor.options.hintOptions.variableToType = operationFacts == null ? void 0 : operationFacts.variableToType;
+}
+function updateEditorSchema(editor, schema) {
+ editor.state.lint.linterOptions.schema = schema;
+ editor.options.lint.schema = schema;
+ editor.options.hintOptions.schema = schema;
+ editor.options.info.schema = schema;
+ editor.options.jump.schema = schema;
+}
+function updateEditorValidationRules(editor, validationRules) {
+ editor.state.lint.linterOptions.validationRules = validationRules;
+ editor.options.lint.validationRules = validationRules;
+}
+function updateEditorExternalFragments(editor, externalFragmentList) {
+ editor.state.lint.linterOptions.externalFragments = externalFragmentList;
+ editor.options.lint.externalFragments = externalFragmentList;
+ editor.options.hintOptions.externalFragments = externalFragmentList;
+}
+function useQueryEditor(t0, caller) {
+ const $ = reactCompilerRuntime.c(41);
+ let t1;
+ if ($[0] !== t0) {
+ t1 = t0 === void 0 ? {} : t0;
+ $[0] = t0;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const {
+ editorTheme: t2,
+ keyMap: t3,
+ onClickReference,
+ onCopyQuery,
+ onEdit,
+ readOnly: t4
+ } = t1;
+ const editorTheme = t2 === void 0 ? DEFAULT_EDITOR_THEME : t2;
+ const keyMap = t3 === void 0 ? DEFAULT_KEY_MAP : t3;
+ const readOnly = t4 === void 0 ? false : t4;
+ const t5 = caller || _useQueryEditor;
+ let t6;
+ if ($[2] !== t5) {
+ t6 = {
+ nonNull: true,
+ caller: t5
+ };
+ $[2] = t5;
+ $[3] = t6;
+ } else {
+ t6 = $[3];
+ }
const {
schema
- } = useSchemaContext({
- nonNull: true,
- caller: caller || useQueryEditor
- });
+ } = useSchemaContext(t6);
+ const t7 = caller || _useQueryEditor;
+ let t8;
+ if ($[4] !== t7) {
+ t8 = {
+ nonNull: true,
+ caller: t7
+ };
+ $[4] = t7;
+ $[5] = t8;
+ } else {
+ t8 = $[5];
+ }
const {
externalFragments,
initialQuery,
@@ -72629,321 +80744,484 @@ function useQueryEditor({
validationRules,
variableEditor,
updateActiveTabValues
- } = useEditorContext({
- nonNull: true,
- caller: caller || useQueryEditor
- });
+ } = useEditorContext(t8);
const executionContext = useExecutionContext();
const storage = useStorageContext();
const explorer = useExplorerContext();
const plugin = usePluginContext();
- const copy = useCopyQuery({
- caller: caller || useQueryEditor,
- onCopyQuery
- });
- const merge = useMergeQuery({
- caller: caller || useQueryEditor
- });
- const prettify = usePrettifyEditors({
- caller: caller || useQueryEditor
- });
+ const t9 = caller || _useQueryEditor;
+ let t10;
+ if ($[6] !== onCopyQuery || $[7] !== t9) {
+ t10 = {
+ caller: t9,
+ onCopyQuery
+ };
+ $[6] = onCopyQuery;
+ $[7] = t9;
+ $[8] = t10;
+ } else {
+ t10 = $[8];
+ }
+ const copy = useCopyQuery(t10);
+ const t11 = caller || _useQueryEditor;
+ let t12;
+ if ($[9] !== t11) {
+ t12 = {
+ caller: t11
+ };
+ $[9] = t11;
+ $[10] = t12;
+ } else {
+ t12 = $[10];
+ }
+ const merge = useMergeQuery(t12);
+ const t13 = caller || _useQueryEditor;
+ let t14;
+ if ($[11] !== t13) {
+ t14 = {
+ caller: t13
+ };
+ $[11] = t13;
+ $[12] = t14;
+ } else {
+ t14 = $[12];
+ }
+ const prettify = usePrettifyEditors(t14);
const ref = React.useRef(null);
const codeMirrorRef = React.useRef();
- const onClickReferenceRef = React.useRef(() => {});
- React.useEffect(() => {
- onClickReferenceRef.current = reference => {
- if (!explorer || !plugin) {
- return;
- }
- plugin.setVisiblePlugin(DOC_EXPLORER_PLUGIN);
- switch (reference.kind) {
- case "Type":
- {
- explorer.push({
- name: reference.type.name,
- def: reference.type
- });
- break;
- }
- case "Field":
- {
- explorer.push({
- name: reference.field.name,
- def: reference.field
- });
- break;
- }
- case "Argument":
- {
- if (reference.field) {
- explorer.push({
- name: reference.field.name,
- def: reference.field
- });
- }
- break;
- }
- case "EnumValue":
- {
- if (reference.type) {
+ const onClickReferenceRef = React.useRef(_temp$1);
+ let t15;
+ let t16;
+ if ($[13] !== explorer || $[14] !== onClickReference || $[15] !== plugin) {
+ t15 = () => {
+ onClickReferenceRef.current = reference => {
+ if (!explorer || !plugin) {
+ return;
+ }
+ plugin.setVisiblePlugin(DOC_EXPLORER_PLUGIN);
+ bb47: switch (reference.kind) {
+ case "Type":
+ {
explorer.push({
name: reference.type.name,
def: reference.type
});
+ break bb47;
}
- break;
- }
- }
- onClickReference == null ? void 0 : onClickReference(reference);
+ case "Field":
+ {
+ explorer.push({
+ name: reference.field.name,
+ def: reference.field
+ });
+ break bb47;
+ }
+ case "Argument":
+ {
+ if (reference.field) {
+ explorer.push({
+ name: reference.field.name,
+ def: reference.field
+ });
+ }
+ break bb47;
+ }
+ case "EnumValue":
+ {
+ if (reference.type) {
+ explorer.push({
+ name: reference.type.name,
+ def: reference.type
+ });
+ }
+ }
+ }
+ onClickReference == null ? void 0 : onClickReference(reference);
+ };
};
- }, [explorer, onClickReference, plugin]);
- React.useEffect(() => {
- let isActive = true;
- void importCodeMirror([Promise.resolve().then(() => __webpack_require__(/*! ./comment.cjs.js */ "../../graphiql-react/dist/comment.cjs.js")).then(n => n.comment), Promise.resolve().then(() => __webpack_require__(/*! ./search.cjs.js */ "../../graphiql-react/dist/search.cjs.js")).then(n => n.search), Promise.resolve().then(() => __webpack_require__(/*! ./hint.cjs.js */ "../../graphiql-react/dist/hint.cjs.js")), Promise.resolve().then(() => __webpack_require__(/*! ./lint.cjs2.js */ "../../graphiql-react/dist/lint.cjs2.js")), Promise.resolve().then(() => __webpack_require__(/*! ./info.cjs.js */ "../../graphiql-react/dist/info.cjs.js")), Promise.resolve().then(() => __webpack_require__(/*! ./jump.cjs.js */ "../../graphiql-react/dist/jump.cjs.js")), Promise.resolve().then(() => __webpack_require__(/*! ./mode.cjs.js */ "../../graphiql-react/dist/mode.cjs.js"))]).then(CodeMirror => {
- if (!isActive) {
- return;
- }
- codeMirrorRef.current = CodeMirror;
- const container = ref.current;
- if (!container) {
- return;
- }
- const newEditor = CodeMirror(container, {
- value: initialQuery,
- lineNumbers: true,
- tabSize: 2,
- foldGutter: true,
- mode: "graphql",
- theme: editorTheme,
- autoCloseBrackets: true,
- matchBrackets: true,
- showCursorWhenSelecting: true,
- readOnly: readOnly ? "nocursor" : false,
- lint: {
- // @ts-expect-error
- schema: void 0,
- validationRules: null,
- // linting accepts string or FragmentDefinitionNode[]
- externalFragments: void 0
- },
- hintOptions: {
- // @ts-expect-error
- schema: void 0,
- closeOnUnfocus: false,
- completeSingle: false,
- container,
- externalFragments: void 0,
- autocompleteOptions: {
- // for the query editor, restrict to executable type definitions
- mode: graphqlLanguageService.GraphQLDocumentMode.EXECUTABLE
- }
- },
- info: {
- schema: void 0,
- renderDescription: text => markdown.render(text),
- onClick(reference) {
- onClickReferenceRef.current(reference);
- }
- },
- jump: {
- schema: void 0,
- onClick(reference) {
- onClickReferenceRef.current(reference);
- }
- },
- gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
- extraKeys: {
- ...commonKeys,
- "Cmd-S"() {},
- "Ctrl-S"() {}
+ t16 = [explorer, onClickReference, plugin];
+ $[13] = explorer;
+ $[14] = onClickReference;
+ $[15] = plugin;
+ $[16] = t15;
+ $[17] = t16;
+ } else {
+ t15 = $[16];
+ t16 = $[17];
+ }
+ React.useEffect(t15, t16);
+ let t17;
+ let t18;
+ if ($[18] !== editorTheme || $[19] !== initialQuery || $[20] !== readOnly || $[21] !== setQueryEditor) {
+ t17 = () => {
+ let isActive;
+ isActive = true;
+ importCodeMirrorImports$2().then(CodeMirror => {
+ if (!isActive) {
+ return;
}
- });
- newEditor.addKeyMap({
- "Cmd-Space"() {
- newEditor.showHint({
- completeSingle: true,
- container
- });
- },
- "Ctrl-Space"() {
- newEditor.showHint({
- completeSingle: true,
- container
- });
- },
- "Alt-Space"() {
- newEditor.showHint({
- completeSingle: true,
- container
- });
- },
- "Shift-Space"() {
- newEditor.showHint({
- completeSingle: true,
- container
- });
- },
- "Shift-Alt-Space"() {
- newEditor.showHint({
- completeSingle: true,
- container
- });
+ codeMirrorRef.current = CodeMirror;
+ const container = ref.current;
+ if (!container) {
+ return;
}
- });
- newEditor.on("keyup", (editorInstance, event) => {
- if (AUTO_COMPLETE_AFTER_KEY.test(event.key)) {
- editorInstance.execCommand("autocomplete");
- }
- });
- let showingHints = false;
- newEditor.on("startCompletion", () => {
- showingHints = true;
- });
- newEditor.on("endCompletion", () => {
+ const newEditor = CodeMirror(container, {
+ value: initialQuery,
+ lineNumbers: true,
+ tabSize: 2,
+ foldGutter: true,
+ mode: "graphql",
+ theme: editorTheme,
+ autoCloseBrackets: true,
+ matchBrackets: true,
+ showCursorWhenSelecting: true,
+ readOnly: readOnly ? "nocursor" : false,
+ lint: {
+ schema: void 0,
+ validationRules: null,
+ externalFragments: void 0
+ },
+ hintOptions: {
+ schema: void 0,
+ closeOnUnfocus: false,
+ completeSingle: false,
+ container,
+ externalFragments: void 0,
+ autocompleteOptions: {
+ mode: graphqlLanguageService.GraphQLDocumentMode.EXECUTABLE
+ }
+ },
+ info: {
+ schema: void 0,
+ renderDescription: _temp2,
+ onClick(reference_0) {
+ onClickReferenceRef.current(reference_0);
+ }
+ },
+ jump: {
+ schema: void 0,
+ onClick(reference_1) {
+ onClickReferenceRef.current(reference_1);
+ }
+ },
+ gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
+ extraKeys: {
+ ...commonKeys,
+ "Cmd-S"() {},
+ "Ctrl-S"() {}
+ }
+ });
+ newEditor.addKeyMap({
+ "Cmd-Space"() {
+ newEditor.showHint({
+ completeSingle: true,
+ container
+ });
+ },
+ "Ctrl-Space"() {
+ newEditor.showHint({
+ completeSingle: true,
+ container
+ });
+ },
+ "Alt-Space"() {
+ newEditor.showHint({
+ completeSingle: true,
+ container
+ });
+ },
+ "Shift-Space"() {
+ newEditor.showHint({
+ completeSingle: true,
+ container
+ });
+ },
+ "Shift-Alt-Space"() {
+ newEditor.showHint({
+ completeSingle: true,
+ container
+ });
+ }
+ });
+ newEditor.on("keyup", _temp3);
+ let showingHints;
showingHints = false;
+ newEditor.on("startCompletion", () => {
+ showingHints = true;
+ });
+ newEditor.on("endCompletion", () => {
+ showingHints = false;
+ });
+ newEditor.on("keydown", (editorInstance_0, event_0) => {
+ if (event_0.key === "Escape" && showingHints) {
+ event_0.stopPropagation();
+ }
+ });
+ newEditor.on("beforeChange", _temp4);
+ newEditor.documentAST = null;
+ newEditor.operationName = null;
+ newEditor.operations = null;
+ newEditor.variableToType = null;
+ setQueryEditor(newEditor);
});
- newEditor.on("keydown", (editorInstance, event) => {
- if (event.key === "Escape" && showingHints) {
- event.stopPropagation();
- }
- });
- newEditor.on("beforeChange", (editorInstance, change) => {
- var _a;
- if (change.origin === "paste") {
- const text = change.text.map(normalizeWhitespace);
- (_a = change.update) == null ? void 0 : _a.call(change, change.from, change.to, text);
- }
- });
- newEditor.documentAST = null;
- newEditor.operationName = null;
- newEditor.operations = null;
- newEditor.variableToType = null;
- setQueryEditor(newEditor);
- });
- return () => {
- isActive = false;
+ return () => {
+ isActive = false;
+ };
};
- }, [editorTheme, initialQuery, readOnly, setQueryEditor]);
+ t18 = [editorTheme, initialQuery, readOnly, setQueryEditor];
+ $[18] = editorTheme;
+ $[19] = initialQuery;
+ $[20] = readOnly;
+ $[21] = setQueryEditor;
+ $[22] = t17;
+ $[23] = t18;
+ } else {
+ t17 = $[22];
+ t18 = $[23];
+ }
+ React.useEffect(t17, t18);
useSynchronizeOption(queryEditor, "keyMap", keyMap);
- React.useEffect(() => {
- if (!queryEditor) {
- return;
- }
- function getAndUpdateOperationFacts(editorInstance) {
- var _editorInstance$opera, _editorInstance$opera2, _ref3, _ref4;
- var _a;
- const operationFacts = graphqlLanguageService.getOperationFacts(schema, editorInstance.getValue());
- const operationName = toolkit.getSelectedOperationName((_editorInstance$opera = editorInstance.operations) !== null && _editorInstance$opera !== void 0 ? _editorInstance$opera : void 0, (_editorInstance$opera2 = editorInstance.operationName) !== null && _editorInstance$opera2 !== void 0 ? _editorInstance$opera2 : void 0, operationFacts == null ? void 0 : operationFacts.operations);
- editorInstance.documentAST = (_ref3 = operationFacts == null ? void 0 : operationFacts.documentAST) !== null && _ref3 !== void 0 ? _ref3 : null;
- editorInstance.operationName = operationName !== null && operationName !== void 0 ? operationName : null;
- editorInstance.operations = (_ref4 = operationFacts == null ? void 0 : operationFacts.operations) !== null && _ref4 !== void 0 ? _ref4 : null;
- if (variableEditor) {
- variableEditor.state.lint.linterOptions.variableToType = operationFacts == null ? void 0 : operationFacts.variableToType;
- variableEditor.options.lint.variableToType = operationFacts == null ? void 0 : operationFacts.variableToType;
- variableEditor.options.hintOptions.variableToType = operationFacts == null ? void 0 : operationFacts.variableToType;
- (_a = codeMirrorRef.current) == null ? void 0 : _a.signal(variableEditor, "change", variableEditor);
+ let t19;
+ let t20;
+ if ($[24] !== onEdit || $[25] !== queryEditor || $[26] !== schema || $[27] !== setOperationName || $[28] !== storage || $[29] !== updateActiveTabValues || $[30] !== variableEditor) {
+ t19 = () => {
+ if (!queryEditor) {
+ return;
}
- return operationFacts ? {
- ...operationFacts,
- operationName
- } : null;
- }
- const handleChange = debounce(100, editorInstance => {
- var _ref5;
- const query = editorInstance.getValue();
- storage == null ? void 0 : storage.set(STORAGE_KEY_QUERY, query);
- const currentOperationName = editorInstance.operationName;
- const operationFacts = getAndUpdateOperationFacts(editorInstance);
- if ((operationFacts == null ? void 0 : operationFacts.operationName) !== void 0) {
- storage == null ? void 0 : storage.set(STORAGE_KEY_OPERATION_NAME, operationFacts.operationName);
- }
- onEdit == null ? void 0 : onEdit(query, operationFacts == null ? void 0 : operationFacts.documentAST);
- if ((operationFacts == null ? void 0 : operationFacts.operationName) && currentOperationName !== operationFacts.operationName) {
- setOperationName(operationFacts.operationName);
- }
- updateActiveTabValues({
- query,
- operationName: (_ref5 = operationFacts == null ? void 0 : operationFacts.operationName) !== null && _ref5 !== void 0 ? _ref5 : null
+ const getAndUpdateOperationFacts = function getAndUpdateOperationFacts2(editorInstance_2) {
+ var _editorInstance_2$ope, _editorInstance_2$ope2, _ref3, _ref4;
+ var _a;
+ const operationFacts = graphqlLanguageService.getOperationFacts(schema, editorInstance_2.getValue());
+ const operationName = toolkit.getSelectedOperationName((_editorInstance_2$ope = editorInstance_2.operations) !== null && _editorInstance_2$ope !== void 0 ? _editorInstance_2$ope : void 0, (_editorInstance_2$ope2 = editorInstance_2.operationName) !== null && _editorInstance_2$ope2 !== void 0 ? _editorInstance_2$ope2 : void 0, operationFacts == null ? void 0 : operationFacts.operations);
+ editorInstance_2.documentAST = (_ref3 = operationFacts == null ? void 0 : operationFacts.documentAST) !== null && _ref3 !== void 0 ? _ref3 : null;
+ editorInstance_2.operationName = operationName !== null && operationName !== void 0 ? operationName : null;
+ editorInstance_2.operations = (_ref4 = operationFacts == null ? void 0 : operationFacts.operations) !== null && _ref4 !== void 0 ? _ref4 : null;
+ if (variableEditor) {
+ updateVariableEditor(variableEditor, operationFacts);
+ (_a = codeMirrorRef.current) == null ? void 0 : _a.signal(variableEditor, "change", variableEditor);
+ }
+ return operationFacts ? {
+ ...operationFacts,
+ operationName
+ } : null;
+ };
+ const handleChange = debounce(100, editorInstance_3 => {
+ var _ref5;
+ const query = editorInstance_3.getValue();
+ storage == null ? void 0 : storage.set(STORAGE_KEY_QUERY, query);
+ const currentOperationName = editorInstance_3.operationName;
+ const operationFacts_0 = getAndUpdateOperationFacts(editorInstance_3);
+ if ((operationFacts_0 == null ? void 0 : operationFacts_0.operationName) !== void 0) {
+ storage == null ? void 0 : storage.set(STORAGE_KEY_OPERATION_NAME, operationFacts_0.operationName);
+ }
+ onEdit == null ? void 0 : onEdit(query, operationFacts_0 == null ? void 0 : operationFacts_0.documentAST);
+ if ((operationFacts_0 == null ? void 0 : operationFacts_0.operationName) && currentOperationName !== operationFacts_0.operationName) {
+ setOperationName(operationFacts_0.operationName);
+ }
+ updateActiveTabValues({
+ query,
+ operationName: (_ref5 = operationFacts_0 == null ? void 0 : operationFacts_0.operationName) !== null && _ref5 !== void 0 ? _ref5 : null
+ });
});
- });
- getAndUpdateOperationFacts(queryEditor);
- queryEditor.on("change", handleChange);
- return () => queryEditor.off("change", handleChange);
- }, [onEdit, queryEditor, schema, setOperationName, storage, variableEditor, updateActiveTabValues]);
+ getAndUpdateOperationFacts(queryEditor);
+ queryEditor.on("change", handleChange);
+ return () => queryEditor.off("change", handleChange);
+ };
+ t20 = [onEdit, queryEditor, schema, setOperationName, storage, variableEditor, updateActiveTabValues];
+ $[24] = onEdit;
+ $[25] = queryEditor;
+ $[26] = schema;
+ $[27] = setOperationName;
+ $[28] = storage;
+ $[29] = updateActiveTabValues;
+ $[30] = variableEditor;
+ $[31] = t19;
+ $[32] = t20;
+ } else {
+ t19 = $[31];
+ t20 = $[32];
+ }
+ React.useEffect(t19, t20);
useSynchronizeSchema(queryEditor, schema !== null && schema !== void 0 ? schema : null, codeMirrorRef);
useSynchronizeValidationRules(queryEditor, validationRules !== null && validationRules !== void 0 ? validationRules : null, codeMirrorRef);
useSynchronizeExternalFragments(queryEditor, externalFragments, codeMirrorRef);
- useCompletion(queryEditor, onClickReference || null, useQueryEditor);
+ useCompletion(queryEditor, onClickReference || null, _useQueryEditor);
const run = executionContext == null ? void 0 : executionContext.run;
- const runAtCursor = React.useCallback(() => {
- var _a;
- if (!run || !queryEditor || !queryEditor.operations || !queryEditor.hasFocus()) {
- run == null ? void 0 : run();
- return;
- }
- const cursorIndex = queryEditor.indexFromPos(queryEditor.getCursor());
- let operationName;
- for (const operation of queryEditor.operations) {
- if (operation.loc && operation.loc.start <= cursorIndex && operation.loc.end >= cursorIndex) {
- operationName = (_a = operation.name) == null ? void 0 : _a.value;
+ let t21;
+ if ($[33] !== queryEditor || $[34] !== run || $[35] !== setOperationName) {
+ t21 = () => {
+ var _a;
+ if (!run || !queryEditor || !queryEditor.operations || !queryEditor.hasFocus()) {
+ run == null ? void 0 : run();
+ return;
}
- }
- if (operationName && operationName !== queryEditor.operationName) {
- setOperationName(operationName);
- }
- run();
- }, [queryEditor, run, setOperationName]);
- useKeyMap(queryEditor, ["Cmd-Enter", "Ctrl-Enter"], runAtCursor);
- useKeyMap(queryEditor, ["Shift-Ctrl-C"], copy);
- useKeyMap(queryEditor, ["Shift-Ctrl-P",
- // Shift-Ctrl-P is hard coded in Firefox for private browsing so adding an alternative to prettify
- "Shift-Ctrl-F"], prettify);
- useKeyMap(queryEditor, ["Shift-Ctrl-M"], merge);
+ const cursorIndex = queryEditor.indexFromPos(queryEditor.getCursor());
+ let operationName_0;
+ for (const operation of queryEditor.operations) {
+ if (operation.loc && operation.loc.start <= cursorIndex && operation.loc.end >= cursorIndex) {
+ operationName_0 = (_a = operation.name) == null ? void 0 : _a.value;
+ }
+ }
+ if (operationName_0 && operationName_0 !== queryEditor.operationName) {
+ setOperationName(operationName_0);
+ }
+ run();
+ };
+ $[33] = queryEditor;
+ $[34] = run;
+ $[35] = setOperationName;
+ $[36] = t21;
+ } else {
+ t21 = $[36];
+ }
+ const runAtCursor = t21;
+ let t22;
+ if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
+ t22 = ["Cmd-Enter", "Ctrl-Enter"];
+ $[37] = t22;
+ } else {
+ t22 = $[37];
+ }
+ useKeyMap(queryEditor, t22, runAtCursor);
+ let t23;
+ if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
+ t23 = ["Shift-Ctrl-C"];
+ $[38] = t23;
+ } else {
+ t23 = $[38];
+ }
+ useKeyMap(queryEditor, t23, copy);
+ let t24;
+ if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
+ t24 = ["Shift-Ctrl-P", "Shift-Ctrl-F"];
+ $[39] = t24;
+ } else {
+ t24 = $[39];
+ }
+ useKeyMap(queryEditor, t24, prettify);
+ let t25;
+ if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
+ t25 = ["Shift-Ctrl-M"];
+ $[40] = t25;
+ } else {
+ t25 = $[40];
+ }
+ useKeyMap(queryEditor, t25, merge);
return ref;
}
+function _temp4(editorInstance_1, change) {
+ var _a;
+ if (change.origin === "paste") {
+ const text_0 = change.text.map(normalizeWhitespace);
+ (_a = change.update) == null ? void 0 : _a.call(change, change.from, change.to, text_0);
+ }
+}
+function _temp3(editorInstance, event) {
+ if (AUTO_COMPLETE_AFTER_KEY.test(event.key)) {
+ editorInstance.execCommand("autocomplete");
+ }
+}
+function _temp2(text) {
+ return markdown.render(text);
+}
+function _temp$1() {}
function useSynchronizeSchema(editor, schema, codeMirrorRef) {
- React.useEffect(() => {
- if (!editor) {
- return;
- }
- const didChange = editor.options.lint.schema !== schema;
- editor.state.lint.linterOptions.schema = schema;
- editor.options.lint.schema = schema;
- editor.options.hintOptions.schema = schema;
- editor.options.info.schema = schema;
- editor.options.jump.schema = schema;
- if (didChange && codeMirrorRef.current) {
- codeMirrorRef.current.signal(editor, "change", editor);
- }
- }, [editor, schema, codeMirrorRef]);
+ const $ = reactCompilerRuntime.c(5);
+ let t0;
+ let t1;
+ if ($[0] !== codeMirrorRef || $[1] !== editor || $[2] !== schema) {
+ t0 = () => {
+ if (!editor) {
+ return;
+ }
+ const didChange = editor.options.lint.schema !== schema;
+ updateEditorSchema(editor, schema);
+ if (didChange && codeMirrorRef.current) {
+ codeMirrorRef.current.signal(editor, "change", editor);
+ }
+ };
+ t1 = [editor, schema, codeMirrorRef];
+ $[0] = codeMirrorRef;
+ $[1] = editor;
+ $[2] = schema;
+ $[3] = t0;
+ $[4] = t1;
+ } else {
+ t0 = $[3];
+ t1 = $[4];
+ }
+ React.useEffect(t0, t1);
}
function useSynchronizeValidationRules(editor, validationRules, codeMirrorRef) {
- React.useEffect(() => {
- if (!editor) {
- return;
- }
- const didChange = editor.options.lint.validationRules !== validationRules;
- editor.state.lint.linterOptions.validationRules = validationRules;
- editor.options.lint.validationRules = validationRules;
- if (didChange && codeMirrorRef.current) {
- codeMirrorRef.current.signal(editor, "change", editor);
- }
- }, [editor, validationRules, codeMirrorRef]);
+ const $ = reactCompilerRuntime.c(5);
+ let t0;
+ let t1;
+ if ($[0] !== codeMirrorRef || $[1] !== editor || $[2] !== validationRules) {
+ t0 = () => {
+ if (!editor) {
+ return;
+ }
+ const didChange = editor.options.lint.validationRules !== validationRules;
+ updateEditorValidationRules(editor, validationRules);
+ if (didChange && codeMirrorRef.current) {
+ codeMirrorRef.current.signal(editor, "change", editor);
+ }
+ };
+ t1 = [editor, validationRules, codeMirrorRef];
+ $[0] = codeMirrorRef;
+ $[1] = editor;
+ $[2] = validationRules;
+ $[3] = t0;
+ $[4] = t1;
+ } else {
+ t0 = $[3];
+ t1 = $[4];
+ }
+ React.useEffect(t0, t1);
}
function useSynchronizeExternalFragments(editor, externalFragments, codeMirrorRef) {
- const externalFragmentList = React.useMemo(() => [...externalFragments.values()], [externalFragments]);
- React.useEffect(() => {
- if (!editor) {
- return;
- }
- const didChange = editor.options.lint.externalFragments !== externalFragmentList;
- editor.state.lint.linterOptions.externalFragments = externalFragmentList;
- editor.options.lint.externalFragments = externalFragmentList;
- editor.options.hintOptions.externalFragments = externalFragmentList;
- if (didChange && codeMirrorRef.current) {
- codeMirrorRef.current.signal(editor, "change", editor);
- }
- }, [editor, externalFragmentList, codeMirrorRef]);
+ const $ = reactCompilerRuntime.c(9);
+ let t0;
+ if ($[0] !== externalFragments) {
+ t0 = externalFragments.values();
+ $[0] = externalFragments;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ let t1;
+ if ($[2] !== t0) {
+ t1 = [...t0];
+ $[2] = t0;
+ $[3] = t1;
+ } else {
+ t1 = $[3];
+ }
+ const externalFragmentList = t1;
+ let t2;
+ let t3;
+ if ($[4] !== codeMirrorRef || $[5] !== editor || $[6] !== externalFragmentList) {
+ t2 = () => {
+ if (!editor) {
+ return;
+ }
+ const didChange = editor.options.lint.externalFragments !== externalFragmentList;
+ updateEditorExternalFragments(editor, externalFragmentList);
+ if (didChange && codeMirrorRef.current) {
+ codeMirrorRef.current.signal(editor, "change", editor);
+ }
+ };
+ t3 = [editor, externalFragmentList, codeMirrorRef];
+ $[4] = codeMirrorRef;
+ $[5] = editor;
+ $[6] = externalFragmentList;
+ $[7] = t2;
+ $[8] = t3;
+ } else {
+ t2 = $[7];
+ t3 = $[8];
+ }
+ React.useEffect(t2, t3);
}
const AUTO_COMPLETE_AFTER_KEY = /^[a-zA-Z0-9_@(]$/;
const STORAGE_KEY_QUERY = "query";
@@ -73148,325 +81426,606 @@ function clearHeadersFromTabs(storage) {
}
const DEFAULT_TITLE = "";
const STORAGE_KEY$2 = "tabState";
-function useVariableEditor({
- editorTheme = DEFAULT_EDITOR_THEME,
- keyMap = DEFAULT_KEY_MAP,
- onClickReference,
- onEdit,
- readOnly = false
-} = {}, caller) {
+function importCodeMirrorImports$1() {
+ return importCodeMirror([Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/variables/hint.js */ "../../codemirror-graphql/esm/variables/hint.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/variables/lint.js */ "../../codemirror-graphql/esm/variables/lint.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/variables/mode.js */ "../../codemirror-graphql/esm/variables/mode.js")))]);
+}
+const _useVariableEditor = useVariableEditor;
+function useVariableEditor(t0, caller) {
+ const $ = reactCompilerRuntime.c(17);
+ let t1;
+ if ($[0] !== t0) {
+ t1 = t0 === void 0 ? {} : t0;
+ $[0] = t0;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const {
+ editorTheme: t2,
+ keyMap: t3,
+ onClickReference,
+ onEdit,
+ readOnly: t4
+ } = t1;
+ const editorTheme = t2 === void 0 ? DEFAULT_EDITOR_THEME : t2;
+ const keyMap = t3 === void 0 ? DEFAULT_KEY_MAP : t3;
+ const readOnly = t4 === void 0 ? false : t4;
+ const t5 = caller || _useVariableEditor;
+ let t6;
+ if ($[2] !== t5) {
+ t6 = {
+ nonNull: true,
+ caller: t5
+ };
+ $[2] = t5;
+ $[3] = t6;
+ } else {
+ t6 = $[3];
+ }
const {
initialVariables,
variableEditor,
setVariableEditor
- } = useEditorContext({
- nonNull: true,
- caller: caller || useVariableEditor
- });
+ } = useEditorContext(t6);
const executionContext = useExecutionContext();
- const merge = useMergeQuery({
- caller: caller || useVariableEditor
- });
- const prettify = usePrettifyEditors({
- caller: caller || useVariableEditor
- });
+ const t7 = caller || _useVariableEditor;
+ let t8;
+ if ($[4] !== t7) {
+ t8 = {
+ caller: t7
+ };
+ $[4] = t7;
+ $[5] = t8;
+ } else {
+ t8 = $[5];
+ }
+ const merge = useMergeQuery(t8);
+ const t9 = caller || _useVariableEditor;
+ let t10;
+ if ($[6] !== t9) {
+ t10 = {
+ caller: t9
+ };
+ $[6] = t9;
+ $[7] = t10;
+ } else {
+ t10 = $[7];
+ }
+ const prettify = usePrettifyEditors(t10);
const ref = React.useRef(null);
const codeMirrorRef = React.useRef();
- React.useEffect(() => {
- let isActive = true;
- void importCodeMirror([Promise.resolve().then(() => __webpack_require__(/*! ./hint.cjs2.js */ "../../graphiql-react/dist/hint.cjs2.js")), Promise.resolve().then(() => __webpack_require__(/*! ./lint.cjs3.js */ "../../graphiql-react/dist/lint.cjs3.js")), Promise.resolve().then(() => __webpack_require__(/*! ./mode.cjs2.js */ "../../graphiql-react/dist/mode.cjs2.js"))]).then(CodeMirror => {
- if (!isActive) {
- return;
- }
- codeMirrorRef.current = CodeMirror;
- const container = ref.current;
- if (!container) {
- return;
- }
- const newEditor = CodeMirror(container, {
- value: initialVariables,
- lineNumbers: true,
- tabSize: 2,
- mode: "graphql-variables",
- theme: editorTheme,
- autoCloseBrackets: true,
- matchBrackets: true,
- showCursorWhenSelecting: true,
- readOnly: readOnly ? "nocursor" : false,
- foldGutter: true,
- lint: {
- // @ts-expect-error
- variableToType: void 0
- },
- hintOptions: {
- closeOnUnfocus: false,
- completeSingle: false,
- container,
- // @ts-expect-error
- variableToType: void 0
- },
- gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
- extraKeys: commonKeys
- });
- newEditor.addKeyMap({
- "Cmd-Space"() {
- newEditor.showHint({
- completeSingle: false,
- container
- });
- },
- "Ctrl-Space"() {
- newEditor.showHint({
- completeSingle: false,
- container
- });
- },
- "Alt-Space"() {
- newEditor.showHint({
- completeSingle: false,
- container
- });
- },
- "Shift-Space"() {
- newEditor.showHint({
- completeSingle: false,
- container
- });
+ let t11;
+ let t12;
+ if ($[8] !== editorTheme || $[9] !== initialVariables || $[10] !== readOnly || $[11] !== setVariableEditor) {
+ t11 = () => {
+ let isActive;
+ isActive = true;
+ importCodeMirrorImports$1().then(CodeMirror => {
+ if (!isActive) {
+ return;
}
- });
- newEditor.on("keyup", (editorInstance, event) => {
- const {
- code,
- key,
- shiftKey
- } = event;
- const isLetter = code.startsWith("Key");
- const isNumber = !shiftKey && code.startsWith("Digit");
- if (isLetter || isNumber || key === "_" || key === '"') {
- editorInstance.execCommand("autocomplete");
+ codeMirrorRef.current = CodeMirror;
+ const container = ref.current;
+ if (!container) {
+ return;
}
+ const newEditor = CodeMirror(container, {
+ value: initialVariables,
+ lineNumbers: true,
+ tabSize: 2,
+ mode: "graphql-variables",
+ theme: editorTheme,
+ autoCloseBrackets: true,
+ matchBrackets: true,
+ showCursorWhenSelecting: true,
+ readOnly: readOnly ? "nocursor" : false,
+ foldGutter: true,
+ lint: {
+ variableToType: void 0
+ },
+ hintOptions: {
+ closeOnUnfocus: false,
+ completeSingle: false,
+ container,
+ variableToType: void 0
+ },
+ gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
+ extraKeys: commonKeys
+ });
+ newEditor.addKeyMap({
+ "Cmd-Space"() {
+ newEditor.showHint({
+ completeSingle: false,
+ container
+ });
+ },
+ "Ctrl-Space"() {
+ newEditor.showHint({
+ completeSingle: false,
+ container
+ });
+ },
+ "Alt-Space"() {
+ newEditor.showHint({
+ completeSingle: false,
+ container
+ });
+ },
+ "Shift-Space"() {
+ newEditor.showHint({
+ completeSingle: false,
+ container
+ });
+ }
+ });
+ newEditor.on("keyup", _temp);
+ setVariableEditor(newEditor);
});
- setVariableEditor(newEditor);
- });
- return () => {
- isActive = false;
+ return () => {
+ isActive = false;
+ };
};
- }, [editorTheme, initialVariables, readOnly, setVariableEditor]);
+ t12 = [editorTheme, initialVariables, readOnly, setVariableEditor];
+ $[8] = editorTheme;
+ $[9] = initialVariables;
+ $[10] = readOnly;
+ $[11] = setVariableEditor;
+ $[12] = t11;
+ $[13] = t12;
+ } else {
+ t11 = $[12];
+ t12 = $[13];
+ }
+ React.useEffect(t11, t12);
useSynchronizeOption(variableEditor, "keyMap", keyMap);
- useChangeHandler(variableEditor, onEdit, STORAGE_KEY$1, "variables", useVariableEditor);
- useCompletion(variableEditor, onClickReference || null, useVariableEditor);
- useKeyMap(variableEditor, ["Cmd-Enter", "Ctrl-Enter"], executionContext == null ? void 0 : executionContext.run);
- useKeyMap(variableEditor, ["Shift-Ctrl-P"], prettify);
- useKeyMap(variableEditor, ["Shift-Ctrl-M"], merge);
+ useChangeHandler(variableEditor, onEdit, STORAGE_KEY$1, "variables", _useVariableEditor);
+ useCompletion(variableEditor, onClickReference || null, _useVariableEditor);
+ let t13;
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
+ t13 = ["Cmd-Enter", "Ctrl-Enter"];
+ $[14] = t13;
+ } else {
+ t13 = $[14];
+ }
+ useKeyMap(variableEditor, t13, executionContext == null ? void 0 : executionContext.run);
+ let t14;
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
+ t14 = ["Shift-Ctrl-P"];
+ $[15] = t14;
+ } else {
+ t14 = $[15];
+ }
+ useKeyMap(variableEditor, t14, prettify);
+ let t15;
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
+ t15 = ["Shift-Ctrl-M"];
+ $[16] = t15;
+ } else {
+ t15 = $[16];
+ }
+ useKeyMap(variableEditor, t15, merge);
return ref;
}
+function _temp(editorInstance, event) {
+ const {
+ code,
+ key,
+ shiftKey
+ } = event;
+ const isLetter = code.startsWith("Key");
+ const isNumber = !shiftKey && code.startsWith("Digit");
+ if (isLetter || isNumber || key === "_" || key === '"') {
+ editorInstance.execCommand("autocomplete");
+ }
+}
const STORAGE_KEY$1 = "variables";
const EditorContext = createNullableContext("EditorContext");
function EditorContextProvider(props) {
+ const $ = reactCompilerRuntime.c(89);
const storage = useStorageContext();
const [headerEditor, setHeaderEditor] = React.useState(null);
const [queryEditor, setQueryEditor] = React.useState(null);
const [responseEditor, setResponseEditor] = React.useState(null);
const [variableEditor, setVariableEditor] = React.useState(null);
- const [shouldPersistHeaders, setShouldPersistHeadersInternal] = React.useState(() => {
- const isStored = (storage == null ? void 0 : storage.get(PERSIST_HEADERS_STORAGE_KEY)) !== null;
- return props.shouldPersistHeaders !== false && isStored ? (storage == null ? void 0 : storage.get(PERSIST_HEADERS_STORAGE_KEY)) === "true" : Boolean(props.shouldPersistHeaders);
- });
+ let t0;
+ if ($[0] !== props.shouldPersistHeaders || $[1] !== storage) {
+ t0 = () => {
+ const isStored = (storage == null ? void 0 : storage.get(PERSIST_HEADERS_STORAGE_KEY)) !== null;
+ return props.shouldPersistHeaders !== false && isStored ? (storage == null ? void 0 : storage.get(PERSIST_HEADERS_STORAGE_KEY)) === "true" : Boolean(props.shouldPersistHeaders);
+ };
+ $[0] = props.shouldPersistHeaders;
+ $[1] = storage;
+ $[2] = t0;
+ } else {
+ t0 = $[2];
+ }
+ const [shouldPersistHeaders, setShouldPersistHeadersInternal] = React.useState(t0);
useSynchronizeValue(headerEditor, props.headers);
useSynchronizeValue(queryEditor, props.query);
useSynchronizeValue(responseEditor, props.response);
useSynchronizeValue(variableEditor, props.variables);
- const storeTabs = useStoreTabs({
- storage,
- shouldPersistHeaders
- });
- const [initialState] = React.useState(() => {
- var _ref13, _props$query, _ref14, _props$variables, _ref15, _props$headers, _props$response, _ref16, _ref17;
- const query = (_ref13 = (_props$query = props.query) !== null && _props$query !== void 0 ? _props$query : storage == null ? void 0 : storage.get(STORAGE_KEY_QUERY)) !== null && _ref13 !== void 0 ? _ref13 : null;
- const variables = (_ref14 = (_props$variables = props.variables) !== null && _props$variables !== void 0 ? _props$variables : storage == null ? void 0 : storage.get(STORAGE_KEY$1)) !== null && _ref14 !== void 0 ? _ref14 : null;
- const headers = (_ref15 = (_props$headers = props.headers) !== null && _props$headers !== void 0 ? _props$headers : storage == null ? void 0 : storage.get(STORAGE_KEY$3)) !== null && _ref15 !== void 0 ? _ref15 : null;
- const response = (_props$response = props.response) !== null && _props$response !== void 0 ? _props$response : "";
- const tabState2 = getDefaultTabState({
- query,
- variables,
- headers,
- defaultTabs: props.defaultTabs,
- defaultQuery: props.defaultQuery || DEFAULT_QUERY,
- defaultHeaders: props.defaultHeaders,
+ let t1;
+ if ($[3] !== shouldPersistHeaders || $[4] !== storage) {
+ t1 = {
storage,
shouldPersistHeaders
- });
- storeTabs(tabState2);
- return {
- query: (_ref16 = query !== null && query !== void 0 ? query : tabState2.activeTabIndex === 0 ? tabState2.tabs[0].query : null) !== null && _ref16 !== void 0 ? _ref16 : "",
- variables: variables !== null && variables !== void 0 ? variables : "",
- headers: (_ref17 = headers !== null && headers !== void 0 ? headers : props.defaultHeaders) !== null && _ref17 !== void 0 ? _ref17 : "",
- response,
- tabState: tabState2
};
- });
- const [tabState, setTabState] = React.useState(initialState.tabState);
- const setShouldPersistHeaders = React.useCallback(persist => {
- if (persist) {
- var _ref18;
- storage == null ? void 0 : storage.set(STORAGE_KEY$3, (_ref18 = headerEditor == null ? void 0 : headerEditor.getValue()) !== null && _ref18 !== void 0 ? _ref18 : "");
- const serializedTabs = serializeTabState(tabState, true);
- storage == null ? void 0 : storage.set(STORAGE_KEY$2, serializedTabs);
- } else {
- storage == null ? void 0 : storage.set(STORAGE_KEY$3, "");
- clearHeadersFromTabs(storage);
- }
- setShouldPersistHeadersInternal(persist);
- storage == null ? void 0 : storage.set(PERSIST_HEADERS_STORAGE_KEY, persist.toString());
- }, [storage, tabState, headerEditor]);
+ $[3] = shouldPersistHeaders;
+ $[4] = storage;
+ $[5] = t1;
+ } else {
+ t1 = $[5];
+ }
+ const storeTabs = useStoreTabs(t1);
+ let t2;
+ if ($[6] !== props.defaultHeaders || $[7] !== props.defaultQuery || $[8] !== props.defaultTabs || $[9] !== props.headers || $[10] !== props.query || $[11] !== props.response || $[12] !== props.variables || $[13] !== shouldPersistHeaders || $[14] !== storage || $[15] !== storeTabs) {
+ t2 = () => {
+ var _ref13, _props$query, _ref14, _props$variables, _ref15, _props$headers, _props$response, _ref16, _ref17;
+ const query = (_ref13 = (_props$query = props.query) !== null && _props$query !== void 0 ? _props$query : storage == null ? void 0 : storage.get(STORAGE_KEY_QUERY)) !== null && _ref13 !== void 0 ? _ref13 : null;
+ const variables = (_ref14 = (_props$variables = props.variables) !== null && _props$variables !== void 0 ? _props$variables : storage == null ? void 0 : storage.get(STORAGE_KEY$1)) !== null && _ref14 !== void 0 ? _ref14 : null;
+ const headers = (_ref15 = (_props$headers = props.headers) !== null && _props$headers !== void 0 ? _props$headers : storage == null ? void 0 : storage.get(STORAGE_KEY$3)) !== null && _ref15 !== void 0 ? _ref15 : null;
+ const response = (_props$response = props.response) !== null && _props$response !== void 0 ? _props$response : "";
+ const tabState = getDefaultTabState({
+ query,
+ variables,
+ headers,
+ defaultTabs: props.defaultTabs,
+ defaultQuery: props.defaultQuery || DEFAULT_QUERY,
+ defaultHeaders: props.defaultHeaders,
+ storage,
+ shouldPersistHeaders
+ });
+ storeTabs(tabState);
+ return {
+ query: (_ref16 = query !== null && query !== void 0 ? query : tabState.activeTabIndex === 0 ? tabState.tabs[0].query : null) !== null && _ref16 !== void 0 ? _ref16 : "",
+ variables: variables !== null && variables !== void 0 ? variables : "",
+ headers: (_ref17 = headers !== null && headers !== void 0 ? headers : props.defaultHeaders) !== null && _ref17 !== void 0 ? _ref17 : "",
+ response,
+ tabState
+ };
+ };
+ $[6] = props.defaultHeaders;
+ $[7] = props.defaultQuery;
+ $[8] = props.defaultTabs;
+ $[9] = props.headers;
+ $[10] = props.query;
+ $[11] = props.response;
+ $[12] = props.variables;
+ $[13] = shouldPersistHeaders;
+ $[14] = storage;
+ $[15] = storeTabs;
+ $[16] = t2;
+ } else {
+ t2 = $[16];
+ }
+ const [initialState] = React.useState(t2);
+ const [tabState_0, setTabState] = React.useState(initialState.tabState);
+ let t3;
+ if ($[17] !== headerEditor || $[18] !== storage || $[19] !== tabState_0) {
+ t3 = persist => {
+ if (persist) {
+ var _ref18;
+ storage == null ? void 0 : storage.set(STORAGE_KEY$3, (_ref18 = headerEditor == null ? void 0 : headerEditor.getValue()) !== null && _ref18 !== void 0 ? _ref18 : "");
+ const serializedTabs = serializeTabState(tabState_0, true);
+ storage == null ? void 0 : storage.set(STORAGE_KEY$2, serializedTabs);
+ } else {
+ storage == null ? void 0 : storage.set(STORAGE_KEY$3, "");
+ clearHeadersFromTabs(storage);
+ }
+ setShouldPersistHeadersInternal(persist);
+ storage == null ? void 0 : storage.set(PERSIST_HEADERS_STORAGE_KEY, persist.toString());
+ };
+ $[17] = headerEditor;
+ $[18] = storage;
+ $[19] = tabState_0;
+ $[20] = t3;
+ } else {
+ t3 = $[20];
+ }
+ const setShouldPersistHeaders = t3;
const lastShouldPersistHeadersProp = React.useRef();
- React.useEffect(() => {
- const propValue = Boolean(props.shouldPersistHeaders);
- if ((lastShouldPersistHeadersProp == null ? void 0 : lastShouldPersistHeadersProp.current) !== propValue) {
- setShouldPersistHeaders(propValue);
- lastShouldPersistHeadersProp.current = propValue;
- }
- }, [props.shouldPersistHeaders, setShouldPersistHeaders]);
- const synchronizeActiveTabValues = useSynchronizeActiveTabValues({
- queryEditor,
- variableEditor,
- headerEditor,
- responseEditor
- });
+ let t4;
+ let t5;
+ if ($[21] !== props.shouldPersistHeaders || $[22] !== setShouldPersistHeaders) {
+ t4 = () => {
+ const propValue = Boolean(props.shouldPersistHeaders);
+ if ((lastShouldPersistHeadersProp == null ? void 0 : lastShouldPersistHeadersProp.current) !== propValue) {
+ setShouldPersistHeaders(propValue);
+ lastShouldPersistHeadersProp.current = propValue;
+ }
+ };
+ t5 = [props.shouldPersistHeaders, setShouldPersistHeaders];
+ $[21] = props.shouldPersistHeaders;
+ $[22] = setShouldPersistHeaders;
+ $[23] = t4;
+ $[24] = t5;
+ } else {
+ t4 = $[23];
+ t5 = $[24];
+ }
+ React.useEffect(t4, t5);
+ let t6;
+ if ($[25] !== headerEditor || $[26] !== queryEditor || $[27] !== responseEditor || $[28] !== variableEditor) {
+ t6 = {
+ queryEditor,
+ variableEditor,
+ headerEditor,
+ responseEditor
+ };
+ $[25] = headerEditor;
+ $[26] = queryEditor;
+ $[27] = responseEditor;
+ $[28] = variableEditor;
+ $[29] = t6;
+ } else {
+ t6 = $[29];
+ }
+ const synchronizeActiveTabValues = useSynchronizeActiveTabValues(t6);
const {
onTabChange,
defaultHeaders,
defaultQuery,
children
} = props;
- const setEditorValues = useSetEditorValues({
- queryEditor,
- variableEditor,
- headerEditor,
- responseEditor,
- defaultHeaders
- });
- const addTab = React.useCallback(() => {
- setTabState(current => {
- const updatedValues = synchronizeActiveTabValues(current);
- const updated = {
- tabs: [...updatedValues.tabs, createTab({
- headers: defaultHeaders,
- query: defaultQuery !== null && defaultQuery !== void 0 ? defaultQuery : DEFAULT_QUERY
- })],
- activeTabIndex: updatedValues.tabs.length
- };
- storeTabs(updated);
- setEditorValues(updated.tabs[updated.activeTabIndex]);
- onTabChange == null ? void 0 : onTabChange(updated);
- return updated;
- });
- }, [defaultHeaders, defaultQuery, onTabChange, setEditorValues, storeTabs, synchronizeActiveTabValues]);
- const changeTab = React.useCallback(index => {
- setTabState(current => {
- const updated = {
- ...current,
- activeTabIndex: index
- };
- storeTabs(updated);
- setEditorValues(updated.tabs[updated.activeTabIndex]);
- onTabChange == null ? void 0 : onTabChange(updated);
- return updated;
- });
- }, [onTabChange, setEditorValues, storeTabs]);
- const moveTab = React.useCallback(newOrder => {
- setTabState(current => {
- const activeTab = current.tabs[current.activeTabIndex];
- const updated = {
- tabs: newOrder,
- activeTabIndex: newOrder.indexOf(activeTab)
- };
- storeTabs(updated);
- setEditorValues(updated.tabs[updated.activeTabIndex]);
- onTabChange == null ? void 0 : onTabChange(updated);
- return updated;
- });
- }, [onTabChange, setEditorValues, storeTabs]);
- const closeTab = React.useCallback(index => {
- setTabState(current => {
- const updated = {
- tabs: current.tabs.filter((_tab, i) => index !== i),
- activeTabIndex: Math.max(current.activeTabIndex - 1, 0)
- };
- storeTabs(updated);
- setEditorValues(updated.tabs[updated.activeTabIndex]);
- onTabChange == null ? void 0 : onTabChange(updated);
- return updated;
- });
- }, [onTabChange, setEditorValues, storeTabs]);
- const updateActiveTabValues = React.useCallback(partialTab => {
- setTabState(current => {
- const updated = setPropertiesInActiveTab(current, partialTab);
- storeTabs(updated);
- onTabChange == null ? void 0 : onTabChange(updated);
- return updated;
- });
- }, [onTabChange, storeTabs]);
+ let t7;
+ if ($[30] !== defaultHeaders || $[31] !== headerEditor || $[32] !== queryEditor || $[33] !== responseEditor || $[34] !== variableEditor) {
+ t7 = {
+ queryEditor,
+ variableEditor,
+ headerEditor,
+ responseEditor,
+ defaultHeaders
+ };
+ $[30] = defaultHeaders;
+ $[31] = headerEditor;
+ $[32] = queryEditor;
+ $[33] = responseEditor;
+ $[34] = variableEditor;
+ $[35] = t7;
+ } else {
+ t7 = $[35];
+ }
+ const setEditorValues = useSetEditorValues(t7);
+ let t8;
+ if ($[36] !== defaultHeaders || $[37] !== defaultQuery || $[38] !== onTabChange || $[39] !== setEditorValues || $[40] !== storeTabs || $[41] !== synchronizeActiveTabValues) {
+ t8 = () => {
+ setTabState(current => {
+ const updatedValues = synchronizeActiveTabValues(current);
+ const updated = {
+ tabs: [...updatedValues.tabs, createTab({
+ headers: defaultHeaders,
+ query: defaultQuery !== null && defaultQuery !== void 0 ? defaultQuery : DEFAULT_QUERY
+ })],
+ activeTabIndex: updatedValues.tabs.length
+ };
+ storeTabs(updated);
+ setEditorValues(updated.tabs[updated.activeTabIndex]);
+ onTabChange == null ? void 0 : onTabChange(updated);
+ return updated;
+ });
+ };
+ $[36] = defaultHeaders;
+ $[37] = defaultQuery;
+ $[38] = onTabChange;
+ $[39] = setEditorValues;
+ $[40] = storeTabs;
+ $[41] = synchronizeActiveTabValues;
+ $[42] = t8;
+ } else {
+ t8 = $[42];
+ }
+ const addTab = t8;
+ let t9;
+ if ($[43] !== onTabChange || $[44] !== setEditorValues || $[45] !== storeTabs) {
+ t9 = index => {
+ setTabState(current_0 => {
+ const updated_0 = {
+ ...current_0,
+ activeTabIndex: index
+ };
+ storeTabs(updated_0);
+ setEditorValues(updated_0.tabs[updated_0.activeTabIndex]);
+ onTabChange == null ? void 0 : onTabChange(updated_0);
+ return updated_0;
+ });
+ };
+ $[43] = onTabChange;
+ $[44] = setEditorValues;
+ $[45] = storeTabs;
+ $[46] = t9;
+ } else {
+ t9 = $[46];
+ }
+ const changeTab = t9;
+ let t10;
+ if ($[47] !== onTabChange || $[48] !== setEditorValues || $[49] !== storeTabs) {
+ t10 = newOrder => {
+ setTabState(current_1 => {
+ const activeTab = current_1.tabs[current_1.activeTabIndex];
+ const updated_1 = {
+ tabs: newOrder,
+ activeTabIndex: newOrder.indexOf(activeTab)
+ };
+ storeTabs(updated_1);
+ setEditorValues(updated_1.tabs[updated_1.activeTabIndex]);
+ onTabChange == null ? void 0 : onTabChange(updated_1);
+ return updated_1;
+ });
+ };
+ $[47] = onTabChange;
+ $[48] = setEditorValues;
+ $[49] = storeTabs;
+ $[50] = t10;
+ } else {
+ t10 = $[50];
+ }
+ const moveTab = t10;
+ let t11;
+ if ($[51] !== onTabChange || $[52] !== setEditorValues || $[53] !== storeTabs) {
+ t11 = index_0 => {
+ setTabState(current_2 => {
+ const updated_2 = {
+ tabs: current_2.tabs.filter((_tab, i) => index_0 !== i),
+ activeTabIndex: Math.max(current_2.activeTabIndex - 1, 0)
+ };
+ storeTabs(updated_2);
+ setEditorValues(updated_2.tabs[updated_2.activeTabIndex]);
+ onTabChange == null ? void 0 : onTabChange(updated_2);
+ return updated_2;
+ });
+ };
+ $[51] = onTabChange;
+ $[52] = setEditorValues;
+ $[53] = storeTabs;
+ $[54] = t11;
+ } else {
+ t11 = $[54];
+ }
+ const closeTab = t11;
+ let t12;
+ if ($[55] !== onTabChange || $[56] !== storeTabs) {
+ t12 = partialTab => {
+ setTabState(current_3 => {
+ const updated_3 = setPropertiesInActiveTab(current_3, partialTab);
+ storeTabs(updated_3);
+ onTabChange == null ? void 0 : onTabChange(updated_3);
+ return updated_3;
+ });
+ };
+ $[55] = onTabChange;
+ $[56] = storeTabs;
+ $[57] = t12;
+ } else {
+ t12 = $[57];
+ }
+ const updateActiveTabValues = t12;
const {
onEditOperationName
} = props;
- const setOperationName = React.useCallback(operationName => {
- if (!queryEditor) {
- return;
- }
- queryEditor.operationName = operationName;
- updateActiveTabValues({
- operationName
- });
- onEditOperationName == null ? void 0 : onEditOperationName(operationName);
- }, [onEditOperationName, queryEditor, updateActiveTabValues]);
- const externalFragments = React.useMemo(() => {
- const map = /* @__PURE__ */new Map();
+ let t13;
+ if ($[58] !== onEditOperationName || $[59] !== queryEditor || $[60] !== updateActiveTabValues) {
+ t13 = operationName => {
+ if (!queryEditor) {
+ return;
+ }
+ updateQueryEditor(queryEditor, operationName);
+ updateActiveTabValues({
+ operationName
+ });
+ onEditOperationName == null ? void 0 : onEditOperationName(operationName);
+ };
+ $[58] = onEditOperationName;
+ $[59] = queryEditor;
+ $[60] = updateActiveTabValues;
+ $[61] = t13;
+ } else {
+ t13 = $[61];
+ }
+ const setOperationName = t13;
+ let t14;
+ let map;
+ if ($[62] !== props.externalFragments) {
+ map = /* @__PURE__ */new Map();
if (Array.isArray(props.externalFragments)) {
for (const fragment of props.externalFragments) {
map.set(fragment.name.value, fragment);
}
- } else if (typeof props.externalFragments === "string") {
- graphql.visit(graphql.parse(props.externalFragments, {}), {
- FragmentDefinition(fragment) {
- map.set(fragment.name.value, fragment);
+ } else {
+ if (typeof props.externalFragments === "string") {
+ graphql.visit(graphql.parse(props.externalFragments, {}), {
+ FragmentDefinition(fragment_0) {
+ map.set(fragment_0.name.value, fragment_0);
+ }
+ });
+ } else {
+ if (props.externalFragments) {
+ throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");
}
- });
- } else if (props.externalFragments) {
- throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");
+ }
}
- return map;
- }, [props.externalFragments]);
- const validationRules = React.useMemo(() => props.validationRules || [], [props.validationRules]);
- const value = React.useMemo(() => ({
- ...tabState,
- addTab,
- changeTab,
- moveTab,
- closeTab,
- updateActiveTabValues,
- headerEditor,
- queryEditor,
- responseEditor,
- variableEditor,
- setHeaderEditor,
- setQueryEditor,
- setResponseEditor,
- setVariableEditor,
- setOperationName,
- initialQuery: initialState.query,
- initialVariables: initialState.variables,
- initialHeaders: initialState.headers,
- initialResponse: initialState.response,
- externalFragments,
- validationRules,
- shouldPersistHeaders,
- setShouldPersistHeaders
- }), [tabState, addTab, changeTab, moveTab, closeTab, updateActiveTabValues, headerEditor, queryEditor, responseEditor, variableEditor, setOperationName, initialState, externalFragments, validationRules, shouldPersistHeaders, setShouldPersistHeaders]);
- return /* @__PURE__ */jsxRuntime.jsx(EditorContext.Provider, {
- value,
- children
- });
+ $[62] = props.externalFragments;
+ $[63] = map;
+ } else {
+ map = $[63];
+ }
+ t14 = map;
+ const externalFragments = t14;
+ let t15;
+ if ($[64] !== props.validationRules) {
+ t15 = props.validationRules || [];
+ $[64] = props.validationRules;
+ $[65] = t15;
+ } else {
+ t15 = $[65];
+ }
+ const validationRules = t15;
+ let t16;
+ if ($[66] !== addTab || $[67] !== changeTab || $[68] !== closeTab || $[69] !== externalFragments || $[70] !== headerEditor || $[71] !== initialState.headers || $[72] !== initialState.query || $[73] !== initialState.response || $[74] !== initialState.variables || $[75] !== moveTab || $[76] !== queryEditor || $[77] !== responseEditor || $[78] !== setOperationName || $[79] !== setShouldPersistHeaders || $[80] !== shouldPersistHeaders || $[81] !== tabState_0 || $[82] !== updateActiveTabValues || $[83] !== validationRules || $[84] !== variableEditor) {
+ t16 = {
+ ...tabState_0,
+ addTab,
+ changeTab,
+ moveTab,
+ closeTab,
+ updateActiveTabValues,
+ headerEditor,
+ queryEditor,
+ responseEditor,
+ variableEditor,
+ setHeaderEditor,
+ setQueryEditor,
+ setResponseEditor,
+ setVariableEditor,
+ setOperationName,
+ initialQuery: initialState.query,
+ initialVariables: initialState.variables,
+ initialHeaders: initialState.headers,
+ initialResponse: initialState.response,
+ externalFragments,
+ validationRules,
+ shouldPersistHeaders,
+ setShouldPersistHeaders
+ };
+ $[66] = addTab;
+ $[67] = changeTab;
+ $[68] = closeTab;
+ $[69] = externalFragments;
+ $[70] = headerEditor;
+ $[71] = initialState.headers;
+ $[72] = initialState.query;
+ $[73] = initialState.response;
+ $[74] = initialState.variables;
+ $[75] = moveTab;
+ $[76] = queryEditor;
+ $[77] = responseEditor;
+ $[78] = setOperationName;
+ $[79] = setShouldPersistHeaders;
+ $[80] = shouldPersistHeaders;
+ $[81] = tabState_0;
+ $[82] = updateActiveTabValues;
+ $[83] = validationRules;
+ $[84] = variableEditor;
+ $[85] = t16;
+ } else {
+ t16 = $[85];
+ }
+ const value = t16;
+ let t17;
+ if ($[86] !== children || $[87] !== value) {
+ t17 = /* @__PURE__ */jsxRuntime.jsx(EditorContext.Provider, {
+ value,
+ children
+ });
+ $[86] = children;
+ $[87] = value;
+ $[88] = t17;
+ } else {
+ t17 = $[88];
+ }
+ return t17;
+}
+function updateQueryEditor(queryEditor, operationName) {
+ queryEditor.operationName = operationName;
}
const useEditorContext = createContextHook(EditorContext);
const PERSIST_HEADERS_STORAGE_KEY = "shouldPersistHeaders";
@@ -73502,73 +82061,177 @@ const DEFAULT_QUERY = `# Welcome to GraphiQL
#
`;
-function HeaderEditor({
- isHidden,
- ...hookArgs
-}) {
+function HeaderEditor(t0) {
+ const $ = reactCompilerRuntime.c(13);
+ let hookArgs;
+ let isHidden;
+ if ($[0] !== t0) {
+ ({
+ isHidden,
+ ...hookArgs
+ } = t0);
+ $[0] = t0;
+ $[1] = hookArgs;
+ $[2] = isHidden;
+ } else {
+ hookArgs = $[1];
+ isHidden = $[2];
+ }
+ let t1;
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = {
+ nonNull: true,
+ caller: HeaderEditor
+ };
+ $[3] = t1;
+ } else {
+ t1 = $[3];
+ }
const {
headerEditor
- } = useEditorContext({
- nonNull: true,
- caller: HeaderEditor
- });
+ } = useEditorContext(t1);
const ref = useHeaderEditor(hookArgs, HeaderEditor);
- React.useEffect(() => {
- if (!isHidden) {
- headerEditor == null ? void 0 : headerEditor.refresh();
- }
- }, [headerEditor, isHidden]);
- return /* @__PURE__ */jsxRuntime.jsx("div", {
- className: clsx.clsx("graphiql-editor", isHidden && "hidden"),
- ref
- });
+ let t2;
+ let t3;
+ if ($[4] !== headerEditor || $[5] !== isHidden) {
+ t2 = () => {
+ if (!isHidden) {
+ headerEditor == null ? void 0 : headerEditor.refresh();
+ }
+ };
+ t3 = [headerEditor, isHidden];
+ $[4] = headerEditor;
+ $[5] = isHidden;
+ $[6] = t2;
+ $[7] = t3;
+ } else {
+ t2 = $[6];
+ t3 = $[7];
+ }
+ React.useEffect(t2, t3);
+ const t4 = isHidden && "hidden";
+ let t5;
+ if ($[8] !== t4) {
+ t5 = clsx.clsx("graphiql-editor", t4);
+ $[8] = t4;
+ $[9] = t5;
+ } else {
+ t5 = $[9];
+ }
+ let t6;
+ if ($[10] !== ref || $[11] !== t5) {
+ t6 = /* @__PURE__ */jsxRuntime.jsx("div", {
+ className: t5,
+ ref
+ });
+ $[10] = ref;
+ $[11] = t5;
+ $[12] = t6;
+ } else {
+ t6 = $[12];
+ }
+ return t6;
}
function ImagePreview(props) {
var _a;
- const [dimensions, setDimensions] = React.useState({
- width: null,
- height: null
- });
+ const $ = reactCompilerRuntime.c(14);
+ let t0;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t0 = {
+ width: null,
+ height: null
+ };
+ $[0] = t0;
+ } else {
+ t0 = $[0];
+ }
+ const [dimensions, setDimensions] = React.useState(t0);
const [mime, setMime] = React.useState(null);
const ref = React.useRef(null);
const src = (_a = tokenToURL(props.token)) == null ? void 0 : _a.href;
- React.useEffect(() => {
- if (!ref.current) {
- return;
- }
- if (!src) {
- setDimensions({
- width: null,
- height: null
- });
- setMime(null);
- return;
- }
- fetch(src, {
- method: "HEAD"
- }).then(response => {
- setMime(response.headers.get("Content-Type"));
- }).catch(() => {
- setMime(null);
- });
- }, [src]);
- const dims = dimensions.width !== null && dimensions.height !== null ? /* @__PURE__ */jsxRuntime.jsxs("div", {
- children: [dimensions.width, "x", dimensions.height, mime === null ? null : " " + mime]
- }) : null;
- return /* @__PURE__ */jsxRuntime.jsxs("div", {
- children: [/* @__PURE__ */jsxRuntime.jsx("img", {
- onLoad: () => {
- var _ref19, _ref20;
- var _a2, _b;
+ let t1;
+ let t2;
+ if ($[1] !== src) {
+ t1 = () => {
+ if (!ref.current) {
+ return;
+ }
+ if (!src) {
setDimensions({
- width: (_ref19 = (_a2 = ref.current) == null ? void 0 : _a2.naturalWidth) !== null && _ref19 !== void 0 ? _ref19 : null,
- height: (_ref20 = (_b = ref.current) == null ? void 0 : _b.naturalHeight) !== null && _ref20 !== void 0 ? _ref20 : null
+ width: null,
+ height: null
});
- },
+ setMime(null);
+ return;
+ }
+ fetch(src, {
+ method: "HEAD"
+ }).then(response => {
+ setMime(response.headers.get("Content-Type"));
+ }).catch(() => {
+ setMime(null);
+ });
+ };
+ t2 = [src];
+ $[1] = src;
+ $[2] = t1;
+ $[3] = t2;
+ } else {
+ t1 = $[2];
+ t2 = $[3];
+ }
+ React.useEffect(t1, t2);
+ let t3;
+ if ($[4] !== dimensions.height || $[5] !== dimensions.width || $[6] !== mime) {
+ t3 = dimensions.width !== null && dimensions.height !== null ? /* @__PURE__ */jsxRuntime.jsxs("div", {
+ children: [dimensions.width, "x", dimensions.height, mime === null ? null : " " + mime]
+ }) : null;
+ $[4] = dimensions.height;
+ $[5] = dimensions.width;
+ $[6] = mime;
+ $[7] = t3;
+ } else {
+ t3 = $[7];
+ }
+ const dims = t3;
+ let t4;
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
+ t4 = () => {
+ var _ref19, _ref20;
+ var _a2, _b;
+ setDimensions({
+ width: (_ref19 = (_a2 = ref.current) == null ? void 0 : _a2.naturalWidth) !== null && _ref19 !== void 0 ? _ref19 : null,
+ height: (_ref20 = (_b = ref.current) == null ? void 0 : _b.naturalHeight) !== null && _ref20 !== void 0 ? _ref20 : null
+ });
+ };
+ $[8] = t4;
+ } else {
+ t4 = $[8];
+ }
+ let t5;
+ if ($[9] !== src) {
+ t5 = /* @__PURE__ */jsxRuntime.jsx("img", {
+ onLoad: t4,
ref,
src
- }), dims]
- });
+ });
+ $[9] = src;
+ $[10] = t5;
+ } else {
+ t5 = $[10];
+ }
+ let t6;
+ if ($[11] !== dims || $[12] !== t5) {
+ t6 = /* @__PURE__ */jsxRuntime.jsxs("div", {
+ children: [t5, dims]
+ });
+ $[11] = dims;
+ $[12] = t5;
+ $[13] = t6;
+ } else {
+ t6 = $[13];
+ }
+ return t6;
}
ImagePreview.shouldRender = function shouldRender(token) {
const url = tokenToURL(token);
@@ -73592,513 +82255,1050 @@ function isImageURL(url) {
return /\.(bmp|gif|jpe?g|png|svg|webp)$/.test(url.pathname);
}
function QueryEditor(props) {
+ const $ = reactCompilerRuntime.c(2);
const ref = useQueryEditor(props, QueryEditor);
- return /* @__PURE__ */jsxRuntime.jsx("div", {
- className: "graphiql-editor",
- ref
+ let t0;
+ if ($[0] !== ref) {
+ t0 = /* @__PURE__ */jsxRuntime.jsx("div", {
+ className: "graphiql-editor",
+ ref
+ });
+ $[0] = ref;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ return t0;
+}
+function importCodeMirrorImports() {
+ return importCodeMirror([Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/fold/foldgutter.js */ "../../../node_modules/codemirror/addon/fold/foldgutter.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/fold/brace-fold.js */ "../../../node_modules/codemirror/addon/fold/brace-fold.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/dialog/dialog.js */ "../../../node_modules/codemirror/addon/dialog/dialog.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/search/search.js */ "../../../node_modules/codemirror/addon/search/search.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/search/searchcursor.js */ "../../../node_modules/codemirror/addon/search/searchcursor.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/addon/search/jump-to-line.js */ "../../../node_modules/codemirror/addon/search/jump-to-line.js"))), // @ts-expect-error
+ Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror/keymap/sublime.js */ "../../../node_modules/codemirror/keymap/sublime.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/results/mode.js */ "../../codemirror-graphql/esm/results/mode.js"))), Promise.resolve().then(() => _interopRequireWildcard(__webpack_require__(/*! codemirror-graphql/esm/utils/info-addon.js */ "../../codemirror-graphql/esm/utils/info-addon.js")))], {
+ useCommonAddons: false
});
}
-function useResponseEditor({
- responseTooltip,
- editorTheme = DEFAULT_EDITOR_THEME,
- keyMap = DEFAULT_KEY_MAP
-} = {}, caller) {
+const _useResponseEditor = useResponseEditor;
+function useResponseEditor(t0, caller) {
+ const $ = reactCompilerRuntime.c(19);
+ let t1;
+ if ($[0] !== t0) {
+ t1 = t0 === void 0 ? {} : t0;
+ $[0] = t0;
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
+ const {
+ responseTooltip,
+ editorTheme: t2,
+ keyMap: t3
+ } = t1;
+ const editorTheme = t2 === void 0 ? DEFAULT_EDITOR_THEME : t2;
+ const keyMap = t3 === void 0 ? DEFAULT_KEY_MAP : t3;
+ const t4 = caller || _useResponseEditor;
+ let t5;
+ if ($[2] !== t4) {
+ t5 = {
+ nonNull: true,
+ caller: t4
+ };
+ $[2] = t4;
+ $[3] = t5;
+ } else {
+ t5 = $[3];
+ }
const {
fetchError,
validationErrors
- } = useSchemaContext({
- nonNull: true,
- caller: caller || useResponseEditor
- });
+ } = useSchemaContext(t5);
+ const t6 = caller || _useResponseEditor;
+ let t7;
+ if ($[4] !== t6) {
+ t7 = {
+ nonNull: true,
+ caller: t6
+ };
+ $[4] = t6;
+ $[5] = t7;
+ } else {
+ t7 = $[5];
+ }
const {
initialResponse,
responseEditor,
setResponseEditor
- } = useEditorContext({
- nonNull: true,
- caller: caller || useResponseEditor
- });
+ } = useEditorContext(t7);
const ref = React.useRef(null);
const responseTooltipRef = React.useRef(responseTooltip);
- React.useEffect(() => {
- responseTooltipRef.current = responseTooltip;
- }, [responseTooltip]);
- React.useEffect(() => {
- let isActive = true;
- void importCodeMirror([Promise.resolve().then(() => __webpack_require__(/*! ./foldgutter.cjs.js */ "../../graphiql-react/dist/foldgutter.cjs.js")).then(n => n.foldgutter), Promise.resolve().then(() => __webpack_require__(/*! ./brace-fold.cjs.js */ "../../graphiql-react/dist/brace-fold.cjs.js")).then(n => n.braceFold), Promise.resolve().then(() => __webpack_require__(/*! ./dialog.cjs.js */ "../../graphiql-react/dist/dialog.cjs.js")).then(n => n.dialog), Promise.resolve().then(() => __webpack_require__(/*! ./search.cjs.js */ "../../graphiql-react/dist/search.cjs.js")).then(n => n.search), Promise.resolve().then(() => __webpack_require__(/*! ./searchcursor.cjs.js */ "../../graphiql-react/dist/searchcursor.cjs.js")).then(n => n.searchcursor), Promise.resolve().then(() => __webpack_require__(/*! ./jump-to-line.cjs.js */ "../../graphiql-react/dist/jump-to-line.cjs.js")).then(n => n.jumpToLine),
- // @ts-expect-error
- Promise.resolve().then(() => __webpack_require__(/*! ./sublime.cjs.js */ "../../graphiql-react/dist/sublime.cjs.js")).then(n => n.sublime), Promise.resolve().then(() => __webpack_require__(/*! ./mode.cjs3.js */ "../../graphiql-react/dist/mode.cjs3.js")), Promise.resolve().then(() => __webpack_require__(/*! ./info-addon.cjs.js */ "../../graphiql-react/dist/info-addon.cjs.js"))], {
- useCommonAddons: false
- }).then(CodeMirror => {
- if (!isActive) {
- return;
- }
- const tooltipDiv = document.createElement("div");
- CodeMirror.registerHelper("info", "graphql-results", (token, _options, _cm, pos) => {
- const infoElements = [];
- const ResponseTooltipComponent = responseTooltipRef.current;
- if (ResponseTooltipComponent) {
- infoElements.push( /* @__PURE__ */jsxRuntime.jsx(ResponseTooltipComponent, {
- pos,
- token
- }));
- }
- if (ImagePreview.shouldRender(token)) {
- infoElements.push( /* @__PURE__ */jsxRuntime.jsx(ImagePreview, {
- token
- }, "image-preview"));
- }
- if (!infoElements.length) {
- ReactDOM.unmountComponentAtNode(tooltipDiv);
- return null;
- }
- ReactDOM.render(infoElements, tooltipDiv);
- return tooltipDiv;
- });
- const container = ref.current;
- if (!container) {
- return;
- }
- const newEditor = CodeMirror(container, {
- value: initialResponse,
- lineWrapping: true,
- readOnly: true,
- theme: editorTheme,
- mode: "graphql-results",
- foldGutter: true,
- gutters: ["CodeMirror-foldgutter"],
- // @ts-expect-error
- info: true,
- extraKeys: commonKeys
- });
- setResponseEditor(newEditor);
- });
- return () => {
- isActive = false;
+ let t8;
+ let t9;
+ if ($[6] !== responseTooltip) {
+ t8 = () => {
+ responseTooltipRef.current = responseTooltip;
};
- }, [editorTheme, initialResponse, setResponseEditor]);
+ t9 = [responseTooltip];
+ $[6] = responseTooltip;
+ $[7] = t8;
+ $[8] = t9;
+ } else {
+ t8 = $[7];
+ t9 = $[8];
+ }
+ React.useEffect(t8, t9);
+ let t10;
+ let t11;
+ if ($[9] !== editorTheme || $[10] !== initialResponse || $[11] !== setResponseEditor) {
+ t10 = () => {
+ let isActive;
+ isActive = true;
+ importCodeMirrorImports().then(CodeMirror => {
+ if (!isActive) {
+ return;
+ }
+ const tooltipDiv = document.createElement("div");
+ CodeMirror.registerHelper("info", "graphql-results", (token, _options, _cm, pos) => {
+ const infoElements = [];
+ const ResponseTooltipComponent = responseTooltipRef.current;
+ if (ResponseTooltipComponent) {
+ infoElements.push( /* @__PURE__ */jsxRuntime.jsx(ResponseTooltipComponent, {
+ pos,
+ token
+ }));
+ }
+ if (ImagePreview.shouldRender(token)) {
+ infoElements.push( /* @__PURE__ */jsxRuntime.jsx(ImagePreview, {
+ token
+ }, "image-preview"));
+ }
+ if (!infoElements.length) {
+ ReactDOM.unmountComponentAtNode(tooltipDiv);
+ return null;
+ }
+ ReactDOM.render(infoElements, tooltipDiv);
+ return tooltipDiv;
+ });
+ const container = ref.current;
+ if (!container) {
+ return;
+ }
+ const newEditor = CodeMirror(container, {
+ value: initialResponse,
+ lineWrapping: true,
+ readOnly: true,
+ theme: editorTheme,
+ mode: "graphql-results",
+ foldGutter: true,
+ gutters: ["CodeMirror-foldgutter"],
+ info: true,
+ extraKeys: commonKeys
+ });
+ setResponseEditor(newEditor);
+ });
+ return () => {
+ isActive = false;
+ };
+ };
+ t11 = [editorTheme, initialResponse, setResponseEditor];
+ $[9] = editorTheme;
+ $[10] = initialResponse;
+ $[11] = setResponseEditor;
+ $[12] = t10;
+ $[13] = t11;
+ } else {
+ t10 = $[12];
+ t11 = $[13];
+ }
+ React.useEffect(t10, t11);
useSynchronizeOption(responseEditor, "keyMap", keyMap);
- React.useEffect(() => {
- if (fetchError) {
- responseEditor == null ? void 0 : responseEditor.setValue(fetchError);
- }
- if (validationErrors.length > 0) {
- responseEditor == null ? void 0 : responseEditor.setValue(toolkit.formatError(validationErrors));
- }
- }, [responseEditor, fetchError, validationErrors]);
+ let t12;
+ let t13;
+ if ($[14] !== fetchError || $[15] !== responseEditor || $[16] !== validationErrors) {
+ t12 = () => {
+ if (fetchError) {
+ responseEditor == null ? void 0 : responseEditor.setValue(fetchError);
+ }
+ if (validationErrors.length > 0) {
+ responseEditor == null ? void 0 : responseEditor.setValue(toolkit.formatError(validationErrors));
+ }
+ };
+ t13 = [responseEditor, fetchError, validationErrors];
+ $[14] = fetchError;
+ $[15] = responseEditor;
+ $[16] = validationErrors;
+ $[17] = t12;
+ $[18] = t13;
+ } else {
+ t12 = $[17];
+ t13 = $[18];
+ }
+ React.useEffect(t12, t13);
return ref;
}
function ResponseEditor(props) {
+ const $ = reactCompilerRuntime.c(2);
const ref = useResponseEditor(props, ResponseEditor);
- return /* @__PURE__ */jsxRuntime.jsx("section", {
- className: "result-window",
- "aria-label": "Result Window",
- "aria-live": "polite",
- "aria-atomic": "true",
- ref
- });
+ let t0;
+ if ($[0] !== ref) {
+ t0 = /* @__PURE__ */jsxRuntime.jsx("section", {
+ className: "result-window",
+ "aria-label": "Result Window",
+ "aria-live": "polite",
+ "aria-atomic": "true",
+ ref
+ });
+ $[0] = ref;
+ $[1] = t0;
+ } else {
+ t0 = $[1];
+ }
+ return t0;
}
-function VariableEditor({
- isHidden,
- ...hookArgs
-}) {
+function VariableEditor(t0) {
+ const $ = reactCompilerRuntime.c(13);
+ let hookArgs;
+ let isHidden;
+ if ($[0] !== t0) {
+ ({
+ isHidden,
+ ...hookArgs
+ } = t0);
+ $[0] = t0;
+ $[1] = hookArgs;
+ $[2] = isHidden;
+ } else {
+ hookArgs = $[1];
+ isHidden = $[2];
+ }
+ let t1;
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = {
+ nonNull: true,
+ caller: VariableEditor
+ };
+ $[3] = t1;
+ } else {
+ t1 = $[3];
+ }
const {
variableEditor
- } = useEditorContext({
- nonNull: true,
- caller: VariableEditor
- });
+ } = useEditorContext(t1);
const ref = useVariableEditor(hookArgs, VariableEditor);
- React.useEffect(() => {
- if (variableEditor && !isHidden) {
- variableEditor.refresh();
- }
- }, [variableEditor, isHidden]);
- return /* @__PURE__ */jsxRuntime.jsx("div", {
- className: clsx.clsx("graphiql-editor", isHidden && "hidden"),
- ref
- });
+ let t2;
+ let t3;
+ if ($[4] !== isHidden || $[5] !== variableEditor) {
+ t2 = () => {
+ if (variableEditor && !isHidden) {
+ variableEditor.refresh();
+ }
+ };
+ t3 = [variableEditor, isHidden];
+ $[4] = isHidden;
+ $[5] = variableEditor;
+ $[6] = t2;
+ $[7] = t3;
+ } else {
+ t2 = $[6];
+ t3 = $[7];
+ }
+ React.useEffect(t2, t3);
+ const t4 = isHidden && "hidden";
+ let t5;
+ if ($[8] !== t4) {
+ t5 = clsx.clsx("graphiql-editor", t4);
+ $[8] = t4;
+ $[9] = t5;
+ } else {
+ t5 = $[9];
+ }
+ let t6;
+ if ($[10] !== ref || $[11] !== t5) {
+ t6 = /* @__PURE__ */jsxRuntime.jsx("div", {
+ className: t5,
+ ref
+ });
+ $[10] = ref;
+ $[11] = t5;
+ $[12] = t6;
+ } else {
+ t6 = $[12];
+ }
+ return t6;
}
-function GraphiQLProvider({
- children,
- dangerouslyAssumeSchemaIsValid,
- defaultQuery,
- defaultHeaders,
- defaultTabs,
- externalFragments,
- fetcher,
- getDefaultFieldNames,
- headers,
- inputValueDeprecation,
- introspectionQueryName,
- maxHistoryLength,
- onEditOperationName,
- onSchemaChange,
- onTabChange,
- onTogglePluginVisibility,
- operationName,
- plugins,
- query,
- response,
- schema,
- schemaDescription,
- shouldPersistHeaders,
- storage,
- validationRules,
- variables,
- visiblePlugin
-}) {
- return /* @__PURE__ */jsxRuntime.jsx(StorageContextProvider, {
+function GraphiQLProvider(t0) {
+ const $ = reactCompilerRuntime.c(39);
+ const {
+ children,
+ dangerouslyAssumeSchemaIsValid,
+ defaultQuery,
+ defaultHeaders,
+ defaultTabs,
+ externalFragments,
+ fetcher,
+ getDefaultFieldNames,
+ headers,
+ inputValueDeprecation,
+ introspectionQueryName,
+ maxHistoryLength,
+ onEditOperationName,
+ onSchemaChange,
+ onTabChange,
+ onTogglePluginVisibility,
+ operationName,
+ plugins,
+ query,
+ response,
+ schema,
+ schemaDescription,
+ shouldPersistHeaders,
storage,
- children: /* @__PURE__ */jsxRuntime.jsx(HistoryContextProvider, {
- maxHistoryLength,
- children: /* @__PURE__ */jsxRuntime.jsx(EditorContextProvider, {
- defaultQuery,
- defaultHeaders,
- defaultTabs,
- externalFragments,
- headers,
- onEditOperationName,
- onTabChange,
- query,
- response,
- shouldPersistHeaders,
- validationRules,
- variables,
- children: /* @__PURE__ */jsxRuntime.jsx(SchemaContextProvider, {
- dangerouslyAssumeSchemaIsValid,
- fetcher,
- inputValueDeprecation,
- introspectionQueryName,
- onSchemaChange,
- schema,
- schemaDescription,
- children: /* @__PURE__ */jsxRuntime.jsx(ExecutionContextProvider, {
- getDefaultFieldNames,
- fetcher,
- operationName,
- children: /* @__PURE__ */jsxRuntime.jsx(ExplorerContextProvider, {
- children: /* @__PURE__ */jsxRuntime.jsx(PluginContextProvider, {
- onTogglePluginVisibility,
- plugins,
- visiblePlugin,
- children
- })
- })
- })
- })
+ validationRules,
+ variables,
+ visiblePlugin
+ } = t0;
+ let t1;
+ if ($[0] !== children || $[1] !== onTogglePluginVisibility || $[2] !== plugins || $[3] !== visiblePlugin) {
+ t1 = /* @__PURE__ */jsxRuntime.jsx(ExplorerContextProvider, {
+ children: /* @__PURE__ */jsxRuntime.jsx(PluginContextProvider, {
+ onTogglePluginVisibility,
+ plugins,
+ visiblePlugin,
+ children
})
- })
- });
+ });
+ $[0] = children;
+ $[1] = onTogglePluginVisibility;
+ $[2] = plugins;
+ $[3] = visiblePlugin;
+ $[4] = t1;
+ } else {
+ t1 = $[4];
+ }
+ let t2;
+ if ($[5] !== fetcher || $[6] !== getDefaultFieldNames || $[7] !== operationName || $[8] !== t1) {
+ t2 = /* @__PURE__ */jsxRuntime.jsx(ExecutionContextProvider, {
+ getDefaultFieldNames,
+ fetcher,
+ operationName,
+ children: t1
+ });
+ $[5] = fetcher;
+ $[6] = getDefaultFieldNames;
+ $[7] = operationName;
+ $[8] = t1;
+ $[9] = t2;
+ } else {
+ t2 = $[9];
+ }
+ let t3;
+ if ($[10] !== dangerouslyAssumeSchemaIsValid || $[11] !== fetcher || $[12] !== inputValueDeprecation || $[13] !== introspectionQueryName || $[14] !== onSchemaChange || $[15] !== schema || $[16] !== schemaDescription || $[17] !== t2) {
+ t3 = /* @__PURE__ */jsxRuntime.jsx(SchemaContextProvider, {
+ dangerouslyAssumeSchemaIsValid,
+ fetcher,
+ inputValueDeprecation,
+ introspectionQueryName,
+ onSchemaChange,
+ schema,
+ schemaDescription,
+ children: t2
+ });
+ $[10] = dangerouslyAssumeSchemaIsValid;
+ $[11] = fetcher;
+ $[12] = inputValueDeprecation;
+ $[13] = introspectionQueryName;
+ $[14] = onSchemaChange;
+ $[15] = schema;
+ $[16] = schemaDescription;
+ $[17] = t2;
+ $[18] = t3;
+ } else {
+ t3 = $[18];
+ }
+ let t4;
+ if ($[19] !== defaultHeaders || $[20] !== defaultQuery || $[21] !== defaultTabs || $[22] !== externalFragments || $[23] !== headers || $[24] !== onEditOperationName || $[25] !== onTabChange || $[26] !== query || $[27] !== response || $[28] !== shouldPersistHeaders || $[29] !== t3 || $[30] !== validationRules || $[31] !== variables) {
+ t4 = /* @__PURE__ */jsxRuntime.jsx(EditorContextProvider, {
+ defaultQuery,
+ defaultHeaders,
+ defaultTabs,
+ externalFragments,
+ headers,
+ onEditOperationName,
+ onTabChange,
+ query,
+ response,
+ shouldPersistHeaders,
+ validationRules,
+ variables,
+ children: t3
+ });
+ $[19] = defaultHeaders;
+ $[20] = defaultQuery;
+ $[21] = defaultTabs;
+ $[22] = externalFragments;
+ $[23] = headers;
+ $[24] = onEditOperationName;
+ $[25] = onTabChange;
+ $[26] = query;
+ $[27] = response;
+ $[28] = shouldPersistHeaders;
+ $[29] = t3;
+ $[30] = validationRules;
+ $[31] = variables;
+ $[32] = t4;
+ } else {
+ t4 = $[32];
+ }
+ let t5;
+ if ($[33] !== maxHistoryLength || $[34] !== t4) {
+ t5 = /* @__PURE__ */jsxRuntime.jsx(HistoryContextProvider, {
+ maxHistoryLength,
+ children: t4
+ });
+ $[33] = maxHistoryLength;
+ $[34] = t4;
+ $[35] = t5;
+ } else {
+ t5 = $[35];
+ }
+ let t6;
+ if ($[36] !== storage || $[37] !== t5) {
+ t6 = /* @__PURE__ */jsxRuntime.jsx(StorageContextProvider, {
+ storage,
+ children: t5
+ });
+ $[36] = storage;
+ $[37] = t5;
+ $[38] = t6;
+ } else {
+ t6 = $[38];
+ }
+ return t6;
}
-function useTheme(defaultTheme = null) {
+function useTheme(t0) {
+ const $ = reactCompilerRuntime.c(11);
+ const defaultTheme = t0 === void 0 ? null : t0;
const storageContext = useStorageContext();
- const [theme, setThemeInternal] = React.useState(() => {
- if (!storageContext) {
- return null;
- }
- const stored = storageContext.get(STORAGE_KEY);
- switch (stored) {
- case "light":
- return "light";
- case "dark":
- return "dark";
- default:
- if (typeof stored === "string") {
- storageContext.set(STORAGE_KEY, "");
- }
- return defaultTheme;
- }
- });
- React.useLayoutEffect(() => {
- if (typeof window === "undefined") {
- return;
- }
- document.body.classList.remove("graphiql-light", "graphiql-dark");
- if (theme) {
- document.body.classList.add(`graphiql-${theme}`);
- }
- }, [theme]);
- const setTheme = React.useCallback(newTheme => {
- storageContext == null ? void 0 : storageContext.set(STORAGE_KEY, newTheme || "");
- setThemeInternal(newTheme);
- }, [storageContext]);
- return React.useMemo(() => ({
- theme,
- setTheme
- }), [theme, setTheme]);
+ let t1;
+ if ($[0] !== defaultTheme || $[1] !== storageContext) {
+ t1 = () => {
+ if (!storageContext) {
+ return null;
+ }
+ const stored = storageContext.get(STORAGE_KEY);
+ switch (stored) {
+ case "light":
+ {
+ return "light";
+ }
+ case "dark":
+ {
+ return "dark";
+ }
+ default:
+ {
+ if (typeof stored === "string") {
+ storageContext.set(STORAGE_KEY, "");
+ }
+ return defaultTheme;
+ }
+ }
+ };
+ $[0] = defaultTheme;
+ $[1] = storageContext;
+ $[2] = t1;
+ } else {
+ t1 = $[2];
+ }
+ const [theme, setThemeInternal] = React.useState(t1);
+ let t2;
+ let t3;
+ if ($[3] !== theme) {
+ t2 = () => {
+ if (typeof window === "undefined") {
+ return;
+ }
+ document.body.classList.remove("graphiql-light", "graphiql-dark");
+ if (theme) {
+ document.body.classList.add(`graphiql-${theme}`);
+ }
+ };
+ t3 = [theme];
+ $[3] = theme;
+ $[4] = t2;
+ $[5] = t3;
+ } else {
+ t2 = $[4];
+ t3 = $[5];
+ }
+ React.useLayoutEffect(t2, t3);
+ let t4;
+ if ($[6] !== storageContext) {
+ t4 = newTheme => {
+ storageContext == null ? void 0 : storageContext.set(STORAGE_KEY, newTheme || "");
+ setThemeInternal(newTheme);
+ };
+ $[6] = storageContext;
+ $[7] = t4;
+ } else {
+ t4 = $[7];
+ }
+ const setTheme = t4;
+ let t5;
+ if ($[8] !== setTheme || $[9] !== theme) {
+ t5 = {
+ theme,
+ setTheme
+ };
+ $[8] = setTheme;
+ $[9] = theme;
+ $[10] = t5;
+ } else {
+ t5 = $[10];
+ }
+ return t5;
}
const STORAGE_KEY = "theme";
-function useDragResize({
- defaultSizeRelation = DEFAULT_FLEX,
- direction,
- initiallyHidden,
- onHiddenElementChange,
- sizeThresholdFirst = 100,
- sizeThresholdSecond = 100,
- storageKey
-}) {
+function useDragResize(t0) {
+ const $ = reactCompilerRuntime.c(31);
+ const {
+ defaultSizeRelation: t1,
+ direction,
+ initiallyHidden,
+ onHiddenElementChange,
+ sizeThresholdFirst: t2,
+ sizeThresholdSecond: t3,
+ storageKey
+ } = t0;
+ const defaultSizeRelation = t1 === void 0 ? DEFAULT_FLEX : t1;
+ const sizeThresholdFirst = t2 === void 0 ? 100 : t2;
+ const sizeThresholdSecond = t3 === void 0 ? 100 : t3;
const storage = useStorageContext();
- const store = React.useMemo(() => debounce(500, value => {
- if (storageKey) {
- storage == null ? void 0 : storage.set(storageKey, value);
- }
- }), [storage, storageKey]);
- const [hiddenElement, setHiddenElement] = React.useState(() => {
- const storedValue = storageKey && (storage == null ? void 0 : storage.get(storageKey));
- if (storedValue === HIDE_FIRST || initiallyHidden === "first") {
- return "first";
- }
- if (storedValue === HIDE_SECOND || initiallyHidden === "second") {
- return "second";
- }
- return null;
- });
- const setHiddenElementWithCallback = React.useCallback(element => {
- if (element !== hiddenElement) {
- setHiddenElement(element);
- onHiddenElementChange == null ? void 0 : onHiddenElementChange(element);
- }
- }, [hiddenElement, onHiddenElementChange]);
+ let t4;
+ if ($[0] !== storage || $[1] !== storageKey) {
+ t4 = debounce(500, value => {
+ if (storageKey) {
+ storage == null ? void 0 : storage.set(storageKey, value);
+ }
+ });
+ $[0] = storage;
+ $[1] = storageKey;
+ $[2] = t4;
+ } else {
+ t4 = $[2];
+ }
+ const store = t4;
+ let t5;
+ if ($[3] !== initiallyHidden || $[4] !== storage || $[5] !== storageKey) {
+ t5 = () => {
+ const storedValue = storageKey && (storage == null ? void 0 : storage.get(storageKey));
+ if (storedValue === HIDE_FIRST || initiallyHidden === "first") {
+ return "first";
+ }
+ if (storedValue === HIDE_SECOND || initiallyHidden === "second") {
+ return "second";
+ }
+ return null;
+ };
+ $[3] = initiallyHidden;
+ $[4] = storage;
+ $[5] = storageKey;
+ $[6] = t5;
+ } else {
+ t5 = $[6];
+ }
+ const [hiddenElement, setHiddenElement] = React.useState(t5);
+ let t6;
+ if ($[7] !== hiddenElement || $[8] !== onHiddenElementChange) {
+ t6 = element => {
+ if (element !== hiddenElement) {
+ setHiddenElement(element);
+ onHiddenElementChange == null ? void 0 : onHiddenElementChange(element);
+ }
+ };
+ $[7] = hiddenElement;
+ $[8] = onHiddenElementChange;
+ $[9] = t6;
+ } else {
+ t6 = $[9];
+ }
+ const setHiddenElementWithCallback = t6;
const firstRef = React.useRef(null);
const dragBarRef = React.useRef(null);
const secondRef = React.useRef(null);
const defaultFlexRef = React.useRef(`${defaultSizeRelation}`);
- React.useLayoutEffect(() => {
- const storedValue = storageKey && (storage == null ? void 0 : storage.get(storageKey)) || defaultFlexRef.current;
- if (firstRef.current) {
- firstRef.current.style.display = "flex";
- firstRef.current.style.flex = storedValue === HIDE_FIRST || storedValue === HIDE_SECOND ? defaultFlexRef.current : storedValue;
- }
- if (secondRef.current) {
- secondRef.current.style.display = "flex";
- secondRef.current.style.flex = "1";
- }
- if (dragBarRef.current) {
- dragBarRef.current.style.display = "flex";
- }
- }, [direction, storage, storageKey]);
- const hide = React.useCallback(resizableElement => {
- const element = resizableElement === "first" ? firstRef.current : secondRef.current;
- if (!element) {
- return;
- }
- element.style.left = "-1000px";
- element.style.position = "absolute";
- element.style.opacity = "0";
- element.style.height = "500px";
- element.style.width = "500px";
- if (firstRef.current) {
- const flex = parseFloat(firstRef.current.style.flex);
- if (!Number.isFinite(flex) || flex < 1) {
- firstRef.current.style.flex = "1";
- }
- }
- }, []);
- const show = React.useCallback(resizableElement => {
- const element = resizableElement === "first" ? firstRef.current : secondRef.current;
- if (!element) {
- return;
- }
- element.style.width = "";
- element.style.height = "";
- element.style.opacity = "";
- element.style.position = "";
- element.style.left = "";
- if (storage && storageKey) {
- const storedValue = storage.get(storageKey);
- if (firstRef.current && storedValue !== HIDE_FIRST && storedValue !== HIDE_SECOND) {
- firstRef.current.style.flex = storedValue || defaultFlexRef.current;
- }
- }
- }, [storage, storageKey]);
- React.useLayoutEffect(() => {
- if (hiddenElement === "first") {
- hide("first");
- } else {
- show("first");
- }
- if (hiddenElement === "second") {
- hide("second");
- } else {
- show("second");
- }
- }, [hiddenElement, hide, show]);
- React.useEffect(() => {
- if (!dragBarRef.current || !firstRef.current || !secondRef.current) {
- return;
- }
- const dragBarContainer = dragBarRef.current;
- const firstContainer = firstRef.current;
- const wrapper = firstContainer.parentElement;
- const eventProperty = direction === "horizontal" ? "clientX" : "clientY";
- const rectProperty = direction === "horizontal" ? "left" : "top";
- const adjacentRectProperty = direction === "horizontal" ? "right" : "bottom";
- const sizeProperty = direction === "horizontal" ? "clientWidth" : "clientHeight";
- function handleMouseDown(downEvent) {
- downEvent.preventDefault();
- const offset = downEvent[eventProperty] - dragBarContainer.getBoundingClientRect()[rectProperty];
- function handleMouseMove(moveEvent) {
- if (moveEvent.buttons === 0) {
- return handleMouseUp();
- }
- const firstSize = moveEvent[eventProperty] - wrapper.getBoundingClientRect()[rectProperty] - offset;
- const secondSize = wrapper.getBoundingClientRect()[adjacentRectProperty] - moveEvent[eventProperty] + offset - dragBarContainer[sizeProperty];
- if (firstSize < sizeThresholdFirst) {
- setHiddenElementWithCallback("first");
- store(HIDE_FIRST);
- } else if (secondSize < sizeThresholdSecond) {
- setHiddenElementWithCallback("second");
- store(HIDE_SECOND);
- } else {
- setHiddenElementWithCallback(null);
- const newFlex = `${firstSize / secondSize}`;
- firstContainer.style.flex = newFlex;
- store(newFlex);
- }
- }
- function handleMouseUp() {
- document.removeEventListener("mousemove", handleMouseMove);
- document.removeEventListener("mouseup", handleMouseUp);
- }
- document.addEventListener("mousemove", handleMouseMove);
- document.addEventListener("mouseup", handleMouseUp);
- }
- dragBarContainer.addEventListener("mousedown", handleMouseDown);
- function reset() {
+ let t7;
+ if ($[10] !== storage || $[11] !== storageKey) {
+ t7 = () => {
+ const storedValue_0 = storageKey && (storage == null ? void 0 : storage.get(storageKey)) || defaultFlexRef.current;
if (firstRef.current) {
- firstRef.current.style.flex = defaultFlexRef.current;
+ firstRef.current.style.display = "flex";
+ firstRef.current.style.flex = storedValue_0 === HIDE_FIRST || storedValue_0 === HIDE_SECOND ? defaultFlexRef.current : storedValue_0;
+ }
+ if (secondRef.current) {
+ secondRef.current.style.display = "flex";
+ secondRef.current.style.flex = "1";
+ }
+ if (dragBarRef.current) {
+ dragBarRef.current.style.display = "flex";
}
- store(defaultFlexRef.current);
- setHiddenElementWithCallback(null);
- }
- dragBarContainer.addEventListener("dblclick", reset);
- return () => {
- dragBarContainer.removeEventListener("mousedown", handleMouseDown);
- dragBarContainer.removeEventListener("dblclick", reset);
};
- }, [direction, setHiddenElementWithCallback, sizeThresholdFirst, sizeThresholdSecond, store]);
- return React.useMemo(() => ({
- dragBarRef,
- hiddenElement,
- firstRef,
- setHiddenElement,
- secondRef
- }), [hiddenElement, setHiddenElement]);
+ $[10] = storage;
+ $[11] = storageKey;
+ $[12] = t7;
+ } else {
+ t7 = $[12];
+ }
+ let t8;
+ if ($[13] !== direction || $[14] !== storage || $[15] !== storageKey) {
+ t8 = [direction, storage, storageKey];
+ $[13] = direction;
+ $[14] = storage;
+ $[15] = storageKey;
+ $[16] = t8;
+ } else {
+ t8 = $[16];
+ }
+ React.useLayoutEffect(t7, t8);
+ let t10;
+ let t9;
+ if ($[17] !== hiddenElement || $[18] !== storage || $[19] !== storageKey) {
+ t9 = () => {
+ const hide = resizableElement => {
+ const element_0 = resizableElement === "first" ? firstRef.current : secondRef.current;
+ if (!element_0) {
+ return;
+ }
+ element_0.style.left = "-1000px";
+ element_0.style.position = "absolute";
+ element_0.style.opacity = "0";
+ element_0.style.height = "500px";
+ element_0.style.width = "500px";
+ if (firstRef.current) {
+ const flex = parseFloat(firstRef.current.style.flex);
+ if (!Number.isFinite(flex) || flex < 1) {
+ firstRef.current.style.flex = "1";
+ }
+ }
+ };
+ const show = resizableElement_0 => {
+ const element_1 = resizableElement_0 === "first" ? firstRef.current : secondRef.current;
+ if (!element_1) {
+ return;
+ }
+ element_1.style.width = "";
+ element_1.style.height = "";
+ element_1.style.opacity = "";
+ element_1.style.position = "";
+ element_1.style.left = "";
+ if (storage && storageKey) {
+ const storedValue_1 = storage.get(storageKey);
+ if (firstRef.current && storedValue_1 !== HIDE_FIRST && storedValue_1 !== HIDE_SECOND) {
+ firstRef.current.style.flex = storedValue_1 || defaultFlexRef.current;
+ }
+ }
+ };
+ if (hiddenElement === "first") {
+ hide("first");
+ } else {
+ show("first");
+ }
+ if (hiddenElement === "second") {
+ hide("second");
+ } else {
+ show("second");
+ }
+ };
+ t10 = [hiddenElement, storage, storageKey];
+ $[17] = hiddenElement;
+ $[18] = storage;
+ $[19] = storageKey;
+ $[20] = t10;
+ $[21] = t9;
+ } else {
+ t10 = $[20];
+ t9 = $[21];
+ }
+ React.useLayoutEffect(t9, t10);
+ let t11;
+ let t12;
+ if ($[22] !== direction || $[23] !== setHiddenElementWithCallback || $[24] !== sizeThresholdFirst || $[25] !== sizeThresholdSecond || $[26] !== store) {
+ t11 = () => {
+ if (!dragBarRef.current || !firstRef.current || !secondRef.current) {
+ return;
+ }
+ const dragBarContainer = dragBarRef.current;
+ const firstContainer = firstRef.current;
+ const wrapper = firstContainer.parentElement;
+ const eventProperty = direction === "horizontal" ? "clientX" : "clientY";
+ const rectProperty = direction === "horizontal" ? "left" : "top";
+ const adjacentRectProperty = direction === "horizontal" ? "right" : "bottom";
+ const sizeProperty = direction === "horizontal" ? "clientWidth" : "clientHeight";
+ const handleMouseDown = function handleMouseDown2(downEvent) {
+ downEvent.preventDefault();
+ const offset = downEvent[eventProperty] - dragBarContainer.getBoundingClientRect()[rectProperty];
+ const handleMouseMove = function handleMouseMove2(moveEvent) {
+ if (moveEvent.buttons === 0) {
+ return handleMouseUp();
+ }
+ const firstSize = moveEvent[eventProperty] - wrapper.getBoundingClientRect()[rectProperty] - offset;
+ const secondSize = wrapper.getBoundingClientRect()[adjacentRectProperty] - moveEvent[eventProperty] + offset - dragBarContainer[sizeProperty];
+ if (firstSize < sizeThresholdFirst) {
+ setHiddenElementWithCallback("first");
+ store(HIDE_FIRST);
+ } else {
+ if (secondSize < sizeThresholdSecond) {
+ setHiddenElementWithCallback("second");
+ store(HIDE_SECOND);
+ } else {
+ setHiddenElementWithCallback(null);
+ const newFlex = `${firstSize / secondSize}`;
+ firstContainer.style.flex = newFlex;
+ store(newFlex);
+ }
+ }
+ };
+ function handleMouseUp() {
+ document.removeEventListener("mousemove", handleMouseMove);
+ document.removeEventListener("mouseup", handleMouseUp);
+ }
+ document.addEventListener("mousemove", handleMouseMove);
+ document.addEventListener("mouseup", handleMouseUp);
+ };
+ dragBarContainer.addEventListener("mousedown", handleMouseDown);
+ const reset = function reset2() {
+ if (firstRef.current) {
+ firstRef.current.style.flex = defaultFlexRef.current;
+ }
+ store(defaultFlexRef.current);
+ setHiddenElementWithCallback(null);
+ };
+ dragBarContainer.addEventListener("dblclick", reset);
+ return () => {
+ dragBarContainer.removeEventListener("mousedown", handleMouseDown);
+ dragBarContainer.removeEventListener("dblclick", reset);
+ };
+ };
+ t12 = [direction, setHiddenElementWithCallback, sizeThresholdFirst, sizeThresholdSecond, store];
+ $[22] = direction;
+ $[23] = setHiddenElementWithCallback;
+ $[24] = sizeThresholdFirst;
+ $[25] = sizeThresholdSecond;
+ $[26] = store;
+ $[27] = t11;
+ $[28] = t12;
+ } else {
+ t11 = $[27];
+ t12 = $[28];
+ }
+ React.useEffect(t11, t12);
+ let t13;
+ if ($[29] !== hiddenElement) {
+ t13 = {
+ dragBarRef,
+ hiddenElement,
+ firstRef,
+ setHiddenElement,
+ secondRef
+ };
+ $[29] = hiddenElement;
+ $[30] = t13;
+ } else {
+ t13 = $[30];
+ }
+ return t13;
}
const DEFAULT_FLEX = 1;
const HIDE_FIRST = "hide-first";
const HIDE_SECOND = "hide-second";
-const ToolbarButton = React.forwardRef(({
- label,
- onClick,
- ...props
-}, ref) => {
+const ToolbarButton = React.forwardRef((t0, ref) => {
+ const $ = reactCompilerRuntime.c(19);
+ let label;
+ let onClick;
+ let props;
+ if ($[0] !== t0) {
+ ({
+ label,
+ onClick,
+ ...props
+ } = t0);
+ $[0] = t0;
+ $[1] = label;
+ $[2] = onClick;
+ $[3] = props;
+ } else {
+ label = $[1];
+ onClick = $[2];
+ props = $[3];
+ }
const [error, setError] = React.useState(null);
- const handleClick = React.useCallback(event => {
- try {
- onClick == null ? void 0 : onClick(event);
- setError(null);
- } catch (err) {
- setError(err instanceof Error ? err : new Error(`Toolbar button click failed: ${err}`));
- }
- }, [onClick]);
- return /* @__PURE__ */jsxRuntime.jsx(Tooltip, {
- label,
- children: /* @__PURE__ */jsxRuntime.jsx(UnStyledButton, {
+ let t1;
+ if ($[4] !== onClick) {
+ t1 = event => {
+ try {
+ if (onClick) {
+ onClick(event);
+ }
+ setError(null);
+ } catch (t22) {
+ const err = t22;
+ setError(err instanceof Error ? err : new Error(`Toolbar button click failed: ${err}`));
+ }
+ };
+ $[4] = onClick;
+ $[5] = t1;
+ } else {
+ t1 = $[5];
+ }
+ const handleClick = t1;
+ const t2 = error && "error";
+ let t3;
+ if ($[6] !== props.className || $[7] !== t2) {
+ t3 = clsx.clsx("graphiql-toolbar-button", t2, props.className);
+ $[6] = props.className;
+ $[7] = t2;
+ $[8] = t3;
+ } else {
+ t3 = $[8];
+ }
+ const t4 = error ? error.message : label;
+ const t5 = error ? "true" : props["aria-invalid"];
+ let t6;
+ if ($[9] !== handleClick || $[10] !== props || $[11] !== ref || $[12] !== t3 || $[13] !== t4 || $[14] !== t5) {
+ t6 = /* @__PURE__ */jsxRuntime.jsx(UnStyledButton, {
...props,
ref,
type: "button",
- className: clsx.clsx("graphiql-toolbar-button", error && "error", props.className),
+ className: t3,
onClick: handleClick,
- "aria-label": error ? error.message : label,
- "aria-invalid": error ? "true" : props["aria-invalid"]
- })
- });
+ "aria-label": t4,
+ "aria-invalid": t5
+ });
+ $[9] = handleClick;
+ $[10] = props;
+ $[11] = ref;
+ $[12] = t3;
+ $[13] = t4;
+ $[14] = t5;
+ $[15] = t6;
+ } else {
+ t6 = $[15];
+ }
+ let t7;
+ if ($[16] !== label || $[17] !== t6) {
+ t7 = /* @__PURE__ */jsxRuntime.jsx(Tooltip, {
+ label,
+ children: t6
+ });
+ $[16] = label;
+ $[17] = t6;
+ $[18] = t7;
+ } else {
+ t7 = $[18];
+ }
+ return t7;
});
ToolbarButton.displayName = "ToolbarButton";
function ExecuteButton() {
+ const $ = reactCompilerRuntime.c(19);
+ let t0;
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
+ t0 = {
+ nonNull: true,
+ caller: ExecuteButton
+ };
+ $[0] = t0;
+ } else {
+ t0 = $[0];
+ }
const {
queryEditor,
setOperationName
- } = useEditorContext({
- nonNull: true,
- caller: ExecuteButton
- });
+ } = useEditorContext(t0);
+ let t1;
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
+ t1 = {
+ nonNull: true,
+ caller: ExecuteButton
+ };
+ $[1] = t1;
+ } else {
+ t1 = $[1];
+ }
const {
isFetching,
isSubscribed,
operationName,
run,
stop
- } = useExecutionContext({
- nonNull: true,
- caller: ExecuteButton
- });
- const operations = (queryEditor == null ? void 0 : queryEditor.operations) || [];
+ } = useExecutionContext(t1);
+ let t2;
+ if ($[2] !== (queryEditor == null ? void 0 : queryEditor.operations)) {
+ t2 = (queryEditor == null ? void 0 : queryEditor.operations) || [];
+ $[2] = queryEditor == null ? void 0 : queryEditor.operations;
+ $[3] = t2;
+ } else {
+ t2 = $[3];
+ }
+ const operations = t2;
const hasOptions = operations.length > 1 && typeof operationName !== "string";
const isRunning = isFetching || isSubscribed;
const label = `${isRunning ? "Stop" : "Execute"} query (Ctrl-Enter)`;
- const buttonProps = {
- type: "button",
- className: "graphiql-execute-button",
- children: isRunning ? /* @__PURE__ */jsxRuntime.jsx(StopIcon, {}) : /* @__PURE__ */jsxRuntime.jsx(PlayIcon, {}),
- "aria-label": label
- };
- return hasOptions && !isRunning ? /* @__PURE__ */jsxRuntime.jsxs(DropdownMenu, {
- children: [/* @__PURE__ */jsxRuntime.jsx(Tooltip, {
+ let t3;
+ if ($[4] !== isRunning) {
+ t3 = isRunning ? /* @__PURE__ */jsxRuntime.jsx(StopIcon, {}) : /* @__PURE__ */jsxRuntime.jsx(PlayIcon, {});
+ $[4] = isRunning;
+ $[5] = t3;
+ } else {
+ t3 = $[5];
+ }
+ let t4;
+ if ($[6] !== label || $[7] !== t3) {
+ t4 = {
+ type: "button",
+ className: "graphiql-execute-button",
+ children: t3,
+ "aria-label": label
+ };
+ $[6] = label;
+ $[7] = t3;
+ $[8] = t4;
+ } else {
+ t4 = $[8];
+ }
+ const buttonProps = t4;
+ let t5;
+ if ($[9] !== buttonProps || $[10] !== hasOptions || $[11] !== isRunning || $[12] !== label || $[13] !== operations || $[14] !== queryEditor || $[15] !== run || $[16] !== setOperationName || $[17] !== stop) {
+ t5 = hasOptions && !isRunning ? /* @__PURE__ */jsxRuntime.jsxs(DropdownMenu, {
+ children: [/* @__PURE__ */jsxRuntime.jsx(Tooltip, {
+ label,
+ children: /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Button, {
+ ...buttonProps
+ })
+ }), /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Content, {
+ children: operations.map((operation, i) => {
+ const opName = operation.name ? operation.name.value : ``;
+ return /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Item, {
+ onSelect: () => {
+ var _a;
+ const selectedOperationName = (_a = operation.name) == null ? void 0 : _a.value;
+ if (queryEditor && selectedOperationName && selectedOperationName !== queryEditor.operationName) {
+ setOperationName(selectedOperationName);
+ }
+ run();
+ },
+ children: opName
+ }, `${opName}-${i}`);
+ })
+ })]
+ }) : /* @__PURE__ */jsxRuntime.jsx(Tooltip, {
label,
- children: /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Button, {
- ...buttonProps
- })
- }), /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Content, {
- children: operations.map((operation, i) => {
- const opName = operation.name ? operation.name.value : ``;
- return /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Item, {
- onSelect: () => {
- var _a;
- const selectedOperationName = (_a = operation.name) == null ? void 0 : _a.value;
- if (queryEditor && selectedOperationName && selectedOperationName !== queryEditor.operationName) {
- setOperationName(selectedOperationName);
- }
+ children: /* @__PURE__ */jsxRuntime.jsx("button", {
+ ...buttonProps,
+ onClick: () => {
+ if (isRunning) {
+ stop();
+ } else {
run();
- },
- children: opName
- }, `${opName}-${i}`);
- })
- })]
- }) : /* @__PURE__ */jsxRuntime.jsx(Tooltip, {
- label,
- children: /* @__PURE__ */jsxRuntime.jsx("button", {
- ...buttonProps,
- onClick: () => {
- if (isRunning) {
- stop();
- } else {
- run();
+ }
}
- }
- })
- });
+ })
+ });
+ $[9] = buttonProps;
+ $[10] = hasOptions;
+ $[11] = isRunning;
+ $[12] = label;
+ $[13] = operations;
+ $[14] = queryEditor;
+ $[15] = run;
+ $[16] = setOperationName;
+ $[17] = stop;
+ $[18] = t5;
+ } else {
+ t5 = $[18];
+ }
+ return t5;
}
-const ToolbarMenuRoot = ({
- button,
- children,
- label,
- ...props
-}) => /* @__PURE__ */jsxRuntime.jsxs(DropdownMenu, {
- ...props,
- children: [/* @__PURE__ */jsxRuntime.jsx(Tooltip, {
- label,
- children: /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Button, {
- className: clsx.clsx("graphiql-un-styled graphiql-toolbar-menu", props.className),
+const ToolbarMenuRoot = t0 => {
+ const $ = reactCompilerRuntime.c(20);
+ let button;
+ let children;
+ let label;
+ let props;
+ if ($[0] !== t0) {
+ ({
+ button,
+ children,
+ label,
+ ...props
+ } = t0);
+ $[0] = t0;
+ $[1] = button;
+ $[2] = children;
+ $[3] = label;
+ $[4] = props;
+ } else {
+ button = $[1];
+ children = $[2];
+ label = $[3];
+ props = $[4];
+ }
+ let t1;
+ if ($[5] !== props.className) {
+ t1 = clsx.clsx("graphiql-un-styled graphiql-toolbar-menu", props.className);
+ $[5] = props.className;
+ $[6] = t1;
+ } else {
+ t1 = $[6];
+ }
+ let t2;
+ if ($[7] !== button || $[8] !== label || $[9] !== t1) {
+ t2 = /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Button, {
+ className: t1,
"aria-label": label,
children: button
- })
- }), /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Content, {
- children
- })]
-});
+ });
+ $[7] = button;
+ $[8] = label;
+ $[9] = t1;
+ $[10] = t2;
+ } else {
+ t2 = $[10];
+ }
+ let t3;
+ if ($[11] !== label || $[12] !== t2) {
+ t3 = /* @__PURE__ */jsxRuntime.jsx(Tooltip, {
+ label,
+ children: t2
+ });
+ $[11] = label;
+ $[12] = t2;
+ $[13] = t3;
+ } else {
+ t3 = $[13];
+ }
+ let t4;
+ if ($[14] !== children) {
+ t4 = /* @__PURE__ */jsxRuntime.jsx(DropdownMenu.Content, {
+ children
+ });
+ $[14] = children;
+ $[15] = t4;
+ } else {
+ t4 = $[15];
+ }
+ let t5;
+ if ($[16] !== props || $[17] !== t3 || $[18] !== t4) {
+ t5 = /* @__PURE__ */jsxRuntime.jsxs(DropdownMenu, {
+ ...props,
+ children: [t3, t4]
+ });
+ $[16] = props;
+ $[17] = t3;
+ $[18] = t4;
+ $[19] = t5;
+ } else {
+ t5 = $[19];
+ }
+ return t5;
+};
const ToolbarMenu = createComponentGroup(ToolbarMenuRoot, {
Item: DropdownMenu.Item
});
@@ -74209,4833 +83409,13 @@ exports.useVariablesEditorState = useVariablesEditorState;
/***/ }),
-/***/ "../../graphiql-react/dist/info-addon.cjs.js":
-/*!***************************************************!*\
- !*** ../../graphiql-react/dist/info-addon.cjs.js ***!
- \***************************************************/
-/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-codemirror.CodeMirror.defineOption("info", false, (cm, options, old) => {
- if (old && old !== codemirror.CodeMirror.Init) {
- const oldOnMouseOver = cm.state.info.onMouseOver;
- codemirror.CodeMirror.off(cm.getWrapperElement(), "mouseover", oldOnMouseOver);
- clearTimeout(cm.state.info.hoverTimeout);
- delete cm.state.info;
- }
- if (options) {
- const state = cm.state.info = createState(options);
- state.onMouseOver = onMouseOver.bind(null, cm);
- codemirror.CodeMirror.on(cm.getWrapperElement(), "mouseover", state.onMouseOver);
- }
-});
-function createState(options) {
- return {
- options: options instanceof Function ? {
- render: options
- } : options === true ? {} : options
- };
-}
-function getHoverTime(cm) {
- const {
- options
- } = cm.state.info;
- return (options === null || options === void 0 ? void 0 : options.hoverTime) || 500;
-}
-function onMouseOver(cm, e) {
- const state = cm.state.info;
- const target = e.target || e.srcElement;
- if (!(target instanceof HTMLElement)) {
- return;
- }
- if (target.nodeName !== "SPAN" || state.hoverTimeout !== void 0) {
- return;
- }
- const box = target.getBoundingClientRect();
- const onMouseMove = function () {
- clearTimeout(state.hoverTimeout);
- state.hoverTimeout = setTimeout(onHover, hoverTime);
- };
- const onMouseOut = function () {
- codemirror.CodeMirror.off(document, "mousemove", onMouseMove);
- codemirror.CodeMirror.off(cm.getWrapperElement(), "mouseout", onMouseOut);
- clearTimeout(state.hoverTimeout);
- state.hoverTimeout = void 0;
- };
- const onHover = function () {
- codemirror.CodeMirror.off(document, "mousemove", onMouseMove);
- codemirror.CodeMirror.off(cm.getWrapperElement(), "mouseout", onMouseOut);
- state.hoverTimeout = void 0;
- onMouseHover(cm, box);
- };
- const hoverTime = getHoverTime(cm);
- state.hoverTimeout = setTimeout(onHover, hoverTime);
- codemirror.CodeMirror.on(document, "mousemove", onMouseMove);
- codemirror.CodeMirror.on(cm.getWrapperElement(), "mouseout", onMouseOut);
-}
-function onMouseHover(cm, box) {
- const pos = cm.coordsChar({
- left: (box.left + box.right) / 2,
- top: (box.top + box.bottom) / 2
- }, "window");
- const state = cm.state.info;
- const {
- options
- } = state;
- const render = options.render || cm.getHelper(pos, "info");
- if (render) {
- const token = cm.getTokenAt(pos, true);
- if (token) {
- const info = render(token, options, cm, pos);
- if (info) {
- showPopup(cm, box, info);
- }
- }
- }
-}
-function showPopup(cm, box, info) {
- const popup = document.createElement("div");
- popup.className = "CodeMirror-info";
- popup.append(info);
- document.body.append(popup);
- const popupBox = popup.getBoundingClientRect();
- const popupStyle = window.getComputedStyle(popup);
- const popupWidth = popupBox.right - popupBox.left + parseFloat(popupStyle.marginLeft) + parseFloat(popupStyle.marginRight);
- const popupHeight = popupBox.bottom - popupBox.top + parseFloat(popupStyle.marginTop) + parseFloat(popupStyle.marginBottom);
- let topPos = box.bottom;
- if (popupHeight > window.innerHeight - box.bottom - 15 && box.top > window.innerHeight - box.bottom) {
- topPos = box.top - popupHeight;
- }
- if (topPos < 0) {
- topPos = box.bottom;
- }
- let leftPos = Math.max(0, window.innerWidth - popupWidth - 15);
- if (leftPos > box.left) {
- leftPos = box.left;
- }
- popup.style.opacity = "1";
- popup.style.top = topPos + "px";
- popup.style.left = leftPos + "px";
- let popupTimeout;
- const onMouseOverPopup = function () {
- clearTimeout(popupTimeout);
- };
- const onMouseOut = function () {
- clearTimeout(popupTimeout);
- popupTimeout = setTimeout(hidePopup, 200);
- };
- const hidePopup = function () {
- codemirror.CodeMirror.off(popup, "mouseover", onMouseOverPopup);
- codemirror.CodeMirror.off(popup, "mouseout", onMouseOut);
- codemirror.CodeMirror.off(cm.getWrapperElement(), "mouseout", onMouseOut);
- if (popup.style.opacity) {
- popup.style.opacity = "0";
- setTimeout(() => {
- if (popup.parentNode) {
- popup.remove();
- }
- }, 600);
- } else if (popup.parentNode) {
- popup.remove();
- }
- };
- codemirror.CodeMirror.on(popup, "mouseover", onMouseOverPopup);
- codemirror.CodeMirror.on(popup, "mouseout", onMouseOut);
- codemirror.CodeMirror.on(cm.getWrapperElement(), "mouseout", onMouseOut);
-}
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/info.cjs.js":
-/*!*********************************************!*\
- !*** ../../graphiql-react/dist/info.cjs.js ***!
- \*********************************************/
-/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
-
-
-
-const graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-const SchemaReference = __webpack_require__(/*! ./SchemaReference.cjs.js */ "../../graphiql-react/dist/SchemaReference.cjs.js");
-__webpack_require__(/*! ./info-addon.cjs.js */ "../../graphiql-react/dist/info-addon.cjs.js");
-codemirror.CodeMirror.registerHelper("info", "graphql", (token, options) => {
- var _a;
- if (!options.schema || !token.state) {
- return;
- }
- const {
- kind,
- step
- } = token.state;
- const typeInfo = SchemaReference.getTypeInfo(options.schema, token.state);
- if (kind === "Field" && step === 0 && typeInfo.fieldDef || kind === "AliasedField" && step === 2 && typeInfo.fieldDef || kind === "ObjectField" && step === 0 && typeInfo.fieldDef) {
- const header = document.createElement("div");
- header.className = "CodeMirror-info-header";
- renderField(header, typeInfo, options);
- const into = document.createElement("div");
- into.append(header);
- renderDescription(into, options, typeInfo.fieldDef);
- return into;
- }
- if (kind === "Directive" && step === 1 && typeInfo.directiveDef) {
- const header = document.createElement("div");
- header.className = "CodeMirror-info-header";
- renderDirective(header, typeInfo, options);
- const into = document.createElement("div");
- into.append(header);
- renderDescription(into, options, typeInfo.directiveDef);
- return into;
- }
- if (kind === "Argument" && step === 0 && typeInfo.argDef) {
- const header = document.createElement("div");
- header.className = "CodeMirror-info-header";
- renderArg(header, typeInfo, options);
- const into = document.createElement("div");
- into.append(header);
- renderDescription(into, options, typeInfo.argDef);
- return into;
- }
- if (kind === "EnumValue" && ((_a = typeInfo.enumValue) === null || _a === void 0 ? void 0 : _a.description)) {
- const header = document.createElement("div");
- header.className = "CodeMirror-info-header";
- renderEnumValue(header, typeInfo, options);
- const into = document.createElement("div");
- into.append(header);
- renderDescription(into, options, typeInfo.enumValue);
- return into;
- }
- if (kind === "NamedType" && typeInfo.type && typeInfo.type.description) {
- const header = document.createElement("div");
- header.className = "CodeMirror-info-header";
- renderType(header, typeInfo, options, typeInfo.type);
- const into = document.createElement("div");
- into.append(header);
- renderDescription(into, options, typeInfo.type);
- return into;
- }
-});
-function renderField(into, typeInfo, options) {
- renderQualifiedField(into, typeInfo, options);
- renderTypeAnnotation(into, typeInfo, options, typeInfo.type);
-}
-function renderQualifiedField(into, typeInfo, options) {
- var _a;
- const fieldName = ((_a = typeInfo.fieldDef) === null || _a === void 0 ? void 0 : _a.name) || "";
- text(into, fieldName, "field-name", options, SchemaReference.getFieldReference(typeInfo));
-}
-function renderDirective(into, typeInfo, options) {
- var _a;
- const name = "@" + (((_a = typeInfo.directiveDef) === null || _a === void 0 ? void 0 : _a.name) || "");
- text(into, name, "directive-name", options, SchemaReference.getDirectiveReference(typeInfo));
-}
-function renderArg(into, typeInfo, options) {
- var _a;
- const name = ((_a = typeInfo.argDef) === null || _a === void 0 ? void 0 : _a.name) || "";
- text(into, name, "arg-name", options, SchemaReference.getArgumentReference(typeInfo));
- renderTypeAnnotation(into, typeInfo, options, typeInfo.inputType);
-}
-function renderEnumValue(into, typeInfo, options) {
- var _a;
- const name = ((_a = typeInfo.enumValue) === null || _a === void 0 ? void 0 : _a.name) || "";
- renderType(into, typeInfo, options, typeInfo.inputType);
- text(into, ".");
- text(into, name, "enum-value", options, SchemaReference.getEnumValueReference(typeInfo));
-}
-function renderTypeAnnotation(into, typeInfo, options, t) {
- const typeSpan = document.createElement("span");
- typeSpan.className = "type-name-pill";
- if (t instanceof graphql.GraphQLNonNull) {
- renderType(typeSpan, typeInfo, options, t.ofType);
- text(typeSpan, "!");
- } else if (t instanceof graphql.GraphQLList) {
- text(typeSpan, "[");
- renderType(typeSpan, typeInfo, options, t.ofType);
- text(typeSpan, "]");
- } else {
- text(typeSpan, (t === null || t === void 0 ? void 0 : t.name) || "", "type-name", options, SchemaReference.getTypeReference(typeInfo, t));
- }
- into.append(typeSpan);
-}
-function renderType(into, typeInfo, options, t) {
- if (t instanceof graphql.GraphQLNonNull) {
- renderType(into, typeInfo, options, t.ofType);
- text(into, "!");
- } else if (t instanceof graphql.GraphQLList) {
- text(into, "[");
- renderType(into, typeInfo, options, t.ofType);
- text(into, "]");
- } else {
- text(into, (t === null || t === void 0 ? void 0 : t.name) || "", "type-name", options, SchemaReference.getTypeReference(typeInfo, t));
- }
-}
-function renderDescription(into, options, def) {
- const {
- description
- } = def;
- if (description) {
- const descriptionDiv = document.createElement("div");
- descriptionDiv.className = "info-description";
- if (options.renderDescription) {
- descriptionDiv.innerHTML = options.renderDescription(description);
- } else {
- descriptionDiv.append(document.createTextNode(description));
- }
- into.append(descriptionDiv);
- }
- renderDeprecation(into, options, def);
-}
-function renderDeprecation(into, options, def) {
- const reason = def.deprecationReason;
- if (reason) {
- const deprecationDiv = document.createElement("div");
- deprecationDiv.className = "info-deprecation";
- into.append(deprecationDiv);
- const label = document.createElement("span");
- label.className = "info-deprecation-label";
- label.append(document.createTextNode("Deprecated"));
- deprecationDiv.append(label);
- const reasonDiv = document.createElement("div");
- reasonDiv.className = "info-deprecation-reason";
- if (options.renderDescription) {
- reasonDiv.innerHTML = options.renderDescription(reason);
- } else {
- reasonDiv.append(document.createTextNode(reason));
- }
- deprecationDiv.append(reasonDiv);
- }
-}
-function text(into, content, className = "", options = {
- onClick: null
-}, ref = null) {
- if (className) {
- const {
- onClick
- } = options;
- let node;
- if (onClick) {
- node = document.createElement("a");
- node.href = "javascript:void 0";
- node.addEventListener("click", e => {
- e.preventDefault();
- onClick(ref, e);
- });
- } else {
- node = document.createElement("span");
- }
- node.className = className;
- node.append(document.createTextNode(content));
- into.append(node);
- } else {
- into.append(document.createTextNode(content));
- }
-}
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/javascript.cjs.js":
-/*!***************************************************!*\
- !*** ../../graphiql-react/dist/javascript.cjs.js ***!
- \***************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var javascript$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- CodeMirror.defineMode("javascript", function (config, parserConfig) {
- var indentUnit = config.indentUnit;
- var statementIndent = parserConfig.statementIndent;
- var jsonldMode = parserConfig.jsonld;
- var jsonMode = parserConfig.json || jsonldMode;
- var trackScope = parserConfig.trackScope !== false;
- var isTS = parserConfig.typescript;
- var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
- var keywords = function () {
- function kw(type2) {
- return {
- type: type2,
- style: "keyword"
- };
- }
- var A = kw("keyword a"),
- B = kw("keyword b"),
- C = kw("keyword c"),
- D = kw("keyword d");
- var operator = kw("operator"),
- atom = {
- type: "atom",
- style: "atom"
- };
- return {
- "if": kw("if"),
- "while": A,
- "with": A,
- "else": B,
- "do": B,
- "try": B,
- "finally": B,
- "return": D,
- "break": D,
- "continue": D,
- "new": kw("new"),
- "delete": C,
- "void": C,
- "throw": C,
- "debugger": kw("debugger"),
- "var": kw("var"),
- "const": kw("var"),
- "let": kw("var"),
- "function": kw("function"),
- "catch": kw("catch"),
- "for": kw("for"),
- "switch": kw("switch"),
- "case": kw("case"),
- "default": kw("default"),
- "in": operator,
- "typeof": operator,
- "instanceof": operator,
- "true": atom,
- "false": atom,
- "null": atom,
- "undefined": atom,
- "NaN": atom,
- "Infinity": atom,
- "this": kw("this"),
- "class": kw("class"),
- "super": kw("atom"),
- "yield": C,
- "export": kw("export"),
- "import": kw("import"),
- "extends": C,
- "await": C
- };
- }();
- var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
- var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
- function readRegexp(stream) {
- var escaped = false,
- next,
- inSet = false;
- while ((next = stream.next()) != null) {
- if (!escaped) {
- if (next == "/" && !inSet) return;
- if (next == "[") inSet = true;else if (inSet && next == "]") inSet = false;
- }
- escaped = !escaped && next == "\\";
- }
- }
- var type, content;
- function ret(tp, style, cont2) {
- type = tp;
- content = cont2;
- return style;
- }
- function tokenBase(stream, state) {
- var ch = stream.next();
- if (ch == '"' || ch == "'") {
- state.tokenize = tokenString(ch);
- return state.tokenize(stream, state);
- } else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
- return ret("number", "number");
- } else if (ch == "." && stream.match("..")) {
- return ret("spread", "meta");
- } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
- return ret(ch);
- } else if (ch == "=" && stream.eat(">")) {
- return ret("=>", "operator");
- } else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
- return ret("number", "number");
- } else if (/\d/.test(ch)) {
- stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
- return ret("number", "number");
- } else if (ch == "/") {
- if (stream.eat("*")) {
- state.tokenize = tokenComment;
- return tokenComment(stream, state);
- } else if (stream.eat("/")) {
- stream.skipToEnd();
- return ret("comment", "comment");
- } else if (expressionAllowed(stream, state, 1)) {
- readRegexp(stream);
- stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
- return ret("regexp", "string-2");
- } else {
- stream.eat("=");
- return ret("operator", "operator", stream.current());
- }
- } else if (ch == "`") {
- state.tokenize = tokenQuasi;
- return tokenQuasi(stream, state);
- } else if (ch == "#" && stream.peek() == "!") {
- stream.skipToEnd();
- return ret("meta", "meta");
- } else if (ch == "#" && stream.eatWhile(wordRE)) {
- return ret("variable", "property");
- } else if (ch == "<" && stream.match("!--") || ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start))) {
- stream.skipToEnd();
- return ret("comment", "comment");
- } else if (isOperatorChar.test(ch)) {
- if (ch != ">" || !state.lexical || state.lexical.type != ">") {
- if (stream.eat("=")) {
- if (ch == "!" || ch == "=") stream.eat("=");
- } else if (/[<>*+\-|&?]/.test(ch)) {
- stream.eat(ch);
- if (ch == ">") stream.eat(ch);
- }
- }
- if (ch == "?" && stream.eat(".")) return ret(".");
- return ret("operator", "operator", stream.current());
- } else if (wordRE.test(ch)) {
- stream.eatWhile(wordRE);
- var word = stream.current();
- if (state.lastType != ".") {
- if (keywords.propertyIsEnumerable(word)) {
- var kw = keywords[word];
- return ret(kw.type, kw.style, word);
- }
- if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false)) return ret("async", "keyword", word);
- }
- return ret("variable", "variable", word);
- }
- }
- function tokenString(quote) {
- return function (stream, state) {
- var escaped = false,
- next;
- if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)) {
- state.tokenize = tokenBase;
- return ret("jsonld-keyword", "meta");
- }
- while ((next = stream.next()) != null) {
- if (next == quote && !escaped) break;
- escaped = !escaped && next == "\\";
- }
- if (!escaped) state.tokenize = tokenBase;
- return ret("string", "string");
- };
- }
- function tokenComment(stream, state) {
- var maybeEnd = false,
- ch;
- while (ch = stream.next()) {
- if (ch == "/" && maybeEnd) {
- state.tokenize = tokenBase;
- break;
- }
- maybeEnd = ch == "*";
- }
- return ret("comment", "comment");
- }
- function tokenQuasi(stream, state) {
- var escaped = false,
- next;
- while ((next = stream.next()) != null) {
- if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
- state.tokenize = tokenBase;
- break;
- }
- escaped = !escaped && next == "\\";
- }
- return ret("quasi", "string-2", stream.current());
- }
- var brackets = "([{}])";
- function findFatArrow(stream, state) {
- if (state.fatArrowAt) state.fatArrowAt = null;
- var arrow = stream.string.indexOf("=>", stream.start);
- if (arrow < 0) return;
- if (isTS) {
- var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow));
- if (m) arrow = m.index;
- }
- var depth = 0,
- sawSomething = false;
- for (var pos = arrow - 1; pos >= 0; --pos) {
- var ch = stream.string.charAt(pos);
- var bracket = brackets.indexOf(ch);
- if (bracket >= 0 && bracket < 3) {
- if (!depth) {
- ++pos;
- break;
- }
- if (--depth == 0) {
- if (ch == "(") sawSomething = true;
- break;
- }
- } else if (bracket >= 3 && bracket < 6) {
- ++depth;
- } else if (wordRE.test(ch)) {
- sawSomething = true;
- } else if (/["'\/`]/.test(ch)) {
- for (;; --pos) {
- if (pos == 0) return;
- var next = stream.string.charAt(pos - 1);
- if (next == ch && stream.string.charAt(pos - 2) != "\\") {
- pos--;
- break;
- }
- }
- } else if (sawSomething && !depth) {
- ++pos;
- break;
- }
- }
- if (sawSomething && !depth) state.fatArrowAt = pos;
- }
- var atomicTypes = {
- "atom": true,
- "number": true,
- "variable": true,
- "string": true,
- "regexp": true,
- "this": true,
- "import": true,
- "jsonld-keyword": true
- };
- function JSLexical(indented, column, type2, align, prev, info) {
- this.indented = indented;
- this.column = column;
- this.type = type2;
- this.prev = prev;
- this.info = info;
- if (align != null) this.align = align;
- }
- function inScope(state, varname) {
- if (!trackScope) return false;
- for (var v = state.localVars; v; v = v.next) if (v.name == varname) return true;
- for (var cx2 = state.context; cx2; cx2 = cx2.prev) {
- for (var v = cx2.vars; v; v = v.next) if (v.name == varname) return true;
- }
- }
- function parseJS(state, style, type2, content2, stream) {
- var cc = state.cc;
- cx.state = state;
- cx.stream = stream;
- cx.marked = null, cx.cc = cc;
- cx.style = style;
- if (!state.lexical.hasOwnProperty("align")) state.lexical.align = true;
- while (true) {
- var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
- if (combinator(type2, content2)) {
- while (cc.length && cc[cc.length - 1].lex) cc.pop()();
- if (cx.marked) return cx.marked;
- if (type2 == "variable" && inScope(state, content2)) return "variable-2";
- return style;
- }
- }
- }
- var cx = {
- state: null,
- column: null,
- marked: null,
- cc: null
- };
- function pass() {
- for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
- }
- function cont() {
- pass.apply(null, arguments);
- return true;
- }
- function inList(name, list) {
- for (var v = list; v; v = v.next) if (v.name == name) return true;
- return false;
- }
- function register(varname) {
- var state = cx.state;
- cx.marked = "def";
- if (!trackScope) return;
- if (state.context) {
- if (state.lexical.info == "var" && state.context && state.context.block) {
- var newContext = registerVarScoped(varname, state.context);
- if (newContext != null) {
- state.context = newContext;
- return;
- }
- } else if (!inList(varname, state.localVars)) {
- state.localVars = new Var(varname, state.localVars);
- return;
- }
- }
- if (parserConfig.globalVars && !inList(varname, state.globalVars)) state.globalVars = new Var(varname, state.globalVars);
- }
- function registerVarScoped(varname, context) {
- if (!context) {
- return null;
- } else if (context.block) {
- var inner = registerVarScoped(varname, context.prev);
- if (!inner) return null;
- if (inner == context.prev) return context;
- return new Context(inner, context.vars, true);
- } else if (inList(varname, context.vars)) {
- return context;
- } else {
- return new Context(context.prev, new Var(varname, context.vars), false);
- }
- }
- function isModifier(name) {
- return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly";
- }
- function Context(prev, vars, block2) {
- this.prev = prev;
- this.vars = vars;
- this.block = block2;
- }
- function Var(name, next) {
- this.name = name;
- this.next = next;
- }
- var defaultVars = new Var("this", new Var("arguments", null));
- function pushcontext() {
- cx.state.context = new Context(cx.state.context, cx.state.localVars, false);
- cx.state.localVars = defaultVars;
- }
- function pushblockcontext() {
- cx.state.context = new Context(cx.state.context, cx.state.localVars, true);
- cx.state.localVars = null;
- }
- pushcontext.lex = pushblockcontext.lex = true;
- function popcontext() {
- cx.state.localVars = cx.state.context.vars;
- cx.state.context = cx.state.context.prev;
- }
- popcontext.lex = true;
- function pushlex(type2, info) {
- var result = function () {
- var state = cx.state,
- indent = state.indented;
- if (state.lexical.type == "stat") indent = state.lexical.indented;else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev) indent = outer.indented;
- state.lexical = new JSLexical(indent, cx.stream.column(), type2, null, state.lexical, info);
- };
- result.lex = true;
- return result;
- }
- function poplex() {
- var state = cx.state;
- if (state.lexical.prev) {
- if (state.lexical.type == ")") state.indented = state.lexical.indented;
- state.lexical = state.lexical.prev;
- }
- }
- poplex.lex = true;
- function expect(wanted) {
- function exp(type2) {
- if (type2 == wanted) return cont();else if (wanted == ";" || type2 == "}" || type2 == ")" || type2 == "]") return pass();else return cont(exp);
- }
- return exp;
- }
- function statement(type2, value) {
- if (type2 == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
- if (type2 == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
- if (type2 == "keyword b") return cont(pushlex("form"), statement, poplex);
- if (type2 == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
- if (type2 == "debugger") return cont(expect(";"));
- if (type2 == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
- if (type2 == ";") return cont();
- if (type2 == "if") {
- if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex) cx.state.cc.pop()();
- return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
- }
- if (type2 == "function") return cont(functiondef);
- if (type2 == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
- if (type2 == "class" || isTS && value == "interface") {
- cx.marked = "keyword";
- return cont(pushlex("form", type2 == "class" ? type2 : value), className, poplex);
- }
- if (type2 == "variable") {
- if (isTS && value == "declare") {
- cx.marked = "keyword";
- return cont(statement);
- } else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
- cx.marked = "keyword";
- if (value == "enum") return cont(enumdef);else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex);
- } else if (isTS && value == "namespace") {
- cx.marked = "keyword";
- return cont(pushlex("form"), expression, statement, poplex);
- } else if (isTS && value == "abstract") {
- cx.marked = "keyword";
- return cont(statement);
- } else {
- return cont(pushlex("stat"), maybelabel);
- }
- }
- if (type2 == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext, block, poplex, poplex, popcontext);
- if (type2 == "case") return cont(expression, expect(":"));
- if (type2 == "default") return cont(expect(":"));
- if (type2 == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
- if (type2 == "export") return cont(pushlex("stat"), afterExport, poplex);
- if (type2 == "import") return cont(pushlex("stat"), afterImport, poplex);
- if (type2 == "async") return cont(statement);
- if (value == "@") return cont(expression, statement);
- return pass(pushlex("stat"), expression, expect(";"), poplex);
- }
- function maybeCatchBinding(type2) {
- if (type2 == "(") return cont(funarg, expect(")"));
- }
- function expression(type2, value) {
- return expressionInner(type2, value, false);
- }
- function expressionNoComma(type2, value) {
- return expressionInner(type2, value, true);
- }
- function parenExpr(type2) {
- if (type2 != "(") return pass();
- return cont(pushlex(")"), maybeexpression, expect(")"), poplex);
- }
- function expressionInner(type2, value, noComma) {
- if (cx.state.fatArrowAt == cx.stream.start) {
- var body = noComma ? arrowBodyNoComma : arrowBody;
- if (type2 == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);else if (type2 == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
- }
- var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
- if (atomicTypes.hasOwnProperty(type2)) return cont(maybeop);
- if (type2 == "function") return cont(functiondef, maybeop);
- if (type2 == "class" || isTS && value == "interface") {
- cx.marked = "keyword";
- return cont(pushlex("form"), classExpression, poplex);
- }
- if (type2 == "keyword c" || type2 == "async") return cont(noComma ? expressionNoComma : expression);
- if (type2 == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
- if (type2 == "operator" || type2 == "spread") return cont(noComma ? expressionNoComma : expression);
- if (type2 == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
- if (type2 == "{") return contCommasep(objprop, "}", null, maybeop);
- if (type2 == "quasi") return pass(quasi, maybeop);
- if (type2 == "new") return cont(maybeTarget(noComma));
- return cont();
- }
- function maybeexpression(type2) {
- if (type2.match(/[;\}\)\],]/)) return pass();
- return pass(expression);
- }
- function maybeoperatorComma(type2, value) {
- if (type2 == ",") return cont(maybeexpression);
- return maybeoperatorNoComma(type2, value, false);
- }
- function maybeoperatorNoComma(type2, value, noComma) {
- var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
- var expr = noComma == false ? expression : expressionNoComma;
- if (type2 == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
- if (type2 == "operator") {
- if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
- if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false)) return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
- if (value == "?") return cont(expression, expect(":"), expr);
- return cont(expr);
- }
- if (type2 == "quasi") {
- return pass(quasi, me);
- }
- if (type2 == ";") return;
- if (type2 == "(") return contCommasep(expressionNoComma, ")", "call", me);
- if (type2 == ".") return cont(property, me);
- if (type2 == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
- if (isTS && value == "as") {
- cx.marked = "keyword";
- return cont(typeexpr, me);
- }
- if (type2 == "regexp") {
- cx.state.lastType = cx.marked = "operator";
- cx.stream.backUp(cx.stream.pos - cx.stream.start - 1);
- return cont(expr);
- }
- }
- function quasi(type2, value) {
- if (type2 != "quasi") return pass();
- if (value.slice(value.length - 2) != "${") return cont(quasi);
- return cont(maybeexpression, continueQuasi);
- }
- function continueQuasi(type2) {
- if (type2 == "}") {
- cx.marked = "string-2";
- cx.state.tokenize = tokenQuasi;
- return cont(quasi);
- }
- }
- function arrowBody(type2) {
- findFatArrow(cx.stream, cx.state);
- return pass(type2 == "{" ? statement : expression);
- }
- function arrowBodyNoComma(type2) {
- findFatArrow(cx.stream, cx.state);
- return pass(type2 == "{" ? statement : expressionNoComma);
- }
- function maybeTarget(noComma) {
- return function (type2) {
- if (type2 == ".") return cont(noComma ? targetNoComma : target);else if (type2 == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma);else return pass(noComma ? expressionNoComma : expression);
- };
- }
- function target(_, value) {
- if (value == "target") {
- cx.marked = "keyword";
- return cont(maybeoperatorComma);
- }
- }
- function targetNoComma(_, value) {
- if (value == "target") {
- cx.marked = "keyword";
- return cont(maybeoperatorNoComma);
- }
- }
- function maybelabel(type2) {
- if (type2 == ":") return cont(poplex, statement);
- return pass(maybeoperatorComma, expect(";"), poplex);
- }
- function property(type2) {
- if (type2 == "variable") {
- cx.marked = "property";
- return cont();
- }
- }
- function objprop(type2, value) {
- if (type2 == "async") {
- cx.marked = "property";
- return cont(objprop);
- } else if (type2 == "variable" || cx.style == "keyword") {
- cx.marked = "property";
- if (value == "get" || value == "set") return cont(getterSetter);
- var m;
- if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false))) cx.state.fatArrowAt = cx.stream.pos + m[0].length;
- return cont(afterprop);
- } else if (type2 == "number" || type2 == "string") {
- cx.marked = jsonldMode ? "property" : cx.style + " property";
- return cont(afterprop);
- } else if (type2 == "jsonld-keyword") {
- return cont(afterprop);
- } else if (isTS && isModifier(value)) {
- cx.marked = "keyword";
- return cont(objprop);
- } else if (type2 == "[") {
- return cont(expression, maybetype, expect("]"), afterprop);
- } else if (type2 == "spread") {
- return cont(expressionNoComma, afterprop);
- } else if (value == "*") {
- cx.marked = "keyword";
- return cont(objprop);
- } else if (type2 == ":") {
- return pass(afterprop);
- }
- }
- function getterSetter(type2) {
- if (type2 != "variable") return pass(afterprop);
- cx.marked = "property";
- return cont(functiondef);
- }
- function afterprop(type2) {
- if (type2 == ":") return cont(expressionNoComma);
- if (type2 == "(") return pass(functiondef);
- }
- function commasep(what, end, sep) {
- function proceed(type2, value) {
- if (sep ? sep.indexOf(type2) > -1 : type2 == ",") {
- var lex = cx.state.lexical;
- if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
- return cont(function (type3, value2) {
- if (type3 == end || value2 == end) return pass();
- return pass(what);
- }, proceed);
- }
- if (type2 == end || value == end) return cont();
- if (sep && sep.indexOf(";") > -1) return pass(what);
- return cont(expect(end));
- }
- return function (type2, value) {
- if (type2 == end || value == end) return cont();
- return pass(what, proceed);
- };
- }
- function contCommasep(what, end, info) {
- for (var i = 3; i < arguments.length; i++) cx.cc.push(arguments[i]);
- return cont(pushlex(end, info), commasep(what, end), poplex);
- }
- function block(type2) {
- if (type2 == "}") return cont();
- return pass(statement, block);
- }
- function maybetype(type2, value) {
- if (isTS) {
- if (type2 == ":") return cont(typeexpr);
- if (value == "?") return cont(maybetype);
- }
- }
- function maybetypeOrIn(type2, value) {
- if (isTS && (type2 == ":" || value == "in")) return cont(typeexpr);
- }
- function mayberettype(type2) {
- if (isTS && type2 == ":") {
- if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr);else return cont(typeexpr);
- }
- }
- function isKW(_, value) {
- if (value == "is") {
- cx.marked = "keyword";
- return cont();
- }
- }
- function typeexpr(type2, value) {
- if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
- cx.marked = "keyword";
- return cont(value == "typeof" ? expressionNoComma : typeexpr);
- }
- if (type2 == "variable" || value == "void") {
- cx.marked = "type";
- return cont(afterType);
- }
- if (value == "|" || value == "&") return cont(typeexpr);
- if (type2 == "string" || type2 == "number" || type2 == "atom") return cont(afterType);
- if (type2 == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType);
- if (type2 == "{") return cont(pushlex("}"), typeprops, poplex, afterType);
- if (type2 == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType);
- if (type2 == "<") return cont(commasep(typeexpr, ">"), typeexpr);
- if (type2 == "quasi") {
- return pass(quasiType, afterType);
- }
- }
- function maybeReturnType(type2) {
- if (type2 == "=>") return cont(typeexpr);
- }
- function typeprops(type2) {
- if (type2.match(/[\}\)\]]/)) return cont();
- if (type2 == "," || type2 == ";") return cont(typeprops);
- return pass(typeprop, typeprops);
- }
- function typeprop(type2, value) {
- if (type2 == "variable" || cx.style == "keyword") {
- cx.marked = "property";
- return cont(typeprop);
- } else if (value == "?" || type2 == "number" || type2 == "string") {
- return cont(typeprop);
- } else if (type2 == ":") {
- return cont(typeexpr);
- } else if (type2 == "[") {
- return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop);
- } else if (type2 == "(") {
- return pass(functiondecl, typeprop);
- } else if (!type2.match(/[;\}\)\],]/)) {
- return cont();
- }
- }
- function quasiType(type2, value) {
- if (type2 != "quasi") return pass();
- if (value.slice(value.length - 2) != "${") return cont(quasiType);
- return cont(typeexpr, continueQuasiType);
- }
- function continueQuasiType(type2) {
- if (type2 == "}") {
- cx.marked = "string-2";
- cx.state.tokenize = tokenQuasi;
- return cont(quasiType);
- }
- }
- function typearg(type2, value) {
- if (type2 == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg);
- if (type2 == ":") return cont(typeexpr);
- if (type2 == "spread") return cont(typearg);
- return pass(typeexpr);
- }
- function afterType(type2, value) {
- if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType);
- if (value == "|" || type2 == "." || value == "&") return cont(typeexpr);
- if (type2 == "[") return cont(typeexpr, expect("]"), afterType);
- if (value == "extends" || value == "implements") {
- cx.marked = "keyword";
- return cont(typeexpr);
- }
- if (value == "?") return cont(typeexpr, expect(":"), typeexpr);
- }
- function maybeTypeArgs(_, value) {
- if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType);
- }
- function typeparam() {
- return pass(typeexpr, maybeTypeDefault);
- }
- function maybeTypeDefault(_, value) {
- if (value == "=") return cont(typeexpr);
- }
- function vardef(_, value) {
- if (value == "enum") {
- cx.marked = "keyword";
- return cont(enumdef);
- }
- return pass(pattern, maybetype, maybeAssign, vardefCont);
- }
- function pattern(type2, value) {
- if (isTS && isModifier(value)) {
- cx.marked = "keyword";
- return cont(pattern);
- }
- if (type2 == "variable") {
- register(value);
- return cont();
- }
- if (type2 == "spread") return cont(pattern);
- if (type2 == "[") return contCommasep(eltpattern, "]");
- if (type2 == "{") return contCommasep(proppattern, "}");
- }
- function proppattern(type2, value) {
- if (type2 == "variable" && !cx.stream.match(/^\s*:/, false)) {
- register(value);
- return cont(maybeAssign);
- }
- if (type2 == "variable") cx.marked = "property";
- if (type2 == "spread") return cont(pattern);
- if (type2 == "}") return pass();
- if (type2 == "[") return cont(expression, expect("]"), expect(":"), proppattern);
- return cont(expect(":"), pattern, maybeAssign);
- }
- function eltpattern() {
- return pass(pattern, maybeAssign);
- }
- function maybeAssign(_type, value) {
- if (value == "=") return cont(expressionNoComma);
- }
- function vardefCont(type2) {
- if (type2 == ",") return cont(vardef);
- }
- function maybeelse(type2, value) {
- if (type2 == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
- }
- function forspec(type2, value) {
- if (value == "await") return cont(forspec);
- if (type2 == "(") return cont(pushlex(")"), forspec1, poplex);
- }
- function forspec1(type2) {
- if (type2 == "var") return cont(vardef, forspec2);
- if (type2 == "variable") return cont(forspec2);
- return pass(forspec2);
- }
- function forspec2(type2, value) {
- if (type2 == ")") return cont();
- if (type2 == ";") return cont(forspec2);
- if (value == "in" || value == "of") {
- cx.marked = "keyword";
- return cont(expression, forspec2);
- }
- return pass(expression, forspec2);
- }
- function functiondef(type2, value) {
- if (value == "*") {
- cx.marked = "keyword";
- return cont(functiondef);
- }
- if (type2 == "variable") {
- register(value);
- return cont(functiondef);
- }
- if (type2 == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
- if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef);
- }
- function functiondecl(type2, value) {
- if (value == "*") {
- cx.marked = "keyword";
- return cont(functiondecl);
- }
- if (type2 == "variable") {
- register(value);
- return cont(functiondecl);
- }
- if (type2 == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
- if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl);
- }
- function typename(type2, value) {
- if (type2 == "keyword" || type2 == "variable") {
- cx.marked = "type";
- return cont(typename);
- } else if (value == "<") {
- return cont(pushlex(">"), commasep(typeparam, ">"), poplex);
- }
- }
- function funarg(type2, value) {
- if (value == "@") cont(expression, funarg);
- if (type2 == "spread") return cont(funarg);
- if (isTS && isModifier(value)) {
- cx.marked = "keyword";
- return cont(funarg);
- }
- if (isTS && type2 == "this") return cont(maybetype, maybeAssign);
- return pass(pattern, maybetype, maybeAssign);
- }
- function classExpression(type2, value) {
- if (type2 == "variable") return className(type2, value);
- return classNameAfter(type2, value);
- }
- function className(type2, value) {
- if (type2 == "variable") {
- register(value);
- return cont(classNameAfter);
- }
- }
- function classNameAfter(type2, value) {
- if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter);
- if (value == "extends" || value == "implements" || isTS && type2 == ",") {
- if (value == "implements") cx.marked = "keyword";
- return cont(isTS ? typeexpr : expression, classNameAfter);
- }
- if (type2 == "{") return cont(pushlex("}"), classBody, poplex);
- }
- function classBody(type2, value) {
- if (type2 == "async" || type2 == "variable" && (value == "static" || value == "get" || value == "set" || isTS && isModifier(value)) && cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false)) {
- cx.marked = "keyword";
- return cont(classBody);
- }
- if (type2 == "variable" || cx.style == "keyword") {
- cx.marked = "property";
- return cont(classfield, classBody);
- }
- if (type2 == "number" || type2 == "string") return cont(classfield, classBody);
- if (type2 == "[") return cont(expression, maybetype, expect("]"), classfield, classBody);
- if (value == "*") {
- cx.marked = "keyword";
- return cont(classBody);
- }
- if (isTS && type2 == "(") return pass(functiondecl, classBody);
- if (type2 == ";" || type2 == ",") return cont(classBody);
- if (type2 == "}") return cont();
- if (value == "@") return cont(expression, classBody);
- }
- function classfield(type2, value) {
- if (value == "!") return cont(classfield);
- if (value == "?") return cont(classfield);
- if (type2 == ":") return cont(typeexpr, maybeAssign);
- if (value == "=") return cont(expressionNoComma);
- var context = cx.state.lexical.prev,
- isInterface = context && context.info == "interface";
- return pass(isInterface ? functiondecl : functiondef);
- }
- function afterExport(type2, value) {
- if (value == "*") {
- cx.marked = "keyword";
- return cont(maybeFrom, expect(";"));
- }
- if (value == "default") {
- cx.marked = "keyword";
- return cont(expression, expect(";"));
- }
- if (type2 == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
- return pass(statement);
- }
- function exportField(type2, value) {
- if (value == "as") {
- cx.marked = "keyword";
- return cont(expect("variable"));
- }
- if (type2 == "variable") return pass(expressionNoComma, exportField);
- }
- function afterImport(type2) {
- if (type2 == "string") return cont();
- if (type2 == "(") return pass(expression);
- if (type2 == ".") return pass(maybeoperatorComma);
- return pass(importSpec, maybeMoreImports, maybeFrom);
- }
- function importSpec(type2, value) {
- if (type2 == "{") return contCommasep(importSpec, "}");
- if (type2 == "variable") register(value);
- if (value == "*") cx.marked = "keyword";
- return cont(maybeAs);
- }
- function maybeMoreImports(type2) {
- if (type2 == ",") return cont(importSpec, maybeMoreImports);
- }
- function maybeAs(_type, value) {
- if (value == "as") {
- cx.marked = "keyword";
- return cont(importSpec);
- }
- }
- function maybeFrom(_type, value) {
- if (value == "from") {
- cx.marked = "keyword";
- return cont(expression);
- }
- }
- function arrayLiteral(type2) {
- if (type2 == "]") return cont();
- return pass(commasep(expressionNoComma, "]"));
- }
- function enumdef() {
- return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex);
- }
- function enummember() {
- return pass(pattern, maybeAssign);
- }
- function isContinuedStatement(state, textAfter) {
- return state.lastType == "operator" || state.lastType == "," || isOperatorChar.test(textAfter.charAt(0)) || /[,.]/.test(textAfter.charAt(0));
- }
- function expressionAllowed(stream, state, backUp) {
- return state.tokenize == tokenBase && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) || state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0)));
- }
- return {
- startState: function (basecolumn) {
- var state = {
- tokenize: tokenBase,
- lastType: "sof",
- cc: [],
- lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
- localVars: parserConfig.localVars,
- context: parserConfig.localVars && new Context(null, null, false),
- indented: basecolumn || 0
- };
- if (parserConfig.globalVars && typeof parserConfig.globalVars == "object") state.globalVars = parserConfig.globalVars;
- return state;
- },
- token: function (stream, state) {
- if (stream.sol()) {
- if (!state.lexical.hasOwnProperty("align")) state.lexical.align = false;
- state.indented = stream.indentation();
- findFatArrow(stream, state);
- }
- if (state.tokenize != tokenComment && stream.eatSpace()) return null;
- var style = state.tokenize(stream, state);
- if (type == "comment") return style;
- state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
- return parseJS(state, style, type, content, stream);
- },
- indent: function (state, textAfter) {
- if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return CodeMirror.Pass;
- if (state.tokenize != tokenBase) return 0;
- var firstChar = textAfter && textAfter.charAt(0),
- lexical = state.lexical,
- top;
- if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
- var c = state.cc[i];
- if (c == poplex) lexical = lexical.prev;else if (c != maybeelse && c != popcontext) break;
- }
- while ((lexical.type == "stat" || lexical.type == "form") && (firstChar == "}" || (top = state.cc[state.cc.length - 1]) && (top == maybeoperatorComma || top == maybeoperatorNoComma) && !/^[,\.=+\-*:?[\(]/.test(textAfter))) lexical = lexical.prev;
- if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat") lexical = lexical.prev;
- var type2 = lexical.type,
- closing = firstChar == type2;
- if (type2 == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);else if (type2 == "form" && firstChar == "{") return lexical.indented;else if (type2 == "form") return lexical.indented + indentUnit;else if (type2 == "stat") return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || indentUnit : 0);else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false) return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);else if (lexical.align) return lexical.column + (closing ? 0 : 1);else return lexical.indented + (closing ? 0 : indentUnit);
- },
- electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
- blockCommentStart: jsonMode ? null : "/*",
- blockCommentEnd: jsonMode ? null : "*/",
- blockCommentContinue: jsonMode ? null : " * ",
- lineComment: jsonMode ? null : "//",
- fold: "brace",
- closeBrackets: "()[]{}''\"\"``",
- helperType: jsonMode ? "json" : "javascript",
- jsonldMode,
- jsonMode,
- expressionAllowed,
- skipExpression: function (state) {
- parseJS(state, "atom", "atom", "true", new CodeMirror.StringStream("", 2, null));
- }
- };
- });
- CodeMirror.registerHelper("wordChars", "javascript", /[\w$]/);
- CodeMirror.defineMIME("text/javascript", "javascript");
- CodeMirror.defineMIME("text/ecmascript", "javascript");
- CodeMirror.defineMIME("application/javascript", "javascript");
- CodeMirror.defineMIME("application/x-javascript", "javascript");
- CodeMirror.defineMIME("application/ecmascript", "javascript");
- CodeMirror.defineMIME("application/json", {
- name: "javascript",
- json: true
- });
- CodeMirror.defineMIME("application/x-json", {
- name: "javascript",
- json: true
- });
- CodeMirror.defineMIME("application/manifest+json", {
- name: "javascript",
- json: true
- });
- CodeMirror.defineMIME("application/ld+json", {
- name: "javascript",
- jsonld: true
- });
- CodeMirror.defineMIME("text/typescript", {
- name: "javascript",
- typescript: true
- });
- CodeMirror.defineMIME("application/typescript", {
- name: "javascript",
- typescript: true
- });
- });
-})();
-var javascriptExports = javascript$2.exports;
-const javascript = /* @__PURE__ */codemirror.getDefaultExportFromCjs(javascriptExports);
-const javascript$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: javascript
-}, [javascriptExports]);
-exports.javascript = javascript$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/jump-to-line.cjs.js":
-/*!*****************************************************!*\
- !*** ../../graphiql-react/dist/jump-to-line.cjs.js ***!
- \*****************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-const dialog = __webpack_require__(/*! ./dialog.cjs.js */ "../../graphiql-react/dist/dialog.cjs.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var jumpToLine$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror(), dialog.dialogExports);
- })(function (CodeMirror) {
- CodeMirror.defineOption("search", {
- bottom: false
- });
- function dialog2(cm, text, shortText, deflt, f) {
- if (cm.openDialog) cm.openDialog(text, f, {
- value: deflt,
- selectValueOnOpen: true,
- bottom: cm.options.search.bottom
- });else f(prompt(shortText, deflt));
- }
- function getJumpDialog(cm) {
- return cm.phrase("Jump to line:") + ' ' + cm.phrase("(Use line:column or scroll% syntax)") + " ";
- }
- function interpretLine(cm, string) {
- var num = Number(string);
- if (/^[-+]/.test(string)) return cm.getCursor().line + num;else return num - 1;
- }
- CodeMirror.commands.jumpToLine = function (cm) {
- var cur = cm.getCursor();
- dialog2(cm, getJumpDialog(cm), cm.phrase("Jump to line:"), cur.line + 1 + ":" + cur.ch, function (posStr) {
- if (!posStr) return;
- var match;
- if (match = /^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(posStr)) {
- cm.setCursor(interpretLine(cm, match[1]), Number(match[2]));
- } else if (match = /^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(posStr)) {
- var line = Math.round(cm.lineCount() * Number(match[1]) / 100);
- if (/^[-+]/.test(match[1])) line = cur.line + line + 1;
- cm.setCursor(line - 1, cur.ch);
- } else if (match = /^\s*\:?\s*([\+\-]?\d+)\s*/.exec(posStr)) {
- cm.setCursor(interpretLine(cm, match[1]), cur.ch);
- }
- });
- };
- CodeMirror.keyMap["default"]["Alt-G"] = "jumpToLine";
- });
-})();
-var jumpToLineExports = jumpToLine$2.exports;
-const jumpToLine = /* @__PURE__ */codemirror.getDefaultExportFromCjs(jumpToLineExports);
-const jumpToLine$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: jumpToLine
-}, [jumpToLineExports]);
-exports.jumpToLine = jumpToLine$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/jump.cjs.js":
-/*!*********************************************!*\
- !*** ../../graphiql-react/dist/jump.cjs.js ***!
- \*********************************************/
-/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-const SchemaReference = __webpack_require__(/*! ./SchemaReference.cjs.js */ "../../graphiql-react/dist/SchemaReference.cjs.js");
-codemirror.CodeMirror.defineOption("jump", false, (cm, options, old) => {
- if (old && old !== codemirror.CodeMirror.Init) {
- const oldOnMouseOver = cm.state.jump.onMouseOver;
- codemirror.CodeMirror.off(cm.getWrapperElement(), "mouseover", oldOnMouseOver);
- const oldOnMouseOut = cm.state.jump.onMouseOut;
- codemirror.CodeMirror.off(cm.getWrapperElement(), "mouseout", oldOnMouseOut);
- codemirror.CodeMirror.off(document, "keydown", cm.state.jump.onKeyDown);
- delete cm.state.jump;
- }
- if (options) {
- const state = cm.state.jump = {
- options,
- onMouseOver: onMouseOver.bind(null, cm),
- onMouseOut: onMouseOut.bind(null, cm),
- onKeyDown: onKeyDown.bind(null, cm)
- };
- codemirror.CodeMirror.on(cm.getWrapperElement(), "mouseover", state.onMouseOver);
- codemirror.CodeMirror.on(cm.getWrapperElement(), "mouseout", state.onMouseOut);
- codemirror.CodeMirror.on(document, "keydown", state.onKeyDown);
- }
-});
-function onMouseOver(cm, event) {
- const target = event.target || event.srcElement;
- if (!(target instanceof HTMLElement)) {
- return;
- }
- if ((target === null || target === void 0 ? void 0 : target.nodeName) !== "SPAN") {
- return;
- }
- const box = target.getBoundingClientRect();
- const cursor = {
- left: (box.left + box.right) / 2,
- top: (box.top + box.bottom) / 2
- };
- cm.state.jump.cursor = cursor;
- if (cm.state.jump.isHoldingModifier) {
- enableJumpMode(cm);
- }
-}
-function onMouseOut(cm) {
- if (!cm.state.jump.isHoldingModifier && cm.state.jump.cursor) {
- cm.state.jump.cursor = null;
- return;
- }
- if (cm.state.jump.isHoldingModifier && cm.state.jump.marker) {
- disableJumpMode(cm);
- }
-}
-function onKeyDown(cm, event) {
- if (cm.state.jump.isHoldingModifier || !isJumpModifier(event.key)) {
- return;
- }
- cm.state.jump.isHoldingModifier = true;
- if (cm.state.jump.cursor) {
- enableJumpMode(cm);
- }
- const onKeyUp = upEvent => {
- if (upEvent.code !== event.code) {
- return;
- }
- cm.state.jump.isHoldingModifier = false;
- if (cm.state.jump.marker) {
- disableJumpMode(cm);
- }
- codemirror.CodeMirror.off(document, "keyup", onKeyUp);
- codemirror.CodeMirror.off(document, "click", onClick);
- cm.off("mousedown", onMouseDown);
- };
- const onClick = clickEvent => {
- const {
- destination,
- options
- } = cm.state.jump;
- if (destination) {
- options.onClick(destination, clickEvent);
- }
- };
- const onMouseDown = (_, downEvent) => {
- if (cm.state.jump.destination) {
- downEvent.codemirrorIgnore = true;
- }
- };
- codemirror.CodeMirror.on(document, "keyup", onKeyUp);
- codemirror.CodeMirror.on(document, "click", onClick);
- cm.on("mousedown", onMouseDown);
-}
-const isMac = typeof navigator !== "undefined" && navigator.userAgent.includes("Mac");
-function isJumpModifier(key) {
- return key === (isMac ? "Meta" : "Control");
-}
-function enableJumpMode(cm) {
- if (cm.state.jump.marker) {
- return;
- }
- const {
- cursor,
- options
- } = cm.state.jump;
- const pos = cm.coordsChar(cursor);
- const token = cm.getTokenAt(pos, true);
- const getDestination = options.getDestination || cm.getHelper(pos, "jump");
- if (getDestination) {
- const destination = getDestination(token, options, cm);
- if (destination) {
- const marker = cm.markText({
- line: pos.line,
- ch: token.start
- }, {
- line: pos.line,
- ch: token.end
- }, {
- className: "CodeMirror-jump-token"
- });
- cm.state.jump.marker = marker;
- cm.state.jump.destination = destination;
- }
- }
-}
-function disableJumpMode(cm) {
- const {
- marker
- } = cm.state.jump;
- cm.state.jump.marker = null;
- cm.state.jump.destination = null;
- marker.clear();
-}
-codemirror.CodeMirror.registerHelper("jump", "graphql", (token, options) => {
- if (!options.schema || !options.onClick || !token.state) {
- return;
- }
- const {
- state
- } = token;
- const {
- kind,
- step
- } = state;
- const typeInfo = SchemaReference.getTypeInfo(options.schema, state);
- if (kind === "Field" && step === 0 && typeInfo.fieldDef || kind === "AliasedField" && step === 2 && typeInfo.fieldDef) {
- return SchemaReference.getFieldReference(typeInfo);
- }
- if (kind === "Directive" && step === 1 && typeInfo.directiveDef) {
- return SchemaReference.getDirectiveReference(typeInfo);
- }
- if (kind === "Argument" && step === 0 && typeInfo.argDef) {
- return SchemaReference.getArgumentReference(typeInfo);
- }
- if (kind === "EnumValue" && typeInfo.enumValue) {
- return SchemaReference.getEnumValueReference(typeInfo);
- }
- if (kind === "NamedType" && typeInfo.type) {
- return SchemaReference.getTypeReference(typeInfo);
- }
-});
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/lint.cjs.js":
-/*!*********************************************!*\
- !*** ../../graphiql-react/dist/lint.cjs.js ***!
- \*********************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var lint$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- var GUTTER_ID = "CodeMirror-lint-markers";
- var LINT_LINE_ID = "CodeMirror-lint-line-";
- function showTooltip(cm, e, content) {
- var tt = document.createElement("div");
- tt.className = "CodeMirror-lint-tooltip cm-s-" + cm.options.theme;
- tt.appendChild(content.cloneNode(true));
- if (cm.state.lint.options.selfContain) cm.getWrapperElement().appendChild(tt);else document.body.appendChild(tt);
- function position(e2) {
- if (!tt.parentNode) return CodeMirror.off(document, "mousemove", position);
- tt.style.top = Math.max(0, e2.clientY - tt.offsetHeight - 5) + "px";
- tt.style.left = e2.clientX + 5 + "px";
- }
- CodeMirror.on(document, "mousemove", position);
- position(e);
- if (tt.style.opacity != null) tt.style.opacity = 1;
- return tt;
- }
- function rm(elt) {
- if (elt.parentNode) elt.parentNode.removeChild(elt);
- }
- function hideTooltip(tt) {
- if (!tt.parentNode) return;
- if (tt.style.opacity == null) rm(tt);
- tt.style.opacity = 0;
- setTimeout(function () {
- rm(tt);
- }, 600);
- }
- function showTooltipFor(cm, e, content, node) {
- var tooltip = showTooltip(cm, e, content);
- function hide() {
- CodeMirror.off(node, "mouseout", hide);
- if (tooltip) {
- hideTooltip(tooltip);
- tooltip = null;
- }
- }
- var poll = setInterval(function () {
- if (tooltip) for (var n = node;; n = n.parentNode) {
- if (n && n.nodeType == 11) n = n.host;
- if (n == document.body) return;
- if (!n) {
- hide();
- break;
- }
- }
- if (!tooltip) return clearInterval(poll);
- }, 400);
- CodeMirror.on(node, "mouseout", hide);
- }
- function LintState(cm, conf, hasGutter) {
- this.marked = [];
- if (conf instanceof Function) conf = {
- getAnnotations: conf
- };
- if (!conf || conf === true) conf = {};
- this.options = {};
- this.linterOptions = conf.options || {};
- for (var prop in defaults) this.options[prop] = defaults[prop];
- for (var prop in conf) {
- if (defaults.hasOwnProperty(prop)) {
- if (conf[prop] != null) this.options[prop] = conf[prop];
- } else if (!conf.options) {
- this.linterOptions[prop] = conf[prop];
- }
- }
- this.timeout = null;
- this.hasGutter = hasGutter;
- this.onMouseOver = function (e) {
- onMouseOver(cm, e);
- };
- this.waitingFor = 0;
- }
- var defaults = {
- highlightLines: false,
- tooltips: true,
- delay: 500,
- lintOnChange: true,
- getAnnotations: null,
- async: false,
- selfContain: null,
- formatAnnotation: null,
- onUpdateLinting: null
- };
- function clearMarks(cm) {
- var state = cm.state.lint;
- if (state.hasGutter) cm.clearGutter(GUTTER_ID);
- if (state.options.highlightLines) clearErrorLines(cm);
- for (var i = 0; i < state.marked.length; ++i) state.marked[i].clear();
- state.marked.length = 0;
- }
- function clearErrorLines(cm) {
- cm.eachLine(function (line) {
- var has = line.wrapClass && /\bCodeMirror-lint-line-\w+\b/.exec(line.wrapClass);
- if (has) cm.removeLineClass(line, "wrap", has[0]);
- });
- }
- function makeMarker(cm, labels, severity, multiple, tooltips) {
- var marker = document.createElement("div"),
- inner = marker;
- marker.className = "CodeMirror-lint-marker CodeMirror-lint-marker-" + severity;
- if (multiple) {
- inner = marker.appendChild(document.createElement("div"));
- inner.className = "CodeMirror-lint-marker CodeMirror-lint-marker-multiple";
- }
- if (tooltips != false) CodeMirror.on(inner, "mouseover", function (e) {
- showTooltipFor(cm, e, labels, inner);
- });
- return marker;
- }
- function getMaxSeverity(a, b) {
- if (a == "error") return a;else return b;
- }
- function groupByLine(annotations) {
- var lines = [];
- for (var i = 0; i < annotations.length; ++i) {
- var ann = annotations[i],
- line = ann.from.line;
- (lines[line] || (lines[line] = [])).push(ann);
- }
- return lines;
- }
- function annotationTooltip(ann) {
- var severity = ann.severity;
- if (!severity) severity = "error";
- var tip = document.createElement("div");
- tip.className = "CodeMirror-lint-message CodeMirror-lint-message-" + severity;
- if (typeof ann.messageHTML != "undefined") {
- tip.innerHTML = ann.messageHTML;
- } else {
- tip.appendChild(document.createTextNode(ann.message));
- }
- return tip;
- }
- function lintAsync(cm, getAnnotations) {
- var state = cm.state.lint;
- var id = ++state.waitingFor;
- function abort() {
- id = -1;
- cm.off("change", abort);
- }
- cm.on("change", abort);
- getAnnotations(cm.getValue(), function (annotations, arg2) {
- cm.off("change", abort);
- if (state.waitingFor != id) return;
- if (arg2 && annotations instanceof CodeMirror) annotations = arg2;
- cm.operation(function () {
- updateLinting(cm, annotations);
- });
- }, state.linterOptions, cm);
- }
- function startLinting(cm) {
- var state = cm.state.lint;
- if (!state) return;
- var options = state.options;
- var getAnnotations = options.getAnnotations || cm.getHelper(CodeMirror.Pos(0, 0), "lint");
- if (!getAnnotations) return;
- if (options.async || getAnnotations.async) {
- lintAsync(cm, getAnnotations);
- } else {
- var annotations = getAnnotations(cm.getValue(), state.linterOptions, cm);
- if (!annotations) return;
- if (annotations.then) annotations.then(function (issues) {
- cm.operation(function () {
- updateLinting(cm, issues);
- });
- });else cm.operation(function () {
- updateLinting(cm, annotations);
- });
- }
- }
- function updateLinting(cm, annotationsNotSorted) {
- var state = cm.state.lint;
- if (!state) return;
- var options = state.options;
- clearMarks(cm);
- var annotations = groupByLine(annotationsNotSorted);
- for (var line = 0; line < annotations.length; ++line) {
- var anns = annotations[line];
- if (!anns) continue;
- var message = [];
- anns = anns.filter(function (item) {
- return message.indexOf(item.message) > -1 ? false : message.push(item.message);
- });
- var maxSeverity = null;
- var tipLabel = state.hasGutter && document.createDocumentFragment();
- for (var i = 0; i < anns.length; ++i) {
- var ann = anns[i];
- var severity = ann.severity;
- if (!severity) severity = "error";
- maxSeverity = getMaxSeverity(maxSeverity, severity);
- if (options.formatAnnotation) ann = options.formatAnnotation(ann);
- if (state.hasGutter) tipLabel.appendChild(annotationTooltip(ann));
- if (ann.to) state.marked.push(cm.markText(ann.from, ann.to, {
- className: "CodeMirror-lint-mark CodeMirror-lint-mark-" + severity,
- __annotation: ann
- }));
- }
- if (state.hasGutter) cm.setGutterMarker(line, GUTTER_ID, makeMarker(cm, tipLabel, maxSeverity, annotations[line].length > 1, options.tooltips));
- if (options.highlightLines) cm.addLineClass(line, "wrap", LINT_LINE_ID + maxSeverity);
- }
- if (options.onUpdateLinting) options.onUpdateLinting(annotationsNotSorted, annotations, cm);
- }
- function onChange(cm) {
- var state = cm.state.lint;
- if (!state) return;
- clearTimeout(state.timeout);
- state.timeout = setTimeout(function () {
- startLinting(cm);
- }, state.options.delay);
- }
- function popupTooltips(cm, annotations, e) {
- var target = e.target || e.srcElement;
- var tooltip = document.createDocumentFragment();
- for (var i = 0; i < annotations.length; i++) {
- var ann = annotations[i];
- tooltip.appendChild(annotationTooltip(ann));
- }
- showTooltipFor(cm, e, tooltip, target);
- }
- function onMouseOver(cm, e) {
- var target = e.target || e.srcElement;
- if (!/\bCodeMirror-lint-mark-/.test(target.className)) return;
- var box = target.getBoundingClientRect(),
- x = (box.left + box.right) / 2,
- y = (box.top + box.bottom) / 2;
- var spans = cm.findMarksAt(cm.coordsChar({
- left: x,
- top: y
- }, "client"));
- var annotations = [];
- for (var i = 0; i < spans.length; ++i) {
- var ann = spans[i].__annotation;
- if (ann) annotations.push(ann);
- }
- if (annotations.length) popupTooltips(cm, annotations, e);
- }
- CodeMirror.defineOption("lint", false, function (cm, val, old) {
- if (old && old != CodeMirror.Init) {
- clearMarks(cm);
- if (cm.state.lint.options.lintOnChange !== false) cm.off("change", onChange);
- CodeMirror.off(cm.getWrapperElement(), "mouseover", cm.state.lint.onMouseOver);
- clearTimeout(cm.state.lint.timeout);
- delete cm.state.lint;
- }
- if (val) {
- var gutters = cm.getOption("gutters"),
- hasLintGutter = false;
- for (var i = 0; i < gutters.length; ++i) if (gutters[i] == GUTTER_ID) hasLintGutter = true;
- var state = cm.state.lint = new LintState(cm, val, hasLintGutter);
- if (state.options.lintOnChange) cm.on("change", onChange);
- if (state.options.tooltips != false && state.options.tooltips != "gutter") CodeMirror.on(cm.getWrapperElement(), "mouseover", state.onMouseOver);
- startLinting(cm);
- }
- });
- CodeMirror.defineExtension("performLint", function () {
- startLinting(this);
- });
- });
-})();
-var lintExports = lint$2.exports;
-const lint = /* @__PURE__ */codemirror.getDefaultExportFromCjs(lintExports);
-const lint$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: lint
-}, [lintExports]);
-exports.lint = lint$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/lint.cjs2.js":
-/*!**********************************************!*\
- !*** ../../graphiql-react/dist/lint.cjs2.js ***!
- \**********************************************/
-/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-const graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
-const SEVERITY = ["error", "warning", "information", "hint"];
-const TYPE = {
- "GraphQL: Validation": "validation",
- "GraphQL: Deprecation": "deprecation",
- "GraphQL: Syntax": "syntax"
-};
-codemirror.CodeMirror.registerHelper("lint", "graphql", (text, options) => {
- const {
- schema,
- validationRules,
- externalFragments
- } = options;
- const rawResults = graphqlLanguageService.getDiagnostics(text, schema, validationRules, void 0, externalFragments);
- const results = rawResults.map(error => ({
- message: error.message,
- severity: error.severity ? SEVERITY[error.severity - 1] : SEVERITY[0],
- type: error.source ? TYPE[error.source] : void 0,
- from: codemirror.CodeMirror.Pos(error.range.start.line, error.range.start.character),
- to: codemirror.CodeMirror.Pos(error.range.end.line, error.range.end.character)
- }));
- return results;
-});
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/lint.cjs3.js":
-/*!**********************************************!*\
- !*** ../../graphiql-react/dist/lint.cjs3.js ***!
- \**********************************************/
-/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-const graphql = __webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs");
-function jsonParse(str) {
- string = str;
- strLen = str.length;
- start = end = lastEnd = -1;
- ch();
- lex();
- const ast = parseObj();
- expect("EOF");
- return ast;
-}
-let string;
-let strLen;
-let start;
-let end;
-let lastEnd;
-let code;
-let kind;
-function parseObj() {
- const nodeStart = start;
- const members = [];
- expect("{");
- if (!skip("}")) {
- do {
- members.push(parseMember());
- } while (skip(","));
- expect("}");
- }
- return {
- kind: "Object",
- start: nodeStart,
- end: lastEnd,
- members
- };
-}
-function parseMember() {
- const nodeStart = start;
- const key = kind === "String" ? curToken() : null;
- expect("String");
- expect(":");
- const value = parseVal();
- return {
- kind: "Member",
- start: nodeStart,
- end: lastEnd,
- key,
- value
- };
-}
-function parseArr() {
- const nodeStart = start;
- const values = [];
- expect("[");
- if (!skip("]")) {
- do {
- values.push(parseVal());
- } while (skip(","));
- expect("]");
- }
- return {
- kind: "Array",
- start: nodeStart,
- end: lastEnd,
- values
- };
-}
-function parseVal() {
- switch (kind) {
- case "[":
- return parseArr();
- case "{":
- return parseObj();
- case "String":
- case "Number":
- case "Boolean":
- case "Null":
- const token = curToken();
- lex();
- return token;
- }
- expect("Value");
-}
-function curToken() {
- return {
- kind,
- start,
- end,
- value: JSON.parse(string.slice(start, end))
- };
-}
-function expect(str) {
- if (kind === str) {
- lex();
- return;
- }
- let found;
- if (kind === "EOF") {
- found = "[end of file]";
- } else if (end - start > 1) {
- found = "`" + string.slice(start, end) + "`";
- } else {
- const match = string.slice(start).match(/^.+?\b/);
- found = "`" + (match ? match[0] : string[start]) + "`";
- }
- throw syntaxError(`Expected ${str} but found ${found}.`);
-}
-class JSONSyntaxError extends Error {
- constructor(message, position) {
- super(message);
- this.position = position;
- }
-}
-function syntaxError(message) {
- return new JSONSyntaxError(message, {
- start,
- end
- });
-}
-function skip(k) {
- if (kind === k) {
- lex();
- return true;
- }
-}
-function ch() {
- if (end < strLen) {
- end++;
- code = end === strLen ? 0 : string.charCodeAt(end);
- }
- return code;
-}
-function lex() {
- lastEnd = end;
- while (code === 9 || code === 10 || code === 13 || code === 32) {
- ch();
- }
- if (code === 0) {
- kind = "EOF";
- return;
- }
- start = end;
- switch (code) {
- case 34:
- kind = "String";
- return readString();
- case 45:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- kind = "Number";
- return readNumber();
- case 102:
- if (string.slice(start, start + 5) !== "false") {
- break;
- }
- end += 4;
- ch();
- kind = "Boolean";
- return;
- case 110:
- if (string.slice(start, start + 4) !== "null") {
- break;
- }
- end += 3;
- ch();
- kind = "Null";
- return;
- case 116:
- if (string.slice(start, start + 4) !== "true") {
- break;
- }
- end += 3;
- ch();
- kind = "Boolean";
- return;
- }
- kind = string[start];
- ch();
-}
-function readString() {
- ch();
- while (code !== 34 && code > 31) {
- if (code === 92) {
- code = ch();
- switch (code) {
- case 34:
- case 47:
- case 92:
- case 98:
- case 102:
- case 110:
- case 114:
- case 116:
- ch();
- break;
- case 117:
- ch();
- readHex();
- readHex();
- readHex();
- readHex();
- break;
- default:
- throw syntaxError("Bad character escape sequence.");
- }
- } else if (end === strLen) {
- throw syntaxError("Unterminated string.");
- } else {
- ch();
- }
- }
- if (code === 34) {
- ch();
- return;
- }
- throw syntaxError("Unterminated string.");
-}
-function readHex() {
- if (code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102) {
- return ch();
- }
- throw syntaxError("Expected hexadecimal digit.");
-}
-function readNumber() {
- if (code === 45) {
- ch();
- }
- if (code === 48) {
- ch();
- } else {
- readDigits();
- }
- if (code === 46) {
- ch();
- readDigits();
- }
- if (code === 69 || code === 101) {
- code = ch();
- if (code === 43 || code === 45) {
- ch();
- }
- readDigits();
- }
-}
-function readDigits() {
- if (code < 48 || code > 57) {
- throw syntaxError("Expected decimal digit.");
- }
- do {
- ch();
- } while (code >= 48 && code <= 57);
-}
-codemirror.CodeMirror.registerHelper("lint", "graphql-variables", (text, options, editor) => {
- if (!text) {
- return [];
- }
- let ast;
- try {
- ast = jsonParse(text);
- } catch (error) {
- if (error instanceof JSONSyntaxError) {
- return [lintError(editor, error.position, error.message)];
- }
- throw error;
- }
- const {
- variableToType
- } = options;
- if (!variableToType) {
- return [];
- }
- return validateVariables(editor, variableToType, ast);
-});
-function validateVariables(editor, variableToType, variablesAST) {
- var _a;
- const errors = [];
- for (const member of variablesAST.members) {
- if (member) {
- const variableName = (_a = member.key) === null || _a === void 0 ? void 0 : _a.value;
- const type = variableToType[variableName];
- if (type) {
- for (const [node, message] of validateValue(type, member.value)) {
- errors.push(lintError(editor, node, message));
- }
- } else {
- errors.push(lintError(editor, member.key, `Variable "$${variableName}" does not appear in any GraphQL query.`));
- }
- }
- }
- return errors;
-}
-function validateValue(type, valueAST) {
- if (!type || !valueAST) {
- return [];
- }
- if (type instanceof graphql.GraphQLNonNull) {
- if (valueAST.kind === "Null") {
- return [[valueAST, `Type "${type}" is non-nullable and cannot be null.`]];
- }
- return validateValue(type.ofType, valueAST);
- }
- if (valueAST.kind === "Null") {
- return [];
- }
- if (type instanceof graphql.GraphQLList) {
- const itemType = type.ofType;
- if (valueAST.kind === "Array") {
- const values = valueAST.values || [];
- return mapCat(values, item => validateValue(itemType, item));
- }
- return validateValue(itemType, valueAST);
- }
- if (type instanceof graphql.GraphQLInputObjectType) {
- if (valueAST.kind !== "Object") {
- return [[valueAST, `Type "${type}" must be an Object.`]];
- }
- const providedFields = /* @__PURE__ */Object.create(null);
- const fieldErrors = mapCat(valueAST.members, member => {
- var _a;
- const fieldName = (_a = member === null || member === void 0 ? void 0 : member.key) === null || _a === void 0 ? void 0 : _a.value;
- providedFields[fieldName] = true;
- const inputField = type.getFields()[fieldName];
- if (!inputField) {
- return [[member.key, `Type "${type}" does not have a field "${fieldName}".`]];
- }
- const fieldType = inputField ? inputField.type : void 0;
- return validateValue(fieldType, member.value);
- });
- for (const fieldName of Object.keys(type.getFields())) {
- const field = type.getFields()[fieldName];
- if (!providedFields[fieldName] && field.type instanceof graphql.GraphQLNonNull && !field.defaultValue) {
- fieldErrors.push([valueAST, `Object of type "${type}" is missing required field "${fieldName}".`]);
- }
- }
- return fieldErrors;
- }
- if (type.name === "Boolean" && valueAST.kind !== "Boolean" || type.name === "String" && valueAST.kind !== "String" || type.name === "ID" && valueAST.kind !== "Number" && valueAST.kind !== "String" || type.name === "Float" && valueAST.kind !== "Number" || type.name === "Int" && (valueAST.kind !== "Number" || (valueAST.value | 0) !== valueAST.value)) {
- return [[valueAST, `Expected value of type "${type}".`]];
- }
- if ((type instanceof graphql.GraphQLEnumType || type instanceof graphql.GraphQLScalarType) && (valueAST.kind !== "String" && valueAST.kind !== "Number" && valueAST.kind !== "Boolean" && valueAST.kind !== "Null" || isNullish(type.parseValue(valueAST.value)))) {
- return [[valueAST, `Expected value of type "${type}".`]];
- }
- return [];
-}
-function lintError(editor, node, message) {
- return {
- message,
- severity: "error",
- type: "validation",
- from: editor.posFromIndex(node.start),
- to: editor.posFromIndex(node.end)
- };
-}
-function isNullish(value) {
- return value === null || value === void 0 || value !== value;
-}
-function mapCat(array, mapper) {
- return Array.prototype.concat.apply([], array.map(mapper));
-}
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/matchbrackets.cjs.js":
-/*!******************************************************!*\
- !*** ../../graphiql-react/dist/matchbrackets.cjs.js ***!
- \******************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-const matchbrackets$2 = __webpack_require__(/*! ./matchbrackets.cjs2.js */ "../../graphiql-react/dist/matchbrackets.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var matchbracketsExports = matchbrackets$2.requireMatchbrackets();
-const matchbrackets = /* @__PURE__ */codemirror.getDefaultExportFromCjs(matchbracketsExports);
-const matchbrackets$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: matchbrackets
-}, [matchbracketsExports]);
-exports.matchbrackets = matchbrackets$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/matchbrackets.cjs2.js":
-/*!*******************************************************!*\
- !*** ../../graphiql-react/dist/matchbrackets.cjs2.js ***!
- \*******************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-var matchbrackets = {
- exports: {}
-};
-var hasRequiredMatchbrackets;
-function requireMatchbrackets() {
- if (hasRequiredMatchbrackets) return matchbrackets.exports;
- hasRequiredMatchbrackets = 1;
- (function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- var ie_lt8 = /MSIE \d/.test(navigator.userAgent) && (document.documentMode == null || document.documentMode < 8);
- var Pos = CodeMirror.Pos;
- var matching = {
- "(": ")>",
- ")": "(<",
- "[": "]>",
- "]": "[<",
- "{": "}>",
- "}": "{<",
- "<": ">>",
- ">": "<<"
- };
- function bracketRegex(config) {
- return config && config.bracketRegex || /[(){}[\]]/;
- }
- function findMatchingBracket(cm, where, config) {
- var line = cm.getLineHandle(where.line),
- pos = where.ch - 1;
- var afterCursor = config && config.afterCursor;
- if (afterCursor == null) afterCursor = /(^| )cm-fat-cursor($| )/.test(cm.getWrapperElement().className);
- var re = bracketRegex(config);
- var match = !afterCursor && pos >= 0 && re.test(line.text.charAt(pos)) && matching[line.text.charAt(pos)] || re.test(line.text.charAt(pos + 1)) && matching[line.text.charAt(++pos)];
- if (!match) return null;
- var dir = match.charAt(1) == ">" ? 1 : -1;
- if (config && config.strict && dir > 0 != (pos == where.ch)) return null;
- var style = cm.getTokenTypeAt(Pos(where.line, pos + 1));
- var found = scanForBracket(cm, Pos(where.line, pos + (dir > 0 ? 1 : 0)), dir, style, config);
- if (found == null) return null;
- return {
- from: Pos(where.line, pos),
- to: found && found.pos,
- match: found && found.ch == match.charAt(0),
- forward: dir > 0
- };
- }
- function scanForBracket(cm, where, dir, style, config) {
- var maxScanLen = config && config.maxScanLineLength || 1e4;
- var maxScanLines = config && config.maxScanLines || 1e3;
- var stack = [];
- var re = bracketRegex(config);
- var lineEnd = dir > 0 ? Math.min(where.line + maxScanLines, cm.lastLine() + 1) : Math.max(cm.firstLine() - 1, where.line - maxScanLines);
- for (var lineNo = where.line; lineNo != lineEnd; lineNo += dir) {
- var line = cm.getLine(lineNo);
- if (!line) continue;
- var pos = dir > 0 ? 0 : line.length - 1,
- end = dir > 0 ? line.length : -1;
- if (line.length > maxScanLen) continue;
- if (lineNo == where.line) pos = where.ch - (dir < 0 ? 1 : 0);
- for (; pos != end; pos += dir) {
- var ch = line.charAt(pos);
- if (re.test(ch) && (style === void 0 || (cm.getTokenTypeAt(Pos(lineNo, pos + 1)) || "") == (style || ""))) {
- var match = matching[ch];
- if (match && match.charAt(1) == ">" == dir > 0) stack.push(ch);else if (!stack.length) return {
- pos: Pos(lineNo, pos),
- ch
- };else stack.pop();
- }
- }
- }
- return lineNo - dir == (dir > 0 ? cm.lastLine() : cm.firstLine()) ? false : null;
- }
- function matchBrackets(cm, autoclear, config) {
- var maxHighlightLen = cm.state.matchBrackets.maxHighlightLineLength || 1e3,
- highlightNonMatching = config && config.highlightNonMatching;
- var marks = [],
- ranges = cm.listSelections();
- for (var i = 0; i < ranges.length; i++) {
- var match = ranges[i].empty() && findMatchingBracket(cm, ranges[i].head, config);
- if (match && (match.match || highlightNonMatching !== false) && cm.getLine(match.from.line).length <= maxHighlightLen) {
- var style = match.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
- marks.push(cm.markText(match.from, Pos(match.from.line, match.from.ch + 1), {
- className: style
- }));
- if (match.to && cm.getLine(match.to.line).length <= maxHighlightLen) marks.push(cm.markText(match.to, Pos(match.to.line, match.to.ch + 1), {
- className: style
- }));
- }
- }
- if (marks.length) {
- if (ie_lt8 && cm.state.focused) cm.focus();
- var clear = function () {
- cm.operation(function () {
- for (var i2 = 0; i2 < marks.length; i2++) marks[i2].clear();
- });
- };
- if (autoclear) setTimeout(clear, 800);else return clear;
- }
- }
- function doMatchBrackets(cm) {
- cm.operation(function () {
- if (cm.state.matchBrackets.currentlyHighlighted) {
- cm.state.matchBrackets.currentlyHighlighted();
- cm.state.matchBrackets.currentlyHighlighted = null;
- }
- cm.state.matchBrackets.currentlyHighlighted = matchBrackets(cm, false, cm.state.matchBrackets);
- });
- }
- function clearHighlighted(cm) {
- if (cm.state.matchBrackets && cm.state.matchBrackets.currentlyHighlighted) {
- cm.state.matchBrackets.currentlyHighlighted();
- cm.state.matchBrackets.currentlyHighlighted = null;
- }
- }
- CodeMirror.defineOption("matchBrackets", false, function (cm, val, old) {
- if (old && old != CodeMirror.Init) {
- cm.off("cursorActivity", doMatchBrackets);
- cm.off("focus", doMatchBrackets);
- cm.off("blur", clearHighlighted);
- clearHighlighted(cm);
- }
- if (val) {
- cm.state.matchBrackets = typeof val == "object" ? val : {};
- cm.on("cursorActivity", doMatchBrackets);
- cm.on("focus", doMatchBrackets);
- cm.on("blur", clearHighlighted);
- }
- });
- CodeMirror.defineExtension("matchBrackets", function () {
- matchBrackets(this, true);
- });
- CodeMirror.defineExtension("findMatchingBracket", function (pos, config, oldConfig) {
- if (oldConfig || typeof config == "boolean") {
- if (!oldConfig) {
- config = config ? {
- strict: true
- } : null;
- } else {
- oldConfig.strict = config;
- config = oldConfig;
- }
- }
- return findMatchingBracket(this, pos, config);
- });
- CodeMirror.defineExtension("scanForBracket", function (pos, dir, style, config) {
- return scanForBracket(this, pos, dir, style, config);
- });
- });
- })();
- return matchbrackets.exports;
-}
-exports.requireMatchbrackets = requireMatchbrackets;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/mode-indent.cjs.js":
-/*!****************************************************!*\
- !*** ../../graphiql-react/dist/mode-indent.cjs.js ***!
- \****************************************************/
-/***/ (function(__unused_webpack_module, exports) {
-
-
-
-function indent(state, textAfter) {
- var _a, _b;
- const {
- levels,
- indentLevel
- } = state;
- const level = !levels || levels.length === 0 ? indentLevel : levels.at(-1) - (((_a = this.electricInput) === null || _a === void 0 ? void 0 : _a.test(textAfter)) ? 1 : 0);
- return (level || 0) * (((_b = this.config) === null || _b === void 0 ? void 0 : _b.indentUnit) || 0);
-}
-exports.indent = indent;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/mode.cjs.js":
-/*!*********************************************!*\
- !*** ../../graphiql-react/dist/mode.cjs.js ***!
- \*********************************************/
-/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-const graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
-const modeIndent = __webpack_require__(/*! ./mode-indent.cjs.js */ "../../graphiql-react/dist/mode-indent.cjs.js");
-const graphqlModeFactory = config => {
- const parser = graphqlLanguageService.onlineParser({
- eatWhitespace: stream => stream.eatWhile(graphqlLanguageService.isIgnored),
- lexRules: graphqlLanguageService.LexRules,
- parseRules: graphqlLanguageService.ParseRules,
- editorConfig: {
- tabSize: config.tabSize
- }
- });
- return {
- config,
- startState: parser.startState,
- token: parser.token,
- indent: modeIndent.indent,
- electricInput: /^\s*[})\]]/,
- fold: "brace",
- lineComment: "#",
- closeBrackets: {
- pairs: '()[]{}""',
- explode: "()[]{}"
- }
- };
-};
-codemirror.CodeMirror.defineMode("graphql", graphqlModeFactory);
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/mode.cjs2.js":
-/*!**********************************************!*\
- !*** ../../graphiql-react/dist/mode.cjs2.js ***!
- \**********************************************/
-/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-const graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
-const modeIndent = __webpack_require__(/*! ./mode-indent.cjs.js */ "../../graphiql-react/dist/mode-indent.cjs.js");
-codemirror.CodeMirror.defineMode("graphql-variables", config => {
- const parser = graphqlLanguageService.onlineParser({
- eatWhitespace: stream => stream.eatSpace(),
- lexRules: LexRules,
- parseRules: ParseRules,
- editorConfig: {
- tabSize: config.tabSize
- }
- });
- return {
- config,
- startState: parser.startState,
- token: parser.token,
- indent: modeIndent.indent,
- electricInput: /^\s*[}\]]/,
- fold: "brace",
- closeBrackets: {
- pairs: '[]{}""',
- explode: "[]{}"
- }
- };
-});
-const LexRules = {
- Punctuation: /^\[|]|\{|\}|:|,/,
- Number: /^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,
- String: /^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,
- Keyword: /^true|false|null/
-};
-const ParseRules = {
- Document: [graphqlLanguageService.p("{"), graphqlLanguageService.list("Variable", graphqlLanguageService.opt(graphqlLanguageService.p(","))), graphqlLanguageService.p("}")],
- Variable: [namedKey("variable"), graphqlLanguageService.p(":"), "Value"],
- Value(token) {
- switch (token.kind) {
- case "Number":
- return "NumberValue";
- case "String":
- return "StringValue";
- case "Punctuation":
- switch (token.value) {
- case "[":
- return "ListValue";
- case "{":
- return "ObjectValue";
- }
- return null;
- case "Keyword":
- switch (token.value) {
- case "true":
- case "false":
- return "BooleanValue";
- case "null":
- return "NullValue";
- }
- return null;
- }
- },
- NumberValue: [graphqlLanguageService.t("Number", "number")],
- StringValue: [graphqlLanguageService.t("String", "string")],
- BooleanValue: [graphqlLanguageService.t("Keyword", "builtin")],
- NullValue: [graphqlLanguageService.t("Keyword", "keyword")],
- ListValue: [graphqlLanguageService.p("["), graphqlLanguageService.list("Value", graphqlLanguageService.opt(graphqlLanguageService.p(","))), graphqlLanguageService.p("]")],
- ObjectValue: [graphqlLanguageService.p("{"), graphqlLanguageService.list("ObjectField", graphqlLanguageService.opt(graphqlLanguageService.p(","))), graphqlLanguageService.p("}")],
- ObjectField: [namedKey("attribute"), graphqlLanguageService.p(":"), "Value"]
-};
-function namedKey(style) {
- return {
- style,
- match: token => token.kind === "String",
- update(state, token) {
- state.name = token.value.slice(1, -1);
- }
- };
-}
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/mode.cjs3.js":
-/*!**********************************************!*\
- !*** ../../graphiql-react/dist/mode.cjs3.js ***!
- \**********************************************/
-/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs.js */ "../../graphiql-react/dist/codemirror.cjs.js");
-const graphqlLanguageService = __webpack_require__(/*! graphql-language-service */ "../../graphql-language-service/esm/index.js");
-const modeIndent = __webpack_require__(/*! ./mode-indent.cjs.js */ "../../graphiql-react/dist/mode-indent.cjs.js");
-codemirror.CodeMirror.defineMode("graphql-results", config => {
- const parser = graphqlLanguageService.onlineParser({
- eatWhitespace: stream => stream.eatSpace(),
- lexRules: LexRules,
- parseRules: ParseRules,
- editorConfig: {
- tabSize: config.tabSize
- }
- });
- return {
- config,
- startState: parser.startState,
- token: parser.token,
- indent: modeIndent.indent,
- electricInput: /^\s*[}\]]/,
- fold: "brace",
- closeBrackets: {
- pairs: '[]{}""',
- explode: "[]{}"
- }
- };
-});
-const LexRules = {
- Punctuation: /^\[|]|\{|\}|:|,/,
- Number: /^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,
- String: /^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,
- Keyword: /^true|false|null/
-};
-const ParseRules = {
- Document: [graphqlLanguageService.p("{"), graphqlLanguageService.list("Entry", graphqlLanguageService.p(",")), graphqlLanguageService.p("}")],
- Entry: [graphqlLanguageService.t("String", "def"), graphqlLanguageService.p(":"), "Value"],
- Value(token) {
- switch (token.kind) {
- case "Number":
- return "NumberValue";
- case "String":
- return "StringValue";
- case "Punctuation":
- switch (token.value) {
- case "[":
- return "ListValue";
- case "{":
- return "ObjectValue";
- }
- return null;
- case "Keyword":
- switch (token.value) {
- case "true":
- case "false":
- return "BooleanValue";
- case "null":
- return "NullValue";
- }
- return null;
- }
- },
- NumberValue: [graphqlLanguageService.t("Number", "number")],
- StringValue: [graphqlLanguageService.t("String", "string")],
- BooleanValue: [graphqlLanguageService.t("Keyword", "builtin")],
- NullValue: [graphqlLanguageService.t("Keyword", "keyword")],
- ListValue: [graphqlLanguageService.p("["), graphqlLanguageService.list("Value", graphqlLanguageService.p(",")), graphqlLanguageService.p("]")],
- ObjectValue: [graphqlLanguageService.p("{"), graphqlLanguageService.list("ObjectField", graphqlLanguageService.p(",")), graphqlLanguageService.p("}")],
- ObjectField: [graphqlLanguageService.t("String", "property"), graphqlLanguageService.p(":"), "Value"]
-};
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/search.cjs.js":
-/*!***********************************************!*\
- !*** ../../graphiql-react/dist/search.cjs.js ***!
- \***********************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-const searchcursor = __webpack_require__(/*! ./searchcursor.cjs2.js */ "../../graphiql-react/dist/searchcursor.cjs2.js");
-const dialog = __webpack_require__(/*! ./dialog.cjs.js */ "../../graphiql-react/dist/dialog.cjs.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var search$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror(), searchcursor.requireSearchcursor(), dialog.dialogExports);
- })(function (CodeMirror) {
- CodeMirror.defineOption("search", {
- bottom: false
- });
- function searchOverlay(query, caseInsensitive) {
- if (typeof query == "string") query = new RegExp(query.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), caseInsensitive ? "gi" : "g");else if (!query.global) query = new RegExp(query.source, query.ignoreCase ? "gi" : "g");
- return {
- token: function (stream) {
- query.lastIndex = stream.pos;
- var match = query.exec(stream.string);
- if (match && match.index == stream.pos) {
- stream.pos += match[0].length || 1;
- return "searching";
- } else if (match) {
- stream.pos = match.index;
- } else {
- stream.skipToEnd();
- }
- }
- };
- }
- function SearchState() {
- this.posFrom = this.posTo = this.lastQuery = this.query = null;
- this.overlay = null;
- }
- function getSearchState(cm) {
- return cm.state.search || (cm.state.search = new SearchState());
- }
- function queryCaseInsensitive(query) {
- return typeof query == "string" && query == query.toLowerCase();
- }
- function getSearchCursor(cm, query, pos) {
- return cm.getSearchCursor(query, pos, {
- caseFold: queryCaseInsensitive(query),
- multiline: true
- });
- }
- function persistentDialog(cm, text, deflt, onEnter, onKeyDown) {
- cm.openDialog(text, onEnter, {
- value: deflt,
- selectValueOnOpen: true,
- closeOnEnter: false,
- onClose: function () {
- clearSearch(cm);
- },
- onKeyDown,
- bottom: cm.options.search.bottom
- });
- }
- function dialog2(cm, text, shortText, deflt, f) {
- if (cm.openDialog) cm.openDialog(text, f, {
- value: deflt,
- selectValueOnOpen: true,
- bottom: cm.options.search.bottom
- });else f(prompt(shortText, deflt));
- }
- function confirmDialog(cm, text, shortText, fs) {
- if (cm.openConfirm) cm.openConfirm(text, fs);else if (confirm(shortText)) fs[0]();
- }
- function parseString(string) {
- return string.replace(/\\([nrt\\])/g, function (match, ch) {
- if (ch == "n") return "\n";
- if (ch == "r") return "\r";
- if (ch == "t") return " ";
- if (ch == "\\") return "\\";
- return match;
- });
- }
- function parseQuery(query) {
- var isRE = query.match(/^\/(.*)\/([a-z]*)$/);
- if (isRE) {
- try {
- query = new RegExp(isRE[1], isRE[2].indexOf("i") == -1 ? "" : "i");
- } catch (e) {}
- } else {
- query = parseString(query);
- }
- if (typeof query == "string" ? query == "" : query.test("")) query = /x^/;
- return query;
- }
- function startSearch(cm, state, query) {
- state.queryText = query;
- state.query = parseQuery(query);
- cm.removeOverlay(state.overlay, queryCaseInsensitive(state.query));
- state.overlay = searchOverlay(state.query, queryCaseInsensitive(state.query));
- cm.addOverlay(state.overlay);
- if (cm.showMatchesOnScrollbar) {
- if (state.annotate) {
- state.annotate.clear();
- state.annotate = null;
- }
- state.annotate = cm.showMatchesOnScrollbar(state.query, queryCaseInsensitive(state.query));
- }
- }
- function doSearch(cm, rev, persistent, immediate) {
- var state = getSearchState(cm);
- if (state.query) return findNext(cm, rev);
- var q = cm.getSelection() || state.lastQuery;
- if (q instanceof RegExp && q.source == "x^") q = null;
- if (persistent && cm.openDialog) {
- var hiding = null;
- var searchNext = function (query, event) {
- CodeMirror.e_stop(event);
- if (!query) return;
- if (query != state.queryText) {
- startSearch(cm, state, query);
- state.posFrom = state.posTo = cm.getCursor();
- }
- if (hiding) hiding.style.opacity = 1;
- findNext(cm, event.shiftKey, function (_, to) {
- var dialog3;
- if (to.line < 3 && document.querySelector && (dialog3 = cm.display.wrapper.querySelector(".CodeMirror-dialog")) && dialog3.getBoundingClientRect().bottom - 4 > cm.cursorCoords(to, "window").top) (hiding = dialog3).style.opacity = 0.4;
- });
- };
- persistentDialog(cm, getQueryDialog(cm), q, searchNext, function (event, query) {
- var keyName = CodeMirror.keyName(event);
- var extra = cm.getOption("extraKeys"),
- cmd = extra && extra[keyName] || CodeMirror.keyMap[cm.getOption("keyMap")][keyName];
- if (cmd == "findNext" || cmd == "findPrev" || cmd == "findPersistentNext" || cmd == "findPersistentPrev") {
- CodeMirror.e_stop(event);
- startSearch(cm, getSearchState(cm), query);
- cm.execCommand(cmd);
- } else if (cmd == "find" || cmd == "findPersistent") {
- CodeMirror.e_stop(event);
- searchNext(query, event);
- }
- });
- if (immediate && q) {
- startSearch(cm, state, q);
- findNext(cm, rev);
- }
- } else {
- dialog2(cm, getQueryDialog(cm), "Search for:", q, function (query) {
- if (query && !state.query) cm.operation(function () {
- startSearch(cm, state, query);
- state.posFrom = state.posTo = cm.getCursor();
- findNext(cm, rev);
- });
- });
- }
- }
- function findNext(cm, rev, callback) {
- cm.operation(function () {
- var state = getSearchState(cm);
- var cursor = getSearchCursor(cm, state.query, rev ? state.posFrom : state.posTo);
- if (!cursor.find(rev)) {
- cursor = getSearchCursor(cm, state.query, rev ? CodeMirror.Pos(cm.lastLine()) : CodeMirror.Pos(cm.firstLine(), 0));
- if (!cursor.find(rev)) return;
- }
- cm.setSelection(cursor.from(), cursor.to());
- cm.scrollIntoView({
- from: cursor.from(),
- to: cursor.to()
- }, 20);
- state.posFrom = cursor.from();
- state.posTo = cursor.to();
- if (callback) callback(cursor.from(), cursor.to());
- });
- }
- function clearSearch(cm) {
- cm.operation(function () {
- var state = getSearchState(cm);
- state.lastQuery = state.query;
- if (!state.query) return;
- state.query = state.queryText = null;
- cm.removeOverlay(state.overlay);
- if (state.annotate) {
- state.annotate.clear();
- state.annotate = null;
- }
- });
- }
- function el(tag, attrs) {
- var element = tag ? document.createElement(tag) : document.createDocumentFragment();
- for (var key in attrs) {
- element[key] = attrs[key];
- }
- for (var i = 2; i < arguments.length; i++) {
- var child = arguments[i];
- element.appendChild(typeof child == "string" ? document.createTextNode(child) : child);
- }
- return element;
- }
- function getQueryDialog(cm) {
- return el("", null, el("span", {
- className: "CodeMirror-search-label"
- }, cm.phrase("Search:")), " ", el("input", {
- type: "text",
- "style": "width: 10em",
- className: "CodeMirror-search-field"
- }), " ", el("span", {
- style: "color: #888",
- className: "CodeMirror-search-hint"
- }, cm.phrase("(Use /re/ syntax for regexp search)")));
- }
- function getReplaceQueryDialog(cm) {
- return el("", null, " ", el("input", {
- type: "text",
- "style": "width: 10em",
- className: "CodeMirror-search-field"
- }), " ", el("span", {
- style: "color: #888",
- className: "CodeMirror-search-hint"
- }, cm.phrase("(Use /re/ syntax for regexp search)")));
- }
- function getReplacementQueryDialog(cm) {
- return el("", null, el("span", {
- className: "CodeMirror-search-label"
- }, cm.phrase("With:")), " ", el("input", {
- type: "text",
- "style": "width: 10em",
- className: "CodeMirror-search-field"
- }));
- }
- function getDoReplaceConfirm(cm) {
- return el("", null, el("span", {
- className: "CodeMirror-search-label"
- }, cm.phrase("Replace?")), " ", el("button", {}, cm.phrase("Yes")), " ", el("button", {}, cm.phrase("No")), " ", el("button", {}, cm.phrase("All")), " ", el("button", {}, cm.phrase("Stop")));
- }
- function replaceAll(cm, query, text) {
- cm.operation(function () {
- for (var cursor = getSearchCursor(cm, query); cursor.findNext();) {
- if (typeof query != "string") {
- var match = cm.getRange(cursor.from(), cursor.to()).match(query);
- cursor.replace(text.replace(/\$(\d)/g, function (_, i) {
- return match[i];
- }));
- } else cursor.replace(text);
- }
- });
- }
- function replace(cm, all) {
- if (cm.getOption("readOnly")) return;
- var query = cm.getSelection() || getSearchState(cm).lastQuery;
- var dialogText = all ? cm.phrase("Replace all:") : cm.phrase("Replace:");
- var fragment = el("", null, el("span", {
- className: "CodeMirror-search-label"
- }, dialogText), getReplaceQueryDialog(cm));
- dialog2(cm, fragment, dialogText, query, function (query2) {
- if (!query2) return;
- query2 = parseQuery(query2);
- dialog2(cm, getReplacementQueryDialog(cm), cm.phrase("Replace with:"), "", function (text) {
- text = parseString(text);
- if (all) {
- replaceAll(cm, query2, text);
- } else {
- clearSearch(cm);
- var cursor = getSearchCursor(cm, query2, cm.getCursor("from"));
- var advance = function () {
- var start = cursor.from(),
- match;
- if (!(match = cursor.findNext())) {
- cursor = getSearchCursor(cm, query2);
- if (!(match = cursor.findNext()) || start && cursor.from().line == start.line && cursor.from().ch == start.ch) return;
- }
- cm.setSelection(cursor.from(), cursor.to());
- cm.scrollIntoView({
- from: cursor.from(),
- to: cursor.to()
- });
- confirmDialog(cm, getDoReplaceConfirm(cm), cm.phrase("Replace?"), [function () {
- doReplace(match);
- }, advance, function () {
- replaceAll(cm, query2, text);
- }]);
- };
- var doReplace = function (match) {
- cursor.replace(typeof query2 == "string" ? text : text.replace(/\$(\d)/g, function (_, i) {
- return match[i];
- }));
- advance();
- };
- advance();
- }
- });
- });
- }
- CodeMirror.commands.find = function (cm) {
- clearSearch(cm);
- doSearch(cm);
- };
- CodeMirror.commands.findPersistent = function (cm) {
- clearSearch(cm);
- doSearch(cm, false, true);
- };
- CodeMirror.commands.findPersistentNext = function (cm) {
- doSearch(cm, false, true, true);
- };
- CodeMirror.commands.findPersistentPrev = function (cm) {
- doSearch(cm, true, true, true);
- };
- CodeMirror.commands.findNext = doSearch;
- CodeMirror.commands.findPrev = function (cm) {
- doSearch(cm, true);
- };
- CodeMirror.commands.clearSearch = clearSearch;
- CodeMirror.commands.replace = replace;
- CodeMirror.commands.replaceAll = function (cm) {
- replace(cm, true);
- };
- });
-})();
-var searchExports = search$2.exports;
-const search = /* @__PURE__ */codemirror.getDefaultExportFromCjs(searchExports);
-const search$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: search
-}, [searchExports]);
-exports.search = search$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/searchcursor.cjs.js":
-/*!*****************************************************!*\
- !*** ../../graphiql-react/dist/searchcursor.cjs.js ***!
- \*****************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-const searchcursor$2 = __webpack_require__(/*! ./searchcursor.cjs2.js */ "../../graphiql-react/dist/searchcursor.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var searchcursorExports = searchcursor$2.requireSearchcursor();
-const searchcursor = /* @__PURE__ */codemirror.getDefaultExportFromCjs(searchcursorExports);
-const searchcursor$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: searchcursor
-}, [searchcursorExports]);
-exports.searchcursor = searchcursor$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/searchcursor.cjs2.js":
-/*!******************************************************!*\
- !*** ../../graphiql-react/dist/searchcursor.cjs2.js ***!
- \******************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-var searchcursor = {
- exports: {}
-};
-var hasRequiredSearchcursor;
-function requireSearchcursor() {
- if (hasRequiredSearchcursor) return searchcursor.exports;
- hasRequiredSearchcursor = 1;
- (function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- var Pos = CodeMirror.Pos;
- function regexpFlags(regexp) {
- var flags = regexp.flags;
- return flags != null ? flags : (regexp.ignoreCase ? "i" : "") + (regexp.global ? "g" : "") + (regexp.multiline ? "m" : "");
- }
- function ensureFlags(regexp, flags) {
- var current = regexpFlags(regexp),
- target = current;
- for (var i = 0; i < flags.length; i++) if (target.indexOf(flags.charAt(i)) == -1) target += flags.charAt(i);
- return current == target ? regexp : new RegExp(regexp.source, target);
- }
- function maybeMultiline(regexp) {
- return /\\s|\\n|\n|\\W|\\D|\[\^/.test(regexp.source);
- }
- function searchRegexpForward(doc, regexp, start) {
- regexp = ensureFlags(regexp, "g");
- for (var line = start.line, ch = start.ch, last = doc.lastLine(); line <= last; line++, ch = 0) {
- regexp.lastIndex = ch;
- var string = doc.getLine(line),
- match = regexp.exec(string);
- if (match) return {
- from: Pos(line, match.index),
- to: Pos(line, match.index + match[0].length),
- match
- };
- }
- }
- function searchRegexpForwardMultiline(doc, regexp, start) {
- if (!maybeMultiline(regexp)) return searchRegexpForward(doc, regexp, start);
- regexp = ensureFlags(regexp, "gm");
- var string,
- chunk = 1;
- for (var line = start.line, last = doc.lastLine(); line <= last;) {
- for (var i = 0; i < chunk; i++) {
- if (line > last) break;
- var curLine = doc.getLine(line++);
- string = string == null ? curLine : string + "\n" + curLine;
- }
- chunk = chunk * 2;
- regexp.lastIndex = start.ch;
- var match = regexp.exec(string);
- if (match) {
- var before = string.slice(0, match.index).split("\n"),
- inside = match[0].split("\n");
- var startLine = start.line + before.length - 1,
- startCh = before[before.length - 1].length;
- return {
- from: Pos(startLine, startCh),
- to: Pos(startLine + inside.length - 1, inside.length == 1 ? startCh + inside[0].length : inside[inside.length - 1].length),
- match
- };
- }
- }
- }
- function lastMatchIn(string, regexp, endMargin) {
- var match,
- from = 0;
- while (from <= string.length) {
- regexp.lastIndex = from;
- var newMatch = regexp.exec(string);
- if (!newMatch) break;
- var end = newMatch.index + newMatch[0].length;
- if (end > string.length - endMargin) break;
- if (!match || end > match.index + match[0].length) match = newMatch;
- from = newMatch.index + 1;
- }
- return match;
- }
- function searchRegexpBackward(doc, regexp, start) {
- regexp = ensureFlags(regexp, "g");
- for (var line = start.line, ch = start.ch, first = doc.firstLine(); line >= first; line--, ch = -1) {
- var string = doc.getLine(line);
- var match = lastMatchIn(string, regexp, ch < 0 ? 0 : string.length - ch);
- if (match) return {
- from: Pos(line, match.index),
- to: Pos(line, match.index + match[0].length),
- match
- };
- }
- }
- function searchRegexpBackwardMultiline(doc, regexp, start) {
- if (!maybeMultiline(regexp)) return searchRegexpBackward(doc, regexp, start);
- regexp = ensureFlags(regexp, "gm");
- var string,
- chunkSize = 1,
- endMargin = doc.getLine(start.line).length - start.ch;
- for (var line = start.line, first = doc.firstLine(); line >= first;) {
- for (var i = 0; i < chunkSize && line >= first; i++) {
- var curLine = doc.getLine(line--);
- string = string == null ? curLine : curLine + "\n" + string;
- }
- chunkSize *= 2;
- var match = lastMatchIn(string, regexp, endMargin);
- if (match) {
- var before = string.slice(0, match.index).split("\n"),
- inside = match[0].split("\n");
- var startLine = line + before.length,
- startCh = before[before.length - 1].length;
- return {
- from: Pos(startLine, startCh),
- to: Pos(startLine + inside.length - 1, inside.length == 1 ? startCh + inside[0].length : inside[inside.length - 1].length),
- match
- };
- }
- }
- }
- var doFold, noFold;
- if (String.prototype.normalize) {
- doFold = function (str) {
- return str.normalize("NFD").toLowerCase();
- };
- noFold = function (str) {
- return str.normalize("NFD");
- };
- } else {
- doFold = function (str) {
- return str.toLowerCase();
- };
- noFold = function (str) {
- return str;
- };
- }
- function adjustPos(orig, folded, pos, foldFunc) {
- if (orig.length == folded.length) return pos;
- for (var min = 0, max = pos + Math.max(0, orig.length - folded.length);;) {
- if (min == max) return min;
- var mid = min + max >> 1;
- var len = foldFunc(orig.slice(0, mid)).length;
- if (len == pos) return mid;else if (len > pos) max = mid;else min = mid + 1;
- }
- }
- function searchStringForward(doc, query, start, caseFold) {
- if (!query.length) return null;
- var fold = caseFold ? doFold : noFold;
- var lines = fold(query).split(/\r|\n\r?/);
- search: for (var line = start.line, ch = start.ch, last = doc.lastLine() + 1 - lines.length; line <= last; line++, ch = 0) {
- var orig = doc.getLine(line).slice(ch),
- string = fold(orig);
- if (lines.length == 1) {
- var found = string.indexOf(lines[0]);
- if (found == -1) continue search;
- var start = adjustPos(orig, string, found, fold) + ch;
- return {
- from: Pos(line, adjustPos(orig, string, found, fold) + ch),
- to: Pos(line, adjustPos(orig, string, found + lines[0].length, fold) + ch)
- };
- } else {
- var cutFrom = string.length - lines[0].length;
- if (string.slice(cutFrom) != lines[0]) continue search;
- for (var i = 1; i < lines.length - 1; i++) if (fold(doc.getLine(line + i)) != lines[i]) continue search;
- var end = doc.getLine(line + lines.length - 1),
- endString = fold(end),
- lastLine = lines[lines.length - 1];
- if (endString.slice(0, lastLine.length) != lastLine) continue search;
- return {
- from: Pos(line, adjustPos(orig, string, cutFrom, fold) + ch),
- to: Pos(line + lines.length - 1, adjustPos(end, endString, lastLine.length, fold))
- };
- }
- }
- }
- function searchStringBackward(doc, query, start, caseFold) {
- if (!query.length) return null;
- var fold = caseFold ? doFold : noFold;
- var lines = fold(query).split(/\r|\n\r?/);
- search: for (var line = start.line, ch = start.ch, first = doc.firstLine() - 1 + lines.length; line >= first; line--, ch = -1) {
- var orig = doc.getLine(line);
- if (ch > -1) orig = orig.slice(0, ch);
- var string = fold(orig);
- if (lines.length == 1) {
- var found = string.lastIndexOf(lines[0]);
- if (found == -1) continue search;
- return {
- from: Pos(line, adjustPos(orig, string, found, fold)),
- to: Pos(line, adjustPos(orig, string, found + lines[0].length, fold))
- };
- } else {
- var lastLine = lines[lines.length - 1];
- if (string.slice(0, lastLine.length) != lastLine) continue search;
- for (var i = 1, start = line - lines.length + 1; i < lines.length - 1; i++) if (fold(doc.getLine(start + i)) != lines[i]) continue search;
- var top = doc.getLine(line + 1 - lines.length),
- topString = fold(top);
- if (topString.slice(topString.length - lines[0].length) != lines[0]) continue search;
- return {
- from: Pos(line + 1 - lines.length, adjustPos(top, topString, top.length - lines[0].length, fold)),
- to: Pos(line, adjustPos(orig, string, lastLine.length, fold))
- };
- }
- }
- }
- function SearchCursor(doc, query, pos, options) {
- this.atOccurrence = false;
- this.afterEmptyMatch = false;
- this.doc = doc;
- pos = pos ? doc.clipPos(pos) : Pos(0, 0);
- this.pos = {
- from: pos,
- to: pos
- };
- var caseFold;
- if (typeof options == "object") {
- caseFold = options.caseFold;
- } else {
- caseFold = options;
- options = null;
- }
- if (typeof query == "string") {
- if (caseFold == null) caseFold = false;
- this.matches = function (reverse, pos2) {
- return (reverse ? searchStringBackward : searchStringForward)(doc, query, pos2, caseFold);
- };
- } else {
- query = ensureFlags(query, "gm");
- if (!options || options.multiline !== false) this.matches = function (reverse, pos2) {
- return (reverse ? searchRegexpBackwardMultiline : searchRegexpForwardMultiline)(doc, query, pos2);
- };else this.matches = function (reverse, pos2) {
- return (reverse ? searchRegexpBackward : searchRegexpForward)(doc, query, pos2);
- };
- }
- }
- SearchCursor.prototype = {
- findNext: function () {
- return this.find(false);
- },
- findPrevious: function () {
- return this.find(true);
- },
- find: function (reverse) {
- var head = this.doc.clipPos(reverse ? this.pos.from : this.pos.to);
- if (this.afterEmptyMatch && this.atOccurrence) {
- head = Pos(head.line, head.ch);
- if (reverse) {
- head.ch--;
- if (head.ch < 0) {
- head.line--;
- head.ch = (this.doc.getLine(head.line) || "").length;
- }
- } else {
- head.ch++;
- if (head.ch > (this.doc.getLine(head.line) || "").length) {
- head.ch = 0;
- head.line++;
- }
- }
- if (CodeMirror.cmpPos(head, this.doc.clipPos(head)) != 0) {
- return this.atOccurrence = false;
- }
- }
- var result = this.matches(reverse, head);
- this.afterEmptyMatch = result && CodeMirror.cmpPos(result.from, result.to) == 0;
- if (result) {
- this.pos = result;
- this.atOccurrence = true;
- return this.pos.match || true;
- } else {
- var end = Pos(reverse ? this.doc.firstLine() : this.doc.lastLine() + 1, 0);
- this.pos = {
- from: end,
- to: end
- };
- return this.atOccurrence = false;
- }
- },
- from: function () {
- if (this.atOccurrence) return this.pos.from;
- },
- to: function () {
- if (this.atOccurrence) return this.pos.to;
- },
- replace: function (newText, origin) {
- if (!this.atOccurrence) return;
- var lines = CodeMirror.splitLines(newText);
- this.doc.replaceRange(lines, this.pos.from, this.pos.to, origin);
- this.pos.to = Pos(this.pos.from.line + lines.length - 1, lines[lines.length - 1].length + (lines.length == 1 ? this.pos.from.ch : 0));
- }
- };
- CodeMirror.defineExtension("getSearchCursor", function (query, pos, caseFold) {
- return new SearchCursor(this.doc, query, pos, caseFold);
- });
- CodeMirror.defineDocExtension("getSearchCursor", function (query, pos, caseFold) {
- return new SearchCursor(this, query, pos, caseFold);
- });
- CodeMirror.defineExtension("selectMatches", function (query, caseFold) {
- var ranges = [];
- var cur = this.getSearchCursor(query, this.getCursor("from"), caseFold);
- while (cur.findNext()) {
- if (CodeMirror.cmpPos(cur.to(), this.getCursor("to")) > 0) break;
- ranges.push({
- anchor: cur.from(),
- head: cur.to()
- });
- }
- if (ranges.length) this.setSelections(ranges, 0);
- });
- });
- })();
- return searchcursor.exports;
-}
-exports.requireSearchcursor = requireSearchcursor;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/show-hint.cjs.js":
-/*!**************************************************!*\
- !*** ../../graphiql-react/dist/show-hint.cjs.js ***!
- \**************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var showHint$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror());
- })(function (CodeMirror) {
- var HINT_ELEMENT_CLASS = "CodeMirror-hint";
- var ACTIVE_HINT_ELEMENT_CLASS = "CodeMirror-hint-active";
- CodeMirror.showHint = function (cm, getHints, options) {
- if (!getHints) return cm.showHint(options);
- if (options && options.async) getHints.async = true;
- var newOpts = {
- hint: getHints
- };
- if (options) for (var prop in options) newOpts[prop] = options[prop];
- return cm.showHint(newOpts);
- };
- CodeMirror.defineExtension("showHint", function (options) {
- options = parseOptions(this, this.getCursor("start"), options);
- var selections = this.listSelections();
- if (selections.length > 1) return;
- if (this.somethingSelected()) {
- if (!options.hint.supportsSelection) return;
- for (var i = 0; i < selections.length; i++) if (selections[i].head.line != selections[i].anchor.line) return;
- }
- if (this.state.completionActive) this.state.completionActive.close();
- var completion = this.state.completionActive = new Completion(this, options);
- if (!completion.options.hint) return;
- CodeMirror.signal(this, "startCompletion", this);
- completion.update(true);
- });
- CodeMirror.defineExtension("closeHint", function () {
- if (this.state.completionActive) this.state.completionActive.close();
- });
- function Completion(cm, options) {
- this.cm = cm;
- this.options = options;
- this.widget = null;
- this.debounce = 0;
- this.tick = 0;
- this.startPos = this.cm.getCursor("start");
- this.startLen = this.cm.getLine(this.startPos.line).length - this.cm.getSelection().length;
- if (this.options.updateOnCursorActivity) {
- var self = this;
- cm.on("cursorActivity", this.activityFunc = function () {
- self.cursorActivity();
- });
- }
- }
- var requestAnimationFrame = window.requestAnimationFrame || function (fn) {
- return setTimeout(fn, 1e3 / 60);
- };
- var cancelAnimationFrame = window.cancelAnimationFrame || clearTimeout;
- Completion.prototype = {
- close: function () {
- if (!this.active()) return;
- this.cm.state.completionActive = null;
- this.tick = null;
- if (this.options.updateOnCursorActivity) {
- this.cm.off("cursorActivity", this.activityFunc);
- }
- if (this.widget && this.data) CodeMirror.signal(this.data, "close");
- if (this.widget) this.widget.close();
- CodeMirror.signal(this.cm, "endCompletion", this.cm);
- },
- active: function () {
- return this.cm.state.completionActive == this;
- },
- pick: function (data, i) {
- var completion = data.list[i],
- self = this;
- this.cm.operation(function () {
- if (completion.hint) completion.hint(self.cm, data, completion);else self.cm.replaceRange(getText(completion), completion.from || data.from, completion.to || data.to, "complete");
- CodeMirror.signal(data, "pick", completion);
- self.cm.scrollIntoView();
- });
- if (this.options.closeOnPick) {
- this.close();
- }
- },
- cursorActivity: function () {
- if (this.debounce) {
- cancelAnimationFrame(this.debounce);
- this.debounce = 0;
- }
- var identStart = this.startPos;
- if (this.data) {
- identStart = this.data.from;
- }
- var pos = this.cm.getCursor(),
- line = this.cm.getLine(pos.line);
- if (pos.line != this.startPos.line || line.length - pos.ch != this.startLen - this.startPos.ch || pos.ch < identStart.ch || this.cm.somethingSelected() || !pos.ch || this.options.closeCharacters.test(line.charAt(pos.ch - 1))) {
- this.close();
- } else {
- var self = this;
- this.debounce = requestAnimationFrame(function () {
- self.update();
- });
- if (this.widget) this.widget.disable();
- }
- },
- update: function (first) {
- if (this.tick == null) return;
- var self = this,
- myTick = ++this.tick;
- fetchHints(this.options.hint, this.cm, this.options, function (data) {
- if (self.tick == myTick) self.finishUpdate(data, first);
- });
- },
- finishUpdate: function (data, first) {
- if (this.data) CodeMirror.signal(this.data, "update");
- var picked = this.widget && this.widget.picked || first && this.options.completeSingle;
- if (this.widget) this.widget.close();
- this.data = data;
- if (data && data.list.length) {
- if (picked && data.list.length == 1) {
- this.pick(data, 0);
- } else {
- this.widget = new Widget(this, data);
- CodeMirror.signal(data, "shown");
- }
- }
- }
- };
- function parseOptions(cm, pos, options) {
- var editor = cm.options.hintOptions;
- var out = {};
- for (var prop in defaultOptions) out[prop] = defaultOptions[prop];
- if (editor) {
- for (var prop in editor) if (editor[prop] !== void 0) out[prop] = editor[prop];
- }
- if (options) {
- for (var prop in options) if (options[prop] !== void 0) out[prop] = options[prop];
- }
- if (out.hint.resolve) out.hint = out.hint.resolve(cm, pos);
- return out;
- }
- function getText(completion) {
- if (typeof completion == "string") return completion;else return completion.text;
- }
- function buildKeyMap(completion, handle) {
- var baseMap = {
- Up: function () {
- handle.moveFocus(-1);
- },
- Down: function () {
- handle.moveFocus(1);
- },
- PageUp: function () {
- handle.moveFocus(-handle.menuSize() + 1, true);
- },
- PageDown: function () {
- handle.moveFocus(handle.menuSize() - 1, true);
- },
- Home: function () {
- handle.setFocus(0);
- },
- End: function () {
- handle.setFocus(handle.length - 1);
- },
- Enter: handle.pick,
- Tab: handle.pick,
- Esc: handle.close
- };
- var mac = /Mac/.test(navigator.platform);
- if (mac) {
- baseMap["Ctrl-P"] = function () {
- handle.moveFocus(-1);
- };
- baseMap["Ctrl-N"] = function () {
- handle.moveFocus(1);
- };
- }
- var custom = completion.options.customKeys;
- var ourMap = custom ? {} : baseMap;
- function addBinding(key2, val) {
- var bound;
- if (typeof val != "string") bound = function (cm) {
- return val(cm, handle);
- };else if (baseMap.hasOwnProperty(val)) bound = baseMap[val];else bound = val;
- ourMap[key2] = bound;
- }
- if (custom) {
- for (var key in custom) if (custom.hasOwnProperty(key)) addBinding(key, custom[key]);
- }
- var extra = completion.options.extraKeys;
- if (extra) {
- for (var key in extra) if (extra.hasOwnProperty(key)) addBinding(key, extra[key]);
- }
- return ourMap;
- }
- function getHintElement(hintsElement, el) {
- while (el && el != hintsElement) {
- if (el.nodeName.toUpperCase() === "LI" && el.parentNode == hintsElement) return el;
- el = el.parentNode;
- }
- }
- function Widget(completion, data) {
- this.id = "cm-complete-" + Math.floor(Math.random(1e6));
- this.completion = completion;
- this.data = data;
- this.picked = false;
- var widget = this,
- cm = completion.cm;
- var ownerDocument = cm.getInputField().ownerDocument;
- var parentWindow = ownerDocument.defaultView || ownerDocument.parentWindow;
- var hints = this.hints = ownerDocument.createElement("ul");
- hints.setAttribute("role", "listbox");
- hints.setAttribute("aria-expanded", "true");
- hints.id = this.id;
- var theme = completion.cm.options.theme;
- hints.className = "CodeMirror-hints " + theme;
- this.selectedHint = data.selectedHint || 0;
- var completions = data.list;
- for (var i = 0; i < completions.length; ++i) {
- var elt = hints.appendChild(ownerDocument.createElement("li")),
- cur = completions[i];
- var className = HINT_ELEMENT_CLASS + (i != this.selectedHint ? "" : " " + ACTIVE_HINT_ELEMENT_CLASS);
- if (cur.className != null) className = cur.className + " " + className;
- elt.className = className;
- if (i == this.selectedHint) elt.setAttribute("aria-selected", "true");
- elt.id = this.id + "-" + i;
- elt.setAttribute("role", "option");
- if (cur.render) cur.render(elt, data, cur);else elt.appendChild(ownerDocument.createTextNode(cur.displayText || getText(cur)));
- elt.hintId = i;
- }
- var container = completion.options.container || ownerDocument.body;
- var pos = cm.cursorCoords(completion.options.alignWithWord ? data.from : null);
- var left = pos.left,
- top = pos.bottom,
- below = true;
- var offsetLeft = 0,
- offsetTop = 0;
- if (container !== ownerDocument.body) {
- var isContainerPositioned = ["absolute", "relative", "fixed"].indexOf(parentWindow.getComputedStyle(container).position) !== -1;
- var offsetParent = isContainerPositioned ? container : container.offsetParent;
- var offsetParentPosition = offsetParent.getBoundingClientRect();
- var bodyPosition = ownerDocument.body.getBoundingClientRect();
- offsetLeft = offsetParentPosition.left - bodyPosition.left - offsetParent.scrollLeft;
- offsetTop = offsetParentPosition.top - bodyPosition.top - offsetParent.scrollTop;
- }
- hints.style.left = left - offsetLeft + "px";
- hints.style.top = top - offsetTop + "px";
- var winW = parentWindow.innerWidth || Math.max(ownerDocument.body.offsetWidth, ownerDocument.documentElement.offsetWidth);
- var winH = parentWindow.innerHeight || Math.max(ownerDocument.body.offsetHeight, ownerDocument.documentElement.offsetHeight);
- container.appendChild(hints);
- cm.getInputField().setAttribute("aria-autocomplete", "list");
- cm.getInputField().setAttribute("aria-owns", this.id);
- cm.getInputField().setAttribute("aria-activedescendant", this.id + "-" + this.selectedHint);
- var box = completion.options.moveOnOverlap ? hints.getBoundingClientRect() : new DOMRect();
- var scrolls = completion.options.paddingForScrollbar ? hints.scrollHeight > hints.clientHeight + 1 : false;
- var startScroll;
- setTimeout(function () {
- startScroll = cm.getScrollInfo();
- });
- var overlapY = box.bottom - winH;
- if (overlapY > 0) {
- var height = box.bottom - box.top,
- curTop = pos.top - (pos.bottom - box.top);
- if (curTop - height > 0) {
- hints.style.top = (top = pos.top - height - offsetTop) + "px";
- below = false;
- } else if (height > winH) {
- hints.style.height = winH - 5 + "px";
- hints.style.top = (top = pos.bottom - box.top - offsetTop) + "px";
- var cursor = cm.getCursor();
- if (data.from.ch != cursor.ch) {
- pos = cm.cursorCoords(cursor);
- hints.style.left = (left = pos.left - offsetLeft) + "px";
- box = hints.getBoundingClientRect();
- }
- }
- }
- var overlapX = box.right - winW;
- if (scrolls) overlapX += cm.display.nativeBarWidth;
- if (overlapX > 0) {
- if (box.right - box.left > winW) {
- hints.style.width = winW - 5 + "px";
- overlapX -= box.right - box.left - winW;
- }
- hints.style.left = (left = pos.left - overlapX - offsetLeft) + "px";
- }
- if (scrolls) for (var node = hints.firstChild; node; node = node.nextSibling) node.style.paddingRight = cm.display.nativeBarWidth + "px";
- cm.addKeyMap(this.keyMap = buildKeyMap(completion, {
- moveFocus: function (n, avoidWrap) {
- widget.changeActive(widget.selectedHint + n, avoidWrap);
- },
- setFocus: function (n) {
- widget.changeActive(n);
- },
- menuSize: function () {
- return widget.screenAmount();
- },
- length: completions.length,
- close: function () {
- completion.close();
- },
- pick: function () {
- widget.pick();
- },
- data
- }));
- if (completion.options.closeOnUnfocus) {
- var closingOnBlur;
- cm.on("blur", this.onBlur = function () {
- closingOnBlur = setTimeout(function () {
- completion.close();
- }, 100);
- });
- cm.on("focus", this.onFocus = function () {
- clearTimeout(closingOnBlur);
- });
- }
- cm.on("scroll", this.onScroll = function () {
- var curScroll = cm.getScrollInfo(),
- editor = cm.getWrapperElement().getBoundingClientRect();
- if (!startScroll) startScroll = cm.getScrollInfo();
- var newTop = top + startScroll.top - curScroll.top;
- var point = newTop - (parentWindow.pageYOffset || (ownerDocument.documentElement || ownerDocument.body).scrollTop);
- if (!below) point += hints.offsetHeight;
- if (point <= editor.top || point >= editor.bottom) return completion.close();
- hints.style.top = newTop + "px";
- hints.style.left = left + startScroll.left - curScroll.left + "px";
- });
- CodeMirror.on(hints, "dblclick", function (e) {
- var t = getHintElement(hints, e.target || e.srcElement);
- if (t && t.hintId != null) {
- widget.changeActive(t.hintId);
- widget.pick();
- }
- });
- CodeMirror.on(hints, "click", function (e) {
- var t = getHintElement(hints, e.target || e.srcElement);
- if (t && t.hintId != null) {
- widget.changeActive(t.hintId);
- if (completion.options.completeOnSingleClick) widget.pick();
- }
- });
- CodeMirror.on(hints, "mousedown", function () {
- setTimeout(function () {
- cm.focus();
- }, 20);
- });
- var selectedHintRange = this.getSelectedHintRange();
- if (selectedHintRange.from !== 0 || selectedHintRange.to !== 0) {
- this.scrollToActive();
- }
- CodeMirror.signal(data, "select", completions[this.selectedHint], hints.childNodes[this.selectedHint]);
- return true;
- }
- Widget.prototype = {
- close: function () {
- if (this.completion.widget != this) return;
- this.completion.widget = null;
- if (this.hints.parentNode) this.hints.parentNode.removeChild(this.hints);
- this.completion.cm.removeKeyMap(this.keyMap);
- var input = this.completion.cm.getInputField();
- input.removeAttribute("aria-activedescendant");
- input.removeAttribute("aria-owns");
- var cm = this.completion.cm;
- if (this.completion.options.closeOnUnfocus) {
- cm.off("blur", this.onBlur);
- cm.off("focus", this.onFocus);
- }
- cm.off("scroll", this.onScroll);
- },
- disable: function () {
- this.completion.cm.removeKeyMap(this.keyMap);
- var widget = this;
- this.keyMap = {
- Enter: function () {
- widget.picked = true;
- }
- };
- this.completion.cm.addKeyMap(this.keyMap);
- },
- pick: function () {
- this.completion.pick(this.data, this.selectedHint);
- },
- changeActive: function (i, avoidWrap) {
- if (i >= this.data.list.length) i = avoidWrap ? this.data.list.length - 1 : 0;else if (i < 0) i = avoidWrap ? 0 : this.data.list.length - 1;
- if (this.selectedHint == i) return;
- var node = this.hints.childNodes[this.selectedHint];
- if (node) {
- node.className = node.className.replace(" " + ACTIVE_HINT_ELEMENT_CLASS, "");
- node.removeAttribute("aria-selected");
- }
- node = this.hints.childNodes[this.selectedHint = i];
- node.className += " " + ACTIVE_HINT_ELEMENT_CLASS;
- node.setAttribute("aria-selected", "true");
- this.completion.cm.getInputField().setAttribute("aria-activedescendant", node.id);
- this.scrollToActive();
- CodeMirror.signal(this.data, "select", this.data.list[this.selectedHint], node);
- },
- scrollToActive: function () {
- var selectedHintRange = this.getSelectedHintRange();
- var node1 = this.hints.childNodes[selectedHintRange.from];
- var node2 = this.hints.childNodes[selectedHintRange.to];
- var firstNode = this.hints.firstChild;
- if (node1.offsetTop < this.hints.scrollTop) this.hints.scrollTop = node1.offsetTop - firstNode.offsetTop;else if (node2.offsetTop + node2.offsetHeight > this.hints.scrollTop + this.hints.clientHeight) this.hints.scrollTop = node2.offsetTop + node2.offsetHeight - this.hints.clientHeight + firstNode.offsetTop;
- },
- screenAmount: function () {
- return Math.floor(this.hints.clientHeight / this.hints.firstChild.offsetHeight) || 1;
- },
- getSelectedHintRange: function () {
- var margin = this.completion.options.scrollMargin || 0;
- return {
- from: Math.max(0, this.selectedHint - margin),
- to: Math.min(this.data.list.length - 1, this.selectedHint + margin)
- };
- }
- };
- function applicableHelpers(cm, helpers) {
- if (!cm.somethingSelected()) return helpers;
- var result = [];
- for (var i = 0; i < helpers.length; i++) if (helpers[i].supportsSelection) result.push(helpers[i]);
- return result;
- }
- function fetchHints(hint, cm, options, callback) {
- if (hint.async) {
- hint(cm, callback, options);
- } else {
- var result = hint(cm, options);
- if (result && result.then) result.then(callback);else callback(result);
- }
- }
- function resolveAutoHints(cm, pos) {
- var helpers = cm.getHelpers(pos, "hint"),
- words;
- if (helpers.length) {
- var resolved = function (cm2, callback, options) {
- var app = applicableHelpers(cm2, helpers);
- function run(i) {
- if (i == app.length) return callback(null);
- fetchHints(app[i], cm2, options, function (result) {
- if (result && result.list.length > 0) callback(result);else run(i + 1);
- });
- }
- run(0);
- };
- resolved.async = true;
- resolved.supportsSelection = true;
- return resolved;
- } else if (words = cm.getHelper(cm.getCursor(), "hintWords")) {
- return function (cm2) {
- return CodeMirror.hint.fromList(cm2, {
- words
- });
- };
- } else if (CodeMirror.hint.anyword) {
- return function (cm2, options) {
- return CodeMirror.hint.anyword(cm2, options);
- };
- } else {
- return function () {};
- }
- }
- CodeMirror.registerHelper("hint", "auto", {
- resolve: resolveAutoHints
- });
- CodeMirror.registerHelper("hint", "fromList", function (cm, options) {
- var cur = cm.getCursor(),
- token = cm.getTokenAt(cur);
- var term,
- from = CodeMirror.Pos(cur.line, token.start),
- to = cur;
- if (token.start < cur.ch && /\w/.test(token.string.charAt(cur.ch - token.start - 1))) {
- term = token.string.substr(0, cur.ch - token.start);
- } else {
- term = "";
- from = cur;
- }
- var found = [];
- for (var i = 0; i < options.words.length; i++) {
- var word = options.words[i];
- if (word.slice(0, term.length) == term) found.push(word);
- }
- if (found.length) return {
- list: found,
- from,
- to
- };
- });
- CodeMirror.commands.autocomplete = CodeMirror.showHint;
- var defaultOptions = {
- hint: CodeMirror.hint.auto,
- completeSingle: true,
- alignWithWord: true,
- closeCharacters: /[\s()\[\]{};:>,]/,
- closeOnPick: true,
- closeOnUnfocus: true,
- updateOnCursorActivity: true,
- completeOnSingleClick: true,
- container: null,
- customKeys: null,
- extraKeys: null,
- paddingForScrollbar: true,
- moveOnOverlap: true
- };
- CodeMirror.defineOption("hintOptions", null);
- });
-})();
-var showHintExports = showHint$2.exports;
-const showHint = /* @__PURE__ */codemirror.getDefaultExportFromCjs(showHintExports);
-const showHint$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: showHint
-}, [showHintExports]);
-exports.showHint = showHint$1;
-
-/***/ }),
-
-/***/ "../../graphiql-react/dist/sublime.cjs.js":
-/*!************************************************!*\
- !*** ../../graphiql-react/dist/sublime.cjs.js ***!
- \************************************************/
-/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
-
-
-
-const codemirror = __webpack_require__(/*! ./codemirror.cjs2.js */ "../../graphiql-react/dist/codemirror.cjs2.js");
-const searchcursor = __webpack_require__(/*! ./searchcursor.cjs2.js */ "../../graphiql-react/dist/searchcursor.cjs2.js");
-const matchbrackets = __webpack_require__(/*! ./matchbrackets.cjs2.js */ "../../graphiql-react/dist/matchbrackets.cjs2.js");
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== "string" && !Array.isArray(e)) {
- for (const k in e) {
- if (k !== "default" && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- }
- }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, {
- value: "Module"
- }));
-}
-var sublime$2 = {
- exports: {}
-};
-(function (module2, exports2) {
- (function (mod) {
- mod(codemirror.requireCodemirror(), searchcursor.requireSearchcursor(), matchbrackets.requireMatchbrackets());
- })(function (CodeMirror) {
- var cmds = CodeMirror.commands;
- var Pos = CodeMirror.Pos;
- function findPosSubword(doc, start, dir) {
- if (dir < 0 && start.ch == 0) return doc.clipPos(Pos(start.line - 1));
- var line = doc.getLine(start.line);
- if (dir > 0 && start.ch >= line.length) return doc.clipPos(Pos(start.line + 1, 0));
- var state = "start",
- type,
- startPos = start.ch;
- for (var pos = startPos, e = dir < 0 ? 0 : line.length, i = 0; pos != e; pos += dir, i++) {
- var next = line.charAt(dir < 0 ? pos - 1 : pos);
- var cat = next != "_" && CodeMirror.isWordChar(next) ? "w" : "o";
- if (cat == "w" && next.toUpperCase() == next) cat = "W";
- if (state == "start") {
- if (cat != "o") {
- state = "in";
- type = cat;
- } else startPos = pos + dir;
- } else if (state == "in") {
- if (type != cat) {
- if (type == "w" && cat == "W" && dir < 0) pos--;
- if (type == "W" && cat == "w" && dir > 0) {
- if (pos == startPos + 1) {
- type = "w";
- continue;
- } else pos--;
- }
- break;
- }
- }
- }
- return Pos(start.line, pos);
- }
- function moveSubword(cm, dir) {
- cm.extendSelectionsBy(function (range) {
- if (cm.display.shift || cm.doc.extend || range.empty()) return findPosSubword(cm.doc, range.head, dir);else return dir < 0 ? range.from() : range.to();
- });
- }
- cmds.goSubwordLeft = function (cm) {
- moveSubword(cm, -1);
- };
- cmds.goSubwordRight = function (cm) {
- moveSubword(cm, 1);
- };
- cmds.scrollLineUp = function (cm) {
- var info = cm.getScrollInfo();
- if (!cm.somethingSelected()) {
- var visibleBottomLine = cm.lineAtHeight(info.top + info.clientHeight, "local");
- if (cm.getCursor().line >= visibleBottomLine) cm.execCommand("goLineUp");
- }
- cm.scrollTo(null, info.top - cm.defaultTextHeight());
- };
- cmds.scrollLineDown = function (cm) {
- var info = cm.getScrollInfo();
- if (!cm.somethingSelected()) {
- var visibleTopLine = cm.lineAtHeight(info.top, "local") + 1;
- if (cm.getCursor().line <= visibleTopLine) cm.execCommand("goLineDown");
- }
- cm.scrollTo(null, info.top + cm.defaultTextHeight());
- };
- cmds.splitSelectionByLine = function (cm) {
- var ranges = cm.listSelections(),
- lineRanges = [];
- for (var i = 0; i < ranges.length; i++) {
- var from = ranges[i].from(),
- to = ranges[i].to();
- for (var line = from.line; line <= to.line; ++line) if (!(to.line > from.line && line == to.line && to.ch == 0)) lineRanges.push({
- anchor: line == from.line ? from : Pos(line, 0),
- head: line == to.line ? to : Pos(line)
- });
- }
- cm.setSelections(lineRanges, 0);
- };
- cmds.singleSelectionTop = function (cm) {
- var range = cm.listSelections()[0];
- cm.setSelection(range.anchor, range.head, {
- scroll: false
- });
- };
- cmds.selectLine = function (cm) {
- var ranges = cm.listSelections(),
- extended = [];
- for (var i = 0; i < ranges.length; i++) {
- var range = ranges[i];
- extended.push({
- anchor: Pos(range.from().line, 0),
- head: Pos(range.to().line + 1, 0)
- });
- }
- cm.setSelections(extended);
- };
- function insertLine(cm, above) {
- if (cm.isReadOnly()) return CodeMirror.Pass;
- cm.operation(function () {
- var len = cm.listSelections().length,
- newSelection = [],
- last = -1;
- for (var i = 0; i < len; i++) {
- var head = cm.listSelections()[i].head;
- if (head.line <= last) continue;
- var at = Pos(head.line + (above ? 0 : 1), 0);
- cm.replaceRange("\n", at, null, "+insertLine");
- cm.indentLine(at.line, null, true);
- newSelection.push({
- head: at,
- anchor: at
- });
- last = head.line + 1;
- }
- cm.setSelections(newSelection);
- });
- cm.execCommand("indentAuto");
- }
- cmds.insertLineAfter = function (cm) {
- return insertLine(cm, false);
- };
- cmds.insertLineBefore = function (cm) {
- return insertLine(cm, true);
- };
- function wordAt(cm, pos) {
- var start = pos.ch,
- end = start,
- line = cm.getLine(pos.line);
- while (start && CodeMirror.isWordChar(line.charAt(start - 1))) --start;
- while (end < line.length && CodeMirror.isWordChar(line.charAt(end))) ++end;
- return {
- from: Pos(pos.line, start),
- to: Pos(pos.line, end),
- word: line.slice(start, end)
- };
- }
- cmds.selectNextOccurrence = function (cm) {
- var from = cm.getCursor("from"),
- to = cm.getCursor("to");
- var fullWord = cm.state.sublimeFindFullWord == cm.doc.sel;
- if (CodeMirror.cmpPos(from, to) == 0) {
- var word = wordAt(cm, from);
- if (!word.word) return;
- cm.setSelection(word.from, word.to);
- fullWord = true;
- } else {
- var text = cm.getRange(from, to);
- var query = fullWord ? new RegExp("\\b" + text + "\\b") : text;
- var cur = cm.getSearchCursor(query, to);
- var found = cur.findNext();
- if (!found) {
- cur = cm.getSearchCursor(query, Pos(cm.firstLine(), 0));
- found = cur.findNext();
- }
- if (!found || isSelectedRange(cm.listSelections(), cur.from(), cur.to())) return;
- cm.addSelection(cur.from(), cur.to());
- }
- if (fullWord) cm.state.sublimeFindFullWord = cm.doc.sel;
- };
- cmds.skipAndSelectNextOccurrence = function (cm) {
- var prevAnchor = cm.getCursor("anchor"),
- prevHead = cm.getCursor("head");
- cmds.selectNextOccurrence(cm);
- if (CodeMirror.cmpPos(prevAnchor, prevHead) != 0) {
- cm.doc.setSelections(cm.doc.listSelections().filter(function (sel) {
- return sel.anchor != prevAnchor || sel.head != prevHead;
- }));
- }
- };
- function addCursorToSelection(cm, dir) {
- var ranges = cm.listSelections(),
- newRanges = [];
- for (var i = 0; i < ranges.length; i++) {
- var range = ranges[i];
- var newAnchor = cm.findPosV(range.anchor, dir, "line", range.anchor.goalColumn);
- var newHead = cm.findPosV(range.head, dir, "line", range.head.goalColumn);
- newAnchor.goalColumn = range.anchor.goalColumn != null ? range.anchor.goalColumn : cm.cursorCoords(range.anchor, "div").left;
- newHead.goalColumn = range.head.goalColumn != null ? range.head.goalColumn : cm.cursorCoords(range.head, "div").left;
- var newRange = {
- anchor: newAnchor,
- head: newHead
- };
- newRanges.push(range);
- newRanges.push(newRange);
- }
- cm.setSelections(newRanges);
- }
- cmds.addCursorToPrevLine = function (cm) {
- addCursorToSelection(cm, -1);
- };
- cmds.addCursorToNextLine = function (cm) {
- addCursorToSelection(cm, 1);
- };
- function isSelectedRange(ranges, from, to) {
- for (var i = 0; i < ranges.length; i++) if (CodeMirror.cmpPos(ranges[i].from(), from) == 0 && CodeMirror.cmpPos(ranges[i].to(), to) == 0) return true;
- return false;
- }
- var mirror = "(){}[]";
- function selectBetweenBrackets(cm) {
- var ranges = cm.listSelections(),
- newRanges = [];
- for (var i = 0; i < ranges.length; i++) {
- var range = ranges[i],
- pos = range.head,
- opening = cm.scanForBracket(pos, -1);
- if (!opening) return false;
- for (;;) {
- var closing = cm.scanForBracket(pos, 1);
- if (!closing) return false;
- if (closing.ch == mirror.charAt(mirror.indexOf(opening.ch) + 1)) {
- var startPos = Pos(opening.pos.line, opening.pos.ch + 1);
- if (CodeMirror.cmpPos(startPos, range.from()) == 0 && CodeMirror.cmpPos(closing.pos, range.to()) == 0) {
- opening = cm.scanForBracket(opening.pos, -1);
- if (!opening) return false;
- } else {
- newRanges.push({
- anchor: startPos,
- head: closing.pos
- });
- break;
- }
- }
- pos = Pos(closing.pos.line, closing.pos.ch + 1);
- }
- }
- cm.setSelections(newRanges);
- return true;
- }
- cmds.selectScope = function (cm) {
- selectBetweenBrackets(cm) || cm.execCommand("selectAll");
- };
- cmds.selectBetweenBrackets = function (cm) {
- if (!selectBetweenBrackets(cm)) return CodeMirror.Pass;
- };
- function puncType(type) {
- return !type ? null : /\bpunctuation\b/.test(type) ? type : void 0;
- }
- cmds.goToBracket = function (cm) {
- cm.extendSelectionsBy(function (range) {
- var next = cm.scanForBracket(range.head, 1, puncType(cm.getTokenTypeAt(range.head)));
- if (next && CodeMirror.cmpPos(next.pos, range.head) != 0) return next.pos;
- var prev = cm.scanForBracket(range.head, -1, puncType(cm.getTokenTypeAt(Pos(range.head.line, range.head.ch + 1))));
- return prev && Pos(prev.pos.line, prev.pos.ch + 1) || range.head;
- });
- };
- cmds.swapLineUp = function (cm) {
- if (cm.isReadOnly()) return CodeMirror.Pass;
- var ranges = cm.listSelections(),
- linesToMove = [],
- at = cm.firstLine() - 1,
- newSels = [];
- for (var i = 0; i < ranges.length; i++) {
- var range = ranges[i],
- from = range.from().line - 1,
- to = range.to().line;
- newSels.push({
- anchor: Pos(range.anchor.line - 1, range.anchor.ch),
- head: Pos(range.head.line - 1, range.head.ch)
- });
- if (range.to().ch == 0 && !range.empty()) --to;
- if (from > at) linesToMove.push(from, to);else if (linesToMove.length) linesToMove[linesToMove.length - 1] = to;
- at = to;
- }
- cm.operation(function () {
- for (var i2 = 0; i2 < linesToMove.length; i2 += 2) {
- var from2 = linesToMove[i2],
- to2 = linesToMove[i2 + 1];
- var line = cm.getLine(from2);
- cm.replaceRange("", Pos(from2, 0), Pos(from2 + 1, 0), "+swapLine");
- if (to2 > cm.lastLine()) cm.replaceRange("\n" + line, Pos(cm.lastLine()), null, "+swapLine");else cm.replaceRange(line + "\n", Pos(to2, 0), null, "+swapLine");
- }
- cm.setSelections(newSels);
- cm.scrollIntoView();
- });
- };
- cmds.swapLineDown = function (cm) {
- if (cm.isReadOnly()) return CodeMirror.Pass;
- var ranges = cm.listSelections(),
- linesToMove = [],
- at = cm.lastLine() + 1;
- for (var i = ranges.length - 1; i >= 0; i--) {
- var range = ranges[i],
- from = range.to().line + 1,
- to = range.from().line;
- if (range.to().ch == 0 && !range.empty()) from--;
- if (from < at) linesToMove.push(from, to);else if (linesToMove.length) linesToMove[linesToMove.length - 1] = to;
- at = to;
- }
- cm.operation(function () {
- for (var i2 = linesToMove.length - 2; i2 >= 0; i2 -= 2) {
- var from2 = linesToMove[i2],
- to2 = linesToMove[i2 + 1];
- var line = cm.getLine(from2);
- if (from2 == cm.lastLine()) cm.replaceRange("", Pos(from2 - 1), Pos(from2), "+swapLine");else cm.replaceRange("", Pos(from2, 0), Pos(from2 + 1, 0), "+swapLine");
- cm.replaceRange(line + "\n", Pos(to2, 0), null, "+swapLine");
- }
- cm.scrollIntoView();
- });
- };
- cmds.toggleCommentIndented = function (cm) {
- cm.toggleComment({
- indent: true
- });
- };
- cmds.joinLines = function (cm) {
- var ranges = cm.listSelections(),
- joined = [];
- for (var i = 0; i < ranges.length; i++) {
- var range = ranges[i],
- from = range.from();
- var start = from.line,
- end = range.to().line;
- while (i < ranges.length - 1 && ranges[i + 1].from().line == end) end = ranges[++i].to().line;
- joined.push({
- start,
- end,
- anchor: !range.empty() && from
- });
- }
- cm.operation(function () {
- var offset = 0,
- ranges2 = [];
- for (var i2 = 0; i2 < joined.length; i2++) {
- var obj = joined[i2];
- var anchor = obj.anchor && Pos(obj.anchor.line - offset, obj.anchor.ch),
- head;
- for (var line = obj.start; line <= obj.end; line++) {
- var actual = line - offset;
- if (line == obj.end) head = Pos(actual, cm.getLine(actual).length + 1);
- if (actual < cm.lastLine()) {
- cm.replaceRange(" ", Pos(actual), Pos(actual + 1, /^\s*/.exec(cm.getLine(actual + 1))[0].length));
- ++offset;
- }
- }
- ranges2.push({
- anchor: anchor || head,
- head
- });
- }
- cm.setSelections(ranges2, 0);
- });
- };
- cmds.duplicateLine = function (cm) {
- cm.operation(function () {
- var rangeCount = cm.listSelections().length;
- for (var i = 0; i < rangeCount; i++) {
- var range = cm.listSelections()[i];
- if (range.empty()) cm.replaceRange(cm.getLine(range.head.line) + "\n", Pos(range.head.line, 0));else cm.replaceRange(cm.getRange(range.from(), range.to()), range.from());
- }
- cm.scrollIntoView();
- });
- };
- function sortLines(cm, caseSensitive, direction) {
- if (cm.isReadOnly()) return CodeMirror.Pass;
- var ranges = cm.listSelections(),
- toSort = [],
- selected;
- for (var i = 0; i < ranges.length; i++) {
- var range = ranges[i];
- if (range.empty()) continue;
- var from = range.from().line,
- to = range.to().line;
- while (i < ranges.length - 1 && ranges[i + 1].from().line == to) to = ranges[++i].to().line;
- if (!ranges[i].to().ch) to--;
- toSort.push(from, to);
- }
- if (toSort.length) selected = true;else toSort.push(cm.firstLine(), cm.lastLine());
- cm.operation(function () {
- var ranges2 = [];
- for (var i2 = 0; i2 < toSort.length; i2 += 2) {
- var from2 = toSort[i2],
- to2 = toSort[i2 + 1];
- var start = Pos(from2, 0),
- end = Pos(to2);
- var lines = cm.getRange(start, end, false);
- if (caseSensitive) lines.sort(function (a, b) {
- return a < b ? -direction : a == b ? 0 : direction;
- });else lines.sort(function (a, b) {
- var au = a.toUpperCase(),
- bu = b.toUpperCase();
- if (au != bu) {
- a = au;
- b = bu;
- }
- return a < b ? -direction : a == b ? 0 : direction;
- });
- cm.replaceRange(lines, start, end);
- if (selected) ranges2.push({
- anchor: start,
- head: Pos(to2 + 1, 0)
- });
- }
- if (selected) cm.setSelections(ranges2, 0);
- });
- }
- cmds.sortLines = function (cm) {
- sortLines(cm, true, 1);
- };
- cmds.reverseSortLines = function (cm) {
- sortLines(cm, true, -1);
- };
- cmds.sortLinesInsensitive = function (cm) {
- sortLines(cm, false, 1);
- };
- cmds.reverseSortLinesInsensitive = function (cm) {
- sortLines(cm, false, -1);
- };
- cmds.nextBookmark = function (cm) {
- var marks = cm.state.sublimeBookmarks;
- if (marks) while (marks.length) {
- var current = marks.shift();
- var found = current.find();
- if (found) {
- marks.push(current);
- return cm.setSelection(found.from, found.to);
- }
- }
- };
- cmds.prevBookmark = function (cm) {
- var marks = cm.state.sublimeBookmarks;
- if (marks) while (marks.length) {
- marks.unshift(marks.pop());
- var found = marks[marks.length - 1].find();
- if (!found) marks.pop();else return cm.setSelection(found.from, found.to);
- }
- };
- cmds.toggleBookmark = function (cm) {
- var ranges = cm.listSelections();
- var marks = cm.state.sublimeBookmarks || (cm.state.sublimeBookmarks = []);
- for (var i = 0; i < ranges.length; i++) {
- var from = ranges[i].from(),
- to = ranges[i].to();
- var found = ranges[i].empty() ? cm.findMarksAt(from) : cm.findMarks(from, to);
- for (var j = 0; j < found.length; j++) {
- if (found[j].sublimeBookmark) {
- found[j].clear();
- for (var k = 0; k < marks.length; k++) if (marks[k] == found[j]) marks.splice(k--, 1);
- break;
- }
- }
- if (j == found.length) marks.push(cm.markText(from, to, {
- sublimeBookmark: true,
- clearWhenEmpty: false
- }));
- }
- };
- cmds.clearBookmarks = function (cm) {
- var marks = cm.state.sublimeBookmarks;
- if (marks) for (var i = 0; i < marks.length; i++) marks[i].clear();
- marks.length = 0;
- };
- cmds.selectBookmarks = function (cm) {
- var marks = cm.state.sublimeBookmarks,
- ranges = [];
- if (marks) for (var i = 0; i < marks.length; i++) {
- var found = marks[i].find();
- if (!found) marks.splice(i--, 0);else ranges.push({
- anchor: found.from,
- head: found.to
- });
- }
- if (ranges.length) cm.setSelections(ranges, 0);
- };
- function modifyWordOrSelection(cm, mod) {
- cm.operation(function () {
- var ranges = cm.listSelections(),
- indices = [],
- replacements = [];
- for (var i = 0; i < ranges.length; i++) {
- var range = ranges[i];
- if (range.empty()) {
- indices.push(i);
- replacements.push("");
- } else replacements.push(mod(cm.getRange(range.from(), range.to())));
- }
- cm.replaceSelections(replacements, "around", "case");
- for (var i = indices.length - 1, at; i >= 0; i--) {
- var range = ranges[indices[i]];
- if (at && CodeMirror.cmpPos(range.head, at) > 0) continue;
- var word = wordAt(cm, range.head);
- at = word.from;
- cm.replaceRange(mod(word.word), word.from, word.to);
- }
- });
- }
- cmds.smartBackspace = function (cm) {
- if (cm.somethingSelected()) return CodeMirror.Pass;
- cm.operation(function () {
- var cursors = cm.listSelections();
- var indentUnit = cm.getOption("indentUnit");
- for (var i = cursors.length - 1; i >= 0; i--) {
- var cursor = cursors[i].head;
- var toStartOfLine = cm.getRange({
- line: cursor.line,
- ch: 0
- }, cursor);
- var column = CodeMirror.countColumn(toStartOfLine, null, cm.getOption("tabSize"));
- var deletePos = cm.findPosH(cursor, -1, "char", false);
- if (toStartOfLine && !/\S/.test(toStartOfLine) && column % indentUnit == 0) {
- var prevIndent = new Pos(cursor.line, CodeMirror.findColumn(toStartOfLine, column - indentUnit, indentUnit));
- if (prevIndent.ch != cursor.ch) deletePos = prevIndent;
- }
- cm.replaceRange("", deletePos, cursor, "+delete");
- }
- });
- };
- cmds.delLineRight = function (cm) {
- cm.operation(function () {
- var ranges = cm.listSelections();
- for (var i = ranges.length - 1; i >= 0; i--) cm.replaceRange("", ranges[i].anchor, Pos(ranges[i].to().line), "+delete");
- cm.scrollIntoView();
- });
- };
- cmds.upcaseAtCursor = function (cm) {
- modifyWordOrSelection(cm, function (str) {
- return str.toUpperCase();
- });
- };
- cmds.downcaseAtCursor = function (cm) {
- modifyWordOrSelection(cm, function (str) {
- return str.toLowerCase();
- });
- };
- cmds.setSublimeMark = function (cm) {
- if (cm.state.sublimeMark) cm.state.sublimeMark.clear();
- cm.state.sublimeMark = cm.setBookmark(cm.getCursor());
- };
- cmds.selectToSublimeMark = function (cm) {
- var found = cm.state.sublimeMark && cm.state.sublimeMark.find();
- if (found) cm.setSelection(cm.getCursor(), found);
- };
- cmds.deleteToSublimeMark = function (cm) {
- var found = cm.state.sublimeMark && cm.state.sublimeMark.find();
- if (found) {
- var from = cm.getCursor(),
- to = found;
- if (CodeMirror.cmpPos(from, to) > 0) {
- var tmp = to;
- to = from;
- from = tmp;
- }
- cm.state.sublimeKilled = cm.getRange(from, to);
- cm.replaceRange("", from, to);
- }
- };
- cmds.swapWithSublimeMark = function (cm) {
- var found = cm.state.sublimeMark && cm.state.sublimeMark.find();
- if (found) {
- cm.state.sublimeMark.clear();
- cm.state.sublimeMark = cm.setBookmark(cm.getCursor());
- cm.setCursor(found);
- }
- };
- cmds.sublimeYank = function (cm) {
- if (cm.state.sublimeKilled != null) cm.replaceSelection(cm.state.sublimeKilled, null, "paste");
- };
- cmds.showInCenter = function (cm) {
- var pos = cm.cursorCoords(null, "local");
- cm.scrollTo(null, (pos.top + pos.bottom) / 2 - cm.getScrollInfo().clientHeight / 2);
- };
- function getTarget(cm) {
- var from = cm.getCursor("from"),
- to = cm.getCursor("to");
- if (CodeMirror.cmpPos(from, to) == 0) {
- var word = wordAt(cm, from);
- if (!word.word) return;
- from = word.from;
- to = word.to;
- }
- return {
- from,
- to,
- query: cm.getRange(from, to),
- word
- };
- }
- function findAndGoTo(cm, forward) {
- var target = getTarget(cm);
- if (!target) return;
- var query = target.query;
- var cur = cm.getSearchCursor(query, forward ? target.to : target.from);
- if (forward ? cur.findNext() : cur.findPrevious()) {
- cm.setSelection(cur.from(), cur.to());
- } else {
- cur = cm.getSearchCursor(query, forward ? Pos(cm.firstLine(), 0) : cm.clipPos(Pos(cm.lastLine())));
- if (forward ? cur.findNext() : cur.findPrevious()) cm.setSelection(cur.from(), cur.to());else if (target.word) cm.setSelection(target.from, target.to);
- }
- }
- cmds.findUnder = function (cm) {
- findAndGoTo(cm, true);
- };
- cmds.findUnderPrevious = function (cm) {
- findAndGoTo(cm, false);
- };
- cmds.findAllUnder = function (cm) {
- var target = getTarget(cm);
- if (!target) return;
- var cur = cm.getSearchCursor(target.query);
- var matches = [];
- var primaryIndex = -1;
- while (cur.findNext()) {
- matches.push({
- anchor: cur.from(),
- head: cur.to()
- });
- if (cur.from().line <= target.from.line && cur.from().ch <= target.from.ch) primaryIndex++;
- }
- cm.setSelections(matches, primaryIndex);
- };
- var keyMap = CodeMirror.keyMap;
- keyMap.macSublime = {
- "Cmd-Left": "goLineStartSmart",
- "Shift-Tab": "indentLess",
- "Shift-Ctrl-K": "deleteLine",
- "Alt-Q": "wrapLines",
- "Ctrl-Left": "goSubwordLeft",
- "Ctrl-Right": "goSubwordRight",
- "Ctrl-Alt-Up": "scrollLineUp",
- "Ctrl-Alt-Down": "scrollLineDown",
- "Cmd-L": "selectLine",
- "Shift-Cmd-L": "splitSelectionByLine",
- "Esc": "singleSelectionTop",
- "Cmd-Enter": "insertLineAfter",
- "Shift-Cmd-Enter": "insertLineBefore",
- "Cmd-D": "selectNextOccurrence",
- "Shift-Cmd-Space": "selectScope",
- "Shift-Cmd-M": "selectBetweenBrackets",
- "Cmd-M": "goToBracket",
- "Cmd-Ctrl-Up": "swapLineUp",
- "Cmd-Ctrl-Down": "swapLineDown",
- "Cmd-/": "toggleCommentIndented",
- "Cmd-J": "joinLines",
- "Shift-Cmd-D": "duplicateLine",
- "F5": "sortLines",
- "Shift-F5": "reverseSortLines",
- "Cmd-F5": "sortLinesInsensitive",
- "Shift-Cmd-F5": "reverseSortLinesInsensitive",
- "F2": "nextBookmark",
- "Shift-F2": "prevBookmark",
- "Cmd-F2": "toggleBookmark",
- "Shift-Cmd-F2": "clearBookmarks",
- "Alt-F2": "selectBookmarks",
- "Backspace": "smartBackspace",
- "Cmd-K Cmd-D": "skipAndSelectNextOccurrence",
- "Cmd-K Cmd-K": "delLineRight",
- "Cmd-K Cmd-U": "upcaseAtCursor",
- "Cmd-K Cmd-L": "downcaseAtCursor",
- "Cmd-K Cmd-Space": "setSublimeMark",
- "Cmd-K Cmd-A": "selectToSublimeMark",
- "Cmd-K Cmd-W": "deleteToSublimeMark",
- "Cmd-K Cmd-X": "swapWithSublimeMark",
- "Cmd-K Cmd-Y": "sublimeYank",
- "Cmd-K Cmd-C": "showInCenter",
- "Cmd-K Cmd-G": "clearBookmarks",
- "Cmd-K Cmd-Backspace": "delLineLeft",
- "Cmd-K Cmd-1": "foldAll",
- "Cmd-K Cmd-0": "unfoldAll",
- "Cmd-K Cmd-J": "unfoldAll",
- "Ctrl-Shift-Up": "addCursorToPrevLine",
- "Ctrl-Shift-Down": "addCursorToNextLine",
- "Cmd-F3": "findUnder",
- "Shift-Cmd-F3": "findUnderPrevious",
- "Alt-F3": "findAllUnder",
- "Shift-Cmd-[": "fold",
- "Shift-Cmd-]": "unfold",
- "Cmd-I": "findIncremental",
- "Shift-Cmd-I": "findIncrementalReverse",
- "Cmd-H": "replace",
- "F3": "findNext",
- "Shift-F3": "findPrev",
- "fallthrough": "macDefault"
- };
- CodeMirror.normalizeKeyMap(keyMap.macSublime);
- keyMap.pcSublime = {
- "Shift-Tab": "indentLess",
- "Shift-Ctrl-K": "deleteLine",
- "Alt-Q": "wrapLines",
- "Ctrl-T": "transposeChars",
- "Alt-Left": "goSubwordLeft",
- "Alt-Right": "goSubwordRight",
- "Ctrl-Up": "scrollLineUp",
- "Ctrl-Down": "scrollLineDown",
- "Ctrl-L": "selectLine",
- "Shift-Ctrl-L": "splitSelectionByLine",
- "Esc": "singleSelectionTop",
- "Ctrl-Enter": "insertLineAfter",
- "Shift-Ctrl-Enter": "insertLineBefore",
- "Ctrl-D": "selectNextOccurrence",
- "Shift-Ctrl-Space": "selectScope",
- "Shift-Ctrl-M": "selectBetweenBrackets",
- "Ctrl-M": "goToBracket",
- "Shift-Ctrl-Up": "swapLineUp",
- "Shift-Ctrl-Down": "swapLineDown",
- "Ctrl-/": "toggleCommentIndented",
- "Ctrl-J": "joinLines",
- "Shift-Ctrl-D": "duplicateLine",
- "F9": "sortLines",
- "Shift-F9": "reverseSortLines",
- "Ctrl-F9": "sortLinesInsensitive",
- "Shift-Ctrl-F9": "reverseSortLinesInsensitive",
- "F2": "nextBookmark",
- "Shift-F2": "prevBookmark",
- "Ctrl-F2": "toggleBookmark",
- "Shift-Ctrl-F2": "clearBookmarks",
- "Alt-F2": "selectBookmarks",
- "Backspace": "smartBackspace",
- "Ctrl-K Ctrl-D": "skipAndSelectNextOccurrence",
- "Ctrl-K Ctrl-K": "delLineRight",
- "Ctrl-K Ctrl-U": "upcaseAtCursor",
- "Ctrl-K Ctrl-L": "downcaseAtCursor",
- "Ctrl-K Ctrl-Space": "setSublimeMark",
- "Ctrl-K Ctrl-A": "selectToSublimeMark",
- "Ctrl-K Ctrl-W": "deleteToSublimeMark",
- "Ctrl-K Ctrl-X": "swapWithSublimeMark",
- "Ctrl-K Ctrl-Y": "sublimeYank",
- "Ctrl-K Ctrl-C": "showInCenter",
- "Ctrl-K Ctrl-G": "clearBookmarks",
- "Ctrl-K Ctrl-Backspace": "delLineLeft",
- "Ctrl-K Ctrl-1": "foldAll",
- "Ctrl-K Ctrl-0": "unfoldAll",
- "Ctrl-K Ctrl-J": "unfoldAll",
- "Ctrl-Alt-Up": "addCursorToPrevLine",
- "Ctrl-Alt-Down": "addCursorToNextLine",
- "Ctrl-F3": "findUnder",
- "Shift-Ctrl-F3": "findUnderPrevious",
- "Alt-F3": "findAllUnder",
- "Shift-Ctrl-[": "fold",
- "Shift-Ctrl-]": "unfold",
- "Ctrl-I": "findIncremental",
- "Shift-Ctrl-I": "findIncrementalReverse",
- "Ctrl-H": "replace",
- "F3": "findNext",
- "Shift-F3": "findPrev",
- "fallthrough": "pcDefault"
- };
- CodeMirror.normalizeKeyMap(keyMap.pcSublime);
- var mac = keyMap.default == keyMap.macDefault;
- keyMap.sublime = mac ? keyMap.macSublime : keyMap.pcSublime;
- });
-})();
-var sublimeExports = sublime$2.exports;
-const sublime = /* @__PURE__ */codemirror.getDefaultExportFromCjs(sublimeExports);
-const sublime$1 = /* @__PURE__ */_mergeNamespaces({
- __proto__: null,
- default: sublime
-}, [sublimeExports]);
-exports.sublime = sublime$1;
-
-/***/ }),
-
/***/ "../../graphiql-toolkit/dist/esm/async-helpers/index.js":
/*!**************************************************************!*\
!*** ../../graphiql-toolkit/dist/esm/async-helpers/index.js ***!
\**************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79090,6 +83470,7 @@ async function fetcherReturnToPromise(fetcherResult) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79157,6 +83538,7 @@ exports.__forAwait = __forAwait;
\***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79190,6 +83572,7 @@ function createGraphiQLFetcher(options) {
\***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79227,6 +83610,7 @@ var _createFetcher = __webpack_require__(/*! ./createFetcher */ "../../graphiql-
\*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79343,6 +83727,7 @@ async function getWsFetcher(options, fetcherOpts) {
\***************************************************************/
/***/ (function() {
+"use strict";
/***/ }),
@@ -79353,6 +83738,7 @@ async function getWsFetcher(options, fetcherOpts) {
\*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79393,6 +83779,7 @@ function formatResult(result) {
\************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79506,6 +83893,7 @@ function isFieldType(fieldType) {
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79553,6 +83941,7 @@ Object.keys(_operationName).forEach(function (key) {
\********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79660,6 +84049,7 @@ function mergeAst(documentAST, schema) {
\*************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79692,6 +84082,7 @@ function getSelectedOperationName(prevOperations, prevSelectedOperationName, ope
\************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79761,6 +84152,7 @@ Object.keys(_storage).forEach(function (key) {
\*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79835,6 +84227,7 @@ const STORAGE_NAMESPACE = "graphiql";
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79870,6 +84263,7 @@ function createLocalStorage({
\**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -79972,6 +84366,7 @@ exports.HistoryStore = HistoryStore;
\********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -80030,6 +84425,7 @@ Object.keys(_custom).forEach(function (key) {
\********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -80092,12 +84488,13 @@ exports.QueryStore = QueryStore;
/***/ }),
-/***/ "./components/GraphiQL.tsx":
-/*!*********************************!*\
- !*** ./components/GraphiQL.tsx ***!
- \*********************************/
+/***/ "./GraphiQL.tsx":
+/*!**********************!*\
+ !*** ./GraphiQL.tsx ***!
+ \**********************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -80715,6 +85112,7 @@ function isChildComponentType(child, component) {
\***************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -81015,6 +85413,7 @@ var _utils = __webpack_require__(/*! ./utils */ "../../graphql-language-service/
\*************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -81121,6 +85520,7 @@ exports.getFieldInsertText = getFieldInsertText;
\**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -81761,6 +86161,7 @@ function unwrapType(state) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -81983,6 +86384,7 @@ function getDefinitionForArgumentDefinition(path, text, definition) {
\**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -82105,6 +86507,7 @@ function getLocation(node) {
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -82298,6 +86701,7 @@ function text(into, content) {
\******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -82433,6 +86837,7 @@ function concatMap(arr, fn) {
\*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -82513,6 +86918,7 @@ var _getHoverInformation = __webpack_require__(/*! ./getHoverInformation */ "../
\********************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -82632,6 +87038,7 @@ exports["default"] = CharacterStream;
\****************************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -82686,6 +87093,7 @@ function p(value, style) {
\**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -82890,6 +87298,7 @@ function type(style) {
\********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83014,6 +87423,7 @@ function getContextAtPosition(queryText, cursor, schema, contextToken, options)
\****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83231,6 +87641,7 @@ function getTypeInfo(schema, tokenState) {
\**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83392,6 +87803,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
\*****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83613,6 +88025,7 @@ function lex(lexRules, stream) {
\**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83661,6 +88074,7 @@ const RuleKinds = exports.RuleKinds = Object.assign(Object.assign({}, _graphql.K
\***************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83723,6 +88137,7 @@ var CompletionItemKind;
\*********************************************************/
/***/ (function(__unused_webpack_module, exports) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83788,6 +88203,7 @@ function locToRange(text, loc) {
\********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83828,6 +88244,7 @@ function collectVariables(schema, documentAST) {
\************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83898,6 +88315,7 @@ exports.getFragmentDependenciesForAST = getFragmentDependenciesForAST;
\************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83938,6 +88356,7 @@ function pointToOffset(text, point) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -83984,6 +88403,7 @@ const getQueryFacts = exports.getQueryFacts = getOperationFacts;
\**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -84223,6 +88643,7 @@ function getVariablesJSONSchema(variableToType, options) {
\*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -84330,6 +88751,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
\***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+"use strict";
Object.defineProperty(exports, "__esModule", ({
@@ -84377,6 +88799,7 @@ function validateWithCustomRules(schema, ast, customRules, isRelayCompatMode, is
\*******************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin
@@ -84389,6 +88812,7 @@ __webpack_require__.r(__webpack_exports__);
\*******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin
@@ -84401,6 +88825,7 @@ __webpack_require__.r(__webpack_exports__);
\***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin
@@ -84413,6 +88838,7 @@ __webpack_require__.r(__webpack_exports__);
\********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin
@@ -84425,6 +88851,7 @@ __webpack_require__.r(__webpack_exports__);
\************************/
/***/ (function(module) {
+"use strict";
module.exports = window["React"];
/***/ }),
@@ -84435,6 +88862,7 @@ module.exports = window["React"];
\***************************/
/***/ (function(module) {
+"use strict";
module.exports = window["ReactDOM"];
/***/ }),
@@ -84445,6 +88873,7 @@ module.exports = window["ReactDOM"];
\***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
@@ -91606,6 +96035,7 @@ var Transition = Object.assign(TransitionRoot, { Child, Root: TransitionRoot });
\**************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+"use strict";
if (false) {} else {
@@ -91621,6 +96051,7 @@ if (false) {} else {
\***************************************************************/
/***/ (function(module) {
+"use strict";
function _extends() {
@@ -91698,8 +96129,9 @@ module.exports = _extends, module.exports.__esModule = true, module.exports["def
/******/
/************************************************************************/
var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
+// This entry need to be wrapped in an IIFE because it need to be in strict mode.
!function() {
+"use strict";
var exports = __webpack_exports__;
/*!****************!*\
!*** ./cdn.ts ***!
@@ -91713,7 +96145,7 @@ exports["default"] = void 0;
var GraphiQLReact = _interopRequireWildcard(__webpack_require__(/*! @graphiql/react */ "../../graphiql-react/dist/index.js"));
var _toolkit = __webpack_require__(/*! @graphiql/toolkit */ "../../graphiql-toolkit/dist/esm/index.js");
var GraphQL = _interopRequireWildcard(__webpack_require__(/*! graphql */ "../../../node_modules/graphql/index.mjs"));
-var _GraphiQL = __webpack_require__(/*! ./components/GraphiQL */ "./components/GraphiQL.tsx");
+var _GraphiQL = __webpack_require__(/*! ./GraphiQL */ "./GraphiQL.tsx");
__webpack_require__(/*! @graphiql/react/font/roboto.css */ "../../graphiql-react/font/roboto.css");
__webpack_require__(/*! @graphiql/react/font/fira-code.css */ "../../graphiql-react/font/fira-code.css");
__webpack_require__(/*! @graphiql/react/dist/style.css */ "../../graphiql-react/dist/style.css");
diff --git a/netbox/project-static/dist/netbox-external.css b/netbox/project-static/dist/netbox-external.css
index 72d40bc92..702520216 100644
--- a/netbox/project-static/dist/netbox-external.css
+++ b/netbox/project-static/dist/netbox-external.css
@@ -1 +1 @@
-@font-face{font-family:Material Design Icons;src:url("./materialdesignicons-webfont-A5TO3SM5.eot?v=7.4.47");src:url("./materialdesignicons-webfont-A5TO3SM5.eot?#iefix&v=7.4.47") format("embedded-opentype"),url("./materialdesignicons-webfont-7OXPFKOV.woff2?v=7.4.47") format("woff2"),url("./materialdesignicons-webfont-4ZM36VVG.woff?v=7.4.47") format("woff"),url("./materialdesignicons-webfont-OFFE53R5.ttf?v=7.4.47") format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"\f01c9"}.mdi-abacus:before{content:"\f16e0"}.mdi-abjad-arabic:before{content:"\f1328"}.mdi-abjad-hebrew:before{content:"\f1329"}.mdi-abugida-devanagari:before{content:"\f132a"}.mdi-abugida-thai:before{content:"\f132b"}.mdi-access-point:before{content:"\f0003"}.mdi-access-point-check:before{content:"\f1538"}.mdi-access-point-minus:before{content:"\f1539"}.mdi-access-point-network:before{content:"\f0002"}.mdi-access-point-network-off:before{content:"\f0be1"}.mdi-access-point-off:before{content:"\f1511"}.mdi-access-point-plus:before{content:"\f153a"}.mdi-access-point-remove:before{content:"\f153b"}.mdi-account:before{content:"\f0004"}.mdi-account-alert:before{content:"\f0005"}.mdi-account-alert-outline:before{content:"\f0b50"}.mdi-account-arrow-down:before{content:"\f1868"}.mdi-account-arrow-down-outline:before{content:"\f1869"}.mdi-account-arrow-left:before{content:"\f0b51"}.mdi-account-arrow-left-outline:before{content:"\f0b52"}.mdi-account-arrow-right:before{content:"\f0b53"}.mdi-account-arrow-right-outline:before{content:"\f0b54"}.mdi-account-arrow-up:before{content:"\f1867"}.mdi-account-arrow-up-outline:before{content:"\f186a"}.mdi-account-badge:before{content:"\f1b0a"}.mdi-account-badge-outline:before{content:"\f1b0b"}.mdi-account-box:before{content:"\f0006"}.mdi-account-box-edit-outline:before{content:"\f1cc8"}.mdi-account-box-minus-outline:before{content:"\f1cc9"}.mdi-account-box-multiple:before{content:"\f0934"}.mdi-account-box-multiple-outline:before{content:"\f100a"}.mdi-account-box-outline:before{content:"\f0007"}.mdi-account-box-plus-outline:before{content:"\f1cca"}.mdi-account-cancel:before{content:"\f12df"}.mdi-account-cancel-outline:before{content:"\f12e0"}.mdi-account-card:before{content:"\f1ba4"}.mdi-account-card-outline:before{content:"\f1ba5"}.mdi-account-cash:before{content:"\f1097"}.mdi-account-cash-outline:before{content:"\f1098"}.mdi-account-check:before{content:"\f0008"}.mdi-account-check-outline:before{content:"\f0be2"}.mdi-account-child:before{content:"\f0a89"}.mdi-account-child-circle:before{content:"\f0a8a"}.mdi-account-child-outline:before{content:"\f10c8"}.mdi-account-circle:before{content:"\f0009"}.mdi-account-circle-outline:before{content:"\f0b55"}.mdi-account-clock:before{content:"\f0b56"}.mdi-account-clock-outline:before{content:"\f0b57"}.mdi-account-cog:before{content:"\f1370"}.mdi-account-cog-outline:before{content:"\f1371"}.mdi-account-convert:before{content:"\f000a"}.mdi-account-convert-outline:before{content:"\f1301"}.mdi-account-cowboy-hat:before{content:"\f0e9b"}.mdi-account-cowboy-hat-outline:before{content:"\f17f3"}.mdi-account-credit-card:before{content:"\f1ba6"}.mdi-account-credit-card-outline:before{content:"\f1ba7"}.mdi-account-details:before{content:"\f0631"}.mdi-account-details-outline:before{content:"\f1372"}.mdi-account-edit:before{content:"\f06bc"}.mdi-account-edit-outline:before{content:"\f0ffb"}.mdi-account-eye:before{content:"\f0420"}.mdi-account-eye-outline:before{content:"\f127b"}.mdi-account-file:before{content:"\f1ca7"}.mdi-account-file-outline:before{content:"\f1ca8"}.mdi-account-file-text:before{content:"\f1ca9"}.mdi-account-file-text-outline:before{content:"\f1caa"}.mdi-account-filter:before{content:"\f0936"}.mdi-account-filter-outline:before{content:"\f0f9d"}.mdi-account-group:before{content:"\f0849"}.mdi-account-group-outline:before{content:"\f0b58"}.mdi-account-hard-hat:before{content:"\f05b5"}.mdi-account-hard-hat-outline:before{content:"\f1a1f"}.mdi-account-heart:before{content:"\f0899"}.mdi-account-heart-outline:before{content:"\f0be3"}.mdi-account-injury:before{content:"\f1815"}.mdi-account-injury-outline:before{content:"\f1816"}.mdi-account-key:before{content:"\f000b"}.mdi-account-key-outline:before{content:"\f0be4"}.mdi-account-lock:before{content:"\f115e"}.mdi-account-lock-open:before{content:"\f1960"}.mdi-account-lock-open-outline:before{content:"\f1961"}.mdi-account-lock-outline:before{content:"\f115f"}.mdi-account-minus:before{content:"\f000d"}.mdi-account-minus-outline:before{content:"\f0aec"}.mdi-account-multiple:before{content:"\f000e"}.mdi-account-multiple-check:before{content:"\f08c5"}.mdi-account-multiple-check-outline:before{content:"\f11fe"}.mdi-account-multiple-minus:before{content:"\f05d3"}.mdi-account-multiple-minus-outline:before{content:"\f0be5"}.mdi-account-multiple-outline:before{content:"\f000f"}.mdi-account-multiple-plus:before{content:"\f0010"}.mdi-account-multiple-plus-outline:before{content:"\f0800"}.mdi-account-multiple-remove:before{content:"\f120a"}.mdi-account-multiple-remove-outline:before{content:"\f120b"}.mdi-account-music:before{content:"\f0803"}.mdi-account-music-outline:before{content:"\f0ce9"}.mdi-account-network:before{content:"\f0011"}.mdi-account-network-off:before{content:"\f1af1"}.mdi-account-network-off-outline:before{content:"\f1af2"}.mdi-account-network-outline:before{content:"\f0be6"}.mdi-account-off:before{content:"\f0012"}.mdi-account-off-outline:before{content:"\f0be7"}.mdi-account-outline:before{content:"\f0013"}.mdi-account-plus:before{content:"\f0014"}.mdi-account-plus-outline:before{content:"\f0801"}.mdi-account-question:before{content:"\f0b59"}.mdi-account-question-outline:before{content:"\f0b5a"}.mdi-account-reactivate:before{content:"\f152b"}.mdi-account-reactivate-outline:before{content:"\f152c"}.mdi-account-remove:before{content:"\f0015"}.mdi-account-remove-outline:before{content:"\f0aed"}.mdi-account-school:before{content:"\f1a20"}.mdi-account-school-outline:before{content:"\f1a21"}.mdi-account-search:before{content:"\f0016"}.mdi-account-search-outline:before{content:"\f0935"}.mdi-account-settings:before{content:"\f0630"}.mdi-account-settings-outline:before{content:"\f10c9"}.mdi-account-star:before{content:"\f0017"}.mdi-account-star-outline:before{content:"\f0be8"}.mdi-account-supervisor:before{content:"\f0a8b"}.mdi-account-supervisor-circle:before{content:"\f0a8c"}.mdi-account-supervisor-circle-outline:before{content:"\f14ec"}.mdi-account-supervisor-outline:before{content:"\f112d"}.mdi-account-switch:before{content:"\f0019"}.mdi-account-switch-outline:before{content:"\f04cb"}.mdi-account-sync:before{content:"\f191b"}.mdi-account-sync-outline:before{content:"\f191c"}.mdi-account-tag:before{content:"\f1c1b"}.mdi-account-tag-outline:before{content:"\f1c1c"}.mdi-account-tie:before{content:"\f0ce3"}.mdi-account-tie-hat:before{content:"\f1898"}.mdi-account-tie-hat-outline:before{content:"\f1899"}.mdi-account-tie-outline:before{content:"\f10ca"}.mdi-account-tie-voice:before{content:"\f1308"}.mdi-account-tie-voice-off:before{content:"\f130a"}.mdi-account-tie-voice-off-outline:before{content:"\f130b"}.mdi-account-tie-voice-outline:before{content:"\f1309"}.mdi-account-tie-woman:before{content:"\f1a8c"}.mdi-account-voice:before{content:"\f05cb"}.mdi-account-voice-off:before{content:"\f0ed4"}.mdi-account-wrench:before{content:"\f189a"}.mdi-account-wrench-outline:before{content:"\f189b"}.mdi-adjust:before{content:"\f001a"}.mdi-advertisements:before{content:"\f192a"}.mdi-advertisements-off:before{content:"\f192b"}.mdi-air-conditioner:before{content:"\f001b"}.mdi-air-filter:before{content:"\f0d43"}.mdi-air-horn:before{content:"\f0dac"}.mdi-air-humidifier:before{content:"\f1099"}.mdi-air-humidifier-off:before{content:"\f1466"}.mdi-air-purifier:before{content:"\f0d44"}.mdi-air-purifier-off:before{content:"\f1b57"}.mdi-airbag:before{content:"\f0be9"}.mdi-airballoon:before{content:"\f001c"}.mdi-airballoon-outline:before{content:"\f100b"}.mdi-airplane:before{content:"\f001d"}.mdi-airplane-alert:before{content:"\f187a"}.mdi-airplane-check:before{content:"\f187b"}.mdi-airplane-clock:before{content:"\f187c"}.mdi-airplane-cog:before{content:"\f187d"}.mdi-airplane-edit:before{content:"\f187e"}.mdi-airplane-landing:before{content:"\f05d4"}.mdi-airplane-marker:before{content:"\f187f"}.mdi-airplane-minus:before{content:"\f1880"}.mdi-airplane-off:before{content:"\f001e"}.mdi-airplane-plus:before{content:"\f1881"}.mdi-airplane-remove:before{content:"\f1882"}.mdi-airplane-search:before{content:"\f1883"}.mdi-airplane-settings:before{content:"\f1884"}.mdi-airplane-takeoff:before{content:"\f05d5"}.mdi-airport:before{content:"\f084b"}.mdi-alarm:before{content:"\f0020"}.mdi-alarm-bell:before{content:"\f078e"}.mdi-alarm-check:before{content:"\f0021"}.mdi-alarm-light:before{content:"\f078f"}.mdi-alarm-light-off:before{content:"\f171e"}.mdi-alarm-light-off-outline:before{content:"\f171f"}.mdi-alarm-light-outline:before{content:"\f0bea"}.mdi-alarm-multiple:before{content:"\f0022"}.mdi-alarm-note:before{content:"\f0e71"}.mdi-alarm-note-off:before{content:"\f0e72"}.mdi-alarm-off:before{content:"\f0023"}.mdi-alarm-panel:before{content:"\f15c4"}.mdi-alarm-panel-outline:before{content:"\f15c5"}.mdi-alarm-plus:before{content:"\f0024"}.mdi-alarm-snooze:before{content:"\f068e"}.mdi-album:before{content:"\f0025"}.mdi-alert:before{content:"\f0026"}.mdi-alert-box:before{content:"\f0027"}.mdi-alert-box-outline:before{content:"\f0ce4"}.mdi-alert-circle:before{content:"\f0028"}.mdi-alert-circle-check:before{content:"\f11ed"}.mdi-alert-circle-check-outline:before{content:"\f11ee"}.mdi-alert-circle-outline:before{content:"\f05d6"}.mdi-alert-decagram:before{content:"\f06bd"}.mdi-alert-decagram-outline:before{content:"\f0ce5"}.mdi-alert-minus:before{content:"\f14bb"}.mdi-alert-minus-outline:before{content:"\f14be"}.mdi-alert-octagon:before{content:"\f0029"}.mdi-alert-octagon-outline:before{content:"\f0ce6"}.mdi-alert-octagram:before{content:"\f0767"}.mdi-alert-octagram-outline:before{content:"\f0ce7"}.mdi-alert-outline:before{content:"\f002a"}.mdi-alert-plus:before{content:"\f14ba"}.mdi-alert-plus-outline:before{content:"\f14bd"}.mdi-alert-remove:before{content:"\f14bc"}.mdi-alert-remove-outline:before{content:"\f14bf"}.mdi-alert-rhombus:before{content:"\f11ce"}.mdi-alert-rhombus-outline:before{content:"\f11cf"}.mdi-alien:before{content:"\f089a"}.mdi-alien-outline:before{content:"\f10cb"}.mdi-align-horizontal-center:before{content:"\f11c3"}.mdi-align-horizontal-distribute:before{content:"\f1962"}.mdi-align-horizontal-left:before{content:"\f11c2"}.mdi-align-horizontal-right:before{content:"\f11c4"}.mdi-align-vertical-bottom:before{content:"\f11c5"}.mdi-align-vertical-center:before{content:"\f11c6"}.mdi-align-vertical-distribute:before{content:"\f1963"}.mdi-align-vertical-top:before{content:"\f11c7"}.mdi-all-inclusive:before{content:"\f06be"}.mdi-all-inclusive-box:before{content:"\f188d"}.mdi-all-inclusive-box-outline:before{content:"\f188e"}.mdi-allergy:before{content:"\f1258"}.mdi-alpha:before{content:"\f002b"}.mdi-alpha-a:before{content:"\f0aee"}.mdi-alpha-a-box:before{content:"\f0b08"}.mdi-alpha-a-box-outline:before{content:"\f0beb"}.mdi-alpha-a-circle:before{content:"\f0bec"}.mdi-alpha-a-circle-outline:before{content:"\f0bed"}.mdi-alpha-b:before{content:"\f0aef"}.mdi-alpha-b-box:before{content:"\f0b09"}.mdi-alpha-b-box-outline:before{content:"\f0bee"}.mdi-alpha-b-circle:before{content:"\f0bef"}.mdi-alpha-b-circle-outline:before{content:"\f0bf0"}.mdi-alpha-c:before{content:"\f0af0"}.mdi-alpha-c-box:before{content:"\f0b0a"}.mdi-alpha-c-box-outline:before{content:"\f0bf1"}.mdi-alpha-c-circle:before{content:"\f0bf2"}.mdi-alpha-c-circle-outline:before{content:"\f0bf3"}.mdi-alpha-d:before{content:"\f0af1"}.mdi-alpha-d-box:before{content:"\f0b0b"}.mdi-alpha-d-box-outline:before{content:"\f0bf4"}.mdi-alpha-d-circle:before{content:"\f0bf5"}.mdi-alpha-d-circle-outline:before{content:"\f0bf6"}.mdi-alpha-e:before{content:"\f0af2"}.mdi-alpha-e-box:before{content:"\f0b0c"}.mdi-alpha-e-box-outline:before{content:"\f0bf7"}.mdi-alpha-e-circle:before{content:"\f0bf8"}.mdi-alpha-e-circle-outline:before{content:"\f0bf9"}.mdi-alpha-f:before{content:"\f0af3"}.mdi-alpha-f-box:before{content:"\f0b0d"}.mdi-alpha-f-box-outline:before{content:"\f0bfa"}.mdi-alpha-f-circle:before{content:"\f0bfb"}.mdi-alpha-f-circle-outline:before{content:"\f0bfc"}.mdi-alpha-g:before{content:"\f0af4"}.mdi-alpha-g-box:before{content:"\f0b0e"}.mdi-alpha-g-box-outline:before{content:"\f0bfd"}.mdi-alpha-g-circle:before{content:"\f0bfe"}.mdi-alpha-g-circle-outline:before{content:"\f0bff"}.mdi-alpha-h:before{content:"\f0af5"}.mdi-alpha-h-box:before{content:"\f0b0f"}.mdi-alpha-h-box-outline:before{content:"\f0c00"}.mdi-alpha-h-circle:before{content:"\f0c01"}.mdi-alpha-h-circle-outline:before{content:"\f0c02"}.mdi-alpha-i:before{content:"\f0af6"}.mdi-alpha-i-box:before{content:"\f0b10"}.mdi-alpha-i-box-outline:before{content:"\f0c03"}.mdi-alpha-i-circle:before{content:"\f0c04"}.mdi-alpha-i-circle-outline:before{content:"\f0c05"}.mdi-alpha-j:before{content:"\f0af7"}.mdi-alpha-j-box:before{content:"\f0b11"}.mdi-alpha-j-box-outline:before{content:"\f0c06"}.mdi-alpha-j-circle:before{content:"\f0c07"}.mdi-alpha-j-circle-outline:before{content:"\f0c08"}.mdi-alpha-k:before{content:"\f0af8"}.mdi-alpha-k-box:before{content:"\f0b12"}.mdi-alpha-k-box-outline:before{content:"\f0c09"}.mdi-alpha-k-circle:before{content:"\f0c0a"}.mdi-alpha-k-circle-outline:before{content:"\f0c0b"}.mdi-alpha-l:before{content:"\f0af9"}.mdi-alpha-l-box:before{content:"\f0b13"}.mdi-alpha-l-box-outline:before{content:"\f0c0c"}.mdi-alpha-l-circle:before{content:"\f0c0d"}.mdi-alpha-l-circle-outline:before{content:"\f0c0e"}.mdi-alpha-m:before{content:"\f0afa"}.mdi-alpha-m-box:before{content:"\f0b14"}.mdi-alpha-m-box-outline:before{content:"\f0c0f"}.mdi-alpha-m-circle:before{content:"\f0c10"}.mdi-alpha-m-circle-outline:before{content:"\f0c11"}.mdi-alpha-n:before{content:"\f0afb"}.mdi-alpha-n-box:before{content:"\f0b15"}.mdi-alpha-n-box-outline:before{content:"\f0c12"}.mdi-alpha-n-circle:before{content:"\f0c13"}.mdi-alpha-n-circle-outline:before{content:"\f0c14"}.mdi-alpha-o:before{content:"\f0afc"}.mdi-alpha-o-box:before{content:"\f0b16"}.mdi-alpha-o-box-outline:before{content:"\f0c15"}.mdi-alpha-o-circle:before{content:"\f0c16"}.mdi-alpha-o-circle-outline:before{content:"\f0c17"}.mdi-alpha-p:before{content:"\f0afd"}.mdi-alpha-p-box:before{content:"\f0b17"}.mdi-alpha-p-box-outline:before{content:"\f0c18"}.mdi-alpha-p-circle:before{content:"\f0c19"}.mdi-alpha-p-circle-outline:before{content:"\f0c1a"}.mdi-alpha-q:before{content:"\f0afe"}.mdi-alpha-q-box:before{content:"\f0b18"}.mdi-alpha-q-box-outline:before{content:"\f0c1b"}.mdi-alpha-q-circle:before{content:"\f0c1c"}.mdi-alpha-q-circle-outline:before{content:"\f0c1d"}.mdi-alpha-r:before{content:"\f0aff"}.mdi-alpha-r-box:before{content:"\f0b19"}.mdi-alpha-r-box-outline:before{content:"\f0c1e"}.mdi-alpha-r-circle:before{content:"\f0c1f"}.mdi-alpha-r-circle-outline:before{content:"\f0c20"}.mdi-alpha-s:before{content:"\f0b00"}.mdi-alpha-s-box:before{content:"\f0b1a"}.mdi-alpha-s-box-outline:before{content:"\f0c21"}.mdi-alpha-s-circle:before{content:"\f0c22"}.mdi-alpha-s-circle-outline:before{content:"\f0c23"}.mdi-alpha-t:before{content:"\f0b01"}.mdi-alpha-t-box:before{content:"\f0b1b"}.mdi-alpha-t-box-outline:before{content:"\f0c24"}.mdi-alpha-t-circle:before{content:"\f0c25"}.mdi-alpha-t-circle-outline:before{content:"\f0c26"}.mdi-alpha-u:before{content:"\f0b02"}.mdi-alpha-u-box:before{content:"\f0b1c"}.mdi-alpha-u-box-outline:before{content:"\f0c27"}.mdi-alpha-u-circle:before{content:"\f0c28"}.mdi-alpha-u-circle-outline:before{content:"\f0c29"}.mdi-alpha-v:before{content:"\f0b03"}.mdi-alpha-v-box:before{content:"\f0b1d"}.mdi-alpha-v-box-outline:before{content:"\f0c2a"}.mdi-alpha-v-circle:before{content:"\f0c2b"}.mdi-alpha-v-circle-outline:before{content:"\f0c2c"}.mdi-alpha-w:before{content:"\f0b04"}.mdi-alpha-w-box:before{content:"\f0b1e"}.mdi-alpha-w-box-outline:before{content:"\f0c2d"}.mdi-alpha-w-circle:before{content:"\f0c2e"}.mdi-alpha-w-circle-outline:before{content:"\f0c2f"}.mdi-alpha-x:before{content:"\f0b05"}.mdi-alpha-x-box:before{content:"\f0b1f"}.mdi-alpha-x-box-outline:before{content:"\f0c30"}.mdi-alpha-x-circle:before{content:"\f0c31"}.mdi-alpha-x-circle-outline:before{content:"\f0c32"}.mdi-alpha-y:before{content:"\f0b06"}.mdi-alpha-y-box:before{content:"\f0b20"}.mdi-alpha-y-box-outline:before{content:"\f0c33"}.mdi-alpha-y-circle:before{content:"\f0c34"}.mdi-alpha-y-circle-outline:before{content:"\f0c35"}.mdi-alpha-z:before{content:"\f0b07"}.mdi-alpha-z-box:before{content:"\f0b21"}.mdi-alpha-z-box-outline:before{content:"\f0c36"}.mdi-alpha-z-circle:before{content:"\f0c37"}.mdi-alpha-z-circle-outline:before{content:"\f0c38"}.mdi-alphabet-aurebesh:before{content:"\f132c"}.mdi-alphabet-cyrillic:before{content:"\f132d"}.mdi-alphabet-greek:before{content:"\f132e"}.mdi-alphabet-latin:before{content:"\f132f"}.mdi-alphabet-piqad:before{content:"\f1330"}.mdi-alphabet-tengwar:before{content:"\f1337"}.mdi-alphabetical:before{content:"\f002c"}.mdi-alphabetical-off:before{content:"\f100c"}.mdi-alphabetical-variant:before{content:"\f100d"}.mdi-alphabetical-variant-off:before{content:"\f100e"}.mdi-altimeter:before{content:"\f05d7"}.mdi-ambulance:before{content:"\f002f"}.mdi-ammunition:before{content:"\f0ce8"}.mdi-ampersand:before{content:"\f0a8d"}.mdi-amplifier:before{content:"\f0030"}.mdi-amplifier-off:before{content:"\f11b5"}.mdi-anchor:before{content:"\f0031"}.mdi-android:before{content:"\f0032"}.mdi-android-studio:before{content:"\f0034"}.mdi-angle-acute:before{content:"\f0937"}.mdi-angle-obtuse:before{content:"\f0938"}.mdi-angle-right:before{content:"\f0939"}.mdi-angular:before{content:"\f06b2"}.mdi-angularjs:before{content:"\f06bf"}.mdi-animation:before{content:"\f05d8"}.mdi-animation-outline:before{content:"\f0a8f"}.mdi-animation-play:before{content:"\f093a"}.mdi-animation-play-outline:before{content:"\f0a90"}.mdi-ansible:before{content:"\f109a"}.mdi-antenna:before{content:"\f1119"}.mdi-anvil:before{content:"\f089b"}.mdi-apache-kafka:before{content:"\f100f"}.mdi-api:before{content:"\f109b"}.mdi-api-off:before{content:"\f1257"}.mdi-apple:before{content:"\f0035"}.mdi-apple-finder:before{content:"\f0036"}.mdi-apple-icloud:before{content:"\f0038"}.mdi-apple-ios:before{content:"\f0037"}.mdi-apple-keyboard-caps:before{content:"\f0632"}.mdi-apple-keyboard-command:before{content:"\f0633"}.mdi-apple-keyboard-control:before{content:"\f0634"}.mdi-apple-keyboard-option:before{content:"\f0635"}.mdi-apple-keyboard-shift:before{content:"\f0636"}.mdi-apple-safari:before{content:"\f0039"}.mdi-application:before{content:"\f08c6"}.mdi-application-array:before{content:"\f10f5"}.mdi-application-array-outline:before{content:"\f10f6"}.mdi-application-braces:before{content:"\f10f7"}.mdi-application-braces-outline:before{content:"\f10f8"}.mdi-application-brackets:before{content:"\f0c8b"}.mdi-application-brackets-outline:before{content:"\f0c8c"}.mdi-application-cog:before{content:"\f0675"}.mdi-application-cog-outline:before{content:"\f1577"}.mdi-application-edit:before{content:"\f00ae"}.mdi-application-edit-outline:before{content:"\f0619"}.mdi-application-export:before{content:"\f0dad"}.mdi-application-import:before{content:"\f0dae"}.mdi-application-outline:before{content:"\f0614"}.mdi-application-parentheses:before{content:"\f10f9"}.mdi-application-parentheses-outline:before{content:"\f10fa"}.mdi-application-settings:before{content:"\f0b60"}.mdi-application-settings-outline:before{content:"\f1555"}.mdi-application-variable:before{content:"\f10fb"}.mdi-application-variable-outline:before{content:"\f10fc"}.mdi-approximately-equal:before{content:"\f0f9e"}.mdi-approximately-equal-box:before{content:"\f0f9f"}.mdi-apps:before{content:"\f003b"}.mdi-apps-box:before{content:"\f0d46"}.mdi-arch:before{content:"\f08c7"}.mdi-archive:before{content:"\f003c"}.mdi-archive-alert:before{content:"\f14fd"}.mdi-archive-alert-outline:before{content:"\f14fe"}.mdi-archive-arrow-down:before{content:"\f1259"}.mdi-archive-arrow-down-outline:before{content:"\f125a"}.mdi-archive-arrow-up:before{content:"\f125b"}.mdi-archive-arrow-up-outline:before{content:"\f125c"}.mdi-archive-cancel:before{content:"\f174b"}.mdi-archive-cancel-outline:before{content:"\f174c"}.mdi-archive-check:before{content:"\f174d"}.mdi-archive-check-outline:before{content:"\f174e"}.mdi-archive-clock:before{content:"\f174f"}.mdi-archive-clock-outline:before{content:"\f1750"}.mdi-archive-cog:before{content:"\f1751"}.mdi-archive-cog-outline:before{content:"\f1752"}.mdi-archive-edit:before{content:"\f1753"}.mdi-archive-edit-outline:before{content:"\f1754"}.mdi-archive-eye:before{content:"\f1755"}.mdi-archive-eye-outline:before{content:"\f1756"}.mdi-archive-lock:before{content:"\f1757"}.mdi-archive-lock-open:before{content:"\f1758"}.mdi-archive-lock-open-outline:before{content:"\f1759"}.mdi-archive-lock-outline:before{content:"\f175a"}.mdi-archive-marker:before{content:"\f175b"}.mdi-archive-marker-outline:before{content:"\f175c"}.mdi-archive-minus:before{content:"\f175d"}.mdi-archive-minus-outline:before{content:"\f175e"}.mdi-archive-music:before{content:"\f175f"}.mdi-archive-music-outline:before{content:"\f1760"}.mdi-archive-off:before{content:"\f1761"}.mdi-archive-off-outline:before{content:"\f1762"}.mdi-archive-outline:before{content:"\f120e"}.mdi-archive-plus:before{content:"\f1763"}.mdi-archive-plus-outline:before{content:"\f1764"}.mdi-archive-refresh:before{content:"\f1765"}.mdi-archive-refresh-outline:before{content:"\f1766"}.mdi-archive-remove:before{content:"\f1767"}.mdi-archive-remove-outline:before{content:"\f1768"}.mdi-archive-search:before{content:"\f1769"}.mdi-archive-search-outline:before{content:"\f176a"}.mdi-archive-settings:before{content:"\f176b"}.mdi-archive-settings-outline:before{content:"\f176c"}.mdi-archive-star:before{content:"\f176d"}.mdi-archive-star-outline:before{content:"\f176e"}.mdi-archive-sync:before{content:"\f176f"}.mdi-archive-sync-outline:before{content:"\f1770"}.mdi-arm-flex:before{content:"\f0fd7"}.mdi-arm-flex-outline:before{content:"\f0fd6"}.mdi-arrange-bring-forward:before{content:"\f003d"}.mdi-arrange-bring-to-front:before{content:"\f003e"}.mdi-arrange-send-backward:before{content:"\f003f"}.mdi-arrange-send-to-back:before{content:"\f0040"}.mdi-arrow-all:before{content:"\f0041"}.mdi-arrow-bottom-left:before{content:"\f0042"}.mdi-arrow-bottom-left-bold-box:before{content:"\f1964"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"\f1965"}.mdi-arrow-bottom-left-bold-outline:before{content:"\f09b7"}.mdi-arrow-bottom-left-thick:before{content:"\f09b8"}.mdi-arrow-bottom-left-thin:before{content:"\f19b6"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"\f1596"}.mdi-arrow-bottom-right:before{content:"\f0043"}.mdi-arrow-bottom-right-bold-box:before{content:"\f1966"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"\f1967"}.mdi-arrow-bottom-right-bold-outline:before{content:"\f09b9"}.mdi-arrow-bottom-right-thick:before{content:"\f09ba"}.mdi-arrow-bottom-right-thin:before{content:"\f19b7"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"\f1595"}.mdi-arrow-collapse:before{content:"\f0615"}.mdi-arrow-collapse-all:before{content:"\f0044"}.mdi-arrow-collapse-down:before{content:"\f0792"}.mdi-arrow-collapse-horizontal:before{content:"\f084c"}.mdi-arrow-collapse-left:before{content:"\f0793"}.mdi-arrow-collapse-right:before{content:"\f0794"}.mdi-arrow-collapse-up:before{content:"\f0795"}.mdi-arrow-collapse-vertical:before{content:"\f084d"}.mdi-arrow-decision:before{content:"\f09bb"}.mdi-arrow-decision-auto:before{content:"\f09bc"}.mdi-arrow-decision-auto-outline:before{content:"\f09bd"}.mdi-arrow-decision-outline:before{content:"\f09be"}.mdi-arrow-down:before{content:"\f0045"}.mdi-arrow-down-bold:before{content:"\f072e"}.mdi-arrow-down-bold-box:before{content:"\f072f"}.mdi-arrow-down-bold-box-outline:before{content:"\f0730"}.mdi-arrow-down-bold-circle:before{content:"\f0047"}.mdi-arrow-down-bold-circle-outline:before{content:"\f0048"}.mdi-arrow-down-bold-hexagon-outline:before{content:"\f0049"}.mdi-arrow-down-bold-outline:before{content:"\f09bf"}.mdi-arrow-down-box:before{content:"\f06c0"}.mdi-arrow-down-circle:before{content:"\f0cdb"}.mdi-arrow-down-circle-outline:before{content:"\f0cdc"}.mdi-arrow-down-drop-circle:before{content:"\f004a"}.mdi-arrow-down-drop-circle-outline:before{content:"\f004b"}.mdi-arrow-down-left:before{content:"\f17a1"}.mdi-arrow-down-left-bold:before{content:"\f17a2"}.mdi-arrow-down-right:before{content:"\f17a3"}.mdi-arrow-down-right-bold:before{content:"\f17a4"}.mdi-arrow-down-thick:before{content:"\f0046"}.mdi-arrow-down-thin:before{content:"\f19b3"}.mdi-arrow-down-thin-circle-outline:before{content:"\f1599"}.mdi-arrow-expand:before{content:"\f0616"}.mdi-arrow-expand-all:before{content:"\f004c"}.mdi-arrow-expand-down:before{content:"\f0796"}.mdi-arrow-expand-horizontal:before{content:"\f084e"}.mdi-arrow-expand-left:before{content:"\f0797"}.mdi-arrow-expand-right:before{content:"\f0798"}.mdi-arrow-expand-up:before{content:"\f0799"}.mdi-arrow-expand-vertical:before{content:"\f084f"}.mdi-arrow-horizontal-lock:before{content:"\f115b"}.mdi-arrow-left:before{content:"\f004d"}.mdi-arrow-left-bold:before{content:"\f0731"}.mdi-arrow-left-bold-box:before{content:"\f0732"}.mdi-arrow-left-bold-box-outline:before{content:"\f0733"}.mdi-arrow-left-bold-circle:before{content:"\f004f"}.mdi-arrow-left-bold-circle-outline:before{content:"\f0050"}.mdi-arrow-left-bold-hexagon-outline:before{content:"\f0051"}.mdi-arrow-left-bold-outline:before{content:"\f09c0"}.mdi-arrow-left-bottom:before{content:"\f17a5"}.mdi-arrow-left-bottom-bold:before{content:"\f17a6"}.mdi-arrow-left-box:before{content:"\f06c1"}.mdi-arrow-left-circle:before{content:"\f0cdd"}.mdi-arrow-left-circle-outline:before{content:"\f0cde"}.mdi-arrow-left-drop-circle:before{content:"\f0052"}.mdi-arrow-left-drop-circle-outline:before{content:"\f0053"}.mdi-arrow-left-right:before{content:"\f0e73"}.mdi-arrow-left-right-bold:before{content:"\f0e74"}.mdi-arrow-left-right-bold-outline:before{content:"\f09c1"}.mdi-arrow-left-thick:before{content:"\f004e"}.mdi-arrow-left-thin:before{content:"\f19b1"}.mdi-arrow-left-thin-circle-outline:before{content:"\f159a"}.mdi-arrow-left-top:before{content:"\f17a7"}.mdi-arrow-left-top-bold:before{content:"\f17a8"}.mdi-arrow-oscillating:before{content:"\f1c91"}.mdi-arrow-oscillating-off:before{content:"\f1c92"}.mdi-arrow-projectile:before{content:"\f1840"}.mdi-arrow-projectile-multiple:before{content:"\f183f"}.mdi-arrow-right:before{content:"\f0054"}.mdi-arrow-right-bold:before{content:"\f0734"}.mdi-arrow-right-bold-box:before{content:"\f0735"}.mdi-arrow-right-bold-box-outline:before{content:"\f0736"}.mdi-arrow-right-bold-circle:before{content:"\f0056"}.mdi-arrow-right-bold-circle-outline:before{content:"\f0057"}.mdi-arrow-right-bold-hexagon-outline:before{content:"\f0058"}.mdi-arrow-right-bold-outline:before{content:"\f09c2"}.mdi-arrow-right-bottom:before{content:"\f17a9"}.mdi-arrow-right-bottom-bold:before{content:"\f17aa"}.mdi-arrow-right-box:before{content:"\f06c2"}.mdi-arrow-right-circle:before{content:"\f0cdf"}.mdi-arrow-right-circle-outline:before{content:"\f0ce0"}.mdi-arrow-right-drop-circle:before{content:"\f0059"}.mdi-arrow-right-drop-circle-outline:before{content:"\f005a"}.mdi-arrow-right-thick:before{content:"\f0055"}.mdi-arrow-right-thin:before{content:"\f19b0"}.mdi-arrow-right-thin-circle-outline:before{content:"\f1598"}.mdi-arrow-right-top:before{content:"\f17ab"}.mdi-arrow-right-top-bold:before{content:"\f17ac"}.mdi-arrow-split-horizontal:before{content:"\f093b"}.mdi-arrow-split-vertical:before{content:"\f093c"}.mdi-arrow-top-left:before{content:"\f005b"}.mdi-arrow-top-left-bold-box:before{content:"\f1968"}.mdi-arrow-top-left-bold-box-outline:before{content:"\f1969"}.mdi-arrow-top-left-bold-outline:before{content:"\f09c3"}.mdi-arrow-top-left-bottom-right:before{content:"\f0e75"}.mdi-arrow-top-left-bottom-right-bold:before{content:"\f0e76"}.mdi-arrow-top-left-thick:before{content:"\f09c4"}.mdi-arrow-top-left-thin:before{content:"\f19b5"}.mdi-arrow-top-left-thin-circle-outline:before{content:"\f1593"}.mdi-arrow-top-right:before{content:"\f005c"}.mdi-arrow-top-right-bold-box:before{content:"\f196a"}.mdi-arrow-top-right-bold-box-outline:before{content:"\f196b"}.mdi-arrow-top-right-bold-outline:before{content:"\f09c5"}.mdi-arrow-top-right-bottom-left:before{content:"\f0e77"}.mdi-arrow-top-right-bottom-left-bold:before{content:"\f0e78"}.mdi-arrow-top-right-thick:before{content:"\f09c6"}.mdi-arrow-top-right-thin:before{content:"\f19b4"}.mdi-arrow-top-right-thin-circle-outline:before{content:"\f1594"}.mdi-arrow-u-down-left:before{content:"\f17ad"}.mdi-arrow-u-down-left-bold:before{content:"\f17ae"}.mdi-arrow-u-down-right:before{content:"\f17af"}.mdi-arrow-u-down-right-bold:before{content:"\f17b0"}.mdi-arrow-u-left-bottom:before{content:"\f17b1"}.mdi-arrow-u-left-bottom-bold:before{content:"\f17b2"}.mdi-arrow-u-left-top:before{content:"\f17b3"}.mdi-arrow-u-left-top-bold:before{content:"\f17b4"}.mdi-arrow-u-right-bottom:before{content:"\f17b5"}.mdi-arrow-u-right-bottom-bold:before{content:"\f17b6"}.mdi-arrow-u-right-top:before{content:"\f17b7"}.mdi-arrow-u-right-top-bold:before{content:"\f17b8"}.mdi-arrow-u-up-left:before{content:"\f17b9"}.mdi-arrow-u-up-left-bold:before{content:"\f17ba"}.mdi-arrow-u-up-right:before{content:"\f17bb"}.mdi-arrow-u-up-right-bold:before{content:"\f17bc"}.mdi-arrow-up:before{content:"\f005d"}.mdi-arrow-up-bold:before{content:"\f0737"}.mdi-arrow-up-bold-box:before{content:"\f0738"}.mdi-arrow-up-bold-box-outline:before{content:"\f0739"}.mdi-arrow-up-bold-circle:before{content:"\f005f"}.mdi-arrow-up-bold-circle-outline:before{content:"\f0060"}.mdi-arrow-up-bold-hexagon-outline:before{content:"\f0061"}.mdi-arrow-up-bold-outline:before{content:"\f09c7"}.mdi-arrow-up-box:before{content:"\f06c3"}.mdi-arrow-up-circle:before{content:"\f0ce1"}.mdi-arrow-up-circle-outline:before{content:"\f0ce2"}.mdi-arrow-up-down:before{content:"\f0e79"}.mdi-arrow-up-down-bold:before{content:"\f0e7a"}.mdi-arrow-up-down-bold-outline:before{content:"\f09c8"}.mdi-arrow-up-drop-circle:before{content:"\f0062"}.mdi-arrow-up-drop-circle-outline:before{content:"\f0063"}.mdi-arrow-up-left:before{content:"\f17bd"}.mdi-arrow-up-left-bold:before{content:"\f17be"}.mdi-arrow-up-right:before{content:"\f17bf"}.mdi-arrow-up-right-bold:before{content:"\f17c0"}.mdi-arrow-up-thick:before{content:"\f005e"}.mdi-arrow-up-thin:before{content:"\f19b2"}.mdi-arrow-up-thin-circle-outline:before{content:"\f1597"}.mdi-arrow-vertical-lock:before{content:"\f115c"}.mdi-artboard:before{content:"\f1b9a"}.mdi-artstation:before{content:"\f0b5b"}.mdi-aspect-ratio:before{content:"\f0a24"}.mdi-assistant:before{content:"\f0064"}.mdi-asterisk:before{content:"\f06c4"}.mdi-asterisk-circle-outline:before{content:"\f1a27"}.mdi-at:before{content:"\f0065"}.mdi-atlassian:before{content:"\f0804"}.mdi-atm:before{content:"\f0d47"}.mdi-atom:before{content:"\f0768"}.mdi-atom-variant:before{content:"\f0e7b"}.mdi-attachment:before{content:"\f0066"}.mdi-attachment-check:before{content:"\f1ac1"}.mdi-attachment-lock:before{content:"\f19c4"}.mdi-attachment-minus:before{content:"\f1ac2"}.mdi-attachment-off:before{content:"\f1ac3"}.mdi-attachment-plus:before{content:"\f1ac4"}.mdi-attachment-remove:before{content:"\f1ac5"}.mdi-atv:before{content:"\f1b70"}.mdi-audio-input-rca:before{content:"\f186b"}.mdi-audio-input-stereo-minijack:before{content:"\f186c"}.mdi-audio-input-xlr:before{content:"\f186d"}.mdi-audio-video:before{content:"\f093d"}.mdi-audio-video-off:before{content:"\f11b6"}.mdi-augmented-reality:before{content:"\f0850"}.mdi-aurora:before{content:"\f1bb9"}.mdi-auto-download:before{content:"\f137e"}.mdi-auto-fix:before{content:"\f0068"}.mdi-auto-mode:before{content:"\f1c20"}.mdi-auto-upload:before{content:"\f0069"}.mdi-autorenew:before{content:"\f006a"}.mdi-autorenew-off:before{content:"\f19e7"}.mdi-av-timer:before{content:"\f006b"}.mdi-awning:before{content:"\f1b87"}.mdi-awning-outline:before{content:"\f1b88"}.mdi-aws:before{content:"\f0e0f"}.mdi-axe:before{content:"\f08c8"}.mdi-axe-battle:before{content:"\f1842"}.mdi-axis:before{content:"\f0d48"}.mdi-axis-arrow:before{content:"\f0d49"}.mdi-axis-arrow-info:before{content:"\f140e"}.mdi-axis-arrow-lock:before{content:"\f0d4a"}.mdi-axis-lock:before{content:"\f0d4b"}.mdi-axis-x-arrow:before{content:"\f0d4c"}.mdi-axis-x-arrow-lock:before{content:"\f0d4d"}.mdi-axis-x-rotate-clockwise:before{content:"\f0d4e"}.mdi-axis-x-rotate-counterclockwise:before{content:"\f0d4f"}.mdi-axis-x-y-arrow-lock:before{content:"\f0d50"}.mdi-axis-y-arrow:before{content:"\f0d51"}.mdi-axis-y-arrow-lock:before{content:"\f0d52"}.mdi-axis-y-rotate-clockwise:before{content:"\f0d53"}.mdi-axis-y-rotate-counterclockwise:before{content:"\f0d54"}.mdi-axis-z-arrow:before{content:"\f0d55"}.mdi-axis-z-arrow-lock:before{content:"\f0d56"}.mdi-axis-z-rotate-clockwise:before{content:"\f0d57"}.mdi-axis-z-rotate-counterclockwise:before{content:"\f0d58"}.mdi-babel:before{content:"\f0a25"}.mdi-baby:before{content:"\f006c"}.mdi-baby-bottle:before{content:"\f0f39"}.mdi-baby-bottle-outline:before{content:"\f0f3a"}.mdi-baby-buggy:before{content:"\f13e0"}.mdi-baby-buggy-off:before{content:"\f1af3"}.mdi-baby-carriage:before{content:"\f068f"}.mdi-baby-carriage-off:before{content:"\f0fa0"}.mdi-baby-face:before{content:"\f0e7c"}.mdi-baby-face-outline:before{content:"\f0e7d"}.mdi-backburger:before{content:"\f006d"}.mdi-backspace:before{content:"\f006e"}.mdi-backspace-outline:before{content:"\f0b5c"}.mdi-backspace-reverse:before{content:"\f0e7e"}.mdi-backspace-reverse-outline:before{content:"\f0e7f"}.mdi-backup-restore:before{content:"\f006f"}.mdi-bacteria:before{content:"\f0ed5"}.mdi-bacteria-outline:before{content:"\f0ed6"}.mdi-badge-account:before{content:"\f0da7"}.mdi-badge-account-alert:before{content:"\f0da8"}.mdi-badge-account-alert-outline:before{content:"\f0da9"}.mdi-badge-account-horizontal:before{content:"\f0e0d"}.mdi-badge-account-horizontal-outline:before{content:"\f0e0e"}.mdi-badge-account-outline:before{content:"\f0daa"}.mdi-badminton:before{content:"\f0851"}.mdi-bag-carry-on:before{content:"\f0f3b"}.mdi-bag-carry-on-check:before{content:"\f0d65"}.mdi-bag-carry-on-off:before{content:"\f0f3c"}.mdi-bag-checked:before{content:"\f0f3d"}.mdi-bag-personal:before{content:"\f0e10"}.mdi-bag-personal-off:before{content:"\f0e11"}.mdi-bag-personal-off-outline:before{content:"\f0e12"}.mdi-bag-personal-outline:before{content:"\f0e13"}.mdi-bag-personal-plus:before{content:"\f1ca4"}.mdi-bag-personal-plus-outline:before{content:"\f1ca5"}.mdi-bag-personal-tag:before{content:"\f1b0c"}.mdi-bag-personal-tag-outline:before{content:"\f1b0d"}.mdi-bag-suitcase:before{content:"\f158b"}.mdi-bag-suitcase-off:before{content:"\f158d"}.mdi-bag-suitcase-off-outline:before{content:"\f158e"}.mdi-bag-suitcase-outline:before{content:"\f158c"}.mdi-baguette:before{content:"\f0f3e"}.mdi-balcony:before{content:"\f1817"}.mdi-balloon:before{content:"\f0a26"}.mdi-ballot:before{content:"\f09c9"}.mdi-ballot-outline:before{content:"\f09ca"}.mdi-ballot-recount:before{content:"\f0c39"}.mdi-ballot-recount-outline:before{content:"\f0c3a"}.mdi-bandage:before{content:"\f0daf"}.mdi-bank:before{content:"\f0070"}.mdi-bank-check:before{content:"\f1655"}.mdi-bank-circle:before{content:"\f1c03"}.mdi-bank-circle-outline:before{content:"\f1c04"}.mdi-bank-minus:before{content:"\f0db0"}.mdi-bank-off:before{content:"\f1656"}.mdi-bank-off-outline:before{content:"\f1657"}.mdi-bank-outline:before{content:"\f0e80"}.mdi-bank-plus:before{content:"\f0db1"}.mdi-bank-remove:before{content:"\f0db2"}.mdi-bank-transfer:before{content:"\f0a27"}.mdi-bank-transfer-in:before{content:"\f0a28"}.mdi-bank-transfer-out:before{content:"\f0a29"}.mdi-barcode:before{content:"\f0071"}.mdi-barcode-off:before{content:"\f1236"}.mdi-barcode-scan:before{content:"\f0072"}.mdi-barley:before{content:"\f0073"}.mdi-barley-off:before{content:"\f0b5d"}.mdi-barn:before{content:"\f0b5e"}.mdi-barrel:before{content:"\f0074"}.mdi-barrel-outline:before{content:"\f1a28"}.mdi-baseball:before{content:"\f0852"}.mdi-baseball-bat:before{content:"\f0853"}.mdi-baseball-diamond:before{content:"\f15ec"}.mdi-baseball-diamond-outline:before{content:"\f15ed"}.mdi-baseball-outline:before{content:"\f1c5a"}.mdi-bash:before{content:"\f1183"}.mdi-basket:before{content:"\f0076"}.mdi-basket-check:before{content:"\f18e5"}.mdi-basket-check-outline:before{content:"\f18e6"}.mdi-basket-fill:before{content:"\f0077"}.mdi-basket-minus:before{content:"\f1523"}.mdi-basket-minus-outline:before{content:"\f1524"}.mdi-basket-off:before{content:"\f1525"}.mdi-basket-off-outline:before{content:"\f1526"}.mdi-basket-outline:before{content:"\f1181"}.mdi-basket-plus:before{content:"\f1527"}.mdi-basket-plus-outline:before{content:"\f1528"}.mdi-basket-remove:before{content:"\f1529"}.mdi-basket-remove-outline:before{content:"\f152a"}.mdi-basket-unfill:before{content:"\f0078"}.mdi-basketball:before{content:"\f0806"}.mdi-basketball-hoop:before{content:"\f0c3b"}.mdi-basketball-hoop-outline:before{content:"\f0c3c"}.mdi-bat:before{content:"\f0b5f"}.mdi-bathtub:before{content:"\f1818"}.mdi-bathtub-outline:before{content:"\f1819"}.mdi-battery:before{content:"\f0079"}.mdi-battery-10:before{content:"\f007a"}.mdi-battery-10-bluetooth:before{content:"\f093e"}.mdi-battery-20:before{content:"\f007b"}.mdi-battery-20-bluetooth:before{content:"\f093f"}.mdi-battery-30:before{content:"\f007c"}.mdi-battery-30-bluetooth:before{content:"\f0940"}.mdi-battery-40:before{content:"\f007d"}.mdi-battery-40-bluetooth:before{content:"\f0941"}.mdi-battery-50:before{content:"\f007e"}.mdi-battery-50-bluetooth:before{content:"\f0942"}.mdi-battery-60:before{content:"\f007f"}.mdi-battery-60-bluetooth:before{content:"\f0943"}.mdi-battery-70:before{content:"\f0080"}.mdi-battery-70-bluetooth:before{content:"\f0944"}.mdi-battery-80:before{content:"\f0081"}.mdi-battery-80-bluetooth:before{content:"\f0945"}.mdi-battery-90:before{content:"\f0082"}.mdi-battery-90-bluetooth:before{content:"\f0946"}.mdi-battery-alert:before{content:"\f0083"}.mdi-battery-alert-bluetooth:before{content:"\f0947"}.mdi-battery-alert-variant:before{content:"\f10cc"}.mdi-battery-alert-variant-outline:before{content:"\f10cd"}.mdi-battery-arrow-down:before{content:"\f17de"}.mdi-battery-arrow-down-outline:before{content:"\f17df"}.mdi-battery-arrow-up:before{content:"\f17e0"}.mdi-battery-arrow-up-outline:before{content:"\f17e1"}.mdi-battery-bluetooth:before{content:"\f0948"}.mdi-battery-bluetooth-variant:before{content:"\f0949"}.mdi-battery-charging:before{content:"\f0084"}.mdi-battery-charging-10:before{content:"\f089c"}.mdi-battery-charging-100:before{content:"\f0085"}.mdi-battery-charging-20:before{content:"\f0086"}.mdi-battery-charging-30:before{content:"\f0087"}.mdi-battery-charging-40:before{content:"\f0088"}.mdi-battery-charging-50:before{content:"\f089d"}.mdi-battery-charging-60:before{content:"\f0089"}.mdi-battery-charging-70:before{content:"\f089e"}.mdi-battery-charging-80:before{content:"\f008a"}.mdi-battery-charging-90:before{content:"\f008b"}.mdi-battery-charging-high:before{content:"\f12a6"}.mdi-battery-charging-low:before{content:"\f12a4"}.mdi-battery-charging-medium:before{content:"\f12a5"}.mdi-battery-charging-outline:before{content:"\f089f"}.mdi-battery-charging-wireless:before{content:"\f0807"}.mdi-battery-charging-wireless-10:before{content:"\f0808"}.mdi-battery-charging-wireless-20:before{content:"\f0809"}.mdi-battery-charging-wireless-30:before{content:"\f080a"}.mdi-battery-charging-wireless-40:before{content:"\f080b"}.mdi-battery-charging-wireless-50:before{content:"\f080c"}.mdi-battery-charging-wireless-60:before{content:"\f080d"}.mdi-battery-charging-wireless-70:before{content:"\f080e"}.mdi-battery-charging-wireless-80:before{content:"\f080f"}.mdi-battery-charging-wireless-90:before{content:"\f0810"}.mdi-battery-charging-wireless-alert:before{content:"\f0811"}.mdi-battery-charging-wireless-outline:before{content:"\f0812"}.mdi-battery-check:before{content:"\f17e2"}.mdi-battery-check-outline:before{content:"\f17e3"}.mdi-battery-clock:before{content:"\f19e5"}.mdi-battery-clock-outline:before{content:"\f19e6"}.mdi-battery-heart:before{content:"\f120f"}.mdi-battery-heart-outline:before{content:"\f1210"}.mdi-battery-heart-variant:before{content:"\f1211"}.mdi-battery-high:before{content:"\f12a3"}.mdi-battery-lock:before{content:"\f179c"}.mdi-battery-lock-open:before{content:"\f179d"}.mdi-battery-low:before{content:"\f12a1"}.mdi-battery-medium:before{content:"\f12a2"}.mdi-battery-minus:before{content:"\f17e4"}.mdi-battery-minus-outline:before{content:"\f17e5"}.mdi-battery-minus-variant:before{content:"\f008c"}.mdi-battery-negative:before{content:"\f008d"}.mdi-battery-off:before{content:"\f125d"}.mdi-battery-off-outline:before{content:"\f125e"}.mdi-battery-outline:before{content:"\f008e"}.mdi-battery-plus:before{content:"\f17e6"}.mdi-battery-plus-outline:before{content:"\f17e7"}.mdi-battery-plus-variant:before{content:"\f008f"}.mdi-battery-positive:before{content:"\f0090"}.mdi-battery-remove:before{content:"\f17e8"}.mdi-battery-remove-outline:before{content:"\f17e9"}.mdi-battery-sync:before{content:"\f1834"}.mdi-battery-sync-outline:before{content:"\f1835"}.mdi-battery-unknown:before{content:"\f0091"}.mdi-battery-unknown-bluetooth:before{content:"\f094a"}.mdi-beach:before{content:"\f0092"}.mdi-beaker:before{content:"\f0cea"}.mdi-beaker-alert:before{content:"\f1229"}.mdi-beaker-alert-outline:before{content:"\f122a"}.mdi-beaker-check:before{content:"\f122b"}.mdi-beaker-check-outline:before{content:"\f122c"}.mdi-beaker-minus:before{content:"\f122d"}.mdi-beaker-minus-outline:before{content:"\f122e"}.mdi-beaker-outline:before{content:"\f0690"}.mdi-beaker-plus:before{content:"\f122f"}.mdi-beaker-plus-outline:before{content:"\f1230"}.mdi-beaker-question:before{content:"\f1231"}.mdi-beaker-question-outline:before{content:"\f1232"}.mdi-beaker-remove:before{content:"\f1233"}.mdi-beaker-remove-outline:before{content:"\f1234"}.mdi-bed:before{content:"\f02e3"}.mdi-bed-clock:before{content:"\f1b94"}.mdi-bed-double:before{content:"\f0fd4"}.mdi-bed-double-outline:before{content:"\f0fd3"}.mdi-bed-empty:before{content:"\f08a0"}.mdi-bed-king:before{content:"\f0fd2"}.mdi-bed-king-outline:before{content:"\f0fd1"}.mdi-bed-outline:before{content:"\f0099"}.mdi-bed-queen:before{content:"\f0fd0"}.mdi-bed-queen-outline:before{content:"\f0fdb"}.mdi-bed-single:before{content:"\f106d"}.mdi-bed-single-outline:before{content:"\f106e"}.mdi-bee:before{content:"\f0fa1"}.mdi-bee-flower:before{content:"\f0fa2"}.mdi-beehive-off-outline:before{content:"\f13ed"}.mdi-beehive-outline:before{content:"\f10ce"}.mdi-beekeeper:before{content:"\f14e2"}.mdi-beer:before{content:"\f0098"}.mdi-beer-outline:before{content:"\f130c"}.mdi-bell:before{content:"\f009a"}.mdi-bell-alert:before{content:"\f0d59"}.mdi-bell-alert-outline:before{content:"\f0e81"}.mdi-bell-badge:before{content:"\f116b"}.mdi-bell-badge-outline:before{content:"\f0178"}.mdi-bell-cancel:before{content:"\f13e7"}.mdi-bell-cancel-outline:before{content:"\f13e8"}.mdi-bell-check:before{content:"\f11e5"}.mdi-bell-check-outline:before{content:"\f11e6"}.mdi-bell-circle:before{content:"\f0d5a"}.mdi-bell-circle-outline:before{content:"\f0d5b"}.mdi-bell-cog:before{content:"\f1a29"}.mdi-bell-cog-outline:before{content:"\f1a2a"}.mdi-bell-minus:before{content:"\f13e9"}.mdi-bell-minus-outline:before{content:"\f13ea"}.mdi-bell-off:before{content:"\f009b"}.mdi-bell-off-outline:before{content:"\f0a91"}.mdi-bell-outline:before{content:"\f009c"}.mdi-bell-plus:before{content:"\f009d"}.mdi-bell-plus-outline:before{content:"\f0a92"}.mdi-bell-remove:before{content:"\f13eb"}.mdi-bell-remove-outline:before{content:"\f13ec"}.mdi-bell-ring:before{content:"\f009e"}.mdi-bell-ring-outline:before{content:"\f009f"}.mdi-bell-sleep:before{content:"\f00a0"}.mdi-bell-sleep-outline:before{content:"\f0a93"}.mdi-bench:before{content:"\f1c21"}.mdi-bench-back:before{content:"\f1c22"}.mdi-beta:before{content:"\f00a1"}.mdi-betamax:before{content:"\f09cb"}.mdi-biathlon:before{content:"\f0e14"}.mdi-bicycle:before{content:"\f109c"}.mdi-bicycle-basket:before{content:"\f1235"}.mdi-bicycle-cargo:before{content:"\f189c"}.mdi-bicycle-electric:before{content:"\f15b4"}.mdi-bicycle-penny-farthing:before{content:"\f15e9"}.mdi-bike:before{content:"\f00a3"}.mdi-bike-fast:before{content:"\f111f"}.mdi-bike-pedal:before{content:"\f1c23"}.mdi-bike-pedal-clipless:before{content:"\f1c24"}.mdi-bike-pedal-mountain:before{content:"\f1c25"}.mdi-billboard:before{content:"\f1010"}.mdi-billiards:before{content:"\f0b61"}.mdi-billiards-rack:before{content:"\f0b62"}.mdi-binoculars:before{content:"\f00a5"}.mdi-bio:before{content:"\f00a6"}.mdi-biohazard:before{content:"\f00a7"}.mdi-bird:before{content:"\f15c6"}.mdi-bitbucket:before{content:"\f00a8"}.mdi-bitcoin:before{content:"\f0813"}.mdi-black-mesa:before{content:"\f00a9"}.mdi-blender:before{content:"\f0ceb"}.mdi-blender-outline:before{content:"\f181a"}.mdi-blender-software:before{content:"\f00ab"}.mdi-blinds:before{content:"\f00ac"}.mdi-blinds-horizontal:before{content:"\f1a2b"}.mdi-blinds-horizontal-closed:before{content:"\f1a2c"}.mdi-blinds-open:before{content:"\f1011"}.mdi-blinds-vertical:before{content:"\f1a2d"}.mdi-blinds-vertical-closed:before{content:"\f1a2e"}.mdi-block-helper:before{content:"\f00ad"}.mdi-blood-bag:before{content:"\f0cec"}.mdi-bluetooth:before{content:"\f00af"}.mdi-bluetooth-audio:before{content:"\f00b0"}.mdi-bluetooth-connect:before{content:"\f00b1"}.mdi-bluetooth-off:before{content:"\f00b2"}.mdi-bluetooth-settings:before{content:"\f00b3"}.mdi-bluetooth-transfer:before{content:"\f00b4"}.mdi-blur:before{content:"\f00b5"}.mdi-blur-linear:before{content:"\f00b6"}.mdi-blur-off:before{content:"\f00b7"}.mdi-blur-radial:before{content:"\f00b8"}.mdi-bolt:before{content:"\f0db3"}.mdi-bomb:before{content:"\f0691"}.mdi-bomb-off:before{content:"\f06c5"}.mdi-bone:before{content:"\f00b9"}.mdi-bone-off:before{content:"\f19e0"}.mdi-book:before{content:"\f00ba"}.mdi-book-account:before{content:"\f13ad"}.mdi-book-account-outline:before{content:"\f13ae"}.mdi-book-alert:before{content:"\f167c"}.mdi-book-alert-outline:before{content:"\f167d"}.mdi-book-alphabet:before{content:"\f061d"}.mdi-book-arrow-down:before{content:"\f167e"}.mdi-book-arrow-down-outline:before{content:"\f167f"}.mdi-book-arrow-left:before{content:"\f1680"}.mdi-book-arrow-left-outline:before{content:"\f1681"}.mdi-book-arrow-right:before{content:"\f1682"}.mdi-book-arrow-right-outline:before{content:"\f1683"}.mdi-book-arrow-up:before{content:"\f1684"}.mdi-book-arrow-up-outline:before{content:"\f1685"}.mdi-book-cancel:before{content:"\f1686"}.mdi-book-cancel-outline:before{content:"\f1687"}.mdi-book-check:before{content:"\f14f3"}.mdi-book-check-outline:before{content:"\f14f4"}.mdi-book-clock:before{content:"\f1688"}.mdi-book-clock-outline:before{content:"\f1689"}.mdi-book-cog:before{content:"\f168a"}.mdi-book-cog-outline:before{content:"\f168b"}.mdi-book-cross:before{content:"\f00a2"}.mdi-book-edit:before{content:"\f168c"}.mdi-book-edit-outline:before{content:"\f168d"}.mdi-book-education:before{content:"\f16c9"}.mdi-book-education-outline:before{content:"\f16ca"}.mdi-book-heart:before{content:"\f1a1d"}.mdi-book-heart-outline:before{content:"\f1a1e"}.mdi-book-information-variant:before{content:"\f106f"}.mdi-book-lock:before{content:"\f079a"}.mdi-book-lock-open:before{content:"\f079b"}.mdi-book-lock-open-outline:before{content:"\f168e"}.mdi-book-lock-outline:before{content:"\f168f"}.mdi-book-marker:before{content:"\f1690"}.mdi-book-marker-outline:before{content:"\f1691"}.mdi-book-minus:before{content:"\f05d9"}.mdi-book-minus-multiple:before{content:"\f0a94"}.mdi-book-minus-multiple-outline:before{content:"\f090b"}.mdi-book-minus-outline:before{content:"\f1692"}.mdi-book-multiple:before{content:"\f00bb"}.mdi-book-multiple-outline:before{content:"\f0436"}.mdi-book-music:before{content:"\f0067"}.mdi-book-music-outline:before{content:"\f1693"}.mdi-book-off:before{content:"\f1694"}.mdi-book-off-outline:before{content:"\f1695"}.mdi-book-open:before{content:"\f00bd"}.mdi-book-open-blank-variant:before{content:"\f00be"}.mdi-book-open-blank-variant-outline:before{content:"\f1ccb"}.mdi-book-open-outline:before{content:"\f0b63"}.mdi-book-open-page-variant:before{content:"\f05da"}.mdi-book-open-page-variant-outline:before{content:"\f15d6"}.mdi-book-open-variant:before{content:"\f14f7"}.mdi-book-open-variant-outline:before{content:"\f1ccc"}.mdi-book-outline:before{content:"\f0b64"}.mdi-book-play:before{content:"\f0e82"}.mdi-book-play-outline:before{content:"\f0e83"}.mdi-book-plus:before{content:"\f05db"}.mdi-book-plus-multiple:before{content:"\f0a95"}.mdi-book-plus-multiple-outline:before{content:"\f0ade"}.mdi-book-plus-outline:before{content:"\f1696"}.mdi-book-refresh:before{content:"\f1697"}.mdi-book-refresh-outline:before{content:"\f1698"}.mdi-book-remove:before{content:"\f0a97"}.mdi-book-remove-multiple:before{content:"\f0a96"}.mdi-book-remove-multiple-outline:before{content:"\f04ca"}.mdi-book-remove-outline:before{content:"\f1699"}.mdi-book-search:before{content:"\f0e84"}.mdi-book-search-outline:before{content:"\f0e85"}.mdi-book-settings:before{content:"\f169a"}.mdi-book-settings-outline:before{content:"\f169b"}.mdi-book-sync:before{content:"\f169c"}.mdi-book-sync-outline:before{content:"\f16c8"}.mdi-book-variant:before{content:"\f00bf"}.mdi-bookmark:before{content:"\f00c0"}.mdi-bookmark-box:before{content:"\f1b75"}.mdi-bookmark-box-multiple:before{content:"\f196c"}.mdi-bookmark-box-multiple-outline:before{content:"\f196d"}.mdi-bookmark-box-outline:before{content:"\f1b76"}.mdi-bookmark-check:before{content:"\f00c1"}.mdi-bookmark-check-outline:before{content:"\f137b"}.mdi-bookmark-minus:before{content:"\f09cc"}.mdi-bookmark-minus-outline:before{content:"\f09cd"}.mdi-bookmark-multiple:before{content:"\f0e15"}.mdi-bookmark-multiple-outline:before{content:"\f0e16"}.mdi-bookmark-music:before{content:"\f00c2"}.mdi-bookmark-music-outline:before{content:"\f1379"}.mdi-bookmark-off:before{content:"\f09ce"}.mdi-bookmark-off-outline:before{content:"\f09cf"}.mdi-bookmark-outline:before{content:"\f00c3"}.mdi-bookmark-plus:before{content:"\f00c5"}.mdi-bookmark-plus-outline:before{content:"\f00c4"}.mdi-bookmark-remove:before{content:"\f00c6"}.mdi-bookmark-remove-outline:before{content:"\f137a"}.mdi-bookshelf:before{content:"\f125f"}.mdi-boom-gate:before{content:"\f0e86"}.mdi-boom-gate-alert:before{content:"\f0e87"}.mdi-boom-gate-alert-outline:before{content:"\f0e88"}.mdi-boom-gate-arrow-down:before{content:"\f0e89"}.mdi-boom-gate-arrow-down-outline:before{content:"\f0e8a"}.mdi-boom-gate-arrow-up:before{content:"\f0e8c"}.mdi-boom-gate-arrow-up-outline:before{content:"\f0e8d"}.mdi-boom-gate-outline:before{content:"\f0e8b"}.mdi-boom-gate-up:before{content:"\f17f9"}.mdi-boom-gate-up-outline:before{content:"\f17fa"}.mdi-boombox:before{content:"\f05dc"}.mdi-boomerang:before{content:"\f10cf"}.mdi-bootstrap:before{content:"\f06c6"}.mdi-border-all:before{content:"\f00c7"}.mdi-border-all-variant:before{content:"\f08a1"}.mdi-border-bottom:before{content:"\f00c8"}.mdi-border-bottom-variant:before{content:"\f08a2"}.mdi-border-color:before{content:"\f00c9"}.mdi-border-horizontal:before{content:"\f00ca"}.mdi-border-inside:before{content:"\f00cb"}.mdi-border-left:before{content:"\f00cc"}.mdi-border-left-variant:before{content:"\f08a3"}.mdi-border-none:before{content:"\f00cd"}.mdi-border-none-variant:before{content:"\f08a4"}.mdi-border-outside:before{content:"\f00ce"}.mdi-border-radius:before{content:"\f1af4"}.mdi-border-right:before{content:"\f00cf"}.mdi-border-right-variant:before{content:"\f08a5"}.mdi-border-style:before{content:"\f00d0"}.mdi-border-top:before{content:"\f00d1"}.mdi-border-top-variant:before{content:"\f08a6"}.mdi-border-vertical:before{content:"\f00d2"}.mdi-bottle-soda:before{content:"\f1070"}.mdi-bottle-soda-classic:before{content:"\f1071"}.mdi-bottle-soda-classic-outline:before{content:"\f1363"}.mdi-bottle-soda-outline:before{content:"\f1072"}.mdi-bottle-tonic:before{content:"\f112e"}.mdi-bottle-tonic-outline:before{content:"\f112f"}.mdi-bottle-tonic-plus:before{content:"\f1130"}.mdi-bottle-tonic-plus-outline:before{content:"\f1131"}.mdi-bottle-tonic-skull:before{content:"\f1132"}.mdi-bottle-tonic-skull-outline:before{content:"\f1133"}.mdi-bottle-wine:before{content:"\f0854"}.mdi-bottle-wine-outline:before{content:"\f1310"}.mdi-bow-arrow:before{content:"\f1841"}.mdi-bow-tie:before{content:"\f0678"}.mdi-bowl:before{content:"\f028e"}.mdi-bowl-mix:before{content:"\f0617"}.mdi-bowl-mix-outline:before{content:"\f02e4"}.mdi-bowl-outline:before{content:"\f02a9"}.mdi-bowling:before{content:"\f00d3"}.mdi-box:before{content:"\f00d4"}.mdi-box-cutter:before{content:"\f00d5"}.mdi-box-cutter-off:before{content:"\f0b4a"}.mdi-box-shadow:before{content:"\f0637"}.mdi-boxing-glove:before{content:"\f0b65"}.mdi-braille:before{content:"\f09d0"}.mdi-brain:before{content:"\f09d1"}.mdi-bread-slice:before{content:"\f0cee"}.mdi-bread-slice-outline:before{content:"\f0cef"}.mdi-bridge:before{content:"\f0618"}.mdi-briefcase:before{content:"\f00d6"}.mdi-briefcase-account:before{content:"\f0cf0"}.mdi-briefcase-account-outline:before{content:"\f0cf1"}.mdi-briefcase-arrow-left-right:before{content:"\f1a8d"}.mdi-briefcase-arrow-left-right-outline:before{content:"\f1a8e"}.mdi-briefcase-arrow-up-down:before{content:"\f1a8f"}.mdi-briefcase-arrow-up-down-outline:before{content:"\f1a90"}.mdi-briefcase-check:before{content:"\f00d7"}.mdi-briefcase-check-outline:before{content:"\f131e"}.mdi-briefcase-clock:before{content:"\f10d0"}.mdi-briefcase-clock-outline:before{content:"\f10d1"}.mdi-briefcase-download:before{content:"\f00d8"}.mdi-briefcase-download-outline:before{content:"\f0c3d"}.mdi-briefcase-edit:before{content:"\f0a98"}.mdi-briefcase-edit-outline:before{content:"\f0c3e"}.mdi-briefcase-eye:before{content:"\f17d9"}.mdi-briefcase-eye-outline:before{content:"\f17da"}.mdi-briefcase-minus:before{content:"\f0a2a"}.mdi-briefcase-minus-outline:before{content:"\f0c3f"}.mdi-briefcase-off:before{content:"\f1658"}.mdi-briefcase-off-outline:before{content:"\f1659"}.mdi-briefcase-outline:before{content:"\f0814"}.mdi-briefcase-plus:before{content:"\f0a2b"}.mdi-briefcase-plus-outline:before{content:"\f0c40"}.mdi-briefcase-remove:before{content:"\f0a2c"}.mdi-briefcase-remove-outline:before{content:"\f0c41"}.mdi-briefcase-search:before{content:"\f0a2d"}.mdi-briefcase-search-outline:before{content:"\f0c42"}.mdi-briefcase-upload:before{content:"\f00d9"}.mdi-briefcase-upload-outline:before{content:"\f0c43"}.mdi-briefcase-variant:before{content:"\f1494"}.mdi-briefcase-variant-off:before{content:"\f165a"}.mdi-briefcase-variant-off-outline:before{content:"\f165b"}.mdi-briefcase-variant-outline:before{content:"\f1495"}.mdi-brightness-1:before{content:"\f00da"}.mdi-brightness-2:before{content:"\f00db"}.mdi-brightness-3:before{content:"\f00dc"}.mdi-brightness-4:before{content:"\f00dd"}.mdi-brightness-5:before{content:"\f00de"}.mdi-brightness-6:before{content:"\f00df"}.mdi-brightness-7:before{content:"\f00e0"}.mdi-brightness-auto:before{content:"\f00e1"}.mdi-brightness-percent:before{content:"\f0cf2"}.mdi-broadcast:before{content:"\f1720"}.mdi-broadcast-off:before{content:"\f1721"}.mdi-broom:before{content:"\f00e2"}.mdi-brush:before{content:"\f00e3"}.mdi-brush-off:before{content:"\f1771"}.mdi-brush-outline:before{content:"\f1a0d"}.mdi-brush-variant:before{content:"\f1813"}.mdi-bucket:before{content:"\f1415"}.mdi-bucket-outline:before{content:"\f1416"}.mdi-buffet:before{content:"\f0578"}.mdi-bug:before{content:"\f00e4"}.mdi-bug-check:before{content:"\f0a2e"}.mdi-bug-check-outline:before{content:"\f0a2f"}.mdi-bug-outline:before{content:"\f0a30"}.mdi-bug-pause:before{content:"\f1af5"}.mdi-bug-pause-outline:before{content:"\f1af6"}.mdi-bug-play:before{content:"\f1af7"}.mdi-bug-play-outline:before{content:"\f1af8"}.mdi-bug-stop:before{content:"\f1af9"}.mdi-bug-stop-outline:before{content:"\f1afa"}.mdi-bugle:before{content:"\f0db4"}.mdi-bulkhead-light:before{content:"\f1a2f"}.mdi-bulldozer:before{content:"\f0b22"}.mdi-bullet:before{content:"\f0cf3"}.mdi-bulletin-board:before{content:"\f00e5"}.mdi-bullhorn:before{content:"\f00e6"}.mdi-bullhorn-outline:before{content:"\f0b23"}.mdi-bullhorn-variant:before{content:"\f196e"}.mdi-bullhorn-variant-outline:before{content:"\f196f"}.mdi-bullseye:before{content:"\f05dd"}.mdi-bullseye-arrow:before{content:"\f08c9"}.mdi-bulma:before{content:"\f12e7"}.mdi-bunk-bed:before{content:"\f1302"}.mdi-bunk-bed-outline:before{content:"\f0097"}.mdi-bus:before{content:"\f00e7"}.mdi-bus-alert:before{content:"\f0a99"}.mdi-bus-articulated-end:before{content:"\f079c"}.mdi-bus-articulated-front:before{content:"\f079d"}.mdi-bus-clock:before{content:"\f08ca"}.mdi-bus-double-decker:before{content:"\f079e"}.mdi-bus-electric:before{content:"\f191d"}.mdi-bus-marker:before{content:"\f1212"}.mdi-bus-multiple:before{content:"\f0f3f"}.mdi-bus-school:before{content:"\f079f"}.mdi-bus-side:before{content:"\f07a0"}.mdi-bus-sign:before{content:"\f1cc1"}.mdi-bus-stop:before{content:"\f1012"}.mdi-bus-stop-covered:before{content:"\f1013"}.mdi-bus-stop-uncovered:before{content:"\f1014"}.mdi-bus-wrench:before{content:"\f1cc2"}.mdi-butterfly:before{content:"\f1589"}.mdi-butterfly-outline:before{content:"\f158a"}.mdi-button-cursor:before{content:"\f1b4f"}.mdi-button-pointer:before{content:"\f1b50"}.mdi-cabin-a-frame:before{content:"\f188c"}.mdi-cable-data:before{content:"\f1394"}.mdi-cached:before{content:"\f00e8"}.mdi-cactus:before{content:"\f0db5"}.mdi-cake:before{content:"\f00e9"}.mdi-cake-layered:before{content:"\f00ea"}.mdi-cake-variant:before{content:"\f00eb"}.mdi-cake-variant-outline:before{content:"\f17f0"}.mdi-calculator:before{content:"\f00ec"}.mdi-calculator-variant:before{content:"\f0a9a"}.mdi-calculator-variant-outline:before{content:"\f15a6"}.mdi-calendar:before{content:"\f00ed"}.mdi-calendar-account:before{content:"\f0ed7"}.mdi-calendar-account-outline:before{content:"\f0ed8"}.mdi-calendar-alert:before{content:"\f0a31"}.mdi-calendar-alert-outline:before{content:"\f1b62"}.mdi-calendar-arrow-left:before{content:"\f1134"}.mdi-calendar-arrow-right:before{content:"\f1135"}.mdi-calendar-badge:before{content:"\f1b9d"}.mdi-calendar-badge-outline:before{content:"\f1b9e"}.mdi-calendar-blank:before{content:"\f00ee"}.mdi-calendar-blank-multiple:before{content:"\f1073"}.mdi-calendar-blank-outline:before{content:"\f0b66"}.mdi-calendar-check:before{content:"\f00ef"}.mdi-calendar-check-outline:before{content:"\f0c44"}.mdi-calendar-clock:before{content:"\f00f0"}.mdi-calendar-clock-outline:before{content:"\f16e1"}.mdi-calendar-collapse-horizontal:before{content:"\f189d"}.mdi-calendar-collapse-horizontal-outline:before{content:"\f1b63"}.mdi-calendar-cursor:before{content:"\f157b"}.mdi-calendar-cursor-outline:before{content:"\f1b64"}.mdi-calendar-edit:before{content:"\f08a7"}.mdi-calendar-edit-outline:before{content:"\f1b65"}.mdi-calendar-end:before{content:"\f166c"}.mdi-calendar-end-outline:before{content:"\f1b66"}.mdi-calendar-expand-horizontal:before{content:"\f189e"}.mdi-calendar-expand-horizontal-outline:before{content:"\f1b67"}.mdi-calendar-export:before{content:"\f0b24"}.mdi-calendar-export-outline:before{content:"\f1b68"}.mdi-calendar-filter:before{content:"\f1a32"}.mdi-calendar-filter-outline:before{content:"\f1a33"}.mdi-calendar-heart:before{content:"\f09d2"}.mdi-calendar-heart-outline:before{content:"\f1b69"}.mdi-calendar-import:before{content:"\f0b25"}.mdi-calendar-import-outline:before{content:"\f1b6a"}.mdi-calendar-lock:before{content:"\f1641"}.mdi-calendar-lock-open:before{content:"\f1b5b"}.mdi-calendar-lock-open-outline:before{content:"\f1b5c"}.mdi-calendar-lock-outline:before{content:"\f1642"}.mdi-calendar-minus:before{content:"\f0d5c"}.mdi-calendar-minus-outline:before{content:"\f1b6b"}.mdi-calendar-month:before{content:"\f0e17"}.mdi-calendar-month-outline:before{content:"\f0e18"}.mdi-calendar-multiple:before{content:"\f00f1"}.mdi-calendar-multiple-check:before{content:"\f00f2"}.mdi-calendar-multiselect:before{content:"\f0a32"}.mdi-calendar-multiselect-outline:before{content:"\f1b55"}.mdi-calendar-outline:before{content:"\f0b67"}.mdi-calendar-plus:before{content:"\f00f3"}.mdi-calendar-plus-outline:before{content:"\f1b6c"}.mdi-calendar-question:before{content:"\f0692"}.mdi-calendar-question-outline:before{content:"\f1b6d"}.mdi-calendar-range:before{content:"\f0679"}.mdi-calendar-range-outline:before{content:"\f0b68"}.mdi-calendar-refresh:before{content:"\f01e1"}.mdi-calendar-refresh-outline:before{content:"\f0203"}.mdi-calendar-remove:before{content:"\f00f4"}.mdi-calendar-remove-outline:before{content:"\f0c45"}.mdi-calendar-search:before{content:"\f094c"}.mdi-calendar-search-outline:before{content:"\f1b6e"}.mdi-calendar-star:before{content:"\f09d3"}.mdi-calendar-star-four-points:before{content:"\f1c1f"}.mdi-calendar-star-outline:before{content:"\f1b53"}.mdi-calendar-start:before{content:"\f166d"}.mdi-calendar-start-outline:before{content:"\f1b6f"}.mdi-calendar-sync:before{content:"\f0e8e"}.mdi-calendar-sync-outline:before{content:"\f0e8f"}.mdi-calendar-text:before{content:"\f00f5"}.mdi-calendar-text-outline:before{content:"\f0c46"}.mdi-calendar-today:before{content:"\f00f6"}.mdi-calendar-today-outline:before{content:"\f1a30"}.mdi-calendar-week:before{content:"\f0a33"}.mdi-calendar-week-begin:before{content:"\f0a34"}.mdi-calendar-week-begin-outline:before{content:"\f1a31"}.mdi-calendar-week-outline:before{content:"\f1a34"}.mdi-calendar-weekend:before{content:"\f0ed9"}.mdi-calendar-weekend-outline:before{content:"\f0eda"}.mdi-call-made:before{content:"\f00f7"}.mdi-call-merge:before{content:"\f00f8"}.mdi-call-missed:before{content:"\f00f9"}.mdi-call-received:before{content:"\f00fa"}.mdi-call-split:before{content:"\f00fb"}.mdi-camcorder:before{content:"\f00fc"}.mdi-camcorder-off:before{content:"\f00ff"}.mdi-camera:before{content:"\f0100"}.mdi-camera-account:before{content:"\f08cb"}.mdi-camera-burst:before{content:"\f0693"}.mdi-camera-control:before{content:"\f0b69"}.mdi-camera-document:before{content:"\f1871"}.mdi-camera-document-off:before{content:"\f1872"}.mdi-camera-enhance:before{content:"\f0101"}.mdi-camera-enhance-outline:before{content:"\f0b6a"}.mdi-camera-flip:before{content:"\f15d9"}.mdi-camera-flip-outline:before{content:"\f15da"}.mdi-camera-front:before{content:"\f0102"}.mdi-camera-front-variant:before{content:"\f0103"}.mdi-camera-gopro:before{content:"\f07a1"}.mdi-camera-image:before{content:"\f08cc"}.mdi-camera-iris:before{content:"\f0104"}.mdi-camera-lock:before{content:"\f1a14"}.mdi-camera-lock-open:before{content:"\f1c0d"}.mdi-camera-lock-open-outline:before{content:"\f1c0e"}.mdi-camera-lock-outline:before{content:"\f1a15"}.mdi-camera-marker:before{content:"\f19a7"}.mdi-camera-marker-outline:before{content:"\f19a8"}.mdi-camera-metering-center:before{content:"\f07a2"}.mdi-camera-metering-matrix:before{content:"\f07a3"}.mdi-camera-metering-partial:before{content:"\f07a4"}.mdi-camera-metering-spot:before{content:"\f07a5"}.mdi-camera-off:before{content:"\f05df"}.mdi-camera-off-outline:before{content:"\f19bf"}.mdi-camera-outline:before{content:"\f0d5d"}.mdi-camera-party-mode:before{content:"\f0105"}.mdi-camera-plus:before{content:"\f0edb"}.mdi-camera-plus-outline:before{content:"\f0edc"}.mdi-camera-rear:before{content:"\f0106"}.mdi-camera-rear-variant:before{content:"\f0107"}.mdi-camera-retake:before{content:"\f0e19"}.mdi-camera-retake-outline:before{content:"\f0e1a"}.mdi-camera-switch:before{content:"\f0108"}.mdi-camera-switch-outline:before{content:"\f084a"}.mdi-camera-timer:before{content:"\f0109"}.mdi-camera-wireless:before{content:"\f0db6"}.mdi-camera-wireless-outline:before{content:"\f0db7"}.mdi-campfire:before{content:"\f0edd"}.mdi-cancel:before{content:"\f073a"}.mdi-candelabra:before{content:"\f17d2"}.mdi-candelabra-fire:before{content:"\f17d3"}.mdi-candle:before{content:"\f05e2"}.mdi-candy:before{content:"\f1970"}.mdi-candy-off:before{content:"\f1971"}.mdi-candy-off-outline:before{content:"\f1972"}.mdi-candy-outline:before{content:"\f1973"}.mdi-candycane:before{content:"\f010a"}.mdi-cannabis:before{content:"\f07a6"}.mdi-cannabis-off:before{content:"\f166e"}.mdi-caps-lock:before{content:"\f0a9b"}.mdi-car:before{content:"\f010b"}.mdi-car-2-plus:before{content:"\f1015"}.mdi-car-3-plus:before{content:"\f1016"}.mdi-car-arrow-left:before{content:"\f13b2"}.mdi-car-arrow-right:before{content:"\f13b3"}.mdi-car-back:before{content:"\f0e1b"}.mdi-car-battery:before{content:"\f010c"}.mdi-car-brake-abs:before{content:"\f0c47"}.mdi-car-brake-alert:before{content:"\f0c48"}.mdi-car-brake-fluid-level:before{content:"\f1909"}.mdi-car-brake-hold:before{content:"\f0d5e"}.mdi-car-brake-low-pressure:before{content:"\f190a"}.mdi-car-brake-parking:before{content:"\f0d5f"}.mdi-car-brake-retarder:before{content:"\f1017"}.mdi-car-brake-temperature:before{content:"\f190b"}.mdi-car-brake-worn-linings:before{content:"\f190c"}.mdi-car-child-seat:before{content:"\f0fa3"}.mdi-car-clock:before{content:"\f1974"}.mdi-car-clutch:before{content:"\f1018"}.mdi-car-cog:before{content:"\f13cc"}.mdi-car-connected:before{content:"\f010d"}.mdi-car-convertible:before{content:"\f07a7"}.mdi-car-coolant-level:before{content:"\f1019"}.mdi-car-cruise-control:before{content:"\f0d60"}.mdi-car-defrost-front:before{content:"\f0d61"}.mdi-car-defrost-rear:before{content:"\f0d62"}.mdi-car-door:before{content:"\f0b6b"}.mdi-car-door-lock:before{content:"\f109d"}.mdi-car-door-lock-open:before{content:"\f1c81"}.mdi-car-electric:before{content:"\f0b6c"}.mdi-car-electric-outline:before{content:"\f15b5"}.mdi-car-emergency:before{content:"\f160f"}.mdi-car-esp:before{content:"\f0c49"}.mdi-car-estate:before{content:"\f07a8"}.mdi-car-hatchback:before{content:"\f07a9"}.mdi-car-info:before{content:"\f11be"}.mdi-car-key:before{content:"\f0b6d"}.mdi-car-lifted-pickup:before{content:"\f152d"}.mdi-car-light-alert:before{content:"\f190d"}.mdi-car-light-dimmed:before{content:"\f0c4a"}.mdi-car-light-fog:before{content:"\f0c4b"}.mdi-car-light-high:before{content:"\f0c4c"}.mdi-car-limousine:before{content:"\f08cd"}.mdi-car-multiple:before{content:"\f0b6e"}.mdi-car-off:before{content:"\f0e1c"}.mdi-car-outline:before{content:"\f14ed"}.mdi-car-parking-lights:before{content:"\f0d63"}.mdi-car-pickup:before{content:"\f07aa"}.mdi-car-search:before{content:"\f1b8d"}.mdi-car-search-outline:before{content:"\f1b8e"}.mdi-car-seat:before{content:"\f0fa4"}.mdi-car-seat-cooler:before{content:"\f0fa5"}.mdi-car-seat-heater:before{content:"\f0fa6"}.mdi-car-select:before{content:"\f1879"}.mdi-car-settings:before{content:"\f13cd"}.mdi-car-shift-pattern:before{content:"\f0f40"}.mdi-car-side:before{content:"\f07ab"}.mdi-car-speed-limiter:before{content:"\f190e"}.mdi-car-sports:before{content:"\f07ac"}.mdi-car-tire-alert:before{content:"\f0c4d"}.mdi-car-traction-control:before{content:"\f0d64"}.mdi-car-turbocharger:before{content:"\f101a"}.mdi-car-wash:before{content:"\f010e"}.mdi-car-windshield:before{content:"\f101b"}.mdi-car-windshield-outline:before{content:"\f101c"}.mdi-car-wireless:before{content:"\f1878"}.mdi-car-wrench:before{content:"\f1814"}.mdi-carabiner:before{content:"\f14c0"}.mdi-caravan:before{content:"\f07ad"}.mdi-card:before{content:"\f0b6f"}.mdi-card-account-details:before{content:"\f05d2"}.mdi-card-account-details-outline:before{content:"\f0dab"}.mdi-card-account-details-star:before{content:"\f02a3"}.mdi-card-account-details-star-outline:before{content:"\f06db"}.mdi-card-account-mail:before{content:"\f018e"}.mdi-card-account-mail-outline:before{content:"\f0e98"}.mdi-card-account-phone:before{content:"\f0e99"}.mdi-card-account-phone-outline:before{content:"\f0e9a"}.mdi-card-bulleted:before{content:"\f0b70"}.mdi-card-bulleted-off:before{content:"\f0b71"}.mdi-card-bulleted-off-outline:before{content:"\f0b72"}.mdi-card-bulleted-outline:before{content:"\f0b73"}.mdi-card-bulleted-settings:before{content:"\f0b74"}.mdi-card-bulleted-settings-outline:before{content:"\f0b75"}.mdi-card-minus:before{content:"\f1600"}.mdi-card-minus-outline:before{content:"\f1601"}.mdi-card-multiple:before{content:"\f17f1"}.mdi-card-multiple-outline:before{content:"\f17f2"}.mdi-card-off:before{content:"\f1602"}.mdi-card-off-outline:before{content:"\f1603"}.mdi-card-outline:before{content:"\f0b76"}.mdi-card-plus:before{content:"\f11ff"}.mdi-card-plus-outline:before{content:"\f1200"}.mdi-card-remove:before{content:"\f1604"}.mdi-card-remove-outline:before{content:"\f1605"}.mdi-card-search:before{content:"\f1074"}.mdi-card-search-outline:before{content:"\f1075"}.mdi-card-text:before{content:"\f0b77"}.mdi-card-text-outline:before{content:"\f0b78"}.mdi-cards:before{content:"\f0638"}.mdi-cards-club:before{content:"\f08ce"}.mdi-cards-club-outline:before{content:"\f189f"}.mdi-cards-diamond:before{content:"\f08cf"}.mdi-cards-diamond-outline:before{content:"\f101d"}.mdi-cards-heart:before{content:"\f08d0"}.mdi-cards-heart-outline:before{content:"\f18a0"}.mdi-cards-outline:before{content:"\f0639"}.mdi-cards-playing:before{content:"\f18a1"}.mdi-cards-playing-club:before{content:"\f18a2"}.mdi-cards-playing-club-multiple:before{content:"\f18a3"}.mdi-cards-playing-club-multiple-outline:before{content:"\f18a4"}.mdi-cards-playing-club-outline:before{content:"\f18a5"}.mdi-cards-playing-diamond:before{content:"\f18a6"}.mdi-cards-playing-diamond-multiple:before{content:"\f18a7"}.mdi-cards-playing-diamond-multiple-outline:before{content:"\f18a8"}.mdi-cards-playing-diamond-outline:before{content:"\f18a9"}.mdi-cards-playing-heart:before{content:"\f18aa"}.mdi-cards-playing-heart-multiple:before{content:"\f18ab"}.mdi-cards-playing-heart-multiple-outline:before{content:"\f18ac"}.mdi-cards-playing-heart-outline:before{content:"\f18ad"}.mdi-cards-playing-outline:before{content:"\f063a"}.mdi-cards-playing-spade:before{content:"\f18ae"}.mdi-cards-playing-spade-multiple:before{content:"\f18af"}.mdi-cards-playing-spade-multiple-outline:before{content:"\f18b0"}.mdi-cards-playing-spade-outline:before{content:"\f18b1"}.mdi-cards-spade:before{content:"\f08d1"}.mdi-cards-spade-outline:before{content:"\f18b2"}.mdi-cards-variant:before{content:"\f06c7"}.mdi-carrot:before{content:"\f010f"}.mdi-cart:before{content:"\f0110"}.mdi-cart-arrow-down:before{content:"\f0d66"}.mdi-cart-arrow-right:before{content:"\f0c4e"}.mdi-cart-arrow-up:before{content:"\f0d67"}.mdi-cart-check:before{content:"\f15ea"}.mdi-cart-heart:before{content:"\f18e0"}.mdi-cart-minus:before{content:"\f0d68"}.mdi-cart-off:before{content:"\f066b"}.mdi-cart-outline:before{content:"\f0111"}.mdi-cart-percent:before{content:"\f1bae"}.mdi-cart-plus:before{content:"\f0112"}.mdi-cart-remove:before{content:"\f0d69"}.mdi-cart-variant:before{content:"\f15eb"}.mdi-case-sensitive-alt:before{content:"\f0113"}.mdi-cash:before{content:"\f0114"}.mdi-cash-100:before{content:"\f0115"}.mdi-cash-check:before{content:"\f14ee"}.mdi-cash-clock:before{content:"\f1a91"}.mdi-cash-edit:before{content:"\f1cab"}.mdi-cash-fast:before{content:"\f185c"}.mdi-cash-lock:before{content:"\f14ea"}.mdi-cash-lock-open:before{content:"\f14eb"}.mdi-cash-marker:before{content:"\f0db8"}.mdi-cash-minus:before{content:"\f1260"}.mdi-cash-multiple:before{content:"\f0116"}.mdi-cash-off:before{content:"\f1c79"}.mdi-cash-plus:before{content:"\f1261"}.mdi-cash-refund:before{content:"\f0a9c"}.mdi-cash-register:before{content:"\f0cf4"}.mdi-cash-remove:before{content:"\f1262"}.mdi-cash-sync:before{content:"\f1a92"}.mdi-cassette:before{content:"\f09d4"}.mdi-cast:before{content:"\f0118"}.mdi-cast-audio:before{content:"\f101e"}.mdi-cast-audio-variant:before{content:"\f1749"}.mdi-cast-connected:before{content:"\f0119"}.mdi-cast-education:before{content:"\f0e1d"}.mdi-cast-off:before{content:"\f078a"}.mdi-cast-variant:before{content:"\f001f"}.mdi-castle:before{content:"\f011a"}.mdi-cat:before{content:"\f011b"}.mdi-cctv:before{content:"\f07ae"}.mdi-cctv-off:before{content:"\f185f"}.mdi-ceiling-fan:before{content:"\f1797"}.mdi-ceiling-fan-light:before{content:"\f1798"}.mdi-ceiling-light:before{content:"\f0769"}.mdi-ceiling-light-multiple:before{content:"\f18dd"}.mdi-ceiling-light-multiple-outline:before{content:"\f18de"}.mdi-ceiling-light-outline:before{content:"\f17c7"}.mdi-cellphone:before{content:"\f011c"}.mdi-cellphone-arrow-down:before{content:"\f09d5"}.mdi-cellphone-arrow-down-variant:before{content:"\f19c5"}.mdi-cellphone-basic:before{content:"\f011e"}.mdi-cellphone-charging:before{content:"\f1397"}.mdi-cellphone-check:before{content:"\f17fd"}.mdi-cellphone-cog:before{content:"\f0951"}.mdi-cellphone-dock:before{content:"\f011f"}.mdi-cellphone-information:before{content:"\f0f41"}.mdi-cellphone-key:before{content:"\f094e"}.mdi-cellphone-link:before{content:"\f0121"}.mdi-cellphone-link-off:before{content:"\f0122"}.mdi-cellphone-lock:before{content:"\f094f"}.mdi-cellphone-marker:before{content:"\f183a"}.mdi-cellphone-message:before{content:"\f08d3"}.mdi-cellphone-message-off:before{content:"\f10d2"}.mdi-cellphone-nfc:before{content:"\f0e90"}.mdi-cellphone-nfc-off:before{content:"\f12d8"}.mdi-cellphone-off:before{content:"\f0950"}.mdi-cellphone-play:before{content:"\f101f"}.mdi-cellphone-remove:before{content:"\f094d"}.mdi-cellphone-screenshot:before{content:"\f0a35"}.mdi-cellphone-settings:before{content:"\f0123"}.mdi-cellphone-sound:before{content:"\f0952"}.mdi-cellphone-text:before{content:"\f08d2"}.mdi-cellphone-wireless:before{content:"\f0815"}.mdi-centos:before{content:"\f111a"}.mdi-certificate:before{content:"\f0124"}.mdi-certificate-outline:before{content:"\f1188"}.mdi-chair-rolling:before{content:"\f0f48"}.mdi-chair-school:before{content:"\f0125"}.mdi-chandelier:before{content:"\f1793"}.mdi-charity:before{content:"\f0c4f"}.mdi-charity-search:before{content:"\f1c82"}.mdi-chart-arc:before{content:"\f0126"}.mdi-chart-areaspline:before{content:"\f0127"}.mdi-chart-areaspline-variant:before{content:"\f0e91"}.mdi-chart-bar:before{content:"\f0128"}.mdi-chart-bar-stacked:before{content:"\f076a"}.mdi-chart-bell-curve:before{content:"\f0c50"}.mdi-chart-bell-curve-cumulative:before{content:"\f0fa7"}.mdi-chart-box:before{content:"\f154d"}.mdi-chart-box-multiple:before{content:"\f1ccd"}.mdi-chart-box-multiple-outline:before{content:"\f1cce"}.mdi-chart-box-outline:before{content:"\f154e"}.mdi-chart-box-plus-outline:before{content:"\f154f"}.mdi-chart-bubble:before{content:"\f05e3"}.mdi-chart-donut:before{content:"\f07af"}.mdi-chart-donut-variant:before{content:"\f07b0"}.mdi-chart-gantt:before{content:"\f066c"}.mdi-chart-histogram:before{content:"\f0129"}.mdi-chart-line:before{content:"\f012a"}.mdi-chart-line-stacked:before{content:"\f076b"}.mdi-chart-line-variant:before{content:"\f07b1"}.mdi-chart-multiline:before{content:"\f08d4"}.mdi-chart-multiple:before{content:"\f1213"}.mdi-chart-pie:before{content:"\f012b"}.mdi-chart-pie-outline:before{content:"\f1bdf"}.mdi-chart-ppf:before{content:"\f1380"}.mdi-chart-sankey:before{content:"\f11df"}.mdi-chart-sankey-variant:before{content:"\f11e0"}.mdi-chart-scatter-plot:before{content:"\f0e92"}.mdi-chart-scatter-plot-hexbin:before{content:"\f066d"}.mdi-chart-timeline:before{content:"\f066e"}.mdi-chart-timeline-variant:before{content:"\f0e93"}.mdi-chart-timeline-variant-shimmer:before{content:"\f15b6"}.mdi-chart-tree:before{content:"\f0e94"}.mdi-chart-waterfall:before{content:"\f1918"}.mdi-chat:before{content:"\f0b79"}.mdi-chat-alert:before{content:"\f0b7a"}.mdi-chat-alert-outline:before{content:"\f12c9"}.mdi-chat-minus:before{content:"\f1410"}.mdi-chat-minus-outline:before{content:"\f1413"}.mdi-chat-outline:before{content:"\f0ede"}.mdi-chat-plus:before{content:"\f140f"}.mdi-chat-plus-outline:before{content:"\f1412"}.mdi-chat-processing:before{content:"\f0b7b"}.mdi-chat-processing-outline:before{content:"\f12ca"}.mdi-chat-question:before{content:"\f1738"}.mdi-chat-question-outline:before{content:"\f1739"}.mdi-chat-remove:before{content:"\f1411"}.mdi-chat-remove-outline:before{content:"\f1414"}.mdi-chat-sleep:before{content:"\f12d1"}.mdi-chat-sleep-outline:before{content:"\f12d2"}.mdi-check:before{content:"\f012c"}.mdi-check-all:before{content:"\f012d"}.mdi-check-bold:before{content:"\f0e1e"}.mdi-check-circle:before{content:"\f05e0"}.mdi-check-circle-outline:before{content:"\f05e1"}.mdi-check-decagram:before{content:"\f0791"}.mdi-check-decagram-outline:before{content:"\f1740"}.mdi-check-network:before{content:"\f0c53"}.mdi-check-network-outline:before{content:"\f0c54"}.mdi-check-outline:before{content:"\f0855"}.mdi-check-underline:before{content:"\f0e1f"}.mdi-check-underline-circle:before{content:"\f0e20"}.mdi-check-underline-circle-outline:before{content:"\f0e21"}.mdi-checkbook:before{content:"\f0a9d"}.mdi-checkbook-arrow-left:before{content:"\f1c1d"}.mdi-checkbook-arrow-right:before{content:"\f1c1e"}.mdi-checkbox-blank:before{content:"\f012e"}.mdi-checkbox-blank-badge:before{content:"\f1176"}.mdi-checkbox-blank-badge-outline:before{content:"\f0117"}.mdi-checkbox-blank-circle:before{content:"\f012f"}.mdi-checkbox-blank-circle-outline:before{content:"\f0130"}.mdi-checkbox-blank-off:before{content:"\f12ec"}.mdi-checkbox-blank-off-outline:before{content:"\f12ed"}.mdi-checkbox-blank-outline:before{content:"\f0131"}.mdi-checkbox-intermediate:before{content:"\f0856"}.mdi-checkbox-intermediate-variant:before{content:"\f1b54"}.mdi-checkbox-marked:before{content:"\f0132"}.mdi-checkbox-marked-circle:before{content:"\f0133"}.mdi-checkbox-marked-circle-auto-outline:before{content:"\f1c26"}.mdi-checkbox-marked-circle-minus-outline:before{content:"\f1c27"}.mdi-checkbox-marked-circle-outline:before{content:"\f0134"}.mdi-checkbox-marked-circle-plus-outline:before{content:"\f1927"}.mdi-checkbox-marked-outline:before{content:"\f0135"}.mdi-checkbox-multiple-blank:before{content:"\f0136"}.mdi-checkbox-multiple-blank-circle:before{content:"\f063b"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"\f063c"}.mdi-checkbox-multiple-blank-outline:before{content:"\f0137"}.mdi-checkbox-multiple-marked:before{content:"\f0138"}.mdi-checkbox-multiple-marked-circle:before{content:"\f063d"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"\f063e"}.mdi-checkbox-multiple-marked-outline:before{content:"\f0139"}.mdi-checkbox-multiple-outline:before{content:"\f0c51"}.mdi-checkbox-outline:before{content:"\f0c52"}.mdi-checkerboard:before{content:"\f013a"}.mdi-checkerboard-minus:before{content:"\f1202"}.mdi-checkerboard-plus:before{content:"\f1201"}.mdi-checkerboard-remove:before{content:"\f1203"}.mdi-cheese:before{content:"\f12b9"}.mdi-cheese-off:before{content:"\f13ee"}.mdi-chef-hat:before{content:"\f0b7c"}.mdi-chemical-weapon:before{content:"\f013b"}.mdi-chess-bishop:before{content:"\f085c"}.mdi-chess-king:before{content:"\f0857"}.mdi-chess-knight:before{content:"\f0858"}.mdi-chess-pawn:before{content:"\f0859"}.mdi-chess-queen:before{content:"\f085a"}.mdi-chess-rook:before{content:"\f085b"}.mdi-chevron-double-down:before{content:"\f013c"}.mdi-chevron-double-left:before{content:"\f013d"}.mdi-chevron-double-right:before{content:"\f013e"}.mdi-chevron-double-up:before{content:"\f013f"}.mdi-chevron-down:before{content:"\f0140"}.mdi-chevron-down-box:before{content:"\f09d6"}.mdi-chevron-down-box-outline:before{content:"\f09d7"}.mdi-chevron-down-circle:before{content:"\f0b26"}.mdi-chevron-down-circle-outline:before{content:"\f0b27"}.mdi-chevron-left:before{content:"\f0141"}.mdi-chevron-left-box:before{content:"\f09d8"}.mdi-chevron-left-box-outline:before{content:"\f09d9"}.mdi-chevron-left-circle:before{content:"\f0b28"}.mdi-chevron-left-circle-outline:before{content:"\f0b29"}.mdi-chevron-right:before{content:"\f0142"}.mdi-chevron-right-box:before{content:"\f09da"}.mdi-chevron-right-box-outline:before{content:"\f09db"}.mdi-chevron-right-circle:before{content:"\f0b2a"}.mdi-chevron-right-circle-outline:before{content:"\f0b2b"}.mdi-chevron-triple-down:before{content:"\f0db9"}.mdi-chevron-triple-left:before{content:"\f0dba"}.mdi-chevron-triple-right:before{content:"\f0dbb"}.mdi-chevron-triple-up:before{content:"\f0dbc"}.mdi-chevron-up:before{content:"\f0143"}.mdi-chevron-up-box:before{content:"\f09dc"}.mdi-chevron-up-box-outline:before{content:"\f09dd"}.mdi-chevron-up-circle:before{content:"\f0b2c"}.mdi-chevron-up-circle-outline:before{content:"\f0b2d"}.mdi-chili-alert:before{content:"\f17ea"}.mdi-chili-alert-outline:before{content:"\f17eb"}.mdi-chili-hot:before{content:"\f07b2"}.mdi-chili-hot-outline:before{content:"\f17ec"}.mdi-chili-medium:before{content:"\f07b3"}.mdi-chili-medium-outline:before{content:"\f17ed"}.mdi-chili-mild:before{content:"\f07b4"}.mdi-chili-mild-outline:before{content:"\f17ee"}.mdi-chili-off:before{content:"\f1467"}.mdi-chili-off-outline:before{content:"\f17ef"}.mdi-chip:before{content:"\f061a"}.mdi-church:before{content:"\f0144"}.mdi-church-outline:before{content:"\f1b02"}.mdi-cigar:before{content:"\f1189"}.mdi-cigar-off:before{content:"\f141b"}.mdi-circle:before{content:"\f0765"}.mdi-circle-box:before{content:"\f15dc"}.mdi-circle-box-outline:before{content:"\f15dd"}.mdi-circle-double:before{content:"\f0e95"}.mdi-circle-edit-outline:before{content:"\f08d5"}.mdi-circle-expand:before{content:"\f0e96"}.mdi-circle-half:before{content:"\f1395"}.mdi-circle-half-full:before{content:"\f1396"}.mdi-circle-medium:before{content:"\f09de"}.mdi-circle-multiple:before{content:"\f0b38"}.mdi-circle-multiple-outline:before{content:"\f0695"}.mdi-circle-off-outline:before{content:"\f10d3"}.mdi-circle-opacity:before{content:"\f1853"}.mdi-circle-outline:before{content:"\f0766"}.mdi-circle-slice-1:before{content:"\f0a9e"}.mdi-circle-slice-2:before{content:"\f0a9f"}.mdi-circle-slice-3:before{content:"\f0aa0"}.mdi-circle-slice-4:before{content:"\f0aa1"}.mdi-circle-slice-5:before{content:"\f0aa2"}.mdi-circle-slice-6:before{content:"\f0aa3"}.mdi-circle-slice-7:before{content:"\f0aa4"}.mdi-circle-slice-8:before{content:"\f0aa5"}.mdi-circle-small:before{content:"\f09df"}.mdi-circular-saw:before{content:"\f0e22"}.mdi-city:before{content:"\f0146"}.mdi-city-switch:before{content:"\f1c28"}.mdi-city-variant:before{content:"\f0a36"}.mdi-city-variant-outline:before{content:"\f0a37"}.mdi-clipboard:before{content:"\f0147"}.mdi-clipboard-account:before{content:"\f0148"}.mdi-clipboard-account-outline:before{content:"\f0c55"}.mdi-clipboard-alert:before{content:"\f0149"}.mdi-clipboard-alert-outline:before{content:"\f0cf7"}.mdi-clipboard-arrow-down:before{content:"\f014a"}.mdi-clipboard-arrow-down-outline:before{content:"\f0c56"}.mdi-clipboard-arrow-left:before{content:"\f014b"}.mdi-clipboard-arrow-left-outline:before{content:"\f0cf8"}.mdi-clipboard-arrow-right:before{content:"\f0cf9"}.mdi-clipboard-arrow-right-outline:before{content:"\f0cfa"}.mdi-clipboard-arrow-up:before{content:"\f0c57"}.mdi-clipboard-arrow-up-outline:before{content:"\f0c58"}.mdi-clipboard-check:before{content:"\f014e"}.mdi-clipboard-check-multiple:before{content:"\f1263"}.mdi-clipboard-check-multiple-outline:before{content:"\f1264"}.mdi-clipboard-check-outline:before{content:"\f08a8"}.mdi-clipboard-clock:before{content:"\f16e2"}.mdi-clipboard-clock-outline:before{content:"\f16e3"}.mdi-clipboard-edit:before{content:"\f14e5"}.mdi-clipboard-edit-outline:before{content:"\f14e6"}.mdi-clipboard-file:before{content:"\f1265"}.mdi-clipboard-file-outline:before{content:"\f1266"}.mdi-clipboard-flow:before{content:"\f06c8"}.mdi-clipboard-flow-outline:before{content:"\f1117"}.mdi-clipboard-list:before{content:"\f10d4"}.mdi-clipboard-list-outline:before{content:"\f10d5"}.mdi-clipboard-minus:before{content:"\f1618"}.mdi-clipboard-minus-outline:before{content:"\f1619"}.mdi-clipboard-multiple:before{content:"\f1267"}.mdi-clipboard-multiple-outline:before{content:"\f1268"}.mdi-clipboard-off:before{content:"\f161a"}.mdi-clipboard-off-outline:before{content:"\f161b"}.mdi-clipboard-outline:before{content:"\f014c"}.mdi-clipboard-play:before{content:"\f0c59"}.mdi-clipboard-play-multiple:before{content:"\f1269"}.mdi-clipboard-play-multiple-outline:before{content:"\f126a"}.mdi-clipboard-play-outline:before{content:"\f0c5a"}.mdi-clipboard-plus:before{content:"\f0751"}.mdi-clipboard-plus-outline:before{content:"\f131f"}.mdi-clipboard-pulse:before{content:"\f085d"}.mdi-clipboard-pulse-outline:before{content:"\f085e"}.mdi-clipboard-remove:before{content:"\f161c"}.mdi-clipboard-remove-outline:before{content:"\f161d"}.mdi-clipboard-search:before{content:"\f161e"}.mdi-clipboard-search-outline:before{content:"\f161f"}.mdi-clipboard-text:before{content:"\f014d"}.mdi-clipboard-text-clock:before{content:"\f18f9"}.mdi-clipboard-text-clock-outline:before{content:"\f18fa"}.mdi-clipboard-text-multiple:before{content:"\f126b"}.mdi-clipboard-text-multiple-outline:before{content:"\f126c"}.mdi-clipboard-text-off:before{content:"\f1620"}.mdi-clipboard-text-off-outline:before{content:"\f1621"}.mdi-clipboard-text-outline:before{content:"\f0a38"}.mdi-clipboard-text-play:before{content:"\f0c5b"}.mdi-clipboard-text-play-outline:before{content:"\f0c5c"}.mdi-clipboard-text-search:before{content:"\f1622"}.mdi-clipboard-text-search-outline:before{content:"\f1623"}.mdi-clippy:before{content:"\f014f"}.mdi-clock:before{content:"\f0954"}.mdi-clock-alert:before{content:"\f0955"}.mdi-clock-alert-outline:before{content:"\f05ce"}.mdi-clock-check:before{content:"\f0fa8"}.mdi-clock-check-outline:before{content:"\f0fa9"}.mdi-clock-digital:before{content:"\f0e97"}.mdi-clock-edit:before{content:"\f19ba"}.mdi-clock-edit-outline:before{content:"\f19bb"}.mdi-clock-end:before{content:"\f0151"}.mdi-clock-fast:before{content:"\f0152"}.mdi-clock-in:before{content:"\f0153"}.mdi-clock-minus:before{content:"\f1863"}.mdi-clock-minus-outline:before{content:"\f1864"}.mdi-clock-out:before{content:"\f0154"}.mdi-clock-outline:before{content:"\f0150"}.mdi-clock-plus:before{content:"\f1861"}.mdi-clock-plus-outline:before{content:"\f1862"}.mdi-clock-remove:before{content:"\f1865"}.mdi-clock-remove-outline:before{content:"\f1866"}.mdi-clock-star-four-points:before{content:"\f1c29"}.mdi-clock-star-four-points-outline:before{content:"\f1c2a"}.mdi-clock-start:before{content:"\f0155"}.mdi-clock-time-eight:before{content:"\f1446"}.mdi-clock-time-eight-outline:before{content:"\f1452"}.mdi-clock-time-eleven:before{content:"\f1449"}.mdi-clock-time-eleven-outline:before{content:"\f1455"}.mdi-clock-time-five:before{content:"\f1443"}.mdi-clock-time-five-outline:before{content:"\f144f"}.mdi-clock-time-four:before{content:"\f1442"}.mdi-clock-time-four-outline:before{content:"\f144e"}.mdi-clock-time-nine:before{content:"\f1447"}.mdi-clock-time-nine-outline:before{content:"\f1453"}.mdi-clock-time-one:before{content:"\f143f"}.mdi-clock-time-one-outline:before{content:"\f144b"}.mdi-clock-time-seven:before{content:"\f1445"}.mdi-clock-time-seven-outline:before{content:"\f1451"}.mdi-clock-time-six:before{content:"\f1444"}.mdi-clock-time-six-outline:before{content:"\f1450"}.mdi-clock-time-ten:before{content:"\f1448"}.mdi-clock-time-ten-outline:before{content:"\f1454"}.mdi-clock-time-three:before{content:"\f1441"}.mdi-clock-time-three-outline:before{content:"\f144d"}.mdi-clock-time-twelve:before{content:"\f144a"}.mdi-clock-time-twelve-outline:before{content:"\f1456"}.mdi-clock-time-two:before{content:"\f1440"}.mdi-clock-time-two-outline:before{content:"\f144c"}.mdi-close:before{content:"\f0156"}.mdi-close-box:before{content:"\f0157"}.mdi-close-box-multiple:before{content:"\f0c5d"}.mdi-close-box-multiple-outline:before{content:"\f0c5e"}.mdi-close-box-outline:before{content:"\f0158"}.mdi-close-circle:before{content:"\f0159"}.mdi-close-circle-multiple:before{content:"\f062a"}.mdi-close-circle-multiple-outline:before{content:"\f0883"}.mdi-close-circle-outline:before{content:"\f015a"}.mdi-close-network:before{content:"\f015b"}.mdi-close-network-outline:before{content:"\f0c5f"}.mdi-close-octagon:before{content:"\f015c"}.mdi-close-octagon-outline:before{content:"\f015d"}.mdi-close-outline:before{content:"\f06c9"}.mdi-close-thick:before{content:"\f1398"}.mdi-closed-caption:before{content:"\f015e"}.mdi-closed-caption-outline:before{content:"\f0dbd"}.mdi-cloud:before{content:"\f015f"}.mdi-cloud-alert:before{content:"\f09e0"}.mdi-cloud-alert-outline:before{content:"\f1be0"}.mdi-cloud-arrow-down:before{content:"\f1be1"}.mdi-cloud-arrow-down-outline:before{content:"\f1be2"}.mdi-cloud-arrow-left:before{content:"\f1be3"}.mdi-cloud-arrow-left-outline:before{content:"\f1be4"}.mdi-cloud-arrow-right:before{content:"\f1be5"}.mdi-cloud-arrow-right-outline:before{content:"\f1be6"}.mdi-cloud-arrow-up:before{content:"\f1be7"}.mdi-cloud-arrow-up-outline:before{content:"\f1be8"}.mdi-cloud-braces:before{content:"\f07b5"}.mdi-cloud-cancel:before{content:"\f1be9"}.mdi-cloud-cancel-outline:before{content:"\f1bea"}.mdi-cloud-check:before{content:"\f1beb"}.mdi-cloud-check-outline:before{content:"\f1bec"}.mdi-cloud-check-variant:before{content:"\f0160"}.mdi-cloud-check-variant-outline:before{content:"\f12cc"}.mdi-cloud-circle:before{content:"\f0161"}.mdi-cloud-circle-outline:before{content:"\f1bed"}.mdi-cloud-clock:before{content:"\f1bee"}.mdi-cloud-clock-outline:before{content:"\f1bef"}.mdi-cloud-cog:before{content:"\f1bf0"}.mdi-cloud-cog-outline:before{content:"\f1bf1"}.mdi-cloud-download:before{content:"\f0162"}.mdi-cloud-download-outline:before{content:"\f0b7d"}.mdi-cloud-key:before{content:"\f1ca1"}.mdi-cloud-key-outline:before{content:"\f1ca2"}.mdi-cloud-lock:before{content:"\f11f1"}.mdi-cloud-lock-open:before{content:"\f1bf2"}.mdi-cloud-lock-open-outline:before{content:"\f1bf3"}.mdi-cloud-lock-outline:before{content:"\f11f2"}.mdi-cloud-minus:before{content:"\f1bf4"}.mdi-cloud-minus-outline:before{content:"\f1bf5"}.mdi-cloud-off:before{content:"\f1bf6"}.mdi-cloud-off-outline:before{content:"\f0164"}.mdi-cloud-outline:before{content:"\f0163"}.mdi-cloud-percent:before{content:"\f1a35"}.mdi-cloud-percent-outline:before{content:"\f1a36"}.mdi-cloud-plus:before{content:"\f1bf7"}.mdi-cloud-plus-outline:before{content:"\f1bf8"}.mdi-cloud-print:before{content:"\f0165"}.mdi-cloud-print-outline:before{content:"\f0166"}.mdi-cloud-question:before{content:"\f0a39"}.mdi-cloud-question-outline:before{content:"\f1bf9"}.mdi-cloud-refresh:before{content:"\f1bfa"}.mdi-cloud-refresh-outline:before{content:"\f1bfb"}.mdi-cloud-refresh-variant:before{content:"\f052a"}.mdi-cloud-refresh-variant-outline:before{content:"\f1bfc"}.mdi-cloud-remove:before{content:"\f1bfd"}.mdi-cloud-remove-outline:before{content:"\f1bfe"}.mdi-cloud-search:before{content:"\f0956"}.mdi-cloud-search-outline:before{content:"\f0957"}.mdi-cloud-sync:before{content:"\f063f"}.mdi-cloud-sync-outline:before{content:"\f12d6"}.mdi-cloud-tags:before{content:"\f07b6"}.mdi-cloud-upload:before{content:"\f0167"}.mdi-cloud-upload-outline:before{content:"\f0b7e"}.mdi-clouds:before{content:"\f1b95"}.mdi-clover:before{content:"\f0816"}.mdi-clover-outline:before{content:"\f1c62"}.mdi-coach-lamp:before{content:"\f1020"}.mdi-coach-lamp-variant:before{content:"\f1a37"}.mdi-coat-rack:before{content:"\f109e"}.mdi-code-array:before{content:"\f0168"}.mdi-code-block-braces:before{content:"\f1c83"}.mdi-code-block-brackets:before{content:"\f1c84"}.mdi-code-block-parentheses:before{content:"\f1c85"}.mdi-code-block-tags:before{content:"\f1c86"}.mdi-code-braces:before{content:"\f0169"}.mdi-code-braces-box:before{content:"\f10d6"}.mdi-code-brackets:before{content:"\f016a"}.mdi-code-equal:before{content:"\f016b"}.mdi-code-greater-than:before{content:"\f016c"}.mdi-code-greater-than-or-equal:before{content:"\f016d"}.mdi-code-json:before{content:"\f0626"}.mdi-code-less-than:before{content:"\f016e"}.mdi-code-less-than-or-equal:before{content:"\f016f"}.mdi-code-not-equal:before{content:"\f0170"}.mdi-code-not-equal-variant:before{content:"\f0171"}.mdi-code-parentheses:before{content:"\f0172"}.mdi-code-parentheses-box:before{content:"\f10d7"}.mdi-code-string:before{content:"\f0173"}.mdi-code-tags:before{content:"\f0174"}.mdi-code-tags-check:before{content:"\f0694"}.mdi-codepen:before{content:"\f0175"}.mdi-coffee:before{content:"\f0176"}.mdi-coffee-maker:before{content:"\f109f"}.mdi-coffee-maker-check:before{content:"\f1931"}.mdi-coffee-maker-check-outline:before{content:"\f1932"}.mdi-coffee-maker-outline:before{content:"\f181b"}.mdi-coffee-off:before{content:"\f0faa"}.mdi-coffee-off-outline:before{content:"\f0fab"}.mdi-coffee-outline:before{content:"\f06ca"}.mdi-coffee-to-go:before{content:"\f0177"}.mdi-coffee-to-go-outline:before{content:"\f130e"}.mdi-coffin:before{content:"\f0b7f"}.mdi-cog:before{content:"\f0493"}.mdi-cog-box:before{content:"\f0494"}.mdi-cog-clockwise:before{content:"\f11dd"}.mdi-cog-counterclockwise:before{content:"\f11de"}.mdi-cog-off:before{content:"\f13ce"}.mdi-cog-off-outline:before{content:"\f13cf"}.mdi-cog-outline:before{content:"\f08bb"}.mdi-cog-pause:before{content:"\f1933"}.mdi-cog-pause-outline:before{content:"\f1934"}.mdi-cog-play:before{content:"\f1935"}.mdi-cog-play-outline:before{content:"\f1936"}.mdi-cog-refresh:before{content:"\f145e"}.mdi-cog-refresh-outline:before{content:"\f145f"}.mdi-cog-stop:before{content:"\f1937"}.mdi-cog-stop-outline:before{content:"\f1938"}.mdi-cog-sync:before{content:"\f1460"}.mdi-cog-sync-outline:before{content:"\f1461"}.mdi-cog-transfer:before{content:"\f105b"}.mdi-cog-transfer-outline:before{content:"\f105c"}.mdi-cogs:before{content:"\f08d6"}.mdi-collage:before{content:"\f0640"}.mdi-collapse-all:before{content:"\f0aa6"}.mdi-collapse-all-outline:before{content:"\f0aa7"}.mdi-color-helper:before{content:"\f0179"}.mdi-comma:before{content:"\f0e23"}.mdi-comma-box:before{content:"\f0e2b"}.mdi-comma-box-outline:before{content:"\f0e24"}.mdi-comma-circle:before{content:"\f0e25"}.mdi-comma-circle-outline:before{content:"\f0e26"}.mdi-comment:before{content:"\f017a"}.mdi-comment-account:before{content:"\f017b"}.mdi-comment-account-outline:before{content:"\f017c"}.mdi-comment-alert:before{content:"\f017d"}.mdi-comment-alert-outline:before{content:"\f017e"}.mdi-comment-arrow-left:before{content:"\f09e1"}.mdi-comment-arrow-left-outline:before{content:"\f09e2"}.mdi-comment-arrow-right:before{content:"\f09e3"}.mdi-comment-arrow-right-outline:before{content:"\f09e4"}.mdi-comment-bookmark:before{content:"\f15ae"}.mdi-comment-bookmark-outline:before{content:"\f15af"}.mdi-comment-check:before{content:"\f017f"}.mdi-comment-check-outline:before{content:"\f0180"}.mdi-comment-edit:before{content:"\f11bf"}.mdi-comment-edit-outline:before{content:"\f12c4"}.mdi-comment-eye:before{content:"\f0a3a"}.mdi-comment-eye-outline:before{content:"\f0a3b"}.mdi-comment-flash:before{content:"\f15b0"}.mdi-comment-flash-outline:before{content:"\f15b1"}.mdi-comment-minus:before{content:"\f15df"}.mdi-comment-minus-outline:before{content:"\f15e0"}.mdi-comment-multiple:before{content:"\f085f"}.mdi-comment-multiple-outline:before{content:"\f0181"}.mdi-comment-off:before{content:"\f15e1"}.mdi-comment-off-outline:before{content:"\f15e2"}.mdi-comment-outline:before{content:"\f0182"}.mdi-comment-plus:before{content:"\f09e5"}.mdi-comment-plus-outline:before{content:"\f0183"}.mdi-comment-processing:before{content:"\f0184"}.mdi-comment-processing-outline:before{content:"\f0185"}.mdi-comment-question:before{content:"\f0817"}.mdi-comment-question-outline:before{content:"\f0186"}.mdi-comment-quote:before{content:"\f1021"}.mdi-comment-quote-outline:before{content:"\f1022"}.mdi-comment-remove:before{content:"\f05de"}.mdi-comment-remove-outline:before{content:"\f0187"}.mdi-comment-search:before{content:"\f0a3c"}.mdi-comment-search-outline:before{content:"\f0a3d"}.mdi-comment-text:before{content:"\f0188"}.mdi-comment-text-multiple:before{content:"\f0860"}.mdi-comment-text-multiple-outline:before{content:"\f0861"}.mdi-comment-text-outline:before{content:"\f0189"}.mdi-compare:before{content:"\f018a"}.mdi-compare-horizontal:before{content:"\f1492"}.mdi-compare-remove:before{content:"\f18b3"}.mdi-compare-vertical:before{content:"\f1493"}.mdi-compass:before{content:"\f018b"}.mdi-compass-off:before{content:"\f0b80"}.mdi-compass-off-outline:before{content:"\f0b81"}.mdi-compass-outline:before{content:"\f018c"}.mdi-compass-rose:before{content:"\f1382"}.mdi-compost:before{content:"\f1a38"}.mdi-cone:before{content:"\f194c"}.mdi-cone-off:before{content:"\f194d"}.mdi-connection:before{content:"\f1616"}.mdi-console:before{content:"\f018d"}.mdi-console-line:before{content:"\f07b7"}.mdi-console-network:before{content:"\f08a9"}.mdi-console-network-outline:before{content:"\f0c60"}.mdi-consolidate:before{content:"\f10d8"}.mdi-contactless-payment:before{content:"\f0d6a"}.mdi-contactless-payment-circle:before{content:"\f0321"}.mdi-contactless-payment-circle-outline:before{content:"\f0408"}.mdi-contacts:before{content:"\f06cb"}.mdi-contacts-outline:before{content:"\f05b8"}.mdi-contain:before{content:"\f0a3e"}.mdi-contain-end:before{content:"\f0a3f"}.mdi-contain-start:before{content:"\f0a40"}.mdi-content-copy:before{content:"\f018f"}.mdi-content-cut:before{content:"\f0190"}.mdi-content-duplicate:before{content:"\f0191"}.mdi-content-paste:before{content:"\f0192"}.mdi-content-save:before{content:"\f0193"}.mdi-content-save-alert:before{content:"\f0f42"}.mdi-content-save-alert-outline:before{content:"\f0f43"}.mdi-content-save-all:before{content:"\f0194"}.mdi-content-save-all-outline:before{content:"\f0f44"}.mdi-content-save-check:before{content:"\f18ea"}.mdi-content-save-check-outline:before{content:"\f18eb"}.mdi-content-save-cog:before{content:"\f145b"}.mdi-content-save-cog-outline:before{content:"\f145c"}.mdi-content-save-edit:before{content:"\f0cfb"}.mdi-content-save-edit-outline:before{content:"\f0cfc"}.mdi-content-save-minus:before{content:"\f1b43"}.mdi-content-save-minus-outline:before{content:"\f1b44"}.mdi-content-save-move:before{content:"\f0e27"}.mdi-content-save-move-outline:before{content:"\f0e28"}.mdi-content-save-off:before{content:"\f1643"}.mdi-content-save-off-outline:before{content:"\f1644"}.mdi-content-save-outline:before{content:"\f0818"}.mdi-content-save-plus:before{content:"\f1b41"}.mdi-content-save-plus-outline:before{content:"\f1b42"}.mdi-content-save-settings:before{content:"\f061b"}.mdi-content-save-settings-outline:before{content:"\f0b2e"}.mdi-contrast:before{content:"\f0195"}.mdi-contrast-box:before{content:"\f0196"}.mdi-contrast-circle:before{content:"\f0197"}.mdi-controller:before{content:"\f02b4"}.mdi-controller-classic:before{content:"\f0b82"}.mdi-controller-classic-outline:before{content:"\f0b83"}.mdi-controller-off:before{content:"\f02b5"}.mdi-cookie:before{content:"\f0198"}.mdi-cookie-alert:before{content:"\f16d0"}.mdi-cookie-alert-outline:before{content:"\f16d1"}.mdi-cookie-check:before{content:"\f16d2"}.mdi-cookie-check-outline:before{content:"\f16d3"}.mdi-cookie-clock:before{content:"\f16e4"}.mdi-cookie-clock-outline:before{content:"\f16e5"}.mdi-cookie-cog:before{content:"\f16d4"}.mdi-cookie-cog-outline:before{content:"\f16d5"}.mdi-cookie-edit:before{content:"\f16e6"}.mdi-cookie-edit-outline:before{content:"\f16e7"}.mdi-cookie-lock:before{content:"\f16e8"}.mdi-cookie-lock-outline:before{content:"\f16e9"}.mdi-cookie-minus:before{content:"\f16da"}.mdi-cookie-minus-outline:before{content:"\f16db"}.mdi-cookie-off:before{content:"\f16ea"}.mdi-cookie-off-outline:before{content:"\f16eb"}.mdi-cookie-outline:before{content:"\f16de"}.mdi-cookie-plus:before{content:"\f16d6"}.mdi-cookie-plus-outline:before{content:"\f16d7"}.mdi-cookie-refresh:before{content:"\f16ec"}.mdi-cookie-refresh-outline:before{content:"\f16ed"}.mdi-cookie-remove:before{content:"\f16d8"}.mdi-cookie-remove-outline:before{content:"\f16d9"}.mdi-cookie-settings:before{content:"\f16dc"}.mdi-cookie-settings-outline:before{content:"\f16dd"}.mdi-coolant-temperature:before{content:"\f03c8"}.mdi-copyleft:before{content:"\f1939"}.mdi-copyright:before{content:"\f05e6"}.mdi-cordova:before{content:"\f0958"}.mdi-corn:before{content:"\f07b8"}.mdi-corn-off:before{content:"\f13ef"}.mdi-cosine-wave:before{content:"\f1479"}.mdi-counter:before{content:"\f0199"}.mdi-countertop:before{content:"\f181c"}.mdi-countertop-outline:before{content:"\f181d"}.mdi-cow:before{content:"\f019a"}.mdi-cow-off:before{content:"\f18fc"}.mdi-cpu-32-bit:before{content:"\f0edf"}.mdi-cpu-64-bit:before{content:"\f0ee0"}.mdi-cradle:before{content:"\f198b"}.mdi-cradle-outline:before{content:"\f1991"}.mdi-crane:before{content:"\f0862"}.mdi-creation:before{content:"\f0674"}.mdi-creation-outline:before{content:"\f1c2b"}.mdi-creative-commons:before{content:"\f0d6b"}.mdi-credit-card:before{content:"\f0fef"}.mdi-credit-card-check:before{content:"\f13d0"}.mdi-credit-card-check-outline:before{content:"\f13d1"}.mdi-credit-card-chip:before{content:"\f190f"}.mdi-credit-card-chip-outline:before{content:"\f1910"}.mdi-credit-card-clock:before{content:"\f0ee1"}.mdi-credit-card-clock-outline:before{content:"\f0ee2"}.mdi-credit-card-edit:before{content:"\f17d7"}.mdi-credit-card-edit-outline:before{content:"\f17d8"}.mdi-credit-card-fast:before{content:"\f1911"}.mdi-credit-card-fast-outline:before{content:"\f1912"}.mdi-credit-card-lock:before{content:"\f18e7"}.mdi-credit-card-lock-outline:before{content:"\f18e8"}.mdi-credit-card-marker:before{content:"\f06a8"}.mdi-credit-card-marker-outline:before{content:"\f0dbe"}.mdi-credit-card-minus:before{content:"\f0fac"}.mdi-credit-card-minus-outline:before{content:"\f0fad"}.mdi-credit-card-multiple:before{content:"\f0ff0"}.mdi-credit-card-multiple-outline:before{content:"\f019c"}.mdi-credit-card-off:before{content:"\f0ff1"}.mdi-credit-card-off-outline:before{content:"\f05e4"}.mdi-credit-card-outline:before{content:"\f019b"}.mdi-credit-card-plus:before{content:"\f0ff2"}.mdi-credit-card-plus-outline:before{content:"\f0676"}.mdi-credit-card-refresh:before{content:"\f1645"}.mdi-credit-card-refresh-outline:before{content:"\f1646"}.mdi-credit-card-refund:before{content:"\f0ff3"}.mdi-credit-card-refund-outline:before{content:"\f0aa8"}.mdi-credit-card-remove:before{content:"\f0fae"}.mdi-credit-card-remove-outline:before{content:"\f0faf"}.mdi-credit-card-scan:before{content:"\f0ff4"}.mdi-credit-card-scan-outline:before{content:"\f019d"}.mdi-credit-card-search:before{content:"\f1647"}.mdi-credit-card-search-outline:before{content:"\f1648"}.mdi-credit-card-settings:before{content:"\f0ff5"}.mdi-credit-card-settings-outline:before{content:"\f08d7"}.mdi-credit-card-sync:before{content:"\f1649"}.mdi-credit-card-sync-outline:before{content:"\f164a"}.mdi-credit-card-wireless:before{content:"\f0802"}.mdi-credit-card-wireless-off:before{content:"\f057a"}.mdi-credit-card-wireless-off-outline:before{content:"\f057b"}.mdi-credit-card-wireless-outline:before{content:"\f0d6c"}.mdi-cricket:before{content:"\f0d6d"}.mdi-crop:before{content:"\f019e"}.mdi-crop-free:before{content:"\f019f"}.mdi-crop-landscape:before{content:"\f01a0"}.mdi-crop-portrait:before{content:"\f01a1"}.mdi-crop-rotate:before{content:"\f0696"}.mdi-crop-square:before{content:"\f01a2"}.mdi-cross:before{content:"\f0953"}.mdi-cross-bolnisi:before{content:"\f0ced"}.mdi-cross-celtic:before{content:"\f0cf5"}.mdi-cross-outline:before{content:"\f0cf6"}.mdi-crosshairs:before{content:"\f01a3"}.mdi-crosshairs-gps:before{content:"\f01a4"}.mdi-crosshairs-off:before{content:"\f0f45"}.mdi-crosshairs-question:before{content:"\f1136"}.mdi-crowd:before{content:"\f1975"}.mdi-crown:before{content:"\f01a5"}.mdi-crown-circle:before{content:"\f17dc"}.mdi-crown-circle-outline:before{content:"\f17dd"}.mdi-crown-outline:before{content:"\f11d0"}.mdi-cryengine:before{content:"\f0959"}.mdi-crystal-ball:before{content:"\f0b2f"}.mdi-cube:before{content:"\f01a6"}.mdi-cube-off:before{content:"\f141c"}.mdi-cube-off-outline:before{content:"\f141d"}.mdi-cube-outline:before{content:"\f01a7"}.mdi-cube-scan:before{content:"\f0b84"}.mdi-cube-send:before{content:"\f01a8"}.mdi-cube-unfolded:before{content:"\f01a9"}.mdi-cup:before{content:"\f01aa"}.mdi-cup-off:before{content:"\f05e5"}.mdi-cup-off-outline:before{content:"\f137d"}.mdi-cup-outline:before{content:"\f130f"}.mdi-cup-water:before{content:"\f01ab"}.mdi-cupboard:before{content:"\f0f46"}.mdi-cupboard-outline:before{content:"\f0f47"}.mdi-cupcake:before{content:"\f095a"}.mdi-curling:before{content:"\f0863"}.mdi-currency-bdt:before{content:"\f0864"}.mdi-currency-brl:before{content:"\f0b85"}.mdi-currency-btc:before{content:"\f01ac"}.mdi-currency-cny:before{content:"\f07ba"}.mdi-currency-eth:before{content:"\f07bb"}.mdi-currency-eur:before{content:"\f01ad"}.mdi-currency-eur-off:before{content:"\f1315"}.mdi-currency-fra:before{content:"\f1a39"}.mdi-currency-gbp:before{content:"\f01ae"}.mdi-currency-ils:before{content:"\f0c61"}.mdi-currency-inr:before{content:"\f01af"}.mdi-currency-jpy:before{content:"\f07bc"}.mdi-currency-krw:before{content:"\f07bd"}.mdi-currency-kzt:before{content:"\f0865"}.mdi-currency-mnt:before{content:"\f1512"}.mdi-currency-ngn:before{content:"\f01b0"}.mdi-currency-php:before{content:"\f09e6"}.mdi-currency-rial:before{content:"\f0e9c"}.mdi-currency-rub:before{content:"\f01b1"}.mdi-currency-rupee:before{content:"\f1976"}.mdi-currency-sign:before{content:"\f07be"}.mdi-currency-thb:before{content:"\f1c05"}.mdi-currency-try:before{content:"\f01b2"}.mdi-currency-twd:before{content:"\f07bf"}.mdi-currency-uah:before{content:"\f1b9b"}.mdi-currency-usd:before{content:"\f01c1"}.mdi-currency-usd-off:before{content:"\f067a"}.mdi-current-ac:before{content:"\f1480"}.mdi-current-dc:before{content:"\f095c"}.mdi-cursor-default:before{content:"\f01c0"}.mdi-cursor-default-click:before{content:"\f0cfd"}.mdi-cursor-default-click-outline:before{content:"\f0cfe"}.mdi-cursor-default-gesture:before{content:"\f1127"}.mdi-cursor-default-gesture-outline:before{content:"\f1128"}.mdi-cursor-default-outline:before{content:"\f01bf"}.mdi-cursor-move:before{content:"\f01be"}.mdi-cursor-pointer:before{content:"\f01bd"}.mdi-cursor-text:before{content:"\f05e7"}.mdi-curtains:before{content:"\f1846"}.mdi-curtains-closed:before{content:"\f1847"}.mdi-cylinder:before{content:"\f194e"}.mdi-cylinder-off:before{content:"\f194f"}.mdi-dance-ballroom:before{content:"\f15fb"}.mdi-dance-pole:before{content:"\f1578"}.mdi-data-matrix:before{content:"\f153c"}.mdi-data-matrix-edit:before{content:"\f153d"}.mdi-data-matrix-minus:before{content:"\f153e"}.mdi-data-matrix-plus:before{content:"\f153f"}.mdi-data-matrix-remove:before{content:"\f1540"}.mdi-data-matrix-scan:before{content:"\f1541"}.mdi-database:before{content:"\f01bc"}.mdi-database-alert:before{content:"\f163a"}.mdi-database-alert-outline:before{content:"\f1624"}.mdi-database-arrow-down:before{content:"\f163b"}.mdi-database-arrow-down-outline:before{content:"\f1625"}.mdi-database-arrow-left:before{content:"\f163c"}.mdi-database-arrow-left-outline:before{content:"\f1626"}.mdi-database-arrow-right:before{content:"\f163d"}.mdi-database-arrow-right-outline:before{content:"\f1627"}.mdi-database-arrow-up:before{content:"\f163e"}.mdi-database-arrow-up-outline:before{content:"\f1628"}.mdi-database-check:before{content:"\f0aa9"}.mdi-database-check-outline:before{content:"\f1629"}.mdi-database-clock:before{content:"\f163f"}.mdi-database-clock-outline:before{content:"\f162a"}.mdi-database-cog:before{content:"\f164b"}.mdi-database-cog-outline:before{content:"\f164c"}.mdi-database-edit:before{content:"\f0b86"}.mdi-database-edit-outline:before{content:"\f162b"}.mdi-database-export:before{content:"\f095e"}.mdi-database-export-outline:before{content:"\f162c"}.mdi-database-eye:before{content:"\f191f"}.mdi-database-eye-off:before{content:"\f1920"}.mdi-database-eye-off-outline:before{content:"\f1921"}.mdi-database-eye-outline:before{content:"\f1922"}.mdi-database-import:before{content:"\f095d"}.mdi-database-import-outline:before{content:"\f162d"}.mdi-database-lock:before{content:"\f0aaa"}.mdi-database-lock-outline:before{content:"\f162e"}.mdi-database-marker:before{content:"\f12f6"}.mdi-database-marker-outline:before{content:"\f162f"}.mdi-database-minus:before{content:"\f01bb"}.mdi-database-minus-outline:before{content:"\f1630"}.mdi-database-off:before{content:"\f1640"}.mdi-database-off-outline:before{content:"\f1631"}.mdi-database-outline:before{content:"\f1632"}.mdi-database-plus:before{content:"\f01ba"}.mdi-database-plus-outline:before{content:"\f1633"}.mdi-database-refresh:before{content:"\f05c2"}.mdi-database-refresh-outline:before{content:"\f1634"}.mdi-database-remove:before{content:"\f0d00"}.mdi-database-remove-outline:before{content:"\f1635"}.mdi-database-search:before{content:"\f0866"}.mdi-database-search-outline:before{content:"\f1636"}.mdi-database-settings:before{content:"\f0d01"}.mdi-database-settings-outline:before{content:"\f1637"}.mdi-database-sync:before{content:"\f0cff"}.mdi-database-sync-outline:before{content:"\f1638"}.mdi-death-star:before{content:"\f08d8"}.mdi-death-star-variant:before{content:"\f08d9"}.mdi-deathly-hallows:before{content:"\f0b87"}.mdi-debian:before{content:"\f08da"}.mdi-debug-step-into:before{content:"\f01b9"}.mdi-debug-step-out:before{content:"\f01b8"}.mdi-debug-step-over:before{content:"\f01b7"}.mdi-decagram:before{content:"\f076c"}.mdi-decagram-outline:before{content:"\f076d"}.mdi-decimal:before{content:"\f10a1"}.mdi-decimal-comma:before{content:"\f10a2"}.mdi-decimal-comma-decrease:before{content:"\f10a3"}.mdi-decimal-comma-increase:before{content:"\f10a4"}.mdi-decimal-decrease:before{content:"\f01b6"}.mdi-decimal-increase:before{content:"\f01b5"}.mdi-delete:before{content:"\f01b4"}.mdi-delete-alert:before{content:"\f10a5"}.mdi-delete-alert-outline:before{content:"\f10a6"}.mdi-delete-circle:before{content:"\f0683"}.mdi-delete-circle-outline:before{content:"\f0b88"}.mdi-delete-clock:before{content:"\f1556"}.mdi-delete-clock-outline:before{content:"\f1557"}.mdi-delete-empty:before{content:"\f06cc"}.mdi-delete-empty-outline:before{content:"\f0e9d"}.mdi-delete-forever:before{content:"\f05e8"}.mdi-delete-forever-outline:before{content:"\f0b89"}.mdi-delete-off:before{content:"\f10a7"}.mdi-delete-off-outline:before{content:"\f10a8"}.mdi-delete-outline:before{content:"\f09e7"}.mdi-delete-restore:before{content:"\f0819"}.mdi-delete-sweep:before{content:"\f05e9"}.mdi-delete-sweep-outline:before{content:"\f0c62"}.mdi-delete-variant:before{content:"\f01b3"}.mdi-delta:before{content:"\f01c2"}.mdi-desk:before{content:"\f1239"}.mdi-desk-lamp:before{content:"\f095f"}.mdi-desk-lamp-off:before{content:"\f1b1f"}.mdi-desk-lamp-on:before{content:"\f1b20"}.mdi-deskphone:before{content:"\f01c3"}.mdi-desktop-classic:before{content:"\f07c0"}.mdi-desktop-tower:before{content:"\f01c5"}.mdi-desktop-tower-monitor:before{content:"\f0aab"}.mdi-details:before{content:"\f01c6"}.mdi-dev-to:before{content:"\f0d6e"}.mdi-developer-board:before{content:"\f0697"}.mdi-deviantart:before{content:"\f01c7"}.mdi-devices:before{content:"\f0fb0"}.mdi-dharmachakra:before{content:"\f094b"}.mdi-diabetes:before{content:"\f1126"}.mdi-dialpad:before{content:"\f061c"}.mdi-diameter:before{content:"\f0c63"}.mdi-diameter-outline:before{content:"\f0c64"}.mdi-diameter-variant:before{content:"\f0c65"}.mdi-diamond:before{content:"\f0b8a"}.mdi-diamond-outline:before{content:"\f0b8b"}.mdi-diamond-stone:before{content:"\f01c8"}.mdi-diaper-outline:before{content:"\f1ccf"}.mdi-dice-1:before{content:"\f01ca"}.mdi-dice-1-outline:before{content:"\f114a"}.mdi-dice-2:before{content:"\f01cb"}.mdi-dice-2-outline:before{content:"\f114b"}.mdi-dice-3:before{content:"\f01cc"}.mdi-dice-3-outline:before{content:"\f114c"}.mdi-dice-4:before{content:"\f01cd"}.mdi-dice-4-outline:before{content:"\f114d"}.mdi-dice-5:before{content:"\f01ce"}.mdi-dice-5-outline:before{content:"\f114e"}.mdi-dice-6:before{content:"\f01cf"}.mdi-dice-6-outline:before{content:"\f114f"}.mdi-dice-d10:before{content:"\f1153"}.mdi-dice-d10-outline:before{content:"\f076f"}.mdi-dice-d12:before{content:"\f1154"}.mdi-dice-d12-outline:before{content:"\f0867"}.mdi-dice-d20:before{content:"\f1155"}.mdi-dice-d20-outline:before{content:"\f05ea"}.mdi-dice-d4:before{content:"\f1150"}.mdi-dice-d4-outline:before{content:"\f05eb"}.mdi-dice-d6:before{content:"\f1151"}.mdi-dice-d6-outline:before{content:"\f05ed"}.mdi-dice-d8:before{content:"\f1152"}.mdi-dice-d8-outline:before{content:"\f05ec"}.mdi-dice-multiple:before{content:"\f076e"}.mdi-dice-multiple-outline:before{content:"\f1156"}.mdi-digital-ocean:before{content:"\f1237"}.mdi-dip-switch:before{content:"\f07c1"}.mdi-directions:before{content:"\f01d0"}.mdi-directions-fork:before{content:"\f0641"}.mdi-disc:before{content:"\f05ee"}.mdi-disc-alert:before{content:"\f01d1"}.mdi-disc-player:before{content:"\f0960"}.mdi-dishwasher:before{content:"\f0aac"}.mdi-dishwasher-alert:before{content:"\f11b8"}.mdi-dishwasher-off:before{content:"\f11b9"}.mdi-disqus:before{content:"\f01d2"}.mdi-distribute-horizontal-center:before{content:"\f11c9"}.mdi-distribute-horizontal-left:before{content:"\f11c8"}.mdi-distribute-horizontal-right:before{content:"\f11ca"}.mdi-distribute-vertical-bottom:before{content:"\f11cb"}.mdi-distribute-vertical-center:before{content:"\f11cc"}.mdi-distribute-vertical-top:before{content:"\f11cd"}.mdi-diversify:before{content:"\f1877"}.mdi-diving:before{content:"\f1977"}.mdi-diving-flippers:before{content:"\f0dbf"}.mdi-diving-helmet:before{content:"\f0dc0"}.mdi-diving-scuba:before{content:"\f1b77"}.mdi-diving-scuba-flag:before{content:"\f0dc2"}.mdi-diving-scuba-mask:before{content:"\f0dc1"}.mdi-diving-scuba-tank:before{content:"\f0dc3"}.mdi-diving-scuba-tank-multiple:before{content:"\f0dc4"}.mdi-diving-snorkel:before{content:"\f0dc5"}.mdi-division:before{content:"\f01d4"}.mdi-division-box:before{content:"\f01d5"}.mdi-dlna:before{content:"\f0a41"}.mdi-dna:before{content:"\f0684"}.mdi-dns:before{content:"\f01d6"}.mdi-dns-outline:before{content:"\f0b8c"}.mdi-dock-bottom:before{content:"\f10a9"}.mdi-dock-left:before{content:"\f10aa"}.mdi-dock-right:before{content:"\f10ab"}.mdi-dock-top:before{content:"\f1513"}.mdi-dock-window:before{content:"\f10ac"}.mdi-docker:before{content:"\f0868"}.mdi-doctor:before{content:"\f0a42"}.mdi-dog:before{content:"\f0a43"}.mdi-dog-service:before{content:"\f0aad"}.mdi-dog-side:before{content:"\f0a44"}.mdi-dog-side-off:before{content:"\f16ee"}.mdi-dolby:before{content:"\f06b3"}.mdi-dolly:before{content:"\f0e9e"}.mdi-dolphin:before{content:"\f18b4"}.mdi-domain:before{content:"\f01d7"}.mdi-domain-off:before{content:"\f0d6f"}.mdi-domain-plus:before{content:"\f10ad"}.mdi-domain-remove:before{content:"\f10ae"}.mdi-domain-switch:before{content:"\f1c2c"}.mdi-dome-light:before{content:"\f141e"}.mdi-domino-mask:before{content:"\f1023"}.mdi-donkey:before{content:"\f07c2"}.mdi-door:before{content:"\f081a"}.mdi-door-closed:before{content:"\f081b"}.mdi-door-closed-cancel:before{content:"\f1c93"}.mdi-door-closed-lock:before{content:"\f10af"}.mdi-door-open:before{content:"\f081c"}.mdi-door-sliding:before{content:"\f181e"}.mdi-door-sliding-lock:before{content:"\f181f"}.mdi-door-sliding-open:before{content:"\f1820"}.mdi-doorbell:before{content:"\f12e6"}.mdi-doorbell-video:before{content:"\f0869"}.mdi-dot-net:before{content:"\f0aae"}.mdi-dots-circle:before{content:"\f1978"}.mdi-dots-grid:before{content:"\f15fc"}.mdi-dots-hexagon:before{content:"\f15ff"}.mdi-dots-horizontal:before{content:"\f01d8"}.mdi-dots-horizontal-circle:before{content:"\f07c3"}.mdi-dots-horizontal-circle-outline:before{content:"\f0b8d"}.mdi-dots-square:before{content:"\f15fd"}.mdi-dots-triangle:before{content:"\f15fe"}.mdi-dots-vertical:before{content:"\f01d9"}.mdi-dots-vertical-circle:before{content:"\f07c4"}.mdi-dots-vertical-circle-outline:before{content:"\f0b8e"}.mdi-download:before{content:"\f01da"}.mdi-download-box:before{content:"\f1462"}.mdi-download-box-outline:before{content:"\f1463"}.mdi-download-circle:before{content:"\f1464"}.mdi-download-circle-outline:before{content:"\f1465"}.mdi-download-lock:before{content:"\f1320"}.mdi-download-lock-outline:before{content:"\f1321"}.mdi-download-multiple:before{content:"\f09e9"}.mdi-download-multiple-outline:before{content:"\f1cd0"}.mdi-download-network:before{content:"\f06f4"}.mdi-download-network-outline:before{content:"\f0c66"}.mdi-download-off:before{content:"\f10b0"}.mdi-download-off-outline:before{content:"\f10b1"}.mdi-download-outline:before{content:"\f0b8f"}.mdi-drag:before{content:"\f01db"}.mdi-drag-horizontal:before{content:"\f01dc"}.mdi-drag-horizontal-variant:before{content:"\f12f0"}.mdi-drag-variant:before{content:"\f0b90"}.mdi-drag-vertical:before{content:"\f01dd"}.mdi-drag-vertical-variant:before{content:"\f12f1"}.mdi-drama-masks:before{content:"\f0d02"}.mdi-draw:before{content:"\f0f49"}.mdi-draw-pen:before{content:"\f19b9"}.mdi-drawing:before{content:"\f01de"}.mdi-drawing-box:before{content:"\f01df"}.mdi-dresser:before{content:"\f0f4a"}.mdi-dresser-outline:before{content:"\f0f4b"}.mdi-drone:before{content:"\f01e2"}.mdi-dropbox:before{content:"\f01e3"}.mdi-drupal:before{content:"\f01e4"}.mdi-duck:before{content:"\f01e5"}.mdi-dumbbell:before{content:"\f01e6"}.mdi-dump-truck:before{content:"\f0c67"}.mdi-ear-hearing:before{content:"\f07c5"}.mdi-ear-hearing-loop:before{content:"\f1aee"}.mdi-ear-hearing-off:before{content:"\f0a45"}.mdi-earbuds:before{content:"\f184f"}.mdi-earbuds-off:before{content:"\f1850"}.mdi-earbuds-off-outline:before{content:"\f1851"}.mdi-earbuds-outline:before{content:"\f1852"}.mdi-earth:before{content:"\f01e7"}.mdi-earth-arrow-down:before{content:"\f1c87"}.mdi-earth-arrow-left:before{content:"\f1c88"}.mdi-earth-arrow-right:before{content:"\f1311"}.mdi-earth-arrow-up:before{content:"\f1c89"}.mdi-earth-box:before{content:"\f06cd"}.mdi-earth-box-minus:before{content:"\f1407"}.mdi-earth-box-off:before{content:"\f06ce"}.mdi-earth-box-plus:before{content:"\f1406"}.mdi-earth-box-remove:before{content:"\f1408"}.mdi-earth-minus:before{content:"\f1404"}.mdi-earth-off:before{content:"\f01e8"}.mdi-earth-plus:before{content:"\f1403"}.mdi-earth-remove:before{content:"\f1405"}.mdi-egg:before{content:"\f0aaf"}.mdi-egg-easter:before{content:"\f0ab0"}.mdi-egg-fried:before{content:"\f184a"}.mdi-egg-off:before{content:"\f13f0"}.mdi-egg-off-outline:before{content:"\f13f1"}.mdi-egg-outline:before{content:"\f13f2"}.mdi-eiffel-tower:before{content:"\f156b"}.mdi-eight-track:before{content:"\f09ea"}.mdi-eject:before{content:"\f01ea"}.mdi-eject-circle:before{content:"\f1b23"}.mdi-eject-circle-outline:before{content:"\f1b24"}.mdi-eject-outline:before{content:"\f0b91"}.mdi-electric-switch:before{content:"\f0e9f"}.mdi-electric-switch-closed:before{content:"\f10d9"}.mdi-electron-framework:before{content:"\f1024"}.mdi-elephant:before{content:"\f07c6"}.mdi-elevation-decline:before{content:"\f01eb"}.mdi-elevation-rise:before{content:"\f01ec"}.mdi-elevator:before{content:"\f01ed"}.mdi-elevator-down:before{content:"\f12c2"}.mdi-elevator-passenger:before{content:"\f1381"}.mdi-elevator-passenger-off:before{content:"\f1979"}.mdi-elevator-passenger-off-outline:before{content:"\f197a"}.mdi-elevator-passenger-outline:before{content:"\f197b"}.mdi-elevator-up:before{content:"\f12c1"}.mdi-ellipse:before{content:"\f0ea0"}.mdi-ellipse-outline:before{content:"\f0ea1"}.mdi-email:before{content:"\f01ee"}.mdi-email-alert:before{content:"\f06cf"}.mdi-email-alert-outline:before{content:"\f0d42"}.mdi-email-arrow-left:before{content:"\f10da"}.mdi-email-arrow-left-outline:before{content:"\f10db"}.mdi-email-arrow-right:before{content:"\f10dc"}.mdi-email-arrow-right-outline:before{content:"\f10dd"}.mdi-email-box:before{content:"\f0d03"}.mdi-email-check:before{content:"\f0ab1"}.mdi-email-check-outline:before{content:"\f0ab2"}.mdi-email-edit:before{content:"\f0ee3"}.mdi-email-edit-outline:before{content:"\f0ee4"}.mdi-email-fast:before{content:"\f186f"}.mdi-email-fast-outline:before{content:"\f1870"}.mdi-email-heart-outline:before{content:"\f1c5b"}.mdi-email-lock:before{content:"\f01f1"}.mdi-email-lock-outline:before{content:"\f1b61"}.mdi-email-mark-as-unread:before{content:"\f0b92"}.mdi-email-minus:before{content:"\f0ee5"}.mdi-email-minus-outline:before{content:"\f0ee6"}.mdi-email-multiple:before{content:"\f0ee7"}.mdi-email-multiple-outline:before{content:"\f0ee8"}.mdi-email-newsletter:before{content:"\f0fb1"}.mdi-email-off:before{content:"\f13e3"}.mdi-email-off-outline:before{content:"\f13e4"}.mdi-email-open:before{content:"\f01ef"}.mdi-email-open-heart-outline:before{content:"\f1c5c"}.mdi-email-open-multiple:before{content:"\f0ee9"}.mdi-email-open-multiple-outline:before{content:"\f0eea"}.mdi-email-open-outline:before{content:"\f05ef"}.mdi-email-outline:before{content:"\f01f0"}.mdi-email-plus:before{content:"\f09eb"}.mdi-email-plus-outline:before{content:"\f09ec"}.mdi-email-remove:before{content:"\f1661"}.mdi-email-remove-outline:before{content:"\f1662"}.mdi-email-seal:before{content:"\f195b"}.mdi-email-seal-outline:before{content:"\f195c"}.mdi-email-search:before{content:"\f0961"}.mdi-email-search-outline:before{content:"\f0962"}.mdi-email-sync:before{content:"\f12c7"}.mdi-email-sync-outline:before{content:"\f12c8"}.mdi-email-variant:before{content:"\f05f0"}.mdi-ember:before{content:"\f0b30"}.mdi-emby:before{content:"\f06b4"}.mdi-emoticon:before{content:"\f0c68"}.mdi-emoticon-angry:before{content:"\f0c69"}.mdi-emoticon-angry-outline:before{content:"\f0c6a"}.mdi-emoticon-confused:before{content:"\f10de"}.mdi-emoticon-confused-outline:before{content:"\f10df"}.mdi-emoticon-cool:before{content:"\f0c6b"}.mdi-emoticon-cool-outline:before{content:"\f01f3"}.mdi-emoticon-cry:before{content:"\f0c6c"}.mdi-emoticon-cry-outline:before{content:"\f0c6d"}.mdi-emoticon-dead:before{content:"\f0c6e"}.mdi-emoticon-dead-outline:before{content:"\f069b"}.mdi-emoticon-devil:before{content:"\f0c6f"}.mdi-emoticon-devil-outline:before{content:"\f01f4"}.mdi-emoticon-excited:before{content:"\f0c70"}.mdi-emoticon-excited-outline:before{content:"\f069c"}.mdi-emoticon-frown:before{content:"\f0f4c"}.mdi-emoticon-frown-outline:before{content:"\f0f4d"}.mdi-emoticon-happy:before{content:"\f0c71"}.mdi-emoticon-happy-outline:before{content:"\f01f5"}.mdi-emoticon-kiss:before{content:"\f0c72"}.mdi-emoticon-kiss-outline:before{content:"\f0c73"}.mdi-emoticon-lol:before{content:"\f1214"}.mdi-emoticon-lol-outline:before{content:"\f1215"}.mdi-emoticon-minus:before{content:"\f1cb2"}.mdi-emoticon-minus-outline:before{content:"\f1cb3"}.mdi-emoticon-neutral:before{content:"\f0c74"}.mdi-emoticon-neutral-outline:before{content:"\f01f6"}.mdi-emoticon-outline:before{content:"\f01f2"}.mdi-emoticon-plus:before{content:"\f1cb4"}.mdi-emoticon-plus-outline:before{content:"\f1cb5"}.mdi-emoticon-poop:before{content:"\f01f7"}.mdi-emoticon-poop-outline:before{content:"\f0c75"}.mdi-emoticon-remove:before{content:"\f1cb6"}.mdi-emoticon-remove-outline:before{content:"\f1cb7"}.mdi-emoticon-sad:before{content:"\f0c76"}.mdi-emoticon-sad-outline:before{content:"\f01f8"}.mdi-emoticon-sick:before{content:"\f157c"}.mdi-emoticon-sick-outline:before{content:"\f157d"}.mdi-emoticon-tongue:before{content:"\f01f9"}.mdi-emoticon-tongue-outline:before{content:"\f0c77"}.mdi-emoticon-wink:before{content:"\f0c78"}.mdi-emoticon-wink-outline:before{content:"\f0c79"}.mdi-engine:before{content:"\f01fa"}.mdi-engine-off:before{content:"\f0a46"}.mdi-engine-off-outline:before{content:"\f0a47"}.mdi-engine-outline:before{content:"\f01fb"}.mdi-epsilon:before{content:"\f10e0"}.mdi-equal:before{content:"\f01fc"}.mdi-equal-box:before{content:"\f01fd"}.mdi-equalizer:before{content:"\f0ea2"}.mdi-equalizer-outline:before{content:"\f0ea3"}.mdi-eraser:before{content:"\f01fe"}.mdi-eraser-variant:before{content:"\f0642"}.mdi-escalator:before{content:"\f01ff"}.mdi-escalator-box:before{content:"\f1399"}.mdi-escalator-down:before{content:"\f12c0"}.mdi-escalator-up:before{content:"\f12bf"}.mdi-eslint:before{content:"\f0c7a"}.mdi-et:before{content:"\f0ab3"}.mdi-ethereum:before{content:"\f086a"}.mdi-ethernet:before{content:"\f0200"}.mdi-ethernet-cable:before{content:"\f0201"}.mdi-ethernet-cable-off:before{content:"\f0202"}.mdi-ethernet-off:before{content:"\f1cd1"}.mdi-ev-plug-ccs1:before{content:"\f1519"}.mdi-ev-plug-ccs2:before{content:"\f151a"}.mdi-ev-plug-chademo:before{content:"\f151b"}.mdi-ev-plug-tesla:before{content:"\f151c"}.mdi-ev-plug-type1:before{content:"\f151d"}.mdi-ev-plug-type2:before{content:"\f151e"}.mdi-ev-station:before{content:"\f05f1"}.mdi-evernote:before{content:"\f0204"}.mdi-excavator:before{content:"\f1025"}.mdi-exclamation:before{content:"\f0205"}.mdi-exclamation-thick:before{content:"\f1238"}.mdi-exit-run:before{content:"\f0a48"}.mdi-exit-to-app:before{content:"\f0206"}.mdi-expand-all:before{content:"\f0ab4"}.mdi-expand-all-outline:before{content:"\f0ab5"}.mdi-expansion-card:before{content:"\f08ae"}.mdi-expansion-card-variant:before{content:"\f0fb2"}.mdi-exponent:before{content:"\f0963"}.mdi-exponent-box:before{content:"\f0964"}.mdi-export:before{content:"\f0207"}.mdi-export-variant:before{content:"\f0b93"}.mdi-eye:before{content:"\f0208"}.mdi-eye-arrow-left:before{content:"\f18fd"}.mdi-eye-arrow-left-outline:before{content:"\f18fe"}.mdi-eye-arrow-right:before{content:"\f18ff"}.mdi-eye-arrow-right-outline:before{content:"\f1900"}.mdi-eye-check:before{content:"\f0d04"}.mdi-eye-check-outline:before{content:"\f0d05"}.mdi-eye-circle:before{content:"\f0b94"}.mdi-eye-circle-outline:before{content:"\f0b95"}.mdi-eye-closed:before{content:"\f1ca3"}.mdi-eye-lock:before{content:"\f1c06"}.mdi-eye-lock-open:before{content:"\f1c07"}.mdi-eye-lock-open-outline:before{content:"\f1c08"}.mdi-eye-lock-outline:before{content:"\f1c09"}.mdi-eye-minus:before{content:"\f1026"}.mdi-eye-minus-outline:before{content:"\f1027"}.mdi-eye-off:before{content:"\f0209"}.mdi-eye-off-outline:before{content:"\f06d1"}.mdi-eye-outline:before{content:"\f06d0"}.mdi-eye-plus:before{content:"\f086b"}.mdi-eye-plus-outline:before{content:"\f086c"}.mdi-eye-refresh:before{content:"\f197c"}.mdi-eye-refresh-outline:before{content:"\f197d"}.mdi-eye-remove:before{content:"\f15e3"}.mdi-eye-remove-outline:before{content:"\f15e4"}.mdi-eye-settings:before{content:"\f086d"}.mdi-eye-settings-outline:before{content:"\f086e"}.mdi-eyedropper:before{content:"\f020a"}.mdi-eyedropper-minus:before{content:"\f13dd"}.mdi-eyedropper-off:before{content:"\f13df"}.mdi-eyedropper-plus:before{content:"\f13dc"}.mdi-eyedropper-remove:before{content:"\f13de"}.mdi-eyedropper-variant:before{content:"\f020b"}.mdi-face-agent:before{content:"\f0d70"}.mdi-face-man:before{content:"\f0643"}.mdi-face-man-outline:before{content:"\f0b96"}.mdi-face-man-profile:before{content:"\f0644"}.mdi-face-man-shimmer:before{content:"\f15cc"}.mdi-face-man-shimmer-outline:before{content:"\f15cd"}.mdi-face-mask:before{content:"\f1586"}.mdi-face-mask-outline:before{content:"\f1587"}.mdi-face-recognition:before{content:"\f0c7b"}.mdi-face-woman:before{content:"\f1077"}.mdi-face-woman-outline:before{content:"\f1078"}.mdi-face-woman-profile:before{content:"\f1076"}.mdi-face-woman-shimmer:before{content:"\f15ce"}.mdi-face-woman-shimmer-outline:before{content:"\f15cf"}.mdi-facebook:before{content:"\f020c"}.mdi-facebook-gaming:before{content:"\f07dd"}.mdi-facebook-messenger:before{content:"\f020e"}.mdi-facebook-workplace:before{content:"\f0b31"}.mdi-factory:before{content:"\f020f"}.mdi-family-tree:before{content:"\f160e"}.mdi-fan:before{content:"\f0210"}.mdi-fan-alert:before{content:"\f146c"}.mdi-fan-auto:before{content:"\f171d"}.mdi-fan-chevron-down:before{content:"\f146d"}.mdi-fan-chevron-up:before{content:"\f146e"}.mdi-fan-clock:before{content:"\f1a3a"}.mdi-fan-minus:before{content:"\f1470"}.mdi-fan-off:before{content:"\f081d"}.mdi-fan-plus:before{content:"\f146f"}.mdi-fan-remove:before{content:"\f1471"}.mdi-fan-speed-1:before{content:"\f1472"}.mdi-fan-speed-2:before{content:"\f1473"}.mdi-fan-speed-3:before{content:"\f1474"}.mdi-fast-forward:before{content:"\f0211"}.mdi-fast-forward-10:before{content:"\f0d71"}.mdi-fast-forward-15:before{content:"\f193a"}.mdi-fast-forward-30:before{content:"\f0d06"}.mdi-fast-forward-45:before{content:"\f1b12"}.mdi-fast-forward-5:before{content:"\f11f8"}.mdi-fast-forward-60:before{content:"\f160b"}.mdi-fast-forward-outline:before{content:"\f06d2"}.mdi-faucet:before{content:"\f1b29"}.mdi-faucet-variant:before{content:"\f1b2a"}.mdi-fax:before{content:"\f0212"}.mdi-feather:before{content:"\f06d3"}.mdi-feature-search:before{content:"\f0a49"}.mdi-feature-search-outline:before{content:"\f0a4a"}.mdi-fedora:before{content:"\f08db"}.mdi-fence:before{content:"\f179a"}.mdi-fence-electric:before{content:"\f17f6"}.mdi-fencing:before{content:"\f14c1"}.mdi-ferris-wheel:before{content:"\f0ea4"}.mdi-ferry:before{content:"\f0213"}.mdi-file:before{content:"\f0214"}.mdi-file-account:before{content:"\f073b"}.mdi-file-account-outline:before{content:"\f1028"}.mdi-file-alert:before{content:"\f0a4b"}.mdi-file-alert-outline:before{content:"\f0a4c"}.mdi-file-arrow-left-right:before{content:"\f1a93"}.mdi-file-arrow-left-right-outline:before{content:"\f1a94"}.mdi-file-arrow-up-down:before{content:"\f1a95"}.mdi-file-arrow-up-down-outline:before{content:"\f1a96"}.mdi-file-cabinet:before{content:"\f0ab6"}.mdi-file-cad:before{content:"\f0eeb"}.mdi-file-cad-box:before{content:"\f0eec"}.mdi-file-cancel:before{content:"\f0dc6"}.mdi-file-cancel-outline:before{content:"\f0dc7"}.mdi-file-certificate:before{content:"\f1186"}.mdi-file-certificate-outline:before{content:"\f1187"}.mdi-file-chart:before{content:"\f0215"}.mdi-file-chart-check:before{content:"\f19c6"}.mdi-file-chart-check-outline:before{content:"\f19c7"}.mdi-file-chart-outline:before{content:"\f1029"}.mdi-file-check:before{content:"\f0216"}.mdi-file-check-outline:before{content:"\f0e29"}.mdi-file-clock:before{content:"\f12e1"}.mdi-file-clock-outline:before{content:"\f12e2"}.mdi-file-cloud:before{content:"\f0217"}.mdi-file-cloud-outline:before{content:"\f102a"}.mdi-file-code:before{content:"\f022e"}.mdi-file-code-outline:before{content:"\f102b"}.mdi-file-cog:before{content:"\f107b"}.mdi-file-cog-outline:before{content:"\f107c"}.mdi-file-compare:before{content:"\f08aa"}.mdi-file-delimited:before{content:"\f0218"}.mdi-file-delimited-outline:before{content:"\f0ea5"}.mdi-file-document:before{content:"\f0219"}.mdi-file-document-alert:before{content:"\f1a97"}.mdi-file-document-alert-outline:before{content:"\f1a98"}.mdi-file-document-arrow-right:before{content:"\f1c0f"}.mdi-file-document-arrow-right-outline:before{content:"\f1c10"}.mdi-file-document-check:before{content:"\f1a99"}.mdi-file-document-check-outline:before{content:"\f1a9a"}.mdi-file-document-edit:before{content:"\f0dc8"}.mdi-file-document-edit-outline:before{content:"\f0dc9"}.mdi-file-document-minus:before{content:"\f1a9b"}.mdi-file-document-minus-outline:before{content:"\f1a9c"}.mdi-file-document-multiple:before{content:"\f1517"}.mdi-file-document-multiple-outline:before{content:"\f1518"}.mdi-file-document-outline:before{content:"\f09ee"}.mdi-file-document-plus:before{content:"\f1a9d"}.mdi-file-document-plus-outline:before{content:"\f1a9e"}.mdi-file-document-refresh:before{content:"\f1c7a"}.mdi-file-document-refresh-outline:before{content:"\f1c7b"}.mdi-file-document-remove:before{content:"\f1a9f"}.mdi-file-document-remove-outline:before{content:"\f1aa0"}.mdi-file-download:before{content:"\f0965"}.mdi-file-download-outline:before{content:"\f0966"}.mdi-file-edit:before{content:"\f11e7"}.mdi-file-edit-outline:before{content:"\f11e8"}.mdi-file-excel:before{content:"\f021b"}.mdi-file-excel-box:before{content:"\f021c"}.mdi-file-excel-box-outline:before{content:"\f102c"}.mdi-file-excel-outline:before{content:"\f102d"}.mdi-file-export:before{content:"\f021d"}.mdi-file-export-outline:before{content:"\f102e"}.mdi-file-eye:before{content:"\f0dca"}.mdi-file-eye-outline:before{content:"\f0dcb"}.mdi-file-find:before{content:"\f021e"}.mdi-file-find-outline:before{content:"\f0b97"}.mdi-file-gif-box:before{content:"\f0d78"}.mdi-file-hidden:before{content:"\f0613"}.mdi-file-image:before{content:"\f021f"}.mdi-file-image-marker:before{content:"\f1772"}.mdi-file-image-marker-outline:before{content:"\f1773"}.mdi-file-image-minus:before{content:"\f193b"}.mdi-file-image-minus-outline:before{content:"\f193c"}.mdi-file-image-outline:before{content:"\f0eb0"}.mdi-file-image-plus:before{content:"\f193d"}.mdi-file-image-plus-outline:before{content:"\f193e"}.mdi-file-image-remove:before{content:"\f193f"}.mdi-file-image-remove-outline:before{content:"\f1940"}.mdi-file-import:before{content:"\f0220"}.mdi-file-import-outline:before{content:"\f102f"}.mdi-file-jpg-box:before{content:"\f0225"}.mdi-file-key:before{content:"\f1184"}.mdi-file-key-outline:before{content:"\f1185"}.mdi-file-link:before{content:"\f1177"}.mdi-file-link-outline:before{content:"\f1178"}.mdi-file-lock:before{content:"\f0221"}.mdi-file-lock-open:before{content:"\f19c8"}.mdi-file-lock-open-outline:before{content:"\f19c9"}.mdi-file-lock-outline:before{content:"\f1030"}.mdi-file-marker:before{content:"\f1774"}.mdi-file-marker-outline:before{content:"\f1775"}.mdi-file-minus:before{content:"\f1aa1"}.mdi-file-minus-outline:before{content:"\f1aa2"}.mdi-file-move:before{content:"\f0ab9"}.mdi-file-move-outline:before{content:"\f1031"}.mdi-file-multiple:before{content:"\f0222"}.mdi-file-multiple-outline:before{content:"\f1032"}.mdi-file-music:before{content:"\f0223"}.mdi-file-music-outline:before{content:"\f0e2a"}.mdi-file-outline:before{content:"\f0224"}.mdi-file-pdf-box:before{content:"\f0226"}.mdi-file-percent:before{content:"\f081e"}.mdi-file-percent-outline:before{content:"\f1033"}.mdi-file-phone:before{content:"\f1179"}.mdi-file-phone-outline:before{content:"\f117a"}.mdi-file-plus:before{content:"\f0752"}.mdi-file-plus-outline:before{content:"\f0eed"}.mdi-file-png-box:before{content:"\f0e2d"}.mdi-file-powerpoint:before{content:"\f0227"}.mdi-file-powerpoint-box:before{content:"\f0228"}.mdi-file-powerpoint-box-outline:before{content:"\f1034"}.mdi-file-powerpoint-outline:before{content:"\f1035"}.mdi-file-presentation-box:before{content:"\f0229"}.mdi-file-question:before{content:"\f086f"}.mdi-file-question-outline:before{content:"\f1036"}.mdi-file-refresh:before{content:"\f0918"}.mdi-file-refresh-outline:before{content:"\f0541"}.mdi-file-remove:before{content:"\f0b98"}.mdi-file-remove-outline:before{content:"\f1037"}.mdi-file-replace:before{content:"\f0b32"}.mdi-file-replace-outline:before{content:"\f0b33"}.mdi-file-restore:before{content:"\f0670"}.mdi-file-restore-outline:before{content:"\f1038"}.mdi-file-rotate-left:before{content:"\f1a3b"}.mdi-file-rotate-left-outline:before{content:"\f1a3c"}.mdi-file-rotate-right:before{content:"\f1a3d"}.mdi-file-rotate-right-outline:before{content:"\f1a3e"}.mdi-file-search:before{content:"\f0c7c"}.mdi-file-search-outline:before{content:"\f0c7d"}.mdi-file-send:before{content:"\f022a"}.mdi-file-send-outline:before{content:"\f1039"}.mdi-file-settings:before{content:"\f1079"}.mdi-file-settings-outline:before{content:"\f107a"}.mdi-file-sign:before{content:"\f19c3"}.mdi-file-star:before{content:"\f103a"}.mdi-file-star-four-points:before{content:"\f1c2d"}.mdi-file-star-four-points-outline:before{content:"\f1c2e"}.mdi-file-star-outline:before{content:"\f103b"}.mdi-file-swap:before{content:"\f0fb4"}.mdi-file-swap-outline:before{content:"\f0fb5"}.mdi-file-sync:before{content:"\f1216"}.mdi-file-sync-outline:before{content:"\f1217"}.mdi-file-table:before{content:"\f0c7e"}.mdi-file-table-box:before{content:"\f10e1"}.mdi-file-table-box-multiple:before{content:"\f10e2"}.mdi-file-table-box-multiple-outline:before{content:"\f10e3"}.mdi-file-table-box-outline:before{content:"\f10e4"}.mdi-file-table-outline:before{content:"\f0c7f"}.mdi-file-tree:before{content:"\f0645"}.mdi-file-tree-outline:before{content:"\f13d2"}.mdi-file-undo:before{content:"\f08dc"}.mdi-file-undo-outline:before{content:"\f103c"}.mdi-file-upload:before{content:"\f0a4d"}.mdi-file-upload-outline:before{content:"\f0a4e"}.mdi-file-video:before{content:"\f022b"}.mdi-file-video-outline:before{content:"\f0e2c"}.mdi-file-word:before{content:"\f022c"}.mdi-file-word-box:before{content:"\f022d"}.mdi-file-word-box-outline:before{content:"\f103d"}.mdi-file-word-outline:before{content:"\f103e"}.mdi-file-xml-box:before{content:"\f1b4b"}.mdi-film:before{content:"\f022f"}.mdi-filmstrip:before{content:"\f0230"}.mdi-filmstrip-box:before{content:"\f0332"}.mdi-filmstrip-box-multiple:before{content:"\f0d18"}.mdi-filmstrip-off:before{content:"\f0231"}.mdi-filter:before{content:"\f0232"}.mdi-filter-check:before{content:"\f18ec"}.mdi-filter-check-outline:before{content:"\f18ed"}.mdi-filter-cog:before{content:"\f1aa3"}.mdi-filter-cog-outline:before{content:"\f1aa4"}.mdi-filter-menu:before{content:"\f10e5"}.mdi-filter-menu-outline:before{content:"\f10e6"}.mdi-filter-minus:before{content:"\f0eee"}.mdi-filter-minus-outline:before{content:"\f0eef"}.mdi-filter-multiple:before{content:"\f1a3f"}.mdi-filter-multiple-outline:before{content:"\f1a40"}.mdi-filter-off:before{content:"\f14ef"}.mdi-filter-off-outline:before{content:"\f14f0"}.mdi-filter-outline:before{content:"\f0233"}.mdi-filter-plus:before{content:"\f0ef0"}.mdi-filter-plus-outline:before{content:"\f0ef1"}.mdi-filter-remove:before{content:"\f0234"}.mdi-filter-remove-outline:before{content:"\f0235"}.mdi-filter-settings:before{content:"\f1aa5"}.mdi-filter-settings-outline:before{content:"\f1aa6"}.mdi-filter-variant:before{content:"\f0236"}.mdi-filter-variant-minus:before{content:"\f1112"}.mdi-filter-variant-plus:before{content:"\f1113"}.mdi-filter-variant-remove:before{content:"\f103f"}.mdi-finance:before{content:"\f081f"}.mdi-find-replace:before{content:"\f06d4"}.mdi-fingerprint:before{content:"\f0237"}.mdi-fingerprint-off:before{content:"\f0eb1"}.mdi-fire:before{content:"\f0238"}.mdi-fire-alert:before{content:"\f15d7"}.mdi-fire-circle:before{content:"\f1807"}.mdi-fire-extinguisher:before{content:"\f0ef2"}.mdi-fire-hydrant:before{content:"\f1137"}.mdi-fire-hydrant-alert:before{content:"\f1138"}.mdi-fire-hydrant-off:before{content:"\f1139"}.mdi-fire-off:before{content:"\f1722"}.mdi-fire-station:before{content:"\f1cc3"}.mdi-fire-truck:before{content:"\f08ab"}.mdi-firebase:before{content:"\f0967"}.mdi-firefox:before{content:"\f0239"}.mdi-fireplace:before{content:"\f0e2e"}.mdi-fireplace-off:before{content:"\f0e2f"}.mdi-firewire:before{content:"\f05be"}.mdi-firework:before{content:"\f0e30"}.mdi-firework-off:before{content:"\f1723"}.mdi-fish:before{content:"\f023a"}.mdi-fish-off:before{content:"\f13f3"}.mdi-fishbowl:before{content:"\f0ef3"}.mdi-fishbowl-outline:before{content:"\f0ef4"}.mdi-fit-to-page:before{content:"\f0ef5"}.mdi-fit-to-page-outline:before{content:"\f0ef6"}.mdi-fit-to-screen:before{content:"\f18f4"}.mdi-fit-to-screen-outline:before{content:"\f18f5"}.mdi-flag:before{content:"\f023b"}.mdi-flag-checkered:before{content:"\f023c"}.mdi-flag-minus:before{content:"\f0b99"}.mdi-flag-minus-outline:before{content:"\f10b2"}.mdi-flag-off:before{content:"\f18ee"}.mdi-flag-off-outline:before{content:"\f18ef"}.mdi-flag-outline:before{content:"\f023d"}.mdi-flag-plus:before{content:"\f0b9a"}.mdi-flag-plus-outline:before{content:"\f10b3"}.mdi-flag-remove:before{content:"\f0b9b"}.mdi-flag-remove-outline:before{content:"\f10b4"}.mdi-flag-triangle:before{content:"\f023f"}.mdi-flag-variant:before{content:"\f0240"}.mdi-flag-variant-minus:before{content:"\f1bb4"}.mdi-flag-variant-minus-outline:before{content:"\f1bb5"}.mdi-flag-variant-off:before{content:"\f1bb0"}.mdi-flag-variant-off-outline:before{content:"\f1bb1"}.mdi-flag-variant-outline:before{content:"\f023e"}.mdi-flag-variant-plus:before{content:"\f1bb2"}.mdi-flag-variant-plus-outline:before{content:"\f1bb3"}.mdi-flag-variant-remove:before{content:"\f1bb6"}.mdi-flag-variant-remove-outline:before{content:"\f1bb7"}.mdi-flare:before{content:"\f0d72"}.mdi-flash:before{content:"\f0241"}.mdi-flash-alert:before{content:"\f0ef7"}.mdi-flash-alert-outline:before{content:"\f0ef8"}.mdi-flash-auto:before{content:"\f0242"}.mdi-flash-off:before{content:"\f0243"}.mdi-flash-off-outline:before{content:"\f1b45"}.mdi-flash-outline:before{content:"\f06d5"}.mdi-flash-red-eye:before{content:"\f067b"}.mdi-flash-triangle:before{content:"\f1b1d"}.mdi-flash-triangle-outline:before{content:"\f1b1e"}.mdi-flashlight:before{content:"\f0244"}.mdi-flashlight-off:before{content:"\f0245"}.mdi-flask:before{content:"\f0093"}.mdi-flask-empty:before{content:"\f0094"}.mdi-flask-empty-minus:before{content:"\f123a"}.mdi-flask-empty-minus-outline:before{content:"\f123b"}.mdi-flask-empty-off:before{content:"\f13f4"}.mdi-flask-empty-off-outline:before{content:"\f13f5"}.mdi-flask-empty-outline:before{content:"\f0095"}.mdi-flask-empty-plus:before{content:"\f123c"}.mdi-flask-empty-plus-outline:before{content:"\f123d"}.mdi-flask-empty-remove:before{content:"\f123e"}.mdi-flask-empty-remove-outline:before{content:"\f123f"}.mdi-flask-minus:before{content:"\f1240"}.mdi-flask-minus-outline:before{content:"\f1241"}.mdi-flask-off:before{content:"\f13f6"}.mdi-flask-off-outline:before{content:"\f13f7"}.mdi-flask-outline:before{content:"\f0096"}.mdi-flask-plus:before{content:"\f1242"}.mdi-flask-plus-outline:before{content:"\f1243"}.mdi-flask-remove:before{content:"\f1244"}.mdi-flask-remove-outline:before{content:"\f1245"}.mdi-flask-round-bottom:before{content:"\f124b"}.mdi-flask-round-bottom-empty:before{content:"\f124c"}.mdi-flask-round-bottom-empty-outline:before{content:"\f124d"}.mdi-flask-round-bottom-outline:before{content:"\f124e"}.mdi-fleur-de-lis:before{content:"\f1303"}.mdi-flip-horizontal:before{content:"\f10e7"}.mdi-flip-to-back:before{content:"\f0247"}.mdi-flip-to-front:before{content:"\f0248"}.mdi-flip-vertical:before{content:"\f10e8"}.mdi-floor-lamp:before{content:"\f08dd"}.mdi-floor-lamp-dual:before{content:"\f1040"}.mdi-floor-lamp-dual-outline:before{content:"\f17ce"}.mdi-floor-lamp-outline:before{content:"\f17c8"}.mdi-floor-lamp-torchiere:before{content:"\f1747"}.mdi-floor-lamp-torchiere-outline:before{content:"\f17d6"}.mdi-floor-lamp-torchiere-variant:before{content:"\f1041"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"\f17cf"}.mdi-floor-plan:before{content:"\f0821"}.mdi-floppy:before{content:"\f0249"}.mdi-floppy-variant:before{content:"\f09ef"}.mdi-flower:before{content:"\f024a"}.mdi-flower-outline:before{content:"\f09f0"}.mdi-flower-pollen:before{content:"\f1885"}.mdi-flower-pollen-outline:before{content:"\f1886"}.mdi-flower-poppy:before{content:"\f0d08"}.mdi-flower-tulip:before{content:"\f09f1"}.mdi-flower-tulip-outline:before{content:"\f09f2"}.mdi-focus-auto:before{content:"\f0f4e"}.mdi-focus-field:before{content:"\f0f4f"}.mdi-focus-field-horizontal:before{content:"\f0f50"}.mdi-focus-field-vertical:before{content:"\f0f51"}.mdi-folder:before{content:"\f024b"}.mdi-folder-account:before{content:"\f024c"}.mdi-folder-account-outline:before{content:"\f0b9c"}.mdi-folder-alert:before{content:"\f0dcc"}.mdi-folder-alert-outline:before{content:"\f0dcd"}.mdi-folder-arrow-down:before{content:"\f19e8"}.mdi-folder-arrow-down-outline:before{content:"\f19e9"}.mdi-folder-arrow-left:before{content:"\f19ea"}.mdi-folder-arrow-left-outline:before{content:"\f19eb"}.mdi-folder-arrow-left-right:before{content:"\f19ec"}.mdi-folder-arrow-left-right-outline:before{content:"\f19ed"}.mdi-folder-arrow-right:before{content:"\f19ee"}.mdi-folder-arrow-right-outline:before{content:"\f19ef"}.mdi-folder-arrow-up:before{content:"\f19f0"}.mdi-folder-arrow-up-down:before{content:"\f19f1"}.mdi-folder-arrow-up-down-outline:before{content:"\f19f2"}.mdi-folder-arrow-up-outline:before{content:"\f19f3"}.mdi-folder-cancel:before{content:"\f19f4"}.mdi-folder-cancel-outline:before{content:"\f19f5"}.mdi-folder-check:before{content:"\f197e"}.mdi-folder-check-outline:before{content:"\f197f"}.mdi-folder-clock:before{content:"\f0aba"}.mdi-folder-clock-outline:before{content:"\f0abb"}.mdi-folder-cog:before{content:"\f107f"}.mdi-folder-cog-outline:before{content:"\f1080"}.mdi-folder-download:before{content:"\f024d"}.mdi-folder-download-outline:before{content:"\f10e9"}.mdi-folder-edit:before{content:"\f08de"}.mdi-folder-edit-outline:before{content:"\f0dce"}.mdi-folder-eye:before{content:"\f178a"}.mdi-folder-eye-outline:before{content:"\f178b"}.mdi-folder-file:before{content:"\f19f6"}.mdi-folder-file-outline:before{content:"\f19f7"}.mdi-folder-google-drive:before{content:"\f024e"}.mdi-folder-heart:before{content:"\f10ea"}.mdi-folder-heart-outline:before{content:"\f10eb"}.mdi-folder-hidden:before{content:"\f179e"}.mdi-folder-home:before{content:"\f10b5"}.mdi-folder-home-outline:before{content:"\f10b6"}.mdi-folder-image:before{content:"\f024f"}.mdi-folder-information:before{content:"\f10b7"}.mdi-folder-information-outline:before{content:"\f10b8"}.mdi-folder-key:before{content:"\f08ac"}.mdi-folder-key-network:before{content:"\f08ad"}.mdi-folder-key-network-outline:before{content:"\f0c80"}.mdi-folder-key-outline:before{content:"\f10ec"}.mdi-folder-lock:before{content:"\f0250"}.mdi-folder-lock-open:before{content:"\f0251"}.mdi-folder-lock-open-outline:before{content:"\f1aa7"}.mdi-folder-lock-outline:before{content:"\f1aa8"}.mdi-folder-marker:before{content:"\f126d"}.mdi-folder-marker-outline:before{content:"\f126e"}.mdi-folder-minus:before{content:"\f1b49"}.mdi-folder-minus-outline:before{content:"\f1b4a"}.mdi-folder-move:before{content:"\f0252"}.mdi-folder-move-outline:before{content:"\f1246"}.mdi-folder-multiple:before{content:"\f0253"}.mdi-folder-multiple-image:before{content:"\f0254"}.mdi-folder-multiple-outline:before{content:"\f0255"}.mdi-folder-multiple-plus:before{content:"\f147e"}.mdi-folder-multiple-plus-outline:before{content:"\f147f"}.mdi-folder-music:before{content:"\f1359"}.mdi-folder-music-outline:before{content:"\f135a"}.mdi-folder-network:before{content:"\f0870"}.mdi-folder-network-outline:before{content:"\f0c81"}.mdi-folder-off:before{content:"\f19f8"}.mdi-folder-off-outline:before{content:"\f19f9"}.mdi-folder-open:before{content:"\f0770"}.mdi-folder-open-outline:before{content:"\f0dcf"}.mdi-folder-outline:before{content:"\f0256"}.mdi-folder-play:before{content:"\f19fa"}.mdi-folder-play-outline:before{content:"\f19fb"}.mdi-folder-plus:before{content:"\f0257"}.mdi-folder-plus-outline:before{content:"\f0b9d"}.mdi-folder-pound:before{content:"\f0d09"}.mdi-folder-pound-outline:before{content:"\f0d0a"}.mdi-folder-question:before{content:"\f19ca"}.mdi-folder-question-outline:before{content:"\f19cb"}.mdi-folder-refresh:before{content:"\f0749"}.mdi-folder-refresh-outline:before{content:"\f0542"}.mdi-folder-remove:before{content:"\f0258"}.mdi-folder-remove-outline:before{content:"\f0b9e"}.mdi-folder-search:before{content:"\f0968"}.mdi-folder-search-outline:before{content:"\f0969"}.mdi-folder-settings:before{content:"\f107d"}.mdi-folder-settings-outline:before{content:"\f107e"}.mdi-folder-star:before{content:"\f069d"}.mdi-folder-star-multiple:before{content:"\f13d3"}.mdi-folder-star-multiple-outline:before{content:"\f13d4"}.mdi-folder-star-outline:before{content:"\f0b9f"}.mdi-folder-swap:before{content:"\f0fb6"}.mdi-folder-swap-outline:before{content:"\f0fb7"}.mdi-folder-sync:before{content:"\f0d0b"}.mdi-folder-sync-outline:before{content:"\f0d0c"}.mdi-folder-table:before{content:"\f12e3"}.mdi-folder-table-outline:before{content:"\f12e4"}.mdi-folder-text:before{content:"\f0c82"}.mdi-folder-text-outline:before{content:"\f0c83"}.mdi-folder-upload:before{content:"\f0259"}.mdi-folder-upload-outline:before{content:"\f10ed"}.mdi-folder-wrench:before{content:"\f19fc"}.mdi-folder-wrench-outline:before{content:"\f19fd"}.mdi-folder-zip:before{content:"\f06eb"}.mdi-folder-zip-outline:before{content:"\f07b9"}.mdi-font-awesome:before{content:"\f003a"}.mdi-food:before{content:"\f025a"}.mdi-food-apple:before{content:"\f025b"}.mdi-food-apple-outline:before{content:"\f0c84"}.mdi-food-croissant:before{content:"\f07c8"}.mdi-food-drumstick:before{content:"\f141f"}.mdi-food-drumstick-off:before{content:"\f1468"}.mdi-food-drumstick-off-outline:before{content:"\f1469"}.mdi-food-drumstick-outline:before{content:"\f1420"}.mdi-food-fork-drink:before{content:"\f05f2"}.mdi-food-halal:before{content:"\f1572"}.mdi-food-hot-dog:before{content:"\f184b"}.mdi-food-kosher:before{content:"\f1573"}.mdi-food-off:before{content:"\f05f3"}.mdi-food-off-outline:before{content:"\f1915"}.mdi-food-outline:before{content:"\f1916"}.mdi-food-steak:before{content:"\f146a"}.mdi-food-steak-off:before{content:"\f146b"}.mdi-food-takeout-box:before{content:"\f1836"}.mdi-food-takeout-box-outline:before{content:"\f1837"}.mdi-food-turkey:before{content:"\f171c"}.mdi-food-variant:before{content:"\f025c"}.mdi-food-variant-off:before{content:"\f13e5"}.mdi-foot-print:before{content:"\f0f52"}.mdi-football:before{content:"\f025d"}.mdi-football-australian:before{content:"\f025e"}.mdi-football-helmet:before{content:"\f025f"}.mdi-forest:before{content:"\f1897"}.mdi-forest-outline:before{content:"\f1c63"}.mdi-forklift:before{content:"\f07c9"}.mdi-form-dropdown:before{content:"\f1400"}.mdi-form-select:before{content:"\f1401"}.mdi-form-textarea:before{content:"\f1095"}.mdi-form-textbox:before{content:"\f060e"}.mdi-form-textbox-lock:before{content:"\f135d"}.mdi-form-textbox-password:before{content:"\f07f5"}.mdi-format-align-bottom:before{content:"\f0753"}.mdi-format-align-center:before{content:"\f0260"}.mdi-format-align-justify:before{content:"\f0261"}.mdi-format-align-left:before{content:"\f0262"}.mdi-format-align-middle:before{content:"\f0754"}.mdi-format-align-right:before{content:"\f0263"}.mdi-format-align-top:before{content:"\f0755"}.mdi-format-annotation-minus:before{content:"\f0abc"}.mdi-format-annotation-plus:before{content:"\f0646"}.mdi-format-bold:before{content:"\f0264"}.mdi-format-clear:before{content:"\f0265"}.mdi-format-color-fill:before{content:"\f0266"}.mdi-format-color-highlight:before{content:"\f0e31"}.mdi-format-color-marker-cancel:before{content:"\f1313"}.mdi-format-color-text:before{content:"\f069e"}.mdi-format-columns:before{content:"\f08df"}.mdi-format-float-center:before{content:"\f0267"}.mdi-format-float-left:before{content:"\f0268"}.mdi-format-float-none:before{content:"\f0269"}.mdi-format-float-right:before{content:"\f026a"}.mdi-format-font:before{content:"\f06d6"}.mdi-format-font-size-decrease:before{content:"\f09f3"}.mdi-format-font-size-increase:before{content:"\f09f4"}.mdi-format-header-1:before{content:"\f026b"}.mdi-format-header-2:before{content:"\f026c"}.mdi-format-header-3:before{content:"\f026d"}.mdi-format-header-4:before{content:"\f026e"}.mdi-format-header-5:before{content:"\f026f"}.mdi-format-header-6:before{content:"\f0270"}.mdi-format-header-decrease:before{content:"\f0271"}.mdi-format-header-equal:before{content:"\f0272"}.mdi-format-header-increase:before{content:"\f0273"}.mdi-format-header-pound:before{content:"\f0274"}.mdi-format-horizontal-align-center:before{content:"\f061e"}.mdi-format-horizontal-align-left:before{content:"\f061f"}.mdi-format-horizontal-align-right:before{content:"\f0620"}.mdi-format-indent-decrease:before{content:"\f0275"}.mdi-format-indent-increase:before{content:"\f0276"}.mdi-format-italic:before{content:"\f0277"}.mdi-format-letter-case:before{content:"\f0b34"}.mdi-format-letter-case-lower:before{content:"\f0b35"}.mdi-format-letter-case-upper:before{content:"\f0b36"}.mdi-format-letter-ends-with:before{content:"\f0fb8"}.mdi-format-letter-matches:before{content:"\f0fb9"}.mdi-format-letter-spacing:before{content:"\f1956"}.mdi-format-letter-spacing-variant:before{content:"\f1afb"}.mdi-format-letter-starts-with:before{content:"\f0fba"}.mdi-format-line-height:before{content:"\f1afc"}.mdi-format-line-spacing:before{content:"\f0278"}.mdi-format-line-style:before{content:"\f05c8"}.mdi-format-line-weight:before{content:"\f05c9"}.mdi-format-list-bulleted:before{content:"\f0279"}.mdi-format-list-bulleted-square:before{content:"\f0dd0"}.mdi-format-list-bulleted-triangle:before{content:"\f0eb2"}.mdi-format-list-bulleted-type:before{content:"\f027a"}.mdi-format-list-checkbox:before{content:"\f096a"}.mdi-format-list-checks:before{content:"\f0756"}.mdi-format-list-group:before{content:"\f1860"}.mdi-format-list-group-plus:before{content:"\f1b56"}.mdi-format-list-numbered:before{content:"\f027b"}.mdi-format-list-numbered-rtl:before{content:"\f0d0d"}.mdi-format-list-text:before{content:"\f126f"}.mdi-format-overline:before{content:"\f0eb3"}.mdi-format-page-break:before{content:"\f06d7"}.mdi-format-page-split:before{content:"\f1917"}.mdi-format-paint:before{content:"\f027c"}.mdi-format-paragraph:before{content:"\f027d"}.mdi-format-paragraph-spacing:before{content:"\f1afd"}.mdi-format-pilcrow:before{content:"\f06d8"}.mdi-format-pilcrow-arrow-left:before{content:"\f0286"}.mdi-format-pilcrow-arrow-right:before{content:"\f0285"}.mdi-format-quote-close:before{content:"\f027e"}.mdi-format-quote-close-outline:before{content:"\f11a8"}.mdi-format-quote-open:before{content:"\f0757"}.mdi-format-quote-open-outline:before{content:"\f11a7"}.mdi-format-rotate-90:before{content:"\f06aa"}.mdi-format-section:before{content:"\f069f"}.mdi-format-size:before{content:"\f027f"}.mdi-format-strikethrough:before{content:"\f0280"}.mdi-format-strikethrough-variant:before{content:"\f0281"}.mdi-format-subscript:before{content:"\f0282"}.mdi-format-superscript:before{content:"\f0283"}.mdi-format-text:before{content:"\f0284"}.mdi-format-text-rotation-angle-down:before{content:"\f0fbb"}.mdi-format-text-rotation-angle-up:before{content:"\f0fbc"}.mdi-format-text-rotation-down:before{content:"\f0d73"}.mdi-format-text-rotation-down-vertical:before{content:"\f0fbd"}.mdi-format-text-rotation-none:before{content:"\f0d74"}.mdi-format-text-rotation-up:before{content:"\f0fbe"}.mdi-format-text-rotation-vertical:before{content:"\f0fbf"}.mdi-format-text-variant:before{content:"\f0e32"}.mdi-format-text-variant-outline:before{content:"\f150f"}.mdi-format-text-wrapping-clip:before{content:"\f0d0e"}.mdi-format-text-wrapping-overflow:before{content:"\f0d0f"}.mdi-format-text-wrapping-wrap:before{content:"\f0d10"}.mdi-format-textbox:before{content:"\f0d11"}.mdi-format-title:before{content:"\f05f4"}.mdi-format-underline:before{content:"\f0287"}.mdi-format-underline-wavy:before{content:"\f18e9"}.mdi-format-vertical-align-bottom:before{content:"\f0621"}.mdi-format-vertical-align-center:before{content:"\f0622"}.mdi-format-vertical-align-top:before{content:"\f0623"}.mdi-format-wrap-inline:before{content:"\f0288"}.mdi-format-wrap-square:before{content:"\f0289"}.mdi-format-wrap-tight:before{content:"\f028a"}.mdi-format-wrap-top-bottom:before{content:"\f028b"}.mdi-forum:before{content:"\f028c"}.mdi-forum-minus:before{content:"\f1aa9"}.mdi-forum-minus-outline:before{content:"\f1aaa"}.mdi-forum-outline:before{content:"\f0822"}.mdi-forum-plus:before{content:"\f1aab"}.mdi-forum-plus-outline:before{content:"\f1aac"}.mdi-forum-remove:before{content:"\f1aad"}.mdi-forum-remove-outline:before{content:"\f1aae"}.mdi-forward:before{content:"\f028d"}.mdi-forwardburger:before{content:"\f0d75"}.mdi-fountain:before{content:"\f096b"}.mdi-fountain-pen:before{content:"\f0d12"}.mdi-fountain-pen-tip:before{content:"\f0d13"}.mdi-fraction-one-half:before{content:"\f1992"}.mdi-freebsd:before{content:"\f08e0"}.mdi-french-fries:before{content:"\f1957"}.mdi-frequently-asked-questions:before{content:"\f0eb4"}.mdi-fridge:before{content:"\f0290"}.mdi-fridge-alert:before{content:"\f11b1"}.mdi-fridge-alert-outline:before{content:"\f11b2"}.mdi-fridge-bottom:before{content:"\f0292"}.mdi-fridge-industrial:before{content:"\f15ee"}.mdi-fridge-industrial-alert:before{content:"\f15ef"}.mdi-fridge-industrial-alert-outline:before{content:"\f15f0"}.mdi-fridge-industrial-off:before{content:"\f15f1"}.mdi-fridge-industrial-off-outline:before{content:"\f15f2"}.mdi-fridge-industrial-outline:before{content:"\f15f3"}.mdi-fridge-off:before{content:"\f11af"}.mdi-fridge-off-outline:before{content:"\f11b0"}.mdi-fridge-outline:before{content:"\f028f"}.mdi-fridge-top:before{content:"\f0291"}.mdi-fridge-variant:before{content:"\f15f4"}.mdi-fridge-variant-alert:before{content:"\f15f5"}.mdi-fridge-variant-alert-outline:before{content:"\f15f6"}.mdi-fridge-variant-off:before{content:"\f15f7"}.mdi-fridge-variant-off-outline:before{content:"\f15f8"}.mdi-fridge-variant-outline:before{content:"\f15f9"}.mdi-fruit-cherries:before{content:"\f1042"}.mdi-fruit-cherries-off:before{content:"\f13f8"}.mdi-fruit-citrus:before{content:"\f1043"}.mdi-fruit-citrus-off:before{content:"\f13f9"}.mdi-fruit-grapes:before{content:"\f1044"}.mdi-fruit-grapes-outline:before{content:"\f1045"}.mdi-fruit-pear:before{content:"\f1a0e"}.mdi-fruit-pineapple:before{content:"\f1046"}.mdi-fruit-watermelon:before{content:"\f1047"}.mdi-fuel:before{content:"\f07ca"}.mdi-fuel-cell:before{content:"\f18b5"}.mdi-fullscreen:before{content:"\f0293"}.mdi-fullscreen-exit:before{content:"\f0294"}.mdi-function:before{content:"\f0295"}.mdi-function-variant:before{content:"\f0871"}.mdi-furigana-horizontal:before{content:"\f1081"}.mdi-furigana-vertical:before{content:"\f1082"}.mdi-fuse:before{content:"\f0c85"}.mdi-fuse-alert:before{content:"\f142d"}.mdi-fuse-blade:before{content:"\f0c86"}.mdi-fuse-off:before{content:"\f142c"}.mdi-gamepad:before{content:"\f0296"}.mdi-gamepad-circle:before{content:"\f0e33"}.mdi-gamepad-circle-down:before{content:"\f0e34"}.mdi-gamepad-circle-left:before{content:"\f0e35"}.mdi-gamepad-circle-outline:before{content:"\f0e36"}.mdi-gamepad-circle-right:before{content:"\f0e37"}.mdi-gamepad-circle-up:before{content:"\f0e38"}.mdi-gamepad-down:before{content:"\f0e39"}.mdi-gamepad-left:before{content:"\f0e3a"}.mdi-gamepad-outline:before{content:"\f1919"}.mdi-gamepad-right:before{content:"\f0e3b"}.mdi-gamepad-round:before{content:"\f0e3c"}.mdi-gamepad-round-down:before{content:"\f0e3d"}.mdi-gamepad-round-left:before{content:"\f0e3e"}.mdi-gamepad-round-outline:before{content:"\f0e3f"}.mdi-gamepad-round-right:before{content:"\f0e40"}.mdi-gamepad-round-up:before{content:"\f0e41"}.mdi-gamepad-square:before{content:"\f0eb5"}.mdi-gamepad-square-outline:before{content:"\f0eb6"}.mdi-gamepad-up:before{content:"\f0e42"}.mdi-gamepad-variant:before{content:"\f0297"}.mdi-gamepad-variant-outline:before{content:"\f0eb7"}.mdi-gamma:before{content:"\f10ee"}.mdi-gantry-crane:before{content:"\f0dd1"}.mdi-garage:before{content:"\f06d9"}.mdi-garage-alert:before{content:"\f0872"}.mdi-garage-alert-variant:before{content:"\f12d5"}.mdi-garage-lock:before{content:"\f17fb"}.mdi-garage-open:before{content:"\f06da"}.mdi-garage-open-variant:before{content:"\f12d4"}.mdi-garage-variant:before{content:"\f12d3"}.mdi-garage-variant-lock:before{content:"\f17fc"}.mdi-gas-burner:before{content:"\f1a1b"}.mdi-gas-cylinder:before{content:"\f0647"}.mdi-gas-station:before{content:"\f0298"}.mdi-gas-station-in-use:before{content:"\f1cc4"}.mdi-gas-station-in-use-outline:before{content:"\f1cc5"}.mdi-gas-station-off:before{content:"\f1409"}.mdi-gas-station-off-outline:before{content:"\f140a"}.mdi-gas-station-outline:before{content:"\f0eb8"}.mdi-gate:before{content:"\f0299"}.mdi-gate-alert:before{content:"\f17f8"}.mdi-gate-and:before{content:"\f08e1"}.mdi-gate-arrow-left:before{content:"\f17f7"}.mdi-gate-arrow-right:before{content:"\f1169"}.mdi-gate-buffer:before{content:"\f1afe"}.mdi-gate-nand:before{content:"\f08e2"}.mdi-gate-nor:before{content:"\f08e3"}.mdi-gate-not:before{content:"\f08e4"}.mdi-gate-open:before{content:"\f116a"}.mdi-gate-or:before{content:"\f08e5"}.mdi-gate-xnor:before{content:"\f08e6"}.mdi-gate-xor:before{content:"\f08e7"}.mdi-gatsby:before{content:"\f0e43"}.mdi-gauge:before{content:"\f029a"}.mdi-gauge-empty:before{content:"\f0873"}.mdi-gauge-full:before{content:"\f0874"}.mdi-gauge-low:before{content:"\f0875"}.mdi-gavel:before{content:"\f029b"}.mdi-gender-female:before{content:"\f029c"}.mdi-gender-male:before{content:"\f029d"}.mdi-gender-male-female:before{content:"\f029e"}.mdi-gender-male-female-variant:before{content:"\f113f"}.mdi-gender-non-binary:before{content:"\f1140"}.mdi-gender-transgender:before{content:"\f029f"}.mdi-generator-mobile:before{content:"\f1c8a"}.mdi-generator-portable:before{content:"\f1c8b"}.mdi-generator-stationary:before{content:"\f1c8c"}.mdi-gentoo:before{content:"\f08e8"}.mdi-gesture:before{content:"\f07cb"}.mdi-gesture-double-tap:before{content:"\f073c"}.mdi-gesture-pinch:before{content:"\f0abd"}.mdi-gesture-spread:before{content:"\f0abe"}.mdi-gesture-swipe:before{content:"\f0d76"}.mdi-gesture-swipe-down:before{content:"\f073d"}.mdi-gesture-swipe-horizontal:before{content:"\f0abf"}.mdi-gesture-swipe-left:before{content:"\f073e"}.mdi-gesture-swipe-right:before{content:"\f073f"}.mdi-gesture-swipe-up:before{content:"\f0740"}.mdi-gesture-swipe-vertical:before{content:"\f0ac0"}.mdi-gesture-tap:before{content:"\f0741"}.mdi-gesture-tap-box:before{content:"\f12a9"}.mdi-gesture-tap-button:before{content:"\f12a8"}.mdi-gesture-tap-hold:before{content:"\f0d77"}.mdi-gesture-two-double-tap:before{content:"\f0742"}.mdi-gesture-two-tap:before{content:"\f0743"}.mdi-ghost:before{content:"\f02a0"}.mdi-ghost-off:before{content:"\f09f5"}.mdi-ghost-off-outline:before{content:"\f165c"}.mdi-ghost-outline:before{content:"\f165d"}.mdi-gift:before{content:"\f0e44"}.mdi-gift-off:before{content:"\f16ef"}.mdi-gift-off-outline:before{content:"\f16f0"}.mdi-gift-open:before{content:"\f16f1"}.mdi-gift-open-outline:before{content:"\f16f2"}.mdi-gift-outline:before{content:"\f02a1"}.mdi-git:before{content:"\f02a2"}.mdi-github:before{content:"\f02a4"}.mdi-gitlab:before{content:"\f0ba0"}.mdi-glass-cocktail:before{content:"\f0356"}.mdi-glass-cocktail-off:before{content:"\f15e6"}.mdi-glass-flute:before{content:"\f02a5"}.mdi-glass-fragile:before{content:"\f1873"}.mdi-glass-mug:before{content:"\f02a6"}.mdi-glass-mug-off:before{content:"\f15e7"}.mdi-glass-mug-variant:before{content:"\f1116"}.mdi-glass-mug-variant-off:before{content:"\f15e8"}.mdi-glass-pint-outline:before{content:"\f130d"}.mdi-glass-stange:before{content:"\f02a7"}.mdi-glass-tulip:before{content:"\f02a8"}.mdi-glass-wine:before{content:"\f0876"}.mdi-glasses:before{content:"\f02aa"}.mdi-globe-light:before{content:"\f066f"}.mdi-globe-light-outline:before{content:"\f12d7"}.mdi-globe-model:before{content:"\f08e9"}.mdi-gmail:before{content:"\f02ab"}.mdi-gnome:before{content:"\f02ac"}.mdi-go-kart:before{content:"\f0d79"}.mdi-go-kart-track:before{content:"\f0d7a"}.mdi-gog:before{content:"\f0ba1"}.mdi-gold:before{content:"\f124f"}.mdi-golf:before{content:"\f0823"}.mdi-golf-cart:before{content:"\f11a4"}.mdi-golf-tee:before{content:"\f1083"}.mdi-gondola:before{content:"\f0686"}.mdi-goodreads:before{content:"\f0d7b"}.mdi-google:before{content:"\f02ad"}.mdi-google-ads:before{content:"\f0c87"}.mdi-google-analytics:before{content:"\f07cc"}.mdi-google-assistant:before{content:"\f07cd"}.mdi-google-cardboard:before{content:"\f02ae"}.mdi-google-chrome:before{content:"\f02af"}.mdi-google-circles:before{content:"\f02b0"}.mdi-google-circles-communities:before{content:"\f02b1"}.mdi-google-circles-extended:before{content:"\f02b2"}.mdi-google-circles-group:before{content:"\f02b3"}.mdi-google-classroom:before{content:"\f02c0"}.mdi-google-cloud:before{content:"\f11f6"}.mdi-google-downasaur:before{content:"\f1362"}.mdi-google-drive:before{content:"\f02b6"}.mdi-google-earth:before{content:"\f02b7"}.mdi-google-fit:before{content:"\f096c"}.mdi-google-glass:before{content:"\f02b8"}.mdi-google-hangouts:before{content:"\f02c9"}.mdi-google-keep:before{content:"\f06dc"}.mdi-google-lens:before{content:"\f09f6"}.mdi-google-maps:before{content:"\f05f5"}.mdi-google-my-business:before{content:"\f1048"}.mdi-google-nearby:before{content:"\f02b9"}.mdi-google-play:before{content:"\f02bc"}.mdi-google-plus:before{content:"\f02bd"}.mdi-google-podcast:before{content:"\f0eb9"}.mdi-google-spreadsheet:before{content:"\f09f7"}.mdi-google-street-view:before{content:"\f0c88"}.mdi-google-translate:before{content:"\f02bf"}.mdi-gradient-horizontal:before{content:"\f174a"}.mdi-gradient-vertical:before{content:"\f06a0"}.mdi-grain:before{content:"\f0d7c"}.mdi-graph:before{content:"\f1049"}.mdi-graph-outline:before{content:"\f104a"}.mdi-graphql:before{content:"\f0877"}.mdi-grass:before{content:"\f1510"}.mdi-grave-stone:before{content:"\f0ba2"}.mdi-grease-pencil:before{content:"\f0648"}.mdi-greater-than:before{content:"\f096d"}.mdi-greater-than-or-equal:before{content:"\f096e"}.mdi-greenhouse:before{content:"\f002d"}.mdi-grid:before{content:"\f02c1"}.mdi-grid-large:before{content:"\f0758"}.mdi-grid-off:before{content:"\f02c2"}.mdi-grill:before{content:"\f0e45"}.mdi-grill-outline:before{content:"\f118a"}.mdi-group:before{content:"\f02c3"}.mdi-guitar-acoustic:before{content:"\f0771"}.mdi-guitar-electric:before{content:"\f02c4"}.mdi-guitar-pick:before{content:"\f02c5"}.mdi-guitar-pick-outline:before{content:"\f02c6"}.mdi-guy-fawkes-mask:before{content:"\f0825"}.mdi-gymnastics:before{content:"\f1a41"}.mdi-hail:before{content:"\f0ac1"}.mdi-hair-dryer:before{content:"\f10ef"}.mdi-hair-dryer-outline:before{content:"\f10f0"}.mdi-halloween:before{content:"\f0ba3"}.mdi-hamburger:before{content:"\f0685"}.mdi-hamburger-check:before{content:"\f1776"}.mdi-hamburger-minus:before{content:"\f1777"}.mdi-hamburger-off:before{content:"\f1778"}.mdi-hamburger-plus:before{content:"\f1779"}.mdi-hamburger-remove:before{content:"\f177a"}.mdi-hammer:before{content:"\f08ea"}.mdi-hammer-screwdriver:before{content:"\f1322"}.mdi-hammer-sickle:before{content:"\f1887"}.mdi-hammer-wrench:before{content:"\f1323"}.mdi-hand-back-left:before{content:"\f0e46"}.mdi-hand-back-left-off:before{content:"\f1830"}.mdi-hand-back-left-off-outline:before{content:"\f1832"}.mdi-hand-back-left-outline:before{content:"\f182c"}.mdi-hand-back-right:before{content:"\f0e47"}.mdi-hand-back-right-off:before{content:"\f1831"}.mdi-hand-back-right-off-outline:before{content:"\f1833"}.mdi-hand-back-right-outline:before{content:"\f182d"}.mdi-hand-clap:before{content:"\f194b"}.mdi-hand-clap-off:before{content:"\f1a42"}.mdi-hand-coin:before{content:"\f188f"}.mdi-hand-coin-outline:before{content:"\f1890"}.mdi-hand-cycle:before{content:"\f1b9c"}.mdi-hand-extended:before{content:"\f18b6"}.mdi-hand-extended-outline:before{content:"\f18b7"}.mdi-hand-front-left:before{content:"\f182b"}.mdi-hand-front-left-outline:before{content:"\f182e"}.mdi-hand-front-right:before{content:"\f0a4f"}.mdi-hand-front-right-outline:before{content:"\f182f"}.mdi-hand-heart:before{content:"\f10f1"}.mdi-hand-heart-outline:before{content:"\f157e"}.mdi-hand-okay:before{content:"\f0a50"}.mdi-hand-peace:before{content:"\f0a51"}.mdi-hand-peace-variant:before{content:"\f0a52"}.mdi-hand-pointing-down:before{content:"\f0a53"}.mdi-hand-pointing-left:before{content:"\f0a54"}.mdi-hand-pointing-right:before{content:"\f02c7"}.mdi-hand-pointing-up:before{content:"\f0a55"}.mdi-hand-saw:before{content:"\f0e48"}.mdi-hand-wash:before{content:"\f157f"}.mdi-hand-wash-outline:before{content:"\f1580"}.mdi-hand-water:before{content:"\f139f"}.mdi-hand-wave:before{content:"\f1821"}.mdi-hand-wave-outline:before{content:"\f1822"}.mdi-handball:before{content:"\f0f53"}.mdi-handcuffs:before{content:"\f113e"}.mdi-hands-pray:before{content:"\f0579"}.mdi-handshake:before{content:"\f1218"}.mdi-handshake-outline:before{content:"\f15a1"}.mdi-hanger:before{content:"\f02c8"}.mdi-hard-hat:before{content:"\f096f"}.mdi-harddisk:before{content:"\f02ca"}.mdi-harddisk-plus:before{content:"\f104b"}.mdi-harddisk-remove:before{content:"\f104c"}.mdi-hat-fedora:before{content:"\f0ba4"}.mdi-hazard-lights:before{content:"\f0c89"}.mdi-hdmi-port:before{content:"\f1bb8"}.mdi-hdr:before{content:"\f0d7d"}.mdi-hdr-off:before{content:"\f0d7e"}.mdi-head:before{content:"\f135e"}.mdi-head-alert:before{content:"\f1338"}.mdi-head-alert-outline:before{content:"\f1339"}.mdi-head-check:before{content:"\f133a"}.mdi-head-check-outline:before{content:"\f133b"}.mdi-head-cog:before{content:"\f133c"}.mdi-head-cog-outline:before{content:"\f133d"}.mdi-head-dots-horizontal:before{content:"\f133e"}.mdi-head-dots-horizontal-outline:before{content:"\f133f"}.mdi-head-flash:before{content:"\f1340"}.mdi-head-flash-outline:before{content:"\f1341"}.mdi-head-heart:before{content:"\f1342"}.mdi-head-heart-outline:before{content:"\f1343"}.mdi-head-lightbulb:before{content:"\f1344"}.mdi-head-lightbulb-outline:before{content:"\f1345"}.mdi-head-minus:before{content:"\f1346"}.mdi-head-minus-outline:before{content:"\f1347"}.mdi-head-outline:before{content:"\f135f"}.mdi-head-plus:before{content:"\f1348"}.mdi-head-plus-outline:before{content:"\f1349"}.mdi-head-question:before{content:"\f134a"}.mdi-head-question-outline:before{content:"\f134b"}.mdi-head-remove:before{content:"\f134c"}.mdi-head-remove-outline:before{content:"\f134d"}.mdi-head-snowflake:before{content:"\f134e"}.mdi-head-snowflake-outline:before{content:"\f134f"}.mdi-head-sync:before{content:"\f1350"}.mdi-head-sync-outline:before{content:"\f1351"}.mdi-headphones:before{content:"\f02cb"}.mdi-headphones-bluetooth:before{content:"\f0970"}.mdi-headphones-box:before{content:"\f02cc"}.mdi-headphones-off:before{content:"\f07ce"}.mdi-headphones-settings:before{content:"\f02cd"}.mdi-headset:before{content:"\f02ce"}.mdi-headset-dock:before{content:"\f02cf"}.mdi-headset-off:before{content:"\f02d0"}.mdi-heart:before{content:"\f02d1"}.mdi-heart-box:before{content:"\f02d2"}.mdi-heart-box-outline:before{content:"\f02d3"}.mdi-heart-broken:before{content:"\f02d4"}.mdi-heart-broken-outline:before{content:"\f0d14"}.mdi-heart-circle:before{content:"\f0971"}.mdi-heart-circle-outline:before{content:"\f0972"}.mdi-heart-cog:before{content:"\f1663"}.mdi-heart-cog-outline:before{content:"\f1664"}.mdi-heart-flash:before{content:"\f0ef9"}.mdi-heart-half:before{content:"\f06df"}.mdi-heart-half-full:before{content:"\f06de"}.mdi-heart-half-outline:before{content:"\f06e0"}.mdi-heart-minus:before{content:"\f142f"}.mdi-heart-minus-outline:before{content:"\f1432"}.mdi-heart-multiple:before{content:"\f0a56"}.mdi-heart-multiple-outline:before{content:"\f0a57"}.mdi-heart-off:before{content:"\f0759"}.mdi-heart-off-outline:before{content:"\f1434"}.mdi-heart-outline:before{content:"\f02d5"}.mdi-heart-plus:before{content:"\f142e"}.mdi-heart-plus-outline:before{content:"\f1431"}.mdi-heart-pulse:before{content:"\f05f6"}.mdi-heart-remove:before{content:"\f1430"}.mdi-heart-remove-outline:before{content:"\f1433"}.mdi-heart-search:before{content:"\f1c8d"}.mdi-heart-settings:before{content:"\f1665"}.mdi-heart-settings-outline:before{content:"\f1666"}.mdi-heat-pump:before{content:"\f1a43"}.mdi-heat-pump-outline:before{content:"\f1a44"}.mdi-heat-wave:before{content:"\f1a45"}.mdi-heating-coil:before{content:"\f1aaf"}.mdi-helicopter:before{content:"\f0ac2"}.mdi-help:before{content:"\f02d6"}.mdi-help-box:before{content:"\f078b"}.mdi-help-box-multiple:before{content:"\f1c0a"}.mdi-help-box-multiple-outline:before{content:"\f1c0b"}.mdi-help-box-outline:before{content:"\f1c0c"}.mdi-help-circle:before{content:"\f02d7"}.mdi-help-circle-outline:before{content:"\f0625"}.mdi-help-network:before{content:"\f06f5"}.mdi-help-network-outline:before{content:"\f0c8a"}.mdi-help-rhombus:before{content:"\f0ba5"}.mdi-help-rhombus-outline:before{content:"\f0ba6"}.mdi-hexadecimal:before{content:"\f12a7"}.mdi-hexagon:before{content:"\f02d8"}.mdi-hexagon-multiple:before{content:"\f06e1"}.mdi-hexagon-multiple-outline:before{content:"\f10f2"}.mdi-hexagon-outline:before{content:"\f02d9"}.mdi-hexagon-slice-1:before{content:"\f0ac3"}.mdi-hexagon-slice-2:before{content:"\f0ac4"}.mdi-hexagon-slice-3:before{content:"\f0ac5"}.mdi-hexagon-slice-4:before{content:"\f0ac6"}.mdi-hexagon-slice-5:before{content:"\f0ac7"}.mdi-hexagon-slice-6:before{content:"\f0ac8"}.mdi-hexagram:before{content:"\f0ac9"}.mdi-hexagram-outline:before{content:"\f0aca"}.mdi-high-definition:before{content:"\f07cf"}.mdi-high-definition-box:before{content:"\f0878"}.mdi-highway:before{content:"\f05f7"}.mdi-hiking:before{content:"\f0d7f"}.mdi-history:before{content:"\f02da"}.mdi-hockey-puck:before{content:"\f0879"}.mdi-hockey-sticks:before{content:"\f087a"}.mdi-hololens:before{content:"\f02db"}.mdi-home:before{content:"\f02dc"}.mdi-home-account:before{content:"\f0826"}.mdi-home-alert:before{content:"\f087b"}.mdi-home-alert-outline:before{content:"\f15d0"}.mdi-home-analytics:before{content:"\f0eba"}.mdi-home-assistant:before{content:"\f07d0"}.mdi-home-automation:before{content:"\f07d1"}.mdi-home-battery:before{content:"\f1901"}.mdi-home-battery-outline:before{content:"\f1902"}.mdi-home-circle:before{content:"\f07d2"}.mdi-home-circle-outline:before{content:"\f104d"}.mdi-home-city:before{content:"\f0d15"}.mdi-home-city-outline:before{content:"\f0d16"}.mdi-home-clock:before{content:"\f1a12"}.mdi-home-clock-outline:before{content:"\f1a13"}.mdi-home-edit:before{content:"\f1159"}.mdi-home-edit-outline:before{content:"\f115a"}.mdi-home-export-outline:before{content:"\f0f9b"}.mdi-home-flood:before{content:"\f0efa"}.mdi-home-floor-0:before{content:"\f0dd2"}.mdi-home-floor-1:before{content:"\f0d80"}.mdi-home-floor-2:before{content:"\f0d81"}.mdi-home-floor-3:before{content:"\f0d82"}.mdi-home-floor-a:before{content:"\f0d83"}.mdi-home-floor-b:before{content:"\f0d84"}.mdi-home-floor-g:before{content:"\f0d85"}.mdi-home-floor-l:before{content:"\f0d86"}.mdi-home-floor-negative-1:before{content:"\f0dd3"}.mdi-home-group:before{content:"\f0dd4"}.mdi-home-group-minus:before{content:"\f19c1"}.mdi-home-group-plus:before{content:"\f19c0"}.mdi-home-group-remove:before{content:"\f19c2"}.mdi-home-heart:before{content:"\f0827"}.mdi-home-import-outline:before{content:"\f0f9c"}.mdi-home-lightbulb:before{content:"\f1251"}.mdi-home-lightbulb-outline:before{content:"\f1252"}.mdi-home-lightning-bolt:before{content:"\f1903"}.mdi-home-lightning-bolt-outline:before{content:"\f1904"}.mdi-home-lock:before{content:"\f08eb"}.mdi-home-lock-open:before{content:"\f08ec"}.mdi-home-map-marker:before{content:"\f05f8"}.mdi-home-minus:before{content:"\f0974"}.mdi-home-minus-outline:before{content:"\f13d5"}.mdi-home-modern:before{content:"\f02dd"}.mdi-home-off:before{content:"\f1a46"}.mdi-home-off-outline:before{content:"\f1a47"}.mdi-home-outline:before{content:"\f06a1"}.mdi-home-percent:before{content:"\f1c7c"}.mdi-home-percent-outline:before{content:"\f1c7d"}.mdi-home-plus:before{content:"\f0975"}.mdi-home-plus-outline:before{content:"\f13d6"}.mdi-home-remove:before{content:"\f1247"}.mdi-home-remove-outline:before{content:"\f13d7"}.mdi-home-roof:before{content:"\f112b"}.mdi-home-search:before{content:"\f13b0"}.mdi-home-search-outline:before{content:"\f13b1"}.mdi-home-silo:before{content:"\f1ba0"}.mdi-home-silo-outline:before{content:"\f1ba1"}.mdi-home-sound-in:before{content:"\f1c2f"}.mdi-home-sound-in-outline:before{content:"\f1c30"}.mdi-home-sound-out:before{content:"\f1c31"}.mdi-home-sound-out-outline:before{content:"\f1c32"}.mdi-home-switch:before{content:"\f1794"}.mdi-home-switch-outline:before{content:"\f1795"}.mdi-home-thermometer:before{content:"\f0f54"}.mdi-home-thermometer-outline:before{content:"\f0f55"}.mdi-home-variant:before{content:"\f02de"}.mdi-home-variant-outline:before{content:"\f0ba7"}.mdi-hook:before{content:"\f06e2"}.mdi-hook-off:before{content:"\f06e3"}.mdi-hoop-house:before{content:"\f0e56"}.mdi-hops:before{content:"\f02df"}.mdi-horizontal-rotate-clockwise:before{content:"\f10f3"}.mdi-horizontal-rotate-counterclockwise:before{content:"\f10f4"}.mdi-horse:before{content:"\f15bf"}.mdi-horse-human:before{content:"\f15c0"}.mdi-horse-variant:before{content:"\f15c1"}.mdi-horse-variant-fast:before{content:"\f186e"}.mdi-horseshoe:before{content:"\f0a58"}.mdi-hospital:before{content:"\f0ff6"}.mdi-hospital-box:before{content:"\f02e0"}.mdi-hospital-box-outline:before{content:"\f0ff7"}.mdi-hospital-building:before{content:"\f02e1"}.mdi-hospital-marker:before{content:"\f02e2"}.mdi-hot-tub:before{content:"\f0828"}.mdi-hours-12:before{content:"\f1c94"}.mdi-hours-24:before{content:"\f1478"}.mdi-hub:before{content:"\f1c95"}.mdi-hub-outline:before{content:"\f1c96"}.mdi-hubspot:before{content:"\f0d17"}.mdi-hulu:before{content:"\f0829"}.mdi-human:before{content:"\f02e6"}.mdi-human-baby-changing-table:before{content:"\f138b"}.mdi-human-cane:before{content:"\f1581"}.mdi-human-capacity-decrease:before{content:"\f159b"}.mdi-human-capacity-increase:before{content:"\f159c"}.mdi-human-child:before{content:"\f02e7"}.mdi-human-dolly:before{content:"\f1980"}.mdi-human-edit:before{content:"\f14e8"}.mdi-human-female:before{content:"\f0649"}.mdi-human-female-boy:before{content:"\f0a59"}.mdi-human-female-dance:before{content:"\f15c9"}.mdi-human-female-female:before{content:"\f0a5a"}.mdi-human-female-female-child:before{content:"\f1c8e"}.mdi-human-female-girl:before{content:"\f0a5b"}.mdi-human-greeting:before{content:"\f17c4"}.mdi-human-greeting-proximity:before{content:"\f159d"}.mdi-human-greeting-variant:before{content:"\f064a"}.mdi-human-handsdown:before{content:"\f064b"}.mdi-human-handsup:before{content:"\f064c"}.mdi-human-male:before{content:"\f064d"}.mdi-human-male-board:before{content:"\f0890"}.mdi-human-male-board-poll:before{content:"\f0846"}.mdi-human-male-boy:before{content:"\f0a5c"}.mdi-human-male-child:before{content:"\f138c"}.mdi-human-male-female:before{content:"\f02e8"}.mdi-human-male-female-child:before{content:"\f1823"}.mdi-human-male-girl:before{content:"\f0a5d"}.mdi-human-male-height:before{content:"\f0efb"}.mdi-human-male-height-variant:before{content:"\f0efc"}.mdi-human-male-male:before{content:"\f0a5e"}.mdi-human-male-male-child:before{content:"\f1c8f"}.mdi-human-non-binary:before{content:"\f1848"}.mdi-human-pregnant:before{content:"\f05cf"}.mdi-human-queue:before{content:"\f1571"}.mdi-human-scooter:before{content:"\f11e9"}.mdi-human-walker:before{content:"\f1b71"}.mdi-human-wheelchair:before{content:"\f138d"}.mdi-human-white-cane:before{content:"\f1981"}.mdi-humble-bundle:before{content:"\f0744"}.mdi-hvac:before{content:"\f1352"}.mdi-hvac-off:before{content:"\f159e"}.mdi-hydraulic-oil-level:before{content:"\f1324"}.mdi-hydraulic-oil-temperature:before{content:"\f1325"}.mdi-hydro-power:before{content:"\f12e5"}.mdi-hydrogen-station:before{content:"\f1894"}.mdi-ice-cream:before{content:"\f082a"}.mdi-ice-cream-off:before{content:"\f0e52"}.mdi-ice-pop:before{content:"\f0efd"}.mdi-id-card:before{content:"\f0fc0"}.mdi-identifier:before{content:"\f0efe"}.mdi-ideogram-cjk:before{content:"\f1331"}.mdi-ideogram-cjk-variant:before{content:"\f1332"}.mdi-image:before{content:"\f02e9"}.mdi-image-album:before{content:"\f02ea"}.mdi-image-area:before{content:"\f02eb"}.mdi-image-area-close:before{content:"\f02ec"}.mdi-image-auto-adjust:before{content:"\f0fc1"}.mdi-image-broken:before{content:"\f02ed"}.mdi-image-broken-variant:before{content:"\f02ee"}.mdi-image-check:before{content:"\f1b25"}.mdi-image-check-outline:before{content:"\f1b26"}.mdi-image-edit:before{content:"\f11e3"}.mdi-image-edit-outline:before{content:"\f11e4"}.mdi-image-filter-black-white:before{content:"\f02f0"}.mdi-image-filter-center-focus:before{content:"\f02f1"}.mdi-image-filter-center-focus-strong:before{content:"\f0eff"}.mdi-image-filter-center-focus-strong-outline:before{content:"\f0f00"}.mdi-image-filter-center-focus-weak:before{content:"\f02f2"}.mdi-image-filter-drama:before{content:"\f02f3"}.mdi-image-filter-drama-outline:before{content:"\f1bff"}.mdi-image-filter-frames:before{content:"\f02f4"}.mdi-image-filter-hdr:before{content:"\f02f5"}.mdi-image-filter-hdr-outline:before{content:"\f1c64"}.mdi-image-filter-none:before{content:"\f02f6"}.mdi-image-filter-tilt-shift:before{content:"\f02f7"}.mdi-image-filter-vintage:before{content:"\f02f8"}.mdi-image-frame:before{content:"\f0e49"}.mdi-image-lock:before{content:"\f1ab0"}.mdi-image-lock-outline:before{content:"\f1ab1"}.mdi-image-marker:before{content:"\f177b"}.mdi-image-marker-outline:before{content:"\f177c"}.mdi-image-minus:before{content:"\f1419"}.mdi-image-minus-outline:before{content:"\f1b47"}.mdi-image-move:before{content:"\f09f8"}.mdi-image-multiple:before{content:"\f02f9"}.mdi-image-multiple-outline:before{content:"\f02ef"}.mdi-image-off:before{content:"\f082b"}.mdi-image-off-outline:before{content:"\f11d1"}.mdi-image-outline:before{content:"\f0976"}.mdi-image-plus:before{content:"\f087c"}.mdi-image-plus-outline:before{content:"\f1b46"}.mdi-image-refresh:before{content:"\f19fe"}.mdi-image-refresh-outline:before{content:"\f19ff"}.mdi-image-remove:before{content:"\f1418"}.mdi-image-remove-outline:before{content:"\f1b48"}.mdi-image-search:before{content:"\f0977"}.mdi-image-search-outline:before{content:"\f0978"}.mdi-image-size-select-actual:before{content:"\f0c8d"}.mdi-image-size-select-large:before{content:"\f0c8e"}.mdi-image-size-select-small:before{content:"\f0c8f"}.mdi-image-sync:before{content:"\f1a00"}.mdi-image-sync-outline:before{content:"\f1a01"}.mdi-image-text:before{content:"\f160d"}.mdi-import:before{content:"\f02fa"}.mdi-inbox:before{content:"\f0687"}.mdi-inbox-arrow-down:before{content:"\f02fb"}.mdi-inbox-arrow-down-outline:before{content:"\f1270"}.mdi-inbox-arrow-up:before{content:"\f03d1"}.mdi-inbox-arrow-up-outline:before{content:"\f1271"}.mdi-inbox-full:before{content:"\f1272"}.mdi-inbox-full-outline:before{content:"\f1273"}.mdi-inbox-multiple:before{content:"\f08b0"}.mdi-inbox-multiple-outline:before{content:"\f0ba8"}.mdi-inbox-outline:before{content:"\f1274"}.mdi-inbox-remove:before{content:"\f159f"}.mdi-inbox-remove-outline:before{content:"\f15a0"}.mdi-incognito:before{content:"\f05f9"}.mdi-incognito-circle:before{content:"\f1421"}.mdi-incognito-circle-off:before{content:"\f1422"}.mdi-incognito-off:before{content:"\f0075"}.mdi-induction:before{content:"\f184c"}.mdi-infinity:before{content:"\f06e4"}.mdi-information:before{content:"\f02fc"}.mdi-information-box:before{content:"\f1c65"}.mdi-information-box-outline:before{content:"\f1c66"}.mdi-information-off:before{content:"\f178c"}.mdi-information-off-outline:before{content:"\f178d"}.mdi-information-outline:before{content:"\f02fd"}.mdi-information-slab-box:before{content:"\f1c67"}.mdi-information-slab-box-outline:before{content:"\f1c68"}.mdi-information-slab-circle:before{content:"\f1c69"}.mdi-information-slab-circle-outline:before{content:"\f1c6a"}.mdi-information-slab-symbol:before{content:"\f1c6b"}.mdi-information-symbol:before{content:"\f1c6c"}.mdi-information-variant:before{content:"\f064e"}.mdi-information-variant-box:before{content:"\f1c6d"}.mdi-information-variant-box-outline:before{content:"\f1c6e"}.mdi-information-variant-circle:before{content:"\f1c6f"}.mdi-information-variant-circle-outline:before{content:"\f1c70"}.mdi-instagram:before{content:"\f02fe"}.mdi-instrument-triangle:before{content:"\f104e"}.mdi-integrated-circuit-chip:before{content:"\f1913"}.mdi-invert-colors:before{content:"\f0301"}.mdi-invert-colors-off:before{content:"\f0e4a"}.mdi-invoice:before{content:"\f1cd2"}.mdi-invoice-arrow-left:before{content:"\f1cd3"}.mdi-invoice-arrow-left-outline:before{content:"\f1cd4"}.mdi-invoice-arrow-right:before{content:"\f1cd5"}.mdi-invoice-arrow-right-outline:before{content:"\f1cd6"}.mdi-invoice-check:before{content:"\f1cd7"}.mdi-invoice-check-outline:before{content:"\f1cd8"}.mdi-invoice-clock:before{content:"\f1cd9"}.mdi-invoice-clock-outline:before{content:"\f1cda"}.mdi-invoice-edit:before{content:"\f1cdb"}.mdi-invoice-edit-outline:before{content:"\f1cdc"}.mdi-invoice-export-outline:before{content:"\f1cdd"}.mdi-invoice-fast:before{content:"\f1cde"}.mdi-invoice-fast-outline:before{content:"\f1cdf"}.mdi-invoice-import:before{content:"\f1ce0"}.mdi-invoice-import-outline:before{content:"\f1ce1"}.mdi-invoice-list:before{content:"\f1ce2"}.mdi-invoice-list-outline:before{content:"\f1ce3"}.mdi-invoice-minus:before{content:"\f1ce4"}.mdi-invoice-minus-outline:before{content:"\f1ce5"}.mdi-invoice-multiple:before{content:"\f1ce6"}.mdi-invoice-multiple-outline:before{content:"\f1ce7"}.mdi-invoice-outline:before{content:"\f1ce8"}.mdi-invoice-plus:before{content:"\f1ce9"}.mdi-invoice-plus-outline:before{content:"\f1cea"}.mdi-invoice-remove:before{content:"\f1ceb"}.mdi-invoice-remove-outline:before{content:"\f1cec"}.mdi-invoice-send:before{content:"\f1ced"}.mdi-invoice-send-outline:before{content:"\f1cee"}.mdi-invoice-text:before{content:"\f1cef"}.mdi-invoice-text-arrow-left:before{content:"\f1cf0"}.mdi-invoice-text-arrow-left-outline:before{content:"\f1cf1"}.mdi-invoice-text-arrow-right:before{content:"\f1cf2"}.mdi-invoice-text-arrow-right-outline:before{content:"\f1cf3"}.mdi-invoice-text-check:before{content:"\f1cf4"}.mdi-invoice-text-check-outline:before{content:"\f1cf5"}.mdi-invoice-text-clock:before{content:"\f1cf6"}.mdi-invoice-text-clock-outline:before{content:"\f1cf7"}.mdi-invoice-text-edit:before{content:"\f1cf8"}.mdi-invoice-text-edit-outline:before{content:"\f1cf9"}.mdi-invoice-text-fast:before{content:"\f1cfa"}.mdi-invoice-text-fast-outline:before{content:"\f1cfb"}.mdi-invoice-text-minus:before{content:"\f1cfc"}.mdi-invoice-text-minus-outline:before{content:"\f1cfd"}.mdi-invoice-text-multiple:before{content:"\f1cfe"}.mdi-invoice-text-multiple-outline:before{content:"\f1cff"}.mdi-invoice-text-outline:before{content:"\f1d00"}.mdi-invoice-text-plus:before{content:"\f1d01"}.mdi-invoice-text-plus-outline:before{content:"\f1d02"}.mdi-invoice-text-remove:before{content:"\f1d03"}.mdi-invoice-text-remove-outline:before{content:"\f1d04"}.mdi-invoice-text-send:before{content:"\f1d05"}.mdi-invoice-text-send-outline:before{content:"\f1d06"}.mdi-iobroker:before{content:"\f12e8"}.mdi-ip:before{content:"\f0a5f"}.mdi-ip-network:before{content:"\f0a60"}.mdi-ip-network-outline:before{content:"\f0c90"}.mdi-ip-outline:before{content:"\f1982"}.mdi-ipod:before{content:"\f0c91"}.mdi-iron:before{content:"\f1824"}.mdi-iron-board:before{content:"\f1838"}.mdi-iron-outline:before{content:"\f1825"}.mdi-island:before{content:"\f104f"}.mdi-island-variant:before{content:"\f1cc6"}.mdi-iv-bag:before{content:"\f10b9"}.mdi-jabber:before{content:"\f0dd5"}.mdi-jeepney:before{content:"\f0302"}.mdi-jellyfish:before{content:"\f0f01"}.mdi-jellyfish-outline:before{content:"\f0f02"}.mdi-jira:before{content:"\f0303"}.mdi-jquery:before{content:"\f087d"}.mdi-jsfiddle:before{content:"\f0304"}.mdi-jump-rope:before{content:"\f12ff"}.mdi-kabaddi:before{content:"\f0d87"}.mdi-kangaroo:before{content:"\f1558"}.mdi-karate:before{content:"\f082c"}.mdi-kayaking:before{content:"\f08af"}.mdi-keg:before{content:"\f0305"}.mdi-kettle:before{content:"\f05fa"}.mdi-kettle-alert:before{content:"\f1317"}.mdi-kettle-alert-outline:before{content:"\f1318"}.mdi-kettle-off:before{content:"\f131b"}.mdi-kettle-off-outline:before{content:"\f131c"}.mdi-kettle-outline:before{content:"\f0f56"}.mdi-kettle-pour-over:before{content:"\f173c"}.mdi-kettle-steam:before{content:"\f1319"}.mdi-kettle-steam-outline:before{content:"\f131a"}.mdi-kettlebell:before{content:"\f1300"}.mdi-key:before{content:"\f0306"}.mdi-key-alert:before{content:"\f1983"}.mdi-key-alert-outline:before{content:"\f1984"}.mdi-key-arrow-right:before{content:"\f1312"}.mdi-key-chain:before{content:"\f1574"}.mdi-key-chain-variant:before{content:"\f1575"}.mdi-key-change:before{content:"\f0307"}.mdi-key-link:before{content:"\f119f"}.mdi-key-minus:before{content:"\f0308"}.mdi-key-outline:before{content:"\f0dd6"}.mdi-key-plus:before{content:"\f0309"}.mdi-key-remove:before{content:"\f030a"}.mdi-key-star:before{content:"\f119e"}.mdi-key-variant:before{content:"\f030b"}.mdi-key-wireless:before{content:"\f0fc2"}.mdi-keyboard:before{content:"\f030c"}.mdi-keyboard-backspace:before{content:"\f030d"}.mdi-keyboard-caps:before{content:"\f030e"}.mdi-keyboard-close:before{content:"\f030f"}.mdi-keyboard-close-outline:before{content:"\f1c00"}.mdi-keyboard-esc:before{content:"\f12b7"}.mdi-keyboard-f1:before{content:"\f12ab"}.mdi-keyboard-f10:before{content:"\f12b4"}.mdi-keyboard-f11:before{content:"\f12b5"}.mdi-keyboard-f12:before{content:"\f12b6"}.mdi-keyboard-f2:before{content:"\f12ac"}.mdi-keyboard-f3:before{content:"\f12ad"}.mdi-keyboard-f4:before{content:"\f12ae"}.mdi-keyboard-f5:before{content:"\f12af"}.mdi-keyboard-f6:before{content:"\f12b0"}.mdi-keyboard-f7:before{content:"\f12b1"}.mdi-keyboard-f8:before{content:"\f12b2"}.mdi-keyboard-f9:before{content:"\f12b3"}.mdi-keyboard-off:before{content:"\f0310"}.mdi-keyboard-off-outline:before{content:"\f0e4b"}.mdi-keyboard-outline:before{content:"\f097b"}.mdi-keyboard-return:before{content:"\f0311"}.mdi-keyboard-settings:before{content:"\f09f9"}.mdi-keyboard-settings-outline:before{content:"\f09fa"}.mdi-keyboard-space:before{content:"\f1050"}.mdi-keyboard-tab:before{content:"\f0312"}.mdi-keyboard-tab-reverse:before{content:"\f0325"}.mdi-keyboard-variant:before{content:"\f0313"}.mdi-khanda:before{content:"\f10fd"}.mdi-kickstarter:before{content:"\f0745"}.mdi-kite:before{content:"\f1985"}.mdi-kite-outline:before{content:"\f1986"}.mdi-kitesurfing:before{content:"\f1744"}.mdi-klingon:before{content:"\f135b"}.mdi-knife:before{content:"\f09fb"}.mdi-knife-military:before{content:"\f09fc"}.mdi-knob:before{content:"\f1b96"}.mdi-koala:before{content:"\f173f"}.mdi-kodi:before{content:"\f0314"}.mdi-kubernetes:before{content:"\f10fe"}.mdi-label:before{content:"\f0315"}.mdi-label-multiple:before{content:"\f1375"}.mdi-label-multiple-outline:before{content:"\f1376"}.mdi-label-off:before{content:"\f0acb"}.mdi-label-off-outline:before{content:"\f0acc"}.mdi-label-outline:before{content:"\f0316"}.mdi-label-percent:before{content:"\f12ea"}.mdi-label-percent-outline:before{content:"\f12eb"}.mdi-label-variant:before{content:"\f0acd"}.mdi-label-variant-outline:before{content:"\f0ace"}.mdi-ladder:before{content:"\f15a2"}.mdi-ladybug:before{content:"\f082d"}.mdi-lambda:before{content:"\f0627"}.mdi-lamp:before{content:"\f06b5"}.mdi-lamp-outline:before{content:"\f17d0"}.mdi-lamps:before{content:"\f1576"}.mdi-lamps-outline:before{content:"\f17d1"}.mdi-lan:before{content:"\f0317"}.mdi-lan-check:before{content:"\f12aa"}.mdi-lan-connect:before{content:"\f0318"}.mdi-lan-disconnect:before{content:"\f0319"}.mdi-lan-pending:before{content:"\f031a"}.mdi-land-fields:before{content:"\f1ab2"}.mdi-land-plots:before{content:"\f1ab3"}.mdi-land-plots-circle:before{content:"\f1ab4"}.mdi-land-plots-circle-variant:before{content:"\f1ab5"}.mdi-land-plots-marker:before{content:"\f1c5d"}.mdi-land-rows-horizontal:before{content:"\f1ab6"}.mdi-land-rows-vertical:before{content:"\f1ab7"}.mdi-landslide:before{content:"\f1a48"}.mdi-landslide-outline:before{content:"\f1a49"}.mdi-language-c:before{content:"\f0671"}.mdi-language-cpp:before{content:"\f0672"}.mdi-language-csharp:before{content:"\f031b"}.mdi-language-css3:before{content:"\f031c"}.mdi-language-fortran:before{content:"\f121a"}.mdi-language-go:before{content:"\f07d3"}.mdi-language-haskell:before{content:"\f0c92"}.mdi-language-html5:before{content:"\f031d"}.mdi-language-java:before{content:"\f0b37"}.mdi-language-javascript:before{content:"\f031e"}.mdi-language-kotlin:before{content:"\f1219"}.mdi-language-lua:before{content:"\f08b1"}.mdi-language-markdown:before{content:"\f0354"}.mdi-language-markdown-outline:before{content:"\f0f5b"}.mdi-language-php:before{content:"\f031f"}.mdi-language-python:before{content:"\f0320"}.mdi-language-r:before{content:"\f07d4"}.mdi-language-ruby:before{content:"\f0d2d"}.mdi-language-ruby-on-rails:before{content:"\f0acf"}.mdi-language-rust:before{content:"\f1617"}.mdi-language-swift:before{content:"\f06e5"}.mdi-language-typescript:before{content:"\f06e6"}.mdi-language-xaml:before{content:"\f0673"}.mdi-laptop:before{content:"\f0322"}.mdi-laptop-account:before{content:"\f1a4a"}.mdi-laptop-off:before{content:"\f06e7"}.mdi-laravel:before{content:"\f0ad0"}.mdi-laser-pointer:before{content:"\f1484"}.mdi-lasso:before{content:"\f0f03"}.mdi-lastpass:before{content:"\f0446"}.mdi-latitude:before{content:"\f0f57"}.mdi-launch:before{content:"\f0327"}.mdi-lava-lamp:before{content:"\f07d5"}.mdi-layers:before{content:"\f0328"}.mdi-layers-edit:before{content:"\f1892"}.mdi-layers-minus:before{content:"\f0e4c"}.mdi-layers-off:before{content:"\f0329"}.mdi-layers-off-outline:before{content:"\f09fd"}.mdi-layers-outline:before{content:"\f09fe"}.mdi-layers-plus:before{content:"\f0e4d"}.mdi-layers-remove:before{content:"\f0e4e"}.mdi-layers-search:before{content:"\f1206"}.mdi-layers-search-outline:before{content:"\f1207"}.mdi-layers-triple:before{content:"\f0f58"}.mdi-layers-triple-outline:before{content:"\f0f59"}.mdi-lead-pencil:before{content:"\f064f"}.mdi-leaf:before{content:"\f032a"}.mdi-leaf-circle:before{content:"\f1905"}.mdi-leaf-circle-outline:before{content:"\f1906"}.mdi-leaf-maple:before{content:"\f0c93"}.mdi-leaf-maple-off:before{content:"\f12da"}.mdi-leaf-off:before{content:"\f12d9"}.mdi-leak:before{content:"\f0dd7"}.mdi-leak-off:before{content:"\f0dd8"}.mdi-lectern:before{content:"\f1af0"}.mdi-led-off:before{content:"\f032b"}.mdi-led-on:before{content:"\f032c"}.mdi-led-outline:before{content:"\f032d"}.mdi-led-strip:before{content:"\f07d6"}.mdi-led-strip-variant:before{content:"\f1051"}.mdi-led-strip-variant-off:before{content:"\f1a4b"}.mdi-led-variant-off:before{content:"\f032e"}.mdi-led-variant-on:before{content:"\f032f"}.mdi-led-variant-outline:before{content:"\f0330"}.mdi-leek:before{content:"\f117d"}.mdi-less-than:before{content:"\f097c"}.mdi-less-than-or-equal:before{content:"\f097d"}.mdi-library:before{content:"\f0331"}.mdi-library-outline:before{content:"\f1a22"}.mdi-library-shelves:before{content:"\f0ba9"}.mdi-license:before{content:"\f0fc3"}.mdi-lifebuoy:before{content:"\f087e"}.mdi-light-flood-down:before{content:"\f1987"}.mdi-light-flood-up:before{content:"\f1988"}.mdi-light-recessed:before{content:"\f179b"}.mdi-light-switch:before{content:"\f097e"}.mdi-light-switch-off:before{content:"\f1a24"}.mdi-lightbulb:before{content:"\f0335"}.mdi-lightbulb-alert:before{content:"\f19e1"}.mdi-lightbulb-alert-outline:before{content:"\f19e2"}.mdi-lightbulb-auto:before{content:"\f1800"}.mdi-lightbulb-auto-outline:before{content:"\f1801"}.mdi-lightbulb-cfl:before{content:"\f1208"}.mdi-lightbulb-cfl-off:before{content:"\f1209"}.mdi-lightbulb-cfl-spiral:before{content:"\f1275"}.mdi-lightbulb-cfl-spiral-off:before{content:"\f12c3"}.mdi-lightbulb-fluorescent-tube:before{content:"\f1804"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"\f1805"}.mdi-lightbulb-group:before{content:"\f1253"}.mdi-lightbulb-group-off:before{content:"\f12cd"}.mdi-lightbulb-group-off-outline:before{content:"\f12ce"}.mdi-lightbulb-group-outline:before{content:"\f1254"}.mdi-lightbulb-multiple:before{content:"\f1255"}.mdi-lightbulb-multiple-off:before{content:"\f12cf"}.mdi-lightbulb-multiple-off-outline:before{content:"\f12d0"}.mdi-lightbulb-multiple-outline:before{content:"\f1256"}.mdi-lightbulb-night:before{content:"\f1a4c"}.mdi-lightbulb-night-outline:before{content:"\f1a4d"}.mdi-lightbulb-off:before{content:"\f0e4f"}.mdi-lightbulb-off-outline:before{content:"\f0e50"}.mdi-lightbulb-on:before{content:"\f06e8"}.mdi-lightbulb-on-10:before{content:"\f1a4e"}.mdi-lightbulb-on-20:before{content:"\f1a4f"}.mdi-lightbulb-on-30:before{content:"\f1a50"}.mdi-lightbulb-on-40:before{content:"\f1a51"}.mdi-lightbulb-on-50:before{content:"\f1a52"}.mdi-lightbulb-on-60:before{content:"\f1a53"}.mdi-lightbulb-on-70:before{content:"\f1a54"}.mdi-lightbulb-on-80:before{content:"\f1a55"}.mdi-lightbulb-on-90:before{content:"\f1a56"}.mdi-lightbulb-on-outline:before{content:"\f06e9"}.mdi-lightbulb-outline:before{content:"\f0336"}.mdi-lightbulb-question:before{content:"\f19e3"}.mdi-lightbulb-question-outline:before{content:"\f19e4"}.mdi-lightbulb-spot:before{content:"\f17f4"}.mdi-lightbulb-spot-off:before{content:"\f17f5"}.mdi-lightbulb-variant:before{content:"\f1802"}.mdi-lightbulb-variant-outline:before{content:"\f1803"}.mdi-lighthouse:before{content:"\f09ff"}.mdi-lighthouse-on:before{content:"\f0a00"}.mdi-lightning-bolt:before{content:"\f140b"}.mdi-lightning-bolt-circle:before{content:"\f0820"}.mdi-lightning-bolt-outline:before{content:"\f140c"}.mdi-line-scan:before{content:"\f0624"}.mdi-lingerie:before{content:"\f1476"}.mdi-link:before{content:"\f0337"}.mdi-link-box:before{content:"\f0d1a"}.mdi-link-box-outline:before{content:"\f0d1b"}.mdi-link-box-variant:before{content:"\f0d1c"}.mdi-link-box-variant-outline:before{content:"\f0d1d"}.mdi-link-circle:before{content:"\f1cac"}.mdi-link-circle-outline:before{content:"\f1cad"}.mdi-link-edit:before{content:"\f1cae"}.mdi-link-lock:before{content:"\f10ba"}.mdi-link-off:before{content:"\f0338"}.mdi-link-plus:before{content:"\f0c94"}.mdi-link-variant:before{content:"\f0339"}.mdi-link-variant-minus:before{content:"\f10ff"}.mdi-link-variant-off:before{content:"\f033a"}.mdi-link-variant-plus:before{content:"\f1100"}.mdi-link-variant-remove:before{content:"\f1101"}.mdi-linkedin:before{content:"\f033b"}.mdi-linux:before{content:"\f033d"}.mdi-linux-mint:before{content:"\f08ed"}.mdi-lipstick:before{content:"\f13b5"}.mdi-liquid-spot:before{content:"\f1826"}.mdi-liquor:before{content:"\f191e"}.mdi-list-box:before{content:"\f1b7b"}.mdi-list-box-outline:before{content:"\f1b7c"}.mdi-list-status:before{content:"\f15ab"}.mdi-litecoin:before{content:"\f0a61"}.mdi-loading:before{content:"\f0772"}.mdi-location-enter:before{content:"\f0fc4"}.mdi-location-exit:before{content:"\f0fc5"}.mdi-lock:before{content:"\f033e"}.mdi-lock-alert:before{content:"\f08ee"}.mdi-lock-alert-outline:before{content:"\f15d1"}.mdi-lock-check:before{content:"\f139a"}.mdi-lock-check-outline:before{content:"\f16a8"}.mdi-lock-clock:before{content:"\f097f"}.mdi-lock-minus:before{content:"\f16a9"}.mdi-lock-minus-outline:before{content:"\f16aa"}.mdi-lock-off:before{content:"\f1671"}.mdi-lock-off-outline:before{content:"\f1672"}.mdi-lock-open:before{content:"\f033f"}.mdi-lock-open-alert:before{content:"\f139b"}.mdi-lock-open-alert-outline:before{content:"\f15d2"}.mdi-lock-open-check:before{content:"\f139c"}.mdi-lock-open-check-outline:before{content:"\f16ab"}.mdi-lock-open-minus:before{content:"\f16ac"}.mdi-lock-open-minus-outline:before{content:"\f16ad"}.mdi-lock-open-outline:before{content:"\f0340"}.mdi-lock-open-plus:before{content:"\f16ae"}.mdi-lock-open-plus-outline:before{content:"\f16af"}.mdi-lock-open-remove:before{content:"\f16b0"}.mdi-lock-open-remove-outline:before{content:"\f16b1"}.mdi-lock-open-variant:before{content:"\f0fc6"}.mdi-lock-open-variant-outline:before{content:"\f0fc7"}.mdi-lock-outline:before{content:"\f0341"}.mdi-lock-pattern:before{content:"\f06ea"}.mdi-lock-percent:before{content:"\f1c12"}.mdi-lock-percent-open:before{content:"\f1c13"}.mdi-lock-percent-open-outline:before{content:"\f1c14"}.mdi-lock-percent-open-variant:before{content:"\f1c15"}.mdi-lock-percent-open-variant-outline:before{content:"\f1c16"}.mdi-lock-percent-outline:before{content:"\f1c17"}.mdi-lock-plus:before{content:"\f05fb"}.mdi-lock-plus-outline:before{content:"\f16b2"}.mdi-lock-question:before{content:"\f08ef"}.mdi-lock-remove:before{content:"\f16b3"}.mdi-lock-remove-outline:before{content:"\f16b4"}.mdi-lock-reset:before{content:"\f0773"}.mdi-lock-smart:before{content:"\f08b2"}.mdi-locker:before{content:"\f07d7"}.mdi-locker-multiple:before{content:"\f07d8"}.mdi-login:before{content:"\f0342"}.mdi-login-variant:before{content:"\f05fc"}.mdi-logout:before{content:"\f0343"}.mdi-logout-variant:before{content:"\f05fd"}.mdi-longitude:before{content:"\f0f5a"}.mdi-looks:before{content:"\f0344"}.mdi-lotion:before{content:"\f1582"}.mdi-lotion-outline:before{content:"\f1583"}.mdi-lotion-plus:before{content:"\f1584"}.mdi-lotion-plus-outline:before{content:"\f1585"}.mdi-loupe:before{content:"\f0345"}.mdi-lumx:before{content:"\f0346"}.mdi-lungs:before{content:"\f1084"}.mdi-mace:before{content:"\f1843"}.mdi-magazine-pistol:before{content:"\f0324"}.mdi-magazine-rifle:before{content:"\f0323"}.mdi-magic-staff:before{content:"\f1844"}.mdi-magnet:before{content:"\f0347"}.mdi-magnet-on:before{content:"\f0348"}.mdi-magnify:before{content:"\f0349"}.mdi-magnify-close:before{content:"\f0980"}.mdi-magnify-expand:before{content:"\f1874"}.mdi-magnify-minus:before{content:"\f034a"}.mdi-magnify-minus-cursor:before{content:"\f0a62"}.mdi-magnify-minus-outline:before{content:"\f06ec"}.mdi-magnify-plus:before{content:"\f034b"}.mdi-magnify-plus-cursor:before{content:"\f0a63"}.mdi-magnify-plus-outline:before{content:"\f06ed"}.mdi-magnify-remove-cursor:before{content:"\f120c"}.mdi-magnify-remove-outline:before{content:"\f120d"}.mdi-magnify-scan:before{content:"\f1276"}.mdi-mail:before{content:"\f0ebb"}.mdi-mailbox:before{content:"\f06ee"}.mdi-mailbox-open:before{content:"\f0d88"}.mdi-mailbox-open-outline:before{content:"\f0d89"}.mdi-mailbox-open-up:before{content:"\f0d8a"}.mdi-mailbox-open-up-outline:before{content:"\f0d8b"}.mdi-mailbox-outline:before{content:"\f0d8c"}.mdi-mailbox-up:before{content:"\f0d8d"}.mdi-mailbox-up-outline:before{content:"\f0d8e"}.mdi-manjaro:before{content:"\f160a"}.mdi-map:before{content:"\f034d"}.mdi-map-check:before{content:"\f0ebc"}.mdi-map-check-outline:before{content:"\f0ebd"}.mdi-map-clock:before{content:"\f0d1e"}.mdi-map-clock-outline:before{content:"\f0d1f"}.mdi-map-legend:before{content:"\f0a01"}.mdi-map-marker:before{content:"\f034e"}.mdi-map-marker-account:before{content:"\f18e3"}.mdi-map-marker-account-outline:before{content:"\f18e4"}.mdi-map-marker-alert:before{content:"\f0f05"}.mdi-map-marker-alert-outline:before{content:"\f0f06"}.mdi-map-marker-check:before{content:"\f0c95"}.mdi-map-marker-check-outline:before{content:"\f12fb"}.mdi-map-marker-circle:before{content:"\f034f"}.mdi-map-marker-distance:before{content:"\f08f0"}.mdi-map-marker-down:before{content:"\f1102"}.mdi-map-marker-left:before{content:"\f12db"}.mdi-map-marker-left-outline:before{content:"\f12dd"}.mdi-map-marker-minus:before{content:"\f0650"}.mdi-map-marker-minus-outline:before{content:"\f12f9"}.mdi-map-marker-multiple:before{content:"\f0350"}.mdi-map-marker-multiple-outline:before{content:"\f1277"}.mdi-map-marker-off:before{content:"\f0351"}.mdi-map-marker-off-outline:before{content:"\f12fd"}.mdi-map-marker-outline:before{content:"\f07d9"}.mdi-map-marker-path:before{content:"\f0d20"}.mdi-map-marker-plus:before{content:"\f0651"}.mdi-map-marker-plus-outline:before{content:"\f12f8"}.mdi-map-marker-question:before{content:"\f0f07"}.mdi-map-marker-question-outline:before{content:"\f0f08"}.mdi-map-marker-radius:before{content:"\f0352"}.mdi-map-marker-radius-outline:before{content:"\f12fc"}.mdi-map-marker-remove:before{content:"\f0f09"}.mdi-map-marker-remove-outline:before{content:"\f12fa"}.mdi-map-marker-remove-variant:before{content:"\f0f0a"}.mdi-map-marker-right:before{content:"\f12dc"}.mdi-map-marker-right-outline:before{content:"\f12de"}.mdi-map-marker-star:before{content:"\f1608"}.mdi-map-marker-star-outline:before{content:"\f1609"}.mdi-map-marker-up:before{content:"\f1103"}.mdi-map-minus:before{content:"\f0981"}.mdi-map-outline:before{content:"\f0982"}.mdi-map-plus:before{content:"\f0983"}.mdi-map-search:before{content:"\f0984"}.mdi-map-search-outline:before{content:"\f0985"}.mdi-mapbox:before{content:"\f0baa"}.mdi-margin:before{content:"\f0353"}.mdi-marker:before{content:"\f0652"}.mdi-marker-cancel:before{content:"\f0dd9"}.mdi-marker-check:before{content:"\f0355"}.mdi-mastodon:before{content:"\f0ad1"}.mdi-material-design:before{content:"\f0986"}.mdi-material-ui:before{content:"\f0357"}.mdi-math-compass:before{content:"\f0358"}.mdi-math-cos:before{content:"\f0c96"}.mdi-math-integral:before{content:"\f0fc8"}.mdi-math-integral-box:before{content:"\f0fc9"}.mdi-math-log:before{content:"\f1085"}.mdi-math-norm:before{content:"\f0fca"}.mdi-math-norm-box:before{content:"\f0fcb"}.mdi-math-sin:before{content:"\f0c97"}.mdi-math-tan:before{content:"\f0c98"}.mdi-matrix:before{content:"\f0628"}.mdi-medal:before{content:"\f0987"}.mdi-medal-outline:before{content:"\f1326"}.mdi-medical-bag:before{content:"\f06ef"}.mdi-medical-cotton-swab:before{content:"\f1ab8"}.mdi-medication:before{content:"\f1b14"}.mdi-medication-outline:before{content:"\f1b15"}.mdi-meditation:before{content:"\f117b"}.mdi-memory:before{content:"\f035b"}.mdi-memory-arrow-down:before{content:"\f1ca6"}.mdi-menorah:before{content:"\f17d4"}.mdi-menorah-fire:before{content:"\f17d5"}.mdi-menu:before{content:"\f035c"}.mdi-menu-close:before{content:"\f1c90"}.mdi-menu-down:before{content:"\f035d"}.mdi-menu-down-outline:before{content:"\f06b6"}.mdi-menu-left:before{content:"\f035e"}.mdi-menu-left-outline:before{content:"\f0a02"}.mdi-menu-open:before{content:"\f0bab"}.mdi-menu-right:before{content:"\f035f"}.mdi-menu-right-outline:before{content:"\f0a03"}.mdi-menu-swap:before{content:"\f0a64"}.mdi-menu-swap-outline:before{content:"\f0a65"}.mdi-menu-up:before{content:"\f0360"}.mdi-menu-up-outline:before{content:"\f06b7"}.mdi-merge:before{content:"\f0f5c"}.mdi-message:before{content:"\f0361"}.mdi-message-alert:before{content:"\f0362"}.mdi-message-alert-outline:before{content:"\f0a04"}.mdi-message-arrow-left:before{content:"\f12f2"}.mdi-message-arrow-left-outline:before{content:"\f12f3"}.mdi-message-arrow-right:before{content:"\f12f4"}.mdi-message-arrow-right-outline:before{content:"\f12f5"}.mdi-message-badge:before{content:"\f1941"}.mdi-message-badge-outline:before{content:"\f1942"}.mdi-message-bookmark:before{content:"\f15ac"}.mdi-message-bookmark-outline:before{content:"\f15ad"}.mdi-message-bulleted:before{content:"\f06a2"}.mdi-message-bulleted-off:before{content:"\f06a3"}.mdi-message-check:before{content:"\f1b8a"}.mdi-message-check-outline:before{content:"\f1b8b"}.mdi-message-cog:before{content:"\f06f1"}.mdi-message-cog-outline:before{content:"\f1172"}.mdi-message-draw:before{content:"\f0363"}.mdi-message-fast:before{content:"\f19cc"}.mdi-message-fast-outline:before{content:"\f19cd"}.mdi-message-flash:before{content:"\f15a9"}.mdi-message-flash-outline:before{content:"\f15aa"}.mdi-message-image:before{content:"\f0364"}.mdi-message-image-outline:before{content:"\f116c"}.mdi-message-lock:before{content:"\f0fcc"}.mdi-message-lock-outline:before{content:"\f116d"}.mdi-message-minus:before{content:"\f116e"}.mdi-message-minus-outline:before{content:"\f116f"}.mdi-message-off:before{content:"\f164d"}.mdi-message-off-outline:before{content:"\f164e"}.mdi-message-outline:before{content:"\f0365"}.mdi-message-plus:before{content:"\f0653"}.mdi-message-plus-outline:before{content:"\f10bb"}.mdi-message-processing:before{content:"\f0366"}.mdi-message-processing-outline:before{content:"\f1170"}.mdi-message-question:before{content:"\f173a"}.mdi-message-question-outline:before{content:"\f173b"}.mdi-message-reply:before{content:"\f0367"}.mdi-message-reply-outline:before{content:"\f173d"}.mdi-message-reply-text:before{content:"\f0368"}.mdi-message-reply-text-outline:before{content:"\f173e"}.mdi-message-settings:before{content:"\f06f0"}.mdi-message-settings-outline:before{content:"\f1171"}.mdi-message-star:before{content:"\f069a"}.mdi-message-star-outline:before{content:"\f1250"}.mdi-message-text:before{content:"\f0369"}.mdi-message-text-clock:before{content:"\f1173"}.mdi-message-text-clock-outline:before{content:"\f1174"}.mdi-message-text-fast:before{content:"\f19ce"}.mdi-message-text-fast-outline:before{content:"\f19cf"}.mdi-message-text-lock:before{content:"\f0fcd"}.mdi-message-text-lock-outline:before{content:"\f1175"}.mdi-message-text-outline:before{content:"\f036a"}.mdi-message-video:before{content:"\f036b"}.mdi-meteor:before{content:"\f0629"}.mdi-meter-electric:before{content:"\f1a57"}.mdi-meter-electric-outline:before{content:"\f1a58"}.mdi-meter-gas:before{content:"\f1a59"}.mdi-meter-gas-outline:before{content:"\f1a5a"}.mdi-metronome:before{content:"\f07da"}.mdi-metronome-tick:before{content:"\f07db"}.mdi-micro-sd:before{content:"\f07dc"}.mdi-microphone:before{content:"\f036c"}.mdi-microphone-message:before{content:"\f050a"}.mdi-microphone-message-off:before{content:"\f050b"}.mdi-microphone-minus:before{content:"\f08b3"}.mdi-microphone-off:before{content:"\f036d"}.mdi-microphone-outline:before{content:"\f036e"}.mdi-microphone-plus:before{content:"\f08b4"}.mdi-microphone-question:before{content:"\f1989"}.mdi-microphone-question-outline:before{content:"\f198a"}.mdi-microphone-settings:before{content:"\f036f"}.mdi-microphone-variant:before{content:"\f0370"}.mdi-microphone-variant-off:before{content:"\f0371"}.mdi-microscope:before{content:"\f0654"}.mdi-microsoft:before{content:"\f0372"}.mdi-microsoft-access:before{content:"\f138e"}.mdi-microsoft-azure:before{content:"\f0805"}.mdi-microsoft-azure-devops:before{content:"\f0fd5"}.mdi-microsoft-bing:before{content:"\f00a4"}.mdi-microsoft-dynamics-365:before{content:"\f0988"}.mdi-microsoft-edge:before{content:"\f01e9"}.mdi-microsoft-excel:before{content:"\f138f"}.mdi-microsoft-internet-explorer:before{content:"\f0300"}.mdi-microsoft-office:before{content:"\f03c6"}.mdi-microsoft-onedrive:before{content:"\f03ca"}.mdi-microsoft-onenote:before{content:"\f0747"}.mdi-microsoft-outlook:before{content:"\f0d22"}.mdi-microsoft-powerpoint:before{content:"\f1390"}.mdi-microsoft-sharepoint:before{content:"\f1391"}.mdi-microsoft-teams:before{content:"\f02bb"}.mdi-microsoft-visual-studio:before{content:"\f0610"}.mdi-microsoft-visual-studio-code:before{content:"\f0a1e"}.mdi-microsoft-windows:before{content:"\f05b3"}.mdi-microsoft-windows-classic:before{content:"\f0a21"}.mdi-microsoft-word:before{content:"\f1392"}.mdi-microsoft-xbox:before{content:"\f05b9"}.mdi-microsoft-xbox-controller:before{content:"\f05ba"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"\f074b"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"\f0a22"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"\f074c"}.mdi-microsoft-xbox-controller-battery-full:before{content:"\f074d"}.mdi-microsoft-xbox-controller-battery-low:before{content:"\f074e"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"\f074f"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"\f0750"}.mdi-microsoft-xbox-controller-menu:before{content:"\f0e6f"}.mdi-microsoft-xbox-controller-off:before{content:"\f05bb"}.mdi-microsoft-xbox-controller-view:before{content:"\f0e70"}.mdi-microwave:before{content:"\f0c99"}.mdi-microwave-off:before{content:"\f1423"}.mdi-middleware:before{content:"\f0f5d"}.mdi-middleware-outline:before{content:"\f0f5e"}.mdi-midi:before{content:"\f08f1"}.mdi-midi-port:before{content:"\f08f2"}.mdi-mine:before{content:"\f0dda"}.mdi-minecraft:before{content:"\f0373"}.mdi-mini-sd:before{content:"\f0a05"}.mdi-minidisc:before{content:"\f0a06"}.mdi-minus:before{content:"\f0374"}.mdi-minus-box:before{content:"\f0375"}.mdi-minus-box-multiple:before{content:"\f1141"}.mdi-minus-box-multiple-outline:before{content:"\f1142"}.mdi-minus-box-outline:before{content:"\f06f2"}.mdi-minus-circle:before{content:"\f0376"}.mdi-minus-circle-multiple:before{content:"\f035a"}.mdi-minus-circle-multiple-outline:before{content:"\f0ad3"}.mdi-minus-circle-off:before{content:"\f1459"}.mdi-minus-circle-off-outline:before{content:"\f145a"}.mdi-minus-circle-outline:before{content:"\f0377"}.mdi-minus-network:before{content:"\f0378"}.mdi-minus-network-outline:before{content:"\f0c9a"}.mdi-minus-thick:before{content:"\f1639"}.mdi-mirror:before{content:"\f11fd"}.mdi-mirror-rectangle:before{content:"\f179f"}.mdi-mirror-variant:before{content:"\f17a0"}.mdi-mixed-martial-arts:before{content:"\f0d8f"}.mdi-mixed-reality:before{content:"\f087f"}.mdi-molecule:before{content:"\f0bac"}.mdi-molecule-co:before{content:"\f12fe"}.mdi-molecule-co2:before{content:"\f07e4"}.mdi-monitor:before{content:"\f0379"}.mdi-monitor-account:before{content:"\f1a5b"}.mdi-monitor-arrow-down:before{content:"\f19d0"}.mdi-monitor-arrow-down-variant:before{content:"\f19d1"}.mdi-monitor-cellphone:before{content:"\f0989"}.mdi-monitor-cellphone-star:before{content:"\f098a"}.mdi-monitor-dashboard:before{content:"\f0a07"}.mdi-monitor-edit:before{content:"\f12c6"}.mdi-monitor-eye:before{content:"\f13b4"}.mdi-monitor-lock:before{content:"\f0ddb"}.mdi-monitor-multiple:before{content:"\f037a"}.mdi-monitor-off:before{content:"\f0d90"}.mdi-monitor-screenshot:before{content:"\f0e51"}.mdi-monitor-share:before{content:"\f1483"}.mdi-monitor-shimmer:before{content:"\f1104"}.mdi-monitor-small:before{content:"\f1876"}.mdi-monitor-speaker:before{content:"\f0f5f"}.mdi-monitor-speaker-off:before{content:"\f0f60"}.mdi-monitor-star:before{content:"\f0ddc"}.mdi-monitor-vertical:before{content:"\f1c33"}.mdi-moon-first-quarter:before{content:"\f0f61"}.mdi-moon-full:before{content:"\f0f62"}.mdi-moon-last-quarter:before{content:"\f0f63"}.mdi-moon-new:before{content:"\f0f64"}.mdi-moon-waning-crescent:before{content:"\f0f65"}.mdi-moon-waning-gibbous:before{content:"\f0f66"}.mdi-moon-waxing-crescent:before{content:"\f0f67"}.mdi-moon-waxing-gibbous:before{content:"\f0f68"}.mdi-moped:before{content:"\f1086"}.mdi-moped-electric:before{content:"\f15b7"}.mdi-moped-electric-outline:before{content:"\f15b8"}.mdi-moped-outline:before{content:"\f15b9"}.mdi-more:before{content:"\f037b"}.mdi-mortar-pestle:before{content:"\f1748"}.mdi-mortar-pestle-plus:before{content:"\f03f1"}.mdi-mosque:before{content:"\f0d45"}.mdi-mosque-outline:before{content:"\f1827"}.mdi-mother-heart:before{content:"\f1314"}.mdi-mother-nurse:before{content:"\f0d21"}.mdi-motion:before{content:"\f15b2"}.mdi-motion-outline:before{content:"\f15b3"}.mdi-motion-pause:before{content:"\f1590"}.mdi-motion-pause-outline:before{content:"\f1592"}.mdi-motion-play:before{content:"\f158f"}.mdi-motion-play-outline:before{content:"\f1591"}.mdi-motion-sensor:before{content:"\f0d91"}.mdi-motion-sensor-off:before{content:"\f1435"}.mdi-motorbike:before{content:"\f037c"}.mdi-motorbike-electric:before{content:"\f15ba"}.mdi-motorbike-off:before{content:"\f1b16"}.mdi-mouse:before{content:"\f037d"}.mdi-mouse-bluetooth:before{content:"\f098b"}.mdi-mouse-left-click:before{content:"\f1d07"}.mdi-mouse-left-click-outline:before{content:"\f1d08"}.mdi-mouse-move-down:before{content:"\f1550"}.mdi-mouse-move-up:before{content:"\f1551"}.mdi-mouse-move-vertical:before{content:"\f1552"}.mdi-mouse-off:before{content:"\f037e"}.mdi-mouse-outline:before{content:"\f1d09"}.mdi-mouse-right-click:before{content:"\f1d0a"}.mdi-mouse-right-click-outline:before{content:"\f1d0b"}.mdi-mouse-scroll-wheel:before{content:"\f1d0c"}.mdi-mouse-variant:before{content:"\f037f"}.mdi-mouse-variant-off:before{content:"\f0380"}.mdi-move-resize:before{content:"\f0655"}.mdi-move-resize-variant:before{content:"\f0656"}.mdi-movie:before{content:"\f0381"}.mdi-movie-check:before{content:"\f16f3"}.mdi-movie-check-outline:before{content:"\f16f4"}.mdi-movie-cog:before{content:"\f16f5"}.mdi-movie-cog-outline:before{content:"\f16f6"}.mdi-movie-edit:before{content:"\f1122"}.mdi-movie-edit-outline:before{content:"\f1123"}.mdi-movie-filter:before{content:"\f1124"}.mdi-movie-filter-outline:before{content:"\f1125"}.mdi-movie-minus:before{content:"\f16f7"}.mdi-movie-minus-outline:before{content:"\f16f8"}.mdi-movie-off:before{content:"\f16f9"}.mdi-movie-off-outline:before{content:"\f16fa"}.mdi-movie-open:before{content:"\f0fce"}.mdi-movie-open-check:before{content:"\f16fb"}.mdi-movie-open-check-outline:before{content:"\f16fc"}.mdi-movie-open-cog:before{content:"\f16fd"}.mdi-movie-open-cog-outline:before{content:"\f16fe"}.mdi-movie-open-edit:before{content:"\f16ff"}.mdi-movie-open-edit-outline:before{content:"\f1700"}.mdi-movie-open-minus:before{content:"\f1701"}.mdi-movie-open-minus-outline:before{content:"\f1702"}.mdi-movie-open-off:before{content:"\f1703"}.mdi-movie-open-off-outline:before{content:"\f1704"}.mdi-movie-open-outline:before{content:"\f0fcf"}.mdi-movie-open-play:before{content:"\f1705"}.mdi-movie-open-play-outline:before{content:"\f1706"}.mdi-movie-open-plus:before{content:"\f1707"}.mdi-movie-open-plus-outline:before{content:"\f1708"}.mdi-movie-open-remove:before{content:"\f1709"}.mdi-movie-open-remove-outline:before{content:"\f170a"}.mdi-movie-open-settings:before{content:"\f170b"}.mdi-movie-open-settings-outline:before{content:"\f170c"}.mdi-movie-open-star:before{content:"\f170d"}.mdi-movie-open-star-outline:before{content:"\f170e"}.mdi-movie-outline:before{content:"\f0ddd"}.mdi-movie-play:before{content:"\f170f"}.mdi-movie-play-outline:before{content:"\f1710"}.mdi-movie-plus:before{content:"\f1711"}.mdi-movie-plus-outline:before{content:"\f1712"}.mdi-movie-remove:before{content:"\f1713"}.mdi-movie-remove-outline:before{content:"\f1714"}.mdi-movie-roll:before{content:"\f07de"}.mdi-movie-search:before{content:"\f11d2"}.mdi-movie-search-outline:before{content:"\f11d3"}.mdi-movie-settings:before{content:"\f1715"}.mdi-movie-settings-outline:before{content:"\f1716"}.mdi-movie-star:before{content:"\f1717"}.mdi-movie-star-outline:before{content:"\f1718"}.mdi-mower:before{content:"\f166f"}.mdi-mower-bag:before{content:"\f1670"}.mdi-mower-bag-on:before{content:"\f1b60"}.mdi-mower-on:before{content:"\f1b5f"}.mdi-muffin:before{content:"\f098c"}.mdi-multicast:before{content:"\f1893"}.mdi-multimedia:before{content:"\f1b97"}.mdi-multiplication:before{content:"\f0382"}.mdi-multiplication-box:before{content:"\f0383"}.mdi-mushroom:before{content:"\f07df"}.mdi-mushroom-off:before{content:"\f13fa"}.mdi-mushroom-off-outline:before{content:"\f13fb"}.mdi-mushroom-outline:before{content:"\f07e0"}.mdi-music:before{content:"\f075a"}.mdi-music-accidental-double-flat:before{content:"\f0f69"}.mdi-music-accidental-double-sharp:before{content:"\f0f6a"}.mdi-music-accidental-flat:before{content:"\f0f6b"}.mdi-music-accidental-natural:before{content:"\f0f6c"}.mdi-music-accidental-sharp:before{content:"\f0f6d"}.mdi-music-box:before{content:"\f0384"}.mdi-music-box-multiple:before{content:"\f0333"}.mdi-music-box-multiple-outline:before{content:"\f0f04"}.mdi-music-box-outline:before{content:"\f0385"}.mdi-music-circle:before{content:"\f0386"}.mdi-music-circle-outline:before{content:"\f0ad4"}.mdi-music-clef-alto:before{content:"\f0f6e"}.mdi-music-clef-bass:before{content:"\f0f6f"}.mdi-music-clef-treble:before{content:"\f0f70"}.mdi-music-note:before{content:"\f0387"}.mdi-music-note-bluetooth:before{content:"\f05fe"}.mdi-music-note-bluetooth-off:before{content:"\f05ff"}.mdi-music-note-eighth:before{content:"\f0388"}.mdi-music-note-eighth-dotted:before{content:"\f0f71"}.mdi-music-note-half:before{content:"\f0389"}.mdi-music-note-half-dotted:before{content:"\f0f72"}.mdi-music-note-minus:before{content:"\f1b89"}.mdi-music-note-off:before{content:"\f038a"}.mdi-music-note-off-outline:before{content:"\f0f73"}.mdi-music-note-outline:before{content:"\f0f74"}.mdi-music-note-plus:before{content:"\f0dde"}.mdi-music-note-quarter:before{content:"\f038b"}.mdi-music-note-quarter-dotted:before{content:"\f0f75"}.mdi-music-note-sixteenth:before{content:"\f038c"}.mdi-music-note-sixteenth-dotted:before{content:"\f0f76"}.mdi-music-note-whole:before{content:"\f038d"}.mdi-music-note-whole-dotted:before{content:"\f0f77"}.mdi-music-off:before{content:"\f075b"}.mdi-music-rest-eighth:before{content:"\f0f78"}.mdi-music-rest-half:before{content:"\f0f79"}.mdi-music-rest-quarter:before{content:"\f0f7a"}.mdi-music-rest-sixteenth:before{content:"\f0f7b"}.mdi-music-rest-whole:before{content:"\f0f7c"}.mdi-mustache:before{content:"\f15de"}.mdi-nail:before{content:"\f0ddf"}.mdi-nas:before{content:"\f08f3"}.mdi-nativescript:before{content:"\f0880"}.mdi-nature:before{content:"\f038e"}.mdi-nature-outline:before{content:"\f1c71"}.mdi-nature-people:before{content:"\f038f"}.mdi-nature-people-outline:before{content:"\f1c72"}.mdi-navigation:before{content:"\f0390"}.mdi-navigation-outline:before{content:"\f1607"}.mdi-navigation-variant:before{content:"\f18f0"}.mdi-navigation-variant-outline:before{content:"\f18f1"}.mdi-near-me:before{content:"\f05cd"}.mdi-necklace:before{content:"\f0f0b"}.mdi-needle:before{content:"\f0391"}.mdi-needle-off:before{content:"\f19d2"}.mdi-netflix:before{content:"\f0746"}.mdi-network:before{content:"\f06f3"}.mdi-network-off:before{content:"\f0c9b"}.mdi-network-off-outline:before{content:"\f0c9c"}.mdi-network-outline:before{content:"\f0c9d"}.mdi-network-pos:before{content:"\f1acb"}.mdi-network-strength-1:before{content:"\f08f4"}.mdi-network-strength-1-alert:before{content:"\f08f5"}.mdi-network-strength-2:before{content:"\f08f6"}.mdi-network-strength-2-alert:before{content:"\f08f7"}.mdi-network-strength-3:before{content:"\f08f8"}.mdi-network-strength-3-alert:before{content:"\f08f9"}.mdi-network-strength-4:before{content:"\f08fa"}.mdi-network-strength-4-alert:before{content:"\f08fb"}.mdi-network-strength-4-cog:before{content:"\f191a"}.mdi-network-strength-off:before{content:"\f08fc"}.mdi-network-strength-off-outline:before{content:"\f08fd"}.mdi-network-strength-outline:before{content:"\f08fe"}.mdi-new-box:before{content:"\f0394"}.mdi-newspaper:before{content:"\f0395"}.mdi-newspaper-check:before{content:"\f1943"}.mdi-newspaper-minus:before{content:"\f0f0c"}.mdi-newspaper-plus:before{content:"\f0f0d"}.mdi-newspaper-remove:before{content:"\f1944"}.mdi-newspaper-variant:before{content:"\f1001"}.mdi-newspaper-variant-multiple:before{content:"\f1002"}.mdi-newspaper-variant-multiple-outline:before{content:"\f1003"}.mdi-newspaper-variant-outline:before{content:"\f1004"}.mdi-nfc:before{content:"\f0396"}.mdi-nfc-search-variant:before{content:"\f0e53"}.mdi-nfc-tap:before{content:"\f0397"}.mdi-nfc-variant:before{content:"\f0398"}.mdi-nfc-variant-off:before{content:"\f0e54"}.mdi-ninja:before{content:"\f0774"}.mdi-nintendo-game-boy:before{content:"\f1393"}.mdi-nintendo-switch:before{content:"\f07e1"}.mdi-nintendo-wii:before{content:"\f05ab"}.mdi-nintendo-wiiu:before{content:"\f072d"}.mdi-nix:before{content:"\f1105"}.mdi-nodejs:before{content:"\f0399"}.mdi-noodles:before{content:"\f117e"}.mdi-not-equal:before{content:"\f098d"}.mdi-not-equal-variant:before{content:"\f098e"}.mdi-note:before{content:"\f039a"}.mdi-note-alert:before{content:"\f177d"}.mdi-note-alert-outline:before{content:"\f177e"}.mdi-note-check:before{content:"\f177f"}.mdi-note-check-outline:before{content:"\f1780"}.mdi-note-edit:before{content:"\f1781"}.mdi-note-edit-outline:before{content:"\f1782"}.mdi-note-minus:before{content:"\f164f"}.mdi-note-minus-outline:before{content:"\f1650"}.mdi-note-multiple:before{content:"\f06b8"}.mdi-note-multiple-outline:before{content:"\f06b9"}.mdi-note-off:before{content:"\f1783"}.mdi-note-off-outline:before{content:"\f1784"}.mdi-note-outline:before{content:"\f039b"}.mdi-note-plus:before{content:"\f039c"}.mdi-note-plus-outline:before{content:"\f039d"}.mdi-note-remove:before{content:"\f1651"}.mdi-note-remove-outline:before{content:"\f1652"}.mdi-note-search:before{content:"\f1653"}.mdi-note-search-outline:before{content:"\f1654"}.mdi-note-text:before{content:"\f039e"}.mdi-note-text-outline:before{content:"\f11d7"}.mdi-notebook:before{content:"\f082e"}.mdi-notebook-check:before{content:"\f14f5"}.mdi-notebook-check-outline:before{content:"\f14f6"}.mdi-notebook-edit:before{content:"\f14e7"}.mdi-notebook-edit-outline:before{content:"\f14e9"}.mdi-notebook-heart:before{content:"\f1a0b"}.mdi-notebook-heart-outline:before{content:"\f1a0c"}.mdi-notebook-minus:before{content:"\f1610"}.mdi-notebook-minus-outline:before{content:"\f1611"}.mdi-notebook-multiple:before{content:"\f0e55"}.mdi-notebook-outline:before{content:"\f0ebf"}.mdi-notebook-plus:before{content:"\f1612"}.mdi-notebook-plus-outline:before{content:"\f1613"}.mdi-notebook-remove:before{content:"\f1614"}.mdi-notebook-remove-outline:before{content:"\f1615"}.mdi-notification-clear-all:before{content:"\f039f"}.mdi-npm:before{content:"\f06f7"}.mdi-nuke:before{content:"\f06a4"}.mdi-null:before{content:"\f07e2"}.mdi-numeric:before{content:"\f03a0"}.mdi-numeric-0:before{content:"\f0b39"}.mdi-numeric-0-box:before{content:"\f03a1"}.mdi-numeric-0-box-multiple:before{content:"\f0f0e"}.mdi-numeric-0-box-multiple-outline:before{content:"\f03a2"}.mdi-numeric-0-box-outline:before{content:"\f03a3"}.mdi-numeric-0-circle:before{content:"\f0c9e"}.mdi-numeric-0-circle-outline:before{content:"\f0c9f"}.mdi-numeric-1:before{content:"\f0b3a"}.mdi-numeric-1-box:before{content:"\f03a4"}.mdi-numeric-1-box-multiple:before{content:"\f0f0f"}.mdi-numeric-1-box-multiple-outline:before{content:"\f03a5"}.mdi-numeric-1-box-outline:before{content:"\f03a6"}.mdi-numeric-1-circle:before{content:"\f0ca0"}.mdi-numeric-1-circle-outline:before{content:"\f0ca1"}.mdi-numeric-10:before{content:"\f0fe9"}.mdi-numeric-10-box:before{content:"\f0f7d"}.mdi-numeric-10-box-multiple:before{content:"\f0fea"}.mdi-numeric-10-box-multiple-outline:before{content:"\f0feb"}.mdi-numeric-10-box-outline:before{content:"\f0f7e"}.mdi-numeric-10-circle:before{content:"\f0fec"}.mdi-numeric-10-circle-outline:before{content:"\f0fed"}.mdi-numeric-2:before{content:"\f0b3b"}.mdi-numeric-2-box:before{content:"\f03a7"}.mdi-numeric-2-box-multiple:before{content:"\f0f10"}.mdi-numeric-2-box-multiple-outline:before{content:"\f03a8"}.mdi-numeric-2-box-outline:before{content:"\f03a9"}.mdi-numeric-2-circle:before{content:"\f0ca2"}.mdi-numeric-2-circle-outline:before{content:"\f0ca3"}.mdi-numeric-3:before{content:"\f0b3c"}.mdi-numeric-3-box:before{content:"\f03aa"}.mdi-numeric-3-box-multiple:before{content:"\f0f11"}.mdi-numeric-3-box-multiple-outline:before{content:"\f03ab"}.mdi-numeric-3-box-outline:before{content:"\f03ac"}.mdi-numeric-3-circle:before{content:"\f0ca4"}.mdi-numeric-3-circle-outline:before{content:"\f0ca5"}.mdi-numeric-4:before{content:"\f0b3d"}.mdi-numeric-4-box:before{content:"\f03ad"}.mdi-numeric-4-box-multiple:before{content:"\f0f12"}.mdi-numeric-4-box-multiple-outline:before{content:"\f03b2"}.mdi-numeric-4-box-outline:before{content:"\f03ae"}.mdi-numeric-4-circle:before{content:"\f0ca6"}.mdi-numeric-4-circle-outline:before{content:"\f0ca7"}.mdi-numeric-5:before{content:"\f0b3e"}.mdi-numeric-5-box:before{content:"\f03b1"}.mdi-numeric-5-box-multiple:before{content:"\f0f13"}.mdi-numeric-5-box-multiple-outline:before{content:"\f03af"}.mdi-numeric-5-box-outline:before{content:"\f03b0"}.mdi-numeric-5-circle:before{content:"\f0ca8"}.mdi-numeric-5-circle-outline:before{content:"\f0ca9"}.mdi-numeric-6:before{content:"\f0b3f"}.mdi-numeric-6-box:before{content:"\f03b3"}.mdi-numeric-6-box-multiple:before{content:"\f0f14"}.mdi-numeric-6-box-multiple-outline:before{content:"\f03b4"}.mdi-numeric-6-box-outline:before{content:"\f03b5"}.mdi-numeric-6-circle:before{content:"\f0caa"}.mdi-numeric-6-circle-outline:before{content:"\f0cab"}.mdi-numeric-7:before{content:"\f0b40"}.mdi-numeric-7-box:before{content:"\f03b6"}.mdi-numeric-7-box-multiple:before{content:"\f0f15"}.mdi-numeric-7-box-multiple-outline:before{content:"\f03b7"}.mdi-numeric-7-box-outline:before{content:"\f03b8"}.mdi-numeric-7-circle:before{content:"\f0cac"}.mdi-numeric-7-circle-outline:before{content:"\f0cad"}.mdi-numeric-8:before{content:"\f0b41"}.mdi-numeric-8-box:before{content:"\f03b9"}.mdi-numeric-8-box-multiple:before{content:"\f0f16"}.mdi-numeric-8-box-multiple-outline:before{content:"\f03ba"}.mdi-numeric-8-box-outline:before{content:"\f03bb"}.mdi-numeric-8-circle:before{content:"\f0cae"}.mdi-numeric-8-circle-outline:before{content:"\f0caf"}.mdi-numeric-9:before{content:"\f0b42"}.mdi-numeric-9-box:before{content:"\f03bc"}.mdi-numeric-9-box-multiple:before{content:"\f0f17"}.mdi-numeric-9-box-multiple-outline:before{content:"\f03bd"}.mdi-numeric-9-box-outline:before{content:"\f03be"}.mdi-numeric-9-circle:before{content:"\f0cb0"}.mdi-numeric-9-circle-outline:before{content:"\f0cb1"}.mdi-numeric-9-plus:before{content:"\f0fee"}.mdi-numeric-9-plus-box:before{content:"\f03bf"}.mdi-numeric-9-plus-box-multiple:before{content:"\f0f18"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"\f03c0"}.mdi-numeric-9-plus-box-outline:before{content:"\f03c1"}.mdi-numeric-9-plus-circle:before{content:"\f0cb2"}.mdi-numeric-9-plus-circle-outline:before{content:"\f0cb3"}.mdi-numeric-negative-1:before{content:"\f1052"}.mdi-numeric-off:before{content:"\f19d3"}.mdi-numeric-positive-1:before{content:"\f15cb"}.mdi-nut:before{content:"\f06f8"}.mdi-nutrition:before{content:"\f03c2"}.mdi-nuxt:before{content:"\f1106"}.mdi-oar:before{content:"\f067c"}.mdi-ocarina:before{content:"\f0de0"}.mdi-oci:before{content:"\f12e9"}.mdi-ocr:before{content:"\f113a"}.mdi-octagon:before{content:"\f03c3"}.mdi-octagon-outline:before{content:"\f03c4"}.mdi-octagram:before{content:"\f06f9"}.mdi-octagram-edit:before{content:"\f1c34"}.mdi-octagram-edit-outline:before{content:"\f1c35"}.mdi-octagram-minus:before{content:"\f1c36"}.mdi-octagram-minus-outline:before{content:"\f1c37"}.mdi-octagram-outline:before{content:"\f0775"}.mdi-octagram-plus:before{content:"\f1c38"}.mdi-octagram-plus-outline:before{content:"\f1c39"}.mdi-octahedron:before{content:"\f1950"}.mdi-octahedron-off:before{content:"\f1951"}.mdi-odnoklassniki:before{content:"\f03c5"}.mdi-offer:before{content:"\f121b"}.mdi-office-building:before{content:"\f0991"}.mdi-office-building-cog:before{content:"\f1949"}.mdi-office-building-cog-outline:before{content:"\f194a"}.mdi-office-building-marker:before{content:"\f1520"}.mdi-office-building-marker-outline:before{content:"\f1521"}.mdi-office-building-minus:before{content:"\f1baa"}.mdi-office-building-minus-outline:before{content:"\f1bab"}.mdi-office-building-outline:before{content:"\f151f"}.mdi-office-building-plus:before{content:"\f1ba8"}.mdi-office-building-plus-outline:before{content:"\f1ba9"}.mdi-office-building-remove:before{content:"\f1bac"}.mdi-office-building-remove-outline:before{content:"\f1bad"}.mdi-oil:before{content:"\f03c7"}.mdi-oil-lamp:before{content:"\f0f19"}.mdi-oil-level:before{content:"\f1053"}.mdi-oil-temperature:before{content:"\f0ff8"}.mdi-om:before{content:"\f0973"}.mdi-omega:before{content:"\f03c9"}.mdi-one-up:before{content:"\f0bad"}.mdi-onepassword:before{content:"\f0881"}.mdi-opacity:before{content:"\f05cc"}.mdi-open-in-app:before{content:"\f03cb"}.mdi-open-in-new:before{content:"\f03cc"}.mdi-open-source-initiative:before{content:"\f0bae"}.mdi-openid:before{content:"\f03cd"}.mdi-opera:before{content:"\f03ce"}.mdi-orbit:before{content:"\f0018"}.mdi-orbit-variant:before{content:"\f15db"}.mdi-order-alphabetical-ascending:before{content:"\f020d"}.mdi-order-alphabetical-descending:before{content:"\f0d07"}.mdi-order-bool-ascending:before{content:"\f02be"}.mdi-order-bool-ascending-variant:before{content:"\f098f"}.mdi-order-bool-descending:before{content:"\f1384"}.mdi-order-bool-descending-variant:before{content:"\f0990"}.mdi-order-numeric-ascending:before{content:"\f0545"}.mdi-order-numeric-descending:before{content:"\f0546"}.mdi-origin:before{content:"\f0b43"}.mdi-ornament:before{content:"\f03cf"}.mdi-ornament-variant:before{content:"\f03d0"}.mdi-outdoor-lamp:before{content:"\f1054"}.mdi-overscan:before{content:"\f1005"}.mdi-owl:before{content:"\f03d2"}.mdi-pac-man:before{content:"\f0baf"}.mdi-package:before{content:"\f03d3"}.mdi-package-check:before{content:"\f1b51"}.mdi-package-down:before{content:"\f03d4"}.mdi-package-up:before{content:"\f03d5"}.mdi-package-variant:before{content:"\f03d6"}.mdi-package-variant-closed:before{content:"\f03d7"}.mdi-package-variant-closed-check:before{content:"\f1b52"}.mdi-package-variant-closed-minus:before{content:"\f19d4"}.mdi-package-variant-closed-plus:before{content:"\f19d5"}.mdi-package-variant-closed-remove:before{content:"\f19d6"}.mdi-package-variant-minus:before{content:"\f19d7"}.mdi-package-variant-plus:before{content:"\f19d8"}.mdi-package-variant-remove:before{content:"\f19d9"}.mdi-page-first:before{content:"\f0600"}.mdi-page-last:before{content:"\f0601"}.mdi-page-layout-body:before{content:"\f06fa"}.mdi-page-layout-footer:before{content:"\f06fb"}.mdi-page-layout-header:before{content:"\f06fc"}.mdi-page-layout-header-footer:before{content:"\f0f7f"}.mdi-page-layout-sidebar-left:before{content:"\f06fd"}.mdi-page-layout-sidebar-right:before{content:"\f06fe"}.mdi-page-next:before{content:"\f0bb0"}.mdi-page-next-outline:before{content:"\f0bb1"}.mdi-page-previous:before{content:"\f0bb2"}.mdi-page-previous-outline:before{content:"\f0bb3"}.mdi-pail:before{content:"\f1417"}.mdi-pail-minus:before{content:"\f1437"}.mdi-pail-minus-outline:before{content:"\f143c"}.mdi-pail-off:before{content:"\f1439"}.mdi-pail-off-outline:before{content:"\f143e"}.mdi-pail-outline:before{content:"\f143a"}.mdi-pail-plus:before{content:"\f1436"}.mdi-pail-plus-outline:before{content:"\f143b"}.mdi-pail-remove:before{content:"\f1438"}.mdi-pail-remove-outline:before{content:"\f143d"}.mdi-palette:before{content:"\f03d8"}.mdi-palette-advanced:before{content:"\f03d9"}.mdi-palette-outline:before{content:"\f0e0c"}.mdi-palette-swatch:before{content:"\f08b5"}.mdi-palette-swatch-outline:before{content:"\f135c"}.mdi-palette-swatch-variant:before{content:"\f195a"}.mdi-palm-tree:before{content:"\f1055"}.mdi-pan:before{content:"\f0bb4"}.mdi-pan-bottom-left:before{content:"\f0bb5"}.mdi-pan-bottom-right:before{content:"\f0bb6"}.mdi-pan-down:before{content:"\f0bb7"}.mdi-pan-horizontal:before{content:"\f0bb8"}.mdi-pan-left:before{content:"\f0bb9"}.mdi-pan-right:before{content:"\f0bba"}.mdi-pan-top-left:before{content:"\f0bbb"}.mdi-pan-top-right:before{content:"\f0bbc"}.mdi-pan-up:before{content:"\f0bbd"}.mdi-pan-vertical:before{content:"\f0bbe"}.mdi-panda:before{content:"\f03da"}.mdi-pandora:before{content:"\f03db"}.mdi-panorama:before{content:"\f03dc"}.mdi-panorama-fisheye:before{content:"\f03dd"}.mdi-panorama-horizontal:before{content:"\f1928"}.mdi-panorama-horizontal-outline:before{content:"\f03de"}.mdi-panorama-outline:before{content:"\f198c"}.mdi-panorama-sphere:before{content:"\f198d"}.mdi-panorama-sphere-outline:before{content:"\f198e"}.mdi-panorama-variant:before{content:"\f198f"}.mdi-panorama-variant-outline:before{content:"\f1990"}.mdi-panorama-vertical:before{content:"\f1929"}.mdi-panorama-vertical-outline:before{content:"\f03df"}.mdi-panorama-wide-angle:before{content:"\f195f"}.mdi-panorama-wide-angle-outline:before{content:"\f03e0"}.mdi-paper-cut-vertical:before{content:"\f03e1"}.mdi-paper-roll:before{content:"\f1157"}.mdi-paper-roll-outline:before{content:"\f1158"}.mdi-paperclip:before{content:"\f03e2"}.mdi-paperclip-check:before{content:"\f1ac6"}.mdi-paperclip-lock:before{content:"\f19da"}.mdi-paperclip-minus:before{content:"\f1ac7"}.mdi-paperclip-off:before{content:"\f1ac8"}.mdi-paperclip-plus:before{content:"\f1ac9"}.mdi-paperclip-remove:before{content:"\f1aca"}.mdi-parachute:before{content:"\f0cb4"}.mdi-parachute-outline:before{content:"\f0cb5"}.mdi-paragliding:before{content:"\f1745"}.mdi-parking:before{content:"\f03e3"}.mdi-party-popper:before{content:"\f1056"}.mdi-passport:before{content:"\f07e3"}.mdi-passport-alert:before{content:"\f1cb8"}.mdi-passport-biometric:before{content:"\f0de1"}.mdi-passport-cancel:before{content:"\f1cb9"}.mdi-passport-check:before{content:"\f1cba"}.mdi-passport-minus:before{content:"\f1cbb"}.mdi-passport-plus:before{content:"\f1cbc"}.mdi-passport-remove:before{content:"\f1cbd"}.mdi-pasta:before{content:"\f1160"}.mdi-patio-heater:before{content:"\f0f80"}.mdi-patreon:before{content:"\f0882"}.mdi-pause:before{content:"\f03e4"}.mdi-pause-box:before{content:"\f00bc"}.mdi-pause-box-outline:before{content:"\f1b7a"}.mdi-pause-circle:before{content:"\f03e5"}.mdi-pause-circle-outline:before{content:"\f03e6"}.mdi-pause-octagon:before{content:"\f03e7"}.mdi-pause-octagon-outline:before{content:"\f03e8"}.mdi-paw:before{content:"\f03e9"}.mdi-paw-off:before{content:"\f0657"}.mdi-paw-off-outline:before{content:"\f1676"}.mdi-paw-outline:before{content:"\f1675"}.mdi-peace:before{content:"\f0884"}.mdi-peanut:before{content:"\f0ffc"}.mdi-peanut-off:before{content:"\f0ffd"}.mdi-peanut-off-outline:before{content:"\f0fff"}.mdi-peanut-outline:before{content:"\f0ffe"}.mdi-pen:before{content:"\f03ea"}.mdi-pen-lock:before{content:"\f0de2"}.mdi-pen-minus:before{content:"\f0de3"}.mdi-pen-off:before{content:"\f0de4"}.mdi-pen-plus:before{content:"\f0de5"}.mdi-pen-remove:before{content:"\f0de6"}.mdi-pencil:before{content:"\f03eb"}.mdi-pencil-box:before{content:"\f03ec"}.mdi-pencil-box-multiple:before{content:"\f1144"}.mdi-pencil-box-multiple-outline:before{content:"\f1145"}.mdi-pencil-box-outline:before{content:"\f03ed"}.mdi-pencil-circle:before{content:"\f06ff"}.mdi-pencil-circle-outline:before{content:"\f0776"}.mdi-pencil-lock:before{content:"\f03ee"}.mdi-pencil-lock-outline:before{content:"\f0de7"}.mdi-pencil-minus:before{content:"\f0de8"}.mdi-pencil-minus-outline:before{content:"\f0de9"}.mdi-pencil-off:before{content:"\f03ef"}.mdi-pencil-off-outline:before{content:"\f0dea"}.mdi-pencil-outline:before{content:"\f0cb6"}.mdi-pencil-plus:before{content:"\f0deb"}.mdi-pencil-plus-outline:before{content:"\f0dec"}.mdi-pencil-remove:before{content:"\f0ded"}.mdi-pencil-remove-outline:before{content:"\f0dee"}.mdi-pencil-ruler:before{content:"\f1353"}.mdi-pencil-ruler-outline:before{content:"\f1c11"}.mdi-penguin:before{content:"\f0ec0"}.mdi-pentagon:before{content:"\f0701"}.mdi-pentagon-outline:before{content:"\f0700"}.mdi-pentagram:before{content:"\f1667"}.mdi-percent:before{content:"\f03f0"}.mdi-percent-box:before{content:"\f1a02"}.mdi-percent-box-outline:before{content:"\f1a03"}.mdi-percent-circle:before{content:"\f1a04"}.mdi-percent-circle-outline:before{content:"\f1a05"}.mdi-percent-outline:before{content:"\f1278"}.mdi-periodic-table:before{content:"\f08b6"}.mdi-perspective-less:before{content:"\f0d23"}.mdi-perspective-more:before{content:"\f0d24"}.mdi-ph:before{content:"\f17c5"}.mdi-phone:before{content:"\f03f2"}.mdi-phone-alert:before{content:"\f0f1a"}.mdi-phone-alert-outline:before{content:"\f118e"}.mdi-phone-bluetooth:before{content:"\f03f3"}.mdi-phone-bluetooth-outline:before{content:"\f118f"}.mdi-phone-cancel:before{content:"\f10bc"}.mdi-phone-cancel-outline:before{content:"\f1190"}.mdi-phone-check:before{content:"\f11a9"}.mdi-phone-check-outline:before{content:"\f11aa"}.mdi-phone-classic:before{content:"\f0602"}.mdi-phone-classic-off:before{content:"\f1279"}.mdi-phone-clock:before{content:"\f19db"}.mdi-phone-dial:before{content:"\f1559"}.mdi-phone-dial-outline:before{content:"\f155a"}.mdi-phone-forward:before{content:"\f03f4"}.mdi-phone-forward-outline:before{content:"\f1191"}.mdi-phone-hangup:before{content:"\f03f5"}.mdi-phone-hangup-outline:before{content:"\f1192"}.mdi-phone-in-talk:before{content:"\f03f6"}.mdi-phone-in-talk-outline:before{content:"\f1182"}.mdi-phone-incoming:before{content:"\f03f7"}.mdi-phone-incoming-outgoing:before{content:"\f1b3f"}.mdi-phone-incoming-outgoing-outline:before{content:"\f1b40"}.mdi-phone-incoming-outline:before{content:"\f1193"}.mdi-phone-lock:before{content:"\f03f8"}.mdi-phone-lock-outline:before{content:"\f1194"}.mdi-phone-log:before{content:"\f03f9"}.mdi-phone-log-outline:before{content:"\f1195"}.mdi-phone-message:before{content:"\f1196"}.mdi-phone-message-outline:before{content:"\f1197"}.mdi-phone-minus:before{content:"\f0658"}.mdi-phone-minus-outline:before{content:"\f1198"}.mdi-phone-missed:before{content:"\f03fa"}.mdi-phone-missed-outline:before{content:"\f11a5"}.mdi-phone-off:before{content:"\f0def"}.mdi-phone-off-outline:before{content:"\f11a6"}.mdi-phone-outgoing:before{content:"\f03fb"}.mdi-phone-outgoing-outline:before{content:"\f1199"}.mdi-phone-outline:before{content:"\f0df0"}.mdi-phone-paused:before{content:"\f03fc"}.mdi-phone-paused-outline:before{content:"\f119a"}.mdi-phone-plus:before{content:"\f0659"}.mdi-phone-plus-outline:before{content:"\f119b"}.mdi-phone-refresh:before{content:"\f1993"}.mdi-phone-refresh-outline:before{content:"\f1994"}.mdi-phone-remove:before{content:"\f152f"}.mdi-phone-remove-outline:before{content:"\f1530"}.mdi-phone-return:before{content:"\f082f"}.mdi-phone-return-outline:before{content:"\f119c"}.mdi-phone-ring:before{content:"\f11ab"}.mdi-phone-ring-outline:before{content:"\f11ac"}.mdi-phone-rotate-landscape:before{content:"\f0885"}.mdi-phone-rotate-portrait:before{content:"\f0886"}.mdi-phone-settings:before{content:"\f03fd"}.mdi-phone-settings-outline:before{content:"\f119d"}.mdi-phone-sync:before{content:"\f1995"}.mdi-phone-sync-outline:before{content:"\f1996"}.mdi-phone-voip:before{content:"\f03fe"}.mdi-pi:before{content:"\f03ff"}.mdi-pi-box:before{content:"\f0400"}.mdi-pi-hole:before{content:"\f0df1"}.mdi-piano:before{content:"\f067d"}.mdi-piano-off:before{content:"\f0698"}.mdi-pickaxe:before{content:"\f08b7"}.mdi-picture-in-picture-bottom-right:before{content:"\f0e57"}.mdi-picture-in-picture-bottom-right-outline:before{content:"\f0e58"}.mdi-picture-in-picture-top-right:before{content:"\f0e59"}.mdi-picture-in-picture-top-right-outline:before{content:"\f0e5a"}.mdi-pier:before{content:"\f0887"}.mdi-pier-crane:before{content:"\f0888"}.mdi-pig:before{content:"\f0401"}.mdi-pig-variant:before{content:"\f1006"}.mdi-pig-variant-outline:before{content:"\f1678"}.mdi-piggy-bank:before{content:"\f1007"}.mdi-piggy-bank-outline:before{content:"\f1679"}.mdi-pill:before{content:"\f0402"}.mdi-pill-multiple:before{content:"\f1b4c"}.mdi-pill-off:before{content:"\f1a5c"}.mdi-pillar:before{content:"\f0702"}.mdi-pin:before{content:"\f0403"}.mdi-pin-off:before{content:"\f0404"}.mdi-pin-off-outline:before{content:"\f0930"}.mdi-pin-outline:before{content:"\f0931"}.mdi-pine-tree:before{content:"\f0405"}.mdi-pine-tree-box:before{content:"\f0406"}.mdi-pine-tree-fire:before{content:"\f141a"}.mdi-pine-tree-variant:before{content:"\f1c73"}.mdi-pine-tree-variant-outline:before{content:"\f1c74"}.mdi-pinterest:before{content:"\f0407"}.mdi-pinwheel:before{content:"\f0ad5"}.mdi-pinwheel-outline:before{content:"\f0ad6"}.mdi-pipe:before{content:"\f07e5"}.mdi-pipe-disconnected:before{content:"\f07e6"}.mdi-pipe-leak:before{content:"\f0889"}.mdi-pipe-valve:before{content:"\f184d"}.mdi-pipe-wrench:before{content:"\f1354"}.mdi-pirate:before{content:"\f0a08"}.mdi-pistol:before{content:"\f0703"}.mdi-piston:before{content:"\f088a"}.mdi-pitchfork:before{content:"\f1553"}.mdi-pizza:before{content:"\f0409"}.mdi-plane-car:before{content:"\f1aff"}.mdi-plane-train:before{content:"\f1b00"}.mdi-play:before{content:"\f040a"}.mdi-play-box:before{content:"\f127a"}.mdi-play-box-edit-outline:before{content:"\f1c3a"}.mdi-play-box-lock:before{content:"\f1a16"}.mdi-play-box-lock-open:before{content:"\f1a17"}.mdi-play-box-lock-open-outline:before{content:"\f1a18"}.mdi-play-box-lock-outline:before{content:"\f1a19"}.mdi-play-box-multiple:before{content:"\f0d19"}.mdi-play-box-multiple-outline:before{content:"\f13e6"}.mdi-play-box-outline:before{content:"\f040b"}.mdi-play-circle:before{content:"\f040c"}.mdi-play-circle-outline:before{content:"\f040d"}.mdi-play-network:before{content:"\f088b"}.mdi-play-network-outline:before{content:"\f0cb7"}.mdi-play-outline:before{content:"\f0f1b"}.mdi-play-pause:before{content:"\f040e"}.mdi-play-protected-content:before{content:"\f040f"}.mdi-play-speed:before{content:"\f08ff"}.mdi-playlist-check:before{content:"\f05c7"}.mdi-playlist-edit:before{content:"\f0900"}.mdi-playlist-minus:before{content:"\f0410"}.mdi-playlist-music:before{content:"\f0cb8"}.mdi-playlist-music-outline:before{content:"\f0cb9"}.mdi-playlist-play:before{content:"\f0411"}.mdi-playlist-plus:before{content:"\f0412"}.mdi-playlist-remove:before{content:"\f0413"}.mdi-playlist-star:before{content:"\f0df2"}.mdi-plex:before{content:"\f06ba"}.mdi-pliers:before{content:"\f19a4"}.mdi-plus:before{content:"\f0415"}.mdi-plus-box:before{content:"\f0416"}.mdi-plus-box-multiple:before{content:"\f0334"}.mdi-plus-box-multiple-outline:before{content:"\f1143"}.mdi-plus-box-outline:before{content:"\f0704"}.mdi-plus-circle:before{content:"\f0417"}.mdi-plus-circle-multiple:before{content:"\f034c"}.mdi-plus-circle-multiple-outline:before{content:"\f0418"}.mdi-plus-circle-outline:before{content:"\f0419"}.mdi-plus-lock:before{content:"\f1a5d"}.mdi-plus-lock-open:before{content:"\f1a5e"}.mdi-plus-minus:before{content:"\f0992"}.mdi-plus-minus-box:before{content:"\f0993"}.mdi-plus-minus-variant:before{content:"\f14c9"}.mdi-plus-network:before{content:"\f041a"}.mdi-plus-network-outline:before{content:"\f0cba"}.mdi-plus-outline:before{content:"\f0705"}.mdi-plus-thick:before{content:"\f11ec"}.mdi-pocket:before{content:"\f1cbe"}.mdi-podcast:before{content:"\f0994"}.mdi-podium:before{content:"\f0d25"}.mdi-podium-bronze:before{content:"\f0d26"}.mdi-podium-gold:before{content:"\f0d27"}.mdi-podium-silver:before{content:"\f0d28"}.mdi-point-of-sale:before{content:"\f0d92"}.mdi-pokeball:before{content:"\f041d"}.mdi-pokemon-go:before{content:"\f0a09"}.mdi-poker-chip:before{content:"\f0830"}.mdi-polaroid:before{content:"\f041e"}.mdi-police-badge:before{content:"\f1167"}.mdi-police-badge-outline:before{content:"\f1168"}.mdi-police-station:before{content:"\f1839"}.mdi-poll:before{content:"\f041f"}.mdi-polo:before{content:"\f14c3"}.mdi-polymer:before{content:"\f0421"}.mdi-pool:before{content:"\f0606"}.mdi-pool-thermometer:before{content:"\f1a5f"}.mdi-popcorn:before{content:"\f0422"}.mdi-post:before{content:"\f1008"}.mdi-post-lamp:before{content:"\f1a60"}.mdi-post-outline:before{content:"\f1009"}.mdi-postage-stamp:before{content:"\f0cbb"}.mdi-pot:before{content:"\f02e5"}.mdi-pot-mix:before{content:"\f065b"}.mdi-pot-mix-outline:before{content:"\f0677"}.mdi-pot-outline:before{content:"\f02ff"}.mdi-pot-steam:before{content:"\f065a"}.mdi-pot-steam-outline:before{content:"\f0326"}.mdi-pound:before{content:"\f0423"}.mdi-pound-box:before{content:"\f0424"}.mdi-pound-box-outline:before{content:"\f117f"}.mdi-power:before{content:"\f0425"}.mdi-power-cycle:before{content:"\f0901"}.mdi-power-off:before{content:"\f0902"}.mdi-power-on:before{content:"\f0903"}.mdi-power-plug:before{content:"\f06a5"}.mdi-power-plug-battery:before{content:"\f1c3b"}.mdi-power-plug-battery-outline:before{content:"\f1c3c"}.mdi-power-plug-off:before{content:"\f06a6"}.mdi-power-plug-off-outline:before{content:"\f1424"}.mdi-power-plug-outline:before{content:"\f1425"}.mdi-power-settings:before{content:"\f0426"}.mdi-power-sleep:before{content:"\f0904"}.mdi-power-socket:before{content:"\f0427"}.mdi-power-socket-au:before{content:"\f0905"}.mdi-power-socket-ch:before{content:"\f0fb3"}.mdi-power-socket-de:before{content:"\f1107"}.mdi-power-socket-eu:before{content:"\f07e7"}.mdi-power-socket-fr:before{content:"\f1108"}.mdi-power-socket-it:before{content:"\f14ff"}.mdi-power-socket-jp:before{content:"\f1109"}.mdi-power-socket-uk:before{content:"\f07e8"}.mdi-power-socket-us:before{content:"\f07e9"}.mdi-power-standby:before{content:"\f0906"}.mdi-powershell:before{content:"\f0a0a"}.mdi-prescription:before{content:"\f0706"}.mdi-presentation:before{content:"\f0428"}.mdi-presentation-play:before{content:"\f0429"}.mdi-pretzel:before{content:"\f1562"}.mdi-printer:before{content:"\f042a"}.mdi-printer-3d:before{content:"\f042b"}.mdi-printer-3d-nozzle:before{content:"\f0e5b"}.mdi-printer-3d-nozzle-alert:before{content:"\f11c0"}.mdi-printer-3d-nozzle-alert-outline:before{content:"\f11c1"}.mdi-printer-3d-nozzle-heat:before{content:"\f18b8"}.mdi-printer-3d-nozzle-heat-outline:before{content:"\f18b9"}.mdi-printer-3d-nozzle-off:before{content:"\f1b19"}.mdi-printer-3d-nozzle-off-outline:before{content:"\f1b1a"}.mdi-printer-3d-nozzle-outline:before{content:"\f0e5c"}.mdi-printer-3d-off:before{content:"\f1b0e"}.mdi-printer-alert:before{content:"\f042c"}.mdi-printer-check:before{content:"\f1146"}.mdi-printer-eye:before{content:"\f1458"}.mdi-printer-off:before{content:"\f0e5d"}.mdi-printer-off-outline:before{content:"\f1785"}.mdi-printer-outline:before{content:"\f1786"}.mdi-printer-pos:before{content:"\f1057"}.mdi-printer-pos-alert:before{content:"\f1bbc"}.mdi-printer-pos-alert-outline:before{content:"\f1bbd"}.mdi-printer-pos-cancel:before{content:"\f1bbe"}.mdi-printer-pos-cancel-outline:before{content:"\f1bbf"}.mdi-printer-pos-check:before{content:"\f1bc0"}.mdi-printer-pos-check-outline:before{content:"\f1bc1"}.mdi-printer-pos-cog:before{content:"\f1bc2"}.mdi-printer-pos-cog-outline:before{content:"\f1bc3"}.mdi-printer-pos-edit:before{content:"\f1bc4"}.mdi-printer-pos-edit-outline:before{content:"\f1bc5"}.mdi-printer-pos-minus:before{content:"\f1bc6"}.mdi-printer-pos-minus-outline:before{content:"\f1bc7"}.mdi-printer-pos-network:before{content:"\f1bc8"}.mdi-printer-pos-network-outline:before{content:"\f1bc9"}.mdi-printer-pos-off:before{content:"\f1bca"}.mdi-printer-pos-off-outline:before{content:"\f1bcb"}.mdi-printer-pos-outline:before{content:"\f1bcc"}.mdi-printer-pos-pause:before{content:"\f1bcd"}.mdi-printer-pos-pause-outline:before{content:"\f1bce"}.mdi-printer-pos-play:before{content:"\f1bcf"}.mdi-printer-pos-play-outline:before{content:"\f1bd0"}.mdi-printer-pos-plus:before{content:"\f1bd1"}.mdi-printer-pos-plus-outline:before{content:"\f1bd2"}.mdi-printer-pos-refresh:before{content:"\f1bd3"}.mdi-printer-pos-refresh-outline:before{content:"\f1bd4"}.mdi-printer-pos-remove:before{content:"\f1bd5"}.mdi-printer-pos-remove-outline:before{content:"\f1bd6"}.mdi-printer-pos-star:before{content:"\f1bd7"}.mdi-printer-pos-star-outline:before{content:"\f1bd8"}.mdi-printer-pos-stop:before{content:"\f1bd9"}.mdi-printer-pos-stop-outline:before{content:"\f1bda"}.mdi-printer-pos-sync:before{content:"\f1bdb"}.mdi-printer-pos-sync-outline:before{content:"\f1bdc"}.mdi-printer-pos-wrench:before{content:"\f1bdd"}.mdi-printer-pos-wrench-outline:before{content:"\f1bde"}.mdi-printer-search:before{content:"\f1457"}.mdi-printer-settings:before{content:"\f0707"}.mdi-printer-wireless:before{content:"\f0a0b"}.mdi-priority-high:before{content:"\f0603"}.mdi-priority-low:before{content:"\f0604"}.mdi-professional-hexagon:before{content:"\f042d"}.mdi-progress-alert:before{content:"\f0cbc"}.mdi-progress-check:before{content:"\f0995"}.mdi-progress-clock:before{content:"\f0996"}.mdi-progress-close:before{content:"\f110a"}.mdi-progress-download:before{content:"\f0997"}.mdi-progress-helper:before{content:"\f1ba2"}.mdi-progress-pencil:before{content:"\f1787"}.mdi-progress-question:before{content:"\f1522"}.mdi-progress-star:before{content:"\f1788"}.mdi-progress-star-four-points:before{content:"\f1c3d"}.mdi-progress-tag:before{content:"\f1d0d"}.mdi-progress-upload:before{content:"\f0998"}.mdi-progress-wrench:before{content:"\f0cbd"}.mdi-projector:before{content:"\f042e"}.mdi-projector-off:before{content:"\f1a23"}.mdi-projector-screen:before{content:"\f042f"}.mdi-projector-screen-off:before{content:"\f180d"}.mdi-projector-screen-off-outline:before{content:"\f180e"}.mdi-projector-screen-outline:before{content:"\f1724"}.mdi-projector-screen-variant:before{content:"\f180f"}.mdi-projector-screen-variant-off:before{content:"\f1810"}.mdi-projector-screen-variant-off-outline:before{content:"\f1811"}.mdi-projector-screen-variant-outline:before{content:"\f1812"}.mdi-propane-tank:before{content:"\f1357"}.mdi-propane-tank-outline:before{content:"\f1358"}.mdi-protocol:before{content:"\f0fd8"}.mdi-publish:before{content:"\f06a7"}.mdi-publish-off:before{content:"\f1945"}.mdi-pulse:before{content:"\f0430"}.mdi-pump:before{content:"\f1402"}.mdi-pump-off:before{content:"\f1b22"}.mdi-pumpkin:before{content:"\f0bbf"}.mdi-purse:before{content:"\f0f1c"}.mdi-purse-outline:before{content:"\f0f1d"}.mdi-puzzle:before{content:"\f0431"}.mdi-puzzle-check:before{content:"\f1426"}.mdi-puzzle-check-outline:before{content:"\f1427"}.mdi-puzzle-edit:before{content:"\f14d3"}.mdi-puzzle-edit-outline:before{content:"\f14d9"}.mdi-puzzle-heart:before{content:"\f14d4"}.mdi-puzzle-heart-outline:before{content:"\f14da"}.mdi-puzzle-minus:before{content:"\f14d1"}.mdi-puzzle-minus-outline:before{content:"\f14d7"}.mdi-puzzle-outline:before{content:"\f0a66"}.mdi-puzzle-plus:before{content:"\f14d0"}.mdi-puzzle-plus-outline:before{content:"\f14d6"}.mdi-puzzle-remove:before{content:"\f14d2"}.mdi-puzzle-remove-outline:before{content:"\f14d8"}.mdi-puzzle-star:before{content:"\f14d5"}.mdi-puzzle-star-outline:before{content:"\f14db"}.mdi-pyramid:before{content:"\f1952"}.mdi-pyramid-off:before{content:"\f1953"}.mdi-qi:before{content:"\f0999"}.mdi-qqchat:before{content:"\f0605"}.mdi-qrcode:before{content:"\f0432"}.mdi-qrcode-edit:before{content:"\f08b8"}.mdi-qrcode-minus:before{content:"\f118c"}.mdi-qrcode-plus:before{content:"\f118b"}.mdi-qrcode-remove:before{content:"\f118d"}.mdi-qrcode-scan:before{content:"\f0433"}.mdi-quadcopter:before{content:"\f0434"}.mdi-quality-high:before{content:"\f0435"}.mdi-quality-low:before{content:"\f0a0c"}.mdi-quality-medium:before{content:"\f0a0d"}.mdi-queue-first-in-last-out:before{content:"\f1caf"}.mdi-quora:before{content:"\f0d29"}.mdi-rabbit:before{content:"\f0907"}.mdi-rabbit-variant:before{content:"\f1a61"}.mdi-rabbit-variant-outline:before{content:"\f1a62"}.mdi-racing-helmet:before{content:"\f0d93"}.mdi-racquetball:before{content:"\f0d94"}.mdi-radar:before{content:"\f0437"}.mdi-radiator:before{content:"\f0438"}.mdi-radiator-disabled:before{content:"\f0ad7"}.mdi-radiator-off:before{content:"\f0ad8"}.mdi-radio:before{content:"\f0439"}.mdi-radio-am:before{content:"\f0cbe"}.mdi-radio-fm:before{content:"\f0cbf"}.mdi-radio-handheld:before{content:"\f043a"}.mdi-radio-off:before{content:"\f121c"}.mdi-radio-tower:before{content:"\f043b"}.mdi-radioactive:before{content:"\f043c"}.mdi-radioactive-circle:before{content:"\f185d"}.mdi-radioactive-circle-outline:before{content:"\f185e"}.mdi-radioactive-off:before{content:"\f0ec1"}.mdi-radiobox-blank:before{content:"\f043d"}.mdi-radiobox-indeterminate-variant:before{content:"\f1c5e"}.mdi-radiobox-marked:before{content:"\f043e"}.mdi-radiology-box:before{content:"\f14c5"}.mdi-radiology-box-outline:before{content:"\f14c6"}.mdi-radius:before{content:"\f0cc0"}.mdi-radius-outline:before{content:"\f0cc1"}.mdi-railroad-light:before{content:"\f0f1e"}.mdi-rake:before{content:"\f1544"}.mdi-raspberry-pi:before{content:"\f043f"}.mdi-raw:before{content:"\f1a0f"}.mdi-raw-off:before{content:"\f1a10"}.mdi-ray-end:before{content:"\f0440"}.mdi-ray-end-arrow:before{content:"\f0441"}.mdi-ray-start:before{content:"\f0442"}.mdi-ray-start-arrow:before{content:"\f0443"}.mdi-ray-start-end:before{content:"\f0444"}.mdi-ray-start-vertex-end:before{content:"\f15d8"}.mdi-ray-vertex:before{content:"\f0445"}.mdi-razor-double-edge:before{content:"\f1997"}.mdi-razor-single-edge:before{content:"\f1998"}.mdi-react:before{content:"\f0708"}.mdi-read:before{content:"\f0447"}.mdi-receipt:before{content:"\f0824"}.mdi-receipt-clock:before{content:"\f1c3e"}.mdi-receipt-clock-outline:before{content:"\f1c3f"}.mdi-receipt-outline:before{content:"\f04f7"}.mdi-receipt-send:before{content:"\f1c40"}.mdi-receipt-send-outline:before{content:"\f1c41"}.mdi-receipt-text:before{content:"\f0449"}.mdi-receipt-text-arrow-left:before{content:"\f1c42"}.mdi-receipt-text-arrow-left-outline:before{content:"\f1c43"}.mdi-receipt-text-arrow-right:before{content:"\f1c44"}.mdi-receipt-text-arrow-right-outline:before{content:"\f1c45"}.mdi-receipt-text-check:before{content:"\f1a63"}.mdi-receipt-text-check-outline:before{content:"\f1a64"}.mdi-receipt-text-clock:before{content:"\f1c46"}.mdi-receipt-text-clock-outline:before{content:"\f1c47"}.mdi-receipt-text-edit:before{content:"\f1c48"}.mdi-receipt-text-edit-outline:before{content:"\f1c49"}.mdi-receipt-text-minus:before{content:"\f1a65"}.mdi-receipt-text-minus-outline:before{content:"\f1a66"}.mdi-receipt-text-outline:before{content:"\f19dc"}.mdi-receipt-text-plus:before{content:"\f1a67"}.mdi-receipt-text-plus-outline:before{content:"\f1a68"}.mdi-receipt-text-remove:before{content:"\f1a69"}.mdi-receipt-text-remove-outline:before{content:"\f1a6a"}.mdi-receipt-text-send:before{content:"\f1c4a"}.mdi-receipt-text-send-outline:before{content:"\f1c4b"}.mdi-record:before{content:"\f044a"}.mdi-record-circle:before{content:"\f0ec2"}.mdi-record-circle-outline:before{content:"\f0ec3"}.mdi-record-player:before{content:"\f099a"}.mdi-record-rec:before{content:"\f044b"}.mdi-rectangle:before{content:"\f0e5e"}.mdi-rectangle-outline:before{content:"\f0e5f"}.mdi-recycle:before{content:"\f044c"}.mdi-recycle-variant:before{content:"\f139d"}.mdi-reddit:before{content:"\f044d"}.mdi-redhat:before{content:"\f111b"}.mdi-redo:before{content:"\f044e"}.mdi-redo-variant:before{content:"\f044f"}.mdi-reflect-horizontal:before{content:"\f0a0e"}.mdi-reflect-vertical:before{content:"\f0a0f"}.mdi-refresh:before{content:"\f0450"}.mdi-refresh-auto:before{content:"\f18f2"}.mdi-refresh-circle:before{content:"\f1377"}.mdi-regex:before{content:"\f0451"}.mdi-registered-trademark:before{content:"\f0a67"}.mdi-reiterate:before{content:"\f1588"}.mdi-relation-many-to-many:before{content:"\f1496"}.mdi-relation-many-to-one:before{content:"\f1497"}.mdi-relation-many-to-one-or-many:before{content:"\f1498"}.mdi-relation-many-to-only-one:before{content:"\f1499"}.mdi-relation-many-to-zero-or-many:before{content:"\f149a"}.mdi-relation-many-to-zero-or-one:before{content:"\f149b"}.mdi-relation-one-or-many-to-many:before{content:"\f149c"}.mdi-relation-one-or-many-to-one:before{content:"\f149d"}.mdi-relation-one-or-many-to-one-or-many:before{content:"\f149e"}.mdi-relation-one-or-many-to-only-one:before{content:"\f149f"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"\f14a0"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"\f14a1"}.mdi-relation-one-to-many:before{content:"\f14a2"}.mdi-relation-one-to-one:before{content:"\f14a3"}.mdi-relation-one-to-one-or-many:before{content:"\f14a4"}.mdi-relation-one-to-only-one:before{content:"\f14a5"}.mdi-relation-one-to-zero-or-many:before{content:"\f14a6"}.mdi-relation-one-to-zero-or-one:before{content:"\f14a7"}.mdi-relation-only-one-to-many:before{content:"\f14a8"}.mdi-relation-only-one-to-one:before{content:"\f14a9"}.mdi-relation-only-one-to-one-or-many:before{content:"\f14aa"}.mdi-relation-only-one-to-only-one:before{content:"\f14ab"}.mdi-relation-only-one-to-zero-or-many:before{content:"\f14ac"}.mdi-relation-only-one-to-zero-or-one:before{content:"\f14ad"}.mdi-relation-zero-or-many-to-many:before{content:"\f14ae"}.mdi-relation-zero-or-many-to-one:before{content:"\f14af"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"\f14b0"}.mdi-relation-zero-or-many-to-only-one:before{content:"\f14b1"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"\f14b2"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"\f14b3"}.mdi-relation-zero-or-one-to-many:before{content:"\f14b4"}.mdi-relation-zero-or-one-to-one:before{content:"\f14b5"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"\f14b6"}.mdi-relation-zero-or-one-to-only-one:before{content:"\f14b7"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"\f14b8"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"\f14b9"}.mdi-relative-scale:before{content:"\f0452"}.mdi-reload:before{content:"\f0453"}.mdi-reload-alert:before{content:"\f110b"}.mdi-reminder:before{content:"\f088c"}.mdi-remote:before{content:"\f0454"}.mdi-remote-desktop:before{content:"\f08b9"}.mdi-remote-off:before{content:"\f0ec4"}.mdi-remote-tv:before{content:"\f0ec5"}.mdi-remote-tv-off:before{content:"\f0ec6"}.mdi-rename:before{content:"\f1c18"}.mdi-rename-box:before{content:"\f0455"}.mdi-rename-box-outline:before{content:"\f1c19"}.mdi-rename-outline:before{content:"\f1c1a"}.mdi-reorder-horizontal:before{content:"\f0688"}.mdi-reorder-vertical:before{content:"\f0689"}.mdi-repeat:before{content:"\f0456"}.mdi-repeat-off:before{content:"\f0457"}.mdi-repeat-once:before{content:"\f0458"}.mdi-repeat-variant:before{content:"\f0547"}.mdi-replay:before{content:"\f0459"}.mdi-reply:before{content:"\f045a"}.mdi-reply-all:before{content:"\f045b"}.mdi-reply-all-outline:before{content:"\f0f1f"}.mdi-reply-circle:before{content:"\f11ae"}.mdi-reply-outline:before{content:"\f0f20"}.mdi-reproduction:before{content:"\f045c"}.mdi-resistor:before{content:"\f0b44"}.mdi-resistor-nodes:before{content:"\f0b45"}.mdi-resize:before{content:"\f0a68"}.mdi-resize-bottom-right:before{content:"\f045d"}.mdi-responsive:before{content:"\f045e"}.mdi-restart:before{content:"\f0709"}.mdi-restart-alert:before{content:"\f110c"}.mdi-restart-off:before{content:"\f0d95"}.mdi-restore:before{content:"\f099b"}.mdi-restore-alert:before{content:"\f110d"}.mdi-rewind:before{content:"\f045f"}.mdi-rewind-10:before{content:"\f0d2a"}.mdi-rewind-15:before{content:"\f1946"}.mdi-rewind-30:before{content:"\f0d96"}.mdi-rewind-45:before{content:"\f1b13"}.mdi-rewind-5:before{content:"\f11f9"}.mdi-rewind-60:before{content:"\f160c"}.mdi-rewind-outline:before{content:"\f070a"}.mdi-rhombus:before{content:"\f070b"}.mdi-rhombus-medium:before{content:"\f0a10"}.mdi-rhombus-medium-outline:before{content:"\f14dc"}.mdi-rhombus-outline:before{content:"\f070c"}.mdi-rhombus-split:before{content:"\f0a11"}.mdi-rhombus-split-outline:before{content:"\f14dd"}.mdi-ribbon:before{content:"\f0460"}.mdi-rice:before{content:"\f07ea"}.mdi-rickshaw:before{content:"\f15bb"}.mdi-rickshaw-electric:before{content:"\f15bc"}.mdi-ring:before{content:"\f07eb"}.mdi-rivet:before{content:"\f0e60"}.mdi-road:before{content:"\f0461"}.mdi-road-variant:before{content:"\f0462"}.mdi-robber:before{content:"\f1058"}.mdi-robot:before{content:"\f06a9"}.mdi-robot-angry:before{content:"\f169d"}.mdi-robot-angry-outline:before{content:"\f169e"}.mdi-robot-confused:before{content:"\f169f"}.mdi-robot-confused-outline:before{content:"\f16a0"}.mdi-robot-dead:before{content:"\f16a1"}.mdi-robot-dead-outline:before{content:"\f16a2"}.mdi-robot-excited:before{content:"\f16a3"}.mdi-robot-excited-outline:before{content:"\f16a4"}.mdi-robot-happy:before{content:"\f1719"}.mdi-robot-happy-outline:before{content:"\f171a"}.mdi-robot-industrial:before{content:"\f0b46"}.mdi-robot-industrial-outline:before{content:"\f1a1a"}.mdi-robot-love:before{content:"\f16a5"}.mdi-robot-love-outline:before{content:"\f16a6"}.mdi-robot-mower:before{content:"\f11f7"}.mdi-robot-mower-outline:before{content:"\f11f3"}.mdi-robot-off:before{content:"\f16a7"}.mdi-robot-off-outline:before{content:"\f167b"}.mdi-robot-outline:before{content:"\f167a"}.mdi-robot-vacuum:before{content:"\f070d"}.mdi-robot-vacuum-alert:before{content:"\f1b5d"}.mdi-robot-vacuum-off:before{content:"\f1c01"}.mdi-robot-vacuum-variant:before{content:"\f0908"}.mdi-robot-vacuum-variant-alert:before{content:"\f1b5e"}.mdi-robot-vacuum-variant-off:before{content:"\f1c02"}.mdi-rocket:before{content:"\f0463"}.mdi-rocket-launch:before{content:"\f14de"}.mdi-rocket-launch-outline:before{content:"\f14df"}.mdi-rocket-outline:before{content:"\f13af"}.mdi-rodent:before{content:"\f1327"}.mdi-roller-shade:before{content:"\f1a6b"}.mdi-roller-shade-closed:before{content:"\f1a6c"}.mdi-roller-skate:before{content:"\f0d2b"}.mdi-roller-skate-off:before{content:"\f0145"}.mdi-rollerblade:before{content:"\f0d2c"}.mdi-rollerblade-off:before{content:"\f002e"}.mdi-rollupjs:before{content:"\f0bc0"}.mdi-rolodex:before{content:"\f1ab9"}.mdi-rolodex-outline:before{content:"\f1aba"}.mdi-roman-numeral-1:before{content:"\f1088"}.mdi-roman-numeral-10:before{content:"\f1091"}.mdi-roman-numeral-2:before{content:"\f1089"}.mdi-roman-numeral-3:before{content:"\f108a"}.mdi-roman-numeral-4:before{content:"\f108b"}.mdi-roman-numeral-5:before{content:"\f108c"}.mdi-roman-numeral-6:before{content:"\f108d"}.mdi-roman-numeral-7:before{content:"\f108e"}.mdi-roman-numeral-8:before{content:"\f108f"}.mdi-roman-numeral-9:before{content:"\f1090"}.mdi-room-service:before{content:"\f088d"}.mdi-room-service-outline:before{content:"\f0d97"}.mdi-rotate-360:before{content:"\f1999"}.mdi-rotate-3d:before{content:"\f0ec7"}.mdi-rotate-3d-variant:before{content:"\f0464"}.mdi-rotate-left:before{content:"\f0465"}.mdi-rotate-left-variant:before{content:"\f0466"}.mdi-rotate-orbit:before{content:"\f0d98"}.mdi-rotate-right:before{content:"\f0467"}.mdi-rotate-right-variant:before{content:"\f0468"}.mdi-rounded-corner:before{content:"\f0607"}.mdi-router:before{content:"\f11e2"}.mdi-router-network:before{content:"\f1087"}.mdi-router-network-wireless:before{content:"\f1c97"}.mdi-router-wireless:before{content:"\f0469"}.mdi-router-wireless-off:before{content:"\f15a3"}.mdi-router-wireless-settings:before{content:"\f0a69"}.mdi-routes:before{content:"\f046a"}.mdi-routes-clock:before{content:"\f1059"}.mdi-rowing:before{content:"\f0608"}.mdi-rss:before{content:"\f046b"}.mdi-rss-box:before{content:"\f046c"}.mdi-rss-off:before{content:"\f0f21"}.mdi-rug:before{content:"\f1475"}.mdi-rugby:before{content:"\f0d99"}.mdi-ruler:before{content:"\f046d"}.mdi-ruler-square:before{content:"\f0cc2"}.mdi-ruler-square-compass:before{content:"\f0ebe"}.mdi-run:before{content:"\f070e"}.mdi-run-fast:before{content:"\f046e"}.mdi-rv-truck:before{content:"\f11d4"}.mdi-sack:before{content:"\f0d2e"}.mdi-sack-outline:before{content:"\f1c4c"}.mdi-sack-percent:before{content:"\f0d2f"}.mdi-safe:before{content:"\f0a6a"}.mdi-safe-square:before{content:"\f127c"}.mdi-safe-square-outline:before{content:"\f127d"}.mdi-safety-goggles:before{content:"\f0d30"}.mdi-sail-boat:before{content:"\f0ec8"}.mdi-sail-boat-sink:before{content:"\f1aef"}.mdi-sale:before{content:"\f046f"}.mdi-sale-outline:before{content:"\f1a06"}.mdi-salesforce:before{content:"\f088e"}.mdi-sass:before{content:"\f07ec"}.mdi-satellite:before{content:"\f0470"}.mdi-satellite-uplink:before{content:"\f0909"}.mdi-satellite-variant:before{content:"\f0471"}.mdi-sausage:before{content:"\f08ba"}.mdi-sausage-off:before{content:"\f1789"}.mdi-saw-blade:before{content:"\f0e61"}.mdi-sawtooth-wave:before{content:"\f147a"}.mdi-saxophone:before{content:"\f0609"}.mdi-scale:before{content:"\f0472"}.mdi-scale-balance:before{content:"\f05d1"}.mdi-scale-bathroom:before{content:"\f0473"}.mdi-scale-off:before{content:"\f105a"}.mdi-scale-unbalanced:before{content:"\f19b8"}.mdi-scan-helper:before{content:"\f13d8"}.mdi-scanner:before{content:"\f06ab"}.mdi-scanner-off:before{content:"\f090a"}.mdi-scatter-plot:before{content:"\f0ec9"}.mdi-scatter-plot-outline:before{content:"\f0eca"}.mdi-scent:before{content:"\f1958"}.mdi-scent-off:before{content:"\f1959"}.mdi-school:before{content:"\f0474"}.mdi-school-outline:before{content:"\f1180"}.mdi-scissors-cutting:before{content:"\f0a6b"}.mdi-scooter:before{content:"\f15bd"}.mdi-scooter-electric:before{content:"\f15be"}.mdi-scoreboard:before{content:"\f127e"}.mdi-scoreboard-outline:before{content:"\f127f"}.mdi-screen-rotation:before{content:"\f0475"}.mdi-screen-rotation-lock:before{content:"\f0478"}.mdi-screw-flat-top:before{content:"\f0df3"}.mdi-screw-lag:before{content:"\f0df4"}.mdi-screw-machine-flat-top:before{content:"\f0df5"}.mdi-screw-machine-round-top:before{content:"\f0df6"}.mdi-screw-round-top:before{content:"\f0df7"}.mdi-screwdriver:before{content:"\f0476"}.mdi-script:before{content:"\f0bc1"}.mdi-script-outline:before{content:"\f0477"}.mdi-script-text:before{content:"\f0bc2"}.mdi-script-text-key:before{content:"\f1725"}.mdi-script-text-key-outline:before{content:"\f1726"}.mdi-script-text-outline:before{content:"\f0bc3"}.mdi-script-text-play:before{content:"\f1727"}.mdi-script-text-play-outline:before{content:"\f1728"}.mdi-sd:before{content:"\f0479"}.mdi-seal:before{content:"\f047a"}.mdi-seal-variant:before{content:"\f0fd9"}.mdi-search-web:before{content:"\f070f"}.mdi-seat:before{content:"\f0cc3"}.mdi-seat-flat:before{content:"\f047b"}.mdi-seat-flat-angled:before{content:"\f047c"}.mdi-seat-individual-suite:before{content:"\f047d"}.mdi-seat-legroom-extra:before{content:"\f047e"}.mdi-seat-legroom-normal:before{content:"\f047f"}.mdi-seat-legroom-reduced:before{content:"\f0480"}.mdi-seat-outline:before{content:"\f0cc4"}.mdi-seat-passenger:before{content:"\f1249"}.mdi-seat-recline-extra:before{content:"\f0481"}.mdi-seat-recline-normal:before{content:"\f0482"}.mdi-seatbelt:before{content:"\f0cc5"}.mdi-security:before{content:"\f0483"}.mdi-security-network:before{content:"\f0484"}.mdi-seed:before{content:"\f0e62"}.mdi-seed-off:before{content:"\f13fd"}.mdi-seed-off-outline:before{content:"\f13fe"}.mdi-seed-outline:before{content:"\f0e63"}.mdi-seed-plus:before{content:"\f1a6d"}.mdi-seed-plus-outline:before{content:"\f1a6e"}.mdi-seesaw:before{content:"\f15a4"}.mdi-segment:before{content:"\f0ecb"}.mdi-select:before{content:"\f0485"}.mdi-select-all:before{content:"\f0486"}.mdi-select-arrow-down:before{content:"\f1b59"}.mdi-select-arrow-up:before{content:"\f1b58"}.mdi-select-color:before{content:"\f0d31"}.mdi-select-compare:before{content:"\f0ad9"}.mdi-select-drag:before{content:"\f0a6c"}.mdi-select-group:before{content:"\f0f82"}.mdi-select-inverse:before{content:"\f0487"}.mdi-select-marker:before{content:"\f1280"}.mdi-select-multiple:before{content:"\f1281"}.mdi-select-multiple-marker:before{content:"\f1282"}.mdi-select-off:before{content:"\f0488"}.mdi-select-place:before{content:"\f0fda"}.mdi-select-remove:before{content:"\f17c1"}.mdi-select-search:before{content:"\f1204"}.mdi-selection:before{content:"\f0489"}.mdi-selection-drag:before{content:"\f0a6d"}.mdi-selection-ellipse:before{content:"\f0d32"}.mdi-selection-ellipse-arrow-inside:before{content:"\f0f22"}.mdi-selection-ellipse-remove:before{content:"\f17c2"}.mdi-selection-marker:before{content:"\f1283"}.mdi-selection-multiple:before{content:"\f1285"}.mdi-selection-multiple-marker:before{content:"\f1284"}.mdi-selection-off:before{content:"\f0777"}.mdi-selection-remove:before{content:"\f17c3"}.mdi-selection-search:before{content:"\f1205"}.mdi-semantic-web:before{content:"\f1316"}.mdi-send:before{content:"\f048a"}.mdi-send-check:before{content:"\f1161"}.mdi-send-check-outline:before{content:"\f1162"}.mdi-send-circle:before{content:"\f0df8"}.mdi-send-circle-outline:before{content:"\f0df9"}.mdi-send-clock:before{content:"\f1163"}.mdi-send-clock-outline:before{content:"\f1164"}.mdi-send-lock:before{content:"\f07ed"}.mdi-send-lock-outline:before{content:"\f1166"}.mdi-send-outline:before{content:"\f1165"}.mdi-send-variant:before{content:"\f1c4d"}.mdi-send-variant-clock:before{content:"\f1c7e"}.mdi-send-variant-clock-outline:before{content:"\f1c7f"}.mdi-send-variant-outline:before{content:"\f1c4e"}.mdi-serial-port:before{content:"\f065c"}.mdi-server:before{content:"\f048b"}.mdi-server-minus:before{content:"\f048c"}.mdi-server-minus-outline:before{content:"\f1c98"}.mdi-server-network:before{content:"\f048d"}.mdi-server-network-off:before{content:"\f048e"}.mdi-server-network-outline:before{content:"\f1c99"}.mdi-server-off:before{content:"\f048f"}.mdi-server-outline:before{content:"\f1c9a"}.mdi-server-plus:before{content:"\f0490"}.mdi-server-plus-outline:before{content:"\f1c9b"}.mdi-server-remove:before{content:"\f0491"}.mdi-server-security:before{content:"\f0492"}.mdi-set-all:before{content:"\f0778"}.mdi-set-center:before{content:"\f0779"}.mdi-set-center-right:before{content:"\f077a"}.mdi-set-left:before{content:"\f077b"}.mdi-set-left-center:before{content:"\f077c"}.mdi-set-left-right:before{content:"\f077d"}.mdi-set-merge:before{content:"\f14e0"}.mdi-set-none:before{content:"\f077e"}.mdi-set-right:before{content:"\f077f"}.mdi-set-split:before{content:"\f14e1"}.mdi-set-square:before{content:"\f145d"}.mdi-set-top-box:before{content:"\f099f"}.mdi-settings-helper:before{content:"\f0a6e"}.mdi-shaker:before{content:"\f110e"}.mdi-shaker-outline:before{content:"\f110f"}.mdi-shape:before{content:"\f0831"}.mdi-shape-circle-plus:before{content:"\f065d"}.mdi-shape-outline:before{content:"\f0832"}.mdi-shape-oval-plus:before{content:"\f11fa"}.mdi-shape-plus:before{content:"\f0495"}.mdi-shape-plus-outline:before{content:"\f1c4f"}.mdi-shape-polygon-plus:before{content:"\f065e"}.mdi-shape-rectangle-plus:before{content:"\f065f"}.mdi-shape-square-plus:before{content:"\f0660"}.mdi-shape-square-rounded-plus:before{content:"\f14fa"}.mdi-share:before{content:"\f0496"}.mdi-share-all:before{content:"\f11f4"}.mdi-share-all-outline:before{content:"\f11f5"}.mdi-share-circle:before{content:"\f11ad"}.mdi-share-off:before{content:"\f0f23"}.mdi-share-off-outline:before{content:"\f0f24"}.mdi-share-outline:before{content:"\f0932"}.mdi-share-variant:before{content:"\f0497"}.mdi-share-variant-outline:before{content:"\f1514"}.mdi-shark:before{content:"\f18ba"}.mdi-shark-fin:before{content:"\f1673"}.mdi-shark-fin-outline:before{content:"\f1674"}.mdi-shark-off:before{content:"\f18bb"}.mdi-sheep:before{content:"\f0cc6"}.mdi-shield:before{content:"\f0498"}.mdi-shield-account:before{content:"\f088f"}.mdi-shield-account-outline:before{content:"\f0a12"}.mdi-shield-account-variant:before{content:"\f15a7"}.mdi-shield-account-variant-outline:before{content:"\f15a8"}.mdi-shield-airplane:before{content:"\f06bb"}.mdi-shield-airplane-outline:before{content:"\f0cc7"}.mdi-shield-alert:before{content:"\f0ecc"}.mdi-shield-alert-outline:before{content:"\f0ecd"}.mdi-shield-bug:before{content:"\f13da"}.mdi-shield-bug-outline:before{content:"\f13db"}.mdi-shield-car:before{content:"\f0f83"}.mdi-shield-check:before{content:"\f0565"}.mdi-shield-check-outline:before{content:"\f0cc8"}.mdi-shield-cross:before{content:"\f0cc9"}.mdi-shield-cross-outline:before{content:"\f0cca"}.mdi-shield-crown:before{content:"\f18bc"}.mdi-shield-crown-outline:before{content:"\f18bd"}.mdi-shield-edit:before{content:"\f11a0"}.mdi-shield-edit-outline:before{content:"\f11a1"}.mdi-shield-half:before{content:"\f1360"}.mdi-shield-half-full:before{content:"\f0780"}.mdi-shield-home:before{content:"\f068a"}.mdi-shield-home-outline:before{content:"\f0ccb"}.mdi-shield-key:before{content:"\f0bc4"}.mdi-shield-key-outline:before{content:"\f0bc5"}.mdi-shield-link-variant:before{content:"\f0d33"}.mdi-shield-link-variant-outline:before{content:"\f0d34"}.mdi-shield-lock:before{content:"\f099d"}.mdi-shield-lock-open:before{content:"\f199a"}.mdi-shield-lock-open-outline:before{content:"\f199b"}.mdi-shield-lock-outline:before{content:"\f0ccc"}.mdi-shield-moon:before{content:"\f1828"}.mdi-shield-moon-outline:before{content:"\f1829"}.mdi-shield-off:before{content:"\f099e"}.mdi-shield-off-outline:before{content:"\f099c"}.mdi-shield-outline:before{content:"\f0499"}.mdi-shield-plus:before{content:"\f0ada"}.mdi-shield-plus-outline:before{content:"\f0adb"}.mdi-shield-refresh:before{content:"\f00aa"}.mdi-shield-refresh-outline:before{content:"\f01e0"}.mdi-shield-remove:before{content:"\f0adc"}.mdi-shield-remove-outline:before{content:"\f0add"}.mdi-shield-search:before{content:"\f0d9a"}.mdi-shield-star:before{content:"\f113b"}.mdi-shield-star-outline:before{content:"\f113c"}.mdi-shield-sun:before{content:"\f105d"}.mdi-shield-sun-outline:before{content:"\f105e"}.mdi-shield-sword:before{content:"\f18be"}.mdi-shield-sword-outline:before{content:"\f18bf"}.mdi-shield-sync:before{content:"\f11a2"}.mdi-shield-sync-outline:before{content:"\f11a3"}.mdi-shimmer:before{content:"\f1545"}.mdi-ship-wheel:before{content:"\f0833"}.mdi-shipping-pallet:before{content:"\f184e"}.mdi-shoe-ballet:before{content:"\f15ca"}.mdi-shoe-cleat:before{content:"\f15c7"}.mdi-shoe-formal:before{content:"\f0b47"}.mdi-shoe-heel:before{content:"\f0b48"}.mdi-shoe-print:before{content:"\f0dfa"}.mdi-shoe-sneaker:before{content:"\f15c8"}.mdi-shopping:before{content:"\f049a"}.mdi-shopping-music:before{content:"\f049b"}.mdi-shopping-outline:before{content:"\f11d5"}.mdi-shopping-search:before{content:"\f0f84"}.mdi-shopping-search-outline:before{content:"\f1a6f"}.mdi-shore:before{content:"\f14f9"}.mdi-shovel:before{content:"\f0710"}.mdi-shovel-off:before{content:"\f0711"}.mdi-shower:before{content:"\f09a0"}.mdi-shower-head:before{content:"\f09a1"}.mdi-shredder:before{content:"\f049c"}.mdi-shuffle:before{content:"\f049d"}.mdi-shuffle-disabled:before{content:"\f049e"}.mdi-shuffle-variant:before{content:"\f049f"}.mdi-shuriken:before{content:"\f137f"}.mdi-sickle:before{content:"\f18c0"}.mdi-sigma:before{content:"\f04a0"}.mdi-sigma-lower:before{content:"\f062b"}.mdi-sign-caution:before{content:"\f04a1"}.mdi-sign-direction:before{content:"\f0781"}.mdi-sign-direction-minus:before{content:"\f1000"}.mdi-sign-direction-plus:before{content:"\f0fdc"}.mdi-sign-direction-remove:before{content:"\f0fdd"}.mdi-sign-language:before{content:"\f1b4d"}.mdi-sign-language-outline:before{content:"\f1b4e"}.mdi-sign-pole:before{content:"\f14f8"}.mdi-sign-real-estate:before{content:"\f1118"}.mdi-sign-text:before{content:"\f0782"}.mdi-sign-yield:before{content:"\f1baf"}.mdi-signal:before{content:"\f04a2"}.mdi-signal-2g:before{content:"\f0712"}.mdi-signal-3g:before{content:"\f0713"}.mdi-signal-4g:before{content:"\f0714"}.mdi-signal-5g:before{content:"\f0a6f"}.mdi-signal-cellular-1:before{content:"\f08bc"}.mdi-signal-cellular-2:before{content:"\f08bd"}.mdi-signal-cellular-3:before{content:"\f08be"}.mdi-signal-cellular-outline:before{content:"\f08bf"}.mdi-signal-distance-variant:before{content:"\f0e64"}.mdi-signal-hspa:before{content:"\f0715"}.mdi-signal-hspa-plus:before{content:"\f0716"}.mdi-signal-off:before{content:"\f0783"}.mdi-signal-variant:before{content:"\f060a"}.mdi-signature:before{content:"\f0dfb"}.mdi-signature-freehand:before{content:"\f0dfc"}.mdi-signature-image:before{content:"\f0dfd"}.mdi-signature-text:before{content:"\f0dfe"}.mdi-silo:before{content:"\f1b9f"}.mdi-silo-outline:before{content:"\f0b49"}.mdi-silverware:before{content:"\f04a3"}.mdi-silverware-clean:before{content:"\f0fde"}.mdi-silverware-fork:before{content:"\f04a4"}.mdi-silverware-fork-knife:before{content:"\f0a70"}.mdi-silverware-spoon:before{content:"\f04a5"}.mdi-silverware-variant:before{content:"\f04a6"}.mdi-sim:before{content:"\f04a7"}.mdi-sim-alert:before{content:"\f04a8"}.mdi-sim-alert-outline:before{content:"\f15d3"}.mdi-sim-off:before{content:"\f04a9"}.mdi-sim-off-outline:before{content:"\f15d4"}.mdi-sim-outline:before{content:"\f15d5"}.mdi-simple-icons:before{content:"\f131d"}.mdi-sina-weibo:before{content:"\f0adf"}.mdi-sine-wave:before{content:"\f095b"}.mdi-sitemap:before{content:"\f04aa"}.mdi-sitemap-outline:before{content:"\f199c"}.mdi-size-l:before{content:"\f13a6"}.mdi-size-m:before{content:"\f13a5"}.mdi-size-s:before{content:"\f13a4"}.mdi-size-xl:before{content:"\f13a7"}.mdi-size-xs:before{content:"\f13a3"}.mdi-size-xxl:before{content:"\f13a8"}.mdi-size-xxs:before{content:"\f13a2"}.mdi-size-xxxl:before{content:"\f13a9"}.mdi-skate:before{content:"\f0d35"}.mdi-skate-off:before{content:"\f0699"}.mdi-skateboard:before{content:"\f14c2"}.mdi-skateboarding:before{content:"\f0501"}.mdi-skew-less:before{content:"\f0d36"}.mdi-skew-more:before{content:"\f0d37"}.mdi-ski:before{content:"\f1304"}.mdi-ski-cross-country:before{content:"\f1305"}.mdi-ski-water:before{content:"\f1306"}.mdi-skip-backward:before{content:"\f04ab"}.mdi-skip-backward-outline:before{content:"\f0f25"}.mdi-skip-forward:before{content:"\f04ac"}.mdi-skip-forward-outline:before{content:"\f0f26"}.mdi-skip-next:before{content:"\f04ad"}.mdi-skip-next-circle:before{content:"\f0661"}.mdi-skip-next-circle-outline:before{content:"\f0662"}.mdi-skip-next-outline:before{content:"\f0f27"}.mdi-skip-previous:before{content:"\f04ae"}.mdi-skip-previous-circle:before{content:"\f0663"}.mdi-skip-previous-circle-outline:before{content:"\f0664"}.mdi-skip-previous-outline:before{content:"\f0f28"}.mdi-skull:before{content:"\f068c"}.mdi-skull-crossbones:before{content:"\f0bc6"}.mdi-skull-crossbones-outline:before{content:"\f0bc7"}.mdi-skull-outline:before{content:"\f0bc8"}.mdi-skull-scan:before{content:"\f14c7"}.mdi-skull-scan-outline:before{content:"\f14c8"}.mdi-skype:before{content:"\f04af"}.mdi-skype-business:before{content:"\f04b0"}.mdi-slack:before{content:"\f04b1"}.mdi-slash-forward:before{content:"\f0fdf"}.mdi-slash-forward-box:before{content:"\f0fe0"}.mdi-sledding:before{content:"\f041b"}.mdi-sleep:before{content:"\f04b2"}.mdi-sleep-off:before{content:"\f04b3"}.mdi-slide:before{content:"\f15a5"}.mdi-slope-downhill:before{content:"\f0dff"}.mdi-slope-uphill:before{content:"\f0e00"}.mdi-slot-machine:before{content:"\f1114"}.mdi-slot-machine-outline:before{content:"\f1115"}.mdi-smart-card:before{content:"\f10bd"}.mdi-smart-card-off:before{content:"\f18f7"}.mdi-smart-card-off-outline:before{content:"\f18f8"}.mdi-smart-card-outline:before{content:"\f10be"}.mdi-smart-card-reader:before{content:"\f10bf"}.mdi-smart-card-reader-outline:before{content:"\f10c0"}.mdi-smog:before{content:"\f0a71"}.mdi-smoke:before{content:"\f1799"}.mdi-smoke-detector:before{content:"\f0392"}.mdi-smoke-detector-alert:before{content:"\f192e"}.mdi-smoke-detector-alert-outline:before{content:"\f192f"}.mdi-smoke-detector-off:before{content:"\f1809"}.mdi-smoke-detector-off-outline:before{content:"\f180a"}.mdi-smoke-detector-outline:before{content:"\f1808"}.mdi-smoke-detector-variant:before{content:"\f180b"}.mdi-smoke-detector-variant-alert:before{content:"\f1930"}.mdi-smoke-detector-variant-off:before{content:"\f180c"}.mdi-smoking:before{content:"\f04b4"}.mdi-smoking-off:before{content:"\f04b5"}.mdi-smoking-pipe:before{content:"\f140d"}.mdi-smoking-pipe-off:before{content:"\f1428"}.mdi-snail:before{content:"\f1677"}.mdi-snake:before{content:"\f150e"}.mdi-snapchat:before{content:"\f04b6"}.mdi-snowboard:before{content:"\f1307"}.mdi-snowflake:before{content:"\f0717"}.mdi-snowflake-alert:before{content:"\f0f29"}.mdi-snowflake-check:before{content:"\f1a70"}.mdi-snowflake-melt:before{content:"\f12cb"}.mdi-snowflake-off:before{content:"\f14e3"}.mdi-snowflake-thermometer:before{content:"\f1a71"}.mdi-snowflake-variant:before{content:"\f0f2a"}.mdi-snowman:before{content:"\f04b7"}.mdi-snowmobile:before{content:"\f06dd"}.mdi-snowshoeing:before{content:"\f1a72"}.mdi-soccer:before{content:"\f04b8"}.mdi-soccer-field:before{content:"\f0834"}.mdi-social-distance-2-meters:before{content:"\f1579"}.mdi-social-distance-6-feet:before{content:"\f157a"}.mdi-sofa:before{content:"\f04b9"}.mdi-sofa-outline:before{content:"\f156d"}.mdi-sofa-single:before{content:"\f156e"}.mdi-sofa-single-outline:before{content:"\f156f"}.mdi-solar-panel:before{content:"\f0d9b"}.mdi-solar-panel-large:before{content:"\f0d9c"}.mdi-solar-power:before{content:"\f0a72"}.mdi-solar-power-variant:before{content:"\f1a73"}.mdi-solar-power-variant-outline:before{content:"\f1a74"}.mdi-soldering-iron:before{content:"\f1092"}.mdi-solid:before{content:"\f068d"}.mdi-sony-playstation:before{content:"\f0414"}.mdi-sort:before{content:"\f04ba"}.mdi-sort-alphabetical-ascending:before{content:"\f05bd"}.mdi-sort-alphabetical-ascending-variant:before{content:"\f1148"}.mdi-sort-alphabetical-descending:before{content:"\f05bf"}.mdi-sort-alphabetical-descending-variant:before{content:"\f1149"}.mdi-sort-alphabetical-variant:before{content:"\f04bb"}.mdi-sort-ascending:before{content:"\f04bc"}.mdi-sort-bool-ascending:before{content:"\f1385"}.mdi-sort-bool-ascending-variant:before{content:"\f1386"}.mdi-sort-bool-descending:before{content:"\f1387"}.mdi-sort-bool-descending-variant:before{content:"\f1388"}.mdi-sort-calendar-ascending:before{content:"\f1547"}.mdi-sort-calendar-descending:before{content:"\f1548"}.mdi-sort-clock-ascending:before{content:"\f1549"}.mdi-sort-clock-ascending-outline:before{content:"\f154a"}.mdi-sort-clock-descending:before{content:"\f154b"}.mdi-sort-clock-descending-outline:before{content:"\f154c"}.mdi-sort-descending:before{content:"\f04bd"}.mdi-sort-numeric-ascending:before{content:"\f1389"}.mdi-sort-numeric-ascending-variant:before{content:"\f090d"}.mdi-sort-numeric-descending:before{content:"\f138a"}.mdi-sort-numeric-descending-variant:before{content:"\f0ad2"}.mdi-sort-numeric-variant:before{content:"\f04be"}.mdi-sort-reverse-variant:before{content:"\f033c"}.mdi-sort-variant:before{content:"\f04bf"}.mdi-sort-variant-lock:before{content:"\f0ccd"}.mdi-sort-variant-lock-open:before{content:"\f0cce"}.mdi-sort-variant-off:before{content:"\f1abb"}.mdi-sort-variant-remove:before{content:"\f1147"}.mdi-soundbar:before{content:"\f17db"}.mdi-soundcloud:before{content:"\f04c0"}.mdi-source-branch:before{content:"\f062c"}.mdi-source-branch-check:before{content:"\f14cf"}.mdi-source-branch-minus:before{content:"\f14cb"}.mdi-source-branch-plus:before{content:"\f14ca"}.mdi-source-branch-refresh:before{content:"\f14cd"}.mdi-source-branch-remove:before{content:"\f14cc"}.mdi-source-branch-sync:before{content:"\f14ce"}.mdi-source-commit:before{content:"\f0718"}.mdi-source-commit-end:before{content:"\f0719"}.mdi-source-commit-end-local:before{content:"\f071a"}.mdi-source-commit-local:before{content:"\f071b"}.mdi-source-commit-next-local:before{content:"\f071c"}.mdi-source-commit-start:before{content:"\f071d"}.mdi-source-commit-start-next-local:before{content:"\f071e"}.mdi-source-fork:before{content:"\f04c1"}.mdi-source-merge:before{content:"\f062d"}.mdi-source-pull:before{content:"\f04c2"}.mdi-source-repository:before{content:"\f0ccf"}.mdi-source-repository-multiple:before{content:"\f0cd0"}.mdi-soy-sauce:before{content:"\f07ee"}.mdi-soy-sauce-off:before{content:"\f13fc"}.mdi-spa:before{content:"\f0cd1"}.mdi-spa-outline:before{content:"\f0cd2"}.mdi-space-invaders:before{content:"\f0bc9"}.mdi-space-station:before{content:"\f1383"}.mdi-spade:before{content:"\f0e65"}.mdi-speaker:before{content:"\f04c3"}.mdi-speaker-bluetooth:before{content:"\f09a2"}.mdi-speaker-message:before{content:"\f1b11"}.mdi-speaker-multiple:before{content:"\f0d38"}.mdi-speaker-off:before{content:"\f04c4"}.mdi-speaker-pause:before{content:"\f1b73"}.mdi-speaker-play:before{content:"\f1b72"}.mdi-speaker-stop:before{content:"\f1b74"}.mdi-speaker-wireless:before{content:"\f071f"}.mdi-spear:before{content:"\f1845"}.mdi-speedometer:before{content:"\f04c5"}.mdi-speedometer-medium:before{content:"\f0f85"}.mdi-speedometer-slow:before{content:"\f0f86"}.mdi-spellcheck:before{content:"\f04c6"}.mdi-sphere:before{content:"\f1954"}.mdi-sphere-off:before{content:"\f1955"}.mdi-spider:before{content:"\f11ea"}.mdi-spider-outline:before{content:"\f1c75"}.mdi-spider-thread:before{content:"\f11eb"}.mdi-spider-web:before{content:"\f0bca"}.mdi-spirit-level:before{content:"\f14f1"}.mdi-spoon-sugar:before{content:"\f1429"}.mdi-spotify:before{content:"\f04c7"}.mdi-spotlight:before{content:"\f04c8"}.mdi-spotlight-beam:before{content:"\f04c9"}.mdi-spray:before{content:"\f0665"}.mdi-spray-bottle:before{content:"\f0ae0"}.mdi-sprinkler:before{content:"\f105f"}.mdi-sprinkler-fire:before{content:"\f199d"}.mdi-sprinkler-variant:before{content:"\f1060"}.mdi-sprout:before{content:"\f0e66"}.mdi-sprout-outline:before{content:"\f0e67"}.mdi-square:before{content:"\f0764"}.mdi-square-circle:before{content:"\f1500"}.mdi-square-circle-outline:before{content:"\f1c50"}.mdi-square-edit-outline:before{content:"\f090c"}.mdi-square-medium:before{content:"\f0a13"}.mdi-square-medium-outline:before{content:"\f0a14"}.mdi-square-off:before{content:"\f12ee"}.mdi-square-off-outline:before{content:"\f12ef"}.mdi-square-opacity:before{content:"\f1854"}.mdi-square-outline:before{content:"\f0763"}.mdi-square-root:before{content:"\f0784"}.mdi-square-root-box:before{content:"\f09a3"}.mdi-square-rounded:before{content:"\f14fb"}.mdi-square-rounded-badge:before{content:"\f1a07"}.mdi-square-rounded-badge-outline:before{content:"\f1a08"}.mdi-square-rounded-outline:before{content:"\f14fc"}.mdi-square-small:before{content:"\f0a15"}.mdi-square-wave:before{content:"\f147b"}.mdi-squeegee:before{content:"\f0ae1"}.mdi-ssh:before{content:"\f08c0"}.mdi-stack-exchange:before{content:"\f060b"}.mdi-stack-overflow:before{content:"\f04cc"}.mdi-stackpath:before{content:"\f0359"}.mdi-stadium:before{content:"\f0ff9"}.mdi-stadium-outline:before{content:"\f1b03"}.mdi-stadium-variant:before{content:"\f0720"}.mdi-stairs:before{content:"\f04cd"}.mdi-stairs-box:before{content:"\f139e"}.mdi-stairs-down:before{content:"\f12be"}.mdi-stairs-up:before{content:"\f12bd"}.mdi-stamper:before{content:"\f0d39"}.mdi-standard-definition:before{content:"\f07ef"}.mdi-star:before{content:"\f04ce"}.mdi-star-box:before{content:"\f0a73"}.mdi-star-box-multiple:before{content:"\f1286"}.mdi-star-box-multiple-outline:before{content:"\f1287"}.mdi-star-box-outline:before{content:"\f0a74"}.mdi-star-check:before{content:"\f1566"}.mdi-star-check-outline:before{content:"\f156a"}.mdi-star-circle:before{content:"\f04cf"}.mdi-star-circle-outline:before{content:"\f09a4"}.mdi-star-cog:before{content:"\f1668"}.mdi-star-cog-outline:before{content:"\f1669"}.mdi-star-crescent:before{content:"\f0979"}.mdi-star-david:before{content:"\f097a"}.mdi-star-face:before{content:"\f09a5"}.mdi-star-four-points:before{content:"\f0ae2"}.mdi-star-four-points-box:before{content:"\f1c51"}.mdi-star-four-points-box-outline:before{content:"\f1c52"}.mdi-star-four-points-circle:before{content:"\f1c53"}.mdi-star-four-points-circle-outline:before{content:"\f1c54"}.mdi-star-four-points-outline:before{content:"\f0ae3"}.mdi-star-four-points-small:before{content:"\f1c55"}.mdi-star-half:before{content:"\f0246"}.mdi-star-half-full:before{content:"\f04d0"}.mdi-star-minus:before{content:"\f1564"}.mdi-star-minus-outline:before{content:"\f1568"}.mdi-star-off:before{content:"\f04d1"}.mdi-star-off-outline:before{content:"\f155b"}.mdi-star-outline:before{content:"\f04d2"}.mdi-star-plus:before{content:"\f1563"}.mdi-star-plus-outline:before{content:"\f1567"}.mdi-star-remove:before{content:"\f1565"}.mdi-star-remove-outline:before{content:"\f1569"}.mdi-star-settings:before{content:"\f166a"}.mdi-star-settings-outline:before{content:"\f166b"}.mdi-star-shooting:before{content:"\f1741"}.mdi-star-shooting-outline:before{content:"\f1742"}.mdi-star-three-points:before{content:"\f0ae4"}.mdi-star-three-points-outline:before{content:"\f0ae5"}.mdi-state-machine:before{content:"\f11ef"}.mdi-steam:before{content:"\f04d3"}.mdi-steering:before{content:"\f04d4"}.mdi-steering-off:before{content:"\f090e"}.mdi-step-backward:before{content:"\f04d5"}.mdi-step-backward-2:before{content:"\f04d6"}.mdi-step-forward:before{content:"\f04d7"}.mdi-step-forward-2:before{content:"\f04d8"}.mdi-stethoscope:before{content:"\f04d9"}.mdi-sticker:before{content:"\f1364"}.mdi-sticker-alert:before{content:"\f1365"}.mdi-sticker-alert-outline:before{content:"\f1366"}.mdi-sticker-check:before{content:"\f1367"}.mdi-sticker-check-outline:before{content:"\f1368"}.mdi-sticker-circle-outline:before{content:"\f05d0"}.mdi-sticker-emoji:before{content:"\f0785"}.mdi-sticker-minus:before{content:"\f1369"}.mdi-sticker-minus-outline:before{content:"\f136a"}.mdi-sticker-outline:before{content:"\f136b"}.mdi-sticker-plus:before{content:"\f136c"}.mdi-sticker-plus-outline:before{content:"\f136d"}.mdi-sticker-remove:before{content:"\f136e"}.mdi-sticker-remove-outline:before{content:"\f136f"}.mdi-sticker-text:before{content:"\f178e"}.mdi-sticker-text-outline:before{content:"\f178f"}.mdi-stocking:before{content:"\f04da"}.mdi-stomach:before{content:"\f1093"}.mdi-stool:before{content:"\f195d"}.mdi-stool-outline:before{content:"\f195e"}.mdi-stop:before{content:"\f04db"}.mdi-stop-circle:before{content:"\f0666"}.mdi-stop-circle-outline:before{content:"\f0667"}.mdi-storage-tank:before{content:"\f1a75"}.mdi-storage-tank-outline:before{content:"\f1a76"}.mdi-store:before{content:"\f04dc"}.mdi-store-24-hour:before{content:"\f04dd"}.mdi-store-alert:before{content:"\f18c1"}.mdi-store-alert-outline:before{content:"\f18c2"}.mdi-store-check:before{content:"\f18c3"}.mdi-store-check-outline:before{content:"\f18c4"}.mdi-store-clock:before{content:"\f18c5"}.mdi-store-clock-outline:before{content:"\f18c6"}.mdi-store-cog:before{content:"\f18c7"}.mdi-store-cog-outline:before{content:"\f18c8"}.mdi-store-edit:before{content:"\f18c9"}.mdi-store-edit-outline:before{content:"\f18ca"}.mdi-store-marker:before{content:"\f18cb"}.mdi-store-marker-outline:before{content:"\f18cc"}.mdi-store-minus:before{content:"\f165e"}.mdi-store-minus-outline:before{content:"\f18cd"}.mdi-store-off:before{content:"\f18ce"}.mdi-store-off-outline:before{content:"\f18cf"}.mdi-store-outline:before{content:"\f1361"}.mdi-store-plus:before{content:"\f165f"}.mdi-store-plus-outline:before{content:"\f18d0"}.mdi-store-remove:before{content:"\f1660"}.mdi-store-remove-outline:before{content:"\f18d1"}.mdi-store-search:before{content:"\f18d2"}.mdi-store-search-outline:before{content:"\f18d3"}.mdi-store-settings:before{content:"\f18d4"}.mdi-store-settings-outline:before{content:"\f18d5"}.mdi-storefront:before{content:"\f07c7"}.mdi-storefront-check:before{content:"\f1b7d"}.mdi-storefront-check-outline:before{content:"\f1b7e"}.mdi-storefront-edit:before{content:"\f1b7f"}.mdi-storefront-edit-outline:before{content:"\f1b80"}.mdi-storefront-minus:before{content:"\f1b83"}.mdi-storefront-minus-outline:before{content:"\f1b84"}.mdi-storefront-outline:before{content:"\f10c1"}.mdi-storefront-plus:before{content:"\f1b81"}.mdi-storefront-plus-outline:before{content:"\f1b82"}.mdi-storefront-remove:before{content:"\f1b85"}.mdi-storefront-remove-outline:before{content:"\f1b86"}.mdi-stove:before{content:"\f04de"}.mdi-strategy:before{content:"\f11d6"}.mdi-stretch-to-page:before{content:"\f0f2b"}.mdi-stretch-to-page-outline:before{content:"\f0f2c"}.mdi-string-lights:before{content:"\f12ba"}.mdi-string-lights-off:before{content:"\f12bb"}.mdi-subdirectory-arrow-left:before{content:"\f060c"}.mdi-subdirectory-arrow-right:before{content:"\f060d"}.mdi-submarine:before{content:"\f156c"}.mdi-subtitles:before{content:"\f0a16"}.mdi-subtitles-outline:before{content:"\f0a17"}.mdi-subway:before{content:"\f06ac"}.mdi-subway-alert-variant:before{content:"\f0d9d"}.mdi-subway-variant:before{content:"\f04df"}.mdi-summit:before{content:"\f0786"}.mdi-sun-angle:before{content:"\f1b27"}.mdi-sun-angle-outline:before{content:"\f1b28"}.mdi-sun-clock:before{content:"\f1a77"}.mdi-sun-clock-outline:before{content:"\f1a78"}.mdi-sun-compass:before{content:"\f19a5"}.mdi-sun-snowflake:before{content:"\f1796"}.mdi-sun-snowflake-variant:before{content:"\f1a79"}.mdi-sun-thermometer:before{content:"\f18d6"}.mdi-sun-thermometer-outline:before{content:"\f18d7"}.mdi-sun-wireless:before{content:"\f17fe"}.mdi-sun-wireless-outline:before{content:"\f17ff"}.mdi-sunglasses:before{content:"\f04e0"}.mdi-surfing:before{content:"\f1746"}.mdi-surround-sound:before{content:"\f05c5"}.mdi-surround-sound-2-0:before{content:"\f07f0"}.mdi-surround-sound-2-1:before{content:"\f1729"}.mdi-surround-sound-3-1:before{content:"\f07f1"}.mdi-surround-sound-5-1:before{content:"\f07f2"}.mdi-surround-sound-5-1-2:before{content:"\f172a"}.mdi-surround-sound-7-1:before{content:"\f07f3"}.mdi-svg:before{content:"\f0721"}.mdi-swap-horizontal:before{content:"\f04e1"}.mdi-swap-horizontal-bold:before{content:"\f0bcd"}.mdi-swap-horizontal-circle:before{content:"\f0fe1"}.mdi-swap-horizontal-circle-outline:before{content:"\f0fe2"}.mdi-swap-horizontal-hidden:before{content:"\f1d0e"}.mdi-swap-horizontal-variant:before{content:"\f08c1"}.mdi-swap-vertical:before{content:"\f04e2"}.mdi-swap-vertical-bold:before{content:"\f0bce"}.mdi-swap-vertical-circle:before{content:"\f0fe3"}.mdi-swap-vertical-circle-outline:before{content:"\f0fe4"}.mdi-swap-vertical-variant:before{content:"\f08c2"}.mdi-swim:before{content:"\f04e3"}.mdi-switch:before{content:"\f04e4"}.mdi-sword:before{content:"\f04e5"}.mdi-sword-cross:before{content:"\f0787"}.mdi-syllabary-hangul:before{content:"\f1333"}.mdi-syllabary-hiragana:before{content:"\f1334"}.mdi-syllabary-katakana:before{content:"\f1335"}.mdi-syllabary-katakana-halfwidth:before{content:"\f1336"}.mdi-symbol:before{content:"\f1501"}.mdi-symfony:before{content:"\f0ae6"}.mdi-synagogue:before{content:"\f1b04"}.mdi-synagogue-outline:before{content:"\f1b05"}.mdi-sync:before{content:"\f04e6"}.mdi-sync-alert:before{content:"\f04e7"}.mdi-sync-circle:before{content:"\f1378"}.mdi-sync-off:before{content:"\f04e8"}.mdi-tab:before{content:"\f04e9"}.mdi-tab-minus:before{content:"\f0b4b"}.mdi-tab-plus:before{content:"\f075c"}.mdi-tab-remove:before{content:"\f0b4c"}.mdi-tab-search:before{content:"\f199e"}.mdi-tab-unselected:before{content:"\f04ea"}.mdi-table:before{content:"\f04eb"}.mdi-table-account:before{content:"\f13b9"}.mdi-table-alert:before{content:"\f13ba"}.mdi-table-arrow-down:before{content:"\f13bb"}.mdi-table-arrow-left:before{content:"\f13bc"}.mdi-table-arrow-right:before{content:"\f13bd"}.mdi-table-arrow-up:before{content:"\f13be"}.mdi-table-border:before{content:"\f0a18"}.mdi-table-cancel:before{content:"\f13bf"}.mdi-table-chair:before{content:"\f1061"}.mdi-table-check:before{content:"\f13c0"}.mdi-table-clock:before{content:"\f13c1"}.mdi-table-cog:before{content:"\f13c2"}.mdi-table-column:before{content:"\f0835"}.mdi-table-column-plus-after:before{content:"\f04ec"}.mdi-table-column-plus-before:before{content:"\f04ed"}.mdi-table-column-remove:before{content:"\f04ee"}.mdi-table-column-width:before{content:"\f04ef"}.mdi-table-edit:before{content:"\f04f0"}.mdi-table-eye:before{content:"\f1094"}.mdi-table-eye-off:before{content:"\f13c3"}.mdi-table-filter:before{content:"\f1b8c"}.mdi-table-furniture:before{content:"\f05bc"}.mdi-table-headers-eye:before{content:"\f121d"}.mdi-table-headers-eye-off:before{content:"\f121e"}.mdi-table-heart:before{content:"\f13c4"}.mdi-table-key:before{content:"\f13c5"}.mdi-table-large:before{content:"\f04f1"}.mdi-table-large-plus:before{content:"\f0f87"}.mdi-table-large-remove:before{content:"\f0f88"}.mdi-table-lock:before{content:"\f13c6"}.mdi-table-merge-cells:before{content:"\f09a6"}.mdi-table-minus:before{content:"\f13c7"}.mdi-table-multiple:before{content:"\f13c8"}.mdi-table-network:before{content:"\f13c9"}.mdi-table-of-contents:before{content:"\f0836"}.mdi-table-off:before{content:"\f13ca"}.mdi-table-picnic:before{content:"\f1743"}.mdi-table-pivot:before{content:"\f183c"}.mdi-table-plus:before{content:"\f0a75"}.mdi-table-question:before{content:"\f1b21"}.mdi-table-refresh:before{content:"\f13a0"}.mdi-table-remove:before{content:"\f0a76"}.mdi-table-row:before{content:"\f0837"}.mdi-table-row-height:before{content:"\f04f2"}.mdi-table-row-plus-after:before{content:"\f04f3"}.mdi-table-row-plus-before:before{content:"\f04f4"}.mdi-table-row-remove:before{content:"\f04f5"}.mdi-table-search:before{content:"\f090f"}.mdi-table-settings:before{content:"\f0838"}.mdi-table-split-cell:before{content:"\f142a"}.mdi-table-star:before{content:"\f13cb"}.mdi-table-sync:before{content:"\f13a1"}.mdi-table-tennis:before{content:"\f0e68"}.mdi-tablet:before{content:"\f04f6"}.mdi-tablet-cellphone:before{content:"\f09a7"}.mdi-tablet-dashboard:before{content:"\f0ece"}.mdi-taco:before{content:"\f0762"}.mdi-tag:before{content:"\f04f9"}.mdi-tag-arrow-down:before{content:"\f172b"}.mdi-tag-arrow-down-outline:before{content:"\f172c"}.mdi-tag-arrow-left:before{content:"\f172d"}.mdi-tag-arrow-left-outline:before{content:"\f172e"}.mdi-tag-arrow-right:before{content:"\f172f"}.mdi-tag-arrow-right-outline:before{content:"\f1730"}.mdi-tag-arrow-up:before{content:"\f1731"}.mdi-tag-arrow-up-outline:before{content:"\f1732"}.mdi-tag-check:before{content:"\f1a7a"}.mdi-tag-check-outline:before{content:"\f1a7b"}.mdi-tag-edit:before{content:"\f1c9c"}.mdi-tag-edit-outline:before{content:"\f1c9d"}.mdi-tag-faces:before{content:"\f04fa"}.mdi-tag-heart:before{content:"\f068b"}.mdi-tag-heart-outline:before{content:"\f0bcf"}.mdi-tag-hidden:before{content:"\f1c76"}.mdi-tag-minus:before{content:"\f0910"}.mdi-tag-minus-outline:before{content:"\f121f"}.mdi-tag-multiple:before{content:"\f04fb"}.mdi-tag-multiple-outline:before{content:"\f12f7"}.mdi-tag-off:before{content:"\f1220"}.mdi-tag-off-outline:before{content:"\f1221"}.mdi-tag-outline:before{content:"\f04fc"}.mdi-tag-plus:before{content:"\f0722"}.mdi-tag-plus-outline:before{content:"\f1222"}.mdi-tag-remove:before{content:"\f0723"}.mdi-tag-remove-outline:before{content:"\f1223"}.mdi-tag-search:before{content:"\f1907"}.mdi-tag-search-outline:before{content:"\f1908"}.mdi-tag-text:before{content:"\f1224"}.mdi-tag-text-outline:before{content:"\f04fd"}.mdi-tailwind:before{content:"\f13ff"}.mdi-tally-mark-1:before{content:"\f1abc"}.mdi-tally-mark-2:before{content:"\f1abd"}.mdi-tally-mark-3:before{content:"\f1abe"}.mdi-tally-mark-4:before{content:"\f1abf"}.mdi-tally-mark-5:before{content:"\f1ac0"}.mdi-tangram:before{content:"\f04f8"}.mdi-tank:before{content:"\f0d3a"}.mdi-tanker-truck:before{content:"\f0fe5"}.mdi-tape-drive:before{content:"\f16df"}.mdi-tape-measure:before{content:"\f0b4d"}.mdi-target:before{content:"\f04fe"}.mdi-target-account:before{content:"\f0bd0"}.mdi-target-variant:before{content:"\f0a77"}.mdi-taxi:before{content:"\f04ff"}.mdi-tea:before{content:"\f0d9e"}.mdi-tea-outline:before{content:"\f0d9f"}.mdi-teamviewer:before{content:"\f0500"}.mdi-teddy-bear:before{content:"\f18fb"}.mdi-telescope:before{content:"\f0b4e"}.mdi-television:before{content:"\f0502"}.mdi-television-ambient-light:before{content:"\f1356"}.mdi-television-box:before{content:"\f0839"}.mdi-television-classic:before{content:"\f07f4"}.mdi-television-classic-off:before{content:"\f083a"}.mdi-television-guide:before{content:"\f0503"}.mdi-television-off:before{content:"\f083b"}.mdi-television-pause:before{content:"\f0f89"}.mdi-television-play:before{content:"\f0ecf"}.mdi-television-shimmer:before{content:"\f1110"}.mdi-television-speaker:before{content:"\f1b1b"}.mdi-television-speaker-off:before{content:"\f1b1c"}.mdi-television-stop:before{content:"\f0f8a"}.mdi-temperature-celsius:before{content:"\f0504"}.mdi-temperature-fahrenheit:before{content:"\f0505"}.mdi-temperature-kelvin:before{content:"\f0506"}.mdi-temple-buddhist:before{content:"\f1b06"}.mdi-temple-buddhist-outline:before{content:"\f1b07"}.mdi-temple-hindu:before{content:"\f1b08"}.mdi-temple-hindu-outline:before{content:"\f1b09"}.mdi-tennis:before{content:"\f0da0"}.mdi-tennis-ball:before{content:"\f0507"}.mdi-tennis-ball-outline:before{content:"\f1c5f"}.mdi-tent:before{content:"\f0508"}.mdi-terraform:before{content:"\f1062"}.mdi-terrain:before{content:"\f0509"}.mdi-test-tube:before{content:"\f0668"}.mdi-test-tube-empty:before{content:"\f0911"}.mdi-test-tube-off:before{content:"\f0912"}.mdi-text:before{content:"\f09a8"}.mdi-text-account:before{content:"\f1570"}.mdi-text-box:before{content:"\f021a"}.mdi-text-box-check:before{content:"\f0ea6"}.mdi-text-box-check-outline:before{content:"\f0ea7"}.mdi-text-box-edit:before{content:"\f1a7c"}.mdi-text-box-edit-outline:before{content:"\f1a7d"}.mdi-text-box-minus:before{content:"\f0ea8"}.mdi-text-box-minus-outline:before{content:"\f0ea9"}.mdi-text-box-multiple:before{content:"\f0ab7"}.mdi-text-box-multiple-outline:before{content:"\f0ab8"}.mdi-text-box-outline:before{content:"\f09ed"}.mdi-text-box-plus:before{content:"\f0eaa"}.mdi-text-box-plus-outline:before{content:"\f0eab"}.mdi-text-box-remove:before{content:"\f0eac"}.mdi-text-box-remove-outline:before{content:"\f0ead"}.mdi-text-box-search:before{content:"\f0eae"}.mdi-text-box-search-outline:before{content:"\f0eaf"}.mdi-text-long:before{content:"\f09aa"}.mdi-text-recognition:before{content:"\f113d"}.mdi-text-search:before{content:"\f13b8"}.mdi-text-search-variant:before{content:"\f1a7e"}.mdi-text-shadow:before{content:"\f0669"}.mdi-text-short:before{content:"\f09a9"}.mdi-texture:before{content:"\f050c"}.mdi-texture-box:before{content:"\f0fe6"}.mdi-theater:before{content:"\f050d"}.mdi-theme-light-dark:before{content:"\f050e"}.mdi-thermometer:before{content:"\f050f"}.mdi-thermometer-alert:before{content:"\f0e01"}.mdi-thermometer-auto:before{content:"\f1b0f"}.mdi-thermometer-bluetooth:before{content:"\f1895"}.mdi-thermometer-check:before{content:"\f1a7f"}.mdi-thermometer-chevron-down:before{content:"\f0e02"}.mdi-thermometer-chevron-up:before{content:"\f0e03"}.mdi-thermometer-high:before{content:"\f10c2"}.mdi-thermometer-lines:before{content:"\f0510"}.mdi-thermometer-low:before{content:"\f10c3"}.mdi-thermometer-minus:before{content:"\f0e04"}.mdi-thermometer-off:before{content:"\f1531"}.mdi-thermometer-plus:before{content:"\f0e05"}.mdi-thermometer-probe:before{content:"\f1b2b"}.mdi-thermometer-probe-off:before{content:"\f1b2c"}.mdi-thermometer-water:before{content:"\f1a80"}.mdi-thermostat:before{content:"\f0393"}.mdi-thermostat-auto:before{content:"\f1b17"}.mdi-thermostat-box:before{content:"\f0891"}.mdi-thermostat-box-auto:before{content:"\f1b18"}.mdi-thermostat-cog:before{content:"\f1c80"}.mdi-thought-bubble:before{content:"\f07f6"}.mdi-thought-bubble-outline:before{content:"\f07f7"}.mdi-thumb-down:before{content:"\f0511"}.mdi-thumb-down-outline:before{content:"\f0512"}.mdi-thumb-up:before{content:"\f0513"}.mdi-thumb-up-outline:before{content:"\f0514"}.mdi-thumbs-up-down:before{content:"\f0515"}.mdi-thumbs-up-down-outline:before{content:"\f1914"}.mdi-ticket:before{content:"\f0516"}.mdi-ticket-account:before{content:"\f0517"}.mdi-ticket-confirmation:before{content:"\f0518"}.mdi-ticket-confirmation-outline:before{content:"\f13aa"}.mdi-ticket-outline:before{content:"\f0913"}.mdi-ticket-percent:before{content:"\f0724"}.mdi-ticket-percent-outline:before{content:"\f142b"}.mdi-tie:before{content:"\f0519"}.mdi-tilde:before{content:"\f0725"}.mdi-tilde-off:before{content:"\f18f3"}.mdi-timelapse:before{content:"\f051a"}.mdi-timeline:before{content:"\f0bd1"}.mdi-timeline-alert:before{content:"\f0f95"}.mdi-timeline-alert-outline:before{content:"\f0f98"}.mdi-timeline-check:before{content:"\f1532"}.mdi-timeline-check-outline:before{content:"\f1533"}.mdi-timeline-clock:before{content:"\f11fb"}.mdi-timeline-clock-outline:before{content:"\f11fc"}.mdi-timeline-minus:before{content:"\f1534"}.mdi-timeline-minus-outline:before{content:"\f1535"}.mdi-timeline-outline:before{content:"\f0bd2"}.mdi-timeline-plus:before{content:"\f0f96"}.mdi-timeline-plus-outline:before{content:"\f0f97"}.mdi-timeline-question:before{content:"\f0f99"}.mdi-timeline-question-outline:before{content:"\f0f9a"}.mdi-timeline-remove:before{content:"\f1536"}.mdi-timeline-remove-outline:before{content:"\f1537"}.mdi-timeline-text:before{content:"\f0bd3"}.mdi-timeline-text-outline:before{content:"\f0bd4"}.mdi-timer:before{content:"\f13ab"}.mdi-timer-10:before{content:"\f051c"}.mdi-timer-3:before{content:"\f051d"}.mdi-timer-alert:before{content:"\f1acc"}.mdi-timer-alert-outline:before{content:"\f1acd"}.mdi-timer-cancel:before{content:"\f1ace"}.mdi-timer-cancel-outline:before{content:"\f1acf"}.mdi-timer-check:before{content:"\f1ad0"}.mdi-timer-check-outline:before{content:"\f1ad1"}.mdi-timer-cog:before{content:"\f1925"}.mdi-timer-cog-outline:before{content:"\f1926"}.mdi-timer-edit:before{content:"\f1ad2"}.mdi-timer-edit-outline:before{content:"\f1ad3"}.mdi-timer-lock:before{content:"\f1ad4"}.mdi-timer-lock-open:before{content:"\f1ad5"}.mdi-timer-lock-open-outline:before{content:"\f1ad6"}.mdi-timer-lock-outline:before{content:"\f1ad7"}.mdi-timer-marker:before{content:"\f1ad8"}.mdi-timer-marker-outline:before{content:"\f1ad9"}.mdi-timer-minus:before{content:"\f1ada"}.mdi-timer-minus-outline:before{content:"\f1adb"}.mdi-timer-music:before{content:"\f1adc"}.mdi-timer-music-outline:before{content:"\f1add"}.mdi-timer-off:before{content:"\f13ac"}.mdi-timer-off-outline:before{content:"\f051e"}.mdi-timer-outline:before{content:"\f051b"}.mdi-timer-pause:before{content:"\f1ade"}.mdi-timer-pause-outline:before{content:"\f1adf"}.mdi-timer-play:before{content:"\f1ae0"}.mdi-timer-play-outline:before{content:"\f1ae1"}.mdi-timer-plus:before{content:"\f1ae2"}.mdi-timer-plus-outline:before{content:"\f1ae3"}.mdi-timer-refresh:before{content:"\f1ae4"}.mdi-timer-refresh-outline:before{content:"\f1ae5"}.mdi-timer-remove:before{content:"\f1ae6"}.mdi-timer-remove-outline:before{content:"\f1ae7"}.mdi-timer-sand:before{content:"\f051f"}.mdi-timer-sand-complete:before{content:"\f199f"}.mdi-timer-sand-empty:before{content:"\f06ad"}.mdi-timer-sand-full:before{content:"\f078c"}.mdi-timer-sand-paused:before{content:"\f19a0"}.mdi-timer-settings:before{content:"\f1923"}.mdi-timer-settings-outline:before{content:"\f1924"}.mdi-timer-star:before{content:"\f1ae8"}.mdi-timer-star-outline:before{content:"\f1ae9"}.mdi-timer-stop:before{content:"\f1aea"}.mdi-timer-stop-outline:before{content:"\f1aeb"}.mdi-timer-sync:before{content:"\f1aec"}.mdi-timer-sync-outline:before{content:"\f1aed"}.mdi-timetable:before{content:"\f0520"}.mdi-tire:before{content:"\f1896"}.mdi-toaster:before{content:"\f1063"}.mdi-toaster-off:before{content:"\f11b7"}.mdi-toaster-oven:before{content:"\f0cd3"}.mdi-toggle-switch:before{content:"\f0521"}.mdi-toggle-switch-off:before{content:"\f0522"}.mdi-toggle-switch-off-outline:before{content:"\f0a19"}.mdi-toggle-switch-outline:before{content:"\f0a1a"}.mdi-toggle-switch-variant:before{content:"\f1a25"}.mdi-toggle-switch-variant-off:before{content:"\f1a26"}.mdi-toilet:before{content:"\f09ab"}.mdi-toolbox:before{content:"\f09ac"}.mdi-toolbox-outline:before{content:"\f09ad"}.mdi-tools:before{content:"\f1064"}.mdi-tooltip:before{content:"\f0523"}.mdi-tooltip-account:before{content:"\f000c"}.mdi-tooltip-cellphone:before{content:"\f183b"}.mdi-tooltip-check:before{content:"\f155c"}.mdi-tooltip-check-outline:before{content:"\f155d"}.mdi-tooltip-edit:before{content:"\f0524"}.mdi-tooltip-edit-outline:before{content:"\f12c5"}.mdi-tooltip-image:before{content:"\f0525"}.mdi-tooltip-image-outline:before{content:"\f0bd5"}.mdi-tooltip-minus:before{content:"\f155e"}.mdi-tooltip-minus-outline:before{content:"\f155f"}.mdi-tooltip-outline:before{content:"\f0526"}.mdi-tooltip-plus:before{content:"\f0bd6"}.mdi-tooltip-plus-outline:before{content:"\f0527"}.mdi-tooltip-question:before{content:"\f1bba"}.mdi-tooltip-question-outline:before{content:"\f1bbb"}.mdi-tooltip-remove:before{content:"\f1560"}.mdi-tooltip-remove-outline:before{content:"\f1561"}.mdi-tooltip-text:before{content:"\f0528"}.mdi-tooltip-text-outline:before{content:"\f0bd7"}.mdi-tooth:before{content:"\f08c3"}.mdi-tooth-outline:before{content:"\f0529"}.mdi-toothbrush:before{content:"\f1129"}.mdi-toothbrush-electric:before{content:"\f112c"}.mdi-toothbrush-paste:before{content:"\f112a"}.mdi-torch:before{content:"\f1606"}.mdi-tortoise:before{content:"\f0d3b"}.mdi-toslink:before{content:"\f12b8"}.mdi-touch-text-outline:before{content:"\f1c60"}.mdi-tournament:before{content:"\f09ae"}.mdi-tow-truck:before{content:"\f083c"}.mdi-tower-beach:before{content:"\f0681"}.mdi-tower-fire:before{content:"\f0682"}.mdi-town-hall:before{content:"\f1875"}.mdi-toy-brick:before{content:"\f1288"}.mdi-toy-brick-marker:before{content:"\f1289"}.mdi-toy-brick-marker-outline:before{content:"\f128a"}.mdi-toy-brick-minus:before{content:"\f128b"}.mdi-toy-brick-minus-outline:before{content:"\f128c"}.mdi-toy-brick-outline:before{content:"\f128d"}.mdi-toy-brick-plus:before{content:"\f128e"}.mdi-toy-brick-plus-outline:before{content:"\f128f"}.mdi-toy-brick-remove:before{content:"\f1290"}.mdi-toy-brick-remove-outline:before{content:"\f1291"}.mdi-toy-brick-search:before{content:"\f1292"}.mdi-toy-brick-search-outline:before{content:"\f1293"}.mdi-track-light:before{content:"\f0914"}.mdi-track-light-off:before{content:"\f1b01"}.mdi-trackpad:before{content:"\f07f8"}.mdi-trackpad-lock:before{content:"\f0933"}.mdi-tractor:before{content:"\f0892"}.mdi-tractor-variant:before{content:"\f14c4"}.mdi-trademark:before{content:"\f0a78"}.mdi-traffic-cone:before{content:"\f137c"}.mdi-traffic-light:before{content:"\f052b"}.mdi-traffic-light-outline:before{content:"\f182a"}.mdi-train:before{content:"\f052c"}.mdi-train-bus:before{content:"\f1cc7"}.mdi-train-car:before{content:"\f0bd8"}.mdi-train-car-autorack:before{content:"\f1b2d"}.mdi-train-car-box:before{content:"\f1b2e"}.mdi-train-car-box-full:before{content:"\f1b2f"}.mdi-train-car-box-open:before{content:"\f1b30"}.mdi-train-car-caboose:before{content:"\f1b31"}.mdi-train-car-centerbeam:before{content:"\f1b32"}.mdi-train-car-centerbeam-full:before{content:"\f1b33"}.mdi-train-car-container:before{content:"\f1b34"}.mdi-train-car-flatbed:before{content:"\f1b35"}.mdi-train-car-flatbed-car:before{content:"\f1b36"}.mdi-train-car-flatbed-tank:before{content:"\f1b37"}.mdi-train-car-gondola:before{content:"\f1b38"}.mdi-train-car-gondola-full:before{content:"\f1b39"}.mdi-train-car-hopper:before{content:"\f1b3a"}.mdi-train-car-hopper-covered:before{content:"\f1b3b"}.mdi-train-car-hopper-full:before{content:"\f1b3c"}.mdi-train-car-intermodal:before{content:"\f1b3d"}.mdi-train-car-passenger:before{content:"\f1733"}.mdi-train-car-passenger-door:before{content:"\f1734"}.mdi-train-car-passenger-door-open:before{content:"\f1735"}.mdi-train-car-passenger-variant:before{content:"\f1736"}.mdi-train-car-tank:before{content:"\f1b3e"}.mdi-train-variant:before{content:"\f08c4"}.mdi-tram:before{content:"\f052d"}.mdi-tram-side:before{content:"\f0fe7"}.mdi-transcribe:before{content:"\f052e"}.mdi-transcribe-close:before{content:"\f052f"}.mdi-transfer:before{content:"\f1065"}.mdi-transfer-down:before{content:"\f0da1"}.mdi-transfer-left:before{content:"\f0da2"}.mdi-transfer-right:before{content:"\f0530"}.mdi-transfer-up:before{content:"\f0da3"}.mdi-transit-connection:before{content:"\f0d3c"}.mdi-transit-connection-horizontal:before{content:"\f1546"}.mdi-transit-connection-variant:before{content:"\f0d3d"}.mdi-transit-detour:before{content:"\f0f8b"}.mdi-transit-skip:before{content:"\f1515"}.mdi-transit-transfer:before{content:"\f06ae"}.mdi-transition:before{content:"\f0915"}.mdi-transition-masked:before{content:"\f0916"}.mdi-translate:before{content:"\f05ca"}.mdi-translate-off:before{content:"\f0e06"}.mdi-translate-variant:before{content:"\f1b99"}.mdi-transmission-tower:before{content:"\f0d3e"}.mdi-transmission-tower-export:before{content:"\f192c"}.mdi-transmission-tower-import:before{content:"\f192d"}.mdi-transmission-tower-off:before{content:"\f19dd"}.mdi-trash-can:before{content:"\f0a79"}.mdi-trash-can-outline:before{content:"\f0a7a"}.mdi-tray:before{content:"\f1294"}.mdi-tray-alert:before{content:"\f1295"}.mdi-tray-arrow-down:before{content:"\f0120"}.mdi-tray-arrow-up:before{content:"\f011d"}.mdi-tray-full:before{content:"\f1296"}.mdi-tray-minus:before{content:"\f1297"}.mdi-tray-plus:before{content:"\f1298"}.mdi-tray-remove:before{content:"\f1299"}.mdi-treasure-chest:before{content:"\f0726"}.mdi-treasure-chest-outline:before{content:"\f1c77"}.mdi-tree:before{content:"\f0531"}.mdi-tree-outline:before{content:"\f0e69"}.mdi-trello:before{content:"\f0532"}.mdi-trending-down:before{content:"\f0533"}.mdi-trending-neutral:before{content:"\f0534"}.mdi-trending-up:before{content:"\f0535"}.mdi-triangle:before{content:"\f0536"}.mdi-triangle-down:before{content:"\f1c56"}.mdi-triangle-down-outline:before{content:"\f1c57"}.mdi-triangle-outline:before{content:"\f0537"}.mdi-triangle-small-down:before{content:"\f1a09"}.mdi-triangle-small-up:before{content:"\f1a0a"}.mdi-triangle-wave:before{content:"\f147c"}.mdi-triforce:before{content:"\f0bd9"}.mdi-trophy:before{content:"\f0538"}.mdi-trophy-award:before{content:"\f0539"}.mdi-trophy-broken:before{content:"\f0da4"}.mdi-trophy-outline:before{content:"\f053a"}.mdi-trophy-variant:before{content:"\f053b"}.mdi-trophy-variant-outline:before{content:"\f053c"}.mdi-truck:before{content:"\f053d"}.mdi-truck-alert:before{content:"\f19de"}.mdi-truck-alert-outline:before{content:"\f19df"}.mdi-truck-cargo-container:before{content:"\f18d8"}.mdi-truck-check:before{content:"\f0cd4"}.mdi-truck-check-outline:before{content:"\f129a"}.mdi-truck-delivery:before{content:"\f053e"}.mdi-truck-delivery-outline:before{content:"\f129b"}.mdi-truck-fast:before{content:"\f0788"}.mdi-truck-fast-outline:before{content:"\f129c"}.mdi-truck-flatbed:before{content:"\f1891"}.mdi-truck-minus:before{content:"\f19ae"}.mdi-truck-minus-outline:before{content:"\f19bd"}.mdi-truck-off-road:before{content:"\f1c9e"}.mdi-truck-off-road-off:before{content:"\f1c9f"}.mdi-truck-outline:before{content:"\f129d"}.mdi-truck-plus:before{content:"\f19ad"}.mdi-truck-plus-outline:before{content:"\f19bc"}.mdi-truck-remove:before{content:"\f19af"}.mdi-truck-remove-outline:before{content:"\f19be"}.mdi-truck-snowflake:before{content:"\f19a6"}.mdi-truck-trailer:before{content:"\f0727"}.mdi-trumpet:before{content:"\f1096"}.mdi-tshirt-crew:before{content:"\f0a7b"}.mdi-tshirt-crew-outline:before{content:"\f053f"}.mdi-tshirt-v:before{content:"\f0a7c"}.mdi-tshirt-v-outline:before{content:"\f0540"}.mdi-tsunami:before{content:"\f1a81"}.mdi-tumble-dryer:before{content:"\f0917"}.mdi-tumble-dryer-alert:before{content:"\f11ba"}.mdi-tumble-dryer-off:before{content:"\f11bb"}.mdi-tune:before{content:"\f062e"}.mdi-tune-variant:before{content:"\f1542"}.mdi-tune-vertical:before{content:"\f066a"}.mdi-tune-vertical-variant:before{content:"\f1543"}.mdi-tunnel:before{content:"\f183d"}.mdi-tunnel-outline:before{content:"\f183e"}.mdi-turbine:before{content:"\f1a82"}.mdi-turkey:before{content:"\f171b"}.mdi-turnstile:before{content:"\f0cd5"}.mdi-turnstile-outline:before{content:"\f0cd6"}.mdi-turtle:before{content:"\f0cd7"}.mdi-twitch:before{content:"\f0543"}.mdi-twitter:before{content:"\f0544"}.mdi-two-factor-authentication:before{content:"\f09af"}.mdi-typewriter:before{content:"\f0f2d"}.mdi-ubisoft:before{content:"\f0bda"}.mdi-ubuntu:before{content:"\f0548"}.mdi-ufo:before{content:"\f10c4"}.mdi-ufo-outline:before{content:"\f10c5"}.mdi-ultra-high-definition:before{content:"\f07f9"}.mdi-umbraco:before{content:"\f0549"}.mdi-umbrella:before{content:"\f054a"}.mdi-umbrella-beach:before{content:"\f188a"}.mdi-umbrella-beach-outline:before{content:"\f188b"}.mdi-umbrella-closed:before{content:"\f09b0"}.mdi-umbrella-closed-outline:before{content:"\f13e2"}.mdi-umbrella-closed-variant:before{content:"\f13e1"}.mdi-umbrella-outline:before{content:"\f054b"}.mdi-underwear-outline:before{content:"\f1d0f"}.mdi-undo:before{content:"\f054c"}.mdi-undo-variant:before{content:"\f054d"}.mdi-unfold-less-horizontal:before{content:"\f054e"}.mdi-unfold-less-vertical:before{content:"\f0760"}.mdi-unfold-more-horizontal:before{content:"\f054f"}.mdi-unfold-more-vertical:before{content:"\f0761"}.mdi-ungroup:before{content:"\f0550"}.mdi-unicode:before{content:"\f0ed0"}.mdi-unicorn:before{content:"\f15c2"}.mdi-unicorn-variant:before{content:"\f15c3"}.mdi-unicycle:before{content:"\f15e5"}.mdi-unity:before{content:"\f06af"}.mdi-unreal:before{content:"\f09b1"}.mdi-update:before{content:"\f06b0"}.mdi-upload:before{content:"\f0552"}.mdi-upload-box:before{content:"\f1d10"}.mdi-upload-box-outline:before{content:"\f1d11"}.mdi-upload-circle:before{content:"\f1d12"}.mdi-upload-circle-outline:before{content:"\f1d13"}.mdi-upload-lock:before{content:"\f1373"}.mdi-upload-lock-outline:before{content:"\f1374"}.mdi-upload-multiple:before{content:"\f083d"}.mdi-upload-multiple-outline:before{content:"\f1d14"}.mdi-upload-network:before{content:"\f06f6"}.mdi-upload-network-outline:before{content:"\f0cd8"}.mdi-upload-off:before{content:"\f10c6"}.mdi-upload-off-outline:before{content:"\f10c7"}.mdi-upload-outline:before{content:"\f0e07"}.mdi-usb:before{content:"\f0553"}.mdi-usb-c-port:before{content:"\f1cbf"}.mdi-usb-flash-drive:before{content:"\f129e"}.mdi-usb-flash-drive-outline:before{content:"\f129f"}.mdi-usb-port:before{content:"\f11f0"}.mdi-vacuum:before{content:"\f19a1"}.mdi-vacuum-outline:before{content:"\f19a2"}.mdi-valve:before{content:"\f1066"}.mdi-valve-closed:before{content:"\f1067"}.mdi-valve-open:before{content:"\f1068"}.mdi-van-passenger:before{content:"\f07fa"}.mdi-van-utility:before{content:"\f07fb"}.mdi-vanish:before{content:"\f07fc"}.mdi-vanish-quarter:before{content:"\f1554"}.mdi-vanity-light:before{content:"\f11e1"}.mdi-variable:before{content:"\f0ae7"}.mdi-variable-box:before{content:"\f1111"}.mdi-vector-arrange-above:before{content:"\f0554"}.mdi-vector-arrange-below:before{content:"\f0555"}.mdi-vector-bezier:before{content:"\f0ae8"}.mdi-vector-circle:before{content:"\f0556"}.mdi-vector-circle-variant:before{content:"\f0557"}.mdi-vector-combine:before{content:"\f0558"}.mdi-vector-curve:before{content:"\f0559"}.mdi-vector-difference:before{content:"\f055a"}.mdi-vector-difference-ab:before{content:"\f055b"}.mdi-vector-difference-ba:before{content:"\f055c"}.mdi-vector-ellipse:before{content:"\f0893"}.mdi-vector-intersection:before{content:"\f055d"}.mdi-vector-line:before{content:"\f055e"}.mdi-vector-link:before{content:"\f0fe8"}.mdi-vector-point:before{content:"\f01c4"}.mdi-vector-point-edit:before{content:"\f09e8"}.mdi-vector-point-minus:before{content:"\f1b78"}.mdi-vector-point-plus:before{content:"\f1b79"}.mdi-vector-point-select:before{content:"\f055f"}.mdi-vector-polygon:before{content:"\f0560"}.mdi-vector-polygon-variant:before{content:"\f1856"}.mdi-vector-polyline:before{content:"\f0561"}.mdi-vector-polyline-edit:before{content:"\f1225"}.mdi-vector-polyline-minus:before{content:"\f1226"}.mdi-vector-polyline-plus:before{content:"\f1227"}.mdi-vector-polyline-remove:before{content:"\f1228"}.mdi-vector-radius:before{content:"\f074a"}.mdi-vector-rectangle:before{content:"\f05c6"}.mdi-vector-selection:before{content:"\f0562"}.mdi-vector-square:before{content:"\f0001"}.mdi-vector-square-close:before{content:"\f1857"}.mdi-vector-square-edit:before{content:"\f18d9"}.mdi-vector-square-minus:before{content:"\f18da"}.mdi-vector-square-open:before{content:"\f1858"}.mdi-vector-square-plus:before{content:"\f18db"}.mdi-vector-square-remove:before{content:"\f18dc"}.mdi-vector-triangle:before{content:"\f0563"}.mdi-vector-union:before{content:"\f0564"}.mdi-vhs:before{content:"\f0a1b"}.mdi-vibrate:before{content:"\f0566"}.mdi-vibrate-off:before{content:"\f0cd9"}.mdi-video:before{content:"\f0567"}.mdi-video-2d:before{content:"\f1a1c"}.mdi-video-3d:before{content:"\f07fd"}.mdi-video-3d-off:before{content:"\f13d9"}.mdi-video-3d-variant:before{content:"\f0ed1"}.mdi-video-4k-box:before{content:"\f083e"}.mdi-video-account:before{content:"\f0919"}.mdi-video-box:before{content:"\f00fd"}.mdi-video-box-off:before{content:"\f00fe"}.mdi-video-check:before{content:"\f1069"}.mdi-video-check-outline:before{content:"\f106a"}.mdi-video-high-definition:before{content:"\f152e"}.mdi-video-image:before{content:"\f091a"}.mdi-video-input-antenna:before{content:"\f083f"}.mdi-video-input-component:before{content:"\f0840"}.mdi-video-input-hdmi:before{content:"\f0841"}.mdi-video-input-scart:before{content:"\f0f8c"}.mdi-video-input-svideo:before{content:"\f0842"}.mdi-video-marker:before{content:"\f19a9"}.mdi-video-marker-outline:before{content:"\f19aa"}.mdi-video-minus:before{content:"\f09b2"}.mdi-video-minus-outline:before{content:"\f02ba"}.mdi-video-off:before{content:"\f0568"}.mdi-video-off-outline:before{content:"\f0bdb"}.mdi-video-outline:before{content:"\f0bdc"}.mdi-video-plus:before{content:"\f09b3"}.mdi-video-plus-outline:before{content:"\f01d3"}.mdi-video-stabilization:before{content:"\f091b"}.mdi-video-standard-definition:before{content:"\f1ca0"}.mdi-video-switch:before{content:"\f0569"}.mdi-video-switch-outline:before{content:"\f0790"}.mdi-video-vintage:before{content:"\f0a1c"}.mdi-video-wireless:before{content:"\f0ed2"}.mdi-video-wireless-outline:before{content:"\f0ed3"}.mdi-view-agenda:before{content:"\f056a"}.mdi-view-agenda-outline:before{content:"\f11d8"}.mdi-view-array:before{content:"\f056b"}.mdi-view-array-outline:before{content:"\f1485"}.mdi-view-carousel:before{content:"\f056c"}.mdi-view-carousel-outline:before{content:"\f1486"}.mdi-view-column:before{content:"\f056d"}.mdi-view-column-outline:before{content:"\f1487"}.mdi-view-comfy:before{content:"\f0e6a"}.mdi-view-comfy-outline:before{content:"\f1488"}.mdi-view-compact:before{content:"\f0e6b"}.mdi-view-compact-outline:before{content:"\f0e6c"}.mdi-view-dashboard:before{content:"\f056e"}.mdi-view-dashboard-edit:before{content:"\f1947"}.mdi-view-dashboard-edit-outline:before{content:"\f1948"}.mdi-view-dashboard-outline:before{content:"\f0a1d"}.mdi-view-dashboard-variant:before{content:"\f0843"}.mdi-view-dashboard-variant-outline:before{content:"\f1489"}.mdi-view-day:before{content:"\f056f"}.mdi-view-day-outline:before{content:"\f148a"}.mdi-view-gallery:before{content:"\f1888"}.mdi-view-gallery-outline:before{content:"\f1889"}.mdi-view-grid:before{content:"\f0570"}.mdi-view-grid-compact:before{content:"\f1c61"}.mdi-view-grid-outline:before{content:"\f11d9"}.mdi-view-grid-plus:before{content:"\f0f8d"}.mdi-view-grid-plus-outline:before{content:"\f11da"}.mdi-view-headline:before{content:"\f0571"}.mdi-view-list:before{content:"\f0572"}.mdi-view-list-outline:before{content:"\f148b"}.mdi-view-module:before{content:"\f0573"}.mdi-view-module-outline:before{content:"\f148c"}.mdi-view-parallel:before{content:"\f0728"}.mdi-view-parallel-outline:before{content:"\f148d"}.mdi-view-quilt:before{content:"\f0574"}.mdi-view-quilt-outline:before{content:"\f148e"}.mdi-view-sequential:before{content:"\f0729"}.mdi-view-sequential-outline:before{content:"\f148f"}.mdi-view-split-horizontal:before{content:"\f0bcb"}.mdi-view-split-vertical:before{content:"\f0bcc"}.mdi-view-stream:before{content:"\f0575"}.mdi-view-stream-outline:before{content:"\f1490"}.mdi-view-week:before{content:"\f0576"}.mdi-view-week-outline:before{content:"\f1491"}.mdi-vimeo:before{content:"\f0577"}.mdi-violin:before{content:"\f060f"}.mdi-virtual-reality:before{content:"\f0894"}.mdi-virus:before{content:"\f13b6"}.mdi-virus-off:before{content:"\f18e1"}.mdi-virus-off-outline:before{content:"\f18e2"}.mdi-virus-outline:before{content:"\f13b7"}.mdi-vlc:before{content:"\f057c"}.mdi-voicemail:before{content:"\f057d"}.mdi-volcano:before{content:"\f1a83"}.mdi-volcano-outline:before{content:"\f1a84"}.mdi-volleyball:before{content:"\f09b4"}.mdi-volume-equal:before{content:"\f1b10"}.mdi-volume-high:before{content:"\f057e"}.mdi-volume-low:before{content:"\f057f"}.mdi-volume-medium:before{content:"\f0580"}.mdi-volume-minus:before{content:"\f075e"}.mdi-volume-mute:before{content:"\f075f"}.mdi-volume-off:before{content:"\f0581"}.mdi-volume-plus:before{content:"\f075d"}.mdi-volume-source:before{content:"\f1120"}.mdi-volume-variant-off:before{content:"\f0e08"}.mdi-volume-vibrate:before{content:"\f1121"}.mdi-vote:before{content:"\f0a1f"}.mdi-vote-outline:before{content:"\f0a20"}.mdi-vpn:before{content:"\f0582"}.mdi-vuejs:before{content:"\f0844"}.mdi-vuetify:before{content:"\f0e6d"}.mdi-walk:before{content:"\f0583"}.mdi-wall:before{content:"\f07fe"}.mdi-wall-fire:before{content:"\f1a11"}.mdi-wall-sconce:before{content:"\f091c"}.mdi-wall-sconce-flat:before{content:"\f091d"}.mdi-wall-sconce-flat-outline:before{content:"\f17c9"}.mdi-wall-sconce-flat-variant:before{content:"\f041c"}.mdi-wall-sconce-flat-variant-outline:before{content:"\f17ca"}.mdi-wall-sconce-outline:before{content:"\f17cb"}.mdi-wall-sconce-round:before{content:"\f0748"}.mdi-wall-sconce-round-outline:before{content:"\f17cc"}.mdi-wall-sconce-round-variant:before{content:"\f091e"}.mdi-wall-sconce-round-variant-outline:before{content:"\f17cd"}.mdi-wallet:before{content:"\f0584"}.mdi-wallet-bifold:before{content:"\f1c58"}.mdi-wallet-bifold-outline:before{content:"\f1c59"}.mdi-wallet-giftcard:before{content:"\f0585"}.mdi-wallet-membership:before{content:"\f0586"}.mdi-wallet-outline:before{content:"\f0bdd"}.mdi-wallet-plus:before{content:"\f0f8e"}.mdi-wallet-plus-outline:before{content:"\f0f8f"}.mdi-wallet-travel:before{content:"\f0587"}.mdi-wallpaper:before{content:"\f0e09"}.mdi-wan:before{content:"\f0588"}.mdi-wardrobe:before{content:"\f0f90"}.mdi-wardrobe-outline:before{content:"\f0f91"}.mdi-warehouse:before{content:"\f0f81"}.mdi-washing-machine:before{content:"\f072a"}.mdi-washing-machine-alert:before{content:"\f11bc"}.mdi-washing-machine-off:before{content:"\f11bd"}.mdi-watch:before{content:"\f0589"}.mdi-watch-export:before{content:"\f058a"}.mdi-watch-export-variant:before{content:"\f0895"}.mdi-watch-import:before{content:"\f058b"}.mdi-watch-import-variant:before{content:"\f0896"}.mdi-watch-variant:before{content:"\f0897"}.mdi-watch-vibrate:before{content:"\f06b1"}.mdi-watch-vibrate-off:before{content:"\f0cda"}.mdi-water:before{content:"\f058c"}.mdi-water-alert:before{content:"\f1502"}.mdi-water-alert-outline:before{content:"\f1503"}.mdi-water-boiler:before{content:"\f0f92"}.mdi-water-boiler-alert:before{content:"\f11b3"}.mdi-water-boiler-auto:before{content:"\f1b98"}.mdi-water-boiler-off:before{content:"\f11b4"}.mdi-water-check:before{content:"\f1504"}.mdi-water-check-outline:before{content:"\f1505"}.mdi-water-circle:before{content:"\f1806"}.mdi-water-minus:before{content:"\f1506"}.mdi-water-minus-outline:before{content:"\f1507"}.mdi-water-off:before{content:"\f058d"}.mdi-water-off-outline:before{content:"\f1508"}.mdi-water-opacity:before{content:"\f1855"}.mdi-water-outline:before{content:"\f0e0a"}.mdi-water-percent:before{content:"\f058e"}.mdi-water-percent-alert:before{content:"\f1509"}.mdi-water-plus:before{content:"\f150a"}.mdi-water-plus-outline:before{content:"\f150b"}.mdi-water-polo:before{content:"\f12a0"}.mdi-water-pump:before{content:"\f058f"}.mdi-water-pump-off:before{content:"\f0f93"}.mdi-water-remove:before{content:"\f150c"}.mdi-water-remove-outline:before{content:"\f150d"}.mdi-water-sync:before{content:"\f17c6"}.mdi-water-thermometer:before{content:"\f1a85"}.mdi-water-thermometer-outline:before{content:"\f1a86"}.mdi-water-well:before{content:"\f106b"}.mdi-water-well-outline:before{content:"\f106c"}.mdi-waterfall:before{content:"\f1849"}.mdi-watering-can:before{content:"\f1481"}.mdi-watering-can-outline:before{content:"\f1482"}.mdi-watermark:before{content:"\f0612"}.mdi-wave:before{content:"\f0f2e"}.mdi-wave-arrow-down:before{content:"\f1cb0"}.mdi-wave-arrow-up:before{content:"\f1cb1"}.mdi-wave-undercurrent:before{content:"\f1cc0"}.mdi-waveform:before{content:"\f147d"}.mdi-waves:before{content:"\f078d"}.mdi-waves-arrow-left:before{content:"\f1859"}.mdi-waves-arrow-right:before{content:"\f185a"}.mdi-waves-arrow-up:before{content:"\f185b"}.mdi-waze:before{content:"\f0bde"}.mdi-weather-cloudy:before{content:"\f0590"}.mdi-weather-cloudy-alert:before{content:"\f0f2f"}.mdi-weather-cloudy-arrow-right:before{content:"\f0e6e"}.mdi-weather-cloudy-clock:before{content:"\f18f6"}.mdi-weather-dust:before{content:"\f1b5a"}.mdi-weather-fog:before{content:"\f0591"}.mdi-weather-hail:before{content:"\f0592"}.mdi-weather-hazy:before{content:"\f0f30"}.mdi-weather-hurricane:before{content:"\f0898"}.mdi-weather-hurricane-outline:before{content:"\f1c78"}.mdi-weather-lightning:before{content:"\f0593"}.mdi-weather-lightning-rainy:before{content:"\f067e"}.mdi-weather-moonset:before{content:"\f1d15"}.mdi-weather-moonset-down:before{content:"\f1d16"}.mdi-weather-moonset-up:before{content:"\f1d17"}.mdi-weather-night:before{content:"\f0594"}.mdi-weather-night-partly-cloudy:before{content:"\f0f31"}.mdi-weather-partly-cloudy:before{content:"\f0595"}.mdi-weather-partly-lightning:before{content:"\f0f32"}.mdi-weather-partly-rainy:before{content:"\f0f33"}.mdi-weather-partly-snowy:before{content:"\f0f34"}.mdi-weather-partly-snowy-rainy:before{content:"\f0f35"}.mdi-weather-pouring:before{content:"\f0596"}.mdi-weather-rainy:before{content:"\f0597"}.mdi-weather-snowy:before{content:"\f0598"}.mdi-weather-snowy-heavy:before{content:"\f0f36"}.mdi-weather-snowy-rainy:before{content:"\f067f"}.mdi-weather-sunny:before{content:"\f0599"}.mdi-weather-sunny-alert:before{content:"\f0f37"}.mdi-weather-sunny-off:before{content:"\f14e4"}.mdi-weather-sunset:before{content:"\f059a"}.mdi-weather-sunset-down:before{content:"\f059b"}.mdi-weather-sunset-up:before{content:"\f059c"}.mdi-weather-tornado:before{content:"\f0f38"}.mdi-weather-windy:before{content:"\f059d"}.mdi-weather-windy-variant:before{content:"\f059e"}.mdi-web:before{content:"\f059f"}.mdi-web-box:before{content:"\f0f94"}.mdi-web-cancel:before{content:"\f1790"}.mdi-web-check:before{content:"\f0789"}.mdi-web-clock:before{content:"\f124a"}.mdi-web-minus:before{content:"\f10a0"}.mdi-web-off:before{content:"\f0a8e"}.mdi-web-plus:before{content:"\f0033"}.mdi-web-refresh:before{content:"\f1791"}.mdi-web-remove:before{content:"\f0551"}.mdi-web-sync:before{content:"\f1792"}.mdi-webcam:before{content:"\f05a0"}.mdi-webcam-off:before{content:"\f1737"}.mdi-webhook:before{content:"\f062f"}.mdi-webpack:before{content:"\f072b"}.mdi-webrtc:before{content:"\f1248"}.mdi-wechat:before{content:"\f0611"}.mdi-weight:before{content:"\f05a1"}.mdi-weight-gram:before{content:"\f0d3f"}.mdi-weight-kilogram:before{content:"\f05a2"}.mdi-weight-lifter:before{content:"\f115d"}.mdi-weight-pound:before{content:"\f09b5"}.mdi-whatsapp:before{content:"\f05a3"}.mdi-wheel-barrow:before{content:"\f14f2"}.mdi-wheelchair:before{content:"\f1a87"}.mdi-wheelchair-accessibility:before{content:"\f05a4"}.mdi-whistle:before{content:"\f09b6"}.mdi-whistle-outline:before{content:"\f12bc"}.mdi-white-balance-auto:before{content:"\f05a5"}.mdi-white-balance-incandescent:before{content:"\f05a6"}.mdi-white-balance-iridescent:before{content:"\f05a7"}.mdi-white-balance-sunny:before{content:"\f05a8"}.mdi-widgets:before{content:"\f072c"}.mdi-widgets-outline:before{content:"\f1355"}.mdi-wifi:before{content:"\f05a9"}.mdi-wifi-alert:before{content:"\f16b5"}.mdi-wifi-arrow-down:before{content:"\f16b6"}.mdi-wifi-arrow-left:before{content:"\f16b7"}.mdi-wifi-arrow-left-right:before{content:"\f16b8"}.mdi-wifi-arrow-right:before{content:"\f16b9"}.mdi-wifi-arrow-up:before{content:"\f16ba"}.mdi-wifi-arrow-up-down:before{content:"\f16bb"}.mdi-wifi-cancel:before{content:"\f16bc"}.mdi-wifi-check:before{content:"\f16bd"}.mdi-wifi-cog:before{content:"\f16be"}.mdi-wifi-lock:before{content:"\f16bf"}.mdi-wifi-lock-open:before{content:"\f16c0"}.mdi-wifi-marker:before{content:"\f16c1"}.mdi-wifi-minus:before{content:"\f16c2"}.mdi-wifi-off:before{content:"\f05aa"}.mdi-wifi-plus:before{content:"\f16c3"}.mdi-wifi-refresh:before{content:"\f16c4"}.mdi-wifi-remove:before{content:"\f16c5"}.mdi-wifi-settings:before{content:"\f16c6"}.mdi-wifi-star:before{content:"\f0e0b"}.mdi-wifi-strength-1:before{content:"\f091f"}.mdi-wifi-strength-1-alert:before{content:"\f0920"}.mdi-wifi-strength-1-lock:before{content:"\f0921"}.mdi-wifi-strength-1-lock-open:before{content:"\f16cb"}.mdi-wifi-strength-2:before{content:"\f0922"}.mdi-wifi-strength-2-alert:before{content:"\f0923"}.mdi-wifi-strength-2-lock:before{content:"\f0924"}.mdi-wifi-strength-2-lock-open:before{content:"\f16cc"}.mdi-wifi-strength-3:before{content:"\f0925"}.mdi-wifi-strength-3-alert:before{content:"\f0926"}.mdi-wifi-strength-3-lock:before{content:"\f0927"}.mdi-wifi-strength-3-lock-open:before{content:"\f16cd"}.mdi-wifi-strength-4:before{content:"\f0928"}.mdi-wifi-strength-4-alert:before{content:"\f0929"}.mdi-wifi-strength-4-lock:before{content:"\f092a"}.mdi-wifi-strength-4-lock-open:before{content:"\f16ce"}.mdi-wifi-strength-alert-outline:before{content:"\f092b"}.mdi-wifi-strength-lock-open-outline:before{content:"\f16cf"}.mdi-wifi-strength-lock-outline:before{content:"\f092c"}.mdi-wifi-strength-off:before{content:"\f092d"}.mdi-wifi-strength-off-outline:before{content:"\f092e"}.mdi-wifi-strength-outline:before{content:"\f092f"}.mdi-wifi-sync:before{content:"\f16c7"}.mdi-wikipedia:before{content:"\f05ac"}.mdi-wind-power:before{content:"\f1a88"}.mdi-wind-power-outline:before{content:"\f1a89"}.mdi-wind-turbine:before{content:"\f0da5"}.mdi-wind-turbine-alert:before{content:"\f19ab"}.mdi-wind-turbine-check:before{content:"\f19ac"}.mdi-window-close:before{content:"\f05ad"}.mdi-window-closed:before{content:"\f05ae"}.mdi-window-closed-variant:before{content:"\f11db"}.mdi-window-maximize:before{content:"\f05af"}.mdi-window-minimize:before{content:"\f05b0"}.mdi-window-open:before{content:"\f05b1"}.mdi-window-open-variant:before{content:"\f11dc"}.mdi-window-restore:before{content:"\f05b2"}.mdi-window-shutter:before{content:"\f111c"}.mdi-window-shutter-alert:before{content:"\f111d"}.mdi-window-shutter-auto:before{content:"\f1ba3"}.mdi-window-shutter-cog:before{content:"\f1a8a"}.mdi-window-shutter-open:before{content:"\f111e"}.mdi-window-shutter-settings:before{content:"\f1a8b"}.mdi-windsock:before{content:"\f15fa"}.mdi-wiper:before{content:"\f0ae9"}.mdi-wiper-wash:before{content:"\f0da6"}.mdi-wiper-wash-alert:before{content:"\f18df"}.mdi-wizard-hat:before{content:"\f1477"}.mdi-wordpress:before{content:"\f05b4"}.mdi-wrap:before{content:"\f05b6"}.mdi-wrap-disabled:before{content:"\f0bdf"}.mdi-wrench:before{content:"\f05b7"}.mdi-wrench-check:before{content:"\f1b8f"}.mdi-wrench-check-outline:before{content:"\f1b90"}.mdi-wrench-clock:before{content:"\f19a3"}.mdi-wrench-clock-outline:before{content:"\f1b93"}.mdi-wrench-cog:before{content:"\f1b91"}.mdi-wrench-cog-outline:before{content:"\f1b92"}.mdi-wrench-outline:before{content:"\f0be0"}.mdi-xamarin:before{content:"\f0845"}.mdi-xml:before{content:"\f05c0"}.mdi-xmpp:before{content:"\f07ff"}.mdi-yahoo:before{content:"\f0b4f"}.mdi-yeast:before{content:"\f05c1"}.mdi-yin-yang:before{content:"\f0680"}.mdi-yoga:before{content:"\f117c"}.mdi-youtube:before{content:"\f05c3"}.mdi-youtube-gaming:before{content:"\f0848"}.mdi-youtube-studio:before{content:"\f0847"}.mdi-youtube-subscription:before{content:"\f0d40"}.mdi-youtube-tv:before{content:"\f0448"}.mdi-yurt:before{content:"\f1516"}.mdi-z-wave:before{content:"\f0aea"}.mdi-zend:before{content:"\f0aeb"}.mdi-zigbee:before{content:"\f0d41"}.mdi-zip-box:before{content:"\f05c4"}.mdi-zip-box-outline:before{content:"\f0ffa"}.mdi-zip-disk:before{content:"\f0a23"}.mdi-zodiac-aquarius:before{content:"\f0a7d"}.mdi-zodiac-aries:before{content:"\f0a7e"}.mdi-zodiac-cancer:before{content:"\f0a7f"}.mdi-zodiac-capricorn:before{content:"\f0a80"}.mdi-zodiac-gemini:before{content:"\f0a81"}.mdi-zodiac-leo:before{content:"\f0a82"}.mdi-zodiac-libra:before{content:"\f0a83"}.mdi-zodiac-pisces:before{content:"\f0a84"}.mdi-zodiac-sagittarius:before{content:"\f0a85"}.mdi-zodiac-scorpio:before{content:"\f0a86"}.mdi-zodiac-taurus:before{content:"\f0a87"}.mdi-zodiac-virgo:before{content:"\f0a88"}.mdi-blank:before{content:"\f68c";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 #e6e6e6,-1px 0 #e6e6e6,0 1px #e6e6e6,0 -1px #e6e6e6,0 3px 13px #00000014}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:#000000e6;fill:#000000e6;height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:#000000e6;fill:#000000e6}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:#0000001a}.numInputWrapper span:active{background:#0003}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:#00000080}.numInputWrapper:hover{background:#0000000d}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:#0000000d}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\fffd;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:#000000e6}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:#000000e6}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:#00000080;background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:#0000000d}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:#0000008a;line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:#3939394d;background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:#3939391a}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 #569ff7,5px 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:#3939394d;background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url('data:image/svg+xml;utf8, ');background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:translateY(10px) rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:translateY(10px) rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:0;left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:0;right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,top;cursor:move}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack>.grid-stack-item[gs-x="0"]{left:0}.gs-12>.grid-stack-item{width:8.333%}.gs-12>.grid-stack-item[gs-x="1"]{left:8.333%}.gs-12>.grid-stack-item[gs-w="2"]{width:16.667%}.gs-12>.grid-stack-item[gs-x="2"]{left:16.667%}.gs-12>.grid-stack-item[gs-w="3"]{width:25%}.gs-12>.grid-stack-item[gs-x="3"]{left:25%}.gs-12>.grid-stack-item[gs-w="4"]{width:33.333%}.gs-12>.grid-stack-item[gs-x="4"]{left:33.333%}.gs-12>.grid-stack-item[gs-w="5"]{width:41.667%}.gs-12>.grid-stack-item[gs-x="5"]{left:41.667%}.gs-12>.grid-stack-item[gs-w="6"]{width:50%}.gs-12>.grid-stack-item[gs-x="6"]{left:50%}.gs-12>.grid-stack-item[gs-w="7"]{width:58.333%}.gs-12>.grid-stack-item[gs-x="7"]{left:58.333%}.gs-12>.grid-stack-item[gs-w="8"]{width:66.667%}.gs-12>.grid-stack-item[gs-x="8"]{left:66.667%}.gs-12>.grid-stack-item[gs-w="9"]{width:75%}.gs-12>.grid-stack-item[gs-x="9"]{left:75%}.gs-12>.grid-stack-item[gs-w="10"]{width:83.333%}.gs-12>.grid-stack-item[gs-x="10"]{left:83.333%}.gs-12>.grid-stack-item[gs-w="11"]{width:91.667%}.gs-12>.grid-stack-item[gs-x="11"]{left:91.667%}.gs-12>.grid-stack-item[gs-w="12"]{width:100%}.gs-1>.grid-stack-item{width:100%}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url("./Inter-Thin-TCINWRKS.woff2?v=3.18") format("woff2"),url("./Inter-Thin-MEKOZMGA.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:100;font-display:swap;src:url("./Inter-ThinItalic-WRULPH3M.woff2?v=3.18") format("woff2"),url("./Inter-ThinItalic-ZFOL6JFL.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url("./Inter-ExtraLight-DVW3SATI.woff2?v=3.18") format("woff2"),url("./Inter-ExtraLight-A7NHN7KT.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:200;font-display:swap;src:url("./Inter-ExtraLightItalic-KXZYPKOE.woff2?v=3.18") format("woff2"),url("./Inter-ExtraLightItalic-SKGXKLLA.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url("./Inter-Light-XBRUIIRZ.woff2?v=3.18") format("woff2"),url("./Inter-Light-ARG5Y6MT.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:300;font-display:swap;src:url("./Inter-LightItalic-4OWY6V5R.woff2?v=3.18") format("woff2"),url("./Inter-LightItalic-WFS25IQZ.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url("./Inter-Regular-373XMOLM.woff2?v=3.18") format("woff2"),url("./Inter-Regular-DR3VC6YG.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:400;font-display:swap;src:url("./Inter-Italic-RW2ZALTO.woff2?v=3.18") format("woff2"),url("./Inter-Italic-GHDVOOKA.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url("./Inter-Medium-JV63DMR7.woff2?v=3.18") format("woff2"),url("./Inter-Medium-KH2CGZVE.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:500;font-display:swap;src:url("./Inter-MediumItalic-P7H6BBYU.woff2?v=3.18") format("woff2"),url("./Inter-MediumItalic-PO2E4FIG.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url("./Inter-SemiBold-UMRILHOG.woff2?v=3.18") format("woff2"),url("./Inter-SemiBold-TJ6HPMMH.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:600;font-display:swap;src:url("./Inter-SemiBoldItalic-ABO2DCC7.woff2?v=3.18") format("woff2"),url("./Inter-SemiBoldItalic-DM4JJSFU.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url("./Inter-Bold-6AVOS7AV.woff2?v=3.18") format("woff2"),url("./Inter-Bold-RTIBL5DO.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:700;font-display:swap;src:url("./Inter-BoldItalic-AID2XGS3.woff2?v=3.18") format("woff2"),url("./Inter-BoldItalic-UU7SOVRI.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url("./Inter-ExtraBold-VAPCTO5F.woff2?v=3.18") format("woff2"),url("./Inter-ExtraBold-B5RSZK6R.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:800;font-display:swap;src:url("./Inter-ExtraBoldItalic-W26CJYY7.woff2?v=3.18") format("woff2"),url("./Inter-ExtraBoldItalic-R7DLWYIK.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url("./Inter-Black-NU3KAVPI.woff2?v=3.18") format("woff2"),url("./Inter-Black-7VL4YR6G.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:900;font-display:swap;src:url("./Inter-BlackItalic-4BVAVUVI.woff2?v=3.18") format("woff2"),url("./Inter-BlackItalic-HJLUEYVW.woff?v=3.18") format("woff")}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url("./Inter-roman.var-EDENVCUS.woff2?v=3.18") format("woff2")}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url("./Inter-italic.var-7LS4VCXC.woff2?v=3.18") format("woff2")}@font-face{font-family:Inter var experimental;font-weight:100 900;font-display:swap;font-style:oblique 0deg 10deg;src:url("./Inter.var-FTIQFLGO.woff2?v=3.18") format("woff2")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:100;src:local("Roboto Mono Thin "),local("Roboto Mono-Thin"),url("./roboto-mono-latin-100-JQJ4Z5FD.woff2") format("woff2"),url("./roboto-mono-latin-100-SMKVIC22.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:100;src:local("Roboto Mono Thin italic"),local("Roboto Mono-Thinitalic"),url("./roboto-mono-latin-100italic-SF7I3UQS.woff2") format("woff2"),url("./roboto-mono-latin-100italic-DARDHGP2.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:200;src:local("Roboto Mono Extra Light "),local("Roboto Mono-Extra Light"),url("./roboto-mono-latin-200-GAB3DPCB.woff2") format("woff2"),url("./roboto-mono-latin-200-GNXGWAU7.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:200;src:local("Roboto Mono Extra Light italic"),local("Roboto Mono-Extra Lightitalic"),url("./roboto-mono-latin-200italic-YC3AN6RQ.woff2") format("woff2"),url("./roboto-mono-latin-200italic-MBEOZD5A.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:300;src:local("Roboto Mono Light "),local("Roboto Mono-Light"),url("./roboto-mono-latin-300-76QG53G7.woff2") format("woff2"),url("./roboto-mono-latin-300-KB4HCXJB.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:300;src:local("Roboto Mono Light italic"),local("Roboto Mono-Lightitalic"),url("./roboto-mono-latin-300italic-ATWQWJG4.woff2") format("woff2"),url("./roboto-mono-latin-300italic-UCTTXECO.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:local("Roboto Mono Regular "),local("Roboto Mono-Regular"),url("./roboto-mono-latin-400-OKRWGZOX.woff2") format("woff2"),url("./roboto-mono-latin-400-L25YYWY3.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:400;src:local("Roboto Mono Regular italic"),local("Roboto Mono-Regularitalic"),url("./roboto-mono-latin-400italic-UPQRVZWX.woff2") format("woff2"),url("./roboto-mono-latin-400italic-3G7XMJ7A.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:500;src:local("Roboto Mono Medium "),local("Roboto Mono-Medium"),url("./roboto-mono-latin-500-67YXJMLO.woff2") format("woff2"),url("./roboto-mono-latin-500-4ZB2P7GK.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:500;src:local("Roboto Mono Medium italic"),local("Roboto Mono-Mediumitalic"),url("./roboto-mono-latin-500italic-U7WRIR22.woff2") format("woff2"),url("./roboto-mono-latin-500italic-RXGCSZS4.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:600;src:local("Roboto Mono SemiBold "),local("Roboto Mono-SemiBold"),url("./roboto-mono-latin-600-ZRZYGQNG.woff2") format("woff2"),url("./roboto-mono-latin-600-USMEYMTS.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:600;src:local("Roboto Mono SemiBold italic"),local("Roboto Mono-SemiBolditalic"),url("./roboto-mono-latin-600italic-THUILB76.woff2") format("woff2"),url("./roboto-mono-latin-600italic-TLIW3M4P.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:700;src:local("Roboto Mono Bold "),local("Roboto Mono-Bold"),url("./roboto-mono-latin-700-QNNSSZIK.woff2") format("woff2"),url("./roboto-mono-latin-700-PEQVO3WV.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:700;src:local("Roboto Mono Bold italic"),local("Roboto Mono-Bolditalic"),url("./roboto-mono-latin-700italic-WWLRMKIN.woff2") format("woff2"),url("./roboto-mono-latin-700italic-KTWD2UYU.woff") format("woff")}
+@font-face{font-family:Material Design Icons;src:url("./materialdesignicons-webfont-A5TO3SM5.eot?v=7.4.47");src:url("./materialdesignicons-webfont-A5TO3SM5.eot?#iefix&v=7.4.47") format("embedded-opentype"),url("./materialdesignicons-webfont-7OXPFKOV.woff2?v=7.4.47") format("woff2"),url("./materialdesignicons-webfont-4ZM36VVG.woff?v=7.4.47") format("woff"),url("./materialdesignicons-webfont-OFFE53R5.ttf?v=7.4.47") format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"\f01c9"}.mdi-abacus:before{content:"\f16e0"}.mdi-abjad-arabic:before{content:"\f1328"}.mdi-abjad-hebrew:before{content:"\f1329"}.mdi-abugida-devanagari:before{content:"\f132a"}.mdi-abugida-thai:before{content:"\f132b"}.mdi-access-point:before{content:"\f0003"}.mdi-access-point-check:before{content:"\f1538"}.mdi-access-point-minus:before{content:"\f1539"}.mdi-access-point-network:before{content:"\f0002"}.mdi-access-point-network-off:before{content:"\f0be1"}.mdi-access-point-off:before{content:"\f1511"}.mdi-access-point-plus:before{content:"\f153a"}.mdi-access-point-remove:before{content:"\f153b"}.mdi-account:before{content:"\f0004"}.mdi-account-alert:before{content:"\f0005"}.mdi-account-alert-outline:before{content:"\f0b50"}.mdi-account-arrow-down:before{content:"\f1868"}.mdi-account-arrow-down-outline:before{content:"\f1869"}.mdi-account-arrow-left:before{content:"\f0b51"}.mdi-account-arrow-left-outline:before{content:"\f0b52"}.mdi-account-arrow-right:before{content:"\f0b53"}.mdi-account-arrow-right-outline:before{content:"\f0b54"}.mdi-account-arrow-up:before{content:"\f1867"}.mdi-account-arrow-up-outline:before{content:"\f186a"}.mdi-account-badge:before{content:"\f1b0a"}.mdi-account-badge-outline:before{content:"\f1b0b"}.mdi-account-box:before{content:"\f0006"}.mdi-account-box-edit-outline:before{content:"\f1cc8"}.mdi-account-box-minus-outline:before{content:"\f1cc9"}.mdi-account-box-multiple:before{content:"\f0934"}.mdi-account-box-multiple-outline:before{content:"\f100a"}.mdi-account-box-outline:before{content:"\f0007"}.mdi-account-box-plus-outline:before{content:"\f1cca"}.mdi-account-cancel:before{content:"\f12df"}.mdi-account-cancel-outline:before{content:"\f12e0"}.mdi-account-card:before{content:"\f1ba4"}.mdi-account-card-outline:before{content:"\f1ba5"}.mdi-account-cash:before{content:"\f1097"}.mdi-account-cash-outline:before{content:"\f1098"}.mdi-account-check:before{content:"\f0008"}.mdi-account-check-outline:before{content:"\f0be2"}.mdi-account-child:before{content:"\f0a89"}.mdi-account-child-circle:before{content:"\f0a8a"}.mdi-account-child-outline:before{content:"\f10c8"}.mdi-account-circle:before{content:"\f0009"}.mdi-account-circle-outline:before{content:"\f0b55"}.mdi-account-clock:before{content:"\f0b56"}.mdi-account-clock-outline:before{content:"\f0b57"}.mdi-account-cog:before{content:"\f1370"}.mdi-account-cog-outline:before{content:"\f1371"}.mdi-account-convert:before{content:"\f000a"}.mdi-account-convert-outline:before{content:"\f1301"}.mdi-account-cowboy-hat:before{content:"\f0e9b"}.mdi-account-cowboy-hat-outline:before{content:"\f17f3"}.mdi-account-credit-card:before{content:"\f1ba6"}.mdi-account-credit-card-outline:before{content:"\f1ba7"}.mdi-account-details:before{content:"\f0631"}.mdi-account-details-outline:before{content:"\f1372"}.mdi-account-edit:before{content:"\f06bc"}.mdi-account-edit-outline:before{content:"\f0ffb"}.mdi-account-eye:before{content:"\f0420"}.mdi-account-eye-outline:before{content:"\f127b"}.mdi-account-file:before{content:"\f1ca7"}.mdi-account-file-outline:before{content:"\f1ca8"}.mdi-account-file-text:before{content:"\f1ca9"}.mdi-account-file-text-outline:before{content:"\f1caa"}.mdi-account-filter:before{content:"\f0936"}.mdi-account-filter-outline:before{content:"\f0f9d"}.mdi-account-group:before{content:"\f0849"}.mdi-account-group-outline:before{content:"\f0b58"}.mdi-account-hard-hat:before{content:"\f05b5"}.mdi-account-hard-hat-outline:before{content:"\f1a1f"}.mdi-account-heart:before{content:"\f0899"}.mdi-account-heart-outline:before{content:"\f0be3"}.mdi-account-injury:before{content:"\f1815"}.mdi-account-injury-outline:before{content:"\f1816"}.mdi-account-key:before{content:"\f000b"}.mdi-account-key-outline:before{content:"\f0be4"}.mdi-account-lock:before{content:"\f115e"}.mdi-account-lock-open:before{content:"\f1960"}.mdi-account-lock-open-outline:before{content:"\f1961"}.mdi-account-lock-outline:before{content:"\f115f"}.mdi-account-minus:before{content:"\f000d"}.mdi-account-minus-outline:before{content:"\f0aec"}.mdi-account-multiple:before{content:"\f000e"}.mdi-account-multiple-check:before{content:"\f08c5"}.mdi-account-multiple-check-outline:before{content:"\f11fe"}.mdi-account-multiple-minus:before{content:"\f05d3"}.mdi-account-multiple-minus-outline:before{content:"\f0be5"}.mdi-account-multiple-outline:before{content:"\f000f"}.mdi-account-multiple-plus:before{content:"\f0010"}.mdi-account-multiple-plus-outline:before{content:"\f0800"}.mdi-account-multiple-remove:before{content:"\f120a"}.mdi-account-multiple-remove-outline:before{content:"\f120b"}.mdi-account-music:before{content:"\f0803"}.mdi-account-music-outline:before{content:"\f0ce9"}.mdi-account-network:before{content:"\f0011"}.mdi-account-network-off:before{content:"\f1af1"}.mdi-account-network-off-outline:before{content:"\f1af2"}.mdi-account-network-outline:before{content:"\f0be6"}.mdi-account-off:before{content:"\f0012"}.mdi-account-off-outline:before{content:"\f0be7"}.mdi-account-outline:before{content:"\f0013"}.mdi-account-plus:before{content:"\f0014"}.mdi-account-plus-outline:before{content:"\f0801"}.mdi-account-question:before{content:"\f0b59"}.mdi-account-question-outline:before{content:"\f0b5a"}.mdi-account-reactivate:before{content:"\f152b"}.mdi-account-reactivate-outline:before{content:"\f152c"}.mdi-account-remove:before{content:"\f0015"}.mdi-account-remove-outline:before{content:"\f0aed"}.mdi-account-school:before{content:"\f1a20"}.mdi-account-school-outline:before{content:"\f1a21"}.mdi-account-search:before{content:"\f0016"}.mdi-account-search-outline:before{content:"\f0935"}.mdi-account-settings:before{content:"\f0630"}.mdi-account-settings-outline:before{content:"\f10c9"}.mdi-account-star:before{content:"\f0017"}.mdi-account-star-outline:before{content:"\f0be8"}.mdi-account-supervisor:before{content:"\f0a8b"}.mdi-account-supervisor-circle:before{content:"\f0a8c"}.mdi-account-supervisor-circle-outline:before{content:"\f14ec"}.mdi-account-supervisor-outline:before{content:"\f112d"}.mdi-account-switch:before{content:"\f0019"}.mdi-account-switch-outline:before{content:"\f04cb"}.mdi-account-sync:before{content:"\f191b"}.mdi-account-sync-outline:before{content:"\f191c"}.mdi-account-tag:before{content:"\f1c1b"}.mdi-account-tag-outline:before{content:"\f1c1c"}.mdi-account-tie:before{content:"\f0ce3"}.mdi-account-tie-hat:before{content:"\f1898"}.mdi-account-tie-hat-outline:before{content:"\f1899"}.mdi-account-tie-outline:before{content:"\f10ca"}.mdi-account-tie-voice:before{content:"\f1308"}.mdi-account-tie-voice-off:before{content:"\f130a"}.mdi-account-tie-voice-off-outline:before{content:"\f130b"}.mdi-account-tie-voice-outline:before{content:"\f1309"}.mdi-account-tie-woman:before{content:"\f1a8c"}.mdi-account-voice:before{content:"\f05cb"}.mdi-account-voice-off:before{content:"\f0ed4"}.mdi-account-wrench:before{content:"\f189a"}.mdi-account-wrench-outline:before{content:"\f189b"}.mdi-adjust:before{content:"\f001a"}.mdi-advertisements:before{content:"\f192a"}.mdi-advertisements-off:before{content:"\f192b"}.mdi-air-conditioner:before{content:"\f001b"}.mdi-air-filter:before{content:"\f0d43"}.mdi-air-horn:before{content:"\f0dac"}.mdi-air-humidifier:before{content:"\f1099"}.mdi-air-humidifier-off:before{content:"\f1466"}.mdi-air-purifier:before{content:"\f0d44"}.mdi-air-purifier-off:before{content:"\f1b57"}.mdi-airbag:before{content:"\f0be9"}.mdi-airballoon:before{content:"\f001c"}.mdi-airballoon-outline:before{content:"\f100b"}.mdi-airplane:before{content:"\f001d"}.mdi-airplane-alert:before{content:"\f187a"}.mdi-airplane-check:before{content:"\f187b"}.mdi-airplane-clock:before{content:"\f187c"}.mdi-airplane-cog:before{content:"\f187d"}.mdi-airplane-edit:before{content:"\f187e"}.mdi-airplane-landing:before{content:"\f05d4"}.mdi-airplane-marker:before{content:"\f187f"}.mdi-airplane-minus:before{content:"\f1880"}.mdi-airplane-off:before{content:"\f001e"}.mdi-airplane-plus:before{content:"\f1881"}.mdi-airplane-remove:before{content:"\f1882"}.mdi-airplane-search:before{content:"\f1883"}.mdi-airplane-settings:before{content:"\f1884"}.mdi-airplane-takeoff:before{content:"\f05d5"}.mdi-airport:before{content:"\f084b"}.mdi-alarm:before{content:"\f0020"}.mdi-alarm-bell:before{content:"\f078e"}.mdi-alarm-check:before{content:"\f0021"}.mdi-alarm-light:before{content:"\f078f"}.mdi-alarm-light-off:before{content:"\f171e"}.mdi-alarm-light-off-outline:before{content:"\f171f"}.mdi-alarm-light-outline:before{content:"\f0bea"}.mdi-alarm-multiple:before{content:"\f0022"}.mdi-alarm-note:before{content:"\f0e71"}.mdi-alarm-note-off:before{content:"\f0e72"}.mdi-alarm-off:before{content:"\f0023"}.mdi-alarm-panel:before{content:"\f15c4"}.mdi-alarm-panel-outline:before{content:"\f15c5"}.mdi-alarm-plus:before{content:"\f0024"}.mdi-alarm-snooze:before{content:"\f068e"}.mdi-album:before{content:"\f0025"}.mdi-alert:before{content:"\f0026"}.mdi-alert-box:before{content:"\f0027"}.mdi-alert-box-outline:before{content:"\f0ce4"}.mdi-alert-circle:before{content:"\f0028"}.mdi-alert-circle-check:before{content:"\f11ed"}.mdi-alert-circle-check-outline:before{content:"\f11ee"}.mdi-alert-circle-outline:before{content:"\f05d6"}.mdi-alert-decagram:before{content:"\f06bd"}.mdi-alert-decagram-outline:before{content:"\f0ce5"}.mdi-alert-minus:before{content:"\f14bb"}.mdi-alert-minus-outline:before{content:"\f14be"}.mdi-alert-octagon:before{content:"\f0029"}.mdi-alert-octagon-outline:before{content:"\f0ce6"}.mdi-alert-octagram:before{content:"\f0767"}.mdi-alert-octagram-outline:before{content:"\f0ce7"}.mdi-alert-outline:before{content:"\f002a"}.mdi-alert-plus:before{content:"\f14ba"}.mdi-alert-plus-outline:before{content:"\f14bd"}.mdi-alert-remove:before{content:"\f14bc"}.mdi-alert-remove-outline:before{content:"\f14bf"}.mdi-alert-rhombus:before{content:"\f11ce"}.mdi-alert-rhombus-outline:before{content:"\f11cf"}.mdi-alien:before{content:"\f089a"}.mdi-alien-outline:before{content:"\f10cb"}.mdi-align-horizontal-center:before{content:"\f11c3"}.mdi-align-horizontal-distribute:before{content:"\f1962"}.mdi-align-horizontal-left:before{content:"\f11c2"}.mdi-align-horizontal-right:before{content:"\f11c4"}.mdi-align-vertical-bottom:before{content:"\f11c5"}.mdi-align-vertical-center:before{content:"\f11c6"}.mdi-align-vertical-distribute:before{content:"\f1963"}.mdi-align-vertical-top:before{content:"\f11c7"}.mdi-all-inclusive:before{content:"\f06be"}.mdi-all-inclusive-box:before{content:"\f188d"}.mdi-all-inclusive-box-outline:before{content:"\f188e"}.mdi-allergy:before{content:"\f1258"}.mdi-alpha:before{content:"\f002b"}.mdi-alpha-a:before{content:"\f0aee"}.mdi-alpha-a-box:before{content:"\f0b08"}.mdi-alpha-a-box-outline:before{content:"\f0beb"}.mdi-alpha-a-circle:before{content:"\f0bec"}.mdi-alpha-a-circle-outline:before{content:"\f0bed"}.mdi-alpha-b:before{content:"\f0aef"}.mdi-alpha-b-box:before{content:"\f0b09"}.mdi-alpha-b-box-outline:before{content:"\f0bee"}.mdi-alpha-b-circle:before{content:"\f0bef"}.mdi-alpha-b-circle-outline:before{content:"\f0bf0"}.mdi-alpha-c:before{content:"\f0af0"}.mdi-alpha-c-box:before{content:"\f0b0a"}.mdi-alpha-c-box-outline:before{content:"\f0bf1"}.mdi-alpha-c-circle:before{content:"\f0bf2"}.mdi-alpha-c-circle-outline:before{content:"\f0bf3"}.mdi-alpha-d:before{content:"\f0af1"}.mdi-alpha-d-box:before{content:"\f0b0b"}.mdi-alpha-d-box-outline:before{content:"\f0bf4"}.mdi-alpha-d-circle:before{content:"\f0bf5"}.mdi-alpha-d-circle-outline:before{content:"\f0bf6"}.mdi-alpha-e:before{content:"\f0af2"}.mdi-alpha-e-box:before{content:"\f0b0c"}.mdi-alpha-e-box-outline:before{content:"\f0bf7"}.mdi-alpha-e-circle:before{content:"\f0bf8"}.mdi-alpha-e-circle-outline:before{content:"\f0bf9"}.mdi-alpha-f:before{content:"\f0af3"}.mdi-alpha-f-box:before{content:"\f0b0d"}.mdi-alpha-f-box-outline:before{content:"\f0bfa"}.mdi-alpha-f-circle:before{content:"\f0bfb"}.mdi-alpha-f-circle-outline:before{content:"\f0bfc"}.mdi-alpha-g:before{content:"\f0af4"}.mdi-alpha-g-box:before{content:"\f0b0e"}.mdi-alpha-g-box-outline:before{content:"\f0bfd"}.mdi-alpha-g-circle:before{content:"\f0bfe"}.mdi-alpha-g-circle-outline:before{content:"\f0bff"}.mdi-alpha-h:before{content:"\f0af5"}.mdi-alpha-h-box:before{content:"\f0b0f"}.mdi-alpha-h-box-outline:before{content:"\f0c00"}.mdi-alpha-h-circle:before{content:"\f0c01"}.mdi-alpha-h-circle-outline:before{content:"\f0c02"}.mdi-alpha-i:before{content:"\f0af6"}.mdi-alpha-i-box:before{content:"\f0b10"}.mdi-alpha-i-box-outline:before{content:"\f0c03"}.mdi-alpha-i-circle:before{content:"\f0c04"}.mdi-alpha-i-circle-outline:before{content:"\f0c05"}.mdi-alpha-j:before{content:"\f0af7"}.mdi-alpha-j-box:before{content:"\f0b11"}.mdi-alpha-j-box-outline:before{content:"\f0c06"}.mdi-alpha-j-circle:before{content:"\f0c07"}.mdi-alpha-j-circle-outline:before{content:"\f0c08"}.mdi-alpha-k:before{content:"\f0af8"}.mdi-alpha-k-box:before{content:"\f0b12"}.mdi-alpha-k-box-outline:before{content:"\f0c09"}.mdi-alpha-k-circle:before{content:"\f0c0a"}.mdi-alpha-k-circle-outline:before{content:"\f0c0b"}.mdi-alpha-l:before{content:"\f0af9"}.mdi-alpha-l-box:before{content:"\f0b13"}.mdi-alpha-l-box-outline:before{content:"\f0c0c"}.mdi-alpha-l-circle:before{content:"\f0c0d"}.mdi-alpha-l-circle-outline:before{content:"\f0c0e"}.mdi-alpha-m:before{content:"\f0afa"}.mdi-alpha-m-box:before{content:"\f0b14"}.mdi-alpha-m-box-outline:before{content:"\f0c0f"}.mdi-alpha-m-circle:before{content:"\f0c10"}.mdi-alpha-m-circle-outline:before{content:"\f0c11"}.mdi-alpha-n:before{content:"\f0afb"}.mdi-alpha-n-box:before{content:"\f0b15"}.mdi-alpha-n-box-outline:before{content:"\f0c12"}.mdi-alpha-n-circle:before{content:"\f0c13"}.mdi-alpha-n-circle-outline:before{content:"\f0c14"}.mdi-alpha-o:before{content:"\f0afc"}.mdi-alpha-o-box:before{content:"\f0b16"}.mdi-alpha-o-box-outline:before{content:"\f0c15"}.mdi-alpha-o-circle:before{content:"\f0c16"}.mdi-alpha-o-circle-outline:before{content:"\f0c17"}.mdi-alpha-p:before{content:"\f0afd"}.mdi-alpha-p-box:before{content:"\f0b17"}.mdi-alpha-p-box-outline:before{content:"\f0c18"}.mdi-alpha-p-circle:before{content:"\f0c19"}.mdi-alpha-p-circle-outline:before{content:"\f0c1a"}.mdi-alpha-q:before{content:"\f0afe"}.mdi-alpha-q-box:before{content:"\f0b18"}.mdi-alpha-q-box-outline:before{content:"\f0c1b"}.mdi-alpha-q-circle:before{content:"\f0c1c"}.mdi-alpha-q-circle-outline:before{content:"\f0c1d"}.mdi-alpha-r:before{content:"\f0aff"}.mdi-alpha-r-box:before{content:"\f0b19"}.mdi-alpha-r-box-outline:before{content:"\f0c1e"}.mdi-alpha-r-circle:before{content:"\f0c1f"}.mdi-alpha-r-circle-outline:before{content:"\f0c20"}.mdi-alpha-s:before{content:"\f0b00"}.mdi-alpha-s-box:before{content:"\f0b1a"}.mdi-alpha-s-box-outline:before{content:"\f0c21"}.mdi-alpha-s-circle:before{content:"\f0c22"}.mdi-alpha-s-circle-outline:before{content:"\f0c23"}.mdi-alpha-t:before{content:"\f0b01"}.mdi-alpha-t-box:before{content:"\f0b1b"}.mdi-alpha-t-box-outline:before{content:"\f0c24"}.mdi-alpha-t-circle:before{content:"\f0c25"}.mdi-alpha-t-circle-outline:before{content:"\f0c26"}.mdi-alpha-u:before{content:"\f0b02"}.mdi-alpha-u-box:before{content:"\f0b1c"}.mdi-alpha-u-box-outline:before{content:"\f0c27"}.mdi-alpha-u-circle:before{content:"\f0c28"}.mdi-alpha-u-circle-outline:before{content:"\f0c29"}.mdi-alpha-v:before{content:"\f0b03"}.mdi-alpha-v-box:before{content:"\f0b1d"}.mdi-alpha-v-box-outline:before{content:"\f0c2a"}.mdi-alpha-v-circle:before{content:"\f0c2b"}.mdi-alpha-v-circle-outline:before{content:"\f0c2c"}.mdi-alpha-w:before{content:"\f0b04"}.mdi-alpha-w-box:before{content:"\f0b1e"}.mdi-alpha-w-box-outline:before{content:"\f0c2d"}.mdi-alpha-w-circle:before{content:"\f0c2e"}.mdi-alpha-w-circle-outline:before{content:"\f0c2f"}.mdi-alpha-x:before{content:"\f0b05"}.mdi-alpha-x-box:before{content:"\f0b1f"}.mdi-alpha-x-box-outline:before{content:"\f0c30"}.mdi-alpha-x-circle:before{content:"\f0c31"}.mdi-alpha-x-circle-outline:before{content:"\f0c32"}.mdi-alpha-y:before{content:"\f0b06"}.mdi-alpha-y-box:before{content:"\f0b20"}.mdi-alpha-y-box-outline:before{content:"\f0c33"}.mdi-alpha-y-circle:before{content:"\f0c34"}.mdi-alpha-y-circle-outline:before{content:"\f0c35"}.mdi-alpha-z:before{content:"\f0b07"}.mdi-alpha-z-box:before{content:"\f0b21"}.mdi-alpha-z-box-outline:before{content:"\f0c36"}.mdi-alpha-z-circle:before{content:"\f0c37"}.mdi-alpha-z-circle-outline:before{content:"\f0c38"}.mdi-alphabet-aurebesh:before{content:"\f132c"}.mdi-alphabet-cyrillic:before{content:"\f132d"}.mdi-alphabet-greek:before{content:"\f132e"}.mdi-alphabet-latin:before{content:"\f132f"}.mdi-alphabet-piqad:before{content:"\f1330"}.mdi-alphabet-tengwar:before{content:"\f1337"}.mdi-alphabetical:before{content:"\f002c"}.mdi-alphabetical-off:before{content:"\f100c"}.mdi-alphabetical-variant:before{content:"\f100d"}.mdi-alphabetical-variant-off:before{content:"\f100e"}.mdi-altimeter:before{content:"\f05d7"}.mdi-ambulance:before{content:"\f002f"}.mdi-ammunition:before{content:"\f0ce8"}.mdi-ampersand:before{content:"\f0a8d"}.mdi-amplifier:before{content:"\f0030"}.mdi-amplifier-off:before{content:"\f11b5"}.mdi-anchor:before{content:"\f0031"}.mdi-android:before{content:"\f0032"}.mdi-android-studio:before{content:"\f0034"}.mdi-angle-acute:before{content:"\f0937"}.mdi-angle-obtuse:before{content:"\f0938"}.mdi-angle-right:before{content:"\f0939"}.mdi-angular:before{content:"\f06b2"}.mdi-angularjs:before{content:"\f06bf"}.mdi-animation:before{content:"\f05d8"}.mdi-animation-outline:before{content:"\f0a8f"}.mdi-animation-play:before{content:"\f093a"}.mdi-animation-play-outline:before{content:"\f0a90"}.mdi-ansible:before{content:"\f109a"}.mdi-antenna:before{content:"\f1119"}.mdi-anvil:before{content:"\f089b"}.mdi-apache-kafka:before{content:"\f100f"}.mdi-api:before{content:"\f109b"}.mdi-api-off:before{content:"\f1257"}.mdi-apple:before{content:"\f0035"}.mdi-apple-finder:before{content:"\f0036"}.mdi-apple-icloud:before{content:"\f0038"}.mdi-apple-ios:before{content:"\f0037"}.mdi-apple-keyboard-caps:before{content:"\f0632"}.mdi-apple-keyboard-command:before{content:"\f0633"}.mdi-apple-keyboard-control:before{content:"\f0634"}.mdi-apple-keyboard-option:before{content:"\f0635"}.mdi-apple-keyboard-shift:before{content:"\f0636"}.mdi-apple-safari:before{content:"\f0039"}.mdi-application:before{content:"\f08c6"}.mdi-application-array:before{content:"\f10f5"}.mdi-application-array-outline:before{content:"\f10f6"}.mdi-application-braces:before{content:"\f10f7"}.mdi-application-braces-outline:before{content:"\f10f8"}.mdi-application-brackets:before{content:"\f0c8b"}.mdi-application-brackets-outline:before{content:"\f0c8c"}.mdi-application-cog:before{content:"\f0675"}.mdi-application-cog-outline:before{content:"\f1577"}.mdi-application-edit:before{content:"\f00ae"}.mdi-application-edit-outline:before{content:"\f0619"}.mdi-application-export:before{content:"\f0dad"}.mdi-application-import:before{content:"\f0dae"}.mdi-application-outline:before{content:"\f0614"}.mdi-application-parentheses:before{content:"\f10f9"}.mdi-application-parentheses-outline:before{content:"\f10fa"}.mdi-application-settings:before{content:"\f0b60"}.mdi-application-settings-outline:before{content:"\f1555"}.mdi-application-variable:before{content:"\f10fb"}.mdi-application-variable-outline:before{content:"\f10fc"}.mdi-approximately-equal:before{content:"\f0f9e"}.mdi-approximately-equal-box:before{content:"\f0f9f"}.mdi-apps:before{content:"\f003b"}.mdi-apps-box:before{content:"\f0d46"}.mdi-arch:before{content:"\f08c7"}.mdi-archive:before{content:"\f003c"}.mdi-archive-alert:before{content:"\f14fd"}.mdi-archive-alert-outline:before{content:"\f14fe"}.mdi-archive-arrow-down:before{content:"\f1259"}.mdi-archive-arrow-down-outline:before{content:"\f125a"}.mdi-archive-arrow-up:before{content:"\f125b"}.mdi-archive-arrow-up-outline:before{content:"\f125c"}.mdi-archive-cancel:before{content:"\f174b"}.mdi-archive-cancel-outline:before{content:"\f174c"}.mdi-archive-check:before{content:"\f174d"}.mdi-archive-check-outline:before{content:"\f174e"}.mdi-archive-clock:before{content:"\f174f"}.mdi-archive-clock-outline:before{content:"\f1750"}.mdi-archive-cog:before{content:"\f1751"}.mdi-archive-cog-outline:before{content:"\f1752"}.mdi-archive-edit:before{content:"\f1753"}.mdi-archive-edit-outline:before{content:"\f1754"}.mdi-archive-eye:before{content:"\f1755"}.mdi-archive-eye-outline:before{content:"\f1756"}.mdi-archive-lock:before{content:"\f1757"}.mdi-archive-lock-open:before{content:"\f1758"}.mdi-archive-lock-open-outline:before{content:"\f1759"}.mdi-archive-lock-outline:before{content:"\f175a"}.mdi-archive-marker:before{content:"\f175b"}.mdi-archive-marker-outline:before{content:"\f175c"}.mdi-archive-minus:before{content:"\f175d"}.mdi-archive-minus-outline:before{content:"\f175e"}.mdi-archive-music:before{content:"\f175f"}.mdi-archive-music-outline:before{content:"\f1760"}.mdi-archive-off:before{content:"\f1761"}.mdi-archive-off-outline:before{content:"\f1762"}.mdi-archive-outline:before{content:"\f120e"}.mdi-archive-plus:before{content:"\f1763"}.mdi-archive-plus-outline:before{content:"\f1764"}.mdi-archive-refresh:before{content:"\f1765"}.mdi-archive-refresh-outline:before{content:"\f1766"}.mdi-archive-remove:before{content:"\f1767"}.mdi-archive-remove-outline:before{content:"\f1768"}.mdi-archive-search:before{content:"\f1769"}.mdi-archive-search-outline:before{content:"\f176a"}.mdi-archive-settings:before{content:"\f176b"}.mdi-archive-settings-outline:before{content:"\f176c"}.mdi-archive-star:before{content:"\f176d"}.mdi-archive-star-outline:before{content:"\f176e"}.mdi-archive-sync:before{content:"\f176f"}.mdi-archive-sync-outline:before{content:"\f1770"}.mdi-arm-flex:before{content:"\f0fd7"}.mdi-arm-flex-outline:before{content:"\f0fd6"}.mdi-arrange-bring-forward:before{content:"\f003d"}.mdi-arrange-bring-to-front:before{content:"\f003e"}.mdi-arrange-send-backward:before{content:"\f003f"}.mdi-arrange-send-to-back:before{content:"\f0040"}.mdi-arrow-all:before{content:"\f0041"}.mdi-arrow-bottom-left:before{content:"\f0042"}.mdi-arrow-bottom-left-bold-box:before{content:"\f1964"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"\f1965"}.mdi-arrow-bottom-left-bold-outline:before{content:"\f09b7"}.mdi-arrow-bottom-left-thick:before{content:"\f09b8"}.mdi-arrow-bottom-left-thin:before{content:"\f19b6"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"\f1596"}.mdi-arrow-bottom-right:before{content:"\f0043"}.mdi-arrow-bottom-right-bold-box:before{content:"\f1966"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"\f1967"}.mdi-arrow-bottom-right-bold-outline:before{content:"\f09b9"}.mdi-arrow-bottom-right-thick:before{content:"\f09ba"}.mdi-arrow-bottom-right-thin:before{content:"\f19b7"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"\f1595"}.mdi-arrow-collapse:before{content:"\f0615"}.mdi-arrow-collapse-all:before{content:"\f0044"}.mdi-arrow-collapse-down:before{content:"\f0792"}.mdi-arrow-collapse-horizontal:before{content:"\f084c"}.mdi-arrow-collapse-left:before{content:"\f0793"}.mdi-arrow-collapse-right:before{content:"\f0794"}.mdi-arrow-collapse-up:before{content:"\f0795"}.mdi-arrow-collapse-vertical:before{content:"\f084d"}.mdi-arrow-decision:before{content:"\f09bb"}.mdi-arrow-decision-auto:before{content:"\f09bc"}.mdi-arrow-decision-auto-outline:before{content:"\f09bd"}.mdi-arrow-decision-outline:before{content:"\f09be"}.mdi-arrow-down:before{content:"\f0045"}.mdi-arrow-down-bold:before{content:"\f072e"}.mdi-arrow-down-bold-box:before{content:"\f072f"}.mdi-arrow-down-bold-box-outline:before{content:"\f0730"}.mdi-arrow-down-bold-circle:before{content:"\f0047"}.mdi-arrow-down-bold-circle-outline:before{content:"\f0048"}.mdi-arrow-down-bold-hexagon-outline:before{content:"\f0049"}.mdi-arrow-down-bold-outline:before{content:"\f09bf"}.mdi-arrow-down-box:before{content:"\f06c0"}.mdi-arrow-down-circle:before{content:"\f0cdb"}.mdi-arrow-down-circle-outline:before{content:"\f0cdc"}.mdi-arrow-down-drop-circle:before{content:"\f004a"}.mdi-arrow-down-drop-circle-outline:before{content:"\f004b"}.mdi-arrow-down-left:before{content:"\f17a1"}.mdi-arrow-down-left-bold:before{content:"\f17a2"}.mdi-arrow-down-right:before{content:"\f17a3"}.mdi-arrow-down-right-bold:before{content:"\f17a4"}.mdi-arrow-down-thick:before{content:"\f0046"}.mdi-arrow-down-thin:before{content:"\f19b3"}.mdi-arrow-down-thin-circle-outline:before{content:"\f1599"}.mdi-arrow-expand:before{content:"\f0616"}.mdi-arrow-expand-all:before{content:"\f004c"}.mdi-arrow-expand-down:before{content:"\f0796"}.mdi-arrow-expand-horizontal:before{content:"\f084e"}.mdi-arrow-expand-left:before{content:"\f0797"}.mdi-arrow-expand-right:before{content:"\f0798"}.mdi-arrow-expand-up:before{content:"\f0799"}.mdi-arrow-expand-vertical:before{content:"\f084f"}.mdi-arrow-horizontal-lock:before{content:"\f115b"}.mdi-arrow-left:before{content:"\f004d"}.mdi-arrow-left-bold:before{content:"\f0731"}.mdi-arrow-left-bold-box:before{content:"\f0732"}.mdi-arrow-left-bold-box-outline:before{content:"\f0733"}.mdi-arrow-left-bold-circle:before{content:"\f004f"}.mdi-arrow-left-bold-circle-outline:before{content:"\f0050"}.mdi-arrow-left-bold-hexagon-outline:before{content:"\f0051"}.mdi-arrow-left-bold-outline:before{content:"\f09c0"}.mdi-arrow-left-bottom:before{content:"\f17a5"}.mdi-arrow-left-bottom-bold:before{content:"\f17a6"}.mdi-arrow-left-box:before{content:"\f06c1"}.mdi-arrow-left-circle:before{content:"\f0cdd"}.mdi-arrow-left-circle-outline:before{content:"\f0cde"}.mdi-arrow-left-drop-circle:before{content:"\f0052"}.mdi-arrow-left-drop-circle-outline:before{content:"\f0053"}.mdi-arrow-left-right:before{content:"\f0e73"}.mdi-arrow-left-right-bold:before{content:"\f0e74"}.mdi-arrow-left-right-bold-outline:before{content:"\f09c1"}.mdi-arrow-left-thick:before{content:"\f004e"}.mdi-arrow-left-thin:before{content:"\f19b1"}.mdi-arrow-left-thin-circle-outline:before{content:"\f159a"}.mdi-arrow-left-top:before{content:"\f17a7"}.mdi-arrow-left-top-bold:before{content:"\f17a8"}.mdi-arrow-oscillating:before{content:"\f1c91"}.mdi-arrow-oscillating-off:before{content:"\f1c92"}.mdi-arrow-projectile:before{content:"\f1840"}.mdi-arrow-projectile-multiple:before{content:"\f183f"}.mdi-arrow-right:before{content:"\f0054"}.mdi-arrow-right-bold:before{content:"\f0734"}.mdi-arrow-right-bold-box:before{content:"\f0735"}.mdi-arrow-right-bold-box-outline:before{content:"\f0736"}.mdi-arrow-right-bold-circle:before{content:"\f0056"}.mdi-arrow-right-bold-circle-outline:before{content:"\f0057"}.mdi-arrow-right-bold-hexagon-outline:before{content:"\f0058"}.mdi-arrow-right-bold-outline:before{content:"\f09c2"}.mdi-arrow-right-bottom:before{content:"\f17a9"}.mdi-arrow-right-bottom-bold:before{content:"\f17aa"}.mdi-arrow-right-box:before{content:"\f06c2"}.mdi-arrow-right-circle:before{content:"\f0cdf"}.mdi-arrow-right-circle-outline:before{content:"\f0ce0"}.mdi-arrow-right-drop-circle:before{content:"\f0059"}.mdi-arrow-right-drop-circle-outline:before{content:"\f005a"}.mdi-arrow-right-thick:before{content:"\f0055"}.mdi-arrow-right-thin:before{content:"\f19b0"}.mdi-arrow-right-thin-circle-outline:before{content:"\f1598"}.mdi-arrow-right-top:before{content:"\f17ab"}.mdi-arrow-right-top-bold:before{content:"\f17ac"}.mdi-arrow-split-horizontal:before{content:"\f093b"}.mdi-arrow-split-vertical:before{content:"\f093c"}.mdi-arrow-top-left:before{content:"\f005b"}.mdi-arrow-top-left-bold-box:before{content:"\f1968"}.mdi-arrow-top-left-bold-box-outline:before{content:"\f1969"}.mdi-arrow-top-left-bold-outline:before{content:"\f09c3"}.mdi-arrow-top-left-bottom-right:before{content:"\f0e75"}.mdi-arrow-top-left-bottom-right-bold:before{content:"\f0e76"}.mdi-arrow-top-left-thick:before{content:"\f09c4"}.mdi-arrow-top-left-thin:before{content:"\f19b5"}.mdi-arrow-top-left-thin-circle-outline:before{content:"\f1593"}.mdi-arrow-top-right:before{content:"\f005c"}.mdi-arrow-top-right-bold-box:before{content:"\f196a"}.mdi-arrow-top-right-bold-box-outline:before{content:"\f196b"}.mdi-arrow-top-right-bold-outline:before{content:"\f09c5"}.mdi-arrow-top-right-bottom-left:before{content:"\f0e77"}.mdi-arrow-top-right-bottom-left-bold:before{content:"\f0e78"}.mdi-arrow-top-right-thick:before{content:"\f09c6"}.mdi-arrow-top-right-thin:before{content:"\f19b4"}.mdi-arrow-top-right-thin-circle-outline:before{content:"\f1594"}.mdi-arrow-u-down-left:before{content:"\f17ad"}.mdi-arrow-u-down-left-bold:before{content:"\f17ae"}.mdi-arrow-u-down-right:before{content:"\f17af"}.mdi-arrow-u-down-right-bold:before{content:"\f17b0"}.mdi-arrow-u-left-bottom:before{content:"\f17b1"}.mdi-arrow-u-left-bottom-bold:before{content:"\f17b2"}.mdi-arrow-u-left-top:before{content:"\f17b3"}.mdi-arrow-u-left-top-bold:before{content:"\f17b4"}.mdi-arrow-u-right-bottom:before{content:"\f17b5"}.mdi-arrow-u-right-bottom-bold:before{content:"\f17b6"}.mdi-arrow-u-right-top:before{content:"\f17b7"}.mdi-arrow-u-right-top-bold:before{content:"\f17b8"}.mdi-arrow-u-up-left:before{content:"\f17b9"}.mdi-arrow-u-up-left-bold:before{content:"\f17ba"}.mdi-arrow-u-up-right:before{content:"\f17bb"}.mdi-arrow-u-up-right-bold:before{content:"\f17bc"}.mdi-arrow-up:before{content:"\f005d"}.mdi-arrow-up-bold:before{content:"\f0737"}.mdi-arrow-up-bold-box:before{content:"\f0738"}.mdi-arrow-up-bold-box-outline:before{content:"\f0739"}.mdi-arrow-up-bold-circle:before{content:"\f005f"}.mdi-arrow-up-bold-circle-outline:before{content:"\f0060"}.mdi-arrow-up-bold-hexagon-outline:before{content:"\f0061"}.mdi-arrow-up-bold-outline:before{content:"\f09c7"}.mdi-arrow-up-box:before{content:"\f06c3"}.mdi-arrow-up-circle:before{content:"\f0ce1"}.mdi-arrow-up-circle-outline:before{content:"\f0ce2"}.mdi-arrow-up-down:before{content:"\f0e79"}.mdi-arrow-up-down-bold:before{content:"\f0e7a"}.mdi-arrow-up-down-bold-outline:before{content:"\f09c8"}.mdi-arrow-up-drop-circle:before{content:"\f0062"}.mdi-arrow-up-drop-circle-outline:before{content:"\f0063"}.mdi-arrow-up-left:before{content:"\f17bd"}.mdi-arrow-up-left-bold:before{content:"\f17be"}.mdi-arrow-up-right:before{content:"\f17bf"}.mdi-arrow-up-right-bold:before{content:"\f17c0"}.mdi-arrow-up-thick:before{content:"\f005e"}.mdi-arrow-up-thin:before{content:"\f19b2"}.mdi-arrow-up-thin-circle-outline:before{content:"\f1597"}.mdi-arrow-vertical-lock:before{content:"\f115c"}.mdi-artboard:before{content:"\f1b9a"}.mdi-artstation:before{content:"\f0b5b"}.mdi-aspect-ratio:before{content:"\f0a24"}.mdi-assistant:before{content:"\f0064"}.mdi-asterisk:before{content:"\f06c4"}.mdi-asterisk-circle-outline:before{content:"\f1a27"}.mdi-at:before{content:"\f0065"}.mdi-atlassian:before{content:"\f0804"}.mdi-atm:before{content:"\f0d47"}.mdi-atom:before{content:"\f0768"}.mdi-atom-variant:before{content:"\f0e7b"}.mdi-attachment:before{content:"\f0066"}.mdi-attachment-check:before{content:"\f1ac1"}.mdi-attachment-lock:before{content:"\f19c4"}.mdi-attachment-minus:before{content:"\f1ac2"}.mdi-attachment-off:before{content:"\f1ac3"}.mdi-attachment-plus:before{content:"\f1ac4"}.mdi-attachment-remove:before{content:"\f1ac5"}.mdi-atv:before{content:"\f1b70"}.mdi-audio-input-rca:before{content:"\f186b"}.mdi-audio-input-stereo-minijack:before{content:"\f186c"}.mdi-audio-input-xlr:before{content:"\f186d"}.mdi-audio-video:before{content:"\f093d"}.mdi-audio-video-off:before{content:"\f11b6"}.mdi-augmented-reality:before{content:"\f0850"}.mdi-aurora:before{content:"\f1bb9"}.mdi-auto-download:before{content:"\f137e"}.mdi-auto-fix:before{content:"\f0068"}.mdi-auto-mode:before{content:"\f1c20"}.mdi-auto-upload:before{content:"\f0069"}.mdi-autorenew:before{content:"\f006a"}.mdi-autorenew-off:before{content:"\f19e7"}.mdi-av-timer:before{content:"\f006b"}.mdi-awning:before{content:"\f1b87"}.mdi-awning-outline:before{content:"\f1b88"}.mdi-aws:before{content:"\f0e0f"}.mdi-axe:before{content:"\f08c8"}.mdi-axe-battle:before{content:"\f1842"}.mdi-axis:before{content:"\f0d48"}.mdi-axis-arrow:before{content:"\f0d49"}.mdi-axis-arrow-info:before{content:"\f140e"}.mdi-axis-arrow-lock:before{content:"\f0d4a"}.mdi-axis-lock:before{content:"\f0d4b"}.mdi-axis-x-arrow:before{content:"\f0d4c"}.mdi-axis-x-arrow-lock:before{content:"\f0d4d"}.mdi-axis-x-rotate-clockwise:before{content:"\f0d4e"}.mdi-axis-x-rotate-counterclockwise:before{content:"\f0d4f"}.mdi-axis-x-y-arrow-lock:before{content:"\f0d50"}.mdi-axis-y-arrow:before{content:"\f0d51"}.mdi-axis-y-arrow-lock:before{content:"\f0d52"}.mdi-axis-y-rotate-clockwise:before{content:"\f0d53"}.mdi-axis-y-rotate-counterclockwise:before{content:"\f0d54"}.mdi-axis-z-arrow:before{content:"\f0d55"}.mdi-axis-z-arrow-lock:before{content:"\f0d56"}.mdi-axis-z-rotate-clockwise:before{content:"\f0d57"}.mdi-axis-z-rotate-counterclockwise:before{content:"\f0d58"}.mdi-babel:before{content:"\f0a25"}.mdi-baby:before{content:"\f006c"}.mdi-baby-bottle:before{content:"\f0f39"}.mdi-baby-bottle-outline:before{content:"\f0f3a"}.mdi-baby-buggy:before{content:"\f13e0"}.mdi-baby-buggy-off:before{content:"\f1af3"}.mdi-baby-carriage:before{content:"\f068f"}.mdi-baby-carriage-off:before{content:"\f0fa0"}.mdi-baby-face:before{content:"\f0e7c"}.mdi-baby-face-outline:before{content:"\f0e7d"}.mdi-backburger:before{content:"\f006d"}.mdi-backspace:before{content:"\f006e"}.mdi-backspace-outline:before{content:"\f0b5c"}.mdi-backspace-reverse:before{content:"\f0e7e"}.mdi-backspace-reverse-outline:before{content:"\f0e7f"}.mdi-backup-restore:before{content:"\f006f"}.mdi-bacteria:before{content:"\f0ed5"}.mdi-bacteria-outline:before{content:"\f0ed6"}.mdi-badge-account:before{content:"\f0da7"}.mdi-badge-account-alert:before{content:"\f0da8"}.mdi-badge-account-alert-outline:before{content:"\f0da9"}.mdi-badge-account-horizontal:before{content:"\f0e0d"}.mdi-badge-account-horizontal-outline:before{content:"\f0e0e"}.mdi-badge-account-outline:before{content:"\f0daa"}.mdi-badminton:before{content:"\f0851"}.mdi-bag-carry-on:before{content:"\f0f3b"}.mdi-bag-carry-on-check:before{content:"\f0d65"}.mdi-bag-carry-on-off:before{content:"\f0f3c"}.mdi-bag-checked:before{content:"\f0f3d"}.mdi-bag-personal:before{content:"\f0e10"}.mdi-bag-personal-off:before{content:"\f0e11"}.mdi-bag-personal-off-outline:before{content:"\f0e12"}.mdi-bag-personal-outline:before{content:"\f0e13"}.mdi-bag-personal-plus:before{content:"\f1ca4"}.mdi-bag-personal-plus-outline:before{content:"\f1ca5"}.mdi-bag-personal-tag:before{content:"\f1b0c"}.mdi-bag-personal-tag-outline:before{content:"\f1b0d"}.mdi-bag-suitcase:before{content:"\f158b"}.mdi-bag-suitcase-off:before{content:"\f158d"}.mdi-bag-suitcase-off-outline:before{content:"\f158e"}.mdi-bag-suitcase-outline:before{content:"\f158c"}.mdi-baguette:before{content:"\f0f3e"}.mdi-balcony:before{content:"\f1817"}.mdi-balloon:before{content:"\f0a26"}.mdi-ballot:before{content:"\f09c9"}.mdi-ballot-outline:before{content:"\f09ca"}.mdi-ballot-recount:before{content:"\f0c39"}.mdi-ballot-recount-outline:before{content:"\f0c3a"}.mdi-bandage:before{content:"\f0daf"}.mdi-bank:before{content:"\f0070"}.mdi-bank-check:before{content:"\f1655"}.mdi-bank-circle:before{content:"\f1c03"}.mdi-bank-circle-outline:before{content:"\f1c04"}.mdi-bank-minus:before{content:"\f0db0"}.mdi-bank-off:before{content:"\f1656"}.mdi-bank-off-outline:before{content:"\f1657"}.mdi-bank-outline:before{content:"\f0e80"}.mdi-bank-plus:before{content:"\f0db1"}.mdi-bank-remove:before{content:"\f0db2"}.mdi-bank-transfer:before{content:"\f0a27"}.mdi-bank-transfer-in:before{content:"\f0a28"}.mdi-bank-transfer-out:before{content:"\f0a29"}.mdi-barcode:before{content:"\f0071"}.mdi-barcode-off:before{content:"\f1236"}.mdi-barcode-scan:before{content:"\f0072"}.mdi-barley:before{content:"\f0073"}.mdi-barley-off:before{content:"\f0b5d"}.mdi-barn:before{content:"\f0b5e"}.mdi-barrel:before{content:"\f0074"}.mdi-barrel-outline:before{content:"\f1a28"}.mdi-baseball:before{content:"\f0852"}.mdi-baseball-bat:before{content:"\f0853"}.mdi-baseball-diamond:before{content:"\f15ec"}.mdi-baseball-diamond-outline:before{content:"\f15ed"}.mdi-baseball-outline:before{content:"\f1c5a"}.mdi-bash:before{content:"\f1183"}.mdi-basket:before{content:"\f0076"}.mdi-basket-check:before{content:"\f18e5"}.mdi-basket-check-outline:before{content:"\f18e6"}.mdi-basket-fill:before{content:"\f0077"}.mdi-basket-minus:before{content:"\f1523"}.mdi-basket-minus-outline:before{content:"\f1524"}.mdi-basket-off:before{content:"\f1525"}.mdi-basket-off-outline:before{content:"\f1526"}.mdi-basket-outline:before{content:"\f1181"}.mdi-basket-plus:before{content:"\f1527"}.mdi-basket-plus-outline:before{content:"\f1528"}.mdi-basket-remove:before{content:"\f1529"}.mdi-basket-remove-outline:before{content:"\f152a"}.mdi-basket-unfill:before{content:"\f0078"}.mdi-basketball:before{content:"\f0806"}.mdi-basketball-hoop:before{content:"\f0c3b"}.mdi-basketball-hoop-outline:before{content:"\f0c3c"}.mdi-bat:before{content:"\f0b5f"}.mdi-bathtub:before{content:"\f1818"}.mdi-bathtub-outline:before{content:"\f1819"}.mdi-battery:before{content:"\f0079"}.mdi-battery-10:before{content:"\f007a"}.mdi-battery-10-bluetooth:before{content:"\f093e"}.mdi-battery-20:before{content:"\f007b"}.mdi-battery-20-bluetooth:before{content:"\f093f"}.mdi-battery-30:before{content:"\f007c"}.mdi-battery-30-bluetooth:before{content:"\f0940"}.mdi-battery-40:before{content:"\f007d"}.mdi-battery-40-bluetooth:before{content:"\f0941"}.mdi-battery-50:before{content:"\f007e"}.mdi-battery-50-bluetooth:before{content:"\f0942"}.mdi-battery-60:before{content:"\f007f"}.mdi-battery-60-bluetooth:before{content:"\f0943"}.mdi-battery-70:before{content:"\f0080"}.mdi-battery-70-bluetooth:before{content:"\f0944"}.mdi-battery-80:before{content:"\f0081"}.mdi-battery-80-bluetooth:before{content:"\f0945"}.mdi-battery-90:before{content:"\f0082"}.mdi-battery-90-bluetooth:before{content:"\f0946"}.mdi-battery-alert:before{content:"\f0083"}.mdi-battery-alert-bluetooth:before{content:"\f0947"}.mdi-battery-alert-variant:before{content:"\f10cc"}.mdi-battery-alert-variant-outline:before{content:"\f10cd"}.mdi-battery-arrow-down:before{content:"\f17de"}.mdi-battery-arrow-down-outline:before{content:"\f17df"}.mdi-battery-arrow-up:before{content:"\f17e0"}.mdi-battery-arrow-up-outline:before{content:"\f17e1"}.mdi-battery-bluetooth:before{content:"\f0948"}.mdi-battery-bluetooth-variant:before{content:"\f0949"}.mdi-battery-charging:before{content:"\f0084"}.mdi-battery-charging-10:before{content:"\f089c"}.mdi-battery-charging-100:before{content:"\f0085"}.mdi-battery-charging-20:before{content:"\f0086"}.mdi-battery-charging-30:before{content:"\f0087"}.mdi-battery-charging-40:before{content:"\f0088"}.mdi-battery-charging-50:before{content:"\f089d"}.mdi-battery-charging-60:before{content:"\f0089"}.mdi-battery-charging-70:before{content:"\f089e"}.mdi-battery-charging-80:before{content:"\f008a"}.mdi-battery-charging-90:before{content:"\f008b"}.mdi-battery-charging-high:before{content:"\f12a6"}.mdi-battery-charging-low:before{content:"\f12a4"}.mdi-battery-charging-medium:before{content:"\f12a5"}.mdi-battery-charging-outline:before{content:"\f089f"}.mdi-battery-charging-wireless:before{content:"\f0807"}.mdi-battery-charging-wireless-10:before{content:"\f0808"}.mdi-battery-charging-wireless-20:before{content:"\f0809"}.mdi-battery-charging-wireless-30:before{content:"\f080a"}.mdi-battery-charging-wireless-40:before{content:"\f080b"}.mdi-battery-charging-wireless-50:before{content:"\f080c"}.mdi-battery-charging-wireless-60:before{content:"\f080d"}.mdi-battery-charging-wireless-70:before{content:"\f080e"}.mdi-battery-charging-wireless-80:before{content:"\f080f"}.mdi-battery-charging-wireless-90:before{content:"\f0810"}.mdi-battery-charging-wireless-alert:before{content:"\f0811"}.mdi-battery-charging-wireless-outline:before{content:"\f0812"}.mdi-battery-check:before{content:"\f17e2"}.mdi-battery-check-outline:before{content:"\f17e3"}.mdi-battery-clock:before{content:"\f19e5"}.mdi-battery-clock-outline:before{content:"\f19e6"}.mdi-battery-heart:before{content:"\f120f"}.mdi-battery-heart-outline:before{content:"\f1210"}.mdi-battery-heart-variant:before{content:"\f1211"}.mdi-battery-high:before{content:"\f12a3"}.mdi-battery-lock:before{content:"\f179c"}.mdi-battery-lock-open:before{content:"\f179d"}.mdi-battery-low:before{content:"\f12a1"}.mdi-battery-medium:before{content:"\f12a2"}.mdi-battery-minus:before{content:"\f17e4"}.mdi-battery-minus-outline:before{content:"\f17e5"}.mdi-battery-minus-variant:before{content:"\f008c"}.mdi-battery-negative:before{content:"\f008d"}.mdi-battery-off:before{content:"\f125d"}.mdi-battery-off-outline:before{content:"\f125e"}.mdi-battery-outline:before{content:"\f008e"}.mdi-battery-plus:before{content:"\f17e6"}.mdi-battery-plus-outline:before{content:"\f17e7"}.mdi-battery-plus-variant:before{content:"\f008f"}.mdi-battery-positive:before{content:"\f0090"}.mdi-battery-remove:before{content:"\f17e8"}.mdi-battery-remove-outline:before{content:"\f17e9"}.mdi-battery-sync:before{content:"\f1834"}.mdi-battery-sync-outline:before{content:"\f1835"}.mdi-battery-unknown:before{content:"\f0091"}.mdi-battery-unknown-bluetooth:before{content:"\f094a"}.mdi-beach:before{content:"\f0092"}.mdi-beaker:before{content:"\f0cea"}.mdi-beaker-alert:before{content:"\f1229"}.mdi-beaker-alert-outline:before{content:"\f122a"}.mdi-beaker-check:before{content:"\f122b"}.mdi-beaker-check-outline:before{content:"\f122c"}.mdi-beaker-minus:before{content:"\f122d"}.mdi-beaker-minus-outline:before{content:"\f122e"}.mdi-beaker-outline:before{content:"\f0690"}.mdi-beaker-plus:before{content:"\f122f"}.mdi-beaker-plus-outline:before{content:"\f1230"}.mdi-beaker-question:before{content:"\f1231"}.mdi-beaker-question-outline:before{content:"\f1232"}.mdi-beaker-remove:before{content:"\f1233"}.mdi-beaker-remove-outline:before{content:"\f1234"}.mdi-bed:before{content:"\f02e3"}.mdi-bed-clock:before{content:"\f1b94"}.mdi-bed-double:before{content:"\f0fd4"}.mdi-bed-double-outline:before{content:"\f0fd3"}.mdi-bed-empty:before{content:"\f08a0"}.mdi-bed-king:before{content:"\f0fd2"}.mdi-bed-king-outline:before{content:"\f0fd1"}.mdi-bed-outline:before{content:"\f0099"}.mdi-bed-queen:before{content:"\f0fd0"}.mdi-bed-queen-outline:before{content:"\f0fdb"}.mdi-bed-single:before{content:"\f106d"}.mdi-bed-single-outline:before{content:"\f106e"}.mdi-bee:before{content:"\f0fa1"}.mdi-bee-flower:before{content:"\f0fa2"}.mdi-beehive-off-outline:before{content:"\f13ed"}.mdi-beehive-outline:before{content:"\f10ce"}.mdi-beekeeper:before{content:"\f14e2"}.mdi-beer:before{content:"\f0098"}.mdi-beer-outline:before{content:"\f130c"}.mdi-bell:before{content:"\f009a"}.mdi-bell-alert:before{content:"\f0d59"}.mdi-bell-alert-outline:before{content:"\f0e81"}.mdi-bell-badge:before{content:"\f116b"}.mdi-bell-badge-outline:before{content:"\f0178"}.mdi-bell-cancel:before{content:"\f13e7"}.mdi-bell-cancel-outline:before{content:"\f13e8"}.mdi-bell-check:before{content:"\f11e5"}.mdi-bell-check-outline:before{content:"\f11e6"}.mdi-bell-circle:before{content:"\f0d5a"}.mdi-bell-circle-outline:before{content:"\f0d5b"}.mdi-bell-cog:before{content:"\f1a29"}.mdi-bell-cog-outline:before{content:"\f1a2a"}.mdi-bell-minus:before{content:"\f13e9"}.mdi-bell-minus-outline:before{content:"\f13ea"}.mdi-bell-off:before{content:"\f009b"}.mdi-bell-off-outline:before{content:"\f0a91"}.mdi-bell-outline:before{content:"\f009c"}.mdi-bell-plus:before{content:"\f009d"}.mdi-bell-plus-outline:before{content:"\f0a92"}.mdi-bell-remove:before{content:"\f13eb"}.mdi-bell-remove-outline:before{content:"\f13ec"}.mdi-bell-ring:before{content:"\f009e"}.mdi-bell-ring-outline:before{content:"\f009f"}.mdi-bell-sleep:before{content:"\f00a0"}.mdi-bell-sleep-outline:before{content:"\f0a93"}.mdi-bench:before{content:"\f1c21"}.mdi-bench-back:before{content:"\f1c22"}.mdi-beta:before{content:"\f00a1"}.mdi-betamax:before{content:"\f09cb"}.mdi-biathlon:before{content:"\f0e14"}.mdi-bicycle:before{content:"\f109c"}.mdi-bicycle-basket:before{content:"\f1235"}.mdi-bicycle-cargo:before{content:"\f189c"}.mdi-bicycle-electric:before{content:"\f15b4"}.mdi-bicycle-penny-farthing:before{content:"\f15e9"}.mdi-bike:before{content:"\f00a3"}.mdi-bike-fast:before{content:"\f111f"}.mdi-bike-pedal:before{content:"\f1c23"}.mdi-bike-pedal-clipless:before{content:"\f1c24"}.mdi-bike-pedal-mountain:before{content:"\f1c25"}.mdi-billboard:before{content:"\f1010"}.mdi-billiards:before{content:"\f0b61"}.mdi-billiards-rack:before{content:"\f0b62"}.mdi-binoculars:before{content:"\f00a5"}.mdi-bio:before{content:"\f00a6"}.mdi-biohazard:before{content:"\f00a7"}.mdi-bird:before{content:"\f15c6"}.mdi-bitbucket:before{content:"\f00a8"}.mdi-bitcoin:before{content:"\f0813"}.mdi-black-mesa:before{content:"\f00a9"}.mdi-blender:before{content:"\f0ceb"}.mdi-blender-outline:before{content:"\f181a"}.mdi-blender-software:before{content:"\f00ab"}.mdi-blinds:before{content:"\f00ac"}.mdi-blinds-horizontal:before{content:"\f1a2b"}.mdi-blinds-horizontal-closed:before{content:"\f1a2c"}.mdi-blinds-open:before{content:"\f1011"}.mdi-blinds-vertical:before{content:"\f1a2d"}.mdi-blinds-vertical-closed:before{content:"\f1a2e"}.mdi-block-helper:before{content:"\f00ad"}.mdi-blood-bag:before{content:"\f0cec"}.mdi-bluetooth:before{content:"\f00af"}.mdi-bluetooth-audio:before{content:"\f00b0"}.mdi-bluetooth-connect:before{content:"\f00b1"}.mdi-bluetooth-off:before{content:"\f00b2"}.mdi-bluetooth-settings:before{content:"\f00b3"}.mdi-bluetooth-transfer:before{content:"\f00b4"}.mdi-blur:before{content:"\f00b5"}.mdi-blur-linear:before{content:"\f00b6"}.mdi-blur-off:before{content:"\f00b7"}.mdi-blur-radial:before{content:"\f00b8"}.mdi-bolt:before{content:"\f0db3"}.mdi-bomb:before{content:"\f0691"}.mdi-bomb-off:before{content:"\f06c5"}.mdi-bone:before{content:"\f00b9"}.mdi-bone-off:before{content:"\f19e0"}.mdi-book:before{content:"\f00ba"}.mdi-book-account:before{content:"\f13ad"}.mdi-book-account-outline:before{content:"\f13ae"}.mdi-book-alert:before{content:"\f167c"}.mdi-book-alert-outline:before{content:"\f167d"}.mdi-book-alphabet:before{content:"\f061d"}.mdi-book-arrow-down:before{content:"\f167e"}.mdi-book-arrow-down-outline:before{content:"\f167f"}.mdi-book-arrow-left:before{content:"\f1680"}.mdi-book-arrow-left-outline:before{content:"\f1681"}.mdi-book-arrow-right:before{content:"\f1682"}.mdi-book-arrow-right-outline:before{content:"\f1683"}.mdi-book-arrow-up:before{content:"\f1684"}.mdi-book-arrow-up-outline:before{content:"\f1685"}.mdi-book-cancel:before{content:"\f1686"}.mdi-book-cancel-outline:before{content:"\f1687"}.mdi-book-check:before{content:"\f14f3"}.mdi-book-check-outline:before{content:"\f14f4"}.mdi-book-clock:before{content:"\f1688"}.mdi-book-clock-outline:before{content:"\f1689"}.mdi-book-cog:before{content:"\f168a"}.mdi-book-cog-outline:before{content:"\f168b"}.mdi-book-cross:before{content:"\f00a2"}.mdi-book-edit:before{content:"\f168c"}.mdi-book-edit-outline:before{content:"\f168d"}.mdi-book-education:before{content:"\f16c9"}.mdi-book-education-outline:before{content:"\f16ca"}.mdi-book-heart:before{content:"\f1a1d"}.mdi-book-heart-outline:before{content:"\f1a1e"}.mdi-book-information-variant:before{content:"\f106f"}.mdi-book-lock:before{content:"\f079a"}.mdi-book-lock-open:before{content:"\f079b"}.mdi-book-lock-open-outline:before{content:"\f168e"}.mdi-book-lock-outline:before{content:"\f168f"}.mdi-book-marker:before{content:"\f1690"}.mdi-book-marker-outline:before{content:"\f1691"}.mdi-book-minus:before{content:"\f05d9"}.mdi-book-minus-multiple:before{content:"\f0a94"}.mdi-book-minus-multiple-outline:before{content:"\f090b"}.mdi-book-minus-outline:before{content:"\f1692"}.mdi-book-multiple:before{content:"\f00bb"}.mdi-book-multiple-outline:before{content:"\f0436"}.mdi-book-music:before{content:"\f0067"}.mdi-book-music-outline:before{content:"\f1693"}.mdi-book-off:before{content:"\f1694"}.mdi-book-off-outline:before{content:"\f1695"}.mdi-book-open:before{content:"\f00bd"}.mdi-book-open-blank-variant:before{content:"\f00be"}.mdi-book-open-blank-variant-outline:before{content:"\f1ccb"}.mdi-book-open-outline:before{content:"\f0b63"}.mdi-book-open-page-variant:before{content:"\f05da"}.mdi-book-open-page-variant-outline:before{content:"\f15d6"}.mdi-book-open-variant:before{content:"\f14f7"}.mdi-book-open-variant-outline:before{content:"\f1ccc"}.mdi-book-outline:before{content:"\f0b64"}.mdi-book-play:before{content:"\f0e82"}.mdi-book-play-outline:before{content:"\f0e83"}.mdi-book-plus:before{content:"\f05db"}.mdi-book-plus-multiple:before{content:"\f0a95"}.mdi-book-plus-multiple-outline:before{content:"\f0ade"}.mdi-book-plus-outline:before{content:"\f1696"}.mdi-book-refresh:before{content:"\f1697"}.mdi-book-refresh-outline:before{content:"\f1698"}.mdi-book-remove:before{content:"\f0a97"}.mdi-book-remove-multiple:before{content:"\f0a96"}.mdi-book-remove-multiple-outline:before{content:"\f04ca"}.mdi-book-remove-outline:before{content:"\f1699"}.mdi-book-search:before{content:"\f0e84"}.mdi-book-search-outline:before{content:"\f0e85"}.mdi-book-settings:before{content:"\f169a"}.mdi-book-settings-outline:before{content:"\f169b"}.mdi-book-sync:before{content:"\f169c"}.mdi-book-sync-outline:before{content:"\f16c8"}.mdi-book-variant:before{content:"\f00bf"}.mdi-bookmark:before{content:"\f00c0"}.mdi-bookmark-box:before{content:"\f1b75"}.mdi-bookmark-box-multiple:before{content:"\f196c"}.mdi-bookmark-box-multiple-outline:before{content:"\f196d"}.mdi-bookmark-box-outline:before{content:"\f1b76"}.mdi-bookmark-check:before{content:"\f00c1"}.mdi-bookmark-check-outline:before{content:"\f137b"}.mdi-bookmark-minus:before{content:"\f09cc"}.mdi-bookmark-minus-outline:before{content:"\f09cd"}.mdi-bookmark-multiple:before{content:"\f0e15"}.mdi-bookmark-multiple-outline:before{content:"\f0e16"}.mdi-bookmark-music:before{content:"\f00c2"}.mdi-bookmark-music-outline:before{content:"\f1379"}.mdi-bookmark-off:before{content:"\f09ce"}.mdi-bookmark-off-outline:before{content:"\f09cf"}.mdi-bookmark-outline:before{content:"\f00c3"}.mdi-bookmark-plus:before{content:"\f00c5"}.mdi-bookmark-plus-outline:before{content:"\f00c4"}.mdi-bookmark-remove:before{content:"\f00c6"}.mdi-bookmark-remove-outline:before{content:"\f137a"}.mdi-bookshelf:before{content:"\f125f"}.mdi-boom-gate:before{content:"\f0e86"}.mdi-boom-gate-alert:before{content:"\f0e87"}.mdi-boom-gate-alert-outline:before{content:"\f0e88"}.mdi-boom-gate-arrow-down:before{content:"\f0e89"}.mdi-boom-gate-arrow-down-outline:before{content:"\f0e8a"}.mdi-boom-gate-arrow-up:before{content:"\f0e8c"}.mdi-boom-gate-arrow-up-outline:before{content:"\f0e8d"}.mdi-boom-gate-outline:before{content:"\f0e8b"}.mdi-boom-gate-up:before{content:"\f17f9"}.mdi-boom-gate-up-outline:before{content:"\f17fa"}.mdi-boombox:before{content:"\f05dc"}.mdi-boomerang:before{content:"\f10cf"}.mdi-bootstrap:before{content:"\f06c6"}.mdi-border-all:before{content:"\f00c7"}.mdi-border-all-variant:before{content:"\f08a1"}.mdi-border-bottom:before{content:"\f00c8"}.mdi-border-bottom-variant:before{content:"\f08a2"}.mdi-border-color:before{content:"\f00c9"}.mdi-border-horizontal:before{content:"\f00ca"}.mdi-border-inside:before{content:"\f00cb"}.mdi-border-left:before{content:"\f00cc"}.mdi-border-left-variant:before{content:"\f08a3"}.mdi-border-none:before{content:"\f00cd"}.mdi-border-none-variant:before{content:"\f08a4"}.mdi-border-outside:before{content:"\f00ce"}.mdi-border-radius:before{content:"\f1af4"}.mdi-border-right:before{content:"\f00cf"}.mdi-border-right-variant:before{content:"\f08a5"}.mdi-border-style:before{content:"\f00d0"}.mdi-border-top:before{content:"\f00d1"}.mdi-border-top-variant:before{content:"\f08a6"}.mdi-border-vertical:before{content:"\f00d2"}.mdi-bottle-soda:before{content:"\f1070"}.mdi-bottle-soda-classic:before{content:"\f1071"}.mdi-bottle-soda-classic-outline:before{content:"\f1363"}.mdi-bottle-soda-outline:before{content:"\f1072"}.mdi-bottle-tonic:before{content:"\f112e"}.mdi-bottle-tonic-outline:before{content:"\f112f"}.mdi-bottle-tonic-plus:before{content:"\f1130"}.mdi-bottle-tonic-plus-outline:before{content:"\f1131"}.mdi-bottle-tonic-skull:before{content:"\f1132"}.mdi-bottle-tonic-skull-outline:before{content:"\f1133"}.mdi-bottle-wine:before{content:"\f0854"}.mdi-bottle-wine-outline:before{content:"\f1310"}.mdi-bow-arrow:before{content:"\f1841"}.mdi-bow-tie:before{content:"\f0678"}.mdi-bowl:before{content:"\f028e"}.mdi-bowl-mix:before{content:"\f0617"}.mdi-bowl-mix-outline:before{content:"\f02e4"}.mdi-bowl-outline:before{content:"\f02a9"}.mdi-bowling:before{content:"\f00d3"}.mdi-box:before{content:"\f00d4"}.mdi-box-cutter:before{content:"\f00d5"}.mdi-box-cutter-off:before{content:"\f0b4a"}.mdi-box-shadow:before{content:"\f0637"}.mdi-boxing-glove:before{content:"\f0b65"}.mdi-braille:before{content:"\f09d0"}.mdi-brain:before{content:"\f09d1"}.mdi-bread-slice:before{content:"\f0cee"}.mdi-bread-slice-outline:before{content:"\f0cef"}.mdi-bridge:before{content:"\f0618"}.mdi-briefcase:before{content:"\f00d6"}.mdi-briefcase-account:before{content:"\f0cf0"}.mdi-briefcase-account-outline:before{content:"\f0cf1"}.mdi-briefcase-arrow-left-right:before{content:"\f1a8d"}.mdi-briefcase-arrow-left-right-outline:before{content:"\f1a8e"}.mdi-briefcase-arrow-up-down:before{content:"\f1a8f"}.mdi-briefcase-arrow-up-down-outline:before{content:"\f1a90"}.mdi-briefcase-check:before{content:"\f00d7"}.mdi-briefcase-check-outline:before{content:"\f131e"}.mdi-briefcase-clock:before{content:"\f10d0"}.mdi-briefcase-clock-outline:before{content:"\f10d1"}.mdi-briefcase-download:before{content:"\f00d8"}.mdi-briefcase-download-outline:before{content:"\f0c3d"}.mdi-briefcase-edit:before{content:"\f0a98"}.mdi-briefcase-edit-outline:before{content:"\f0c3e"}.mdi-briefcase-eye:before{content:"\f17d9"}.mdi-briefcase-eye-outline:before{content:"\f17da"}.mdi-briefcase-minus:before{content:"\f0a2a"}.mdi-briefcase-minus-outline:before{content:"\f0c3f"}.mdi-briefcase-off:before{content:"\f1658"}.mdi-briefcase-off-outline:before{content:"\f1659"}.mdi-briefcase-outline:before{content:"\f0814"}.mdi-briefcase-plus:before{content:"\f0a2b"}.mdi-briefcase-plus-outline:before{content:"\f0c40"}.mdi-briefcase-remove:before{content:"\f0a2c"}.mdi-briefcase-remove-outline:before{content:"\f0c41"}.mdi-briefcase-search:before{content:"\f0a2d"}.mdi-briefcase-search-outline:before{content:"\f0c42"}.mdi-briefcase-upload:before{content:"\f00d9"}.mdi-briefcase-upload-outline:before{content:"\f0c43"}.mdi-briefcase-variant:before{content:"\f1494"}.mdi-briefcase-variant-off:before{content:"\f165a"}.mdi-briefcase-variant-off-outline:before{content:"\f165b"}.mdi-briefcase-variant-outline:before{content:"\f1495"}.mdi-brightness-1:before{content:"\f00da"}.mdi-brightness-2:before{content:"\f00db"}.mdi-brightness-3:before{content:"\f00dc"}.mdi-brightness-4:before{content:"\f00dd"}.mdi-brightness-5:before{content:"\f00de"}.mdi-brightness-6:before{content:"\f00df"}.mdi-brightness-7:before{content:"\f00e0"}.mdi-brightness-auto:before{content:"\f00e1"}.mdi-brightness-percent:before{content:"\f0cf2"}.mdi-broadcast:before{content:"\f1720"}.mdi-broadcast-off:before{content:"\f1721"}.mdi-broom:before{content:"\f00e2"}.mdi-brush:before{content:"\f00e3"}.mdi-brush-off:before{content:"\f1771"}.mdi-brush-outline:before{content:"\f1a0d"}.mdi-brush-variant:before{content:"\f1813"}.mdi-bucket:before{content:"\f1415"}.mdi-bucket-outline:before{content:"\f1416"}.mdi-buffet:before{content:"\f0578"}.mdi-bug:before{content:"\f00e4"}.mdi-bug-check:before{content:"\f0a2e"}.mdi-bug-check-outline:before{content:"\f0a2f"}.mdi-bug-outline:before{content:"\f0a30"}.mdi-bug-pause:before{content:"\f1af5"}.mdi-bug-pause-outline:before{content:"\f1af6"}.mdi-bug-play:before{content:"\f1af7"}.mdi-bug-play-outline:before{content:"\f1af8"}.mdi-bug-stop:before{content:"\f1af9"}.mdi-bug-stop-outline:before{content:"\f1afa"}.mdi-bugle:before{content:"\f0db4"}.mdi-bulkhead-light:before{content:"\f1a2f"}.mdi-bulldozer:before{content:"\f0b22"}.mdi-bullet:before{content:"\f0cf3"}.mdi-bulletin-board:before{content:"\f00e5"}.mdi-bullhorn:before{content:"\f00e6"}.mdi-bullhorn-outline:before{content:"\f0b23"}.mdi-bullhorn-variant:before{content:"\f196e"}.mdi-bullhorn-variant-outline:before{content:"\f196f"}.mdi-bullseye:before{content:"\f05dd"}.mdi-bullseye-arrow:before{content:"\f08c9"}.mdi-bulma:before{content:"\f12e7"}.mdi-bunk-bed:before{content:"\f1302"}.mdi-bunk-bed-outline:before{content:"\f0097"}.mdi-bus:before{content:"\f00e7"}.mdi-bus-alert:before{content:"\f0a99"}.mdi-bus-articulated-end:before{content:"\f079c"}.mdi-bus-articulated-front:before{content:"\f079d"}.mdi-bus-clock:before{content:"\f08ca"}.mdi-bus-double-decker:before{content:"\f079e"}.mdi-bus-electric:before{content:"\f191d"}.mdi-bus-marker:before{content:"\f1212"}.mdi-bus-multiple:before{content:"\f0f3f"}.mdi-bus-school:before{content:"\f079f"}.mdi-bus-side:before{content:"\f07a0"}.mdi-bus-sign:before{content:"\f1cc1"}.mdi-bus-stop:before{content:"\f1012"}.mdi-bus-stop-covered:before{content:"\f1013"}.mdi-bus-stop-uncovered:before{content:"\f1014"}.mdi-bus-wrench:before{content:"\f1cc2"}.mdi-butterfly:before{content:"\f1589"}.mdi-butterfly-outline:before{content:"\f158a"}.mdi-button-cursor:before{content:"\f1b4f"}.mdi-button-pointer:before{content:"\f1b50"}.mdi-cabin-a-frame:before{content:"\f188c"}.mdi-cable-data:before{content:"\f1394"}.mdi-cached:before{content:"\f00e8"}.mdi-cactus:before{content:"\f0db5"}.mdi-cake:before{content:"\f00e9"}.mdi-cake-layered:before{content:"\f00ea"}.mdi-cake-variant:before{content:"\f00eb"}.mdi-cake-variant-outline:before{content:"\f17f0"}.mdi-calculator:before{content:"\f00ec"}.mdi-calculator-variant:before{content:"\f0a9a"}.mdi-calculator-variant-outline:before{content:"\f15a6"}.mdi-calendar:before{content:"\f00ed"}.mdi-calendar-account:before{content:"\f0ed7"}.mdi-calendar-account-outline:before{content:"\f0ed8"}.mdi-calendar-alert:before{content:"\f0a31"}.mdi-calendar-alert-outline:before{content:"\f1b62"}.mdi-calendar-arrow-left:before{content:"\f1134"}.mdi-calendar-arrow-right:before{content:"\f1135"}.mdi-calendar-badge:before{content:"\f1b9d"}.mdi-calendar-badge-outline:before{content:"\f1b9e"}.mdi-calendar-blank:before{content:"\f00ee"}.mdi-calendar-blank-multiple:before{content:"\f1073"}.mdi-calendar-blank-outline:before{content:"\f0b66"}.mdi-calendar-check:before{content:"\f00ef"}.mdi-calendar-check-outline:before{content:"\f0c44"}.mdi-calendar-clock:before{content:"\f00f0"}.mdi-calendar-clock-outline:before{content:"\f16e1"}.mdi-calendar-collapse-horizontal:before{content:"\f189d"}.mdi-calendar-collapse-horizontal-outline:before{content:"\f1b63"}.mdi-calendar-cursor:before{content:"\f157b"}.mdi-calendar-cursor-outline:before{content:"\f1b64"}.mdi-calendar-edit:before{content:"\f08a7"}.mdi-calendar-edit-outline:before{content:"\f1b65"}.mdi-calendar-end:before{content:"\f166c"}.mdi-calendar-end-outline:before{content:"\f1b66"}.mdi-calendar-expand-horizontal:before{content:"\f189e"}.mdi-calendar-expand-horizontal-outline:before{content:"\f1b67"}.mdi-calendar-export:before{content:"\f0b24"}.mdi-calendar-export-outline:before{content:"\f1b68"}.mdi-calendar-filter:before{content:"\f1a32"}.mdi-calendar-filter-outline:before{content:"\f1a33"}.mdi-calendar-heart:before{content:"\f09d2"}.mdi-calendar-heart-outline:before{content:"\f1b69"}.mdi-calendar-import:before{content:"\f0b25"}.mdi-calendar-import-outline:before{content:"\f1b6a"}.mdi-calendar-lock:before{content:"\f1641"}.mdi-calendar-lock-open:before{content:"\f1b5b"}.mdi-calendar-lock-open-outline:before{content:"\f1b5c"}.mdi-calendar-lock-outline:before{content:"\f1642"}.mdi-calendar-minus:before{content:"\f0d5c"}.mdi-calendar-minus-outline:before{content:"\f1b6b"}.mdi-calendar-month:before{content:"\f0e17"}.mdi-calendar-month-outline:before{content:"\f0e18"}.mdi-calendar-multiple:before{content:"\f00f1"}.mdi-calendar-multiple-check:before{content:"\f00f2"}.mdi-calendar-multiselect:before{content:"\f0a32"}.mdi-calendar-multiselect-outline:before{content:"\f1b55"}.mdi-calendar-outline:before{content:"\f0b67"}.mdi-calendar-plus:before{content:"\f00f3"}.mdi-calendar-plus-outline:before{content:"\f1b6c"}.mdi-calendar-question:before{content:"\f0692"}.mdi-calendar-question-outline:before{content:"\f1b6d"}.mdi-calendar-range:before{content:"\f0679"}.mdi-calendar-range-outline:before{content:"\f0b68"}.mdi-calendar-refresh:before{content:"\f01e1"}.mdi-calendar-refresh-outline:before{content:"\f0203"}.mdi-calendar-remove:before{content:"\f00f4"}.mdi-calendar-remove-outline:before{content:"\f0c45"}.mdi-calendar-search:before{content:"\f094c"}.mdi-calendar-search-outline:before{content:"\f1b6e"}.mdi-calendar-star:before{content:"\f09d3"}.mdi-calendar-star-four-points:before{content:"\f1c1f"}.mdi-calendar-star-outline:before{content:"\f1b53"}.mdi-calendar-start:before{content:"\f166d"}.mdi-calendar-start-outline:before{content:"\f1b6f"}.mdi-calendar-sync:before{content:"\f0e8e"}.mdi-calendar-sync-outline:before{content:"\f0e8f"}.mdi-calendar-text:before{content:"\f00f5"}.mdi-calendar-text-outline:before{content:"\f0c46"}.mdi-calendar-today:before{content:"\f00f6"}.mdi-calendar-today-outline:before{content:"\f1a30"}.mdi-calendar-week:before{content:"\f0a33"}.mdi-calendar-week-begin:before{content:"\f0a34"}.mdi-calendar-week-begin-outline:before{content:"\f1a31"}.mdi-calendar-week-outline:before{content:"\f1a34"}.mdi-calendar-weekend:before{content:"\f0ed9"}.mdi-calendar-weekend-outline:before{content:"\f0eda"}.mdi-call-made:before{content:"\f00f7"}.mdi-call-merge:before{content:"\f00f8"}.mdi-call-missed:before{content:"\f00f9"}.mdi-call-received:before{content:"\f00fa"}.mdi-call-split:before{content:"\f00fb"}.mdi-camcorder:before{content:"\f00fc"}.mdi-camcorder-off:before{content:"\f00ff"}.mdi-camera:before{content:"\f0100"}.mdi-camera-account:before{content:"\f08cb"}.mdi-camera-burst:before{content:"\f0693"}.mdi-camera-control:before{content:"\f0b69"}.mdi-camera-document:before{content:"\f1871"}.mdi-camera-document-off:before{content:"\f1872"}.mdi-camera-enhance:before{content:"\f0101"}.mdi-camera-enhance-outline:before{content:"\f0b6a"}.mdi-camera-flip:before{content:"\f15d9"}.mdi-camera-flip-outline:before{content:"\f15da"}.mdi-camera-front:before{content:"\f0102"}.mdi-camera-front-variant:before{content:"\f0103"}.mdi-camera-gopro:before{content:"\f07a1"}.mdi-camera-image:before{content:"\f08cc"}.mdi-camera-iris:before{content:"\f0104"}.mdi-camera-lock:before{content:"\f1a14"}.mdi-camera-lock-open:before{content:"\f1c0d"}.mdi-camera-lock-open-outline:before{content:"\f1c0e"}.mdi-camera-lock-outline:before{content:"\f1a15"}.mdi-camera-marker:before{content:"\f19a7"}.mdi-camera-marker-outline:before{content:"\f19a8"}.mdi-camera-metering-center:before{content:"\f07a2"}.mdi-camera-metering-matrix:before{content:"\f07a3"}.mdi-camera-metering-partial:before{content:"\f07a4"}.mdi-camera-metering-spot:before{content:"\f07a5"}.mdi-camera-off:before{content:"\f05df"}.mdi-camera-off-outline:before{content:"\f19bf"}.mdi-camera-outline:before{content:"\f0d5d"}.mdi-camera-party-mode:before{content:"\f0105"}.mdi-camera-plus:before{content:"\f0edb"}.mdi-camera-plus-outline:before{content:"\f0edc"}.mdi-camera-rear:before{content:"\f0106"}.mdi-camera-rear-variant:before{content:"\f0107"}.mdi-camera-retake:before{content:"\f0e19"}.mdi-camera-retake-outline:before{content:"\f0e1a"}.mdi-camera-switch:before{content:"\f0108"}.mdi-camera-switch-outline:before{content:"\f084a"}.mdi-camera-timer:before{content:"\f0109"}.mdi-camera-wireless:before{content:"\f0db6"}.mdi-camera-wireless-outline:before{content:"\f0db7"}.mdi-campfire:before{content:"\f0edd"}.mdi-cancel:before{content:"\f073a"}.mdi-candelabra:before{content:"\f17d2"}.mdi-candelabra-fire:before{content:"\f17d3"}.mdi-candle:before{content:"\f05e2"}.mdi-candy:before{content:"\f1970"}.mdi-candy-off:before{content:"\f1971"}.mdi-candy-off-outline:before{content:"\f1972"}.mdi-candy-outline:before{content:"\f1973"}.mdi-candycane:before{content:"\f010a"}.mdi-cannabis:before{content:"\f07a6"}.mdi-cannabis-off:before{content:"\f166e"}.mdi-caps-lock:before{content:"\f0a9b"}.mdi-car:before{content:"\f010b"}.mdi-car-2-plus:before{content:"\f1015"}.mdi-car-3-plus:before{content:"\f1016"}.mdi-car-arrow-left:before{content:"\f13b2"}.mdi-car-arrow-right:before{content:"\f13b3"}.mdi-car-back:before{content:"\f0e1b"}.mdi-car-battery:before{content:"\f010c"}.mdi-car-brake-abs:before{content:"\f0c47"}.mdi-car-brake-alert:before{content:"\f0c48"}.mdi-car-brake-fluid-level:before{content:"\f1909"}.mdi-car-brake-hold:before{content:"\f0d5e"}.mdi-car-brake-low-pressure:before{content:"\f190a"}.mdi-car-brake-parking:before{content:"\f0d5f"}.mdi-car-brake-retarder:before{content:"\f1017"}.mdi-car-brake-temperature:before{content:"\f190b"}.mdi-car-brake-worn-linings:before{content:"\f190c"}.mdi-car-child-seat:before{content:"\f0fa3"}.mdi-car-clock:before{content:"\f1974"}.mdi-car-clutch:before{content:"\f1018"}.mdi-car-cog:before{content:"\f13cc"}.mdi-car-connected:before{content:"\f010d"}.mdi-car-convertible:before{content:"\f07a7"}.mdi-car-coolant-level:before{content:"\f1019"}.mdi-car-cruise-control:before{content:"\f0d60"}.mdi-car-defrost-front:before{content:"\f0d61"}.mdi-car-defrost-rear:before{content:"\f0d62"}.mdi-car-door:before{content:"\f0b6b"}.mdi-car-door-lock:before{content:"\f109d"}.mdi-car-door-lock-open:before{content:"\f1c81"}.mdi-car-electric:before{content:"\f0b6c"}.mdi-car-electric-outline:before{content:"\f15b5"}.mdi-car-emergency:before{content:"\f160f"}.mdi-car-esp:before{content:"\f0c49"}.mdi-car-estate:before{content:"\f07a8"}.mdi-car-hatchback:before{content:"\f07a9"}.mdi-car-info:before{content:"\f11be"}.mdi-car-key:before{content:"\f0b6d"}.mdi-car-lifted-pickup:before{content:"\f152d"}.mdi-car-light-alert:before{content:"\f190d"}.mdi-car-light-dimmed:before{content:"\f0c4a"}.mdi-car-light-fog:before{content:"\f0c4b"}.mdi-car-light-high:before{content:"\f0c4c"}.mdi-car-limousine:before{content:"\f08cd"}.mdi-car-multiple:before{content:"\f0b6e"}.mdi-car-off:before{content:"\f0e1c"}.mdi-car-outline:before{content:"\f14ed"}.mdi-car-parking-lights:before{content:"\f0d63"}.mdi-car-pickup:before{content:"\f07aa"}.mdi-car-search:before{content:"\f1b8d"}.mdi-car-search-outline:before{content:"\f1b8e"}.mdi-car-seat:before{content:"\f0fa4"}.mdi-car-seat-cooler:before{content:"\f0fa5"}.mdi-car-seat-heater:before{content:"\f0fa6"}.mdi-car-select:before{content:"\f1879"}.mdi-car-settings:before{content:"\f13cd"}.mdi-car-shift-pattern:before{content:"\f0f40"}.mdi-car-side:before{content:"\f07ab"}.mdi-car-speed-limiter:before{content:"\f190e"}.mdi-car-sports:before{content:"\f07ac"}.mdi-car-tire-alert:before{content:"\f0c4d"}.mdi-car-traction-control:before{content:"\f0d64"}.mdi-car-turbocharger:before{content:"\f101a"}.mdi-car-wash:before{content:"\f010e"}.mdi-car-windshield:before{content:"\f101b"}.mdi-car-windshield-outline:before{content:"\f101c"}.mdi-car-wireless:before{content:"\f1878"}.mdi-car-wrench:before{content:"\f1814"}.mdi-carabiner:before{content:"\f14c0"}.mdi-caravan:before{content:"\f07ad"}.mdi-card:before{content:"\f0b6f"}.mdi-card-account-details:before{content:"\f05d2"}.mdi-card-account-details-outline:before{content:"\f0dab"}.mdi-card-account-details-star:before{content:"\f02a3"}.mdi-card-account-details-star-outline:before{content:"\f06db"}.mdi-card-account-mail:before{content:"\f018e"}.mdi-card-account-mail-outline:before{content:"\f0e98"}.mdi-card-account-phone:before{content:"\f0e99"}.mdi-card-account-phone-outline:before{content:"\f0e9a"}.mdi-card-bulleted:before{content:"\f0b70"}.mdi-card-bulleted-off:before{content:"\f0b71"}.mdi-card-bulleted-off-outline:before{content:"\f0b72"}.mdi-card-bulleted-outline:before{content:"\f0b73"}.mdi-card-bulleted-settings:before{content:"\f0b74"}.mdi-card-bulleted-settings-outline:before{content:"\f0b75"}.mdi-card-minus:before{content:"\f1600"}.mdi-card-minus-outline:before{content:"\f1601"}.mdi-card-multiple:before{content:"\f17f1"}.mdi-card-multiple-outline:before{content:"\f17f2"}.mdi-card-off:before{content:"\f1602"}.mdi-card-off-outline:before{content:"\f1603"}.mdi-card-outline:before{content:"\f0b76"}.mdi-card-plus:before{content:"\f11ff"}.mdi-card-plus-outline:before{content:"\f1200"}.mdi-card-remove:before{content:"\f1604"}.mdi-card-remove-outline:before{content:"\f1605"}.mdi-card-search:before{content:"\f1074"}.mdi-card-search-outline:before{content:"\f1075"}.mdi-card-text:before{content:"\f0b77"}.mdi-card-text-outline:before{content:"\f0b78"}.mdi-cards:before{content:"\f0638"}.mdi-cards-club:before{content:"\f08ce"}.mdi-cards-club-outline:before{content:"\f189f"}.mdi-cards-diamond:before{content:"\f08cf"}.mdi-cards-diamond-outline:before{content:"\f101d"}.mdi-cards-heart:before{content:"\f08d0"}.mdi-cards-heart-outline:before{content:"\f18a0"}.mdi-cards-outline:before{content:"\f0639"}.mdi-cards-playing:before{content:"\f18a1"}.mdi-cards-playing-club:before{content:"\f18a2"}.mdi-cards-playing-club-multiple:before{content:"\f18a3"}.mdi-cards-playing-club-multiple-outline:before{content:"\f18a4"}.mdi-cards-playing-club-outline:before{content:"\f18a5"}.mdi-cards-playing-diamond:before{content:"\f18a6"}.mdi-cards-playing-diamond-multiple:before{content:"\f18a7"}.mdi-cards-playing-diamond-multiple-outline:before{content:"\f18a8"}.mdi-cards-playing-diamond-outline:before{content:"\f18a9"}.mdi-cards-playing-heart:before{content:"\f18aa"}.mdi-cards-playing-heart-multiple:before{content:"\f18ab"}.mdi-cards-playing-heart-multiple-outline:before{content:"\f18ac"}.mdi-cards-playing-heart-outline:before{content:"\f18ad"}.mdi-cards-playing-outline:before{content:"\f063a"}.mdi-cards-playing-spade:before{content:"\f18ae"}.mdi-cards-playing-spade-multiple:before{content:"\f18af"}.mdi-cards-playing-spade-multiple-outline:before{content:"\f18b0"}.mdi-cards-playing-spade-outline:before{content:"\f18b1"}.mdi-cards-spade:before{content:"\f08d1"}.mdi-cards-spade-outline:before{content:"\f18b2"}.mdi-cards-variant:before{content:"\f06c7"}.mdi-carrot:before{content:"\f010f"}.mdi-cart:before{content:"\f0110"}.mdi-cart-arrow-down:before{content:"\f0d66"}.mdi-cart-arrow-right:before{content:"\f0c4e"}.mdi-cart-arrow-up:before{content:"\f0d67"}.mdi-cart-check:before{content:"\f15ea"}.mdi-cart-heart:before{content:"\f18e0"}.mdi-cart-minus:before{content:"\f0d68"}.mdi-cart-off:before{content:"\f066b"}.mdi-cart-outline:before{content:"\f0111"}.mdi-cart-percent:before{content:"\f1bae"}.mdi-cart-plus:before{content:"\f0112"}.mdi-cart-remove:before{content:"\f0d69"}.mdi-cart-variant:before{content:"\f15eb"}.mdi-case-sensitive-alt:before{content:"\f0113"}.mdi-cash:before{content:"\f0114"}.mdi-cash-100:before{content:"\f0115"}.mdi-cash-check:before{content:"\f14ee"}.mdi-cash-clock:before{content:"\f1a91"}.mdi-cash-edit:before{content:"\f1cab"}.mdi-cash-fast:before{content:"\f185c"}.mdi-cash-lock:before{content:"\f14ea"}.mdi-cash-lock-open:before{content:"\f14eb"}.mdi-cash-marker:before{content:"\f0db8"}.mdi-cash-minus:before{content:"\f1260"}.mdi-cash-multiple:before{content:"\f0116"}.mdi-cash-off:before{content:"\f1c79"}.mdi-cash-plus:before{content:"\f1261"}.mdi-cash-refund:before{content:"\f0a9c"}.mdi-cash-register:before{content:"\f0cf4"}.mdi-cash-remove:before{content:"\f1262"}.mdi-cash-sync:before{content:"\f1a92"}.mdi-cassette:before{content:"\f09d4"}.mdi-cast:before{content:"\f0118"}.mdi-cast-audio:before{content:"\f101e"}.mdi-cast-audio-variant:before{content:"\f1749"}.mdi-cast-connected:before{content:"\f0119"}.mdi-cast-education:before{content:"\f0e1d"}.mdi-cast-off:before{content:"\f078a"}.mdi-cast-variant:before{content:"\f001f"}.mdi-castle:before{content:"\f011a"}.mdi-cat:before{content:"\f011b"}.mdi-cctv:before{content:"\f07ae"}.mdi-cctv-off:before{content:"\f185f"}.mdi-ceiling-fan:before{content:"\f1797"}.mdi-ceiling-fan-light:before{content:"\f1798"}.mdi-ceiling-light:before{content:"\f0769"}.mdi-ceiling-light-multiple:before{content:"\f18dd"}.mdi-ceiling-light-multiple-outline:before{content:"\f18de"}.mdi-ceiling-light-outline:before{content:"\f17c7"}.mdi-cellphone:before{content:"\f011c"}.mdi-cellphone-arrow-down:before{content:"\f09d5"}.mdi-cellphone-arrow-down-variant:before{content:"\f19c5"}.mdi-cellphone-basic:before{content:"\f011e"}.mdi-cellphone-charging:before{content:"\f1397"}.mdi-cellphone-check:before{content:"\f17fd"}.mdi-cellphone-cog:before{content:"\f0951"}.mdi-cellphone-dock:before{content:"\f011f"}.mdi-cellphone-information:before{content:"\f0f41"}.mdi-cellphone-key:before{content:"\f094e"}.mdi-cellphone-link:before{content:"\f0121"}.mdi-cellphone-link-off:before{content:"\f0122"}.mdi-cellphone-lock:before{content:"\f094f"}.mdi-cellphone-marker:before{content:"\f183a"}.mdi-cellphone-message:before{content:"\f08d3"}.mdi-cellphone-message-off:before{content:"\f10d2"}.mdi-cellphone-nfc:before{content:"\f0e90"}.mdi-cellphone-nfc-off:before{content:"\f12d8"}.mdi-cellphone-off:before{content:"\f0950"}.mdi-cellphone-play:before{content:"\f101f"}.mdi-cellphone-remove:before{content:"\f094d"}.mdi-cellphone-screenshot:before{content:"\f0a35"}.mdi-cellphone-settings:before{content:"\f0123"}.mdi-cellphone-sound:before{content:"\f0952"}.mdi-cellphone-text:before{content:"\f08d2"}.mdi-cellphone-wireless:before{content:"\f0815"}.mdi-centos:before{content:"\f111a"}.mdi-certificate:before{content:"\f0124"}.mdi-certificate-outline:before{content:"\f1188"}.mdi-chair-rolling:before{content:"\f0f48"}.mdi-chair-school:before{content:"\f0125"}.mdi-chandelier:before{content:"\f1793"}.mdi-charity:before{content:"\f0c4f"}.mdi-charity-search:before{content:"\f1c82"}.mdi-chart-arc:before{content:"\f0126"}.mdi-chart-areaspline:before{content:"\f0127"}.mdi-chart-areaspline-variant:before{content:"\f0e91"}.mdi-chart-bar:before{content:"\f0128"}.mdi-chart-bar-stacked:before{content:"\f076a"}.mdi-chart-bell-curve:before{content:"\f0c50"}.mdi-chart-bell-curve-cumulative:before{content:"\f0fa7"}.mdi-chart-box:before{content:"\f154d"}.mdi-chart-box-multiple:before{content:"\f1ccd"}.mdi-chart-box-multiple-outline:before{content:"\f1cce"}.mdi-chart-box-outline:before{content:"\f154e"}.mdi-chart-box-plus-outline:before{content:"\f154f"}.mdi-chart-bubble:before{content:"\f05e3"}.mdi-chart-donut:before{content:"\f07af"}.mdi-chart-donut-variant:before{content:"\f07b0"}.mdi-chart-gantt:before{content:"\f066c"}.mdi-chart-histogram:before{content:"\f0129"}.mdi-chart-line:before{content:"\f012a"}.mdi-chart-line-stacked:before{content:"\f076b"}.mdi-chart-line-variant:before{content:"\f07b1"}.mdi-chart-multiline:before{content:"\f08d4"}.mdi-chart-multiple:before{content:"\f1213"}.mdi-chart-pie:before{content:"\f012b"}.mdi-chart-pie-outline:before{content:"\f1bdf"}.mdi-chart-ppf:before{content:"\f1380"}.mdi-chart-sankey:before{content:"\f11df"}.mdi-chart-sankey-variant:before{content:"\f11e0"}.mdi-chart-scatter-plot:before{content:"\f0e92"}.mdi-chart-scatter-plot-hexbin:before{content:"\f066d"}.mdi-chart-timeline:before{content:"\f066e"}.mdi-chart-timeline-variant:before{content:"\f0e93"}.mdi-chart-timeline-variant-shimmer:before{content:"\f15b6"}.mdi-chart-tree:before{content:"\f0e94"}.mdi-chart-waterfall:before{content:"\f1918"}.mdi-chat:before{content:"\f0b79"}.mdi-chat-alert:before{content:"\f0b7a"}.mdi-chat-alert-outline:before{content:"\f12c9"}.mdi-chat-minus:before{content:"\f1410"}.mdi-chat-minus-outline:before{content:"\f1413"}.mdi-chat-outline:before{content:"\f0ede"}.mdi-chat-plus:before{content:"\f140f"}.mdi-chat-plus-outline:before{content:"\f1412"}.mdi-chat-processing:before{content:"\f0b7b"}.mdi-chat-processing-outline:before{content:"\f12ca"}.mdi-chat-question:before{content:"\f1738"}.mdi-chat-question-outline:before{content:"\f1739"}.mdi-chat-remove:before{content:"\f1411"}.mdi-chat-remove-outline:before{content:"\f1414"}.mdi-chat-sleep:before{content:"\f12d1"}.mdi-chat-sleep-outline:before{content:"\f12d2"}.mdi-check:before{content:"\f012c"}.mdi-check-all:before{content:"\f012d"}.mdi-check-bold:before{content:"\f0e1e"}.mdi-check-circle:before{content:"\f05e0"}.mdi-check-circle-outline:before{content:"\f05e1"}.mdi-check-decagram:before{content:"\f0791"}.mdi-check-decagram-outline:before{content:"\f1740"}.mdi-check-network:before{content:"\f0c53"}.mdi-check-network-outline:before{content:"\f0c54"}.mdi-check-outline:before{content:"\f0855"}.mdi-check-underline:before{content:"\f0e1f"}.mdi-check-underline-circle:before{content:"\f0e20"}.mdi-check-underline-circle-outline:before{content:"\f0e21"}.mdi-checkbook:before{content:"\f0a9d"}.mdi-checkbook-arrow-left:before{content:"\f1c1d"}.mdi-checkbook-arrow-right:before{content:"\f1c1e"}.mdi-checkbox-blank:before{content:"\f012e"}.mdi-checkbox-blank-badge:before{content:"\f1176"}.mdi-checkbox-blank-badge-outline:before{content:"\f0117"}.mdi-checkbox-blank-circle:before{content:"\f012f"}.mdi-checkbox-blank-circle-outline:before{content:"\f0130"}.mdi-checkbox-blank-off:before{content:"\f12ec"}.mdi-checkbox-blank-off-outline:before{content:"\f12ed"}.mdi-checkbox-blank-outline:before{content:"\f0131"}.mdi-checkbox-intermediate:before{content:"\f0856"}.mdi-checkbox-intermediate-variant:before{content:"\f1b54"}.mdi-checkbox-marked:before{content:"\f0132"}.mdi-checkbox-marked-circle:before{content:"\f0133"}.mdi-checkbox-marked-circle-auto-outline:before{content:"\f1c26"}.mdi-checkbox-marked-circle-minus-outline:before{content:"\f1c27"}.mdi-checkbox-marked-circle-outline:before{content:"\f0134"}.mdi-checkbox-marked-circle-plus-outline:before{content:"\f1927"}.mdi-checkbox-marked-outline:before{content:"\f0135"}.mdi-checkbox-multiple-blank:before{content:"\f0136"}.mdi-checkbox-multiple-blank-circle:before{content:"\f063b"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"\f063c"}.mdi-checkbox-multiple-blank-outline:before{content:"\f0137"}.mdi-checkbox-multiple-marked:before{content:"\f0138"}.mdi-checkbox-multiple-marked-circle:before{content:"\f063d"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"\f063e"}.mdi-checkbox-multiple-marked-outline:before{content:"\f0139"}.mdi-checkbox-multiple-outline:before{content:"\f0c51"}.mdi-checkbox-outline:before{content:"\f0c52"}.mdi-checkerboard:before{content:"\f013a"}.mdi-checkerboard-minus:before{content:"\f1202"}.mdi-checkerboard-plus:before{content:"\f1201"}.mdi-checkerboard-remove:before{content:"\f1203"}.mdi-cheese:before{content:"\f12b9"}.mdi-cheese-off:before{content:"\f13ee"}.mdi-chef-hat:before{content:"\f0b7c"}.mdi-chemical-weapon:before{content:"\f013b"}.mdi-chess-bishop:before{content:"\f085c"}.mdi-chess-king:before{content:"\f0857"}.mdi-chess-knight:before{content:"\f0858"}.mdi-chess-pawn:before{content:"\f0859"}.mdi-chess-queen:before{content:"\f085a"}.mdi-chess-rook:before{content:"\f085b"}.mdi-chevron-double-down:before{content:"\f013c"}.mdi-chevron-double-left:before{content:"\f013d"}.mdi-chevron-double-right:before{content:"\f013e"}.mdi-chevron-double-up:before{content:"\f013f"}.mdi-chevron-down:before{content:"\f0140"}.mdi-chevron-down-box:before{content:"\f09d6"}.mdi-chevron-down-box-outline:before{content:"\f09d7"}.mdi-chevron-down-circle:before{content:"\f0b26"}.mdi-chevron-down-circle-outline:before{content:"\f0b27"}.mdi-chevron-left:before{content:"\f0141"}.mdi-chevron-left-box:before{content:"\f09d8"}.mdi-chevron-left-box-outline:before{content:"\f09d9"}.mdi-chevron-left-circle:before{content:"\f0b28"}.mdi-chevron-left-circle-outline:before{content:"\f0b29"}.mdi-chevron-right:before{content:"\f0142"}.mdi-chevron-right-box:before{content:"\f09da"}.mdi-chevron-right-box-outline:before{content:"\f09db"}.mdi-chevron-right-circle:before{content:"\f0b2a"}.mdi-chevron-right-circle-outline:before{content:"\f0b2b"}.mdi-chevron-triple-down:before{content:"\f0db9"}.mdi-chevron-triple-left:before{content:"\f0dba"}.mdi-chevron-triple-right:before{content:"\f0dbb"}.mdi-chevron-triple-up:before{content:"\f0dbc"}.mdi-chevron-up:before{content:"\f0143"}.mdi-chevron-up-box:before{content:"\f09dc"}.mdi-chevron-up-box-outline:before{content:"\f09dd"}.mdi-chevron-up-circle:before{content:"\f0b2c"}.mdi-chevron-up-circle-outline:before{content:"\f0b2d"}.mdi-chili-alert:before{content:"\f17ea"}.mdi-chili-alert-outline:before{content:"\f17eb"}.mdi-chili-hot:before{content:"\f07b2"}.mdi-chili-hot-outline:before{content:"\f17ec"}.mdi-chili-medium:before{content:"\f07b3"}.mdi-chili-medium-outline:before{content:"\f17ed"}.mdi-chili-mild:before{content:"\f07b4"}.mdi-chili-mild-outline:before{content:"\f17ee"}.mdi-chili-off:before{content:"\f1467"}.mdi-chili-off-outline:before{content:"\f17ef"}.mdi-chip:before{content:"\f061a"}.mdi-church:before{content:"\f0144"}.mdi-church-outline:before{content:"\f1b02"}.mdi-cigar:before{content:"\f1189"}.mdi-cigar-off:before{content:"\f141b"}.mdi-circle:before{content:"\f0765"}.mdi-circle-box:before{content:"\f15dc"}.mdi-circle-box-outline:before{content:"\f15dd"}.mdi-circle-double:before{content:"\f0e95"}.mdi-circle-edit-outline:before{content:"\f08d5"}.mdi-circle-expand:before{content:"\f0e96"}.mdi-circle-half:before{content:"\f1395"}.mdi-circle-half-full:before{content:"\f1396"}.mdi-circle-medium:before{content:"\f09de"}.mdi-circle-multiple:before{content:"\f0b38"}.mdi-circle-multiple-outline:before{content:"\f0695"}.mdi-circle-off-outline:before{content:"\f10d3"}.mdi-circle-opacity:before{content:"\f1853"}.mdi-circle-outline:before{content:"\f0766"}.mdi-circle-slice-1:before{content:"\f0a9e"}.mdi-circle-slice-2:before{content:"\f0a9f"}.mdi-circle-slice-3:before{content:"\f0aa0"}.mdi-circle-slice-4:before{content:"\f0aa1"}.mdi-circle-slice-5:before{content:"\f0aa2"}.mdi-circle-slice-6:before{content:"\f0aa3"}.mdi-circle-slice-7:before{content:"\f0aa4"}.mdi-circle-slice-8:before{content:"\f0aa5"}.mdi-circle-small:before{content:"\f09df"}.mdi-circular-saw:before{content:"\f0e22"}.mdi-city:before{content:"\f0146"}.mdi-city-switch:before{content:"\f1c28"}.mdi-city-variant:before{content:"\f0a36"}.mdi-city-variant-outline:before{content:"\f0a37"}.mdi-clipboard:before{content:"\f0147"}.mdi-clipboard-account:before{content:"\f0148"}.mdi-clipboard-account-outline:before{content:"\f0c55"}.mdi-clipboard-alert:before{content:"\f0149"}.mdi-clipboard-alert-outline:before{content:"\f0cf7"}.mdi-clipboard-arrow-down:before{content:"\f014a"}.mdi-clipboard-arrow-down-outline:before{content:"\f0c56"}.mdi-clipboard-arrow-left:before{content:"\f014b"}.mdi-clipboard-arrow-left-outline:before{content:"\f0cf8"}.mdi-clipboard-arrow-right:before{content:"\f0cf9"}.mdi-clipboard-arrow-right-outline:before{content:"\f0cfa"}.mdi-clipboard-arrow-up:before{content:"\f0c57"}.mdi-clipboard-arrow-up-outline:before{content:"\f0c58"}.mdi-clipboard-check:before{content:"\f014e"}.mdi-clipboard-check-multiple:before{content:"\f1263"}.mdi-clipboard-check-multiple-outline:before{content:"\f1264"}.mdi-clipboard-check-outline:before{content:"\f08a8"}.mdi-clipboard-clock:before{content:"\f16e2"}.mdi-clipboard-clock-outline:before{content:"\f16e3"}.mdi-clipboard-edit:before{content:"\f14e5"}.mdi-clipboard-edit-outline:before{content:"\f14e6"}.mdi-clipboard-file:before{content:"\f1265"}.mdi-clipboard-file-outline:before{content:"\f1266"}.mdi-clipboard-flow:before{content:"\f06c8"}.mdi-clipboard-flow-outline:before{content:"\f1117"}.mdi-clipboard-list:before{content:"\f10d4"}.mdi-clipboard-list-outline:before{content:"\f10d5"}.mdi-clipboard-minus:before{content:"\f1618"}.mdi-clipboard-minus-outline:before{content:"\f1619"}.mdi-clipboard-multiple:before{content:"\f1267"}.mdi-clipboard-multiple-outline:before{content:"\f1268"}.mdi-clipboard-off:before{content:"\f161a"}.mdi-clipboard-off-outline:before{content:"\f161b"}.mdi-clipboard-outline:before{content:"\f014c"}.mdi-clipboard-play:before{content:"\f0c59"}.mdi-clipboard-play-multiple:before{content:"\f1269"}.mdi-clipboard-play-multiple-outline:before{content:"\f126a"}.mdi-clipboard-play-outline:before{content:"\f0c5a"}.mdi-clipboard-plus:before{content:"\f0751"}.mdi-clipboard-plus-outline:before{content:"\f131f"}.mdi-clipboard-pulse:before{content:"\f085d"}.mdi-clipboard-pulse-outline:before{content:"\f085e"}.mdi-clipboard-remove:before{content:"\f161c"}.mdi-clipboard-remove-outline:before{content:"\f161d"}.mdi-clipboard-search:before{content:"\f161e"}.mdi-clipboard-search-outline:before{content:"\f161f"}.mdi-clipboard-text:before{content:"\f014d"}.mdi-clipboard-text-clock:before{content:"\f18f9"}.mdi-clipboard-text-clock-outline:before{content:"\f18fa"}.mdi-clipboard-text-multiple:before{content:"\f126b"}.mdi-clipboard-text-multiple-outline:before{content:"\f126c"}.mdi-clipboard-text-off:before{content:"\f1620"}.mdi-clipboard-text-off-outline:before{content:"\f1621"}.mdi-clipboard-text-outline:before{content:"\f0a38"}.mdi-clipboard-text-play:before{content:"\f0c5b"}.mdi-clipboard-text-play-outline:before{content:"\f0c5c"}.mdi-clipboard-text-search:before{content:"\f1622"}.mdi-clipboard-text-search-outline:before{content:"\f1623"}.mdi-clippy:before{content:"\f014f"}.mdi-clock:before{content:"\f0954"}.mdi-clock-alert:before{content:"\f0955"}.mdi-clock-alert-outline:before{content:"\f05ce"}.mdi-clock-check:before{content:"\f0fa8"}.mdi-clock-check-outline:before{content:"\f0fa9"}.mdi-clock-digital:before{content:"\f0e97"}.mdi-clock-edit:before{content:"\f19ba"}.mdi-clock-edit-outline:before{content:"\f19bb"}.mdi-clock-end:before{content:"\f0151"}.mdi-clock-fast:before{content:"\f0152"}.mdi-clock-in:before{content:"\f0153"}.mdi-clock-minus:before{content:"\f1863"}.mdi-clock-minus-outline:before{content:"\f1864"}.mdi-clock-out:before{content:"\f0154"}.mdi-clock-outline:before{content:"\f0150"}.mdi-clock-plus:before{content:"\f1861"}.mdi-clock-plus-outline:before{content:"\f1862"}.mdi-clock-remove:before{content:"\f1865"}.mdi-clock-remove-outline:before{content:"\f1866"}.mdi-clock-star-four-points:before{content:"\f1c29"}.mdi-clock-star-four-points-outline:before{content:"\f1c2a"}.mdi-clock-start:before{content:"\f0155"}.mdi-clock-time-eight:before{content:"\f1446"}.mdi-clock-time-eight-outline:before{content:"\f1452"}.mdi-clock-time-eleven:before{content:"\f1449"}.mdi-clock-time-eleven-outline:before{content:"\f1455"}.mdi-clock-time-five:before{content:"\f1443"}.mdi-clock-time-five-outline:before{content:"\f144f"}.mdi-clock-time-four:before{content:"\f1442"}.mdi-clock-time-four-outline:before{content:"\f144e"}.mdi-clock-time-nine:before{content:"\f1447"}.mdi-clock-time-nine-outline:before{content:"\f1453"}.mdi-clock-time-one:before{content:"\f143f"}.mdi-clock-time-one-outline:before{content:"\f144b"}.mdi-clock-time-seven:before{content:"\f1445"}.mdi-clock-time-seven-outline:before{content:"\f1451"}.mdi-clock-time-six:before{content:"\f1444"}.mdi-clock-time-six-outline:before{content:"\f1450"}.mdi-clock-time-ten:before{content:"\f1448"}.mdi-clock-time-ten-outline:before{content:"\f1454"}.mdi-clock-time-three:before{content:"\f1441"}.mdi-clock-time-three-outline:before{content:"\f144d"}.mdi-clock-time-twelve:before{content:"\f144a"}.mdi-clock-time-twelve-outline:before{content:"\f1456"}.mdi-clock-time-two:before{content:"\f1440"}.mdi-clock-time-two-outline:before{content:"\f144c"}.mdi-close:before{content:"\f0156"}.mdi-close-box:before{content:"\f0157"}.mdi-close-box-multiple:before{content:"\f0c5d"}.mdi-close-box-multiple-outline:before{content:"\f0c5e"}.mdi-close-box-outline:before{content:"\f0158"}.mdi-close-circle:before{content:"\f0159"}.mdi-close-circle-multiple:before{content:"\f062a"}.mdi-close-circle-multiple-outline:before{content:"\f0883"}.mdi-close-circle-outline:before{content:"\f015a"}.mdi-close-network:before{content:"\f015b"}.mdi-close-network-outline:before{content:"\f0c5f"}.mdi-close-octagon:before{content:"\f015c"}.mdi-close-octagon-outline:before{content:"\f015d"}.mdi-close-outline:before{content:"\f06c9"}.mdi-close-thick:before{content:"\f1398"}.mdi-closed-caption:before{content:"\f015e"}.mdi-closed-caption-outline:before{content:"\f0dbd"}.mdi-cloud:before{content:"\f015f"}.mdi-cloud-alert:before{content:"\f09e0"}.mdi-cloud-alert-outline:before{content:"\f1be0"}.mdi-cloud-arrow-down:before{content:"\f1be1"}.mdi-cloud-arrow-down-outline:before{content:"\f1be2"}.mdi-cloud-arrow-left:before{content:"\f1be3"}.mdi-cloud-arrow-left-outline:before{content:"\f1be4"}.mdi-cloud-arrow-right:before{content:"\f1be5"}.mdi-cloud-arrow-right-outline:before{content:"\f1be6"}.mdi-cloud-arrow-up:before{content:"\f1be7"}.mdi-cloud-arrow-up-outline:before{content:"\f1be8"}.mdi-cloud-braces:before{content:"\f07b5"}.mdi-cloud-cancel:before{content:"\f1be9"}.mdi-cloud-cancel-outline:before{content:"\f1bea"}.mdi-cloud-check:before{content:"\f1beb"}.mdi-cloud-check-outline:before{content:"\f1bec"}.mdi-cloud-check-variant:before{content:"\f0160"}.mdi-cloud-check-variant-outline:before{content:"\f12cc"}.mdi-cloud-circle:before{content:"\f0161"}.mdi-cloud-circle-outline:before{content:"\f1bed"}.mdi-cloud-clock:before{content:"\f1bee"}.mdi-cloud-clock-outline:before{content:"\f1bef"}.mdi-cloud-cog:before{content:"\f1bf0"}.mdi-cloud-cog-outline:before{content:"\f1bf1"}.mdi-cloud-download:before{content:"\f0162"}.mdi-cloud-download-outline:before{content:"\f0b7d"}.mdi-cloud-key:before{content:"\f1ca1"}.mdi-cloud-key-outline:before{content:"\f1ca2"}.mdi-cloud-lock:before{content:"\f11f1"}.mdi-cloud-lock-open:before{content:"\f1bf2"}.mdi-cloud-lock-open-outline:before{content:"\f1bf3"}.mdi-cloud-lock-outline:before{content:"\f11f2"}.mdi-cloud-minus:before{content:"\f1bf4"}.mdi-cloud-minus-outline:before{content:"\f1bf5"}.mdi-cloud-off:before{content:"\f1bf6"}.mdi-cloud-off-outline:before{content:"\f0164"}.mdi-cloud-outline:before{content:"\f0163"}.mdi-cloud-percent:before{content:"\f1a35"}.mdi-cloud-percent-outline:before{content:"\f1a36"}.mdi-cloud-plus:before{content:"\f1bf7"}.mdi-cloud-plus-outline:before{content:"\f1bf8"}.mdi-cloud-print:before{content:"\f0165"}.mdi-cloud-print-outline:before{content:"\f0166"}.mdi-cloud-question:before{content:"\f0a39"}.mdi-cloud-question-outline:before{content:"\f1bf9"}.mdi-cloud-refresh:before{content:"\f1bfa"}.mdi-cloud-refresh-outline:before{content:"\f1bfb"}.mdi-cloud-refresh-variant:before{content:"\f052a"}.mdi-cloud-refresh-variant-outline:before{content:"\f1bfc"}.mdi-cloud-remove:before{content:"\f1bfd"}.mdi-cloud-remove-outline:before{content:"\f1bfe"}.mdi-cloud-search:before{content:"\f0956"}.mdi-cloud-search-outline:before{content:"\f0957"}.mdi-cloud-sync:before{content:"\f063f"}.mdi-cloud-sync-outline:before{content:"\f12d6"}.mdi-cloud-tags:before{content:"\f07b6"}.mdi-cloud-upload:before{content:"\f0167"}.mdi-cloud-upload-outline:before{content:"\f0b7e"}.mdi-clouds:before{content:"\f1b95"}.mdi-clover:before{content:"\f0816"}.mdi-clover-outline:before{content:"\f1c62"}.mdi-coach-lamp:before{content:"\f1020"}.mdi-coach-lamp-variant:before{content:"\f1a37"}.mdi-coat-rack:before{content:"\f109e"}.mdi-code-array:before{content:"\f0168"}.mdi-code-block-braces:before{content:"\f1c83"}.mdi-code-block-brackets:before{content:"\f1c84"}.mdi-code-block-parentheses:before{content:"\f1c85"}.mdi-code-block-tags:before{content:"\f1c86"}.mdi-code-braces:before{content:"\f0169"}.mdi-code-braces-box:before{content:"\f10d6"}.mdi-code-brackets:before{content:"\f016a"}.mdi-code-equal:before{content:"\f016b"}.mdi-code-greater-than:before{content:"\f016c"}.mdi-code-greater-than-or-equal:before{content:"\f016d"}.mdi-code-json:before{content:"\f0626"}.mdi-code-less-than:before{content:"\f016e"}.mdi-code-less-than-or-equal:before{content:"\f016f"}.mdi-code-not-equal:before{content:"\f0170"}.mdi-code-not-equal-variant:before{content:"\f0171"}.mdi-code-parentheses:before{content:"\f0172"}.mdi-code-parentheses-box:before{content:"\f10d7"}.mdi-code-string:before{content:"\f0173"}.mdi-code-tags:before{content:"\f0174"}.mdi-code-tags-check:before{content:"\f0694"}.mdi-codepen:before{content:"\f0175"}.mdi-coffee:before{content:"\f0176"}.mdi-coffee-maker:before{content:"\f109f"}.mdi-coffee-maker-check:before{content:"\f1931"}.mdi-coffee-maker-check-outline:before{content:"\f1932"}.mdi-coffee-maker-outline:before{content:"\f181b"}.mdi-coffee-off:before{content:"\f0faa"}.mdi-coffee-off-outline:before{content:"\f0fab"}.mdi-coffee-outline:before{content:"\f06ca"}.mdi-coffee-to-go:before{content:"\f0177"}.mdi-coffee-to-go-outline:before{content:"\f130e"}.mdi-coffin:before{content:"\f0b7f"}.mdi-cog:before{content:"\f0493"}.mdi-cog-box:before{content:"\f0494"}.mdi-cog-clockwise:before{content:"\f11dd"}.mdi-cog-counterclockwise:before{content:"\f11de"}.mdi-cog-off:before{content:"\f13ce"}.mdi-cog-off-outline:before{content:"\f13cf"}.mdi-cog-outline:before{content:"\f08bb"}.mdi-cog-pause:before{content:"\f1933"}.mdi-cog-pause-outline:before{content:"\f1934"}.mdi-cog-play:before{content:"\f1935"}.mdi-cog-play-outline:before{content:"\f1936"}.mdi-cog-refresh:before{content:"\f145e"}.mdi-cog-refresh-outline:before{content:"\f145f"}.mdi-cog-stop:before{content:"\f1937"}.mdi-cog-stop-outline:before{content:"\f1938"}.mdi-cog-sync:before{content:"\f1460"}.mdi-cog-sync-outline:before{content:"\f1461"}.mdi-cog-transfer:before{content:"\f105b"}.mdi-cog-transfer-outline:before{content:"\f105c"}.mdi-cogs:before{content:"\f08d6"}.mdi-collage:before{content:"\f0640"}.mdi-collapse-all:before{content:"\f0aa6"}.mdi-collapse-all-outline:before{content:"\f0aa7"}.mdi-color-helper:before{content:"\f0179"}.mdi-comma:before{content:"\f0e23"}.mdi-comma-box:before{content:"\f0e2b"}.mdi-comma-box-outline:before{content:"\f0e24"}.mdi-comma-circle:before{content:"\f0e25"}.mdi-comma-circle-outline:before{content:"\f0e26"}.mdi-comment:before{content:"\f017a"}.mdi-comment-account:before{content:"\f017b"}.mdi-comment-account-outline:before{content:"\f017c"}.mdi-comment-alert:before{content:"\f017d"}.mdi-comment-alert-outline:before{content:"\f017e"}.mdi-comment-arrow-left:before{content:"\f09e1"}.mdi-comment-arrow-left-outline:before{content:"\f09e2"}.mdi-comment-arrow-right:before{content:"\f09e3"}.mdi-comment-arrow-right-outline:before{content:"\f09e4"}.mdi-comment-bookmark:before{content:"\f15ae"}.mdi-comment-bookmark-outline:before{content:"\f15af"}.mdi-comment-check:before{content:"\f017f"}.mdi-comment-check-outline:before{content:"\f0180"}.mdi-comment-edit:before{content:"\f11bf"}.mdi-comment-edit-outline:before{content:"\f12c4"}.mdi-comment-eye:before{content:"\f0a3a"}.mdi-comment-eye-outline:before{content:"\f0a3b"}.mdi-comment-flash:before{content:"\f15b0"}.mdi-comment-flash-outline:before{content:"\f15b1"}.mdi-comment-minus:before{content:"\f15df"}.mdi-comment-minus-outline:before{content:"\f15e0"}.mdi-comment-multiple:before{content:"\f085f"}.mdi-comment-multiple-outline:before{content:"\f0181"}.mdi-comment-off:before{content:"\f15e1"}.mdi-comment-off-outline:before{content:"\f15e2"}.mdi-comment-outline:before{content:"\f0182"}.mdi-comment-plus:before{content:"\f09e5"}.mdi-comment-plus-outline:before{content:"\f0183"}.mdi-comment-processing:before{content:"\f0184"}.mdi-comment-processing-outline:before{content:"\f0185"}.mdi-comment-question:before{content:"\f0817"}.mdi-comment-question-outline:before{content:"\f0186"}.mdi-comment-quote:before{content:"\f1021"}.mdi-comment-quote-outline:before{content:"\f1022"}.mdi-comment-remove:before{content:"\f05de"}.mdi-comment-remove-outline:before{content:"\f0187"}.mdi-comment-search:before{content:"\f0a3c"}.mdi-comment-search-outline:before{content:"\f0a3d"}.mdi-comment-text:before{content:"\f0188"}.mdi-comment-text-multiple:before{content:"\f0860"}.mdi-comment-text-multiple-outline:before{content:"\f0861"}.mdi-comment-text-outline:before{content:"\f0189"}.mdi-compare:before{content:"\f018a"}.mdi-compare-horizontal:before{content:"\f1492"}.mdi-compare-remove:before{content:"\f18b3"}.mdi-compare-vertical:before{content:"\f1493"}.mdi-compass:before{content:"\f018b"}.mdi-compass-off:before{content:"\f0b80"}.mdi-compass-off-outline:before{content:"\f0b81"}.mdi-compass-outline:before{content:"\f018c"}.mdi-compass-rose:before{content:"\f1382"}.mdi-compost:before{content:"\f1a38"}.mdi-cone:before{content:"\f194c"}.mdi-cone-off:before{content:"\f194d"}.mdi-connection:before{content:"\f1616"}.mdi-console:before{content:"\f018d"}.mdi-console-line:before{content:"\f07b7"}.mdi-console-network:before{content:"\f08a9"}.mdi-console-network-outline:before{content:"\f0c60"}.mdi-consolidate:before{content:"\f10d8"}.mdi-contactless-payment:before{content:"\f0d6a"}.mdi-contactless-payment-circle:before{content:"\f0321"}.mdi-contactless-payment-circle-outline:before{content:"\f0408"}.mdi-contacts:before{content:"\f06cb"}.mdi-contacts-outline:before{content:"\f05b8"}.mdi-contain:before{content:"\f0a3e"}.mdi-contain-end:before{content:"\f0a3f"}.mdi-contain-start:before{content:"\f0a40"}.mdi-content-copy:before{content:"\f018f"}.mdi-content-cut:before{content:"\f0190"}.mdi-content-duplicate:before{content:"\f0191"}.mdi-content-paste:before{content:"\f0192"}.mdi-content-save:before{content:"\f0193"}.mdi-content-save-alert:before{content:"\f0f42"}.mdi-content-save-alert-outline:before{content:"\f0f43"}.mdi-content-save-all:before{content:"\f0194"}.mdi-content-save-all-outline:before{content:"\f0f44"}.mdi-content-save-check:before{content:"\f18ea"}.mdi-content-save-check-outline:before{content:"\f18eb"}.mdi-content-save-cog:before{content:"\f145b"}.mdi-content-save-cog-outline:before{content:"\f145c"}.mdi-content-save-edit:before{content:"\f0cfb"}.mdi-content-save-edit-outline:before{content:"\f0cfc"}.mdi-content-save-minus:before{content:"\f1b43"}.mdi-content-save-minus-outline:before{content:"\f1b44"}.mdi-content-save-move:before{content:"\f0e27"}.mdi-content-save-move-outline:before{content:"\f0e28"}.mdi-content-save-off:before{content:"\f1643"}.mdi-content-save-off-outline:before{content:"\f1644"}.mdi-content-save-outline:before{content:"\f0818"}.mdi-content-save-plus:before{content:"\f1b41"}.mdi-content-save-plus-outline:before{content:"\f1b42"}.mdi-content-save-settings:before{content:"\f061b"}.mdi-content-save-settings-outline:before{content:"\f0b2e"}.mdi-contrast:before{content:"\f0195"}.mdi-contrast-box:before{content:"\f0196"}.mdi-contrast-circle:before{content:"\f0197"}.mdi-controller:before{content:"\f02b4"}.mdi-controller-classic:before{content:"\f0b82"}.mdi-controller-classic-outline:before{content:"\f0b83"}.mdi-controller-off:before{content:"\f02b5"}.mdi-cookie:before{content:"\f0198"}.mdi-cookie-alert:before{content:"\f16d0"}.mdi-cookie-alert-outline:before{content:"\f16d1"}.mdi-cookie-check:before{content:"\f16d2"}.mdi-cookie-check-outline:before{content:"\f16d3"}.mdi-cookie-clock:before{content:"\f16e4"}.mdi-cookie-clock-outline:before{content:"\f16e5"}.mdi-cookie-cog:before{content:"\f16d4"}.mdi-cookie-cog-outline:before{content:"\f16d5"}.mdi-cookie-edit:before{content:"\f16e6"}.mdi-cookie-edit-outline:before{content:"\f16e7"}.mdi-cookie-lock:before{content:"\f16e8"}.mdi-cookie-lock-outline:before{content:"\f16e9"}.mdi-cookie-minus:before{content:"\f16da"}.mdi-cookie-minus-outline:before{content:"\f16db"}.mdi-cookie-off:before{content:"\f16ea"}.mdi-cookie-off-outline:before{content:"\f16eb"}.mdi-cookie-outline:before{content:"\f16de"}.mdi-cookie-plus:before{content:"\f16d6"}.mdi-cookie-plus-outline:before{content:"\f16d7"}.mdi-cookie-refresh:before{content:"\f16ec"}.mdi-cookie-refresh-outline:before{content:"\f16ed"}.mdi-cookie-remove:before{content:"\f16d8"}.mdi-cookie-remove-outline:before{content:"\f16d9"}.mdi-cookie-settings:before{content:"\f16dc"}.mdi-cookie-settings-outline:before{content:"\f16dd"}.mdi-coolant-temperature:before{content:"\f03c8"}.mdi-copyleft:before{content:"\f1939"}.mdi-copyright:before{content:"\f05e6"}.mdi-cordova:before{content:"\f0958"}.mdi-corn:before{content:"\f07b8"}.mdi-corn-off:before{content:"\f13ef"}.mdi-cosine-wave:before{content:"\f1479"}.mdi-counter:before{content:"\f0199"}.mdi-countertop:before{content:"\f181c"}.mdi-countertop-outline:before{content:"\f181d"}.mdi-cow:before{content:"\f019a"}.mdi-cow-off:before{content:"\f18fc"}.mdi-cpu-32-bit:before{content:"\f0edf"}.mdi-cpu-64-bit:before{content:"\f0ee0"}.mdi-cradle:before{content:"\f198b"}.mdi-cradle-outline:before{content:"\f1991"}.mdi-crane:before{content:"\f0862"}.mdi-creation:before{content:"\f0674"}.mdi-creation-outline:before{content:"\f1c2b"}.mdi-creative-commons:before{content:"\f0d6b"}.mdi-credit-card:before{content:"\f0fef"}.mdi-credit-card-check:before{content:"\f13d0"}.mdi-credit-card-check-outline:before{content:"\f13d1"}.mdi-credit-card-chip:before{content:"\f190f"}.mdi-credit-card-chip-outline:before{content:"\f1910"}.mdi-credit-card-clock:before{content:"\f0ee1"}.mdi-credit-card-clock-outline:before{content:"\f0ee2"}.mdi-credit-card-edit:before{content:"\f17d7"}.mdi-credit-card-edit-outline:before{content:"\f17d8"}.mdi-credit-card-fast:before{content:"\f1911"}.mdi-credit-card-fast-outline:before{content:"\f1912"}.mdi-credit-card-lock:before{content:"\f18e7"}.mdi-credit-card-lock-outline:before{content:"\f18e8"}.mdi-credit-card-marker:before{content:"\f06a8"}.mdi-credit-card-marker-outline:before{content:"\f0dbe"}.mdi-credit-card-minus:before{content:"\f0fac"}.mdi-credit-card-minus-outline:before{content:"\f0fad"}.mdi-credit-card-multiple:before{content:"\f0ff0"}.mdi-credit-card-multiple-outline:before{content:"\f019c"}.mdi-credit-card-off:before{content:"\f0ff1"}.mdi-credit-card-off-outline:before{content:"\f05e4"}.mdi-credit-card-outline:before{content:"\f019b"}.mdi-credit-card-plus:before{content:"\f0ff2"}.mdi-credit-card-plus-outline:before{content:"\f0676"}.mdi-credit-card-refresh:before{content:"\f1645"}.mdi-credit-card-refresh-outline:before{content:"\f1646"}.mdi-credit-card-refund:before{content:"\f0ff3"}.mdi-credit-card-refund-outline:before{content:"\f0aa8"}.mdi-credit-card-remove:before{content:"\f0fae"}.mdi-credit-card-remove-outline:before{content:"\f0faf"}.mdi-credit-card-scan:before{content:"\f0ff4"}.mdi-credit-card-scan-outline:before{content:"\f019d"}.mdi-credit-card-search:before{content:"\f1647"}.mdi-credit-card-search-outline:before{content:"\f1648"}.mdi-credit-card-settings:before{content:"\f0ff5"}.mdi-credit-card-settings-outline:before{content:"\f08d7"}.mdi-credit-card-sync:before{content:"\f1649"}.mdi-credit-card-sync-outline:before{content:"\f164a"}.mdi-credit-card-wireless:before{content:"\f0802"}.mdi-credit-card-wireless-off:before{content:"\f057a"}.mdi-credit-card-wireless-off-outline:before{content:"\f057b"}.mdi-credit-card-wireless-outline:before{content:"\f0d6c"}.mdi-cricket:before{content:"\f0d6d"}.mdi-crop:before{content:"\f019e"}.mdi-crop-free:before{content:"\f019f"}.mdi-crop-landscape:before{content:"\f01a0"}.mdi-crop-portrait:before{content:"\f01a1"}.mdi-crop-rotate:before{content:"\f0696"}.mdi-crop-square:before{content:"\f01a2"}.mdi-cross:before{content:"\f0953"}.mdi-cross-bolnisi:before{content:"\f0ced"}.mdi-cross-celtic:before{content:"\f0cf5"}.mdi-cross-outline:before{content:"\f0cf6"}.mdi-crosshairs:before{content:"\f01a3"}.mdi-crosshairs-gps:before{content:"\f01a4"}.mdi-crosshairs-off:before{content:"\f0f45"}.mdi-crosshairs-question:before{content:"\f1136"}.mdi-crowd:before{content:"\f1975"}.mdi-crown:before{content:"\f01a5"}.mdi-crown-circle:before{content:"\f17dc"}.mdi-crown-circle-outline:before{content:"\f17dd"}.mdi-crown-outline:before{content:"\f11d0"}.mdi-cryengine:before{content:"\f0959"}.mdi-crystal-ball:before{content:"\f0b2f"}.mdi-cube:before{content:"\f01a6"}.mdi-cube-off:before{content:"\f141c"}.mdi-cube-off-outline:before{content:"\f141d"}.mdi-cube-outline:before{content:"\f01a7"}.mdi-cube-scan:before{content:"\f0b84"}.mdi-cube-send:before{content:"\f01a8"}.mdi-cube-unfolded:before{content:"\f01a9"}.mdi-cup:before{content:"\f01aa"}.mdi-cup-off:before{content:"\f05e5"}.mdi-cup-off-outline:before{content:"\f137d"}.mdi-cup-outline:before{content:"\f130f"}.mdi-cup-water:before{content:"\f01ab"}.mdi-cupboard:before{content:"\f0f46"}.mdi-cupboard-outline:before{content:"\f0f47"}.mdi-cupcake:before{content:"\f095a"}.mdi-curling:before{content:"\f0863"}.mdi-currency-bdt:before{content:"\f0864"}.mdi-currency-brl:before{content:"\f0b85"}.mdi-currency-btc:before{content:"\f01ac"}.mdi-currency-cny:before{content:"\f07ba"}.mdi-currency-eth:before{content:"\f07bb"}.mdi-currency-eur:before{content:"\f01ad"}.mdi-currency-eur-off:before{content:"\f1315"}.mdi-currency-fra:before{content:"\f1a39"}.mdi-currency-gbp:before{content:"\f01ae"}.mdi-currency-ils:before{content:"\f0c61"}.mdi-currency-inr:before{content:"\f01af"}.mdi-currency-jpy:before{content:"\f07bc"}.mdi-currency-krw:before{content:"\f07bd"}.mdi-currency-kzt:before{content:"\f0865"}.mdi-currency-mnt:before{content:"\f1512"}.mdi-currency-ngn:before{content:"\f01b0"}.mdi-currency-php:before{content:"\f09e6"}.mdi-currency-rial:before{content:"\f0e9c"}.mdi-currency-rub:before{content:"\f01b1"}.mdi-currency-rupee:before{content:"\f1976"}.mdi-currency-sign:before{content:"\f07be"}.mdi-currency-thb:before{content:"\f1c05"}.mdi-currency-try:before{content:"\f01b2"}.mdi-currency-twd:before{content:"\f07bf"}.mdi-currency-uah:before{content:"\f1b9b"}.mdi-currency-usd:before{content:"\f01c1"}.mdi-currency-usd-off:before{content:"\f067a"}.mdi-current-ac:before{content:"\f1480"}.mdi-current-dc:before{content:"\f095c"}.mdi-cursor-default:before{content:"\f01c0"}.mdi-cursor-default-click:before{content:"\f0cfd"}.mdi-cursor-default-click-outline:before{content:"\f0cfe"}.mdi-cursor-default-gesture:before{content:"\f1127"}.mdi-cursor-default-gesture-outline:before{content:"\f1128"}.mdi-cursor-default-outline:before{content:"\f01bf"}.mdi-cursor-move:before{content:"\f01be"}.mdi-cursor-pointer:before{content:"\f01bd"}.mdi-cursor-text:before{content:"\f05e7"}.mdi-curtains:before{content:"\f1846"}.mdi-curtains-closed:before{content:"\f1847"}.mdi-cylinder:before{content:"\f194e"}.mdi-cylinder-off:before{content:"\f194f"}.mdi-dance-ballroom:before{content:"\f15fb"}.mdi-dance-pole:before{content:"\f1578"}.mdi-data-matrix:before{content:"\f153c"}.mdi-data-matrix-edit:before{content:"\f153d"}.mdi-data-matrix-minus:before{content:"\f153e"}.mdi-data-matrix-plus:before{content:"\f153f"}.mdi-data-matrix-remove:before{content:"\f1540"}.mdi-data-matrix-scan:before{content:"\f1541"}.mdi-database:before{content:"\f01bc"}.mdi-database-alert:before{content:"\f163a"}.mdi-database-alert-outline:before{content:"\f1624"}.mdi-database-arrow-down:before{content:"\f163b"}.mdi-database-arrow-down-outline:before{content:"\f1625"}.mdi-database-arrow-left:before{content:"\f163c"}.mdi-database-arrow-left-outline:before{content:"\f1626"}.mdi-database-arrow-right:before{content:"\f163d"}.mdi-database-arrow-right-outline:before{content:"\f1627"}.mdi-database-arrow-up:before{content:"\f163e"}.mdi-database-arrow-up-outline:before{content:"\f1628"}.mdi-database-check:before{content:"\f0aa9"}.mdi-database-check-outline:before{content:"\f1629"}.mdi-database-clock:before{content:"\f163f"}.mdi-database-clock-outline:before{content:"\f162a"}.mdi-database-cog:before{content:"\f164b"}.mdi-database-cog-outline:before{content:"\f164c"}.mdi-database-edit:before{content:"\f0b86"}.mdi-database-edit-outline:before{content:"\f162b"}.mdi-database-export:before{content:"\f095e"}.mdi-database-export-outline:before{content:"\f162c"}.mdi-database-eye:before{content:"\f191f"}.mdi-database-eye-off:before{content:"\f1920"}.mdi-database-eye-off-outline:before{content:"\f1921"}.mdi-database-eye-outline:before{content:"\f1922"}.mdi-database-import:before{content:"\f095d"}.mdi-database-import-outline:before{content:"\f162d"}.mdi-database-lock:before{content:"\f0aaa"}.mdi-database-lock-outline:before{content:"\f162e"}.mdi-database-marker:before{content:"\f12f6"}.mdi-database-marker-outline:before{content:"\f162f"}.mdi-database-minus:before{content:"\f01bb"}.mdi-database-minus-outline:before{content:"\f1630"}.mdi-database-off:before{content:"\f1640"}.mdi-database-off-outline:before{content:"\f1631"}.mdi-database-outline:before{content:"\f1632"}.mdi-database-plus:before{content:"\f01ba"}.mdi-database-plus-outline:before{content:"\f1633"}.mdi-database-refresh:before{content:"\f05c2"}.mdi-database-refresh-outline:before{content:"\f1634"}.mdi-database-remove:before{content:"\f0d00"}.mdi-database-remove-outline:before{content:"\f1635"}.mdi-database-search:before{content:"\f0866"}.mdi-database-search-outline:before{content:"\f1636"}.mdi-database-settings:before{content:"\f0d01"}.mdi-database-settings-outline:before{content:"\f1637"}.mdi-database-sync:before{content:"\f0cff"}.mdi-database-sync-outline:before{content:"\f1638"}.mdi-death-star:before{content:"\f08d8"}.mdi-death-star-variant:before{content:"\f08d9"}.mdi-deathly-hallows:before{content:"\f0b87"}.mdi-debian:before{content:"\f08da"}.mdi-debug-step-into:before{content:"\f01b9"}.mdi-debug-step-out:before{content:"\f01b8"}.mdi-debug-step-over:before{content:"\f01b7"}.mdi-decagram:before{content:"\f076c"}.mdi-decagram-outline:before{content:"\f076d"}.mdi-decimal:before{content:"\f10a1"}.mdi-decimal-comma:before{content:"\f10a2"}.mdi-decimal-comma-decrease:before{content:"\f10a3"}.mdi-decimal-comma-increase:before{content:"\f10a4"}.mdi-decimal-decrease:before{content:"\f01b6"}.mdi-decimal-increase:before{content:"\f01b5"}.mdi-delete:before{content:"\f01b4"}.mdi-delete-alert:before{content:"\f10a5"}.mdi-delete-alert-outline:before{content:"\f10a6"}.mdi-delete-circle:before{content:"\f0683"}.mdi-delete-circle-outline:before{content:"\f0b88"}.mdi-delete-clock:before{content:"\f1556"}.mdi-delete-clock-outline:before{content:"\f1557"}.mdi-delete-empty:before{content:"\f06cc"}.mdi-delete-empty-outline:before{content:"\f0e9d"}.mdi-delete-forever:before{content:"\f05e8"}.mdi-delete-forever-outline:before{content:"\f0b89"}.mdi-delete-off:before{content:"\f10a7"}.mdi-delete-off-outline:before{content:"\f10a8"}.mdi-delete-outline:before{content:"\f09e7"}.mdi-delete-restore:before{content:"\f0819"}.mdi-delete-sweep:before{content:"\f05e9"}.mdi-delete-sweep-outline:before{content:"\f0c62"}.mdi-delete-variant:before{content:"\f01b3"}.mdi-delta:before{content:"\f01c2"}.mdi-desk:before{content:"\f1239"}.mdi-desk-lamp:before{content:"\f095f"}.mdi-desk-lamp-off:before{content:"\f1b1f"}.mdi-desk-lamp-on:before{content:"\f1b20"}.mdi-deskphone:before{content:"\f01c3"}.mdi-desktop-classic:before{content:"\f07c0"}.mdi-desktop-tower:before{content:"\f01c5"}.mdi-desktop-tower-monitor:before{content:"\f0aab"}.mdi-details:before{content:"\f01c6"}.mdi-dev-to:before{content:"\f0d6e"}.mdi-developer-board:before{content:"\f0697"}.mdi-deviantart:before{content:"\f01c7"}.mdi-devices:before{content:"\f0fb0"}.mdi-dharmachakra:before{content:"\f094b"}.mdi-diabetes:before{content:"\f1126"}.mdi-dialpad:before{content:"\f061c"}.mdi-diameter:before{content:"\f0c63"}.mdi-diameter-outline:before{content:"\f0c64"}.mdi-diameter-variant:before{content:"\f0c65"}.mdi-diamond:before{content:"\f0b8a"}.mdi-diamond-outline:before{content:"\f0b8b"}.mdi-diamond-stone:before{content:"\f01c8"}.mdi-diaper-outline:before{content:"\f1ccf"}.mdi-dice-1:before{content:"\f01ca"}.mdi-dice-1-outline:before{content:"\f114a"}.mdi-dice-2:before{content:"\f01cb"}.mdi-dice-2-outline:before{content:"\f114b"}.mdi-dice-3:before{content:"\f01cc"}.mdi-dice-3-outline:before{content:"\f114c"}.mdi-dice-4:before{content:"\f01cd"}.mdi-dice-4-outline:before{content:"\f114d"}.mdi-dice-5:before{content:"\f01ce"}.mdi-dice-5-outline:before{content:"\f114e"}.mdi-dice-6:before{content:"\f01cf"}.mdi-dice-6-outline:before{content:"\f114f"}.mdi-dice-d10:before{content:"\f1153"}.mdi-dice-d10-outline:before{content:"\f076f"}.mdi-dice-d12:before{content:"\f1154"}.mdi-dice-d12-outline:before{content:"\f0867"}.mdi-dice-d20:before{content:"\f1155"}.mdi-dice-d20-outline:before{content:"\f05ea"}.mdi-dice-d4:before{content:"\f1150"}.mdi-dice-d4-outline:before{content:"\f05eb"}.mdi-dice-d6:before{content:"\f1151"}.mdi-dice-d6-outline:before{content:"\f05ed"}.mdi-dice-d8:before{content:"\f1152"}.mdi-dice-d8-outline:before{content:"\f05ec"}.mdi-dice-multiple:before{content:"\f076e"}.mdi-dice-multiple-outline:before{content:"\f1156"}.mdi-digital-ocean:before{content:"\f1237"}.mdi-dip-switch:before{content:"\f07c1"}.mdi-directions:before{content:"\f01d0"}.mdi-directions-fork:before{content:"\f0641"}.mdi-disc:before{content:"\f05ee"}.mdi-disc-alert:before{content:"\f01d1"}.mdi-disc-player:before{content:"\f0960"}.mdi-dishwasher:before{content:"\f0aac"}.mdi-dishwasher-alert:before{content:"\f11b8"}.mdi-dishwasher-off:before{content:"\f11b9"}.mdi-disqus:before{content:"\f01d2"}.mdi-distribute-horizontal-center:before{content:"\f11c9"}.mdi-distribute-horizontal-left:before{content:"\f11c8"}.mdi-distribute-horizontal-right:before{content:"\f11ca"}.mdi-distribute-vertical-bottom:before{content:"\f11cb"}.mdi-distribute-vertical-center:before{content:"\f11cc"}.mdi-distribute-vertical-top:before{content:"\f11cd"}.mdi-diversify:before{content:"\f1877"}.mdi-diving:before{content:"\f1977"}.mdi-diving-flippers:before{content:"\f0dbf"}.mdi-diving-helmet:before{content:"\f0dc0"}.mdi-diving-scuba:before{content:"\f1b77"}.mdi-diving-scuba-flag:before{content:"\f0dc2"}.mdi-diving-scuba-mask:before{content:"\f0dc1"}.mdi-diving-scuba-tank:before{content:"\f0dc3"}.mdi-diving-scuba-tank-multiple:before{content:"\f0dc4"}.mdi-diving-snorkel:before{content:"\f0dc5"}.mdi-division:before{content:"\f01d4"}.mdi-division-box:before{content:"\f01d5"}.mdi-dlna:before{content:"\f0a41"}.mdi-dna:before{content:"\f0684"}.mdi-dns:before{content:"\f01d6"}.mdi-dns-outline:before{content:"\f0b8c"}.mdi-dock-bottom:before{content:"\f10a9"}.mdi-dock-left:before{content:"\f10aa"}.mdi-dock-right:before{content:"\f10ab"}.mdi-dock-top:before{content:"\f1513"}.mdi-dock-window:before{content:"\f10ac"}.mdi-docker:before{content:"\f0868"}.mdi-doctor:before{content:"\f0a42"}.mdi-dog:before{content:"\f0a43"}.mdi-dog-service:before{content:"\f0aad"}.mdi-dog-side:before{content:"\f0a44"}.mdi-dog-side-off:before{content:"\f16ee"}.mdi-dolby:before{content:"\f06b3"}.mdi-dolly:before{content:"\f0e9e"}.mdi-dolphin:before{content:"\f18b4"}.mdi-domain:before{content:"\f01d7"}.mdi-domain-off:before{content:"\f0d6f"}.mdi-domain-plus:before{content:"\f10ad"}.mdi-domain-remove:before{content:"\f10ae"}.mdi-domain-switch:before{content:"\f1c2c"}.mdi-dome-light:before{content:"\f141e"}.mdi-domino-mask:before{content:"\f1023"}.mdi-donkey:before{content:"\f07c2"}.mdi-door:before{content:"\f081a"}.mdi-door-closed:before{content:"\f081b"}.mdi-door-closed-cancel:before{content:"\f1c93"}.mdi-door-closed-lock:before{content:"\f10af"}.mdi-door-open:before{content:"\f081c"}.mdi-door-sliding:before{content:"\f181e"}.mdi-door-sliding-lock:before{content:"\f181f"}.mdi-door-sliding-open:before{content:"\f1820"}.mdi-doorbell:before{content:"\f12e6"}.mdi-doorbell-video:before{content:"\f0869"}.mdi-dot-net:before{content:"\f0aae"}.mdi-dots-circle:before{content:"\f1978"}.mdi-dots-grid:before{content:"\f15fc"}.mdi-dots-hexagon:before{content:"\f15ff"}.mdi-dots-horizontal:before{content:"\f01d8"}.mdi-dots-horizontal-circle:before{content:"\f07c3"}.mdi-dots-horizontal-circle-outline:before{content:"\f0b8d"}.mdi-dots-square:before{content:"\f15fd"}.mdi-dots-triangle:before{content:"\f15fe"}.mdi-dots-vertical:before{content:"\f01d9"}.mdi-dots-vertical-circle:before{content:"\f07c4"}.mdi-dots-vertical-circle-outline:before{content:"\f0b8e"}.mdi-download:before{content:"\f01da"}.mdi-download-box:before{content:"\f1462"}.mdi-download-box-outline:before{content:"\f1463"}.mdi-download-circle:before{content:"\f1464"}.mdi-download-circle-outline:before{content:"\f1465"}.mdi-download-lock:before{content:"\f1320"}.mdi-download-lock-outline:before{content:"\f1321"}.mdi-download-multiple:before{content:"\f09e9"}.mdi-download-multiple-outline:before{content:"\f1cd0"}.mdi-download-network:before{content:"\f06f4"}.mdi-download-network-outline:before{content:"\f0c66"}.mdi-download-off:before{content:"\f10b0"}.mdi-download-off-outline:before{content:"\f10b1"}.mdi-download-outline:before{content:"\f0b8f"}.mdi-drag:before{content:"\f01db"}.mdi-drag-horizontal:before{content:"\f01dc"}.mdi-drag-horizontal-variant:before{content:"\f12f0"}.mdi-drag-variant:before{content:"\f0b90"}.mdi-drag-vertical:before{content:"\f01dd"}.mdi-drag-vertical-variant:before{content:"\f12f1"}.mdi-drama-masks:before{content:"\f0d02"}.mdi-draw:before{content:"\f0f49"}.mdi-draw-pen:before{content:"\f19b9"}.mdi-drawing:before{content:"\f01de"}.mdi-drawing-box:before{content:"\f01df"}.mdi-dresser:before{content:"\f0f4a"}.mdi-dresser-outline:before{content:"\f0f4b"}.mdi-drone:before{content:"\f01e2"}.mdi-dropbox:before{content:"\f01e3"}.mdi-drupal:before{content:"\f01e4"}.mdi-duck:before{content:"\f01e5"}.mdi-dumbbell:before{content:"\f01e6"}.mdi-dump-truck:before{content:"\f0c67"}.mdi-ear-hearing:before{content:"\f07c5"}.mdi-ear-hearing-loop:before{content:"\f1aee"}.mdi-ear-hearing-off:before{content:"\f0a45"}.mdi-earbuds:before{content:"\f184f"}.mdi-earbuds-off:before{content:"\f1850"}.mdi-earbuds-off-outline:before{content:"\f1851"}.mdi-earbuds-outline:before{content:"\f1852"}.mdi-earth:before{content:"\f01e7"}.mdi-earth-arrow-down:before{content:"\f1c87"}.mdi-earth-arrow-left:before{content:"\f1c88"}.mdi-earth-arrow-right:before{content:"\f1311"}.mdi-earth-arrow-up:before{content:"\f1c89"}.mdi-earth-box:before{content:"\f06cd"}.mdi-earth-box-minus:before{content:"\f1407"}.mdi-earth-box-off:before{content:"\f06ce"}.mdi-earth-box-plus:before{content:"\f1406"}.mdi-earth-box-remove:before{content:"\f1408"}.mdi-earth-minus:before{content:"\f1404"}.mdi-earth-off:before{content:"\f01e8"}.mdi-earth-plus:before{content:"\f1403"}.mdi-earth-remove:before{content:"\f1405"}.mdi-egg:before{content:"\f0aaf"}.mdi-egg-easter:before{content:"\f0ab0"}.mdi-egg-fried:before{content:"\f184a"}.mdi-egg-off:before{content:"\f13f0"}.mdi-egg-off-outline:before{content:"\f13f1"}.mdi-egg-outline:before{content:"\f13f2"}.mdi-eiffel-tower:before{content:"\f156b"}.mdi-eight-track:before{content:"\f09ea"}.mdi-eject:before{content:"\f01ea"}.mdi-eject-circle:before{content:"\f1b23"}.mdi-eject-circle-outline:before{content:"\f1b24"}.mdi-eject-outline:before{content:"\f0b91"}.mdi-electric-switch:before{content:"\f0e9f"}.mdi-electric-switch-closed:before{content:"\f10d9"}.mdi-electron-framework:before{content:"\f1024"}.mdi-elephant:before{content:"\f07c6"}.mdi-elevation-decline:before{content:"\f01eb"}.mdi-elevation-rise:before{content:"\f01ec"}.mdi-elevator:before{content:"\f01ed"}.mdi-elevator-down:before{content:"\f12c2"}.mdi-elevator-passenger:before{content:"\f1381"}.mdi-elevator-passenger-off:before{content:"\f1979"}.mdi-elevator-passenger-off-outline:before{content:"\f197a"}.mdi-elevator-passenger-outline:before{content:"\f197b"}.mdi-elevator-up:before{content:"\f12c1"}.mdi-ellipse:before{content:"\f0ea0"}.mdi-ellipse-outline:before{content:"\f0ea1"}.mdi-email:before{content:"\f01ee"}.mdi-email-alert:before{content:"\f06cf"}.mdi-email-alert-outline:before{content:"\f0d42"}.mdi-email-arrow-left:before{content:"\f10da"}.mdi-email-arrow-left-outline:before{content:"\f10db"}.mdi-email-arrow-right:before{content:"\f10dc"}.mdi-email-arrow-right-outline:before{content:"\f10dd"}.mdi-email-box:before{content:"\f0d03"}.mdi-email-check:before{content:"\f0ab1"}.mdi-email-check-outline:before{content:"\f0ab2"}.mdi-email-edit:before{content:"\f0ee3"}.mdi-email-edit-outline:before{content:"\f0ee4"}.mdi-email-fast:before{content:"\f186f"}.mdi-email-fast-outline:before{content:"\f1870"}.mdi-email-heart-outline:before{content:"\f1c5b"}.mdi-email-lock:before{content:"\f01f1"}.mdi-email-lock-outline:before{content:"\f1b61"}.mdi-email-mark-as-unread:before{content:"\f0b92"}.mdi-email-minus:before{content:"\f0ee5"}.mdi-email-minus-outline:before{content:"\f0ee6"}.mdi-email-multiple:before{content:"\f0ee7"}.mdi-email-multiple-outline:before{content:"\f0ee8"}.mdi-email-newsletter:before{content:"\f0fb1"}.mdi-email-off:before{content:"\f13e3"}.mdi-email-off-outline:before{content:"\f13e4"}.mdi-email-open:before{content:"\f01ef"}.mdi-email-open-heart-outline:before{content:"\f1c5c"}.mdi-email-open-multiple:before{content:"\f0ee9"}.mdi-email-open-multiple-outline:before{content:"\f0eea"}.mdi-email-open-outline:before{content:"\f05ef"}.mdi-email-outline:before{content:"\f01f0"}.mdi-email-plus:before{content:"\f09eb"}.mdi-email-plus-outline:before{content:"\f09ec"}.mdi-email-remove:before{content:"\f1661"}.mdi-email-remove-outline:before{content:"\f1662"}.mdi-email-seal:before{content:"\f195b"}.mdi-email-seal-outline:before{content:"\f195c"}.mdi-email-search:before{content:"\f0961"}.mdi-email-search-outline:before{content:"\f0962"}.mdi-email-sync:before{content:"\f12c7"}.mdi-email-sync-outline:before{content:"\f12c8"}.mdi-email-variant:before{content:"\f05f0"}.mdi-ember:before{content:"\f0b30"}.mdi-emby:before{content:"\f06b4"}.mdi-emoticon:before{content:"\f0c68"}.mdi-emoticon-angry:before{content:"\f0c69"}.mdi-emoticon-angry-outline:before{content:"\f0c6a"}.mdi-emoticon-confused:before{content:"\f10de"}.mdi-emoticon-confused-outline:before{content:"\f10df"}.mdi-emoticon-cool:before{content:"\f0c6b"}.mdi-emoticon-cool-outline:before{content:"\f01f3"}.mdi-emoticon-cry:before{content:"\f0c6c"}.mdi-emoticon-cry-outline:before{content:"\f0c6d"}.mdi-emoticon-dead:before{content:"\f0c6e"}.mdi-emoticon-dead-outline:before{content:"\f069b"}.mdi-emoticon-devil:before{content:"\f0c6f"}.mdi-emoticon-devil-outline:before{content:"\f01f4"}.mdi-emoticon-excited:before{content:"\f0c70"}.mdi-emoticon-excited-outline:before{content:"\f069c"}.mdi-emoticon-frown:before{content:"\f0f4c"}.mdi-emoticon-frown-outline:before{content:"\f0f4d"}.mdi-emoticon-happy:before{content:"\f0c71"}.mdi-emoticon-happy-outline:before{content:"\f01f5"}.mdi-emoticon-kiss:before{content:"\f0c72"}.mdi-emoticon-kiss-outline:before{content:"\f0c73"}.mdi-emoticon-lol:before{content:"\f1214"}.mdi-emoticon-lol-outline:before{content:"\f1215"}.mdi-emoticon-minus:before{content:"\f1cb2"}.mdi-emoticon-minus-outline:before{content:"\f1cb3"}.mdi-emoticon-neutral:before{content:"\f0c74"}.mdi-emoticon-neutral-outline:before{content:"\f01f6"}.mdi-emoticon-outline:before{content:"\f01f2"}.mdi-emoticon-plus:before{content:"\f1cb4"}.mdi-emoticon-plus-outline:before{content:"\f1cb5"}.mdi-emoticon-poop:before{content:"\f01f7"}.mdi-emoticon-poop-outline:before{content:"\f0c75"}.mdi-emoticon-remove:before{content:"\f1cb6"}.mdi-emoticon-remove-outline:before{content:"\f1cb7"}.mdi-emoticon-sad:before{content:"\f0c76"}.mdi-emoticon-sad-outline:before{content:"\f01f8"}.mdi-emoticon-sick:before{content:"\f157c"}.mdi-emoticon-sick-outline:before{content:"\f157d"}.mdi-emoticon-tongue:before{content:"\f01f9"}.mdi-emoticon-tongue-outline:before{content:"\f0c77"}.mdi-emoticon-wink:before{content:"\f0c78"}.mdi-emoticon-wink-outline:before{content:"\f0c79"}.mdi-engine:before{content:"\f01fa"}.mdi-engine-off:before{content:"\f0a46"}.mdi-engine-off-outline:before{content:"\f0a47"}.mdi-engine-outline:before{content:"\f01fb"}.mdi-epsilon:before{content:"\f10e0"}.mdi-equal:before{content:"\f01fc"}.mdi-equal-box:before{content:"\f01fd"}.mdi-equalizer:before{content:"\f0ea2"}.mdi-equalizer-outline:before{content:"\f0ea3"}.mdi-eraser:before{content:"\f01fe"}.mdi-eraser-variant:before{content:"\f0642"}.mdi-escalator:before{content:"\f01ff"}.mdi-escalator-box:before{content:"\f1399"}.mdi-escalator-down:before{content:"\f12c0"}.mdi-escalator-up:before{content:"\f12bf"}.mdi-eslint:before{content:"\f0c7a"}.mdi-et:before{content:"\f0ab3"}.mdi-ethereum:before{content:"\f086a"}.mdi-ethernet:before{content:"\f0200"}.mdi-ethernet-cable:before{content:"\f0201"}.mdi-ethernet-cable-off:before{content:"\f0202"}.mdi-ethernet-off:before{content:"\f1cd1"}.mdi-ev-plug-ccs1:before{content:"\f1519"}.mdi-ev-plug-ccs2:before{content:"\f151a"}.mdi-ev-plug-chademo:before{content:"\f151b"}.mdi-ev-plug-tesla:before{content:"\f151c"}.mdi-ev-plug-type1:before{content:"\f151d"}.mdi-ev-plug-type2:before{content:"\f151e"}.mdi-ev-station:before{content:"\f05f1"}.mdi-evernote:before{content:"\f0204"}.mdi-excavator:before{content:"\f1025"}.mdi-exclamation:before{content:"\f0205"}.mdi-exclamation-thick:before{content:"\f1238"}.mdi-exit-run:before{content:"\f0a48"}.mdi-exit-to-app:before{content:"\f0206"}.mdi-expand-all:before{content:"\f0ab4"}.mdi-expand-all-outline:before{content:"\f0ab5"}.mdi-expansion-card:before{content:"\f08ae"}.mdi-expansion-card-variant:before{content:"\f0fb2"}.mdi-exponent:before{content:"\f0963"}.mdi-exponent-box:before{content:"\f0964"}.mdi-export:before{content:"\f0207"}.mdi-export-variant:before{content:"\f0b93"}.mdi-eye:before{content:"\f0208"}.mdi-eye-arrow-left:before{content:"\f18fd"}.mdi-eye-arrow-left-outline:before{content:"\f18fe"}.mdi-eye-arrow-right:before{content:"\f18ff"}.mdi-eye-arrow-right-outline:before{content:"\f1900"}.mdi-eye-check:before{content:"\f0d04"}.mdi-eye-check-outline:before{content:"\f0d05"}.mdi-eye-circle:before{content:"\f0b94"}.mdi-eye-circle-outline:before{content:"\f0b95"}.mdi-eye-closed:before{content:"\f1ca3"}.mdi-eye-lock:before{content:"\f1c06"}.mdi-eye-lock-open:before{content:"\f1c07"}.mdi-eye-lock-open-outline:before{content:"\f1c08"}.mdi-eye-lock-outline:before{content:"\f1c09"}.mdi-eye-minus:before{content:"\f1026"}.mdi-eye-minus-outline:before{content:"\f1027"}.mdi-eye-off:before{content:"\f0209"}.mdi-eye-off-outline:before{content:"\f06d1"}.mdi-eye-outline:before{content:"\f06d0"}.mdi-eye-plus:before{content:"\f086b"}.mdi-eye-plus-outline:before{content:"\f086c"}.mdi-eye-refresh:before{content:"\f197c"}.mdi-eye-refresh-outline:before{content:"\f197d"}.mdi-eye-remove:before{content:"\f15e3"}.mdi-eye-remove-outline:before{content:"\f15e4"}.mdi-eye-settings:before{content:"\f086d"}.mdi-eye-settings-outline:before{content:"\f086e"}.mdi-eyedropper:before{content:"\f020a"}.mdi-eyedropper-minus:before{content:"\f13dd"}.mdi-eyedropper-off:before{content:"\f13df"}.mdi-eyedropper-plus:before{content:"\f13dc"}.mdi-eyedropper-remove:before{content:"\f13de"}.mdi-eyedropper-variant:before{content:"\f020b"}.mdi-face-agent:before{content:"\f0d70"}.mdi-face-man:before{content:"\f0643"}.mdi-face-man-outline:before{content:"\f0b96"}.mdi-face-man-profile:before{content:"\f0644"}.mdi-face-man-shimmer:before{content:"\f15cc"}.mdi-face-man-shimmer-outline:before{content:"\f15cd"}.mdi-face-mask:before{content:"\f1586"}.mdi-face-mask-outline:before{content:"\f1587"}.mdi-face-recognition:before{content:"\f0c7b"}.mdi-face-woman:before{content:"\f1077"}.mdi-face-woman-outline:before{content:"\f1078"}.mdi-face-woman-profile:before{content:"\f1076"}.mdi-face-woman-shimmer:before{content:"\f15ce"}.mdi-face-woman-shimmer-outline:before{content:"\f15cf"}.mdi-facebook:before{content:"\f020c"}.mdi-facebook-gaming:before{content:"\f07dd"}.mdi-facebook-messenger:before{content:"\f020e"}.mdi-facebook-workplace:before{content:"\f0b31"}.mdi-factory:before{content:"\f020f"}.mdi-family-tree:before{content:"\f160e"}.mdi-fan:before{content:"\f0210"}.mdi-fan-alert:before{content:"\f146c"}.mdi-fan-auto:before{content:"\f171d"}.mdi-fan-chevron-down:before{content:"\f146d"}.mdi-fan-chevron-up:before{content:"\f146e"}.mdi-fan-clock:before{content:"\f1a3a"}.mdi-fan-minus:before{content:"\f1470"}.mdi-fan-off:before{content:"\f081d"}.mdi-fan-plus:before{content:"\f146f"}.mdi-fan-remove:before{content:"\f1471"}.mdi-fan-speed-1:before{content:"\f1472"}.mdi-fan-speed-2:before{content:"\f1473"}.mdi-fan-speed-3:before{content:"\f1474"}.mdi-fast-forward:before{content:"\f0211"}.mdi-fast-forward-10:before{content:"\f0d71"}.mdi-fast-forward-15:before{content:"\f193a"}.mdi-fast-forward-30:before{content:"\f0d06"}.mdi-fast-forward-45:before{content:"\f1b12"}.mdi-fast-forward-5:before{content:"\f11f8"}.mdi-fast-forward-60:before{content:"\f160b"}.mdi-fast-forward-outline:before{content:"\f06d2"}.mdi-faucet:before{content:"\f1b29"}.mdi-faucet-variant:before{content:"\f1b2a"}.mdi-fax:before{content:"\f0212"}.mdi-feather:before{content:"\f06d3"}.mdi-feature-search:before{content:"\f0a49"}.mdi-feature-search-outline:before{content:"\f0a4a"}.mdi-fedora:before{content:"\f08db"}.mdi-fence:before{content:"\f179a"}.mdi-fence-electric:before{content:"\f17f6"}.mdi-fencing:before{content:"\f14c1"}.mdi-ferris-wheel:before{content:"\f0ea4"}.mdi-ferry:before{content:"\f0213"}.mdi-file:before{content:"\f0214"}.mdi-file-account:before{content:"\f073b"}.mdi-file-account-outline:before{content:"\f1028"}.mdi-file-alert:before{content:"\f0a4b"}.mdi-file-alert-outline:before{content:"\f0a4c"}.mdi-file-arrow-left-right:before{content:"\f1a93"}.mdi-file-arrow-left-right-outline:before{content:"\f1a94"}.mdi-file-arrow-up-down:before{content:"\f1a95"}.mdi-file-arrow-up-down-outline:before{content:"\f1a96"}.mdi-file-cabinet:before{content:"\f0ab6"}.mdi-file-cad:before{content:"\f0eeb"}.mdi-file-cad-box:before{content:"\f0eec"}.mdi-file-cancel:before{content:"\f0dc6"}.mdi-file-cancel-outline:before{content:"\f0dc7"}.mdi-file-certificate:before{content:"\f1186"}.mdi-file-certificate-outline:before{content:"\f1187"}.mdi-file-chart:before{content:"\f0215"}.mdi-file-chart-check:before{content:"\f19c6"}.mdi-file-chart-check-outline:before{content:"\f19c7"}.mdi-file-chart-outline:before{content:"\f1029"}.mdi-file-check:before{content:"\f0216"}.mdi-file-check-outline:before{content:"\f0e29"}.mdi-file-clock:before{content:"\f12e1"}.mdi-file-clock-outline:before{content:"\f12e2"}.mdi-file-cloud:before{content:"\f0217"}.mdi-file-cloud-outline:before{content:"\f102a"}.mdi-file-code:before{content:"\f022e"}.mdi-file-code-outline:before{content:"\f102b"}.mdi-file-cog:before{content:"\f107b"}.mdi-file-cog-outline:before{content:"\f107c"}.mdi-file-compare:before{content:"\f08aa"}.mdi-file-delimited:before{content:"\f0218"}.mdi-file-delimited-outline:before{content:"\f0ea5"}.mdi-file-document:before{content:"\f0219"}.mdi-file-document-alert:before{content:"\f1a97"}.mdi-file-document-alert-outline:before{content:"\f1a98"}.mdi-file-document-arrow-right:before{content:"\f1c0f"}.mdi-file-document-arrow-right-outline:before{content:"\f1c10"}.mdi-file-document-check:before{content:"\f1a99"}.mdi-file-document-check-outline:before{content:"\f1a9a"}.mdi-file-document-edit:before{content:"\f0dc8"}.mdi-file-document-edit-outline:before{content:"\f0dc9"}.mdi-file-document-minus:before{content:"\f1a9b"}.mdi-file-document-minus-outline:before{content:"\f1a9c"}.mdi-file-document-multiple:before{content:"\f1517"}.mdi-file-document-multiple-outline:before{content:"\f1518"}.mdi-file-document-outline:before{content:"\f09ee"}.mdi-file-document-plus:before{content:"\f1a9d"}.mdi-file-document-plus-outline:before{content:"\f1a9e"}.mdi-file-document-refresh:before{content:"\f1c7a"}.mdi-file-document-refresh-outline:before{content:"\f1c7b"}.mdi-file-document-remove:before{content:"\f1a9f"}.mdi-file-document-remove-outline:before{content:"\f1aa0"}.mdi-file-download:before{content:"\f0965"}.mdi-file-download-outline:before{content:"\f0966"}.mdi-file-edit:before{content:"\f11e7"}.mdi-file-edit-outline:before{content:"\f11e8"}.mdi-file-excel:before{content:"\f021b"}.mdi-file-excel-box:before{content:"\f021c"}.mdi-file-excel-box-outline:before{content:"\f102c"}.mdi-file-excel-outline:before{content:"\f102d"}.mdi-file-export:before{content:"\f021d"}.mdi-file-export-outline:before{content:"\f102e"}.mdi-file-eye:before{content:"\f0dca"}.mdi-file-eye-outline:before{content:"\f0dcb"}.mdi-file-find:before{content:"\f021e"}.mdi-file-find-outline:before{content:"\f0b97"}.mdi-file-gif-box:before{content:"\f0d78"}.mdi-file-hidden:before{content:"\f0613"}.mdi-file-image:before{content:"\f021f"}.mdi-file-image-marker:before{content:"\f1772"}.mdi-file-image-marker-outline:before{content:"\f1773"}.mdi-file-image-minus:before{content:"\f193b"}.mdi-file-image-minus-outline:before{content:"\f193c"}.mdi-file-image-outline:before{content:"\f0eb0"}.mdi-file-image-plus:before{content:"\f193d"}.mdi-file-image-plus-outline:before{content:"\f193e"}.mdi-file-image-remove:before{content:"\f193f"}.mdi-file-image-remove-outline:before{content:"\f1940"}.mdi-file-import:before{content:"\f0220"}.mdi-file-import-outline:before{content:"\f102f"}.mdi-file-jpg-box:before{content:"\f0225"}.mdi-file-key:before{content:"\f1184"}.mdi-file-key-outline:before{content:"\f1185"}.mdi-file-link:before{content:"\f1177"}.mdi-file-link-outline:before{content:"\f1178"}.mdi-file-lock:before{content:"\f0221"}.mdi-file-lock-open:before{content:"\f19c8"}.mdi-file-lock-open-outline:before{content:"\f19c9"}.mdi-file-lock-outline:before{content:"\f1030"}.mdi-file-marker:before{content:"\f1774"}.mdi-file-marker-outline:before{content:"\f1775"}.mdi-file-minus:before{content:"\f1aa1"}.mdi-file-minus-outline:before{content:"\f1aa2"}.mdi-file-move:before{content:"\f0ab9"}.mdi-file-move-outline:before{content:"\f1031"}.mdi-file-multiple:before{content:"\f0222"}.mdi-file-multiple-outline:before{content:"\f1032"}.mdi-file-music:before{content:"\f0223"}.mdi-file-music-outline:before{content:"\f0e2a"}.mdi-file-outline:before{content:"\f0224"}.mdi-file-pdf-box:before{content:"\f0226"}.mdi-file-percent:before{content:"\f081e"}.mdi-file-percent-outline:before{content:"\f1033"}.mdi-file-phone:before{content:"\f1179"}.mdi-file-phone-outline:before{content:"\f117a"}.mdi-file-plus:before{content:"\f0752"}.mdi-file-plus-outline:before{content:"\f0eed"}.mdi-file-png-box:before{content:"\f0e2d"}.mdi-file-powerpoint:before{content:"\f0227"}.mdi-file-powerpoint-box:before{content:"\f0228"}.mdi-file-powerpoint-box-outline:before{content:"\f1034"}.mdi-file-powerpoint-outline:before{content:"\f1035"}.mdi-file-presentation-box:before{content:"\f0229"}.mdi-file-question:before{content:"\f086f"}.mdi-file-question-outline:before{content:"\f1036"}.mdi-file-refresh:before{content:"\f0918"}.mdi-file-refresh-outline:before{content:"\f0541"}.mdi-file-remove:before{content:"\f0b98"}.mdi-file-remove-outline:before{content:"\f1037"}.mdi-file-replace:before{content:"\f0b32"}.mdi-file-replace-outline:before{content:"\f0b33"}.mdi-file-restore:before{content:"\f0670"}.mdi-file-restore-outline:before{content:"\f1038"}.mdi-file-rotate-left:before{content:"\f1a3b"}.mdi-file-rotate-left-outline:before{content:"\f1a3c"}.mdi-file-rotate-right:before{content:"\f1a3d"}.mdi-file-rotate-right-outline:before{content:"\f1a3e"}.mdi-file-search:before{content:"\f0c7c"}.mdi-file-search-outline:before{content:"\f0c7d"}.mdi-file-send:before{content:"\f022a"}.mdi-file-send-outline:before{content:"\f1039"}.mdi-file-settings:before{content:"\f1079"}.mdi-file-settings-outline:before{content:"\f107a"}.mdi-file-sign:before{content:"\f19c3"}.mdi-file-star:before{content:"\f103a"}.mdi-file-star-four-points:before{content:"\f1c2d"}.mdi-file-star-four-points-outline:before{content:"\f1c2e"}.mdi-file-star-outline:before{content:"\f103b"}.mdi-file-swap:before{content:"\f0fb4"}.mdi-file-swap-outline:before{content:"\f0fb5"}.mdi-file-sync:before{content:"\f1216"}.mdi-file-sync-outline:before{content:"\f1217"}.mdi-file-table:before{content:"\f0c7e"}.mdi-file-table-box:before{content:"\f10e1"}.mdi-file-table-box-multiple:before{content:"\f10e2"}.mdi-file-table-box-multiple-outline:before{content:"\f10e3"}.mdi-file-table-box-outline:before{content:"\f10e4"}.mdi-file-table-outline:before{content:"\f0c7f"}.mdi-file-tree:before{content:"\f0645"}.mdi-file-tree-outline:before{content:"\f13d2"}.mdi-file-undo:before{content:"\f08dc"}.mdi-file-undo-outline:before{content:"\f103c"}.mdi-file-upload:before{content:"\f0a4d"}.mdi-file-upload-outline:before{content:"\f0a4e"}.mdi-file-video:before{content:"\f022b"}.mdi-file-video-outline:before{content:"\f0e2c"}.mdi-file-word:before{content:"\f022c"}.mdi-file-word-box:before{content:"\f022d"}.mdi-file-word-box-outline:before{content:"\f103d"}.mdi-file-word-outline:before{content:"\f103e"}.mdi-file-xml-box:before{content:"\f1b4b"}.mdi-film:before{content:"\f022f"}.mdi-filmstrip:before{content:"\f0230"}.mdi-filmstrip-box:before{content:"\f0332"}.mdi-filmstrip-box-multiple:before{content:"\f0d18"}.mdi-filmstrip-off:before{content:"\f0231"}.mdi-filter:before{content:"\f0232"}.mdi-filter-check:before{content:"\f18ec"}.mdi-filter-check-outline:before{content:"\f18ed"}.mdi-filter-cog:before{content:"\f1aa3"}.mdi-filter-cog-outline:before{content:"\f1aa4"}.mdi-filter-menu:before{content:"\f10e5"}.mdi-filter-menu-outline:before{content:"\f10e6"}.mdi-filter-minus:before{content:"\f0eee"}.mdi-filter-minus-outline:before{content:"\f0eef"}.mdi-filter-multiple:before{content:"\f1a3f"}.mdi-filter-multiple-outline:before{content:"\f1a40"}.mdi-filter-off:before{content:"\f14ef"}.mdi-filter-off-outline:before{content:"\f14f0"}.mdi-filter-outline:before{content:"\f0233"}.mdi-filter-plus:before{content:"\f0ef0"}.mdi-filter-plus-outline:before{content:"\f0ef1"}.mdi-filter-remove:before{content:"\f0234"}.mdi-filter-remove-outline:before{content:"\f0235"}.mdi-filter-settings:before{content:"\f1aa5"}.mdi-filter-settings-outline:before{content:"\f1aa6"}.mdi-filter-variant:before{content:"\f0236"}.mdi-filter-variant-minus:before{content:"\f1112"}.mdi-filter-variant-plus:before{content:"\f1113"}.mdi-filter-variant-remove:before{content:"\f103f"}.mdi-finance:before{content:"\f081f"}.mdi-find-replace:before{content:"\f06d4"}.mdi-fingerprint:before{content:"\f0237"}.mdi-fingerprint-off:before{content:"\f0eb1"}.mdi-fire:before{content:"\f0238"}.mdi-fire-alert:before{content:"\f15d7"}.mdi-fire-circle:before{content:"\f1807"}.mdi-fire-extinguisher:before{content:"\f0ef2"}.mdi-fire-hydrant:before{content:"\f1137"}.mdi-fire-hydrant-alert:before{content:"\f1138"}.mdi-fire-hydrant-off:before{content:"\f1139"}.mdi-fire-off:before{content:"\f1722"}.mdi-fire-station:before{content:"\f1cc3"}.mdi-fire-truck:before{content:"\f08ab"}.mdi-firebase:before{content:"\f0967"}.mdi-firefox:before{content:"\f0239"}.mdi-fireplace:before{content:"\f0e2e"}.mdi-fireplace-off:before{content:"\f0e2f"}.mdi-firewire:before{content:"\f05be"}.mdi-firework:before{content:"\f0e30"}.mdi-firework-off:before{content:"\f1723"}.mdi-fish:before{content:"\f023a"}.mdi-fish-off:before{content:"\f13f3"}.mdi-fishbowl:before{content:"\f0ef3"}.mdi-fishbowl-outline:before{content:"\f0ef4"}.mdi-fit-to-page:before{content:"\f0ef5"}.mdi-fit-to-page-outline:before{content:"\f0ef6"}.mdi-fit-to-screen:before{content:"\f18f4"}.mdi-fit-to-screen-outline:before{content:"\f18f5"}.mdi-flag:before{content:"\f023b"}.mdi-flag-checkered:before{content:"\f023c"}.mdi-flag-minus:before{content:"\f0b99"}.mdi-flag-minus-outline:before{content:"\f10b2"}.mdi-flag-off:before{content:"\f18ee"}.mdi-flag-off-outline:before{content:"\f18ef"}.mdi-flag-outline:before{content:"\f023d"}.mdi-flag-plus:before{content:"\f0b9a"}.mdi-flag-plus-outline:before{content:"\f10b3"}.mdi-flag-remove:before{content:"\f0b9b"}.mdi-flag-remove-outline:before{content:"\f10b4"}.mdi-flag-triangle:before{content:"\f023f"}.mdi-flag-variant:before{content:"\f0240"}.mdi-flag-variant-minus:before{content:"\f1bb4"}.mdi-flag-variant-minus-outline:before{content:"\f1bb5"}.mdi-flag-variant-off:before{content:"\f1bb0"}.mdi-flag-variant-off-outline:before{content:"\f1bb1"}.mdi-flag-variant-outline:before{content:"\f023e"}.mdi-flag-variant-plus:before{content:"\f1bb2"}.mdi-flag-variant-plus-outline:before{content:"\f1bb3"}.mdi-flag-variant-remove:before{content:"\f1bb6"}.mdi-flag-variant-remove-outline:before{content:"\f1bb7"}.mdi-flare:before{content:"\f0d72"}.mdi-flash:before{content:"\f0241"}.mdi-flash-alert:before{content:"\f0ef7"}.mdi-flash-alert-outline:before{content:"\f0ef8"}.mdi-flash-auto:before{content:"\f0242"}.mdi-flash-off:before{content:"\f0243"}.mdi-flash-off-outline:before{content:"\f1b45"}.mdi-flash-outline:before{content:"\f06d5"}.mdi-flash-red-eye:before{content:"\f067b"}.mdi-flash-triangle:before{content:"\f1b1d"}.mdi-flash-triangle-outline:before{content:"\f1b1e"}.mdi-flashlight:before{content:"\f0244"}.mdi-flashlight-off:before{content:"\f0245"}.mdi-flask:before{content:"\f0093"}.mdi-flask-empty:before{content:"\f0094"}.mdi-flask-empty-minus:before{content:"\f123a"}.mdi-flask-empty-minus-outline:before{content:"\f123b"}.mdi-flask-empty-off:before{content:"\f13f4"}.mdi-flask-empty-off-outline:before{content:"\f13f5"}.mdi-flask-empty-outline:before{content:"\f0095"}.mdi-flask-empty-plus:before{content:"\f123c"}.mdi-flask-empty-plus-outline:before{content:"\f123d"}.mdi-flask-empty-remove:before{content:"\f123e"}.mdi-flask-empty-remove-outline:before{content:"\f123f"}.mdi-flask-minus:before{content:"\f1240"}.mdi-flask-minus-outline:before{content:"\f1241"}.mdi-flask-off:before{content:"\f13f6"}.mdi-flask-off-outline:before{content:"\f13f7"}.mdi-flask-outline:before{content:"\f0096"}.mdi-flask-plus:before{content:"\f1242"}.mdi-flask-plus-outline:before{content:"\f1243"}.mdi-flask-remove:before{content:"\f1244"}.mdi-flask-remove-outline:before{content:"\f1245"}.mdi-flask-round-bottom:before{content:"\f124b"}.mdi-flask-round-bottom-empty:before{content:"\f124c"}.mdi-flask-round-bottom-empty-outline:before{content:"\f124d"}.mdi-flask-round-bottom-outline:before{content:"\f124e"}.mdi-fleur-de-lis:before{content:"\f1303"}.mdi-flip-horizontal:before{content:"\f10e7"}.mdi-flip-to-back:before{content:"\f0247"}.mdi-flip-to-front:before{content:"\f0248"}.mdi-flip-vertical:before{content:"\f10e8"}.mdi-floor-lamp:before{content:"\f08dd"}.mdi-floor-lamp-dual:before{content:"\f1040"}.mdi-floor-lamp-dual-outline:before{content:"\f17ce"}.mdi-floor-lamp-outline:before{content:"\f17c8"}.mdi-floor-lamp-torchiere:before{content:"\f1747"}.mdi-floor-lamp-torchiere-outline:before{content:"\f17d6"}.mdi-floor-lamp-torchiere-variant:before{content:"\f1041"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"\f17cf"}.mdi-floor-plan:before{content:"\f0821"}.mdi-floppy:before{content:"\f0249"}.mdi-floppy-variant:before{content:"\f09ef"}.mdi-flower:before{content:"\f024a"}.mdi-flower-outline:before{content:"\f09f0"}.mdi-flower-pollen:before{content:"\f1885"}.mdi-flower-pollen-outline:before{content:"\f1886"}.mdi-flower-poppy:before{content:"\f0d08"}.mdi-flower-tulip:before{content:"\f09f1"}.mdi-flower-tulip-outline:before{content:"\f09f2"}.mdi-focus-auto:before{content:"\f0f4e"}.mdi-focus-field:before{content:"\f0f4f"}.mdi-focus-field-horizontal:before{content:"\f0f50"}.mdi-focus-field-vertical:before{content:"\f0f51"}.mdi-folder:before{content:"\f024b"}.mdi-folder-account:before{content:"\f024c"}.mdi-folder-account-outline:before{content:"\f0b9c"}.mdi-folder-alert:before{content:"\f0dcc"}.mdi-folder-alert-outline:before{content:"\f0dcd"}.mdi-folder-arrow-down:before{content:"\f19e8"}.mdi-folder-arrow-down-outline:before{content:"\f19e9"}.mdi-folder-arrow-left:before{content:"\f19ea"}.mdi-folder-arrow-left-outline:before{content:"\f19eb"}.mdi-folder-arrow-left-right:before{content:"\f19ec"}.mdi-folder-arrow-left-right-outline:before{content:"\f19ed"}.mdi-folder-arrow-right:before{content:"\f19ee"}.mdi-folder-arrow-right-outline:before{content:"\f19ef"}.mdi-folder-arrow-up:before{content:"\f19f0"}.mdi-folder-arrow-up-down:before{content:"\f19f1"}.mdi-folder-arrow-up-down-outline:before{content:"\f19f2"}.mdi-folder-arrow-up-outline:before{content:"\f19f3"}.mdi-folder-cancel:before{content:"\f19f4"}.mdi-folder-cancel-outline:before{content:"\f19f5"}.mdi-folder-check:before{content:"\f197e"}.mdi-folder-check-outline:before{content:"\f197f"}.mdi-folder-clock:before{content:"\f0aba"}.mdi-folder-clock-outline:before{content:"\f0abb"}.mdi-folder-cog:before{content:"\f107f"}.mdi-folder-cog-outline:before{content:"\f1080"}.mdi-folder-download:before{content:"\f024d"}.mdi-folder-download-outline:before{content:"\f10e9"}.mdi-folder-edit:before{content:"\f08de"}.mdi-folder-edit-outline:before{content:"\f0dce"}.mdi-folder-eye:before{content:"\f178a"}.mdi-folder-eye-outline:before{content:"\f178b"}.mdi-folder-file:before{content:"\f19f6"}.mdi-folder-file-outline:before{content:"\f19f7"}.mdi-folder-google-drive:before{content:"\f024e"}.mdi-folder-heart:before{content:"\f10ea"}.mdi-folder-heart-outline:before{content:"\f10eb"}.mdi-folder-hidden:before{content:"\f179e"}.mdi-folder-home:before{content:"\f10b5"}.mdi-folder-home-outline:before{content:"\f10b6"}.mdi-folder-image:before{content:"\f024f"}.mdi-folder-information:before{content:"\f10b7"}.mdi-folder-information-outline:before{content:"\f10b8"}.mdi-folder-key:before{content:"\f08ac"}.mdi-folder-key-network:before{content:"\f08ad"}.mdi-folder-key-network-outline:before{content:"\f0c80"}.mdi-folder-key-outline:before{content:"\f10ec"}.mdi-folder-lock:before{content:"\f0250"}.mdi-folder-lock-open:before{content:"\f0251"}.mdi-folder-lock-open-outline:before{content:"\f1aa7"}.mdi-folder-lock-outline:before{content:"\f1aa8"}.mdi-folder-marker:before{content:"\f126d"}.mdi-folder-marker-outline:before{content:"\f126e"}.mdi-folder-minus:before{content:"\f1b49"}.mdi-folder-minus-outline:before{content:"\f1b4a"}.mdi-folder-move:before{content:"\f0252"}.mdi-folder-move-outline:before{content:"\f1246"}.mdi-folder-multiple:before{content:"\f0253"}.mdi-folder-multiple-image:before{content:"\f0254"}.mdi-folder-multiple-outline:before{content:"\f0255"}.mdi-folder-multiple-plus:before{content:"\f147e"}.mdi-folder-multiple-plus-outline:before{content:"\f147f"}.mdi-folder-music:before{content:"\f1359"}.mdi-folder-music-outline:before{content:"\f135a"}.mdi-folder-network:before{content:"\f0870"}.mdi-folder-network-outline:before{content:"\f0c81"}.mdi-folder-off:before{content:"\f19f8"}.mdi-folder-off-outline:before{content:"\f19f9"}.mdi-folder-open:before{content:"\f0770"}.mdi-folder-open-outline:before{content:"\f0dcf"}.mdi-folder-outline:before{content:"\f0256"}.mdi-folder-play:before{content:"\f19fa"}.mdi-folder-play-outline:before{content:"\f19fb"}.mdi-folder-plus:before{content:"\f0257"}.mdi-folder-plus-outline:before{content:"\f0b9d"}.mdi-folder-pound:before{content:"\f0d09"}.mdi-folder-pound-outline:before{content:"\f0d0a"}.mdi-folder-question:before{content:"\f19ca"}.mdi-folder-question-outline:before{content:"\f19cb"}.mdi-folder-refresh:before{content:"\f0749"}.mdi-folder-refresh-outline:before{content:"\f0542"}.mdi-folder-remove:before{content:"\f0258"}.mdi-folder-remove-outline:before{content:"\f0b9e"}.mdi-folder-search:before{content:"\f0968"}.mdi-folder-search-outline:before{content:"\f0969"}.mdi-folder-settings:before{content:"\f107d"}.mdi-folder-settings-outline:before{content:"\f107e"}.mdi-folder-star:before{content:"\f069d"}.mdi-folder-star-multiple:before{content:"\f13d3"}.mdi-folder-star-multiple-outline:before{content:"\f13d4"}.mdi-folder-star-outline:before{content:"\f0b9f"}.mdi-folder-swap:before{content:"\f0fb6"}.mdi-folder-swap-outline:before{content:"\f0fb7"}.mdi-folder-sync:before{content:"\f0d0b"}.mdi-folder-sync-outline:before{content:"\f0d0c"}.mdi-folder-table:before{content:"\f12e3"}.mdi-folder-table-outline:before{content:"\f12e4"}.mdi-folder-text:before{content:"\f0c82"}.mdi-folder-text-outline:before{content:"\f0c83"}.mdi-folder-upload:before{content:"\f0259"}.mdi-folder-upload-outline:before{content:"\f10ed"}.mdi-folder-wrench:before{content:"\f19fc"}.mdi-folder-wrench-outline:before{content:"\f19fd"}.mdi-folder-zip:before{content:"\f06eb"}.mdi-folder-zip-outline:before{content:"\f07b9"}.mdi-font-awesome:before{content:"\f003a"}.mdi-food:before{content:"\f025a"}.mdi-food-apple:before{content:"\f025b"}.mdi-food-apple-outline:before{content:"\f0c84"}.mdi-food-croissant:before{content:"\f07c8"}.mdi-food-drumstick:before{content:"\f141f"}.mdi-food-drumstick-off:before{content:"\f1468"}.mdi-food-drumstick-off-outline:before{content:"\f1469"}.mdi-food-drumstick-outline:before{content:"\f1420"}.mdi-food-fork-drink:before{content:"\f05f2"}.mdi-food-halal:before{content:"\f1572"}.mdi-food-hot-dog:before{content:"\f184b"}.mdi-food-kosher:before{content:"\f1573"}.mdi-food-off:before{content:"\f05f3"}.mdi-food-off-outline:before{content:"\f1915"}.mdi-food-outline:before{content:"\f1916"}.mdi-food-steak:before{content:"\f146a"}.mdi-food-steak-off:before{content:"\f146b"}.mdi-food-takeout-box:before{content:"\f1836"}.mdi-food-takeout-box-outline:before{content:"\f1837"}.mdi-food-turkey:before{content:"\f171c"}.mdi-food-variant:before{content:"\f025c"}.mdi-food-variant-off:before{content:"\f13e5"}.mdi-foot-print:before{content:"\f0f52"}.mdi-football:before{content:"\f025d"}.mdi-football-australian:before{content:"\f025e"}.mdi-football-helmet:before{content:"\f025f"}.mdi-forest:before{content:"\f1897"}.mdi-forest-outline:before{content:"\f1c63"}.mdi-forklift:before{content:"\f07c9"}.mdi-form-dropdown:before{content:"\f1400"}.mdi-form-select:before{content:"\f1401"}.mdi-form-textarea:before{content:"\f1095"}.mdi-form-textbox:before{content:"\f060e"}.mdi-form-textbox-lock:before{content:"\f135d"}.mdi-form-textbox-password:before{content:"\f07f5"}.mdi-format-align-bottom:before{content:"\f0753"}.mdi-format-align-center:before{content:"\f0260"}.mdi-format-align-justify:before{content:"\f0261"}.mdi-format-align-left:before{content:"\f0262"}.mdi-format-align-middle:before{content:"\f0754"}.mdi-format-align-right:before{content:"\f0263"}.mdi-format-align-top:before{content:"\f0755"}.mdi-format-annotation-minus:before{content:"\f0abc"}.mdi-format-annotation-plus:before{content:"\f0646"}.mdi-format-bold:before{content:"\f0264"}.mdi-format-clear:before{content:"\f0265"}.mdi-format-color-fill:before{content:"\f0266"}.mdi-format-color-highlight:before{content:"\f0e31"}.mdi-format-color-marker-cancel:before{content:"\f1313"}.mdi-format-color-text:before{content:"\f069e"}.mdi-format-columns:before{content:"\f08df"}.mdi-format-float-center:before{content:"\f0267"}.mdi-format-float-left:before{content:"\f0268"}.mdi-format-float-none:before{content:"\f0269"}.mdi-format-float-right:before{content:"\f026a"}.mdi-format-font:before{content:"\f06d6"}.mdi-format-font-size-decrease:before{content:"\f09f3"}.mdi-format-font-size-increase:before{content:"\f09f4"}.mdi-format-header-1:before{content:"\f026b"}.mdi-format-header-2:before{content:"\f026c"}.mdi-format-header-3:before{content:"\f026d"}.mdi-format-header-4:before{content:"\f026e"}.mdi-format-header-5:before{content:"\f026f"}.mdi-format-header-6:before{content:"\f0270"}.mdi-format-header-decrease:before{content:"\f0271"}.mdi-format-header-equal:before{content:"\f0272"}.mdi-format-header-increase:before{content:"\f0273"}.mdi-format-header-pound:before{content:"\f0274"}.mdi-format-horizontal-align-center:before{content:"\f061e"}.mdi-format-horizontal-align-left:before{content:"\f061f"}.mdi-format-horizontal-align-right:before{content:"\f0620"}.mdi-format-indent-decrease:before{content:"\f0275"}.mdi-format-indent-increase:before{content:"\f0276"}.mdi-format-italic:before{content:"\f0277"}.mdi-format-letter-case:before{content:"\f0b34"}.mdi-format-letter-case-lower:before{content:"\f0b35"}.mdi-format-letter-case-upper:before{content:"\f0b36"}.mdi-format-letter-ends-with:before{content:"\f0fb8"}.mdi-format-letter-matches:before{content:"\f0fb9"}.mdi-format-letter-spacing:before{content:"\f1956"}.mdi-format-letter-spacing-variant:before{content:"\f1afb"}.mdi-format-letter-starts-with:before{content:"\f0fba"}.mdi-format-line-height:before{content:"\f1afc"}.mdi-format-line-spacing:before{content:"\f0278"}.mdi-format-line-style:before{content:"\f05c8"}.mdi-format-line-weight:before{content:"\f05c9"}.mdi-format-list-bulleted:before{content:"\f0279"}.mdi-format-list-bulleted-square:before{content:"\f0dd0"}.mdi-format-list-bulleted-triangle:before{content:"\f0eb2"}.mdi-format-list-bulleted-type:before{content:"\f027a"}.mdi-format-list-checkbox:before{content:"\f096a"}.mdi-format-list-checks:before{content:"\f0756"}.mdi-format-list-group:before{content:"\f1860"}.mdi-format-list-group-plus:before{content:"\f1b56"}.mdi-format-list-numbered:before{content:"\f027b"}.mdi-format-list-numbered-rtl:before{content:"\f0d0d"}.mdi-format-list-text:before{content:"\f126f"}.mdi-format-overline:before{content:"\f0eb3"}.mdi-format-page-break:before{content:"\f06d7"}.mdi-format-page-split:before{content:"\f1917"}.mdi-format-paint:before{content:"\f027c"}.mdi-format-paragraph:before{content:"\f027d"}.mdi-format-paragraph-spacing:before{content:"\f1afd"}.mdi-format-pilcrow:before{content:"\f06d8"}.mdi-format-pilcrow-arrow-left:before{content:"\f0286"}.mdi-format-pilcrow-arrow-right:before{content:"\f0285"}.mdi-format-quote-close:before{content:"\f027e"}.mdi-format-quote-close-outline:before{content:"\f11a8"}.mdi-format-quote-open:before{content:"\f0757"}.mdi-format-quote-open-outline:before{content:"\f11a7"}.mdi-format-rotate-90:before{content:"\f06aa"}.mdi-format-section:before{content:"\f069f"}.mdi-format-size:before{content:"\f027f"}.mdi-format-strikethrough:before{content:"\f0280"}.mdi-format-strikethrough-variant:before{content:"\f0281"}.mdi-format-subscript:before{content:"\f0282"}.mdi-format-superscript:before{content:"\f0283"}.mdi-format-text:before{content:"\f0284"}.mdi-format-text-rotation-angle-down:before{content:"\f0fbb"}.mdi-format-text-rotation-angle-up:before{content:"\f0fbc"}.mdi-format-text-rotation-down:before{content:"\f0d73"}.mdi-format-text-rotation-down-vertical:before{content:"\f0fbd"}.mdi-format-text-rotation-none:before{content:"\f0d74"}.mdi-format-text-rotation-up:before{content:"\f0fbe"}.mdi-format-text-rotation-vertical:before{content:"\f0fbf"}.mdi-format-text-variant:before{content:"\f0e32"}.mdi-format-text-variant-outline:before{content:"\f150f"}.mdi-format-text-wrapping-clip:before{content:"\f0d0e"}.mdi-format-text-wrapping-overflow:before{content:"\f0d0f"}.mdi-format-text-wrapping-wrap:before{content:"\f0d10"}.mdi-format-textbox:before{content:"\f0d11"}.mdi-format-title:before{content:"\f05f4"}.mdi-format-underline:before{content:"\f0287"}.mdi-format-underline-wavy:before{content:"\f18e9"}.mdi-format-vertical-align-bottom:before{content:"\f0621"}.mdi-format-vertical-align-center:before{content:"\f0622"}.mdi-format-vertical-align-top:before{content:"\f0623"}.mdi-format-wrap-inline:before{content:"\f0288"}.mdi-format-wrap-square:before{content:"\f0289"}.mdi-format-wrap-tight:before{content:"\f028a"}.mdi-format-wrap-top-bottom:before{content:"\f028b"}.mdi-forum:before{content:"\f028c"}.mdi-forum-minus:before{content:"\f1aa9"}.mdi-forum-minus-outline:before{content:"\f1aaa"}.mdi-forum-outline:before{content:"\f0822"}.mdi-forum-plus:before{content:"\f1aab"}.mdi-forum-plus-outline:before{content:"\f1aac"}.mdi-forum-remove:before{content:"\f1aad"}.mdi-forum-remove-outline:before{content:"\f1aae"}.mdi-forward:before{content:"\f028d"}.mdi-forwardburger:before{content:"\f0d75"}.mdi-fountain:before{content:"\f096b"}.mdi-fountain-pen:before{content:"\f0d12"}.mdi-fountain-pen-tip:before{content:"\f0d13"}.mdi-fraction-one-half:before{content:"\f1992"}.mdi-freebsd:before{content:"\f08e0"}.mdi-french-fries:before{content:"\f1957"}.mdi-frequently-asked-questions:before{content:"\f0eb4"}.mdi-fridge:before{content:"\f0290"}.mdi-fridge-alert:before{content:"\f11b1"}.mdi-fridge-alert-outline:before{content:"\f11b2"}.mdi-fridge-bottom:before{content:"\f0292"}.mdi-fridge-industrial:before{content:"\f15ee"}.mdi-fridge-industrial-alert:before{content:"\f15ef"}.mdi-fridge-industrial-alert-outline:before{content:"\f15f0"}.mdi-fridge-industrial-off:before{content:"\f15f1"}.mdi-fridge-industrial-off-outline:before{content:"\f15f2"}.mdi-fridge-industrial-outline:before{content:"\f15f3"}.mdi-fridge-off:before{content:"\f11af"}.mdi-fridge-off-outline:before{content:"\f11b0"}.mdi-fridge-outline:before{content:"\f028f"}.mdi-fridge-top:before{content:"\f0291"}.mdi-fridge-variant:before{content:"\f15f4"}.mdi-fridge-variant-alert:before{content:"\f15f5"}.mdi-fridge-variant-alert-outline:before{content:"\f15f6"}.mdi-fridge-variant-off:before{content:"\f15f7"}.mdi-fridge-variant-off-outline:before{content:"\f15f8"}.mdi-fridge-variant-outline:before{content:"\f15f9"}.mdi-fruit-cherries:before{content:"\f1042"}.mdi-fruit-cherries-off:before{content:"\f13f8"}.mdi-fruit-citrus:before{content:"\f1043"}.mdi-fruit-citrus-off:before{content:"\f13f9"}.mdi-fruit-grapes:before{content:"\f1044"}.mdi-fruit-grapes-outline:before{content:"\f1045"}.mdi-fruit-pear:before{content:"\f1a0e"}.mdi-fruit-pineapple:before{content:"\f1046"}.mdi-fruit-watermelon:before{content:"\f1047"}.mdi-fuel:before{content:"\f07ca"}.mdi-fuel-cell:before{content:"\f18b5"}.mdi-fullscreen:before{content:"\f0293"}.mdi-fullscreen-exit:before{content:"\f0294"}.mdi-function:before{content:"\f0295"}.mdi-function-variant:before{content:"\f0871"}.mdi-furigana-horizontal:before{content:"\f1081"}.mdi-furigana-vertical:before{content:"\f1082"}.mdi-fuse:before{content:"\f0c85"}.mdi-fuse-alert:before{content:"\f142d"}.mdi-fuse-blade:before{content:"\f0c86"}.mdi-fuse-off:before{content:"\f142c"}.mdi-gamepad:before{content:"\f0296"}.mdi-gamepad-circle:before{content:"\f0e33"}.mdi-gamepad-circle-down:before{content:"\f0e34"}.mdi-gamepad-circle-left:before{content:"\f0e35"}.mdi-gamepad-circle-outline:before{content:"\f0e36"}.mdi-gamepad-circle-right:before{content:"\f0e37"}.mdi-gamepad-circle-up:before{content:"\f0e38"}.mdi-gamepad-down:before{content:"\f0e39"}.mdi-gamepad-left:before{content:"\f0e3a"}.mdi-gamepad-outline:before{content:"\f1919"}.mdi-gamepad-right:before{content:"\f0e3b"}.mdi-gamepad-round:before{content:"\f0e3c"}.mdi-gamepad-round-down:before{content:"\f0e3d"}.mdi-gamepad-round-left:before{content:"\f0e3e"}.mdi-gamepad-round-outline:before{content:"\f0e3f"}.mdi-gamepad-round-right:before{content:"\f0e40"}.mdi-gamepad-round-up:before{content:"\f0e41"}.mdi-gamepad-square:before{content:"\f0eb5"}.mdi-gamepad-square-outline:before{content:"\f0eb6"}.mdi-gamepad-up:before{content:"\f0e42"}.mdi-gamepad-variant:before{content:"\f0297"}.mdi-gamepad-variant-outline:before{content:"\f0eb7"}.mdi-gamma:before{content:"\f10ee"}.mdi-gantry-crane:before{content:"\f0dd1"}.mdi-garage:before{content:"\f06d9"}.mdi-garage-alert:before{content:"\f0872"}.mdi-garage-alert-variant:before{content:"\f12d5"}.mdi-garage-lock:before{content:"\f17fb"}.mdi-garage-open:before{content:"\f06da"}.mdi-garage-open-variant:before{content:"\f12d4"}.mdi-garage-variant:before{content:"\f12d3"}.mdi-garage-variant-lock:before{content:"\f17fc"}.mdi-gas-burner:before{content:"\f1a1b"}.mdi-gas-cylinder:before{content:"\f0647"}.mdi-gas-station:before{content:"\f0298"}.mdi-gas-station-in-use:before{content:"\f1cc4"}.mdi-gas-station-in-use-outline:before{content:"\f1cc5"}.mdi-gas-station-off:before{content:"\f1409"}.mdi-gas-station-off-outline:before{content:"\f140a"}.mdi-gas-station-outline:before{content:"\f0eb8"}.mdi-gate:before{content:"\f0299"}.mdi-gate-alert:before{content:"\f17f8"}.mdi-gate-and:before{content:"\f08e1"}.mdi-gate-arrow-left:before{content:"\f17f7"}.mdi-gate-arrow-right:before{content:"\f1169"}.mdi-gate-buffer:before{content:"\f1afe"}.mdi-gate-nand:before{content:"\f08e2"}.mdi-gate-nor:before{content:"\f08e3"}.mdi-gate-not:before{content:"\f08e4"}.mdi-gate-open:before{content:"\f116a"}.mdi-gate-or:before{content:"\f08e5"}.mdi-gate-xnor:before{content:"\f08e6"}.mdi-gate-xor:before{content:"\f08e7"}.mdi-gatsby:before{content:"\f0e43"}.mdi-gauge:before{content:"\f029a"}.mdi-gauge-empty:before{content:"\f0873"}.mdi-gauge-full:before{content:"\f0874"}.mdi-gauge-low:before{content:"\f0875"}.mdi-gavel:before{content:"\f029b"}.mdi-gender-female:before{content:"\f029c"}.mdi-gender-male:before{content:"\f029d"}.mdi-gender-male-female:before{content:"\f029e"}.mdi-gender-male-female-variant:before{content:"\f113f"}.mdi-gender-non-binary:before{content:"\f1140"}.mdi-gender-transgender:before{content:"\f029f"}.mdi-generator-mobile:before{content:"\f1c8a"}.mdi-generator-portable:before{content:"\f1c8b"}.mdi-generator-stationary:before{content:"\f1c8c"}.mdi-gentoo:before{content:"\f08e8"}.mdi-gesture:before{content:"\f07cb"}.mdi-gesture-double-tap:before{content:"\f073c"}.mdi-gesture-pinch:before{content:"\f0abd"}.mdi-gesture-spread:before{content:"\f0abe"}.mdi-gesture-swipe:before{content:"\f0d76"}.mdi-gesture-swipe-down:before{content:"\f073d"}.mdi-gesture-swipe-horizontal:before{content:"\f0abf"}.mdi-gesture-swipe-left:before{content:"\f073e"}.mdi-gesture-swipe-right:before{content:"\f073f"}.mdi-gesture-swipe-up:before{content:"\f0740"}.mdi-gesture-swipe-vertical:before{content:"\f0ac0"}.mdi-gesture-tap:before{content:"\f0741"}.mdi-gesture-tap-box:before{content:"\f12a9"}.mdi-gesture-tap-button:before{content:"\f12a8"}.mdi-gesture-tap-hold:before{content:"\f0d77"}.mdi-gesture-two-double-tap:before{content:"\f0742"}.mdi-gesture-two-tap:before{content:"\f0743"}.mdi-ghost:before{content:"\f02a0"}.mdi-ghost-off:before{content:"\f09f5"}.mdi-ghost-off-outline:before{content:"\f165c"}.mdi-ghost-outline:before{content:"\f165d"}.mdi-gift:before{content:"\f0e44"}.mdi-gift-off:before{content:"\f16ef"}.mdi-gift-off-outline:before{content:"\f16f0"}.mdi-gift-open:before{content:"\f16f1"}.mdi-gift-open-outline:before{content:"\f16f2"}.mdi-gift-outline:before{content:"\f02a1"}.mdi-git:before{content:"\f02a2"}.mdi-github:before{content:"\f02a4"}.mdi-gitlab:before{content:"\f0ba0"}.mdi-glass-cocktail:before{content:"\f0356"}.mdi-glass-cocktail-off:before{content:"\f15e6"}.mdi-glass-flute:before{content:"\f02a5"}.mdi-glass-fragile:before{content:"\f1873"}.mdi-glass-mug:before{content:"\f02a6"}.mdi-glass-mug-off:before{content:"\f15e7"}.mdi-glass-mug-variant:before{content:"\f1116"}.mdi-glass-mug-variant-off:before{content:"\f15e8"}.mdi-glass-pint-outline:before{content:"\f130d"}.mdi-glass-stange:before{content:"\f02a7"}.mdi-glass-tulip:before{content:"\f02a8"}.mdi-glass-wine:before{content:"\f0876"}.mdi-glasses:before{content:"\f02aa"}.mdi-globe-light:before{content:"\f066f"}.mdi-globe-light-outline:before{content:"\f12d7"}.mdi-globe-model:before{content:"\f08e9"}.mdi-gmail:before{content:"\f02ab"}.mdi-gnome:before{content:"\f02ac"}.mdi-go-kart:before{content:"\f0d79"}.mdi-go-kart-track:before{content:"\f0d7a"}.mdi-gog:before{content:"\f0ba1"}.mdi-gold:before{content:"\f124f"}.mdi-golf:before{content:"\f0823"}.mdi-golf-cart:before{content:"\f11a4"}.mdi-golf-tee:before{content:"\f1083"}.mdi-gondola:before{content:"\f0686"}.mdi-goodreads:before{content:"\f0d7b"}.mdi-google:before{content:"\f02ad"}.mdi-google-ads:before{content:"\f0c87"}.mdi-google-analytics:before{content:"\f07cc"}.mdi-google-assistant:before{content:"\f07cd"}.mdi-google-cardboard:before{content:"\f02ae"}.mdi-google-chrome:before{content:"\f02af"}.mdi-google-circles:before{content:"\f02b0"}.mdi-google-circles-communities:before{content:"\f02b1"}.mdi-google-circles-extended:before{content:"\f02b2"}.mdi-google-circles-group:before{content:"\f02b3"}.mdi-google-classroom:before{content:"\f02c0"}.mdi-google-cloud:before{content:"\f11f6"}.mdi-google-downasaur:before{content:"\f1362"}.mdi-google-drive:before{content:"\f02b6"}.mdi-google-earth:before{content:"\f02b7"}.mdi-google-fit:before{content:"\f096c"}.mdi-google-glass:before{content:"\f02b8"}.mdi-google-hangouts:before{content:"\f02c9"}.mdi-google-keep:before{content:"\f06dc"}.mdi-google-lens:before{content:"\f09f6"}.mdi-google-maps:before{content:"\f05f5"}.mdi-google-my-business:before{content:"\f1048"}.mdi-google-nearby:before{content:"\f02b9"}.mdi-google-play:before{content:"\f02bc"}.mdi-google-plus:before{content:"\f02bd"}.mdi-google-podcast:before{content:"\f0eb9"}.mdi-google-spreadsheet:before{content:"\f09f7"}.mdi-google-street-view:before{content:"\f0c88"}.mdi-google-translate:before{content:"\f02bf"}.mdi-gradient-horizontal:before{content:"\f174a"}.mdi-gradient-vertical:before{content:"\f06a0"}.mdi-grain:before{content:"\f0d7c"}.mdi-graph:before{content:"\f1049"}.mdi-graph-outline:before{content:"\f104a"}.mdi-graphql:before{content:"\f0877"}.mdi-grass:before{content:"\f1510"}.mdi-grave-stone:before{content:"\f0ba2"}.mdi-grease-pencil:before{content:"\f0648"}.mdi-greater-than:before{content:"\f096d"}.mdi-greater-than-or-equal:before{content:"\f096e"}.mdi-greenhouse:before{content:"\f002d"}.mdi-grid:before{content:"\f02c1"}.mdi-grid-large:before{content:"\f0758"}.mdi-grid-off:before{content:"\f02c2"}.mdi-grill:before{content:"\f0e45"}.mdi-grill-outline:before{content:"\f118a"}.mdi-group:before{content:"\f02c3"}.mdi-guitar-acoustic:before{content:"\f0771"}.mdi-guitar-electric:before{content:"\f02c4"}.mdi-guitar-pick:before{content:"\f02c5"}.mdi-guitar-pick-outline:before{content:"\f02c6"}.mdi-guy-fawkes-mask:before{content:"\f0825"}.mdi-gymnastics:before{content:"\f1a41"}.mdi-hail:before{content:"\f0ac1"}.mdi-hair-dryer:before{content:"\f10ef"}.mdi-hair-dryer-outline:before{content:"\f10f0"}.mdi-halloween:before{content:"\f0ba3"}.mdi-hamburger:before{content:"\f0685"}.mdi-hamburger-check:before{content:"\f1776"}.mdi-hamburger-minus:before{content:"\f1777"}.mdi-hamburger-off:before{content:"\f1778"}.mdi-hamburger-plus:before{content:"\f1779"}.mdi-hamburger-remove:before{content:"\f177a"}.mdi-hammer:before{content:"\f08ea"}.mdi-hammer-screwdriver:before{content:"\f1322"}.mdi-hammer-sickle:before{content:"\f1887"}.mdi-hammer-wrench:before{content:"\f1323"}.mdi-hand-back-left:before{content:"\f0e46"}.mdi-hand-back-left-off:before{content:"\f1830"}.mdi-hand-back-left-off-outline:before{content:"\f1832"}.mdi-hand-back-left-outline:before{content:"\f182c"}.mdi-hand-back-right:before{content:"\f0e47"}.mdi-hand-back-right-off:before{content:"\f1831"}.mdi-hand-back-right-off-outline:before{content:"\f1833"}.mdi-hand-back-right-outline:before{content:"\f182d"}.mdi-hand-clap:before{content:"\f194b"}.mdi-hand-clap-off:before{content:"\f1a42"}.mdi-hand-coin:before{content:"\f188f"}.mdi-hand-coin-outline:before{content:"\f1890"}.mdi-hand-cycle:before{content:"\f1b9c"}.mdi-hand-extended:before{content:"\f18b6"}.mdi-hand-extended-outline:before{content:"\f18b7"}.mdi-hand-front-left:before{content:"\f182b"}.mdi-hand-front-left-outline:before{content:"\f182e"}.mdi-hand-front-right:before{content:"\f0a4f"}.mdi-hand-front-right-outline:before{content:"\f182f"}.mdi-hand-heart:before{content:"\f10f1"}.mdi-hand-heart-outline:before{content:"\f157e"}.mdi-hand-okay:before{content:"\f0a50"}.mdi-hand-peace:before{content:"\f0a51"}.mdi-hand-peace-variant:before{content:"\f0a52"}.mdi-hand-pointing-down:before{content:"\f0a53"}.mdi-hand-pointing-left:before{content:"\f0a54"}.mdi-hand-pointing-right:before{content:"\f02c7"}.mdi-hand-pointing-up:before{content:"\f0a55"}.mdi-hand-saw:before{content:"\f0e48"}.mdi-hand-wash:before{content:"\f157f"}.mdi-hand-wash-outline:before{content:"\f1580"}.mdi-hand-water:before{content:"\f139f"}.mdi-hand-wave:before{content:"\f1821"}.mdi-hand-wave-outline:before{content:"\f1822"}.mdi-handball:before{content:"\f0f53"}.mdi-handcuffs:before{content:"\f113e"}.mdi-hands-pray:before{content:"\f0579"}.mdi-handshake:before{content:"\f1218"}.mdi-handshake-outline:before{content:"\f15a1"}.mdi-hanger:before{content:"\f02c8"}.mdi-hard-hat:before{content:"\f096f"}.mdi-harddisk:before{content:"\f02ca"}.mdi-harddisk-plus:before{content:"\f104b"}.mdi-harddisk-remove:before{content:"\f104c"}.mdi-hat-fedora:before{content:"\f0ba4"}.mdi-hazard-lights:before{content:"\f0c89"}.mdi-hdmi-port:before{content:"\f1bb8"}.mdi-hdr:before{content:"\f0d7d"}.mdi-hdr-off:before{content:"\f0d7e"}.mdi-head:before{content:"\f135e"}.mdi-head-alert:before{content:"\f1338"}.mdi-head-alert-outline:before{content:"\f1339"}.mdi-head-check:before{content:"\f133a"}.mdi-head-check-outline:before{content:"\f133b"}.mdi-head-cog:before{content:"\f133c"}.mdi-head-cog-outline:before{content:"\f133d"}.mdi-head-dots-horizontal:before{content:"\f133e"}.mdi-head-dots-horizontal-outline:before{content:"\f133f"}.mdi-head-flash:before{content:"\f1340"}.mdi-head-flash-outline:before{content:"\f1341"}.mdi-head-heart:before{content:"\f1342"}.mdi-head-heart-outline:before{content:"\f1343"}.mdi-head-lightbulb:before{content:"\f1344"}.mdi-head-lightbulb-outline:before{content:"\f1345"}.mdi-head-minus:before{content:"\f1346"}.mdi-head-minus-outline:before{content:"\f1347"}.mdi-head-outline:before{content:"\f135f"}.mdi-head-plus:before{content:"\f1348"}.mdi-head-plus-outline:before{content:"\f1349"}.mdi-head-question:before{content:"\f134a"}.mdi-head-question-outline:before{content:"\f134b"}.mdi-head-remove:before{content:"\f134c"}.mdi-head-remove-outline:before{content:"\f134d"}.mdi-head-snowflake:before{content:"\f134e"}.mdi-head-snowflake-outline:before{content:"\f134f"}.mdi-head-sync:before{content:"\f1350"}.mdi-head-sync-outline:before{content:"\f1351"}.mdi-headphones:before{content:"\f02cb"}.mdi-headphones-bluetooth:before{content:"\f0970"}.mdi-headphones-box:before{content:"\f02cc"}.mdi-headphones-off:before{content:"\f07ce"}.mdi-headphones-settings:before{content:"\f02cd"}.mdi-headset:before{content:"\f02ce"}.mdi-headset-dock:before{content:"\f02cf"}.mdi-headset-off:before{content:"\f02d0"}.mdi-heart:before{content:"\f02d1"}.mdi-heart-box:before{content:"\f02d2"}.mdi-heart-box-outline:before{content:"\f02d3"}.mdi-heart-broken:before{content:"\f02d4"}.mdi-heart-broken-outline:before{content:"\f0d14"}.mdi-heart-circle:before{content:"\f0971"}.mdi-heart-circle-outline:before{content:"\f0972"}.mdi-heart-cog:before{content:"\f1663"}.mdi-heart-cog-outline:before{content:"\f1664"}.mdi-heart-flash:before{content:"\f0ef9"}.mdi-heart-half:before{content:"\f06df"}.mdi-heart-half-full:before{content:"\f06de"}.mdi-heart-half-outline:before{content:"\f06e0"}.mdi-heart-minus:before{content:"\f142f"}.mdi-heart-minus-outline:before{content:"\f1432"}.mdi-heart-multiple:before{content:"\f0a56"}.mdi-heart-multiple-outline:before{content:"\f0a57"}.mdi-heart-off:before{content:"\f0759"}.mdi-heart-off-outline:before{content:"\f1434"}.mdi-heart-outline:before{content:"\f02d5"}.mdi-heart-plus:before{content:"\f142e"}.mdi-heart-plus-outline:before{content:"\f1431"}.mdi-heart-pulse:before{content:"\f05f6"}.mdi-heart-remove:before{content:"\f1430"}.mdi-heart-remove-outline:before{content:"\f1433"}.mdi-heart-search:before{content:"\f1c8d"}.mdi-heart-settings:before{content:"\f1665"}.mdi-heart-settings-outline:before{content:"\f1666"}.mdi-heat-pump:before{content:"\f1a43"}.mdi-heat-pump-outline:before{content:"\f1a44"}.mdi-heat-wave:before{content:"\f1a45"}.mdi-heating-coil:before{content:"\f1aaf"}.mdi-helicopter:before{content:"\f0ac2"}.mdi-help:before{content:"\f02d6"}.mdi-help-box:before{content:"\f078b"}.mdi-help-box-multiple:before{content:"\f1c0a"}.mdi-help-box-multiple-outline:before{content:"\f1c0b"}.mdi-help-box-outline:before{content:"\f1c0c"}.mdi-help-circle:before{content:"\f02d7"}.mdi-help-circle-outline:before{content:"\f0625"}.mdi-help-network:before{content:"\f06f5"}.mdi-help-network-outline:before{content:"\f0c8a"}.mdi-help-rhombus:before{content:"\f0ba5"}.mdi-help-rhombus-outline:before{content:"\f0ba6"}.mdi-hexadecimal:before{content:"\f12a7"}.mdi-hexagon:before{content:"\f02d8"}.mdi-hexagon-multiple:before{content:"\f06e1"}.mdi-hexagon-multiple-outline:before{content:"\f10f2"}.mdi-hexagon-outline:before{content:"\f02d9"}.mdi-hexagon-slice-1:before{content:"\f0ac3"}.mdi-hexagon-slice-2:before{content:"\f0ac4"}.mdi-hexagon-slice-3:before{content:"\f0ac5"}.mdi-hexagon-slice-4:before{content:"\f0ac6"}.mdi-hexagon-slice-5:before{content:"\f0ac7"}.mdi-hexagon-slice-6:before{content:"\f0ac8"}.mdi-hexagram:before{content:"\f0ac9"}.mdi-hexagram-outline:before{content:"\f0aca"}.mdi-high-definition:before{content:"\f07cf"}.mdi-high-definition-box:before{content:"\f0878"}.mdi-highway:before{content:"\f05f7"}.mdi-hiking:before{content:"\f0d7f"}.mdi-history:before{content:"\f02da"}.mdi-hockey-puck:before{content:"\f0879"}.mdi-hockey-sticks:before{content:"\f087a"}.mdi-hololens:before{content:"\f02db"}.mdi-home:before{content:"\f02dc"}.mdi-home-account:before{content:"\f0826"}.mdi-home-alert:before{content:"\f087b"}.mdi-home-alert-outline:before{content:"\f15d0"}.mdi-home-analytics:before{content:"\f0eba"}.mdi-home-assistant:before{content:"\f07d0"}.mdi-home-automation:before{content:"\f07d1"}.mdi-home-battery:before{content:"\f1901"}.mdi-home-battery-outline:before{content:"\f1902"}.mdi-home-circle:before{content:"\f07d2"}.mdi-home-circle-outline:before{content:"\f104d"}.mdi-home-city:before{content:"\f0d15"}.mdi-home-city-outline:before{content:"\f0d16"}.mdi-home-clock:before{content:"\f1a12"}.mdi-home-clock-outline:before{content:"\f1a13"}.mdi-home-edit:before{content:"\f1159"}.mdi-home-edit-outline:before{content:"\f115a"}.mdi-home-export-outline:before{content:"\f0f9b"}.mdi-home-flood:before{content:"\f0efa"}.mdi-home-floor-0:before{content:"\f0dd2"}.mdi-home-floor-1:before{content:"\f0d80"}.mdi-home-floor-2:before{content:"\f0d81"}.mdi-home-floor-3:before{content:"\f0d82"}.mdi-home-floor-a:before{content:"\f0d83"}.mdi-home-floor-b:before{content:"\f0d84"}.mdi-home-floor-g:before{content:"\f0d85"}.mdi-home-floor-l:before{content:"\f0d86"}.mdi-home-floor-negative-1:before{content:"\f0dd3"}.mdi-home-group:before{content:"\f0dd4"}.mdi-home-group-minus:before{content:"\f19c1"}.mdi-home-group-plus:before{content:"\f19c0"}.mdi-home-group-remove:before{content:"\f19c2"}.mdi-home-heart:before{content:"\f0827"}.mdi-home-import-outline:before{content:"\f0f9c"}.mdi-home-lightbulb:before{content:"\f1251"}.mdi-home-lightbulb-outline:before{content:"\f1252"}.mdi-home-lightning-bolt:before{content:"\f1903"}.mdi-home-lightning-bolt-outline:before{content:"\f1904"}.mdi-home-lock:before{content:"\f08eb"}.mdi-home-lock-open:before{content:"\f08ec"}.mdi-home-map-marker:before{content:"\f05f8"}.mdi-home-minus:before{content:"\f0974"}.mdi-home-minus-outline:before{content:"\f13d5"}.mdi-home-modern:before{content:"\f02dd"}.mdi-home-off:before{content:"\f1a46"}.mdi-home-off-outline:before{content:"\f1a47"}.mdi-home-outline:before{content:"\f06a1"}.mdi-home-percent:before{content:"\f1c7c"}.mdi-home-percent-outline:before{content:"\f1c7d"}.mdi-home-plus:before{content:"\f0975"}.mdi-home-plus-outline:before{content:"\f13d6"}.mdi-home-remove:before{content:"\f1247"}.mdi-home-remove-outline:before{content:"\f13d7"}.mdi-home-roof:before{content:"\f112b"}.mdi-home-search:before{content:"\f13b0"}.mdi-home-search-outline:before{content:"\f13b1"}.mdi-home-silo:before{content:"\f1ba0"}.mdi-home-silo-outline:before{content:"\f1ba1"}.mdi-home-sound-in:before{content:"\f1c2f"}.mdi-home-sound-in-outline:before{content:"\f1c30"}.mdi-home-sound-out:before{content:"\f1c31"}.mdi-home-sound-out-outline:before{content:"\f1c32"}.mdi-home-switch:before{content:"\f1794"}.mdi-home-switch-outline:before{content:"\f1795"}.mdi-home-thermometer:before{content:"\f0f54"}.mdi-home-thermometer-outline:before{content:"\f0f55"}.mdi-home-variant:before{content:"\f02de"}.mdi-home-variant-outline:before{content:"\f0ba7"}.mdi-hook:before{content:"\f06e2"}.mdi-hook-off:before{content:"\f06e3"}.mdi-hoop-house:before{content:"\f0e56"}.mdi-hops:before{content:"\f02df"}.mdi-horizontal-rotate-clockwise:before{content:"\f10f3"}.mdi-horizontal-rotate-counterclockwise:before{content:"\f10f4"}.mdi-horse:before{content:"\f15bf"}.mdi-horse-human:before{content:"\f15c0"}.mdi-horse-variant:before{content:"\f15c1"}.mdi-horse-variant-fast:before{content:"\f186e"}.mdi-horseshoe:before{content:"\f0a58"}.mdi-hospital:before{content:"\f0ff6"}.mdi-hospital-box:before{content:"\f02e0"}.mdi-hospital-box-outline:before{content:"\f0ff7"}.mdi-hospital-building:before{content:"\f02e1"}.mdi-hospital-marker:before{content:"\f02e2"}.mdi-hot-tub:before{content:"\f0828"}.mdi-hours-12:before{content:"\f1c94"}.mdi-hours-24:before{content:"\f1478"}.mdi-hub:before{content:"\f1c95"}.mdi-hub-outline:before{content:"\f1c96"}.mdi-hubspot:before{content:"\f0d17"}.mdi-hulu:before{content:"\f0829"}.mdi-human:before{content:"\f02e6"}.mdi-human-baby-changing-table:before{content:"\f138b"}.mdi-human-cane:before{content:"\f1581"}.mdi-human-capacity-decrease:before{content:"\f159b"}.mdi-human-capacity-increase:before{content:"\f159c"}.mdi-human-child:before{content:"\f02e7"}.mdi-human-dolly:before{content:"\f1980"}.mdi-human-edit:before{content:"\f14e8"}.mdi-human-female:before{content:"\f0649"}.mdi-human-female-boy:before{content:"\f0a59"}.mdi-human-female-dance:before{content:"\f15c9"}.mdi-human-female-female:before{content:"\f0a5a"}.mdi-human-female-female-child:before{content:"\f1c8e"}.mdi-human-female-girl:before{content:"\f0a5b"}.mdi-human-greeting:before{content:"\f17c4"}.mdi-human-greeting-proximity:before{content:"\f159d"}.mdi-human-greeting-variant:before{content:"\f064a"}.mdi-human-handsdown:before{content:"\f064b"}.mdi-human-handsup:before{content:"\f064c"}.mdi-human-male:before{content:"\f064d"}.mdi-human-male-board:before{content:"\f0890"}.mdi-human-male-board-poll:before{content:"\f0846"}.mdi-human-male-boy:before{content:"\f0a5c"}.mdi-human-male-child:before{content:"\f138c"}.mdi-human-male-female:before{content:"\f02e8"}.mdi-human-male-female-child:before{content:"\f1823"}.mdi-human-male-girl:before{content:"\f0a5d"}.mdi-human-male-height:before{content:"\f0efb"}.mdi-human-male-height-variant:before{content:"\f0efc"}.mdi-human-male-male:before{content:"\f0a5e"}.mdi-human-male-male-child:before{content:"\f1c8f"}.mdi-human-non-binary:before{content:"\f1848"}.mdi-human-pregnant:before{content:"\f05cf"}.mdi-human-queue:before{content:"\f1571"}.mdi-human-scooter:before{content:"\f11e9"}.mdi-human-walker:before{content:"\f1b71"}.mdi-human-wheelchair:before{content:"\f138d"}.mdi-human-white-cane:before{content:"\f1981"}.mdi-humble-bundle:before{content:"\f0744"}.mdi-hvac:before{content:"\f1352"}.mdi-hvac-off:before{content:"\f159e"}.mdi-hydraulic-oil-level:before{content:"\f1324"}.mdi-hydraulic-oil-temperature:before{content:"\f1325"}.mdi-hydro-power:before{content:"\f12e5"}.mdi-hydrogen-station:before{content:"\f1894"}.mdi-ice-cream:before{content:"\f082a"}.mdi-ice-cream-off:before{content:"\f0e52"}.mdi-ice-pop:before{content:"\f0efd"}.mdi-id-card:before{content:"\f0fc0"}.mdi-identifier:before{content:"\f0efe"}.mdi-ideogram-cjk:before{content:"\f1331"}.mdi-ideogram-cjk-variant:before{content:"\f1332"}.mdi-image:before{content:"\f02e9"}.mdi-image-album:before{content:"\f02ea"}.mdi-image-area:before{content:"\f02eb"}.mdi-image-area-close:before{content:"\f02ec"}.mdi-image-auto-adjust:before{content:"\f0fc1"}.mdi-image-broken:before{content:"\f02ed"}.mdi-image-broken-variant:before{content:"\f02ee"}.mdi-image-check:before{content:"\f1b25"}.mdi-image-check-outline:before{content:"\f1b26"}.mdi-image-edit:before{content:"\f11e3"}.mdi-image-edit-outline:before{content:"\f11e4"}.mdi-image-filter-black-white:before{content:"\f02f0"}.mdi-image-filter-center-focus:before{content:"\f02f1"}.mdi-image-filter-center-focus-strong:before{content:"\f0eff"}.mdi-image-filter-center-focus-strong-outline:before{content:"\f0f00"}.mdi-image-filter-center-focus-weak:before{content:"\f02f2"}.mdi-image-filter-drama:before{content:"\f02f3"}.mdi-image-filter-drama-outline:before{content:"\f1bff"}.mdi-image-filter-frames:before{content:"\f02f4"}.mdi-image-filter-hdr:before{content:"\f02f5"}.mdi-image-filter-hdr-outline:before{content:"\f1c64"}.mdi-image-filter-none:before{content:"\f02f6"}.mdi-image-filter-tilt-shift:before{content:"\f02f7"}.mdi-image-filter-vintage:before{content:"\f02f8"}.mdi-image-frame:before{content:"\f0e49"}.mdi-image-lock:before{content:"\f1ab0"}.mdi-image-lock-outline:before{content:"\f1ab1"}.mdi-image-marker:before{content:"\f177b"}.mdi-image-marker-outline:before{content:"\f177c"}.mdi-image-minus:before{content:"\f1419"}.mdi-image-minus-outline:before{content:"\f1b47"}.mdi-image-move:before{content:"\f09f8"}.mdi-image-multiple:before{content:"\f02f9"}.mdi-image-multiple-outline:before{content:"\f02ef"}.mdi-image-off:before{content:"\f082b"}.mdi-image-off-outline:before{content:"\f11d1"}.mdi-image-outline:before{content:"\f0976"}.mdi-image-plus:before{content:"\f087c"}.mdi-image-plus-outline:before{content:"\f1b46"}.mdi-image-refresh:before{content:"\f19fe"}.mdi-image-refresh-outline:before{content:"\f19ff"}.mdi-image-remove:before{content:"\f1418"}.mdi-image-remove-outline:before{content:"\f1b48"}.mdi-image-search:before{content:"\f0977"}.mdi-image-search-outline:before{content:"\f0978"}.mdi-image-size-select-actual:before{content:"\f0c8d"}.mdi-image-size-select-large:before{content:"\f0c8e"}.mdi-image-size-select-small:before{content:"\f0c8f"}.mdi-image-sync:before{content:"\f1a00"}.mdi-image-sync-outline:before{content:"\f1a01"}.mdi-image-text:before{content:"\f160d"}.mdi-import:before{content:"\f02fa"}.mdi-inbox:before{content:"\f0687"}.mdi-inbox-arrow-down:before{content:"\f02fb"}.mdi-inbox-arrow-down-outline:before{content:"\f1270"}.mdi-inbox-arrow-up:before{content:"\f03d1"}.mdi-inbox-arrow-up-outline:before{content:"\f1271"}.mdi-inbox-full:before{content:"\f1272"}.mdi-inbox-full-outline:before{content:"\f1273"}.mdi-inbox-multiple:before{content:"\f08b0"}.mdi-inbox-multiple-outline:before{content:"\f0ba8"}.mdi-inbox-outline:before{content:"\f1274"}.mdi-inbox-remove:before{content:"\f159f"}.mdi-inbox-remove-outline:before{content:"\f15a0"}.mdi-incognito:before{content:"\f05f9"}.mdi-incognito-circle:before{content:"\f1421"}.mdi-incognito-circle-off:before{content:"\f1422"}.mdi-incognito-off:before{content:"\f0075"}.mdi-induction:before{content:"\f184c"}.mdi-infinity:before{content:"\f06e4"}.mdi-information:before{content:"\f02fc"}.mdi-information-box:before{content:"\f1c65"}.mdi-information-box-outline:before{content:"\f1c66"}.mdi-information-off:before{content:"\f178c"}.mdi-information-off-outline:before{content:"\f178d"}.mdi-information-outline:before{content:"\f02fd"}.mdi-information-slab-box:before{content:"\f1c67"}.mdi-information-slab-box-outline:before{content:"\f1c68"}.mdi-information-slab-circle:before{content:"\f1c69"}.mdi-information-slab-circle-outline:before{content:"\f1c6a"}.mdi-information-slab-symbol:before{content:"\f1c6b"}.mdi-information-symbol:before{content:"\f1c6c"}.mdi-information-variant:before{content:"\f064e"}.mdi-information-variant-box:before{content:"\f1c6d"}.mdi-information-variant-box-outline:before{content:"\f1c6e"}.mdi-information-variant-circle:before{content:"\f1c6f"}.mdi-information-variant-circle-outline:before{content:"\f1c70"}.mdi-instagram:before{content:"\f02fe"}.mdi-instrument-triangle:before{content:"\f104e"}.mdi-integrated-circuit-chip:before{content:"\f1913"}.mdi-invert-colors:before{content:"\f0301"}.mdi-invert-colors-off:before{content:"\f0e4a"}.mdi-invoice:before{content:"\f1cd2"}.mdi-invoice-arrow-left:before{content:"\f1cd3"}.mdi-invoice-arrow-left-outline:before{content:"\f1cd4"}.mdi-invoice-arrow-right:before{content:"\f1cd5"}.mdi-invoice-arrow-right-outline:before{content:"\f1cd6"}.mdi-invoice-check:before{content:"\f1cd7"}.mdi-invoice-check-outline:before{content:"\f1cd8"}.mdi-invoice-clock:before{content:"\f1cd9"}.mdi-invoice-clock-outline:before{content:"\f1cda"}.mdi-invoice-edit:before{content:"\f1cdb"}.mdi-invoice-edit-outline:before{content:"\f1cdc"}.mdi-invoice-export-outline:before{content:"\f1cdd"}.mdi-invoice-fast:before{content:"\f1cde"}.mdi-invoice-fast-outline:before{content:"\f1cdf"}.mdi-invoice-import:before{content:"\f1ce0"}.mdi-invoice-import-outline:before{content:"\f1ce1"}.mdi-invoice-list:before{content:"\f1ce2"}.mdi-invoice-list-outline:before{content:"\f1ce3"}.mdi-invoice-minus:before{content:"\f1ce4"}.mdi-invoice-minus-outline:before{content:"\f1ce5"}.mdi-invoice-multiple:before{content:"\f1ce6"}.mdi-invoice-multiple-outline:before{content:"\f1ce7"}.mdi-invoice-outline:before{content:"\f1ce8"}.mdi-invoice-plus:before{content:"\f1ce9"}.mdi-invoice-plus-outline:before{content:"\f1cea"}.mdi-invoice-remove:before{content:"\f1ceb"}.mdi-invoice-remove-outline:before{content:"\f1cec"}.mdi-invoice-send:before{content:"\f1ced"}.mdi-invoice-send-outline:before{content:"\f1cee"}.mdi-invoice-text:before{content:"\f1cef"}.mdi-invoice-text-arrow-left:before{content:"\f1cf0"}.mdi-invoice-text-arrow-left-outline:before{content:"\f1cf1"}.mdi-invoice-text-arrow-right:before{content:"\f1cf2"}.mdi-invoice-text-arrow-right-outline:before{content:"\f1cf3"}.mdi-invoice-text-check:before{content:"\f1cf4"}.mdi-invoice-text-check-outline:before{content:"\f1cf5"}.mdi-invoice-text-clock:before{content:"\f1cf6"}.mdi-invoice-text-clock-outline:before{content:"\f1cf7"}.mdi-invoice-text-edit:before{content:"\f1cf8"}.mdi-invoice-text-edit-outline:before{content:"\f1cf9"}.mdi-invoice-text-fast:before{content:"\f1cfa"}.mdi-invoice-text-fast-outline:before{content:"\f1cfb"}.mdi-invoice-text-minus:before{content:"\f1cfc"}.mdi-invoice-text-minus-outline:before{content:"\f1cfd"}.mdi-invoice-text-multiple:before{content:"\f1cfe"}.mdi-invoice-text-multiple-outline:before{content:"\f1cff"}.mdi-invoice-text-outline:before{content:"\f1d00"}.mdi-invoice-text-plus:before{content:"\f1d01"}.mdi-invoice-text-plus-outline:before{content:"\f1d02"}.mdi-invoice-text-remove:before{content:"\f1d03"}.mdi-invoice-text-remove-outline:before{content:"\f1d04"}.mdi-invoice-text-send:before{content:"\f1d05"}.mdi-invoice-text-send-outline:before{content:"\f1d06"}.mdi-iobroker:before{content:"\f12e8"}.mdi-ip:before{content:"\f0a5f"}.mdi-ip-network:before{content:"\f0a60"}.mdi-ip-network-outline:before{content:"\f0c90"}.mdi-ip-outline:before{content:"\f1982"}.mdi-ipod:before{content:"\f0c91"}.mdi-iron:before{content:"\f1824"}.mdi-iron-board:before{content:"\f1838"}.mdi-iron-outline:before{content:"\f1825"}.mdi-island:before{content:"\f104f"}.mdi-island-variant:before{content:"\f1cc6"}.mdi-iv-bag:before{content:"\f10b9"}.mdi-jabber:before{content:"\f0dd5"}.mdi-jeepney:before{content:"\f0302"}.mdi-jellyfish:before{content:"\f0f01"}.mdi-jellyfish-outline:before{content:"\f0f02"}.mdi-jira:before{content:"\f0303"}.mdi-jquery:before{content:"\f087d"}.mdi-jsfiddle:before{content:"\f0304"}.mdi-jump-rope:before{content:"\f12ff"}.mdi-kabaddi:before{content:"\f0d87"}.mdi-kangaroo:before{content:"\f1558"}.mdi-karate:before{content:"\f082c"}.mdi-kayaking:before{content:"\f08af"}.mdi-keg:before{content:"\f0305"}.mdi-kettle:before{content:"\f05fa"}.mdi-kettle-alert:before{content:"\f1317"}.mdi-kettle-alert-outline:before{content:"\f1318"}.mdi-kettle-off:before{content:"\f131b"}.mdi-kettle-off-outline:before{content:"\f131c"}.mdi-kettle-outline:before{content:"\f0f56"}.mdi-kettle-pour-over:before{content:"\f173c"}.mdi-kettle-steam:before{content:"\f1319"}.mdi-kettle-steam-outline:before{content:"\f131a"}.mdi-kettlebell:before{content:"\f1300"}.mdi-key:before{content:"\f0306"}.mdi-key-alert:before{content:"\f1983"}.mdi-key-alert-outline:before{content:"\f1984"}.mdi-key-arrow-right:before{content:"\f1312"}.mdi-key-chain:before{content:"\f1574"}.mdi-key-chain-variant:before{content:"\f1575"}.mdi-key-change:before{content:"\f0307"}.mdi-key-link:before{content:"\f119f"}.mdi-key-minus:before{content:"\f0308"}.mdi-key-outline:before{content:"\f0dd6"}.mdi-key-plus:before{content:"\f0309"}.mdi-key-remove:before{content:"\f030a"}.mdi-key-star:before{content:"\f119e"}.mdi-key-variant:before{content:"\f030b"}.mdi-key-wireless:before{content:"\f0fc2"}.mdi-keyboard:before{content:"\f030c"}.mdi-keyboard-backspace:before{content:"\f030d"}.mdi-keyboard-caps:before{content:"\f030e"}.mdi-keyboard-close:before{content:"\f030f"}.mdi-keyboard-close-outline:before{content:"\f1c00"}.mdi-keyboard-esc:before{content:"\f12b7"}.mdi-keyboard-f1:before{content:"\f12ab"}.mdi-keyboard-f10:before{content:"\f12b4"}.mdi-keyboard-f11:before{content:"\f12b5"}.mdi-keyboard-f12:before{content:"\f12b6"}.mdi-keyboard-f2:before{content:"\f12ac"}.mdi-keyboard-f3:before{content:"\f12ad"}.mdi-keyboard-f4:before{content:"\f12ae"}.mdi-keyboard-f5:before{content:"\f12af"}.mdi-keyboard-f6:before{content:"\f12b0"}.mdi-keyboard-f7:before{content:"\f12b1"}.mdi-keyboard-f8:before{content:"\f12b2"}.mdi-keyboard-f9:before{content:"\f12b3"}.mdi-keyboard-off:before{content:"\f0310"}.mdi-keyboard-off-outline:before{content:"\f0e4b"}.mdi-keyboard-outline:before{content:"\f097b"}.mdi-keyboard-return:before{content:"\f0311"}.mdi-keyboard-settings:before{content:"\f09f9"}.mdi-keyboard-settings-outline:before{content:"\f09fa"}.mdi-keyboard-space:before{content:"\f1050"}.mdi-keyboard-tab:before{content:"\f0312"}.mdi-keyboard-tab-reverse:before{content:"\f0325"}.mdi-keyboard-variant:before{content:"\f0313"}.mdi-khanda:before{content:"\f10fd"}.mdi-kickstarter:before{content:"\f0745"}.mdi-kite:before{content:"\f1985"}.mdi-kite-outline:before{content:"\f1986"}.mdi-kitesurfing:before{content:"\f1744"}.mdi-klingon:before{content:"\f135b"}.mdi-knife:before{content:"\f09fb"}.mdi-knife-military:before{content:"\f09fc"}.mdi-knob:before{content:"\f1b96"}.mdi-koala:before{content:"\f173f"}.mdi-kodi:before{content:"\f0314"}.mdi-kubernetes:before{content:"\f10fe"}.mdi-label:before{content:"\f0315"}.mdi-label-multiple:before{content:"\f1375"}.mdi-label-multiple-outline:before{content:"\f1376"}.mdi-label-off:before{content:"\f0acb"}.mdi-label-off-outline:before{content:"\f0acc"}.mdi-label-outline:before{content:"\f0316"}.mdi-label-percent:before{content:"\f12ea"}.mdi-label-percent-outline:before{content:"\f12eb"}.mdi-label-variant:before{content:"\f0acd"}.mdi-label-variant-outline:before{content:"\f0ace"}.mdi-ladder:before{content:"\f15a2"}.mdi-ladybug:before{content:"\f082d"}.mdi-lambda:before{content:"\f0627"}.mdi-lamp:before{content:"\f06b5"}.mdi-lamp-outline:before{content:"\f17d0"}.mdi-lamps:before{content:"\f1576"}.mdi-lamps-outline:before{content:"\f17d1"}.mdi-lan:before{content:"\f0317"}.mdi-lan-check:before{content:"\f12aa"}.mdi-lan-connect:before{content:"\f0318"}.mdi-lan-disconnect:before{content:"\f0319"}.mdi-lan-pending:before{content:"\f031a"}.mdi-land-fields:before{content:"\f1ab2"}.mdi-land-plots:before{content:"\f1ab3"}.mdi-land-plots-circle:before{content:"\f1ab4"}.mdi-land-plots-circle-variant:before{content:"\f1ab5"}.mdi-land-plots-marker:before{content:"\f1c5d"}.mdi-land-rows-horizontal:before{content:"\f1ab6"}.mdi-land-rows-vertical:before{content:"\f1ab7"}.mdi-landslide:before{content:"\f1a48"}.mdi-landslide-outline:before{content:"\f1a49"}.mdi-language-c:before{content:"\f0671"}.mdi-language-cpp:before{content:"\f0672"}.mdi-language-csharp:before{content:"\f031b"}.mdi-language-css3:before{content:"\f031c"}.mdi-language-fortran:before{content:"\f121a"}.mdi-language-go:before{content:"\f07d3"}.mdi-language-haskell:before{content:"\f0c92"}.mdi-language-html5:before{content:"\f031d"}.mdi-language-java:before{content:"\f0b37"}.mdi-language-javascript:before{content:"\f031e"}.mdi-language-kotlin:before{content:"\f1219"}.mdi-language-lua:before{content:"\f08b1"}.mdi-language-markdown:before{content:"\f0354"}.mdi-language-markdown-outline:before{content:"\f0f5b"}.mdi-language-php:before{content:"\f031f"}.mdi-language-python:before{content:"\f0320"}.mdi-language-r:before{content:"\f07d4"}.mdi-language-ruby:before{content:"\f0d2d"}.mdi-language-ruby-on-rails:before{content:"\f0acf"}.mdi-language-rust:before{content:"\f1617"}.mdi-language-swift:before{content:"\f06e5"}.mdi-language-typescript:before{content:"\f06e6"}.mdi-language-xaml:before{content:"\f0673"}.mdi-laptop:before{content:"\f0322"}.mdi-laptop-account:before{content:"\f1a4a"}.mdi-laptop-off:before{content:"\f06e7"}.mdi-laravel:before{content:"\f0ad0"}.mdi-laser-pointer:before{content:"\f1484"}.mdi-lasso:before{content:"\f0f03"}.mdi-lastpass:before{content:"\f0446"}.mdi-latitude:before{content:"\f0f57"}.mdi-launch:before{content:"\f0327"}.mdi-lava-lamp:before{content:"\f07d5"}.mdi-layers:before{content:"\f0328"}.mdi-layers-edit:before{content:"\f1892"}.mdi-layers-minus:before{content:"\f0e4c"}.mdi-layers-off:before{content:"\f0329"}.mdi-layers-off-outline:before{content:"\f09fd"}.mdi-layers-outline:before{content:"\f09fe"}.mdi-layers-plus:before{content:"\f0e4d"}.mdi-layers-remove:before{content:"\f0e4e"}.mdi-layers-search:before{content:"\f1206"}.mdi-layers-search-outline:before{content:"\f1207"}.mdi-layers-triple:before{content:"\f0f58"}.mdi-layers-triple-outline:before{content:"\f0f59"}.mdi-lead-pencil:before{content:"\f064f"}.mdi-leaf:before{content:"\f032a"}.mdi-leaf-circle:before{content:"\f1905"}.mdi-leaf-circle-outline:before{content:"\f1906"}.mdi-leaf-maple:before{content:"\f0c93"}.mdi-leaf-maple-off:before{content:"\f12da"}.mdi-leaf-off:before{content:"\f12d9"}.mdi-leak:before{content:"\f0dd7"}.mdi-leak-off:before{content:"\f0dd8"}.mdi-lectern:before{content:"\f1af0"}.mdi-led-off:before{content:"\f032b"}.mdi-led-on:before{content:"\f032c"}.mdi-led-outline:before{content:"\f032d"}.mdi-led-strip:before{content:"\f07d6"}.mdi-led-strip-variant:before{content:"\f1051"}.mdi-led-strip-variant-off:before{content:"\f1a4b"}.mdi-led-variant-off:before{content:"\f032e"}.mdi-led-variant-on:before{content:"\f032f"}.mdi-led-variant-outline:before{content:"\f0330"}.mdi-leek:before{content:"\f117d"}.mdi-less-than:before{content:"\f097c"}.mdi-less-than-or-equal:before{content:"\f097d"}.mdi-library:before{content:"\f0331"}.mdi-library-outline:before{content:"\f1a22"}.mdi-library-shelves:before{content:"\f0ba9"}.mdi-license:before{content:"\f0fc3"}.mdi-lifebuoy:before{content:"\f087e"}.mdi-light-flood-down:before{content:"\f1987"}.mdi-light-flood-up:before{content:"\f1988"}.mdi-light-recessed:before{content:"\f179b"}.mdi-light-switch:before{content:"\f097e"}.mdi-light-switch-off:before{content:"\f1a24"}.mdi-lightbulb:before{content:"\f0335"}.mdi-lightbulb-alert:before{content:"\f19e1"}.mdi-lightbulb-alert-outline:before{content:"\f19e2"}.mdi-lightbulb-auto:before{content:"\f1800"}.mdi-lightbulb-auto-outline:before{content:"\f1801"}.mdi-lightbulb-cfl:before{content:"\f1208"}.mdi-lightbulb-cfl-off:before{content:"\f1209"}.mdi-lightbulb-cfl-spiral:before{content:"\f1275"}.mdi-lightbulb-cfl-spiral-off:before{content:"\f12c3"}.mdi-lightbulb-fluorescent-tube:before{content:"\f1804"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"\f1805"}.mdi-lightbulb-group:before{content:"\f1253"}.mdi-lightbulb-group-off:before{content:"\f12cd"}.mdi-lightbulb-group-off-outline:before{content:"\f12ce"}.mdi-lightbulb-group-outline:before{content:"\f1254"}.mdi-lightbulb-multiple:before{content:"\f1255"}.mdi-lightbulb-multiple-off:before{content:"\f12cf"}.mdi-lightbulb-multiple-off-outline:before{content:"\f12d0"}.mdi-lightbulb-multiple-outline:before{content:"\f1256"}.mdi-lightbulb-night:before{content:"\f1a4c"}.mdi-lightbulb-night-outline:before{content:"\f1a4d"}.mdi-lightbulb-off:before{content:"\f0e4f"}.mdi-lightbulb-off-outline:before{content:"\f0e50"}.mdi-lightbulb-on:before{content:"\f06e8"}.mdi-lightbulb-on-10:before{content:"\f1a4e"}.mdi-lightbulb-on-20:before{content:"\f1a4f"}.mdi-lightbulb-on-30:before{content:"\f1a50"}.mdi-lightbulb-on-40:before{content:"\f1a51"}.mdi-lightbulb-on-50:before{content:"\f1a52"}.mdi-lightbulb-on-60:before{content:"\f1a53"}.mdi-lightbulb-on-70:before{content:"\f1a54"}.mdi-lightbulb-on-80:before{content:"\f1a55"}.mdi-lightbulb-on-90:before{content:"\f1a56"}.mdi-lightbulb-on-outline:before{content:"\f06e9"}.mdi-lightbulb-outline:before{content:"\f0336"}.mdi-lightbulb-question:before{content:"\f19e3"}.mdi-lightbulb-question-outline:before{content:"\f19e4"}.mdi-lightbulb-spot:before{content:"\f17f4"}.mdi-lightbulb-spot-off:before{content:"\f17f5"}.mdi-lightbulb-variant:before{content:"\f1802"}.mdi-lightbulb-variant-outline:before{content:"\f1803"}.mdi-lighthouse:before{content:"\f09ff"}.mdi-lighthouse-on:before{content:"\f0a00"}.mdi-lightning-bolt:before{content:"\f140b"}.mdi-lightning-bolt-circle:before{content:"\f0820"}.mdi-lightning-bolt-outline:before{content:"\f140c"}.mdi-line-scan:before{content:"\f0624"}.mdi-lingerie:before{content:"\f1476"}.mdi-link:before{content:"\f0337"}.mdi-link-box:before{content:"\f0d1a"}.mdi-link-box-outline:before{content:"\f0d1b"}.mdi-link-box-variant:before{content:"\f0d1c"}.mdi-link-box-variant-outline:before{content:"\f0d1d"}.mdi-link-circle:before{content:"\f1cac"}.mdi-link-circle-outline:before{content:"\f1cad"}.mdi-link-edit:before{content:"\f1cae"}.mdi-link-lock:before{content:"\f10ba"}.mdi-link-off:before{content:"\f0338"}.mdi-link-plus:before{content:"\f0c94"}.mdi-link-variant:before{content:"\f0339"}.mdi-link-variant-minus:before{content:"\f10ff"}.mdi-link-variant-off:before{content:"\f033a"}.mdi-link-variant-plus:before{content:"\f1100"}.mdi-link-variant-remove:before{content:"\f1101"}.mdi-linkedin:before{content:"\f033b"}.mdi-linux:before{content:"\f033d"}.mdi-linux-mint:before{content:"\f08ed"}.mdi-lipstick:before{content:"\f13b5"}.mdi-liquid-spot:before{content:"\f1826"}.mdi-liquor:before{content:"\f191e"}.mdi-list-box:before{content:"\f1b7b"}.mdi-list-box-outline:before{content:"\f1b7c"}.mdi-list-status:before{content:"\f15ab"}.mdi-litecoin:before{content:"\f0a61"}.mdi-loading:before{content:"\f0772"}.mdi-location-enter:before{content:"\f0fc4"}.mdi-location-exit:before{content:"\f0fc5"}.mdi-lock:before{content:"\f033e"}.mdi-lock-alert:before{content:"\f08ee"}.mdi-lock-alert-outline:before{content:"\f15d1"}.mdi-lock-check:before{content:"\f139a"}.mdi-lock-check-outline:before{content:"\f16a8"}.mdi-lock-clock:before{content:"\f097f"}.mdi-lock-minus:before{content:"\f16a9"}.mdi-lock-minus-outline:before{content:"\f16aa"}.mdi-lock-off:before{content:"\f1671"}.mdi-lock-off-outline:before{content:"\f1672"}.mdi-lock-open:before{content:"\f033f"}.mdi-lock-open-alert:before{content:"\f139b"}.mdi-lock-open-alert-outline:before{content:"\f15d2"}.mdi-lock-open-check:before{content:"\f139c"}.mdi-lock-open-check-outline:before{content:"\f16ab"}.mdi-lock-open-minus:before{content:"\f16ac"}.mdi-lock-open-minus-outline:before{content:"\f16ad"}.mdi-lock-open-outline:before{content:"\f0340"}.mdi-lock-open-plus:before{content:"\f16ae"}.mdi-lock-open-plus-outline:before{content:"\f16af"}.mdi-lock-open-remove:before{content:"\f16b0"}.mdi-lock-open-remove-outline:before{content:"\f16b1"}.mdi-lock-open-variant:before{content:"\f0fc6"}.mdi-lock-open-variant-outline:before{content:"\f0fc7"}.mdi-lock-outline:before{content:"\f0341"}.mdi-lock-pattern:before{content:"\f06ea"}.mdi-lock-percent:before{content:"\f1c12"}.mdi-lock-percent-open:before{content:"\f1c13"}.mdi-lock-percent-open-outline:before{content:"\f1c14"}.mdi-lock-percent-open-variant:before{content:"\f1c15"}.mdi-lock-percent-open-variant-outline:before{content:"\f1c16"}.mdi-lock-percent-outline:before{content:"\f1c17"}.mdi-lock-plus:before{content:"\f05fb"}.mdi-lock-plus-outline:before{content:"\f16b2"}.mdi-lock-question:before{content:"\f08ef"}.mdi-lock-remove:before{content:"\f16b3"}.mdi-lock-remove-outline:before{content:"\f16b4"}.mdi-lock-reset:before{content:"\f0773"}.mdi-lock-smart:before{content:"\f08b2"}.mdi-locker:before{content:"\f07d7"}.mdi-locker-multiple:before{content:"\f07d8"}.mdi-login:before{content:"\f0342"}.mdi-login-variant:before{content:"\f05fc"}.mdi-logout:before{content:"\f0343"}.mdi-logout-variant:before{content:"\f05fd"}.mdi-longitude:before{content:"\f0f5a"}.mdi-looks:before{content:"\f0344"}.mdi-lotion:before{content:"\f1582"}.mdi-lotion-outline:before{content:"\f1583"}.mdi-lotion-plus:before{content:"\f1584"}.mdi-lotion-plus-outline:before{content:"\f1585"}.mdi-loupe:before{content:"\f0345"}.mdi-lumx:before{content:"\f0346"}.mdi-lungs:before{content:"\f1084"}.mdi-mace:before{content:"\f1843"}.mdi-magazine-pistol:before{content:"\f0324"}.mdi-magazine-rifle:before{content:"\f0323"}.mdi-magic-staff:before{content:"\f1844"}.mdi-magnet:before{content:"\f0347"}.mdi-magnet-on:before{content:"\f0348"}.mdi-magnify:before{content:"\f0349"}.mdi-magnify-close:before{content:"\f0980"}.mdi-magnify-expand:before{content:"\f1874"}.mdi-magnify-minus:before{content:"\f034a"}.mdi-magnify-minus-cursor:before{content:"\f0a62"}.mdi-magnify-minus-outline:before{content:"\f06ec"}.mdi-magnify-plus:before{content:"\f034b"}.mdi-magnify-plus-cursor:before{content:"\f0a63"}.mdi-magnify-plus-outline:before{content:"\f06ed"}.mdi-magnify-remove-cursor:before{content:"\f120c"}.mdi-magnify-remove-outline:before{content:"\f120d"}.mdi-magnify-scan:before{content:"\f1276"}.mdi-mail:before{content:"\f0ebb"}.mdi-mailbox:before{content:"\f06ee"}.mdi-mailbox-open:before{content:"\f0d88"}.mdi-mailbox-open-outline:before{content:"\f0d89"}.mdi-mailbox-open-up:before{content:"\f0d8a"}.mdi-mailbox-open-up-outline:before{content:"\f0d8b"}.mdi-mailbox-outline:before{content:"\f0d8c"}.mdi-mailbox-up:before{content:"\f0d8d"}.mdi-mailbox-up-outline:before{content:"\f0d8e"}.mdi-manjaro:before{content:"\f160a"}.mdi-map:before{content:"\f034d"}.mdi-map-check:before{content:"\f0ebc"}.mdi-map-check-outline:before{content:"\f0ebd"}.mdi-map-clock:before{content:"\f0d1e"}.mdi-map-clock-outline:before{content:"\f0d1f"}.mdi-map-legend:before{content:"\f0a01"}.mdi-map-marker:before{content:"\f034e"}.mdi-map-marker-account:before{content:"\f18e3"}.mdi-map-marker-account-outline:before{content:"\f18e4"}.mdi-map-marker-alert:before{content:"\f0f05"}.mdi-map-marker-alert-outline:before{content:"\f0f06"}.mdi-map-marker-check:before{content:"\f0c95"}.mdi-map-marker-check-outline:before{content:"\f12fb"}.mdi-map-marker-circle:before{content:"\f034f"}.mdi-map-marker-distance:before{content:"\f08f0"}.mdi-map-marker-down:before{content:"\f1102"}.mdi-map-marker-left:before{content:"\f12db"}.mdi-map-marker-left-outline:before{content:"\f12dd"}.mdi-map-marker-minus:before{content:"\f0650"}.mdi-map-marker-minus-outline:before{content:"\f12f9"}.mdi-map-marker-multiple:before{content:"\f0350"}.mdi-map-marker-multiple-outline:before{content:"\f1277"}.mdi-map-marker-off:before{content:"\f0351"}.mdi-map-marker-off-outline:before{content:"\f12fd"}.mdi-map-marker-outline:before{content:"\f07d9"}.mdi-map-marker-path:before{content:"\f0d20"}.mdi-map-marker-plus:before{content:"\f0651"}.mdi-map-marker-plus-outline:before{content:"\f12f8"}.mdi-map-marker-question:before{content:"\f0f07"}.mdi-map-marker-question-outline:before{content:"\f0f08"}.mdi-map-marker-radius:before{content:"\f0352"}.mdi-map-marker-radius-outline:before{content:"\f12fc"}.mdi-map-marker-remove:before{content:"\f0f09"}.mdi-map-marker-remove-outline:before{content:"\f12fa"}.mdi-map-marker-remove-variant:before{content:"\f0f0a"}.mdi-map-marker-right:before{content:"\f12dc"}.mdi-map-marker-right-outline:before{content:"\f12de"}.mdi-map-marker-star:before{content:"\f1608"}.mdi-map-marker-star-outline:before{content:"\f1609"}.mdi-map-marker-up:before{content:"\f1103"}.mdi-map-minus:before{content:"\f0981"}.mdi-map-outline:before{content:"\f0982"}.mdi-map-plus:before{content:"\f0983"}.mdi-map-search:before{content:"\f0984"}.mdi-map-search-outline:before{content:"\f0985"}.mdi-mapbox:before{content:"\f0baa"}.mdi-margin:before{content:"\f0353"}.mdi-marker:before{content:"\f0652"}.mdi-marker-cancel:before{content:"\f0dd9"}.mdi-marker-check:before{content:"\f0355"}.mdi-mastodon:before{content:"\f0ad1"}.mdi-material-design:before{content:"\f0986"}.mdi-material-ui:before{content:"\f0357"}.mdi-math-compass:before{content:"\f0358"}.mdi-math-cos:before{content:"\f0c96"}.mdi-math-integral:before{content:"\f0fc8"}.mdi-math-integral-box:before{content:"\f0fc9"}.mdi-math-log:before{content:"\f1085"}.mdi-math-norm:before{content:"\f0fca"}.mdi-math-norm-box:before{content:"\f0fcb"}.mdi-math-sin:before{content:"\f0c97"}.mdi-math-tan:before{content:"\f0c98"}.mdi-matrix:before{content:"\f0628"}.mdi-medal:before{content:"\f0987"}.mdi-medal-outline:before{content:"\f1326"}.mdi-medical-bag:before{content:"\f06ef"}.mdi-medical-cotton-swab:before{content:"\f1ab8"}.mdi-medication:before{content:"\f1b14"}.mdi-medication-outline:before{content:"\f1b15"}.mdi-meditation:before{content:"\f117b"}.mdi-memory:before{content:"\f035b"}.mdi-memory-arrow-down:before{content:"\f1ca6"}.mdi-menorah:before{content:"\f17d4"}.mdi-menorah-fire:before{content:"\f17d5"}.mdi-menu:before{content:"\f035c"}.mdi-menu-close:before{content:"\f1c90"}.mdi-menu-down:before{content:"\f035d"}.mdi-menu-down-outline:before{content:"\f06b6"}.mdi-menu-left:before{content:"\f035e"}.mdi-menu-left-outline:before{content:"\f0a02"}.mdi-menu-open:before{content:"\f0bab"}.mdi-menu-right:before{content:"\f035f"}.mdi-menu-right-outline:before{content:"\f0a03"}.mdi-menu-swap:before{content:"\f0a64"}.mdi-menu-swap-outline:before{content:"\f0a65"}.mdi-menu-up:before{content:"\f0360"}.mdi-menu-up-outline:before{content:"\f06b7"}.mdi-merge:before{content:"\f0f5c"}.mdi-message:before{content:"\f0361"}.mdi-message-alert:before{content:"\f0362"}.mdi-message-alert-outline:before{content:"\f0a04"}.mdi-message-arrow-left:before{content:"\f12f2"}.mdi-message-arrow-left-outline:before{content:"\f12f3"}.mdi-message-arrow-right:before{content:"\f12f4"}.mdi-message-arrow-right-outline:before{content:"\f12f5"}.mdi-message-badge:before{content:"\f1941"}.mdi-message-badge-outline:before{content:"\f1942"}.mdi-message-bookmark:before{content:"\f15ac"}.mdi-message-bookmark-outline:before{content:"\f15ad"}.mdi-message-bulleted:before{content:"\f06a2"}.mdi-message-bulleted-off:before{content:"\f06a3"}.mdi-message-check:before{content:"\f1b8a"}.mdi-message-check-outline:before{content:"\f1b8b"}.mdi-message-cog:before{content:"\f06f1"}.mdi-message-cog-outline:before{content:"\f1172"}.mdi-message-draw:before{content:"\f0363"}.mdi-message-fast:before{content:"\f19cc"}.mdi-message-fast-outline:before{content:"\f19cd"}.mdi-message-flash:before{content:"\f15a9"}.mdi-message-flash-outline:before{content:"\f15aa"}.mdi-message-image:before{content:"\f0364"}.mdi-message-image-outline:before{content:"\f116c"}.mdi-message-lock:before{content:"\f0fcc"}.mdi-message-lock-outline:before{content:"\f116d"}.mdi-message-minus:before{content:"\f116e"}.mdi-message-minus-outline:before{content:"\f116f"}.mdi-message-off:before{content:"\f164d"}.mdi-message-off-outline:before{content:"\f164e"}.mdi-message-outline:before{content:"\f0365"}.mdi-message-plus:before{content:"\f0653"}.mdi-message-plus-outline:before{content:"\f10bb"}.mdi-message-processing:before{content:"\f0366"}.mdi-message-processing-outline:before{content:"\f1170"}.mdi-message-question:before{content:"\f173a"}.mdi-message-question-outline:before{content:"\f173b"}.mdi-message-reply:before{content:"\f0367"}.mdi-message-reply-outline:before{content:"\f173d"}.mdi-message-reply-text:before{content:"\f0368"}.mdi-message-reply-text-outline:before{content:"\f173e"}.mdi-message-settings:before{content:"\f06f0"}.mdi-message-settings-outline:before{content:"\f1171"}.mdi-message-star:before{content:"\f069a"}.mdi-message-star-outline:before{content:"\f1250"}.mdi-message-text:before{content:"\f0369"}.mdi-message-text-clock:before{content:"\f1173"}.mdi-message-text-clock-outline:before{content:"\f1174"}.mdi-message-text-fast:before{content:"\f19ce"}.mdi-message-text-fast-outline:before{content:"\f19cf"}.mdi-message-text-lock:before{content:"\f0fcd"}.mdi-message-text-lock-outline:before{content:"\f1175"}.mdi-message-text-outline:before{content:"\f036a"}.mdi-message-video:before{content:"\f036b"}.mdi-meteor:before{content:"\f0629"}.mdi-meter-electric:before{content:"\f1a57"}.mdi-meter-electric-outline:before{content:"\f1a58"}.mdi-meter-gas:before{content:"\f1a59"}.mdi-meter-gas-outline:before{content:"\f1a5a"}.mdi-metronome:before{content:"\f07da"}.mdi-metronome-tick:before{content:"\f07db"}.mdi-micro-sd:before{content:"\f07dc"}.mdi-microphone:before{content:"\f036c"}.mdi-microphone-message:before{content:"\f050a"}.mdi-microphone-message-off:before{content:"\f050b"}.mdi-microphone-minus:before{content:"\f08b3"}.mdi-microphone-off:before{content:"\f036d"}.mdi-microphone-outline:before{content:"\f036e"}.mdi-microphone-plus:before{content:"\f08b4"}.mdi-microphone-question:before{content:"\f1989"}.mdi-microphone-question-outline:before{content:"\f198a"}.mdi-microphone-settings:before{content:"\f036f"}.mdi-microphone-variant:before{content:"\f0370"}.mdi-microphone-variant-off:before{content:"\f0371"}.mdi-microscope:before{content:"\f0654"}.mdi-microsoft:before{content:"\f0372"}.mdi-microsoft-access:before{content:"\f138e"}.mdi-microsoft-azure:before{content:"\f0805"}.mdi-microsoft-azure-devops:before{content:"\f0fd5"}.mdi-microsoft-bing:before{content:"\f00a4"}.mdi-microsoft-dynamics-365:before{content:"\f0988"}.mdi-microsoft-edge:before{content:"\f01e9"}.mdi-microsoft-excel:before{content:"\f138f"}.mdi-microsoft-internet-explorer:before{content:"\f0300"}.mdi-microsoft-office:before{content:"\f03c6"}.mdi-microsoft-onedrive:before{content:"\f03ca"}.mdi-microsoft-onenote:before{content:"\f0747"}.mdi-microsoft-outlook:before{content:"\f0d22"}.mdi-microsoft-powerpoint:before{content:"\f1390"}.mdi-microsoft-sharepoint:before{content:"\f1391"}.mdi-microsoft-teams:before{content:"\f02bb"}.mdi-microsoft-visual-studio:before{content:"\f0610"}.mdi-microsoft-visual-studio-code:before{content:"\f0a1e"}.mdi-microsoft-windows:before{content:"\f05b3"}.mdi-microsoft-windows-classic:before{content:"\f0a21"}.mdi-microsoft-word:before{content:"\f1392"}.mdi-microsoft-xbox:before{content:"\f05b9"}.mdi-microsoft-xbox-controller:before{content:"\f05ba"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"\f074b"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"\f0a22"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"\f074c"}.mdi-microsoft-xbox-controller-battery-full:before{content:"\f074d"}.mdi-microsoft-xbox-controller-battery-low:before{content:"\f074e"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"\f074f"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"\f0750"}.mdi-microsoft-xbox-controller-menu:before{content:"\f0e6f"}.mdi-microsoft-xbox-controller-off:before{content:"\f05bb"}.mdi-microsoft-xbox-controller-view:before{content:"\f0e70"}.mdi-microwave:before{content:"\f0c99"}.mdi-microwave-off:before{content:"\f1423"}.mdi-middleware:before{content:"\f0f5d"}.mdi-middleware-outline:before{content:"\f0f5e"}.mdi-midi:before{content:"\f08f1"}.mdi-midi-port:before{content:"\f08f2"}.mdi-mine:before{content:"\f0dda"}.mdi-minecraft:before{content:"\f0373"}.mdi-mini-sd:before{content:"\f0a05"}.mdi-minidisc:before{content:"\f0a06"}.mdi-minus:before{content:"\f0374"}.mdi-minus-box:before{content:"\f0375"}.mdi-minus-box-multiple:before{content:"\f1141"}.mdi-minus-box-multiple-outline:before{content:"\f1142"}.mdi-minus-box-outline:before{content:"\f06f2"}.mdi-minus-circle:before{content:"\f0376"}.mdi-minus-circle-multiple:before{content:"\f035a"}.mdi-minus-circle-multiple-outline:before{content:"\f0ad3"}.mdi-minus-circle-off:before{content:"\f1459"}.mdi-minus-circle-off-outline:before{content:"\f145a"}.mdi-minus-circle-outline:before{content:"\f0377"}.mdi-minus-network:before{content:"\f0378"}.mdi-minus-network-outline:before{content:"\f0c9a"}.mdi-minus-thick:before{content:"\f1639"}.mdi-mirror:before{content:"\f11fd"}.mdi-mirror-rectangle:before{content:"\f179f"}.mdi-mirror-variant:before{content:"\f17a0"}.mdi-mixed-martial-arts:before{content:"\f0d8f"}.mdi-mixed-reality:before{content:"\f087f"}.mdi-molecule:before{content:"\f0bac"}.mdi-molecule-co:before{content:"\f12fe"}.mdi-molecule-co2:before{content:"\f07e4"}.mdi-monitor:before{content:"\f0379"}.mdi-monitor-account:before{content:"\f1a5b"}.mdi-monitor-arrow-down:before{content:"\f19d0"}.mdi-monitor-arrow-down-variant:before{content:"\f19d1"}.mdi-monitor-cellphone:before{content:"\f0989"}.mdi-monitor-cellphone-star:before{content:"\f098a"}.mdi-monitor-dashboard:before{content:"\f0a07"}.mdi-monitor-edit:before{content:"\f12c6"}.mdi-monitor-eye:before{content:"\f13b4"}.mdi-monitor-lock:before{content:"\f0ddb"}.mdi-monitor-multiple:before{content:"\f037a"}.mdi-monitor-off:before{content:"\f0d90"}.mdi-monitor-screenshot:before{content:"\f0e51"}.mdi-monitor-share:before{content:"\f1483"}.mdi-monitor-shimmer:before{content:"\f1104"}.mdi-monitor-small:before{content:"\f1876"}.mdi-monitor-speaker:before{content:"\f0f5f"}.mdi-monitor-speaker-off:before{content:"\f0f60"}.mdi-monitor-star:before{content:"\f0ddc"}.mdi-monitor-vertical:before{content:"\f1c33"}.mdi-moon-first-quarter:before{content:"\f0f61"}.mdi-moon-full:before{content:"\f0f62"}.mdi-moon-last-quarter:before{content:"\f0f63"}.mdi-moon-new:before{content:"\f0f64"}.mdi-moon-waning-crescent:before{content:"\f0f65"}.mdi-moon-waning-gibbous:before{content:"\f0f66"}.mdi-moon-waxing-crescent:before{content:"\f0f67"}.mdi-moon-waxing-gibbous:before{content:"\f0f68"}.mdi-moped:before{content:"\f1086"}.mdi-moped-electric:before{content:"\f15b7"}.mdi-moped-electric-outline:before{content:"\f15b8"}.mdi-moped-outline:before{content:"\f15b9"}.mdi-more:before{content:"\f037b"}.mdi-mortar-pestle:before{content:"\f1748"}.mdi-mortar-pestle-plus:before{content:"\f03f1"}.mdi-mosque:before{content:"\f0d45"}.mdi-mosque-outline:before{content:"\f1827"}.mdi-mother-heart:before{content:"\f1314"}.mdi-mother-nurse:before{content:"\f0d21"}.mdi-motion:before{content:"\f15b2"}.mdi-motion-outline:before{content:"\f15b3"}.mdi-motion-pause:before{content:"\f1590"}.mdi-motion-pause-outline:before{content:"\f1592"}.mdi-motion-play:before{content:"\f158f"}.mdi-motion-play-outline:before{content:"\f1591"}.mdi-motion-sensor:before{content:"\f0d91"}.mdi-motion-sensor-off:before{content:"\f1435"}.mdi-motorbike:before{content:"\f037c"}.mdi-motorbike-electric:before{content:"\f15ba"}.mdi-motorbike-off:before{content:"\f1b16"}.mdi-mouse:before{content:"\f037d"}.mdi-mouse-bluetooth:before{content:"\f098b"}.mdi-mouse-left-click:before{content:"\f1d07"}.mdi-mouse-left-click-outline:before{content:"\f1d08"}.mdi-mouse-move-down:before{content:"\f1550"}.mdi-mouse-move-up:before{content:"\f1551"}.mdi-mouse-move-vertical:before{content:"\f1552"}.mdi-mouse-off:before{content:"\f037e"}.mdi-mouse-outline:before{content:"\f1d09"}.mdi-mouse-right-click:before{content:"\f1d0a"}.mdi-mouse-right-click-outline:before{content:"\f1d0b"}.mdi-mouse-scroll-wheel:before{content:"\f1d0c"}.mdi-mouse-variant:before{content:"\f037f"}.mdi-mouse-variant-off:before{content:"\f0380"}.mdi-move-resize:before{content:"\f0655"}.mdi-move-resize-variant:before{content:"\f0656"}.mdi-movie:before{content:"\f0381"}.mdi-movie-check:before{content:"\f16f3"}.mdi-movie-check-outline:before{content:"\f16f4"}.mdi-movie-cog:before{content:"\f16f5"}.mdi-movie-cog-outline:before{content:"\f16f6"}.mdi-movie-edit:before{content:"\f1122"}.mdi-movie-edit-outline:before{content:"\f1123"}.mdi-movie-filter:before{content:"\f1124"}.mdi-movie-filter-outline:before{content:"\f1125"}.mdi-movie-minus:before{content:"\f16f7"}.mdi-movie-minus-outline:before{content:"\f16f8"}.mdi-movie-off:before{content:"\f16f9"}.mdi-movie-off-outline:before{content:"\f16fa"}.mdi-movie-open:before{content:"\f0fce"}.mdi-movie-open-check:before{content:"\f16fb"}.mdi-movie-open-check-outline:before{content:"\f16fc"}.mdi-movie-open-cog:before{content:"\f16fd"}.mdi-movie-open-cog-outline:before{content:"\f16fe"}.mdi-movie-open-edit:before{content:"\f16ff"}.mdi-movie-open-edit-outline:before{content:"\f1700"}.mdi-movie-open-minus:before{content:"\f1701"}.mdi-movie-open-minus-outline:before{content:"\f1702"}.mdi-movie-open-off:before{content:"\f1703"}.mdi-movie-open-off-outline:before{content:"\f1704"}.mdi-movie-open-outline:before{content:"\f0fcf"}.mdi-movie-open-play:before{content:"\f1705"}.mdi-movie-open-play-outline:before{content:"\f1706"}.mdi-movie-open-plus:before{content:"\f1707"}.mdi-movie-open-plus-outline:before{content:"\f1708"}.mdi-movie-open-remove:before{content:"\f1709"}.mdi-movie-open-remove-outline:before{content:"\f170a"}.mdi-movie-open-settings:before{content:"\f170b"}.mdi-movie-open-settings-outline:before{content:"\f170c"}.mdi-movie-open-star:before{content:"\f170d"}.mdi-movie-open-star-outline:before{content:"\f170e"}.mdi-movie-outline:before{content:"\f0ddd"}.mdi-movie-play:before{content:"\f170f"}.mdi-movie-play-outline:before{content:"\f1710"}.mdi-movie-plus:before{content:"\f1711"}.mdi-movie-plus-outline:before{content:"\f1712"}.mdi-movie-remove:before{content:"\f1713"}.mdi-movie-remove-outline:before{content:"\f1714"}.mdi-movie-roll:before{content:"\f07de"}.mdi-movie-search:before{content:"\f11d2"}.mdi-movie-search-outline:before{content:"\f11d3"}.mdi-movie-settings:before{content:"\f1715"}.mdi-movie-settings-outline:before{content:"\f1716"}.mdi-movie-star:before{content:"\f1717"}.mdi-movie-star-outline:before{content:"\f1718"}.mdi-mower:before{content:"\f166f"}.mdi-mower-bag:before{content:"\f1670"}.mdi-mower-bag-on:before{content:"\f1b60"}.mdi-mower-on:before{content:"\f1b5f"}.mdi-muffin:before{content:"\f098c"}.mdi-multicast:before{content:"\f1893"}.mdi-multimedia:before{content:"\f1b97"}.mdi-multiplication:before{content:"\f0382"}.mdi-multiplication-box:before{content:"\f0383"}.mdi-mushroom:before{content:"\f07df"}.mdi-mushroom-off:before{content:"\f13fa"}.mdi-mushroom-off-outline:before{content:"\f13fb"}.mdi-mushroom-outline:before{content:"\f07e0"}.mdi-music:before{content:"\f075a"}.mdi-music-accidental-double-flat:before{content:"\f0f69"}.mdi-music-accidental-double-sharp:before{content:"\f0f6a"}.mdi-music-accidental-flat:before{content:"\f0f6b"}.mdi-music-accidental-natural:before{content:"\f0f6c"}.mdi-music-accidental-sharp:before{content:"\f0f6d"}.mdi-music-box:before{content:"\f0384"}.mdi-music-box-multiple:before{content:"\f0333"}.mdi-music-box-multiple-outline:before{content:"\f0f04"}.mdi-music-box-outline:before{content:"\f0385"}.mdi-music-circle:before{content:"\f0386"}.mdi-music-circle-outline:before{content:"\f0ad4"}.mdi-music-clef-alto:before{content:"\f0f6e"}.mdi-music-clef-bass:before{content:"\f0f6f"}.mdi-music-clef-treble:before{content:"\f0f70"}.mdi-music-note:before{content:"\f0387"}.mdi-music-note-bluetooth:before{content:"\f05fe"}.mdi-music-note-bluetooth-off:before{content:"\f05ff"}.mdi-music-note-eighth:before{content:"\f0388"}.mdi-music-note-eighth-dotted:before{content:"\f0f71"}.mdi-music-note-half:before{content:"\f0389"}.mdi-music-note-half-dotted:before{content:"\f0f72"}.mdi-music-note-minus:before{content:"\f1b89"}.mdi-music-note-off:before{content:"\f038a"}.mdi-music-note-off-outline:before{content:"\f0f73"}.mdi-music-note-outline:before{content:"\f0f74"}.mdi-music-note-plus:before{content:"\f0dde"}.mdi-music-note-quarter:before{content:"\f038b"}.mdi-music-note-quarter-dotted:before{content:"\f0f75"}.mdi-music-note-sixteenth:before{content:"\f038c"}.mdi-music-note-sixteenth-dotted:before{content:"\f0f76"}.mdi-music-note-whole:before{content:"\f038d"}.mdi-music-note-whole-dotted:before{content:"\f0f77"}.mdi-music-off:before{content:"\f075b"}.mdi-music-rest-eighth:before{content:"\f0f78"}.mdi-music-rest-half:before{content:"\f0f79"}.mdi-music-rest-quarter:before{content:"\f0f7a"}.mdi-music-rest-sixteenth:before{content:"\f0f7b"}.mdi-music-rest-whole:before{content:"\f0f7c"}.mdi-mustache:before{content:"\f15de"}.mdi-nail:before{content:"\f0ddf"}.mdi-nas:before{content:"\f08f3"}.mdi-nativescript:before{content:"\f0880"}.mdi-nature:before{content:"\f038e"}.mdi-nature-outline:before{content:"\f1c71"}.mdi-nature-people:before{content:"\f038f"}.mdi-nature-people-outline:before{content:"\f1c72"}.mdi-navigation:before{content:"\f0390"}.mdi-navigation-outline:before{content:"\f1607"}.mdi-navigation-variant:before{content:"\f18f0"}.mdi-navigation-variant-outline:before{content:"\f18f1"}.mdi-near-me:before{content:"\f05cd"}.mdi-necklace:before{content:"\f0f0b"}.mdi-needle:before{content:"\f0391"}.mdi-needle-off:before{content:"\f19d2"}.mdi-netflix:before{content:"\f0746"}.mdi-network:before{content:"\f06f3"}.mdi-network-off:before{content:"\f0c9b"}.mdi-network-off-outline:before{content:"\f0c9c"}.mdi-network-outline:before{content:"\f0c9d"}.mdi-network-pos:before{content:"\f1acb"}.mdi-network-strength-1:before{content:"\f08f4"}.mdi-network-strength-1-alert:before{content:"\f08f5"}.mdi-network-strength-2:before{content:"\f08f6"}.mdi-network-strength-2-alert:before{content:"\f08f7"}.mdi-network-strength-3:before{content:"\f08f8"}.mdi-network-strength-3-alert:before{content:"\f08f9"}.mdi-network-strength-4:before{content:"\f08fa"}.mdi-network-strength-4-alert:before{content:"\f08fb"}.mdi-network-strength-4-cog:before{content:"\f191a"}.mdi-network-strength-off:before{content:"\f08fc"}.mdi-network-strength-off-outline:before{content:"\f08fd"}.mdi-network-strength-outline:before{content:"\f08fe"}.mdi-new-box:before{content:"\f0394"}.mdi-newspaper:before{content:"\f0395"}.mdi-newspaper-check:before{content:"\f1943"}.mdi-newspaper-minus:before{content:"\f0f0c"}.mdi-newspaper-plus:before{content:"\f0f0d"}.mdi-newspaper-remove:before{content:"\f1944"}.mdi-newspaper-variant:before{content:"\f1001"}.mdi-newspaper-variant-multiple:before{content:"\f1002"}.mdi-newspaper-variant-multiple-outline:before{content:"\f1003"}.mdi-newspaper-variant-outline:before{content:"\f1004"}.mdi-nfc:before{content:"\f0396"}.mdi-nfc-search-variant:before{content:"\f0e53"}.mdi-nfc-tap:before{content:"\f0397"}.mdi-nfc-variant:before{content:"\f0398"}.mdi-nfc-variant-off:before{content:"\f0e54"}.mdi-ninja:before{content:"\f0774"}.mdi-nintendo-game-boy:before{content:"\f1393"}.mdi-nintendo-switch:before{content:"\f07e1"}.mdi-nintendo-wii:before{content:"\f05ab"}.mdi-nintendo-wiiu:before{content:"\f072d"}.mdi-nix:before{content:"\f1105"}.mdi-nodejs:before{content:"\f0399"}.mdi-noodles:before{content:"\f117e"}.mdi-not-equal:before{content:"\f098d"}.mdi-not-equal-variant:before{content:"\f098e"}.mdi-note:before{content:"\f039a"}.mdi-note-alert:before{content:"\f177d"}.mdi-note-alert-outline:before{content:"\f177e"}.mdi-note-check:before{content:"\f177f"}.mdi-note-check-outline:before{content:"\f1780"}.mdi-note-edit:before{content:"\f1781"}.mdi-note-edit-outline:before{content:"\f1782"}.mdi-note-minus:before{content:"\f164f"}.mdi-note-minus-outline:before{content:"\f1650"}.mdi-note-multiple:before{content:"\f06b8"}.mdi-note-multiple-outline:before{content:"\f06b9"}.mdi-note-off:before{content:"\f1783"}.mdi-note-off-outline:before{content:"\f1784"}.mdi-note-outline:before{content:"\f039b"}.mdi-note-plus:before{content:"\f039c"}.mdi-note-plus-outline:before{content:"\f039d"}.mdi-note-remove:before{content:"\f1651"}.mdi-note-remove-outline:before{content:"\f1652"}.mdi-note-search:before{content:"\f1653"}.mdi-note-search-outline:before{content:"\f1654"}.mdi-note-text:before{content:"\f039e"}.mdi-note-text-outline:before{content:"\f11d7"}.mdi-notebook:before{content:"\f082e"}.mdi-notebook-check:before{content:"\f14f5"}.mdi-notebook-check-outline:before{content:"\f14f6"}.mdi-notebook-edit:before{content:"\f14e7"}.mdi-notebook-edit-outline:before{content:"\f14e9"}.mdi-notebook-heart:before{content:"\f1a0b"}.mdi-notebook-heart-outline:before{content:"\f1a0c"}.mdi-notebook-minus:before{content:"\f1610"}.mdi-notebook-minus-outline:before{content:"\f1611"}.mdi-notebook-multiple:before{content:"\f0e55"}.mdi-notebook-outline:before{content:"\f0ebf"}.mdi-notebook-plus:before{content:"\f1612"}.mdi-notebook-plus-outline:before{content:"\f1613"}.mdi-notebook-remove:before{content:"\f1614"}.mdi-notebook-remove-outline:before{content:"\f1615"}.mdi-notification-clear-all:before{content:"\f039f"}.mdi-npm:before{content:"\f06f7"}.mdi-nuke:before{content:"\f06a4"}.mdi-null:before{content:"\f07e2"}.mdi-numeric:before{content:"\f03a0"}.mdi-numeric-0:before{content:"\f0b39"}.mdi-numeric-0-box:before{content:"\f03a1"}.mdi-numeric-0-box-multiple:before{content:"\f0f0e"}.mdi-numeric-0-box-multiple-outline:before{content:"\f03a2"}.mdi-numeric-0-box-outline:before{content:"\f03a3"}.mdi-numeric-0-circle:before{content:"\f0c9e"}.mdi-numeric-0-circle-outline:before{content:"\f0c9f"}.mdi-numeric-1:before{content:"\f0b3a"}.mdi-numeric-1-box:before{content:"\f03a4"}.mdi-numeric-1-box-multiple:before{content:"\f0f0f"}.mdi-numeric-1-box-multiple-outline:before{content:"\f03a5"}.mdi-numeric-1-box-outline:before{content:"\f03a6"}.mdi-numeric-1-circle:before{content:"\f0ca0"}.mdi-numeric-1-circle-outline:before{content:"\f0ca1"}.mdi-numeric-10:before{content:"\f0fe9"}.mdi-numeric-10-box:before{content:"\f0f7d"}.mdi-numeric-10-box-multiple:before{content:"\f0fea"}.mdi-numeric-10-box-multiple-outline:before{content:"\f0feb"}.mdi-numeric-10-box-outline:before{content:"\f0f7e"}.mdi-numeric-10-circle:before{content:"\f0fec"}.mdi-numeric-10-circle-outline:before{content:"\f0fed"}.mdi-numeric-2:before{content:"\f0b3b"}.mdi-numeric-2-box:before{content:"\f03a7"}.mdi-numeric-2-box-multiple:before{content:"\f0f10"}.mdi-numeric-2-box-multiple-outline:before{content:"\f03a8"}.mdi-numeric-2-box-outline:before{content:"\f03a9"}.mdi-numeric-2-circle:before{content:"\f0ca2"}.mdi-numeric-2-circle-outline:before{content:"\f0ca3"}.mdi-numeric-3:before{content:"\f0b3c"}.mdi-numeric-3-box:before{content:"\f03aa"}.mdi-numeric-3-box-multiple:before{content:"\f0f11"}.mdi-numeric-3-box-multiple-outline:before{content:"\f03ab"}.mdi-numeric-3-box-outline:before{content:"\f03ac"}.mdi-numeric-3-circle:before{content:"\f0ca4"}.mdi-numeric-3-circle-outline:before{content:"\f0ca5"}.mdi-numeric-4:before{content:"\f0b3d"}.mdi-numeric-4-box:before{content:"\f03ad"}.mdi-numeric-4-box-multiple:before{content:"\f0f12"}.mdi-numeric-4-box-multiple-outline:before{content:"\f03b2"}.mdi-numeric-4-box-outline:before{content:"\f03ae"}.mdi-numeric-4-circle:before{content:"\f0ca6"}.mdi-numeric-4-circle-outline:before{content:"\f0ca7"}.mdi-numeric-5:before{content:"\f0b3e"}.mdi-numeric-5-box:before{content:"\f03b1"}.mdi-numeric-5-box-multiple:before{content:"\f0f13"}.mdi-numeric-5-box-multiple-outline:before{content:"\f03af"}.mdi-numeric-5-box-outline:before{content:"\f03b0"}.mdi-numeric-5-circle:before{content:"\f0ca8"}.mdi-numeric-5-circle-outline:before{content:"\f0ca9"}.mdi-numeric-6:before{content:"\f0b3f"}.mdi-numeric-6-box:before{content:"\f03b3"}.mdi-numeric-6-box-multiple:before{content:"\f0f14"}.mdi-numeric-6-box-multiple-outline:before{content:"\f03b4"}.mdi-numeric-6-box-outline:before{content:"\f03b5"}.mdi-numeric-6-circle:before{content:"\f0caa"}.mdi-numeric-6-circle-outline:before{content:"\f0cab"}.mdi-numeric-7:before{content:"\f0b40"}.mdi-numeric-7-box:before{content:"\f03b6"}.mdi-numeric-7-box-multiple:before{content:"\f0f15"}.mdi-numeric-7-box-multiple-outline:before{content:"\f03b7"}.mdi-numeric-7-box-outline:before{content:"\f03b8"}.mdi-numeric-7-circle:before{content:"\f0cac"}.mdi-numeric-7-circle-outline:before{content:"\f0cad"}.mdi-numeric-8:before{content:"\f0b41"}.mdi-numeric-8-box:before{content:"\f03b9"}.mdi-numeric-8-box-multiple:before{content:"\f0f16"}.mdi-numeric-8-box-multiple-outline:before{content:"\f03ba"}.mdi-numeric-8-box-outline:before{content:"\f03bb"}.mdi-numeric-8-circle:before{content:"\f0cae"}.mdi-numeric-8-circle-outline:before{content:"\f0caf"}.mdi-numeric-9:before{content:"\f0b42"}.mdi-numeric-9-box:before{content:"\f03bc"}.mdi-numeric-9-box-multiple:before{content:"\f0f17"}.mdi-numeric-9-box-multiple-outline:before{content:"\f03bd"}.mdi-numeric-9-box-outline:before{content:"\f03be"}.mdi-numeric-9-circle:before{content:"\f0cb0"}.mdi-numeric-9-circle-outline:before{content:"\f0cb1"}.mdi-numeric-9-plus:before{content:"\f0fee"}.mdi-numeric-9-plus-box:before{content:"\f03bf"}.mdi-numeric-9-plus-box-multiple:before{content:"\f0f18"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"\f03c0"}.mdi-numeric-9-plus-box-outline:before{content:"\f03c1"}.mdi-numeric-9-plus-circle:before{content:"\f0cb2"}.mdi-numeric-9-plus-circle-outline:before{content:"\f0cb3"}.mdi-numeric-negative-1:before{content:"\f1052"}.mdi-numeric-off:before{content:"\f19d3"}.mdi-numeric-positive-1:before{content:"\f15cb"}.mdi-nut:before{content:"\f06f8"}.mdi-nutrition:before{content:"\f03c2"}.mdi-nuxt:before{content:"\f1106"}.mdi-oar:before{content:"\f067c"}.mdi-ocarina:before{content:"\f0de0"}.mdi-oci:before{content:"\f12e9"}.mdi-ocr:before{content:"\f113a"}.mdi-octagon:before{content:"\f03c3"}.mdi-octagon-outline:before{content:"\f03c4"}.mdi-octagram:before{content:"\f06f9"}.mdi-octagram-edit:before{content:"\f1c34"}.mdi-octagram-edit-outline:before{content:"\f1c35"}.mdi-octagram-minus:before{content:"\f1c36"}.mdi-octagram-minus-outline:before{content:"\f1c37"}.mdi-octagram-outline:before{content:"\f0775"}.mdi-octagram-plus:before{content:"\f1c38"}.mdi-octagram-plus-outline:before{content:"\f1c39"}.mdi-octahedron:before{content:"\f1950"}.mdi-octahedron-off:before{content:"\f1951"}.mdi-odnoklassniki:before{content:"\f03c5"}.mdi-offer:before{content:"\f121b"}.mdi-office-building:before{content:"\f0991"}.mdi-office-building-cog:before{content:"\f1949"}.mdi-office-building-cog-outline:before{content:"\f194a"}.mdi-office-building-marker:before{content:"\f1520"}.mdi-office-building-marker-outline:before{content:"\f1521"}.mdi-office-building-minus:before{content:"\f1baa"}.mdi-office-building-minus-outline:before{content:"\f1bab"}.mdi-office-building-outline:before{content:"\f151f"}.mdi-office-building-plus:before{content:"\f1ba8"}.mdi-office-building-plus-outline:before{content:"\f1ba9"}.mdi-office-building-remove:before{content:"\f1bac"}.mdi-office-building-remove-outline:before{content:"\f1bad"}.mdi-oil:before{content:"\f03c7"}.mdi-oil-lamp:before{content:"\f0f19"}.mdi-oil-level:before{content:"\f1053"}.mdi-oil-temperature:before{content:"\f0ff8"}.mdi-om:before{content:"\f0973"}.mdi-omega:before{content:"\f03c9"}.mdi-one-up:before{content:"\f0bad"}.mdi-onepassword:before{content:"\f0881"}.mdi-opacity:before{content:"\f05cc"}.mdi-open-in-app:before{content:"\f03cb"}.mdi-open-in-new:before{content:"\f03cc"}.mdi-open-source-initiative:before{content:"\f0bae"}.mdi-openid:before{content:"\f03cd"}.mdi-opera:before{content:"\f03ce"}.mdi-orbit:before{content:"\f0018"}.mdi-orbit-variant:before{content:"\f15db"}.mdi-order-alphabetical-ascending:before{content:"\f020d"}.mdi-order-alphabetical-descending:before{content:"\f0d07"}.mdi-order-bool-ascending:before{content:"\f02be"}.mdi-order-bool-ascending-variant:before{content:"\f098f"}.mdi-order-bool-descending:before{content:"\f1384"}.mdi-order-bool-descending-variant:before{content:"\f0990"}.mdi-order-numeric-ascending:before{content:"\f0545"}.mdi-order-numeric-descending:before{content:"\f0546"}.mdi-origin:before{content:"\f0b43"}.mdi-ornament:before{content:"\f03cf"}.mdi-ornament-variant:before{content:"\f03d0"}.mdi-outdoor-lamp:before{content:"\f1054"}.mdi-overscan:before{content:"\f1005"}.mdi-owl:before{content:"\f03d2"}.mdi-pac-man:before{content:"\f0baf"}.mdi-package:before{content:"\f03d3"}.mdi-package-check:before{content:"\f1b51"}.mdi-package-down:before{content:"\f03d4"}.mdi-package-up:before{content:"\f03d5"}.mdi-package-variant:before{content:"\f03d6"}.mdi-package-variant-closed:before{content:"\f03d7"}.mdi-package-variant-closed-check:before{content:"\f1b52"}.mdi-package-variant-closed-minus:before{content:"\f19d4"}.mdi-package-variant-closed-plus:before{content:"\f19d5"}.mdi-package-variant-closed-remove:before{content:"\f19d6"}.mdi-package-variant-minus:before{content:"\f19d7"}.mdi-package-variant-plus:before{content:"\f19d8"}.mdi-package-variant-remove:before{content:"\f19d9"}.mdi-page-first:before{content:"\f0600"}.mdi-page-last:before{content:"\f0601"}.mdi-page-layout-body:before{content:"\f06fa"}.mdi-page-layout-footer:before{content:"\f06fb"}.mdi-page-layout-header:before{content:"\f06fc"}.mdi-page-layout-header-footer:before{content:"\f0f7f"}.mdi-page-layout-sidebar-left:before{content:"\f06fd"}.mdi-page-layout-sidebar-right:before{content:"\f06fe"}.mdi-page-next:before{content:"\f0bb0"}.mdi-page-next-outline:before{content:"\f0bb1"}.mdi-page-previous:before{content:"\f0bb2"}.mdi-page-previous-outline:before{content:"\f0bb3"}.mdi-pail:before{content:"\f1417"}.mdi-pail-minus:before{content:"\f1437"}.mdi-pail-minus-outline:before{content:"\f143c"}.mdi-pail-off:before{content:"\f1439"}.mdi-pail-off-outline:before{content:"\f143e"}.mdi-pail-outline:before{content:"\f143a"}.mdi-pail-plus:before{content:"\f1436"}.mdi-pail-plus-outline:before{content:"\f143b"}.mdi-pail-remove:before{content:"\f1438"}.mdi-pail-remove-outline:before{content:"\f143d"}.mdi-palette:before{content:"\f03d8"}.mdi-palette-advanced:before{content:"\f03d9"}.mdi-palette-outline:before{content:"\f0e0c"}.mdi-palette-swatch:before{content:"\f08b5"}.mdi-palette-swatch-outline:before{content:"\f135c"}.mdi-palette-swatch-variant:before{content:"\f195a"}.mdi-palm-tree:before{content:"\f1055"}.mdi-pan:before{content:"\f0bb4"}.mdi-pan-bottom-left:before{content:"\f0bb5"}.mdi-pan-bottom-right:before{content:"\f0bb6"}.mdi-pan-down:before{content:"\f0bb7"}.mdi-pan-horizontal:before{content:"\f0bb8"}.mdi-pan-left:before{content:"\f0bb9"}.mdi-pan-right:before{content:"\f0bba"}.mdi-pan-top-left:before{content:"\f0bbb"}.mdi-pan-top-right:before{content:"\f0bbc"}.mdi-pan-up:before{content:"\f0bbd"}.mdi-pan-vertical:before{content:"\f0bbe"}.mdi-panda:before{content:"\f03da"}.mdi-pandora:before{content:"\f03db"}.mdi-panorama:before{content:"\f03dc"}.mdi-panorama-fisheye:before{content:"\f03dd"}.mdi-panorama-horizontal:before{content:"\f1928"}.mdi-panorama-horizontal-outline:before{content:"\f03de"}.mdi-panorama-outline:before{content:"\f198c"}.mdi-panorama-sphere:before{content:"\f198d"}.mdi-panorama-sphere-outline:before{content:"\f198e"}.mdi-panorama-variant:before{content:"\f198f"}.mdi-panorama-variant-outline:before{content:"\f1990"}.mdi-panorama-vertical:before{content:"\f1929"}.mdi-panorama-vertical-outline:before{content:"\f03df"}.mdi-panorama-wide-angle:before{content:"\f195f"}.mdi-panorama-wide-angle-outline:before{content:"\f03e0"}.mdi-paper-cut-vertical:before{content:"\f03e1"}.mdi-paper-roll:before{content:"\f1157"}.mdi-paper-roll-outline:before{content:"\f1158"}.mdi-paperclip:before{content:"\f03e2"}.mdi-paperclip-check:before{content:"\f1ac6"}.mdi-paperclip-lock:before{content:"\f19da"}.mdi-paperclip-minus:before{content:"\f1ac7"}.mdi-paperclip-off:before{content:"\f1ac8"}.mdi-paperclip-plus:before{content:"\f1ac9"}.mdi-paperclip-remove:before{content:"\f1aca"}.mdi-parachute:before{content:"\f0cb4"}.mdi-parachute-outline:before{content:"\f0cb5"}.mdi-paragliding:before{content:"\f1745"}.mdi-parking:before{content:"\f03e3"}.mdi-party-popper:before{content:"\f1056"}.mdi-passport:before{content:"\f07e3"}.mdi-passport-alert:before{content:"\f1cb8"}.mdi-passport-biometric:before{content:"\f0de1"}.mdi-passport-cancel:before{content:"\f1cb9"}.mdi-passport-check:before{content:"\f1cba"}.mdi-passport-minus:before{content:"\f1cbb"}.mdi-passport-plus:before{content:"\f1cbc"}.mdi-passport-remove:before{content:"\f1cbd"}.mdi-pasta:before{content:"\f1160"}.mdi-patio-heater:before{content:"\f0f80"}.mdi-patreon:before{content:"\f0882"}.mdi-pause:before{content:"\f03e4"}.mdi-pause-box:before{content:"\f00bc"}.mdi-pause-box-outline:before{content:"\f1b7a"}.mdi-pause-circle:before{content:"\f03e5"}.mdi-pause-circle-outline:before{content:"\f03e6"}.mdi-pause-octagon:before{content:"\f03e7"}.mdi-pause-octagon-outline:before{content:"\f03e8"}.mdi-paw:before{content:"\f03e9"}.mdi-paw-off:before{content:"\f0657"}.mdi-paw-off-outline:before{content:"\f1676"}.mdi-paw-outline:before{content:"\f1675"}.mdi-peace:before{content:"\f0884"}.mdi-peanut:before{content:"\f0ffc"}.mdi-peanut-off:before{content:"\f0ffd"}.mdi-peanut-off-outline:before{content:"\f0fff"}.mdi-peanut-outline:before{content:"\f0ffe"}.mdi-pen:before{content:"\f03ea"}.mdi-pen-lock:before{content:"\f0de2"}.mdi-pen-minus:before{content:"\f0de3"}.mdi-pen-off:before{content:"\f0de4"}.mdi-pen-plus:before{content:"\f0de5"}.mdi-pen-remove:before{content:"\f0de6"}.mdi-pencil:before{content:"\f03eb"}.mdi-pencil-box:before{content:"\f03ec"}.mdi-pencil-box-multiple:before{content:"\f1144"}.mdi-pencil-box-multiple-outline:before{content:"\f1145"}.mdi-pencil-box-outline:before{content:"\f03ed"}.mdi-pencil-circle:before{content:"\f06ff"}.mdi-pencil-circle-outline:before{content:"\f0776"}.mdi-pencil-lock:before{content:"\f03ee"}.mdi-pencil-lock-outline:before{content:"\f0de7"}.mdi-pencil-minus:before{content:"\f0de8"}.mdi-pencil-minus-outline:before{content:"\f0de9"}.mdi-pencil-off:before{content:"\f03ef"}.mdi-pencil-off-outline:before{content:"\f0dea"}.mdi-pencil-outline:before{content:"\f0cb6"}.mdi-pencil-plus:before{content:"\f0deb"}.mdi-pencil-plus-outline:before{content:"\f0dec"}.mdi-pencil-remove:before{content:"\f0ded"}.mdi-pencil-remove-outline:before{content:"\f0dee"}.mdi-pencil-ruler:before{content:"\f1353"}.mdi-pencil-ruler-outline:before{content:"\f1c11"}.mdi-penguin:before{content:"\f0ec0"}.mdi-pentagon:before{content:"\f0701"}.mdi-pentagon-outline:before{content:"\f0700"}.mdi-pentagram:before{content:"\f1667"}.mdi-percent:before{content:"\f03f0"}.mdi-percent-box:before{content:"\f1a02"}.mdi-percent-box-outline:before{content:"\f1a03"}.mdi-percent-circle:before{content:"\f1a04"}.mdi-percent-circle-outline:before{content:"\f1a05"}.mdi-percent-outline:before{content:"\f1278"}.mdi-periodic-table:before{content:"\f08b6"}.mdi-perspective-less:before{content:"\f0d23"}.mdi-perspective-more:before{content:"\f0d24"}.mdi-ph:before{content:"\f17c5"}.mdi-phone:before{content:"\f03f2"}.mdi-phone-alert:before{content:"\f0f1a"}.mdi-phone-alert-outline:before{content:"\f118e"}.mdi-phone-bluetooth:before{content:"\f03f3"}.mdi-phone-bluetooth-outline:before{content:"\f118f"}.mdi-phone-cancel:before{content:"\f10bc"}.mdi-phone-cancel-outline:before{content:"\f1190"}.mdi-phone-check:before{content:"\f11a9"}.mdi-phone-check-outline:before{content:"\f11aa"}.mdi-phone-classic:before{content:"\f0602"}.mdi-phone-classic-off:before{content:"\f1279"}.mdi-phone-clock:before{content:"\f19db"}.mdi-phone-dial:before{content:"\f1559"}.mdi-phone-dial-outline:before{content:"\f155a"}.mdi-phone-forward:before{content:"\f03f4"}.mdi-phone-forward-outline:before{content:"\f1191"}.mdi-phone-hangup:before{content:"\f03f5"}.mdi-phone-hangup-outline:before{content:"\f1192"}.mdi-phone-in-talk:before{content:"\f03f6"}.mdi-phone-in-talk-outline:before{content:"\f1182"}.mdi-phone-incoming:before{content:"\f03f7"}.mdi-phone-incoming-outgoing:before{content:"\f1b3f"}.mdi-phone-incoming-outgoing-outline:before{content:"\f1b40"}.mdi-phone-incoming-outline:before{content:"\f1193"}.mdi-phone-lock:before{content:"\f03f8"}.mdi-phone-lock-outline:before{content:"\f1194"}.mdi-phone-log:before{content:"\f03f9"}.mdi-phone-log-outline:before{content:"\f1195"}.mdi-phone-message:before{content:"\f1196"}.mdi-phone-message-outline:before{content:"\f1197"}.mdi-phone-minus:before{content:"\f0658"}.mdi-phone-minus-outline:before{content:"\f1198"}.mdi-phone-missed:before{content:"\f03fa"}.mdi-phone-missed-outline:before{content:"\f11a5"}.mdi-phone-off:before{content:"\f0def"}.mdi-phone-off-outline:before{content:"\f11a6"}.mdi-phone-outgoing:before{content:"\f03fb"}.mdi-phone-outgoing-outline:before{content:"\f1199"}.mdi-phone-outline:before{content:"\f0df0"}.mdi-phone-paused:before{content:"\f03fc"}.mdi-phone-paused-outline:before{content:"\f119a"}.mdi-phone-plus:before{content:"\f0659"}.mdi-phone-plus-outline:before{content:"\f119b"}.mdi-phone-refresh:before{content:"\f1993"}.mdi-phone-refresh-outline:before{content:"\f1994"}.mdi-phone-remove:before{content:"\f152f"}.mdi-phone-remove-outline:before{content:"\f1530"}.mdi-phone-return:before{content:"\f082f"}.mdi-phone-return-outline:before{content:"\f119c"}.mdi-phone-ring:before{content:"\f11ab"}.mdi-phone-ring-outline:before{content:"\f11ac"}.mdi-phone-rotate-landscape:before{content:"\f0885"}.mdi-phone-rotate-portrait:before{content:"\f0886"}.mdi-phone-settings:before{content:"\f03fd"}.mdi-phone-settings-outline:before{content:"\f119d"}.mdi-phone-sync:before{content:"\f1995"}.mdi-phone-sync-outline:before{content:"\f1996"}.mdi-phone-voip:before{content:"\f03fe"}.mdi-pi:before{content:"\f03ff"}.mdi-pi-box:before{content:"\f0400"}.mdi-pi-hole:before{content:"\f0df1"}.mdi-piano:before{content:"\f067d"}.mdi-piano-off:before{content:"\f0698"}.mdi-pickaxe:before{content:"\f08b7"}.mdi-picture-in-picture-bottom-right:before{content:"\f0e57"}.mdi-picture-in-picture-bottom-right-outline:before{content:"\f0e58"}.mdi-picture-in-picture-top-right:before{content:"\f0e59"}.mdi-picture-in-picture-top-right-outline:before{content:"\f0e5a"}.mdi-pier:before{content:"\f0887"}.mdi-pier-crane:before{content:"\f0888"}.mdi-pig:before{content:"\f0401"}.mdi-pig-variant:before{content:"\f1006"}.mdi-pig-variant-outline:before{content:"\f1678"}.mdi-piggy-bank:before{content:"\f1007"}.mdi-piggy-bank-outline:before{content:"\f1679"}.mdi-pill:before{content:"\f0402"}.mdi-pill-multiple:before{content:"\f1b4c"}.mdi-pill-off:before{content:"\f1a5c"}.mdi-pillar:before{content:"\f0702"}.mdi-pin:before{content:"\f0403"}.mdi-pin-off:before{content:"\f0404"}.mdi-pin-off-outline:before{content:"\f0930"}.mdi-pin-outline:before{content:"\f0931"}.mdi-pine-tree:before{content:"\f0405"}.mdi-pine-tree-box:before{content:"\f0406"}.mdi-pine-tree-fire:before{content:"\f141a"}.mdi-pine-tree-variant:before{content:"\f1c73"}.mdi-pine-tree-variant-outline:before{content:"\f1c74"}.mdi-pinterest:before{content:"\f0407"}.mdi-pinwheel:before{content:"\f0ad5"}.mdi-pinwheel-outline:before{content:"\f0ad6"}.mdi-pipe:before{content:"\f07e5"}.mdi-pipe-disconnected:before{content:"\f07e6"}.mdi-pipe-leak:before{content:"\f0889"}.mdi-pipe-valve:before{content:"\f184d"}.mdi-pipe-wrench:before{content:"\f1354"}.mdi-pirate:before{content:"\f0a08"}.mdi-pistol:before{content:"\f0703"}.mdi-piston:before{content:"\f088a"}.mdi-pitchfork:before{content:"\f1553"}.mdi-pizza:before{content:"\f0409"}.mdi-plane-car:before{content:"\f1aff"}.mdi-plane-train:before{content:"\f1b00"}.mdi-play:before{content:"\f040a"}.mdi-play-box:before{content:"\f127a"}.mdi-play-box-edit-outline:before{content:"\f1c3a"}.mdi-play-box-lock:before{content:"\f1a16"}.mdi-play-box-lock-open:before{content:"\f1a17"}.mdi-play-box-lock-open-outline:before{content:"\f1a18"}.mdi-play-box-lock-outline:before{content:"\f1a19"}.mdi-play-box-multiple:before{content:"\f0d19"}.mdi-play-box-multiple-outline:before{content:"\f13e6"}.mdi-play-box-outline:before{content:"\f040b"}.mdi-play-circle:before{content:"\f040c"}.mdi-play-circle-outline:before{content:"\f040d"}.mdi-play-network:before{content:"\f088b"}.mdi-play-network-outline:before{content:"\f0cb7"}.mdi-play-outline:before{content:"\f0f1b"}.mdi-play-pause:before{content:"\f040e"}.mdi-play-protected-content:before{content:"\f040f"}.mdi-play-speed:before{content:"\f08ff"}.mdi-playlist-check:before{content:"\f05c7"}.mdi-playlist-edit:before{content:"\f0900"}.mdi-playlist-minus:before{content:"\f0410"}.mdi-playlist-music:before{content:"\f0cb8"}.mdi-playlist-music-outline:before{content:"\f0cb9"}.mdi-playlist-play:before{content:"\f0411"}.mdi-playlist-plus:before{content:"\f0412"}.mdi-playlist-remove:before{content:"\f0413"}.mdi-playlist-star:before{content:"\f0df2"}.mdi-plex:before{content:"\f06ba"}.mdi-pliers:before{content:"\f19a4"}.mdi-plus:before{content:"\f0415"}.mdi-plus-box:before{content:"\f0416"}.mdi-plus-box-multiple:before{content:"\f0334"}.mdi-plus-box-multiple-outline:before{content:"\f1143"}.mdi-plus-box-outline:before{content:"\f0704"}.mdi-plus-circle:before{content:"\f0417"}.mdi-plus-circle-multiple:before{content:"\f034c"}.mdi-plus-circle-multiple-outline:before{content:"\f0418"}.mdi-plus-circle-outline:before{content:"\f0419"}.mdi-plus-lock:before{content:"\f1a5d"}.mdi-plus-lock-open:before{content:"\f1a5e"}.mdi-plus-minus:before{content:"\f0992"}.mdi-plus-minus-box:before{content:"\f0993"}.mdi-plus-minus-variant:before{content:"\f14c9"}.mdi-plus-network:before{content:"\f041a"}.mdi-plus-network-outline:before{content:"\f0cba"}.mdi-plus-outline:before{content:"\f0705"}.mdi-plus-thick:before{content:"\f11ec"}.mdi-pocket:before{content:"\f1cbe"}.mdi-podcast:before{content:"\f0994"}.mdi-podium:before{content:"\f0d25"}.mdi-podium-bronze:before{content:"\f0d26"}.mdi-podium-gold:before{content:"\f0d27"}.mdi-podium-silver:before{content:"\f0d28"}.mdi-point-of-sale:before{content:"\f0d92"}.mdi-pokeball:before{content:"\f041d"}.mdi-pokemon-go:before{content:"\f0a09"}.mdi-poker-chip:before{content:"\f0830"}.mdi-polaroid:before{content:"\f041e"}.mdi-police-badge:before{content:"\f1167"}.mdi-police-badge-outline:before{content:"\f1168"}.mdi-police-station:before{content:"\f1839"}.mdi-poll:before{content:"\f041f"}.mdi-polo:before{content:"\f14c3"}.mdi-polymer:before{content:"\f0421"}.mdi-pool:before{content:"\f0606"}.mdi-pool-thermometer:before{content:"\f1a5f"}.mdi-popcorn:before{content:"\f0422"}.mdi-post:before{content:"\f1008"}.mdi-post-lamp:before{content:"\f1a60"}.mdi-post-outline:before{content:"\f1009"}.mdi-postage-stamp:before{content:"\f0cbb"}.mdi-pot:before{content:"\f02e5"}.mdi-pot-mix:before{content:"\f065b"}.mdi-pot-mix-outline:before{content:"\f0677"}.mdi-pot-outline:before{content:"\f02ff"}.mdi-pot-steam:before{content:"\f065a"}.mdi-pot-steam-outline:before{content:"\f0326"}.mdi-pound:before{content:"\f0423"}.mdi-pound-box:before{content:"\f0424"}.mdi-pound-box-outline:before{content:"\f117f"}.mdi-power:before{content:"\f0425"}.mdi-power-cycle:before{content:"\f0901"}.mdi-power-off:before{content:"\f0902"}.mdi-power-on:before{content:"\f0903"}.mdi-power-plug:before{content:"\f06a5"}.mdi-power-plug-battery:before{content:"\f1c3b"}.mdi-power-plug-battery-outline:before{content:"\f1c3c"}.mdi-power-plug-off:before{content:"\f06a6"}.mdi-power-plug-off-outline:before{content:"\f1424"}.mdi-power-plug-outline:before{content:"\f1425"}.mdi-power-settings:before{content:"\f0426"}.mdi-power-sleep:before{content:"\f0904"}.mdi-power-socket:before{content:"\f0427"}.mdi-power-socket-au:before{content:"\f0905"}.mdi-power-socket-ch:before{content:"\f0fb3"}.mdi-power-socket-de:before{content:"\f1107"}.mdi-power-socket-eu:before{content:"\f07e7"}.mdi-power-socket-fr:before{content:"\f1108"}.mdi-power-socket-it:before{content:"\f14ff"}.mdi-power-socket-jp:before{content:"\f1109"}.mdi-power-socket-uk:before{content:"\f07e8"}.mdi-power-socket-us:before{content:"\f07e9"}.mdi-power-standby:before{content:"\f0906"}.mdi-powershell:before{content:"\f0a0a"}.mdi-prescription:before{content:"\f0706"}.mdi-presentation:before{content:"\f0428"}.mdi-presentation-play:before{content:"\f0429"}.mdi-pretzel:before{content:"\f1562"}.mdi-printer:before{content:"\f042a"}.mdi-printer-3d:before{content:"\f042b"}.mdi-printer-3d-nozzle:before{content:"\f0e5b"}.mdi-printer-3d-nozzle-alert:before{content:"\f11c0"}.mdi-printer-3d-nozzle-alert-outline:before{content:"\f11c1"}.mdi-printer-3d-nozzle-heat:before{content:"\f18b8"}.mdi-printer-3d-nozzle-heat-outline:before{content:"\f18b9"}.mdi-printer-3d-nozzle-off:before{content:"\f1b19"}.mdi-printer-3d-nozzle-off-outline:before{content:"\f1b1a"}.mdi-printer-3d-nozzle-outline:before{content:"\f0e5c"}.mdi-printer-3d-off:before{content:"\f1b0e"}.mdi-printer-alert:before{content:"\f042c"}.mdi-printer-check:before{content:"\f1146"}.mdi-printer-eye:before{content:"\f1458"}.mdi-printer-off:before{content:"\f0e5d"}.mdi-printer-off-outline:before{content:"\f1785"}.mdi-printer-outline:before{content:"\f1786"}.mdi-printer-pos:before{content:"\f1057"}.mdi-printer-pos-alert:before{content:"\f1bbc"}.mdi-printer-pos-alert-outline:before{content:"\f1bbd"}.mdi-printer-pos-cancel:before{content:"\f1bbe"}.mdi-printer-pos-cancel-outline:before{content:"\f1bbf"}.mdi-printer-pos-check:before{content:"\f1bc0"}.mdi-printer-pos-check-outline:before{content:"\f1bc1"}.mdi-printer-pos-cog:before{content:"\f1bc2"}.mdi-printer-pos-cog-outline:before{content:"\f1bc3"}.mdi-printer-pos-edit:before{content:"\f1bc4"}.mdi-printer-pos-edit-outline:before{content:"\f1bc5"}.mdi-printer-pos-minus:before{content:"\f1bc6"}.mdi-printer-pos-minus-outline:before{content:"\f1bc7"}.mdi-printer-pos-network:before{content:"\f1bc8"}.mdi-printer-pos-network-outline:before{content:"\f1bc9"}.mdi-printer-pos-off:before{content:"\f1bca"}.mdi-printer-pos-off-outline:before{content:"\f1bcb"}.mdi-printer-pos-outline:before{content:"\f1bcc"}.mdi-printer-pos-pause:before{content:"\f1bcd"}.mdi-printer-pos-pause-outline:before{content:"\f1bce"}.mdi-printer-pos-play:before{content:"\f1bcf"}.mdi-printer-pos-play-outline:before{content:"\f1bd0"}.mdi-printer-pos-plus:before{content:"\f1bd1"}.mdi-printer-pos-plus-outline:before{content:"\f1bd2"}.mdi-printer-pos-refresh:before{content:"\f1bd3"}.mdi-printer-pos-refresh-outline:before{content:"\f1bd4"}.mdi-printer-pos-remove:before{content:"\f1bd5"}.mdi-printer-pos-remove-outline:before{content:"\f1bd6"}.mdi-printer-pos-star:before{content:"\f1bd7"}.mdi-printer-pos-star-outline:before{content:"\f1bd8"}.mdi-printer-pos-stop:before{content:"\f1bd9"}.mdi-printer-pos-stop-outline:before{content:"\f1bda"}.mdi-printer-pos-sync:before{content:"\f1bdb"}.mdi-printer-pos-sync-outline:before{content:"\f1bdc"}.mdi-printer-pos-wrench:before{content:"\f1bdd"}.mdi-printer-pos-wrench-outline:before{content:"\f1bde"}.mdi-printer-search:before{content:"\f1457"}.mdi-printer-settings:before{content:"\f0707"}.mdi-printer-wireless:before{content:"\f0a0b"}.mdi-priority-high:before{content:"\f0603"}.mdi-priority-low:before{content:"\f0604"}.mdi-professional-hexagon:before{content:"\f042d"}.mdi-progress-alert:before{content:"\f0cbc"}.mdi-progress-check:before{content:"\f0995"}.mdi-progress-clock:before{content:"\f0996"}.mdi-progress-close:before{content:"\f110a"}.mdi-progress-download:before{content:"\f0997"}.mdi-progress-helper:before{content:"\f1ba2"}.mdi-progress-pencil:before{content:"\f1787"}.mdi-progress-question:before{content:"\f1522"}.mdi-progress-star:before{content:"\f1788"}.mdi-progress-star-four-points:before{content:"\f1c3d"}.mdi-progress-tag:before{content:"\f1d0d"}.mdi-progress-upload:before{content:"\f0998"}.mdi-progress-wrench:before{content:"\f0cbd"}.mdi-projector:before{content:"\f042e"}.mdi-projector-off:before{content:"\f1a23"}.mdi-projector-screen:before{content:"\f042f"}.mdi-projector-screen-off:before{content:"\f180d"}.mdi-projector-screen-off-outline:before{content:"\f180e"}.mdi-projector-screen-outline:before{content:"\f1724"}.mdi-projector-screen-variant:before{content:"\f180f"}.mdi-projector-screen-variant-off:before{content:"\f1810"}.mdi-projector-screen-variant-off-outline:before{content:"\f1811"}.mdi-projector-screen-variant-outline:before{content:"\f1812"}.mdi-propane-tank:before{content:"\f1357"}.mdi-propane-tank-outline:before{content:"\f1358"}.mdi-protocol:before{content:"\f0fd8"}.mdi-publish:before{content:"\f06a7"}.mdi-publish-off:before{content:"\f1945"}.mdi-pulse:before{content:"\f0430"}.mdi-pump:before{content:"\f1402"}.mdi-pump-off:before{content:"\f1b22"}.mdi-pumpkin:before{content:"\f0bbf"}.mdi-purse:before{content:"\f0f1c"}.mdi-purse-outline:before{content:"\f0f1d"}.mdi-puzzle:before{content:"\f0431"}.mdi-puzzle-check:before{content:"\f1426"}.mdi-puzzle-check-outline:before{content:"\f1427"}.mdi-puzzle-edit:before{content:"\f14d3"}.mdi-puzzle-edit-outline:before{content:"\f14d9"}.mdi-puzzle-heart:before{content:"\f14d4"}.mdi-puzzle-heart-outline:before{content:"\f14da"}.mdi-puzzle-minus:before{content:"\f14d1"}.mdi-puzzle-minus-outline:before{content:"\f14d7"}.mdi-puzzle-outline:before{content:"\f0a66"}.mdi-puzzle-plus:before{content:"\f14d0"}.mdi-puzzle-plus-outline:before{content:"\f14d6"}.mdi-puzzle-remove:before{content:"\f14d2"}.mdi-puzzle-remove-outline:before{content:"\f14d8"}.mdi-puzzle-star:before{content:"\f14d5"}.mdi-puzzle-star-outline:before{content:"\f14db"}.mdi-pyramid:before{content:"\f1952"}.mdi-pyramid-off:before{content:"\f1953"}.mdi-qi:before{content:"\f0999"}.mdi-qqchat:before{content:"\f0605"}.mdi-qrcode:before{content:"\f0432"}.mdi-qrcode-edit:before{content:"\f08b8"}.mdi-qrcode-minus:before{content:"\f118c"}.mdi-qrcode-plus:before{content:"\f118b"}.mdi-qrcode-remove:before{content:"\f118d"}.mdi-qrcode-scan:before{content:"\f0433"}.mdi-quadcopter:before{content:"\f0434"}.mdi-quality-high:before{content:"\f0435"}.mdi-quality-low:before{content:"\f0a0c"}.mdi-quality-medium:before{content:"\f0a0d"}.mdi-queue-first-in-last-out:before{content:"\f1caf"}.mdi-quora:before{content:"\f0d29"}.mdi-rabbit:before{content:"\f0907"}.mdi-rabbit-variant:before{content:"\f1a61"}.mdi-rabbit-variant-outline:before{content:"\f1a62"}.mdi-racing-helmet:before{content:"\f0d93"}.mdi-racquetball:before{content:"\f0d94"}.mdi-radar:before{content:"\f0437"}.mdi-radiator:before{content:"\f0438"}.mdi-radiator-disabled:before{content:"\f0ad7"}.mdi-radiator-off:before{content:"\f0ad8"}.mdi-radio:before{content:"\f0439"}.mdi-radio-am:before{content:"\f0cbe"}.mdi-radio-fm:before{content:"\f0cbf"}.mdi-radio-handheld:before{content:"\f043a"}.mdi-radio-off:before{content:"\f121c"}.mdi-radio-tower:before{content:"\f043b"}.mdi-radioactive:before{content:"\f043c"}.mdi-radioactive-circle:before{content:"\f185d"}.mdi-radioactive-circle-outline:before{content:"\f185e"}.mdi-radioactive-off:before{content:"\f0ec1"}.mdi-radiobox-blank:before{content:"\f043d"}.mdi-radiobox-indeterminate-variant:before{content:"\f1c5e"}.mdi-radiobox-marked:before{content:"\f043e"}.mdi-radiology-box:before{content:"\f14c5"}.mdi-radiology-box-outline:before{content:"\f14c6"}.mdi-radius:before{content:"\f0cc0"}.mdi-radius-outline:before{content:"\f0cc1"}.mdi-railroad-light:before{content:"\f0f1e"}.mdi-rake:before{content:"\f1544"}.mdi-raspberry-pi:before{content:"\f043f"}.mdi-raw:before{content:"\f1a0f"}.mdi-raw-off:before{content:"\f1a10"}.mdi-ray-end:before{content:"\f0440"}.mdi-ray-end-arrow:before{content:"\f0441"}.mdi-ray-start:before{content:"\f0442"}.mdi-ray-start-arrow:before{content:"\f0443"}.mdi-ray-start-end:before{content:"\f0444"}.mdi-ray-start-vertex-end:before{content:"\f15d8"}.mdi-ray-vertex:before{content:"\f0445"}.mdi-razor-double-edge:before{content:"\f1997"}.mdi-razor-single-edge:before{content:"\f1998"}.mdi-react:before{content:"\f0708"}.mdi-read:before{content:"\f0447"}.mdi-receipt:before{content:"\f0824"}.mdi-receipt-clock:before{content:"\f1c3e"}.mdi-receipt-clock-outline:before{content:"\f1c3f"}.mdi-receipt-outline:before{content:"\f04f7"}.mdi-receipt-send:before{content:"\f1c40"}.mdi-receipt-send-outline:before{content:"\f1c41"}.mdi-receipt-text:before{content:"\f0449"}.mdi-receipt-text-arrow-left:before{content:"\f1c42"}.mdi-receipt-text-arrow-left-outline:before{content:"\f1c43"}.mdi-receipt-text-arrow-right:before{content:"\f1c44"}.mdi-receipt-text-arrow-right-outline:before{content:"\f1c45"}.mdi-receipt-text-check:before{content:"\f1a63"}.mdi-receipt-text-check-outline:before{content:"\f1a64"}.mdi-receipt-text-clock:before{content:"\f1c46"}.mdi-receipt-text-clock-outline:before{content:"\f1c47"}.mdi-receipt-text-edit:before{content:"\f1c48"}.mdi-receipt-text-edit-outline:before{content:"\f1c49"}.mdi-receipt-text-minus:before{content:"\f1a65"}.mdi-receipt-text-minus-outline:before{content:"\f1a66"}.mdi-receipt-text-outline:before{content:"\f19dc"}.mdi-receipt-text-plus:before{content:"\f1a67"}.mdi-receipt-text-plus-outline:before{content:"\f1a68"}.mdi-receipt-text-remove:before{content:"\f1a69"}.mdi-receipt-text-remove-outline:before{content:"\f1a6a"}.mdi-receipt-text-send:before{content:"\f1c4a"}.mdi-receipt-text-send-outline:before{content:"\f1c4b"}.mdi-record:before{content:"\f044a"}.mdi-record-circle:before{content:"\f0ec2"}.mdi-record-circle-outline:before{content:"\f0ec3"}.mdi-record-player:before{content:"\f099a"}.mdi-record-rec:before{content:"\f044b"}.mdi-rectangle:before{content:"\f0e5e"}.mdi-rectangle-outline:before{content:"\f0e5f"}.mdi-recycle:before{content:"\f044c"}.mdi-recycle-variant:before{content:"\f139d"}.mdi-reddit:before{content:"\f044d"}.mdi-redhat:before{content:"\f111b"}.mdi-redo:before{content:"\f044e"}.mdi-redo-variant:before{content:"\f044f"}.mdi-reflect-horizontal:before{content:"\f0a0e"}.mdi-reflect-vertical:before{content:"\f0a0f"}.mdi-refresh:before{content:"\f0450"}.mdi-refresh-auto:before{content:"\f18f2"}.mdi-refresh-circle:before{content:"\f1377"}.mdi-regex:before{content:"\f0451"}.mdi-registered-trademark:before{content:"\f0a67"}.mdi-reiterate:before{content:"\f1588"}.mdi-relation-many-to-many:before{content:"\f1496"}.mdi-relation-many-to-one:before{content:"\f1497"}.mdi-relation-many-to-one-or-many:before{content:"\f1498"}.mdi-relation-many-to-only-one:before{content:"\f1499"}.mdi-relation-many-to-zero-or-many:before{content:"\f149a"}.mdi-relation-many-to-zero-or-one:before{content:"\f149b"}.mdi-relation-one-or-many-to-many:before{content:"\f149c"}.mdi-relation-one-or-many-to-one:before{content:"\f149d"}.mdi-relation-one-or-many-to-one-or-many:before{content:"\f149e"}.mdi-relation-one-or-many-to-only-one:before{content:"\f149f"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"\f14a0"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"\f14a1"}.mdi-relation-one-to-many:before{content:"\f14a2"}.mdi-relation-one-to-one:before{content:"\f14a3"}.mdi-relation-one-to-one-or-many:before{content:"\f14a4"}.mdi-relation-one-to-only-one:before{content:"\f14a5"}.mdi-relation-one-to-zero-or-many:before{content:"\f14a6"}.mdi-relation-one-to-zero-or-one:before{content:"\f14a7"}.mdi-relation-only-one-to-many:before{content:"\f14a8"}.mdi-relation-only-one-to-one:before{content:"\f14a9"}.mdi-relation-only-one-to-one-or-many:before{content:"\f14aa"}.mdi-relation-only-one-to-only-one:before{content:"\f14ab"}.mdi-relation-only-one-to-zero-or-many:before{content:"\f14ac"}.mdi-relation-only-one-to-zero-or-one:before{content:"\f14ad"}.mdi-relation-zero-or-many-to-many:before{content:"\f14ae"}.mdi-relation-zero-or-many-to-one:before{content:"\f14af"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"\f14b0"}.mdi-relation-zero-or-many-to-only-one:before{content:"\f14b1"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"\f14b2"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"\f14b3"}.mdi-relation-zero-or-one-to-many:before{content:"\f14b4"}.mdi-relation-zero-or-one-to-one:before{content:"\f14b5"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"\f14b6"}.mdi-relation-zero-or-one-to-only-one:before{content:"\f14b7"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"\f14b8"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"\f14b9"}.mdi-relative-scale:before{content:"\f0452"}.mdi-reload:before{content:"\f0453"}.mdi-reload-alert:before{content:"\f110b"}.mdi-reminder:before{content:"\f088c"}.mdi-remote:before{content:"\f0454"}.mdi-remote-desktop:before{content:"\f08b9"}.mdi-remote-off:before{content:"\f0ec4"}.mdi-remote-tv:before{content:"\f0ec5"}.mdi-remote-tv-off:before{content:"\f0ec6"}.mdi-rename:before{content:"\f1c18"}.mdi-rename-box:before{content:"\f0455"}.mdi-rename-box-outline:before{content:"\f1c19"}.mdi-rename-outline:before{content:"\f1c1a"}.mdi-reorder-horizontal:before{content:"\f0688"}.mdi-reorder-vertical:before{content:"\f0689"}.mdi-repeat:before{content:"\f0456"}.mdi-repeat-off:before{content:"\f0457"}.mdi-repeat-once:before{content:"\f0458"}.mdi-repeat-variant:before{content:"\f0547"}.mdi-replay:before{content:"\f0459"}.mdi-reply:before{content:"\f045a"}.mdi-reply-all:before{content:"\f045b"}.mdi-reply-all-outline:before{content:"\f0f1f"}.mdi-reply-circle:before{content:"\f11ae"}.mdi-reply-outline:before{content:"\f0f20"}.mdi-reproduction:before{content:"\f045c"}.mdi-resistor:before{content:"\f0b44"}.mdi-resistor-nodes:before{content:"\f0b45"}.mdi-resize:before{content:"\f0a68"}.mdi-resize-bottom-right:before{content:"\f045d"}.mdi-responsive:before{content:"\f045e"}.mdi-restart:before{content:"\f0709"}.mdi-restart-alert:before{content:"\f110c"}.mdi-restart-off:before{content:"\f0d95"}.mdi-restore:before{content:"\f099b"}.mdi-restore-alert:before{content:"\f110d"}.mdi-rewind:before{content:"\f045f"}.mdi-rewind-10:before{content:"\f0d2a"}.mdi-rewind-15:before{content:"\f1946"}.mdi-rewind-30:before{content:"\f0d96"}.mdi-rewind-45:before{content:"\f1b13"}.mdi-rewind-5:before{content:"\f11f9"}.mdi-rewind-60:before{content:"\f160c"}.mdi-rewind-outline:before{content:"\f070a"}.mdi-rhombus:before{content:"\f070b"}.mdi-rhombus-medium:before{content:"\f0a10"}.mdi-rhombus-medium-outline:before{content:"\f14dc"}.mdi-rhombus-outline:before{content:"\f070c"}.mdi-rhombus-split:before{content:"\f0a11"}.mdi-rhombus-split-outline:before{content:"\f14dd"}.mdi-ribbon:before{content:"\f0460"}.mdi-rice:before{content:"\f07ea"}.mdi-rickshaw:before{content:"\f15bb"}.mdi-rickshaw-electric:before{content:"\f15bc"}.mdi-ring:before{content:"\f07eb"}.mdi-rivet:before{content:"\f0e60"}.mdi-road:before{content:"\f0461"}.mdi-road-variant:before{content:"\f0462"}.mdi-robber:before{content:"\f1058"}.mdi-robot:before{content:"\f06a9"}.mdi-robot-angry:before{content:"\f169d"}.mdi-robot-angry-outline:before{content:"\f169e"}.mdi-robot-confused:before{content:"\f169f"}.mdi-robot-confused-outline:before{content:"\f16a0"}.mdi-robot-dead:before{content:"\f16a1"}.mdi-robot-dead-outline:before{content:"\f16a2"}.mdi-robot-excited:before{content:"\f16a3"}.mdi-robot-excited-outline:before{content:"\f16a4"}.mdi-robot-happy:before{content:"\f1719"}.mdi-robot-happy-outline:before{content:"\f171a"}.mdi-robot-industrial:before{content:"\f0b46"}.mdi-robot-industrial-outline:before{content:"\f1a1a"}.mdi-robot-love:before{content:"\f16a5"}.mdi-robot-love-outline:before{content:"\f16a6"}.mdi-robot-mower:before{content:"\f11f7"}.mdi-robot-mower-outline:before{content:"\f11f3"}.mdi-robot-off:before{content:"\f16a7"}.mdi-robot-off-outline:before{content:"\f167b"}.mdi-robot-outline:before{content:"\f167a"}.mdi-robot-vacuum:before{content:"\f070d"}.mdi-robot-vacuum-alert:before{content:"\f1b5d"}.mdi-robot-vacuum-off:before{content:"\f1c01"}.mdi-robot-vacuum-variant:before{content:"\f0908"}.mdi-robot-vacuum-variant-alert:before{content:"\f1b5e"}.mdi-robot-vacuum-variant-off:before{content:"\f1c02"}.mdi-rocket:before{content:"\f0463"}.mdi-rocket-launch:before{content:"\f14de"}.mdi-rocket-launch-outline:before{content:"\f14df"}.mdi-rocket-outline:before{content:"\f13af"}.mdi-rodent:before{content:"\f1327"}.mdi-roller-shade:before{content:"\f1a6b"}.mdi-roller-shade-closed:before{content:"\f1a6c"}.mdi-roller-skate:before{content:"\f0d2b"}.mdi-roller-skate-off:before{content:"\f0145"}.mdi-rollerblade:before{content:"\f0d2c"}.mdi-rollerblade-off:before{content:"\f002e"}.mdi-rollupjs:before{content:"\f0bc0"}.mdi-rolodex:before{content:"\f1ab9"}.mdi-rolodex-outline:before{content:"\f1aba"}.mdi-roman-numeral-1:before{content:"\f1088"}.mdi-roman-numeral-10:before{content:"\f1091"}.mdi-roman-numeral-2:before{content:"\f1089"}.mdi-roman-numeral-3:before{content:"\f108a"}.mdi-roman-numeral-4:before{content:"\f108b"}.mdi-roman-numeral-5:before{content:"\f108c"}.mdi-roman-numeral-6:before{content:"\f108d"}.mdi-roman-numeral-7:before{content:"\f108e"}.mdi-roman-numeral-8:before{content:"\f108f"}.mdi-roman-numeral-9:before{content:"\f1090"}.mdi-room-service:before{content:"\f088d"}.mdi-room-service-outline:before{content:"\f0d97"}.mdi-rotate-360:before{content:"\f1999"}.mdi-rotate-3d:before{content:"\f0ec7"}.mdi-rotate-3d-variant:before{content:"\f0464"}.mdi-rotate-left:before{content:"\f0465"}.mdi-rotate-left-variant:before{content:"\f0466"}.mdi-rotate-orbit:before{content:"\f0d98"}.mdi-rotate-right:before{content:"\f0467"}.mdi-rotate-right-variant:before{content:"\f0468"}.mdi-rounded-corner:before{content:"\f0607"}.mdi-router:before{content:"\f11e2"}.mdi-router-network:before{content:"\f1087"}.mdi-router-network-wireless:before{content:"\f1c97"}.mdi-router-wireless:before{content:"\f0469"}.mdi-router-wireless-off:before{content:"\f15a3"}.mdi-router-wireless-settings:before{content:"\f0a69"}.mdi-routes:before{content:"\f046a"}.mdi-routes-clock:before{content:"\f1059"}.mdi-rowing:before{content:"\f0608"}.mdi-rss:before{content:"\f046b"}.mdi-rss-box:before{content:"\f046c"}.mdi-rss-off:before{content:"\f0f21"}.mdi-rug:before{content:"\f1475"}.mdi-rugby:before{content:"\f0d99"}.mdi-ruler:before{content:"\f046d"}.mdi-ruler-square:before{content:"\f0cc2"}.mdi-ruler-square-compass:before{content:"\f0ebe"}.mdi-run:before{content:"\f070e"}.mdi-run-fast:before{content:"\f046e"}.mdi-rv-truck:before{content:"\f11d4"}.mdi-sack:before{content:"\f0d2e"}.mdi-sack-outline:before{content:"\f1c4c"}.mdi-sack-percent:before{content:"\f0d2f"}.mdi-safe:before{content:"\f0a6a"}.mdi-safe-square:before{content:"\f127c"}.mdi-safe-square-outline:before{content:"\f127d"}.mdi-safety-goggles:before{content:"\f0d30"}.mdi-sail-boat:before{content:"\f0ec8"}.mdi-sail-boat-sink:before{content:"\f1aef"}.mdi-sale:before{content:"\f046f"}.mdi-sale-outline:before{content:"\f1a06"}.mdi-salesforce:before{content:"\f088e"}.mdi-sass:before{content:"\f07ec"}.mdi-satellite:before{content:"\f0470"}.mdi-satellite-uplink:before{content:"\f0909"}.mdi-satellite-variant:before{content:"\f0471"}.mdi-sausage:before{content:"\f08ba"}.mdi-sausage-off:before{content:"\f1789"}.mdi-saw-blade:before{content:"\f0e61"}.mdi-sawtooth-wave:before{content:"\f147a"}.mdi-saxophone:before{content:"\f0609"}.mdi-scale:before{content:"\f0472"}.mdi-scale-balance:before{content:"\f05d1"}.mdi-scale-bathroom:before{content:"\f0473"}.mdi-scale-off:before{content:"\f105a"}.mdi-scale-unbalanced:before{content:"\f19b8"}.mdi-scan-helper:before{content:"\f13d8"}.mdi-scanner:before{content:"\f06ab"}.mdi-scanner-off:before{content:"\f090a"}.mdi-scatter-plot:before{content:"\f0ec9"}.mdi-scatter-plot-outline:before{content:"\f0eca"}.mdi-scent:before{content:"\f1958"}.mdi-scent-off:before{content:"\f1959"}.mdi-school:before{content:"\f0474"}.mdi-school-outline:before{content:"\f1180"}.mdi-scissors-cutting:before{content:"\f0a6b"}.mdi-scooter:before{content:"\f15bd"}.mdi-scooter-electric:before{content:"\f15be"}.mdi-scoreboard:before{content:"\f127e"}.mdi-scoreboard-outline:before{content:"\f127f"}.mdi-screen-rotation:before{content:"\f0475"}.mdi-screen-rotation-lock:before{content:"\f0478"}.mdi-screw-flat-top:before{content:"\f0df3"}.mdi-screw-lag:before{content:"\f0df4"}.mdi-screw-machine-flat-top:before{content:"\f0df5"}.mdi-screw-machine-round-top:before{content:"\f0df6"}.mdi-screw-round-top:before{content:"\f0df7"}.mdi-screwdriver:before{content:"\f0476"}.mdi-script:before{content:"\f0bc1"}.mdi-script-outline:before{content:"\f0477"}.mdi-script-text:before{content:"\f0bc2"}.mdi-script-text-key:before{content:"\f1725"}.mdi-script-text-key-outline:before{content:"\f1726"}.mdi-script-text-outline:before{content:"\f0bc3"}.mdi-script-text-play:before{content:"\f1727"}.mdi-script-text-play-outline:before{content:"\f1728"}.mdi-sd:before{content:"\f0479"}.mdi-seal:before{content:"\f047a"}.mdi-seal-variant:before{content:"\f0fd9"}.mdi-search-web:before{content:"\f070f"}.mdi-seat:before{content:"\f0cc3"}.mdi-seat-flat:before{content:"\f047b"}.mdi-seat-flat-angled:before{content:"\f047c"}.mdi-seat-individual-suite:before{content:"\f047d"}.mdi-seat-legroom-extra:before{content:"\f047e"}.mdi-seat-legroom-normal:before{content:"\f047f"}.mdi-seat-legroom-reduced:before{content:"\f0480"}.mdi-seat-outline:before{content:"\f0cc4"}.mdi-seat-passenger:before{content:"\f1249"}.mdi-seat-recline-extra:before{content:"\f0481"}.mdi-seat-recline-normal:before{content:"\f0482"}.mdi-seatbelt:before{content:"\f0cc5"}.mdi-security:before{content:"\f0483"}.mdi-security-network:before{content:"\f0484"}.mdi-seed:before{content:"\f0e62"}.mdi-seed-off:before{content:"\f13fd"}.mdi-seed-off-outline:before{content:"\f13fe"}.mdi-seed-outline:before{content:"\f0e63"}.mdi-seed-plus:before{content:"\f1a6d"}.mdi-seed-plus-outline:before{content:"\f1a6e"}.mdi-seesaw:before{content:"\f15a4"}.mdi-segment:before{content:"\f0ecb"}.mdi-select:before{content:"\f0485"}.mdi-select-all:before{content:"\f0486"}.mdi-select-arrow-down:before{content:"\f1b59"}.mdi-select-arrow-up:before{content:"\f1b58"}.mdi-select-color:before{content:"\f0d31"}.mdi-select-compare:before{content:"\f0ad9"}.mdi-select-drag:before{content:"\f0a6c"}.mdi-select-group:before{content:"\f0f82"}.mdi-select-inverse:before{content:"\f0487"}.mdi-select-marker:before{content:"\f1280"}.mdi-select-multiple:before{content:"\f1281"}.mdi-select-multiple-marker:before{content:"\f1282"}.mdi-select-off:before{content:"\f0488"}.mdi-select-place:before{content:"\f0fda"}.mdi-select-remove:before{content:"\f17c1"}.mdi-select-search:before{content:"\f1204"}.mdi-selection:before{content:"\f0489"}.mdi-selection-drag:before{content:"\f0a6d"}.mdi-selection-ellipse:before{content:"\f0d32"}.mdi-selection-ellipse-arrow-inside:before{content:"\f0f22"}.mdi-selection-ellipse-remove:before{content:"\f17c2"}.mdi-selection-marker:before{content:"\f1283"}.mdi-selection-multiple:before{content:"\f1285"}.mdi-selection-multiple-marker:before{content:"\f1284"}.mdi-selection-off:before{content:"\f0777"}.mdi-selection-remove:before{content:"\f17c3"}.mdi-selection-search:before{content:"\f1205"}.mdi-semantic-web:before{content:"\f1316"}.mdi-send:before{content:"\f048a"}.mdi-send-check:before{content:"\f1161"}.mdi-send-check-outline:before{content:"\f1162"}.mdi-send-circle:before{content:"\f0df8"}.mdi-send-circle-outline:before{content:"\f0df9"}.mdi-send-clock:before{content:"\f1163"}.mdi-send-clock-outline:before{content:"\f1164"}.mdi-send-lock:before{content:"\f07ed"}.mdi-send-lock-outline:before{content:"\f1166"}.mdi-send-outline:before{content:"\f1165"}.mdi-send-variant:before{content:"\f1c4d"}.mdi-send-variant-clock:before{content:"\f1c7e"}.mdi-send-variant-clock-outline:before{content:"\f1c7f"}.mdi-send-variant-outline:before{content:"\f1c4e"}.mdi-serial-port:before{content:"\f065c"}.mdi-server:before{content:"\f048b"}.mdi-server-minus:before{content:"\f048c"}.mdi-server-minus-outline:before{content:"\f1c98"}.mdi-server-network:before{content:"\f048d"}.mdi-server-network-off:before{content:"\f048e"}.mdi-server-network-outline:before{content:"\f1c99"}.mdi-server-off:before{content:"\f048f"}.mdi-server-outline:before{content:"\f1c9a"}.mdi-server-plus:before{content:"\f0490"}.mdi-server-plus-outline:before{content:"\f1c9b"}.mdi-server-remove:before{content:"\f0491"}.mdi-server-security:before{content:"\f0492"}.mdi-set-all:before{content:"\f0778"}.mdi-set-center:before{content:"\f0779"}.mdi-set-center-right:before{content:"\f077a"}.mdi-set-left:before{content:"\f077b"}.mdi-set-left-center:before{content:"\f077c"}.mdi-set-left-right:before{content:"\f077d"}.mdi-set-merge:before{content:"\f14e0"}.mdi-set-none:before{content:"\f077e"}.mdi-set-right:before{content:"\f077f"}.mdi-set-split:before{content:"\f14e1"}.mdi-set-square:before{content:"\f145d"}.mdi-set-top-box:before{content:"\f099f"}.mdi-settings-helper:before{content:"\f0a6e"}.mdi-shaker:before{content:"\f110e"}.mdi-shaker-outline:before{content:"\f110f"}.mdi-shape:before{content:"\f0831"}.mdi-shape-circle-plus:before{content:"\f065d"}.mdi-shape-outline:before{content:"\f0832"}.mdi-shape-oval-plus:before{content:"\f11fa"}.mdi-shape-plus:before{content:"\f0495"}.mdi-shape-plus-outline:before{content:"\f1c4f"}.mdi-shape-polygon-plus:before{content:"\f065e"}.mdi-shape-rectangle-plus:before{content:"\f065f"}.mdi-shape-square-plus:before{content:"\f0660"}.mdi-shape-square-rounded-plus:before{content:"\f14fa"}.mdi-share:before{content:"\f0496"}.mdi-share-all:before{content:"\f11f4"}.mdi-share-all-outline:before{content:"\f11f5"}.mdi-share-circle:before{content:"\f11ad"}.mdi-share-off:before{content:"\f0f23"}.mdi-share-off-outline:before{content:"\f0f24"}.mdi-share-outline:before{content:"\f0932"}.mdi-share-variant:before{content:"\f0497"}.mdi-share-variant-outline:before{content:"\f1514"}.mdi-shark:before{content:"\f18ba"}.mdi-shark-fin:before{content:"\f1673"}.mdi-shark-fin-outline:before{content:"\f1674"}.mdi-shark-off:before{content:"\f18bb"}.mdi-sheep:before{content:"\f0cc6"}.mdi-shield:before{content:"\f0498"}.mdi-shield-account:before{content:"\f088f"}.mdi-shield-account-outline:before{content:"\f0a12"}.mdi-shield-account-variant:before{content:"\f15a7"}.mdi-shield-account-variant-outline:before{content:"\f15a8"}.mdi-shield-airplane:before{content:"\f06bb"}.mdi-shield-airplane-outline:before{content:"\f0cc7"}.mdi-shield-alert:before{content:"\f0ecc"}.mdi-shield-alert-outline:before{content:"\f0ecd"}.mdi-shield-bug:before{content:"\f13da"}.mdi-shield-bug-outline:before{content:"\f13db"}.mdi-shield-car:before{content:"\f0f83"}.mdi-shield-check:before{content:"\f0565"}.mdi-shield-check-outline:before{content:"\f0cc8"}.mdi-shield-cross:before{content:"\f0cc9"}.mdi-shield-cross-outline:before{content:"\f0cca"}.mdi-shield-crown:before{content:"\f18bc"}.mdi-shield-crown-outline:before{content:"\f18bd"}.mdi-shield-edit:before{content:"\f11a0"}.mdi-shield-edit-outline:before{content:"\f11a1"}.mdi-shield-half:before{content:"\f1360"}.mdi-shield-half-full:before{content:"\f0780"}.mdi-shield-home:before{content:"\f068a"}.mdi-shield-home-outline:before{content:"\f0ccb"}.mdi-shield-key:before{content:"\f0bc4"}.mdi-shield-key-outline:before{content:"\f0bc5"}.mdi-shield-link-variant:before{content:"\f0d33"}.mdi-shield-link-variant-outline:before{content:"\f0d34"}.mdi-shield-lock:before{content:"\f099d"}.mdi-shield-lock-open:before{content:"\f199a"}.mdi-shield-lock-open-outline:before{content:"\f199b"}.mdi-shield-lock-outline:before{content:"\f0ccc"}.mdi-shield-moon:before{content:"\f1828"}.mdi-shield-moon-outline:before{content:"\f1829"}.mdi-shield-off:before{content:"\f099e"}.mdi-shield-off-outline:before{content:"\f099c"}.mdi-shield-outline:before{content:"\f0499"}.mdi-shield-plus:before{content:"\f0ada"}.mdi-shield-plus-outline:before{content:"\f0adb"}.mdi-shield-refresh:before{content:"\f00aa"}.mdi-shield-refresh-outline:before{content:"\f01e0"}.mdi-shield-remove:before{content:"\f0adc"}.mdi-shield-remove-outline:before{content:"\f0add"}.mdi-shield-search:before{content:"\f0d9a"}.mdi-shield-star:before{content:"\f113b"}.mdi-shield-star-outline:before{content:"\f113c"}.mdi-shield-sun:before{content:"\f105d"}.mdi-shield-sun-outline:before{content:"\f105e"}.mdi-shield-sword:before{content:"\f18be"}.mdi-shield-sword-outline:before{content:"\f18bf"}.mdi-shield-sync:before{content:"\f11a2"}.mdi-shield-sync-outline:before{content:"\f11a3"}.mdi-shimmer:before{content:"\f1545"}.mdi-ship-wheel:before{content:"\f0833"}.mdi-shipping-pallet:before{content:"\f184e"}.mdi-shoe-ballet:before{content:"\f15ca"}.mdi-shoe-cleat:before{content:"\f15c7"}.mdi-shoe-formal:before{content:"\f0b47"}.mdi-shoe-heel:before{content:"\f0b48"}.mdi-shoe-print:before{content:"\f0dfa"}.mdi-shoe-sneaker:before{content:"\f15c8"}.mdi-shopping:before{content:"\f049a"}.mdi-shopping-music:before{content:"\f049b"}.mdi-shopping-outline:before{content:"\f11d5"}.mdi-shopping-search:before{content:"\f0f84"}.mdi-shopping-search-outline:before{content:"\f1a6f"}.mdi-shore:before{content:"\f14f9"}.mdi-shovel:before{content:"\f0710"}.mdi-shovel-off:before{content:"\f0711"}.mdi-shower:before{content:"\f09a0"}.mdi-shower-head:before{content:"\f09a1"}.mdi-shredder:before{content:"\f049c"}.mdi-shuffle:before{content:"\f049d"}.mdi-shuffle-disabled:before{content:"\f049e"}.mdi-shuffle-variant:before{content:"\f049f"}.mdi-shuriken:before{content:"\f137f"}.mdi-sickle:before{content:"\f18c0"}.mdi-sigma:before{content:"\f04a0"}.mdi-sigma-lower:before{content:"\f062b"}.mdi-sign-caution:before{content:"\f04a1"}.mdi-sign-direction:before{content:"\f0781"}.mdi-sign-direction-minus:before{content:"\f1000"}.mdi-sign-direction-plus:before{content:"\f0fdc"}.mdi-sign-direction-remove:before{content:"\f0fdd"}.mdi-sign-language:before{content:"\f1b4d"}.mdi-sign-language-outline:before{content:"\f1b4e"}.mdi-sign-pole:before{content:"\f14f8"}.mdi-sign-real-estate:before{content:"\f1118"}.mdi-sign-text:before{content:"\f0782"}.mdi-sign-yield:before{content:"\f1baf"}.mdi-signal:before{content:"\f04a2"}.mdi-signal-2g:before{content:"\f0712"}.mdi-signal-3g:before{content:"\f0713"}.mdi-signal-4g:before{content:"\f0714"}.mdi-signal-5g:before{content:"\f0a6f"}.mdi-signal-cellular-1:before{content:"\f08bc"}.mdi-signal-cellular-2:before{content:"\f08bd"}.mdi-signal-cellular-3:before{content:"\f08be"}.mdi-signal-cellular-outline:before{content:"\f08bf"}.mdi-signal-distance-variant:before{content:"\f0e64"}.mdi-signal-hspa:before{content:"\f0715"}.mdi-signal-hspa-plus:before{content:"\f0716"}.mdi-signal-off:before{content:"\f0783"}.mdi-signal-variant:before{content:"\f060a"}.mdi-signature:before{content:"\f0dfb"}.mdi-signature-freehand:before{content:"\f0dfc"}.mdi-signature-image:before{content:"\f0dfd"}.mdi-signature-text:before{content:"\f0dfe"}.mdi-silo:before{content:"\f1b9f"}.mdi-silo-outline:before{content:"\f0b49"}.mdi-silverware:before{content:"\f04a3"}.mdi-silverware-clean:before{content:"\f0fde"}.mdi-silverware-fork:before{content:"\f04a4"}.mdi-silverware-fork-knife:before{content:"\f0a70"}.mdi-silverware-spoon:before{content:"\f04a5"}.mdi-silverware-variant:before{content:"\f04a6"}.mdi-sim:before{content:"\f04a7"}.mdi-sim-alert:before{content:"\f04a8"}.mdi-sim-alert-outline:before{content:"\f15d3"}.mdi-sim-off:before{content:"\f04a9"}.mdi-sim-off-outline:before{content:"\f15d4"}.mdi-sim-outline:before{content:"\f15d5"}.mdi-simple-icons:before{content:"\f131d"}.mdi-sina-weibo:before{content:"\f0adf"}.mdi-sine-wave:before{content:"\f095b"}.mdi-sitemap:before{content:"\f04aa"}.mdi-sitemap-outline:before{content:"\f199c"}.mdi-size-l:before{content:"\f13a6"}.mdi-size-m:before{content:"\f13a5"}.mdi-size-s:before{content:"\f13a4"}.mdi-size-xl:before{content:"\f13a7"}.mdi-size-xs:before{content:"\f13a3"}.mdi-size-xxl:before{content:"\f13a8"}.mdi-size-xxs:before{content:"\f13a2"}.mdi-size-xxxl:before{content:"\f13a9"}.mdi-skate:before{content:"\f0d35"}.mdi-skate-off:before{content:"\f0699"}.mdi-skateboard:before{content:"\f14c2"}.mdi-skateboarding:before{content:"\f0501"}.mdi-skew-less:before{content:"\f0d36"}.mdi-skew-more:before{content:"\f0d37"}.mdi-ski:before{content:"\f1304"}.mdi-ski-cross-country:before{content:"\f1305"}.mdi-ski-water:before{content:"\f1306"}.mdi-skip-backward:before{content:"\f04ab"}.mdi-skip-backward-outline:before{content:"\f0f25"}.mdi-skip-forward:before{content:"\f04ac"}.mdi-skip-forward-outline:before{content:"\f0f26"}.mdi-skip-next:before{content:"\f04ad"}.mdi-skip-next-circle:before{content:"\f0661"}.mdi-skip-next-circle-outline:before{content:"\f0662"}.mdi-skip-next-outline:before{content:"\f0f27"}.mdi-skip-previous:before{content:"\f04ae"}.mdi-skip-previous-circle:before{content:"\f0663"}.mdi-skip-previous-circle-outline:before{content:"\f0664"}.mdi-skip-previous-outline:before{content:"\f0f28"}.mdi-skull:before{content:"\f068c"}.mdi-skull-crossbones:before{content:"\f0bc6"}.mdi-skull-crossbones-outline:before{content:"\f0bc7"}.mdi-skull-outline:before{content:"\f0bc8"}.mdi-skull-scan:before{content:"\f14c7"}.mdi-skull-scan-outline:before{content:"\f14c8"}.mdi-skype:before{content:"\f04af"}.mdi-skype-business:before{content:"\f04b0"}.mdi-slack:before{content:"\f04b1"}.mdi-slash-forward:before{content:"\f0fdf"}.mdi-slash-forward-box:before{content:"\f0fe0"}.mdi-sledding:before{content:"\f041b"}.mdi-sleep:before{content:"\f04b2"}.mdi-sleep-off:before{content:"\f04b3"}.mdi-slide:before{content:"\f15a5"}.mdi-slope-downhill:before{content:"\f0dff"}.mdi-slope-uphill:before{content:"\f0e00"}.mdi-slot-machine:before{content:"\f1114"}.mdi-slot-machine-outline:before{content:"\f1115"}.mdi-smart-card:before{content:"\f10bd"}.mdi-smart-card-off:before{content:"\f18f7"}.mdi-smart-card-off-outline:before{content:"\f18f8"}.mdi-smart-card-outline:before{content:"\f10be"}.mdi-smart-card-reader:before{content:"\f10bf"}.mdi-smart-card-reader-outline:before{content:"\f10c0"}.mdi-smog:before{content:"\f0a71"}.mdi-smoke:before{content:"\f1799"}.mdi-smoke-detector:before{content:"\f0392"}.mdi-smoke-detector-alert:before{content:"\f192e"}.mdi-smoke-detector-alert-outline:before{content:"\f192f"}.mdi-smoke-detector-off:before{content:"\f1809"}.mdi-smoke-detector-off-outline:before{content:"\f180a"}.mdi-smoke-detector-outline:before{content:"\f1808"}.mdi-smoke-detector-variant:before{content:"\f180b"}.mdi-smoke-detector-variant-alert:before{content:"\f1930"}.mdi-smoke-detector-variant-off:before{content:"\f180c"}.mdi-smoking:before{content:"\f04b4"}.mdi-smoking-off:before{content:"\f04b5"}.mdi-smoking-pipe:before{content:"\f140d"}.mdi-smoking-pipe-off:before{content:"\f1428"}.mdi-snail:before{content:"\f1677"}.mdi-snake:before{content:"\f150e"}.mdi-snapchat:before{content:"\f04b6"}.mdi-snowboard:before{content:"\f1307"}.mdi-snowflake:before{content:"\f0717"}.mdi-snowflake-alert:before{content:"\f0f29"}.mdi-snowflake-check:before{content:"\f1a70"}.mdi-snowflake-melt:before{content:"\f12cb"}.mdi-snowflake-off:before{content:"\f14e3"}.mdi-snowflake-thermometer:before{content:"\f1a71"}.mdi-snowflake-variant:before{content:"\f0f2a"}.mdi-snowman:before{content:"\f04b7"}.mdi-snowmobile:before{content:"\f06dd"}.mdi-snowshoeing:before{content:"\f1a72"}.mdi-soccer:before{content:"\f04b8"}.mdi-soccer-field:before{content:"\f0834"}.mdi-social-distance-2-meters:before{content:"\f1579"}.mdi-social-distance-6-feet:before{content:"\f157a"}.mdi-sofa:before{content:"\f04b9"}.mdi-sofa-outline:before{content:"\f156d"}.mdi-sofa-single:before{content:"\f156e"}.mdi-sofa-single-outline:before{content:"\f156f"}.mdi-solar-panel:before{content:"\f0d9b"}.mdi-solar-panel-large:before{content:"\f0d9c"}.mdi-solar-power:before{content:"\f0a72"}.mdi-solar-power-variant:before{content:"\f1a73"}.mdi-solar-power-variant-outline:before{content:"\f1a74"}.mdi-soldering-iron:before{content:"\f1092"}.mdi-solid:before{content:"\f068d"}.mdi-sony-playstation:before{content:"\f0414"}.mdi-sort:before{content:"\f04ba"}.mdi-sort-alphabetical-ascending:before{content:"\f05bd"}.mdi-sort-alphabetical-ascending-variant:before{content:"\f1148"}.mdi-sort-alphabetical-descending:before{content:"\f05bf"}.mdi-sort-alphabetical-descending-variant:before{content:"\f1149"}.mdi-sort-alphabetical-variant:before{content:"\f04bb"}.mdi-sort-ascending:before{content:"\f04bc"}.mdi-sort-bool-ascending:before{content:"\f1385"}.mdi-sort-bool-ascending-variant:before{content:"\f1386"}.mdi-sort-bool-descending:before{content:"\f1387"}.mdi-sort-bool-descending-variant:before{content:"\f1388"}.mdi-sort-calendar-ascending:before{content:"\f1547"}.mdi-sort-calendar-descending:before{content:"\f1548"}.mdi-sort-clock-ascending:before{content:"\f1549"}.mdi-sort-clock-ascending-outline:before{content:"\f154a"}.mdi-sort-clock-descending:before{content:"\f154b"}.mdi-sort-clock-descending-outline:before{content:"\f154c"}.mdi-sort-descending:before{content:"\f04bd"}.mdi-sort-numeric-ascending:before{content:"\f1389"}.mdi-sort-numeric-ascending-variant:before{content:"\f090d"}.mdi-sort-numeric-descending:before{content:"\f138a"}.mdi-sort-numeric-descending-variant:before{content:"\f0ad2"}.mdi-sort-numeric-variant:before{content:"\f04be"}.mdi-sort-reverse-variant:before{content:"\f033c"}.mdi-sort-variant:before{content:"\f04bf"}.mdi-sort-variant-lock:before{content:"\f0ccd"}.mdi-sort-variant-lock-open:before{content:"\f0cce"}.mdi-sort-variant-off:before{content:"\f1abb"}.mdi-sort-variant-remove:before{content:"\f1147"}.mdi-soundbar:before{content:"\f17db"}.mdi-soundcloud:before{content:"\f04c0"}.mdi-source-branch:before{content:"\f062c"}.mdi-source-branch-check:before{content:"\f14cf"}.mdi-source-branch-minus:before{content:"\f14cb"}.mdi-source-branch-plus:before{content:"\f14ca"}.mdi-source-branch-refresh:before{content:"\f14cd"}.mdi-source-branch-remove:before{content:"\f14cc"}.mdi-source-branch-sync:before{content:"\f14ce"}.mdi-source-commit:before{content:"\f0718"}.mdi-source-commit-end:before{content:"\f0719"}.mdi-source-commit-end-local:before{content:"\f071a"}.mdi-source-commit-local:before{content:"\f071b"}.mdi-source-commit-next-local:before{content:"\f071c"}.mdi-source-commit-start:before{content:"\f071d"}.mdi-source-commit-start-next-local:before{content:"\f071e"}.mdi-source-fork:before{content:"\f04c1"}.mdi-source-merge:before{content:"\f062d"}.mdi-source-pull:before{content:"\f04c2"}.mdi-source-repository:before{content:"\f0ccf"}.mdi-source-repository-multiple:before{content:"\f0cd0"}.mdi-soy-sauce:before{content:"\f07ee"}.mdi-soy-sauce-off:before{content:"\f13fc"}.mdi-spa:before{content:"\f0cd1"}.mdi-spa-outline:before{content:"\f0cd2"}.mdi-space-invaders:before{content:"\f0bc9"}.mdi-space-station:before{content:"\f1383"}.mdi-spade:before{content:"\f0e65"}.mdi-speaker:before{content:"\f04c3"}.mdi-speaker-bluetooth:before{content:"\f09a2"}.mdi-speaker-message:before{content:"\f1b11"}.mdi-speaker-multiple:before{content:"\f0d38"}.mdi-speaker-off:before{content:"\f04c4"}.mdi-speaker-pause:before{content:"\f1b73"}.mdi-speaker-play:before{content:"\f1b72"}.mdi-speaker-stop:before{content:"\f1b74"}.mdi-speaker-wireless:before{content:"\f071f"}.mdi-spear:before{content:"\f1845"}.mdi-speedometer:before{content:"\f04c5"}.mdi-speedometer-medium:before{content:"\f0f85"}.mdi-speedometer-slow:before{content:"\f0f86"}.mdi-spellcheck:before{content:"\f04c6"}.mdi-sphere:before{content:"\f1954"}.mdi-sphere-off:before{content:"\f1955"}.mdi-spider:before{content:"\f11ea"}.mdi-spider-outline:before{content:"\f1c75"}.mdi-spider-thread:before{content:"\f11eb"}.mdi-spider-web:before{content:"\f0bca"}.mdi-spirit-level:before{content:"\f14f1"}.mdi-spoon-sugar:before{content:"\f1429"}.mdi-spotify:before{content:"\f04c7"}.mdi-spotlight:before{content:"\f04c8"}.mdi-spotlight-beam:before{content:"\f04c9"}.mdi-spray:before{content:"\f0665"}.mdi-spray-bottle:before{content:"\f0ae0"}.mdi-sprinkler:before{content:"\f105f"}.mdi-sprinkler-fire:before{content:"\f199d"}.mdi-sprinkler-variant:before{content:"\f1060"}.mdi-sprout:before{content:"\f0e66"}.mdi-sprout-outline:before{content:"\f0e67"}.mdi-square:before{content:"\f0764"}.mdi-square-circle:before{content:"\f1500"}.mdi-square-circle-outline:before{content:"\f1c50"}.mdi-square-edit-outline:before{content:"\f090c"}.mdi-square-medium:before{content:"\f0a13"}.mdi-square-medium-outline:before{content:"\f0a14"}.mdi-square-off:before{content:"\f12ee"}.mdi-square-off-outline:before{content:"\f12ef"}.mdi-square-opacity:before{content:"\f1854"}.mdi-square-outline:before{content:"\f0763"}.mdi-square-root:before{content:"\f0784"}.mdi-square-root-box:before{content:"\f09a3"}.mdi-square-rounded:before{content:"\f14fb"}.mdi-square-rounded-badge:before{content:"\f1a07"}.mdi-square-rounded-badge-outline:before{content:"\f1a08"}.mdi-square-rounded-outline:before{content:"\f14fc"}.mdi-square-small:before{content:"\f0a15"}.mdi-square-wave:before{content:"\f147b"}.mdi-squeegee:before{content:"\f0ae1"}.mdi-ssh:before{content:"\f08c0"}.mdi-stack-exchange:before{content:"\f060b"}.mdi-stack-overflow:before{content:"\f04cc"}.mdi-stackpath:before{content:"\f0359"}.mdi-stadium:before{content:"\f0ff9"}.mdi-stadium-outline:before{content:"\f1b03"}.mdi-stadium-variant:before{content:"\f0720"}.mdi-stairs:before{content:"\f04cd"}.mdi-stairs-box:before{content:"\f139e"}.mdi-stairs-down:before{content:"\f12be"}.mdi-stairs-up:before{content:"\f12bd"}.mdi-stamper:before{content:"\f0d39"}.mdi-standard-definition:before{content:"\f07ef"}.mdi-star:before{content:"\f04ce"}.mdi-star-box:before{content:"\f0a73"}.mdi-star-box-multiple:before{content:"\f1286"}.mdi-star-box-multiple-outline:before{content:"\f1287"}.mdi-star-box-outline:before{content:"\f0a74"}.mdi-star-check:before{content:"\f1566"}.mdi-star-check-outline:before{content:"\f156a"}.mdi-star-circle:before{content:"\f04cf"}.mdi-star-circle-outline:before{content:"\f09a4"}.mdi-star-cog:before{content:"\f1668"}.mdi-star-cog-outline:before{content:"\f1669"}.mdi-star-crescent:before{content:"\f0979"}.mdi-star-david:before{content:"\f097a"}.mdi-star-face:before{content:"\f09a5"}.mdi-star-four-points:before{content:"\f0ae2"}.mdi-star-four-points-box:before{content:"\f1c51"}.mdi-star-four-points-box-outline:before{content:"\f1c52"}.mdi-star-four-points-circle:before{content:"\f1c53"}.mdi-star-four-points-circle-outline:before{content:"\f1c54"}.mdi-star-four-points-outline:before{content:"\f0ae3"}.mdi-star-four-points-small:before{content:"\f1c55"}.mdi-star-half:before{content:"\f0246"}.mdi-star-half-full:before{content:"\f04d0"}.mdi-star-minus:before{content:"\f1564"}.mdi-star-minus-outline:before{content:"\f1568"}.mdi-star-off:before{content:"\f04d1"}.mdi-star-off-outline:before{content:"\f155b"}.mdi-star-outline:before{content:"\f04d2"}.mdi-star-plus:before{content:"\f1563"}.mdi-star-plus-outline:before{content:"\f1567"}.mdi-star-remove:before{content:"\f1565"}.mdi-star-remove-outline:before{content:"\f1569"}.mdi-star-settings:before{content:"\f166a"}.mdi-star-settings-outline:before{content:"\f166b"}.mdi-star-shooting:before{content:"\f1741"}.mdi-star-shooting-outline:before{content:"\f1742"}.mdi-star-three-points:before{content:"\f0ae4"}.mdi-star-three-points-outline:before{content:"\f0ae5"}.mdi-state-machine:before{content:"\f11ef"}.mdi-steam:before{content:"\f04d3"}.mdi-steering:before{content:"\f04d4"}.mdi-steering-off:before{content:"\f090e"}.mdi-step-backward:before{content:"\f04d5"}.mdi-step-backward-2:before{content:"\f04d6"}.mdi-step-forward:before{content:"\f04d7"}.mdi-step-forward-2:before{content:"\f04d8"}.mdi-stethoscope:before{content:"\f04d9"}.mdi-sticker:before{content:"\f1364"}.mdi-sticker-alert:before{content:"\f1365"}.mdi-sticker-alert-outline:before{content:"\f1366"}.mdi-sticker-check:before{content:"\f1367"}.mdi-sticker-check-outline:before{content:"\f1368"}.mdi-sticker-circle-outline:before{content:"\f05d0"}.mdi-sticker-emoji:before{content:"\f0785"}.mdi-sticker-minus:before{content:"\f1369"}.mdi-sticker-minus-outline:before{content:"\f136a"}.mdi-sticker-outline:before{content:"\f136b"}.mdi-sticker-plus:before{content:"\f136c"}.mdi-sticker-plus-outline:before{content:"\f136d"}.mdi-sticker-remove:before{content:"\f136e"}.mdi-sticker-remove-outline:before{content:"\f136f"}.mdi-sticker-text:before{content:"\f178e"}.mdi-sticker-text-outline:before{content:"\f178f"}.mdi-stocking:before{content:"\f04da"}.mdi-stomach:before{content:"\f1093"}.mdi-stool:before{content:"\f195d"}.mdi-stool-outline:before{content:"\f195e"}.mdi-stop:before{content:"\f04db"}.mdi-stop-circle:before{content:"\f0666"}.mdi-stop-circle-outline:before{content:"\f0667"}.mdi-storage-tank:before{content:"\f1a75"}.mdi-storage-tank-outline:before{content:"\f1a76"}.mdi-store:before{content:"\f04dc"}.mdi-store-24-hour:before{content:"\f04dd"}.mdi-store-alert:before{content:"\f18c1"}.mdi-store-alert-outline:before{content:"\f18c2"}.mdi-store-check:before{content:"\f18c3"}.mdi-store-check-outline:before{content:"\f18c4"}.mdi-store-clock:before{content:"\f18c5"}.mdi-store-clock-outline:before{content:"\f18c6"}.mdi-store-cog:before{content:"\f18c7"}.mdi-store-cog-outline:before{content:"\f18c8"}.mdi-store-edit:before{content:"\f18c9"}.mdi-store-edit-outline:before{content:"\f18ca"}.mdi-store-marker:before{content:"\f18cb"}.mdi-store-marker-outline:before{content:"\f18cc"}.mdi-store-minus:before{content:"\f165e"}.mdi-store-minus-outline:before{content:"\f18cd"}.mdi-store-off:before{content:"\f18ce"}.mdi-store-off-outline:before{content:"\f18cf"}.mdi-store-outline:before{content:"\f1361"}.mdi-store-plus:before{content:"\f165f"}.mdi-store-plus-outline:before{content:"\f18d0"}.mdi-store-remove:before{content:"\f1660"}.mdi-store-remove-outline:before{content:"\f18d1"}.mdi-store-search:before{content:"\f18d2"}.mdi-store-search-outline:before{content:"\f18d3"}.mdi-store-settings:before{content:"\f18d4"}.mdi-store-settings-outline:before{content:"\f18d5"}.mdi-storefront:before{content:"\f07c7"}.mdi-storefront-check:before{content:"\f1b7d"}.mdi-storefront-check-outline:before{content:"\f1b7e"}.mdi-storefront-edit:before{content:"\f1b7f"}.mdi-storefront-edit-outline:before{content:"\f1b80"}.mdi-storefront-minus:before{content:"\f1b83"}.mdi-storefront-minus-outline:before{content:"\f1b84"}.mdi-storefront-outline:before{content:"\f10c1"}.mdi-storefront-plus:before{content:"\f1b81"}.mdi-storefront-plus-outline:before{content:"\f1b82"}.mdi-storefront-remove:before{content:"\f1b85"}.mdi-storefront-remove-outline:before{content:"\f1b86"}.mdi-stove:before{content:"\f04de"}.mdi-strategy:before{content:"\f11d6"}.mdi-stretch-to-page:before{content:"\f0f2b"}.mdi-stretch-to-page-outline:before{content:"\f0f2c"}.mdi-string-lights:before{content:"\f12ba"}.mdi-string-lights-off:before{content:"\f12bb"}.mdi-subdirectory-arrow-left:before{content:"\f060c"}.mdi-subdirectory-arrow-right:before{content:"\f060d"}.mdi-submarine:before{content:"\f156c"}.mdi-subtitles:before{content:"\f0a16"}.mdi-subtitles-outline:before{content:"\f0a17"}.mdi-subway:before{content:"\f06ac"}.mdi-subway-alert-variant:before{content:"\f0d9d"}.mdi-subway-variant:before{content:"\f04df"}.mdi-summit:before{content:"\f0786"}.mdi-sun-angle:before{content:"\f1b27"}.mdi-sun-angle-outline:before{content:"\f1b28"}.mdi-sun-clock:before{content:"\f1a77"}.mdi-sun-clock-outline:before{content:"\f1a78"}.mdi-sun-compass:before{content:"\f19a5"}.mdi-sun-snowflake:before{content:"\f1796"}.mdi-sun-snowflake-variant:before{content:"\f1a79"}.mdi-sun-thermometer:before{content:"\f18d6"}.mdi-sun-thermometer-outline:before{content:"\f18d7"}.mdi-sun-wireless:before{content:"\f17fe"}.mdi-sun-wireless-outline:before{content:"\f17ff"}.mdi-sunglasses:before{content:"\f04e0"}.mdi-surfing:before{content:"\f1746"}.mdi-surround-sound:before{content:"\f05c5"}.mdi-surround-sound-2-0:before{content:"\f07f0"}.mdi-surround-sound-2-1:before{content:"\f1729"}.mdi-surround-sound-3-1:before{content:"\f07f1"}.mdi-surround-sound-5-1:before{content:"\f07f2"}.mdi-surround-sound-5-1-2:before{content:"\f172a"}.mdi-surround-sound-7-1:before{content:"\f07f3"}.mdi-svg:before{content:"\f0721"}.mdi-swap-horizontal:before{content:"\f04e1"}.mdi-swap-horizontal-bold:before{content:"\f0bcd"}.mdi-swap-horizontal-circle:before{content:"\f0fe1"}.mdi-swap-horizontal-circle-outline:before{content:"\f0fe2"}.mdi-swap-horizontal-hidden:before{content:"\f1d0e"}.mdi-swap-horizontal-variant:before{content:"\f08c1"}.mdi-swap-vertical:before{content:"\f04e2"}.mdi-swap-vertical-bold:before{content:"\f0bce"}.mdi-swap-vertical-circle:before{content:"\f0fe3"}.mdi-swap-vertical-circle-outline:before{content:"\f0fe4"}.mdi-swap-vertical-variant:before{content:"\f08c2"}.mdi-swim:before{content:"\f04e3"}.mdi-switch:before{content:"\f04e4"}.mdi-sword:before{content:"\f04e5"}.mdi-sword-cross:before{content:"\f0787"}.mdi-syllabary-hangul:before{content:"\f1333"}.mdi-syllabary-hiragana:before{content:"\f1334"}.mdi-syllabary-katakana:before{content:"\f1335"}.mdi-syllabary-katakana-halfwidth:before{content:"\f1336"}.mdi-symbol:before{content:"\f1501"}.mdi-symfony:before{content:"\f0ae6"}.mdi-synagogue:before{content:"\f1b04"}.mdi-synagogue-outline:before{content:"\f1b05"}.mdi-sync:before{content:"\f04e6"}.mdi-sync-alert:before{content:"\f04e7"}.mdi-sync-circle:before{content:"\f1378"}.mdi-sync-off:before{content:"\f04e8"}.mdi-tab:before{content:"\f04e9"}.mdi-tab-minus:before{content:"\f0b4b"}.mdi-tab-plus:before{content:"\f075c"}.mdi-tab-remove:before{content:"\f0b4c"}.mdi-tab-search:before{content:"\f199e"}.mdi-tab-unselected:before{content:"\f04ea"}.mdi-table:before{content:"\f04eb"}.mdi-table-account:before{content:"\f13b9"}.mdi-table-alert:before{content:"\f13ba"}.mdi-table-arrow-down:before{content:"\f13bb"}.mdi-table-arrow-left:before{content:"\f13bc"}.mdi-table-arrow-right:before{content:"\f13bd"}.mdi-table-arrow-up:before{content:"\f13be"}.mdi-table-border:before{content:"\f0a18"}.mdi-table-cancel:before{content:"\f13bf"}.mdi-table-chair:before{content:"\f1061"}.mdi-table-check:before{content:"\f13c0"}.mdi-table-clock:before{content:"\f13c1"}.mdi-table-cog:before{content:"\f13c2"}.mdi-table-column:before{content:"\f0835"}.mdi-table-column-plus-after:before{content:"\f04ec"}.mdi-table-column-plus-before:before{content:"\f04ed"}.mdi-table-column-remove:before{content:"\f04ee"}.mdi-table-column-width:before{content:"\f04ef"}.mdi-table-edit:before{content:"\f04f0"}.mdi-table-eye:before{content:"\f1094"}.mdi-table-eye-off:before{content:"\f13c3"}.mdi-table-filter:before{content:"\f1b8c"}.mdi-table-furniture:before{content:"\f05bc"}.mdi-table-headers-eye:before{content:"\f121d"}.mdi-table-headers-eye-off:before{content:"\f121e"}.mdi-table-heart:before{content:"\f13c4"}.mdi-table-key:before{content:"\f13c5"}.mdi-table-large:before{content:"\f04f1"}.mdi-table-large-plus:before{content:"\f0f87"}.mdi-table-large-remove:before{content:"\f0f88"}.mdi-table-lock:before{content:"\f13c6"}.mdi-table-merge-cells:before{content:"\f09a6"}.mdi-table-minus:before{content:"\f13c7"}.mdi-table-multiple:before{content:"\f13c8"}.mdi-table-network:before{content:"\f13c9"}.mdi-table-of-contents:before{content:"\f0836"}.mdi-table-off:before{content:"\f13ca"}.mdi-table-picnic:before{content:"\f1743"}.mdi-table-pivot:before{content:"\f183c"}.mdi-table-plus:before{content:"\f0a75"}.mdi-table-question:before{content:"\f1b21"}.mdi-table-refresh:before{content:"\f13a0"}.mdi-table-remove:before{content:"\f0a76"}.mdi-table-row:before{content:"\f0837"}.mdi-table-row-height:before{content:"\f04f2"}.mdi-table-row-plus-after:before{content:"\f04f3"}.mdi-table-row-plus-before:before{content:"\f04f4"}.mdi-table-row-remove:before{content:"\f04f5"}.mdi-table-search:before{content:"\f090f"}.mdi-table-settings:before{content:"\f0838"}.mdi-table-split-cell:before{content:"\f142a"}.mdi-table-star:before{content:"\f13cb"}.mdi-table-sync:before{content:"\f13a1"}.mdi-table-tennis:before{content:"\f0e68"}.mdi-tablet:before{content:"\f04f6"}.mdi-tablet-cellphone:before{content:"\f09a7"}.mdi-tablet-dashboard:before{content:"\f0ece"}.mdi-taco:before{content:"\f0762"}.mdi-tag:before{content:"\f04f9"}.mdi-tag-arrow-down:before{content:"\f172b"}.mdi-tag-arrow-down-outline:before{content:"\f172c"}.mdi-tag-arrow-left:before{content:"\f172d"}.mdi-tag-arrow-left-outline:before{content:"\f172e"}.mdi-tag-arrow-right:before{content:"\f172f"}.mdi-tag-arrow-right-outline:before{content:"\f1730"}.mdi-tag-arrow-up:before{content:"\f1731"}.mdi-tag-arrow-up-outline:before{content:"\f1732"}.mdi-tag-check:before{content:"\f1a7a"}.mdi-tag-check-outline:before{content:"\f1a7b"}.mdi-tag-edit:before{content:"\f1c9c"}.mdi-tag-edit-outline:before{content:"\f1c9d"}.mdi-tag-faces:before{content:"\f04fa"}.mdi-tag-heart:before{content:"\f068b"}.mdi-tag-heart-outline:before{content:"\f0bcf"}.mdi-tag-hidden:before{content:"\f1c76"}.mdi-tag-minus:before{content:"\f0910"}.mdi-tag-minus-outline:before{content:"\f121f"}.mdi-tag-multiple:before{content:"\f04fb"}.mdi-tag-multiple-outline:before{content:"\f12f7"}.mdi-tag-off:before{content:"\f1220"}.mdi-tag-off-outline:before{content:"\f1221"}.mdi-tag-outline:before{content:"\f04fc"}.mdi-tag-plus:before{content:"\f0722"}.mdi-tag-plus-outline:before{content:"\f1222"}.mdi-tag-remove:before{content:"\f0723"}.mdi-tag-remove-outline:before{content:"\f1223"}.mdi-tag-search:before{content:"\f1907"}.mdi-tag-search-outline:before{content:"\f1908"}.mdi-tag-text:before{content:"\f1224"}.mdi-tag-text-outline:before{content:"\f04fd"}.mdi-tailwind:before{content:"\f13ff"}.mdi-tally-mark-1:before{content:"\f1abc"}.mdi-tally-mark-2:before{content:"\f1abd"}.mdi-tally-mark-3:before{content:"\f1abe"}.mdi-tally-mark-4:before{content:"\f1abf"}.mdi-tally-mark-5:before{content:"\f1ac0"}.mdi-tangram:before{content:"\f04f8"}.mdi-tank:before{content:"\f0d3a"}.mdi-tanker-truck:before{content:"\f0fe5"}.mdi-tape-drive:before{content:"\f16df"}.mdi-tape-measure:before{content:"\f0b4d"}.mdi-target:before{content:"\f04fe"}.mdi-target-account:before{content:"\f0bd0"}.mdi-target-variant:before{content:"\f0a77"}.mdi-taxi:before{content:"\f04ff"}.mdi-tea:before{content:"\f0d9e"}.mdi-tea-outline:before{content:"\f0d9f"}.mdi-teamviewer:before{content:"\f0500"}.mdi-teddy-bear:before{content:"\f18fb"}.mdi-telescope:before{content:"\f0b4e"}.mdi-television:before{content:"\f0502"}.mdi-television-ambient-light:before{content:"\f1356"}.mdi-television-box:before{content:"\f0839"}.mdi-television-classic:before{content:"\f07f4"}.mdi-television-classic-off:before{content:"\f083a"}.mdi-television-guide:before{content:"\f0503"}.mdi-television-off:before{content:"\f083b"}.mdi-television-pause:before{content:"\f0f89"}.mdi-television-play:before{content:"\f0ecf"}.mdi-television-shimmer:before{content:"\f1110"}.mdi-television-speaker:before{content:"\f1b1b"}.mdi-television-speaker-off:before{content:"\f1b1c"}.mdi-television-stop:before{content:"\f0f8a"}.mdi-temperature-celsius:before{content:"\f0504"}.mdi-temperature-fahrenheit:before{content:"\f0505"}.mdi-temperature-kelvin:before{content:"\f0506"}.mdi-temple-buddhist:before{content:"\f1b06"}.mdi-temple-buddhist-outline:before{content:"\f1b07"}.mdi-temple-hindu:before{content:"\f1b08"}.mdi-temple-hindu-outline:before{content:"\f1b09"}.mdi-tennis:before{content:"\f0da0"}.mdi-tennis-ball:before{content:"\f0507"}.mdi-tennis-ball-outline:before{content:"\f1c5f"}.mdi-tent:before{content:"\f0508"}.mdi-terraform:before{content:"\f1062"}.mdi-terrain:before{content:"\f0509"}.mdi-test-tube:before{content:"\f0668"}.mdi-test-tube-empty:before{content:"\f0911"}.mdi-test-tube-off:before{content:"\f0912"}.mdi-text:before{content:"\f09a8"}.mdi-text-account:before{content:"\f1570"}.mdi-text-box:before{content:"\f021a"}.mdi-text-box-check:before{content:"\f0ea6"}.mdi-text-box-check-outline:before{content:"\f0ea7"}.mdi-text-box-edit:before{content:"\f1a7c"}.mdi-text-box-edit-outline:before{content:"\f1a7d"}.mdi-text-box-minus:before{content:"\f0ea8"}.mdi-text-box-minus-outline:before{content:"\f0ea9"}.mdi-text-box-multiple:before{content:"\f0ab7"}.mdi-text-box-multiple-outline:before{content:"\f0ab8"}.mdi-text-box-outline:before{content:"\f09ed"}.mdi-text-box-plus:before{content:"\f0eaa"}.mdi-text-box-plus-outline:before{content:"\f0eab"}.mdi-text-box-remove:before{content:"\f0eac"}.mdi-text-box-remove-outline:before{content:"\f0ead"}.mdi-text-box-search:before{content:"\f0eae"}.mdi-text-box-search-outline:before{content:"\f0eaf"}.mdi-text-long:before{content:"\f09aa"}.mdi-text-recognition:before{content:"\f113d"}.mdi-text-search:before{content:"\f13b8"}.mdi-text-search-variant:before{content:"\f1a7e"}.mdi-text-shadow:before{content:"\f0669"}.mdi-text-short:before{content:"\f09a9"}.mdi-texture:before{content:"\f050c"}.mdi-texture-box:before{content:"\f0fe6"}.mdi-theater:before{content:"\f050d"}.mdi-theme-light-dark:before{content:"\f050e"}.mdi-thermometer:before{content:"\f050f"}.mdi-thermometer-alert:before{content:"\f0e01"}.mdi-thermometer-auto:before{content:"\f1b0f"}.mdi-thermometer-bluetooth:before{content:"\f1895"}.mdi-thermometer-check:before{content:"\f1a7f"}.mdi-thermometer-chevron-down:before{content:"\f0e02"}.mdi-thermometer-chevron-up:before{content:"\f0e03"}.mdi-thermometer-high:before{content:"\f10c2"}.mdi-thermometer-lines:before{content:"\f0510"}.mdi-thermometer-low:before{content:"\f10c3"}.mdi-thermometer-minus:before{content:"\f0e04"}.mdi-thermometer-off:before{content:"\f1531"}.mdi-thermometer-plus:before{content:"\f0e05"}.mdi-thermometer-probe:before{content:"\f1b2b"}.mdi-thermometer-probe-off:before{content:"\f1b2c"}.mdi-thermometer-water:before{content:"\f1a80"}.mdi-thermostat:before{content:"\f0393"}.mdi-thermostat-auto:before{content:"\f1b17"}.mdi-thermostat-box:before{content:"\f0891"}.mdi-thermostat-box-auto:before{content:"\f1b18"}.mdi-thermostat-cog:before{content:"\f1c80"}.mdi-thought-bubble:before{content:"\f07f6"}.mdi-thought-bubble-outline:before{content:"\f07f7"}.mdi-thumb-down:before{content:"\f0511"}.mdi-thumb-down-outline:before{content:"\f0512"}.mdi-thumb-up:before{content:"\f0513"}.mdi-thumb-up-outline:before{content:"\f0514"}.mdi-thumbs-up-down:before{content:"\f0515"}.mdi-thumbs-up-down-outline:before{content:"\f1914"}.mdi-ticket:before{content:"\f0516"}.mdi-ticket-account:before{content:"\f0517"}.mdi-ticket-confirmation:before{content:"\f0518"}.mdi-ticket-confirmation-outline:before{content:"\f13aa"}.mdi-ticket-outline:before{content:"\f0913"}.mdi-ticket-percent:before{content:"\f0724"}.mdi-ticket-percent-outline:before{content:"\f142b"}.mdi-tie:before{content:"\f0519"}.mdi-tilde:before{content:"\f0725"}.mdi-tilde-off:before{content:"\f18f3"}.mdi-timelapse:before{content:"\f051a"}.mdi-timeline:before{content:"\f0bd1"}.mdi-timeline-alert:before{content:"\f0f95"}.mdi-timeline-alert-outline:before{content:"\f0f98"}.mdi-timeline-check:before{content:"\f1532"}.mdi-timeline-check-outline:before{content:"\f1533"}.mdi-timeline-clock:before{content:"\f11fb"}.mdi-timeline-clock-outline:before{content:"\f11fc"}.mdi-timeline-minus:before{content:"\f1534"}.mdi-timeline-minus-outline:before{content:"\f1535"}.mdi-timeline-outline:before{content:"\f0bd2"}.mdi-timeline-plus:before{content:"\f0f96"}.mdi-timeline-plus-outline:before{content:"\f0f97"}.mdi-timeline-question:before{content:"\f0f99"}.mdi-timeline-question-outline:before{content:"\f0f9a"}.mdi-timeline-remove:before{content:"\f1536"}.mdi-timeline-remove-outline:before{content:"\f1537"}.mdi-timeline-text:before{content:"\f0bd3"}.mdi-timeline-text-outline:before{content:"\f0bd4"}.mdi-timer:before{content:"\f13ab"}.mdi-timer-10:before{content:"\f051c"}.mdi-timer-3:before{content:"\f051d"}.mdi-timer-alert:before{content:"\f1acc"}.mdi-timer-alert-outline:before{content:"\f1acd"}.mdi-timer-cancel:before{content:"\f1ace"}.mdi-timer-cancel-outline:before{content:"\f1acf"}.mdi-timer-check:before{content:"\f1ad0"}.mdi-timer-check-outline:before{content:"\f1ad1"}.mdi-timer-cog:before{content:"\f1925"}.mdi-timer-cog-outline:before{content:"\f1926"}.mdi-timer-edit:before{content:"\f1ad2"}.mdi-timer-edit-outline:before{content:"\f1ad3"}.mdi-timer-lock:before{content:"\f1ad4"}.mdi-timer-lock-open:before{content:"\f1ad5"}.mdi-timer-lock-open-outline:before{content:"\f1ad6"}.mdi-timer-lock-outline:before{content:"\f1ad7"}.mdi-timer-marker:before{content:"\f1ad8"}.mdi-timer-marker-outline:before{content:"\f1ad9"}.mdi-timer-minus:before{content:"\f1ada"}.mdi-timer-minus-outline:before{content:"\f1adb"}.mdi-timer-music:before{content:"\f1adc"}.mdi-timer-music-outline:before{content:"\f1add"}.mdi-timer-off:before{content:"\f13ac"}.mdi-timer-off-outline:before{content:"\f051e"}.mdi-timer-outline:before{content:"\f051b"}.mdi-timer-pause:before{content:"\f1ade"}.mdi-timer-pause-outline:before{content:"\f1adf"}.mdi-timer-play:before{content:"\f1ae0"}.mdi-timer-play-outline:before{content:"\f1ae1"}.mdi-timer-plus:before{content:"\f1ae2"}.mdi-timer-plus-outline:before{content:"\f1ae3"}.mdi-timer-refresh:before{content:"\f1ae4"}.mdi-timer-refresh-outline:before{content:"\f1ae5"}.mdi-timer-remove:before{content:"\f1ae6"}.mdi-timer-remove-outline:before{content:"\f1ae7"}.mdi-timer-sand:before{content:"\f051f"}.mdi-timer-sand-complete:before{content:"\f199f"}.mdi-timer-sand-empty:before{content:"\f06ad"}.mdi-timer-sand-full:before{content:"\f078c"}.mdi-timer-sand-paused:before{content:"\f19a0"}.mdi-timer-settings:before{content:"\f1923"}.mdi-timer-settings-outline:before{content:"\f1924"}.mdi-timer-star:before{content:"\f1ae8"}.mdi-timer-star-outline:before{content:"\f1ae9"}.mdi-timer-stop:before{content:"\f1aea"}.mdi-timer-stop-outline:before{content:"\f1aeb"}.mdi-timer-sync:before{content:"\f1aec"}.mdi-timer-sync-outline:before{content:"\f1aed"}.mdi-timetable:before{content:"\f0520"}.mdi-tire:before{content:"\f1896"}.mdi-toaster:before{content:"\f1063"}.mdi-toaster-off:before{content:"\f11b7"}.mdi-toaster-oven:before{content:"\f0cd3"}.mdi-toggle-switch:before{content:"\f0521"}.mdi-toggle-switch-off:before{content:"\f0522"}.mdi-toggle-switch-off-outline:before{content:"\f0a19"}.mdi-toggle-switch-outline:before{content:"\f0a1a"}.mdi-toggle-switch-variant:before{content:"\f1a25"}.mdi-toggle-switch-variant-off:before{content:"\f1a26"}.mdi-toilet:before{content:"\f09ab"}.mdi-toolbox:before{content:"\f09ac"}.mdi-toolbox-outline:before{content:"\f09ad"}.mdi-tools:before{content:"\f1064"}.mdi-tooltip:before{content:"\f0523"}.mdi-tooltip-account:before{content:"\f000c"}.mdi-tooltip-cellphone:before{content:"\f183b"}.mdi-tooltip-check:before{content:"\f155c"}.mdi-tooltip-check-outline:before{content:"\f155d"}.mdi-tooltip-edit:before{content:"\f0524"}.mdi-tooltip-edit-outline:before{content:"\f12c5"}.mdi-tooltip-image:before{content:"\f0525"}.mdi-tooltip-image-outline:before{content:"\f0bd5"}.mdi-tooltip-minus:before{content:"\f155e"}.mdi-tooltip-minus-outline:before{content:"\f155f"}.mdi-tooltip-outline:before{content:"\f0526"}.mdi-tooltip-plus:before{content:"\f0bd6"}.mdi-tooltip-plus-outline:before{content:"\f0527"}.mdi-tooltip-question:before{content:"\f1bba"}.mdi-tooltip-question-outline:before{content:"\f1bbb"}.mdi-tooltip-remove:before{content:"\f1560"}.mdi-tooltip-remove-outline:before{content:"\f1561"}.mdi-tooltip-text:before{content:"\f0528"}.mdi-tooltip-text-outline:before{content:"\f0bd7"}.mdi-tooth:before{content:"\f08c3"}.mdi-tooth-outline:before{content:"\f0529"}.mdi-toothbrush:before{content:"\f1129"}.mdi-toothbrush-electric:before{content:"\f112c"}.mdi-toothbrush-paste:before{content:"\f112a"}.mdi-torch:before{content:"\f1606"}.mdi-tortoise:before{content:"\f0d3b"}.mdi-toslink:before{content:"\f12b8"}.mdi-touch-text-outline:before{content:"\f1c60"}.mdi-tournament:before{content:"\f09ae"}.mdi-tow-truck:before{content:"\f083c"}.mdi-tower-beach:before{content:"\f0681"}.mdi-tower-fire:before{content:"\f0682"}.mdi-town-hall:before{content:"\f1875"}.mdi-toy-brick:before{content:"\f1288"}.mdi-toy-brick-marker:before{content:"\f1289"}.mdi-toy-brick-marker-outline:before{content:"\f128a"}.mdi-toy-brick-minus:before{content:"\f128b"}.mdi-toy-brick-minus-outline:before{content:"\f128c"}.mdi-toy-brick-outline:before{content:"\f128d"}.mdi-toy-brick-plus:before{content:"\f128e"}.mdi-toy-brick-plus-outline:before{content:"\f128f"}.mdi-toy-brick-remove:before{content:"\f1290"}.mdi-toy-brick-remove-outline:before{content:"\f1291"}.mdi-toy-brick-search:before{content:"\f1292"}.mdi-toy-brick-search-outline:before{content:"\f1293"}.mdi-track-light:before{content:"\f0914"}.mdi-track-light-off:before{content:"\f1b01"}.mdi-trackpad:before{content:"\f07f8"}.mdi-trackpad-lock:before{content:"\f0933"}.mdi-tractor:before{content:"\f0892"}.mdi-tractor-variant:before{content:"\f14c4"}.mdi-trademark:before{content:"\f0a78"}.mdi-traffic-cone:before{content:"\f137c"}.mdi-traffic-light:before{content:"\f052b"}.mdi-traffic-light-outline:before{content:"\f182a"}.mdi-train:before{content:"\f052c"}.mdi-train-bus:before{content:"\f1cc7"}.mdi-train-car:before{content:"\f0bd8"}.mdi-train-car-autorack:before{content:"\f1b2d"}.mdi-train-car-box:before{content:"\f1b2e"}.mdi-train-car-box-full:before{content:"\f1b2f"}.mdi-train-car-box-open:before{content:"\f1b30"}.mdi-train-car-caboose:before{content:"\f1b31"}.mdi-train-car-centerbeam:before{content:"\f1b32"}.mdi-train-car-centerbeam-full:before{content:"\f1b33"}.mdi-train-car-container:before{content:"\f1b34"}.mdi-train-car-flatbed:before{content:"\f1b35"}.mdi-train-car-flatbed-car:before{content:"\f1b36"}.mdi-train-car-flatbed-tank:before{content:"\f1b37"}.mdi-train-car-gondola:before{content:"\f1b38"}.mdi-train-car-gondola-full:before{content:"\f1b39"}.mdi-train-car-hopper:before{content:"\f1b3a"}.mdi-train-car-hopper-covered:before{content:"\f1b3b"}.mdi-train-car-hopper-full:before{content:"\f1b3c"}.mdi-train-car-intermodal:before{content:"\f1b3d"}.mdi-train-car-passenger:before{content:"\f1733"}.mdi-train-car-passenger-door:before{content:"\f1734"}.mdi-train-car-passenger-door-open:before{content:"\f1735"}.mdi-train-car-passenger-variant:before{content:"\f1736"}.mdi-train-car-tank:before{content:"\f1b3e"}.mdi-train-variant:before{content:"\f08c4"}.mdi-tram:before{content:"\f052d"}.mdi-tram-side:before{content:"\f0fe7"}.mdi-transcribe:before{content:"\f052e"}.mdi-transcribe-close:before{content:"\f052f"}.mdi-transfer:before{content:"\f1065"}.mdi-transfer-down:before{content:"\f0da1"}.mdi-transfer-left:before{content:"\f0da2"}.mdi-transfer-right:before{content:"\f0530"}.mdi-transfer-up:before{content:"\f0da3"}.mdi-transit-connection:before{content:"\f0d3c"}.mdi-transit-connection-horizontal:before{content:"\f1546"}.mdi-transit-connection-variant:before{content:"\f0d3d"}.mdi-transit-detour:before{content:"\f0f8b"}.mdi-transit-skip:before{content:"\f1515"}.mdi-transit-transfer:before{content:"\f06ae"}.mdi-transition:before{content:"\f0915"}.mdi-transition-masked:before{content:"\f0916"}.mdi-translate:before{content:"\f05ca"}.mdi-translate-off:before{content:"\f0e06"}.mdi-translate-variant:before{content:"\f1b99"}.mdi-transmission-tower:before{content:"\f0d3e"}.mdi-transmission-tower-export:before{content:"\f192c"}.mdi-transmission-tower-import:before{content:"\f192d"}.mdi-transmission-tower-off:before{content:"\f19dd"}.mdi-trash-can:before{content:"\f0a79"}.mdi-trash-can-outline:before{content:"\f0a7a"}.mdi-tray:before{content:"\f1294"}.mdi-tray-alert:before{content:"\f1295"}.mdi-tray-arrow-down:before{content:"\f0120"}.mdi-tray-arrow-up:before{content:"\f011d"}.mdi-tray-full:before{content:"\f1296"}.mdi-tray-minus:before{content:"\f1297"}.mdi-tray-plus:before{content:"\f1298"}.mdi-tray-remove:before{content:"\f1299"}.mdi-treasure-chest:before{content:"\f0726"}.mdi-treasure-chest-outline:before{content:"\f1c77"}.mdi-tree:before{content:"\f0531"}.mdi-tree-outline:before{content:"\f0e69"}.mdi-trello:before{content:"\f0532"}.mdi-trending-down:before{content:"\f0533"}.mdi-trending-neutral:before{content:"\f0534"}.mdi-trending-up:before{content:"\f0535"}.mdi-triangle:before{content:"\f0536"}.mdi-triangle-down:before{content:"\f1c56"}.mdi-triangle-down-outline:before{content:"\f1c57"}.mdi-triangle-outline:before{content:"\f0537"}.mdi-triangle-small-down:before{content:"\f1a09"}.mdi-triangle-small-up:before{content:"\f1a0a"}.mdi-triangle-wave:before{content:"\f147c"}.mdi-triforce:before{content:"\f0bd9"}.mdi-trophy:before{content:"\f0538"}.mdi-trophy-award:before{content:"\f0539"}.mdi-trophy-broken:before{content:"\f0da4"}.mdi-trophy-outline:before{content:"\f053a"}.mdi-trophy-variant:before{content:"\f053b"}.mdi-trophy-variant-outline:before{content:"\f053c"}.mdi-truck:before{content:"\f053d"}.mdi-truck-alert:before{content:"\f19de"}.mdi-truck-alert-outline:before{content:"\f19df"}.mdi-truck-cargo-container:before{content:"\f18d8"}.mdi-truck-check:before{content:"\f0cd4"}.mdi-truck-check-outline:before{content:"\f129a"}.mdi-truck-delivery:before{content:"\f053e"}.mdi-truck-delivery-outline:before{content:"\f129b"}.mdi-truck-fast:before{content:"\f0788"}.mdi-truck-fast-outline:before{content:"\f129c"}.mdi-truck-flatbed:before{content:"\f1891"}.mdi-truck-minus:before{content:"\f19ae"}.mdi-truck-minus-outline:before{content:"\f19bd"}.mdi-truck-off-road:before{content:"\f1c9e"}.mdi-truck-off-road-off:before{content:"\f1c9f"}.mdi-truck-outline:before{content:"\f129d"}.mdi-truck-plus:before{content:"\f19ad"}.mdi-truck-plus-outline:before{content:"\f19bc"}.mdi-truck-remove:before{content:"\f19af"}.mdi-truck-remove-outline:before{content:"\f19be"}.mdi-truck-snowflake:before{content:"\f19a6"}.mdi-truck-trailer:before{content:"\f0727"}.mdi-trumpet:before{content:"\f1096"}.mdi-tshirt-crew:before{content:"\f0a7b"}.mdi-tshirt-crew-outline:before{content:"\f053f"}.mdi-tshirt-v:before{content:"\f0a7c"}.mdi-tshirt-v-outline:before{content:"\f0540"}.mdi-tsunami:before{content:"\f1a81"}.mdi-tumble-dryer:before{content:"\f0917"}.mdi-tumble-dryer-alert:before{content:"\f11ba"}.mdi-tumble-dryer-off:before{content:"\f11bb"}.mdi-tune:before{content:"\f062e"}.mdi-tune-variant:before{content:"\f1542"}.mdi-tune-vertical:before{content:"\f066a"}.mdi-tune-vertical-variant:before{content:"\f1543"}.mdi-tunnel:before{content:"\f183d"}.mdi-tunnel-outline:before{content:"\f183e"}.mdi-turbine:before{content:"\f1a82"}.mdi-turkey:before{content:"\f171b"}.mdi-turnstile:before{content:"\f0cd5"}.mdi-turnstile-outline:before{content:"\f0cd6"}.mdi-turtle:before{content:"\f0cd7"}.mdi-twitch:before{content:"\f0543"}.mdi-twitter:before{content:"\f0544"}.mdi-two-factor-authentication:before{content:"\f09af"}.mdi-typewriter:before{content:"\f0f2d"}.mdi-ubisoft:before{content:"\f0bda"}.mdi-ubuntu:before{content:"\f0548"}.mdi-ufo:before{content:"\f10c4"}.mdi-ufo-outline:before{content:"\f10c5"}.mdi-ultra-high-definition:before{content:"\f07f9"}.mdi-umbraco:before{content:"\f0549"}.mdi-umbrella:before{content:"\f054a"}.mdi-umbrella-beach:before{content:"\f188a"}.mdi-umbrella-beach-outline:before{content:"\f188b"}.mdi-umbrella-closed:before{content:"\f09b0"}.mdi-umbrella-closed-outline:before{content:"\f13e2"}.mdi-umbrella-closed-variant:before{content:"\f13e1"}.mdi-umbrella-outline:before{content:"\f054b"}.mdi-underwear-outline:before{content:"\f1d0f"}.mdi-undo:before{content:"\f054c"}.mdi-undo-variant:before{content:"\f054d"}.mdi-unfold-less-horizontal:before{content:"\f054e"}.mdi-unfold-less-vertical:before{content:"\f0760"}.mdi-unfold-more-horizontal:before{content:"\f054f"}.mdi-unfold-more-vertical:before{content:"\f0761"}.mdi-ungroup:before{content:"\f0550"}.mdi-unicode:before{content:"\f0ed0"}.mdi-unicorn:before{content:"\f15c2"}.mdi-unicorn-variant:before{content:"\f15c3"}.mdi-unicycle:before{content:"\f15e5"}.mdi-unity:before{content:"\f06af"}.mdi-unreal:before{content:"\f09b1"}.mdi-update:before{content:"\f06b0"}.mdi-upload:before{content:"\f0552"}.mdi-upload-box:before{content:"\f1d10"}.mdi-upload-box-outline:before{content:"\f1d11"}.mdi-upload-circle:before{content:"\f1d12"}.mdi-upload-circle-outline:before{content:"\f1d13"}.mdi-upload-lock:before{content:"\f1373"}.mdi-upload-lock-outline:before{content:"\f1374"}.mdi-upload-multiple:before{content:"\f083d"}.mdi-upload-multiple-outline:before{content:"\f1d14"}.mdi-upload-network:before{content:"\f06f6"}.mdi-upload-network-outline:before{content:"\f0cd8"}.mdi-upload-off:before{content:"\f10c6"}.mdi-upload-off-outline:before{content:"\f10c7"}.mdi-upload-outline:before{content:"\f0e07"}.mdi-usb:before{content:"\f0553"}.mdi-usb-c-port:before{content:"\f1cbf"}.mdi-usb-flash-drive:before{content:"\f129e"}.mdi-usb-flash-drive-outline:before{content:"\f129f"}.mdi-usb-port:before{content:"\f11f0"}.mdi-vacuum:before{content:"\f19a1"}.mdi-vacuum-outline:before{content:"\f19a2"}.mdi-valve:before{content:"\f1066"}.mdi-valve-closed:before{content:"\f1067"}.mdi-valve-open:before{content:"\f1068"}.mdi-van-passenger:before{content:"\f07fa"}.mdi-van-utility:before{content:"\f07fb"}.mdi-vanish:before{content:"\f07fc"}.mdi-vanish-quarter:before{content:"\f1554"}.mdi-vanity-light:before{content:"\f11e1"}.mdi-variable:before{content:"\f0ae7"}.mdi-variable-box:before{content:"\f1111"}.mdi-vector-arrange-above:before{content:"\f0554"}.mdi-vector-arrange-below:before{content:"\f0555"}.mdi-vector-bezier:before{content:"\f0ae8"}.mdi-vector-circle:before{content:"\f0556"}.mdi-vector-circle-variant:before{content:"\f0557"}.mdi-vector-combine:before{content:"\f0558"}.mdi-vector-curve:before{content:"\f0559"}.mdi-vector-difference:before{content:"\f055a"}.mdi-vector-difference-ab:before{content:"\f055b"}.mdi-vector-difference-ba:before{content:"\f055c"}.mdi-vector-ellipse:before{content:"\f0893"}.mdi-vector-intersection:before{content:"\f055d"}.mdi-vector-line:before{content:"\f055e"}.mdi-vector-link:before{content:"\f0fe8"}.mdi-vector-point:before{content:"\f01c4"}.mdi-vector-point-edit:before{content:"\f09e8"}.mdi-vector-point-minus:before{content:"\f1b78"}.mdi-vector-point-plus:before{content:"\f1b79"}.mdi-vector-point-select:before{content:"\f055f"}.mdi-vector-polygon:before{content:"\f0560"}.mdi-vector-polygon-variant:before{content:"\f1856"}.mdi-vector-polyline:before{content:"\f0561"}.mdi-vector-polyline-edit:before{content:"\f1225"}.mdi-vector-polyline-minus:before{content:"\f1226"}.mdi-vector-polyline-plus:before{content:"\f1227"}.mdi-vector-polyline-remove:before{content:"\f1228"}.mdi-vector-radius:before{content:"\f074a"}.mdi-vector-rectangle:before{content:"\f05c6"}.mdi-vector-selection:before{content:"\f0562"}.mdi-vector-square:before{content:"\f0001"}.mdi-vector-square-close:before{content:"\f1857"}.mdi-vector-square-edit:before{content:"\f18d9"}.mdi-vector-square-minus:before{content:"\f18da"}.mdi-vector-square-open:before{content:"\f1858"}.mdi-vector-square-plus:before{content:"\f18db"}.mdi-vector-square-remove:before{content:"\f18dc"}.mdi-vector-triangle:before{content:"\f0563"}.mdi-vector-union:before{content:"\f0564"}.mdi-vhs:before{content:"\f0a1b"}.mdi-vibrate:before{content:"\f0566"}.mdi-vibrate-off:before{content:"\f0cd9"}.mdi-video:before{content:"\f0567"}.mdi-video-2d:before{content:"\f1a1c"}.mdi-video-3d:before{content:"\f07fd"}.mdi-video-3d-off:before{content:"\f13d9"}.mdi-video-3d-variant:before{content:"\f0ed1"}.mdi-video-4k-box:before{content:"\f083e"}.mdi-video-account:before{content:"\f0919"}.mdi-video-box:before{content:"\f00fd"}.mdi-video-box-off:before{content:"\f00fe"}.mdi-video-check:before{content:"\f1069"}.mdi-video-check-outline:before{content:"\f106a"}.mdi-video-high-definition:before{content:"\f152e"}.mdi-video-image:before{content:"\f091a"}.mdi-video-input-antenna:before{content:"\f083f"}.mdi-video-input-component:before{content:"\f0840"}.mdi-video-input-hdmi:before{content:"\f0841"}.mdi-video-input-scart:before{content:"\f0f8c"}.mdi-video-input-svideo:before{content:"\f0842"}.mdi-video-marker:before{content:"\f19a9"}.mdi-video-marker-outline:before{content:"\f19aa"}.mdi-video-minus:before{content:"\f09b2"}.mdi-video-minus-outline:before{content:"\f02ba"}.mdi-video-off:before{content:"\f0568"}.mdi-video-off-outline:before{content:"\f0bdb"}.mdi-video-outline:before{content:"\f0bdc"}.mdi-video-plus:before{content:"\f09b3"}.mdi-video-plus-outline:before{content:"\f01d3"}.mdi-video-stabilization:before{content:"\f091b"}.mdi-video-standard-definition:before{content:"\f1ca0"}.mdi-video-switch:before{content:"\f0569"}.mdi-video-switch-outline:before{content:"\f0790"}.mdi-video-vintage:before{content:"\f0a1c"}.mdi-video-wireless:before{content:"\f0ed2"}.mdi-video-wireless-outline:before{content:"\f0ed3"}.mdi-view-agenda:before{content:"\f056a"}.mdi-view-agenda-outline:before{content:"\f11d8"}.mdi-view-array:before{content:"\f056b"}.mdi-view-array-outline:before{content:"\f1485"}.mdi-view-carousel:before{content:"\f056c"}.mdi-view-carousel-outline:before{content:"\f1486"}.mdi-view-column:before{content:"\f056d"}.mdi-view-column-outline:before{content:"\f1487"}.mdi-view-comfy:before{content:"\f0e6a"}.mdi-view-comfy-outline:before{content:"\f1488"}.mdi-view-compact:before{content:"\f0e6b"}.mdi-view-compact-outline:before{content:"\f0e6c"}.mdi-view-dashboard:before{content:"\f056e"}.mdi-view-dashboard-edit:before{content:"\f1947"}.mdi-view-dashboard-edit-outline:before{content:"\f1948"}.mdi-view-dashboard-outline:before{content:"\f0a1d"}.mdi-view-dashboard-variant:before{content:"\f0843"}.mdi-view-dashboard-variant-outline:before{content:"\f1489"}.mdi-view-day:before{content:"\f056f"}.mdi-view-day-outline:before{content:"\f148a"}.mdi-view-gallery:before{content:"\f1888"}.mdi-view-gallery-outline:before{content:"\f1889"}.mdi-view-grid:before{content:"\f0570"}.mdi-view-grid-compact:before{content:"\f1c61"}.mdi-view-grid-outline:before{content:"\f11d9"}.mdi-view-grid-plus:before{content:"\f0f8d"}.mdi-view-grid-plus-outline:before{content:"\f11da"}.mdi-view-headline:before{content:"\f0571"}.mdi-view-list:before{content:"\f0572"}.mdi-view-list-outline:before{content:"\f148b"}.mdi-view-module:before{content:"\f0573"}.mdi-view-module-outline:before{content:"\f148c"}.mdi-view-parallel:before{content:"\f0728"}.mdi-view-parallel-outline:before{content:"\f148d"}.mdi-view-quilt:before{content:"\f0574"}.mdi-view-quilt-outline:before{content:"\f148e"}.mdi-view-sequential:before{content:"\f0729"}.mdi-view-sequential-outline:before{content:"\f148f"}.mdi-view-split-horizontal:before{content:"\f0bcb"}.mdi-view-split-vertical:before{content:"\f0bcc"}.mdi-view-stream:before{content:"\f0575"}.mdi-view-stream-outline:before{content:"\f1490"}.mdi-view-week:before{content:"\f0576"}.mdi-view-week-outline:before{content:"\f1491"}.mdi-vimeo:before{content:"\f0577"}.mdi-violin:before{content:"\f060f"}.mdi-virtual-reality:before{content:"\f0894"}.mdi-virus:before{content:"\f13b6"}.mdi-virus-off:before{content:"\f18e1"}.mdi-virus-off-outline:before{content:"\f18e2"}.mdi-virus-outline:before{content:"\f13b7"}.mdi-vlc:before{content:"\f057c"}.mdi-voicemail:before{content:"\f057d"}.mdi-volcano:before{content:"\f1a83"}.mdi-volcano-outline:before{content:"\f1a84"}.mdi-volleyball:before{content:"\f09b4"}.mdi-volume-equal:before{content:"\f1b10"}.mdi-volume-high:before{content:"\f057e"}.mdi-volume-low:before{content:"\f057f"}.mdi-volume-medium:before{content:"\f0580"}.mdi-volume-minus:before{content:"\f075e"}.mdi-volume-mute:before{content:"\f075f"}.mdi-volume-off:before{content:"\f0581"}.mdi-volume-plus:before{content:"\f075d"}.mdi-volume-source:before{content:"\f1120"}.mdi-volume-variant-off:before{content:"\f0e08"}.mdi-volume-vibrate:before{content:"\f1121"}.mdi-vote:before{content:"\f0a1f"}.mdi-vote-outline:before{content:"\f0a20"}.mdi-vpn:before{content:"\f0582"}.mdi-vuejs:before{content:"\f0844"}.mdi-vuetify:before{content:"\f0e6d"}.mdi-walk:before{content:"\f0583"}.mdi-wall:before{content:"\f07fe"}.mdi-wall-fire:before{content:"\f1a11"}.mdi-wall-sconce:before{content:"\f091c"}.mdi-wall-sconce-flat:before{content:"\f091d"}.mdi-wall-sconce-flat-outline:before{content:"\f17c9"}.mdi-wall-sconce-flat-variant:before{content:"\f041c"}.mdi-wall-sconce-flat-variant-outline:before{content:"\f17ca"}.mdi-wall-sconce-outline:before{content:"\f17cb"}.mdi-wall-sconce-round:before{content:"\f0748"}.mdi-wall-sconce-round-outline:before{content:"\f17cc"}.mdi-wall-sconce-round-variant:before{content:"\f091e"}.mdi-wall-sconce-round-variant-outline:before{content:"\f17cd"}.mdi-wallet:before{content:"\f0584"}.mdi-wallet-bifold:before{content:"\f1c58"}.mdi-wallet-bifold-outline:before{content:"\f1c59"}.mdi-wallet-giftcard:before{content:"\f0585"}.mdi-wallet-membership:before{content:"\f0586"}.mdi-wallet-outline:before{content:"\f0bdd"}.mdi-wallet-plus:before{content:"\f0f8e"}.mdi-wallet-plus-outline:before{content:"\f0f8f"}.mdi-wallet-travel:before{content:"\f0587"}.mdi-wallpaper:before{content:"\f0e09"}.mdi-wan:before{content:"\f0588"}.mdi-wardrobe:before{content:"\f0f90"}.mdi-wardrobe-outline:before{content:"\f0f91"}.mdi-warehouse:before{content:"\f0f81"}.mdi-washing-machine:before{content:"\f072a"}.mdi-washing-machine-alert:before{content:"\f11bc"}.mdi-washing-machine-off:before{content:"\f11bd"}.mdi-watch:before{content:"\f0589"}.mdi-watch-export:before{content:"\f058a"}.mdi-watch-export-variant:before{content:"\f0895"}.mdi-watch-import:before{content:"\f058b"}.mdi-watch-import-variant:before{content:"\f0896"}.mdi-watch-variant:before{content:"\f0897"}.mdi-watch-vibrate:before{content:"\f06b1"}.mdi-watch-vibrate-off:before{content:"\f0cda"}.mdi-water:before{content:"\f058c"}.mdi-water-alert:before{content:"\f1502"}.mdi-water-alert-outline:before{content:"\f1503"}.mdi-water-boiler:before{content:"\f0f92"}.mdi-water-boiler-alert:before{content:"\f11b3"}.mdi-water-boiler-auto:before{content:"\f1b98"}.mdi-water-boiler-off:before{content:"\f11b4"}.mdi-water-check:before{content:"\f1504"}.mdi-water-check-outline:before{content:"\f1505"}.mdi-water-circle:before{content:"\f1806"}.mdi-water-minus:before{content:"\f1506"}.mdi-water-minus-outline:before{content:"\f1507"}.mdi-water-off:before{content:"\f058d"}.mdi-water-off-outline:before{content:"\f1508"}.mdi-water-opacity:before{content:"\f1855"}.mdi-water-outline:before{content:"\f0e0a"}.mdi-water-percent:before{content:"\f058e"}.mdi-water-percent-alert:before{content:"\f1509"}.mdi-water-plus:before{content:"\f150a"}.mdi-water-plus-outline:before{content:"\f150b"}.mdi-water-polo:before{content:"\f12a0"}.mdi-water-pump:before{content:"\f058f"}.mdi-water-pump-off:before{content:"\f0f93"}.mdi-water-remove:before{content:"\f150c"}.mdi-water-remove-outline:before{content:"\f150d"}.mdi-water-sync:before{content:"\f17c6"}.mdi-water-thermometer:before{content:"\f1a85"}.mdi-water-thermometer-outline:before{content:"\f1a86"}.mdi-water-well:before{content:"\f106b"}.mdi-water-well-outline:before{content:"\f106c"}.mdi-waterfall:before{content:"\f1849"}.mdi-watering-can:before{content:"\f1481"}.mdi-watering-can-outline:before{content:"\f1482"}.mdi-watermark:before{content:"\f0612"}.mdi-wave:before{content:"\f0f2e"}.mdi-wave-arrow-down:before{content:"\f1cb0"}.mdi-wave-arrow-up:before{content:"\f1cb1"}.mdi-wave-undercurrent:before{content:"\f1cc0"}.mdi-waveform:before{content:"\f147d"}.mdi-waves:before{content:"\f078d"}.mdi-waves-arrow-left:before{content:"\f1859"}.mdi-waves-arrow-right:before{content:"\f185a"}.mdi-waves-arrow-up:before{content:"\f185b"}.mdi-waze:before{content:"\f0bde"}.mdi-weather-cloudy:before{content:"\f0590"}.mdi-weather-cloudy-alert:before{content:"\f0f2f"}.mdi-weather-cloudy-arrow-right:before{content:"\f0e6e"}.mdi-weather-cloudy-clock:before{content:"\f18f6"}.mdi-weather-dust:before{content:"\f1b5a"}.mdi-weather-fog:before{content:"\f0591"}.mdi-weather-hail:before{content:"\f0592"}.mdi-weather-hazy:before{content:"\f0f30"}.mdi-weather-hurricane:before{content:"\f0898"}.mdi-weather-hurricane-outline:before{content:"\f1c78"}.mdi-weather-lightning:before{content:"\f0593"}.mdi-weather-lightning-rainy:before{content:"\f067e"}.mdi-weather-moonset:before{content:"\f1d15"}.mdi-weather-moonset-down:before{content:"\f1d16"}.mdi-weather-moonset-up:before{content:"\f1d17"}.mdi-weather-night:before{content:"\f0594"}.mdi-weather-night-partly-cloudy:before{content:"\f0f31"}.mdi-weather-partly-cloudy:before{content:"\f0595"}.mdi-weather-partly-lightning:before{content:"\f0f32"}.mdi-weather-partly-rainy:before{content:"\f0f33"}.mdi-weather-partly-snowy:before{content:"\f0f34"}.mdi-weather-partly-snowy-rainy:before{content:"\f0f35"}.mdi-weather-pouring:before{content:"\f0596"}.mdi-weather-rainy:before{content:"\f0597"}.mdi-weather-snowy:before{content:"\f0598"}.mdi-weather-snowy-heavy:before{content:"\f0f36"}.mdi-weather-snowy-rainy:before{content:"\f067f"}.mdi-weather-sunny:before{content:"\f0599"}.mdi-weather-sunny-alert:before{content:"\f0f37"}.mdi-weather-sunny-off:before{content:"\f14e4"}.mdi-weather-sunset:before{content:"\f059a"}.mdi-weather-sunset-down:before{content:"\f059b"}.mdi-weather-sunset-up:before{content:"\f059c"}.mdi-weather-tornado:before{content:"\f0f38"}.mdi-weather-windy:before{content:"\f059d"}.mdi-weather-windy-variant:before{content:"\f059e"}.mdi-web:before{content:"\f059f"}.mdi-web-box:before{content:"\f0f94"}.mdi-web-cancel:before{content:"\f1790"}.mdi-web-check:before{content:"\f0789"}.mdi-web-clock:before{content:"\f124a"}.mdi-web-minus:before{content:"\f10a0"}.mdi-web-off:before{content:"\f0a8e"}.mdi-web-plus:before{content:"\f0033"}.mdi-web-refresh:before{content:"\f1791"}.mdi-web-remove:before{content:"\f0551"}.mdi-web-sync:before{content:"\f1792"}.mdi-webcam:before{content:"\f05a0"}.mdi-webcam-off:before{content:"\f1737"}.mdi-webhook:before{content:"\f062f"}.mdi-webpack:before{content:"\f072b"}.mdi-webrtc:before{content:"\f1248"}.mdi-wechat:before{content:"\f0611"}.mdi-weight:before{content:"\f05a1"}.mdi-weight-gram:before{content:"\f0d3f"}.mdi-weight-kilogram:before{content:"\f05a2"}.mdi-weight-lifter:before{content:"\f115d"}.mdi-weight-pound:before{content:"\f09b5"}.mdi-whatsapp:before{content:"\f05a3"}.mdi-wheel-barrow:before{content:"\f14f2"}.mdi-wheelchair:before{content:"\f1a87"}.mdi-wheelchair-accessibility:before{content:"\f05a4"}.mdi-whistle:before{content:"\f09b6"}.mdi-whistle-outline:before{content:"\f12bc"}.mdi-white-balance-auto:before{content:"\f05a5"}.mdi-white-balance-incandescent:before{content:"\f05a6"}.mdi-white-balance-iridescent:before{content:"\f05a7"}.mdi-white-balance-sunny:before{content:"\f05a8"}.mdi-widgets:before{content:"\f072c"}.mdi-widgets-outline:before{content:"\f1355"}.mdi-wifi:before{content:"\f05a9"}.mdi-wifi-alert:before{content:"\f16b5"}.mdi-wifi-arrow-down:before{content:"\f16b6"}.mdi-wifi-arrow-left:before{content:"\f16b7"}.mdi-wifi-arrow-left-right:before{content:"\f16b8"}.mdi-wifi-arrow-right:before{content:"\f16b9"}.mdi-wifi-arrow-up:before{content:"\f16ba"}.mdi-wifi-arrow-up-down:before{content:"\f16bb"}.mdi-wifi-cancel:before{content:"\f16bc"}.mdi-wifi-check:before{content:"\f16bd"}.mdi-wifi-cog:before{content:"\f16be"}.mdi-wifi-lock:before{content:"\f16bf"}.mdi-wifi-lock-open:before{content:"\f16c0"}.mdi-wifi-marker:before{content:"\f16c1"}.mdi-wifi-minus:before{content:"\f16c2"}.mdi-wifi-off:before{content:"\f05aa"}.mdi-wifi-plus:before{content:"\f16c3"}.mdi-wifi-refresh:before{content:"\f16c4"}.mdi-wifi-remove:before{content:"\f16c5"}.mdi-wifi-settings:before{content:"\f16c6"}.mdi-wifi-star:before{content:"\f0e0b"}.mdi-wifi-strength-1:before{content:"\f091f"}.mdi-wifi-strength-1-alert:before{content:"\f0920"}.mdi-wifi-strength-1-lock:before{content:"\f0921"}.mdi-wifi-strength-1-lock-open:before{content:"\f16cb"}.mdi-wifi-strength-2:before{content:"\f0922"}.mdi-wifi-strength-2-alert:before{content:"\f0923"}.mdi-wifi-strength-2-lock:before{content:"\f0924"}.mdi-wifi-strength-2-lock-open:before{content:"\f16cc"}.mdi-wifi-strength-3:before{content:"\f0925"}.mdi-wifi-strength-3-alert:before{content:"\f0926"}.mdi-wifi-strength-3-lock:before{content:"\f0927"}.mdi-wifi-strength-3-lock-open:before{content:"\f16cd"}.mdi-wifi-strength-4:before{content:"\f0928"}.mdi-wifi-strength-4-alert:before{content:"\f0929"}.mdi-wifi-strength-4-lock:before{content:"\f092a"}.mdi-wifi-strength-4-lock-open:before{content:"\f16ce"}.mdi-wifi-strength-alert-outline:before{content:"\f092b"}.mdi-wifi-strength-lock-open-outline:before{content:"\f16cf"}.mdi-wifi-strength-lock-outline:before{content:"\f092c"}.mdi-wifi-strength-off:before{content:"\f092d"}.mdi-wifi-strength-off-outline:before{content:"\f092e"}.mdi-wifi-strength-outline:before{content:"\f092f"}.mdi-wifi-sync:before{content:"\f16c7"}.mdi-wikipedia:before{content:"\f05ac"}.mdi-wind-power:before{content:"\f1a88"}.mdi-wind-power-outline:before{content:"\f1a89"}.mdi-wind-turbine:before{content:"\f0da5"}.mdi-wind-turbine-alert:before{content:"\f19ab"}.mdi-wind-turbine-check:before{content:"\f19ac"}.mdi-window-close:before{content:"\f05ad"}.mdi-window-closed:before{content:"\f05ae"}.mdi-window-closed-variant:before{content:"\f11db"}.mdi-window-maximize:before{content:"\f05af"}.mdi-window-minimize:before{content:"\f05b0"}.mdi-window-open:before{content:"\f05b1"}.mdi-window-open-variant:before{content:"\f11dc"}.mdi-window-restore:before{content:"\f05b2"}.mdi-window-shutter:before{content:"\f111c"}.mdi-window-shutter-alert:before{content:"\f111d"}.mdi-window-shutter-auto:before{content:"\f1ba3"}.mdi-window-shutter-cog:before{content:"\f1a8a"}.mdi-window-shutter-open:before{content:"\f111e"}.mdi-window-shutter-settings:before{content:"\f1a8b"}.mdi-windsock:before{content:"\f15fa"}.mdi-wiper:before{content:"\f0ae9"}.mdi-wiper-wash:before{content:"\f0da6"}.mdi-wiper-wash-alert:before{content:"\f18df"}.mdi-wizard-hat:before{content:"\f1477"}.mdi-wordpress:before{content:"\f05b4"}.mdi-wrap:before{content:"\f05b6"}.mdi-wrap-disabled:before{content:"\f0bdf"}.mdi-wrench:before{content:"\f05b7"}.mdi-wrench-check:before{content:"\f1b8f"}.mdi-wrench-check-outline:before{content:"\f1b90"}.mdi-wrench-clock:before{content:"\f19a3"}.mdi-wrench-clock-outline:before{content:"\f1b93"}.mdi-wrench-cog:before{content:"\f1b91"}.mdi-wrench-cog-outline:before{content:"\f1b92"}.mdi-wrench-outline:before{content:"\f0be0"}.mdi-xamarin:before{content:"\f0845"}.mdi-xml:before{content:"\f05c0"}.mdi-xmpp:before{content:"\f07ff"}.mdi-yahoo:before{content:"\f0b4f"}.mdi-yeast:before{content:"\f05c1"}.mdi-yin-yang:before{content:"\f0680"}.mdi-yoga:before{content:"\f117c"}.mdi-youtube:before{content:"\f05c3"}.mdi-youtube-gaming:before{content:"\f0848"}.mdi-youtube-studio:before{content:"\f0847"}.mdi-youtube-subscription:before{content:"\f0d40"}.mdi-youtube-tv:before{content:"\f0448"}.mdi-yurt:before{content:"\f1516"}.mdi-z-wave:before{content:"\f0aea"}.mdi-zend:before{content:"\f0aeb"}.mdi-zigbee:before{content:"\f0d41"}.mdi-zip-box:before{content:"\f05c4"}.mdi-zip-box-outline:before{content:"\f0ffa"}.mdi-zip-disk:before{content:"\f0a23"}.mdi-zodiac-aquarius:before{content:"\f0a7d"}.mdi-zodiac-aries:before{content:"\f0a7e"}.mdi-zodiac-cancer:before{content:"\f0a7f"}.mdi-zodiac-capricorn:before{content:"\f0a80"}.mdi-zodiac-gemini:before{content:"\f0a81"}.mdi-zodiac-leo:before{content:"\f0a82"}.mdi-zodiac-libra:before{content:"\f0a83"}.mdi-zodiac-pisces:before{content:"\f0a84"}.mdi-zodiac-sagittarius:before{content:"\f0a85"}.mdi-zodiac-scorpio:before{content:"\f0a86"}.mdi-zodiac-taurus:before{content:"\f0a87"}.mdi-zodiac-virgo:before{content:"\f0a88"}.mdi-blank:before{content:"\f68c";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 #e6e6e6,-1px 0 #e6e6e6,0 1px #e6e6e6,0 -1px #e6e6e6,0 3px 13px #00000014}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:#000000e6;fill:#000000e6;height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:#000000e6;fill:#000000e6}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:#0000001a}.numInputWrapper span:active{background:#0003}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:#00000080}.numInputWrapper:hover{background:#0000000d}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:#0000000d}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\fffd;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:#000000e6}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:#000000e6}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:#00000080;background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:#0000000d}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:#0000008a;line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:#3939394d;background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:#3939391a}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 #569ff7,5px 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:#3939394d;background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url('data:image/svg+xml;utf8, ');background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:0;left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:0;right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,top;cursor:move}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack>.grid-stack-item[gs-x="0"]{left:0}.gs-12>.grid-stack-item{width:8.333%}.gs-12>.grid-stack-item[gs-x="1"]{left:8.333%}.gs-12>.grid-stack-item[gs-w="2"]{width:16.667%}.gs-12>.grid-stack-item[gs-x="2"]{left:16.667%}.gs-12>.grid-stack-item[gs-w="3"]{width:25%}.gs-12>.grid-stack-item[gs-x="3"]{left:25%}.gs-12>.grid-stack-item[gs-w="4"]{width:33.333%}.gs-12>.grid-stack-item[gs-x="4"]{left:33.333%}.gs-12>.grid-stack-item[gs-w="5"]{width:41.667%}.gs-12>.grid-stack-item[gs-x="5"]{left:41.667%}.gs-12>.grid-stack-item[gs-w="6"]{width:50%}.gs-12>.grid-stack-item[gs-x="6"]{left:50%}.gs-12>.grid-stack-item[gs-w="7"]{width:58.333%}.gs-12>.grid-stack-item[gs-x="7"]{left:58.333%}.gs-12>.grid-stack-item[gs-w="8"]{width:66.667%}.gs-12>.grid-stack-item[gs-x="8"]{left:66.667%}.gs-12>.grid-stack-item[gs-w="9"]{width:75%}.gs-12>.grid-stack-item[gs-x="9"]{left:75%}.gs-12>.grid-stack-item[gs-w="10"]{width:83.333%}.gs-12>.grid-stack-item[gs-x="10"]{left:83.333%}.gs-12>.grid-stack-item[gs-w="11"]{width:91.667%}.gs-12>.grid-stack-item[gs-x="11"]{left:91.667%}.gs-12>.grid-stack-item[gs-w="12"]{width:100%}.gs-1>.grid-stack-item{width:100%}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url("./Inter-Thin-TCINWRKS.woff2?v=3.18") format("woff2"),url("./Inter-Thin-MEKOZMGA.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:100;font-display:swap;src:url("./Inter-ThinItalic-WRULPH3M.woff2?v=3.18") format("woff2"),url("./Inter-ThinItalic-ZFOL6JFL.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url("./Inter-ExtraLight-DVW3SATI.woff2?v=3.18") format("woff2"),url("./Inter-ExtraLight-A7NHN7KT.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:200;font-display:swap;src:url("./Inter-ExtraLightItalic-KXZYPKOE.woff2?v=3.18") format("woff2"),url("./Inter-ExtraLightItalic-SKGXKLLA.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url("./Inter-Light-XBRUIIRZ.woff2?v=3.18") format("woff2"),url("./Inter-Light-ARG5Y6MT.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:300;font-display:swap;src:url("./Inter-LightItalic-4OWY6V5R.woff2?v=3.18") format("woff2"),url("./Inter-LightItalic-WFS25IQZ.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url("./Inter-Regular-373XMOLM.woff2?v=3.18") format("woff2"),url("./Inter-Regular-DR3VC6YG.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:400;font-display:swap;src:url("./Inter-Italic-RW2ZALTO.woff2?v=3.18") format("woff2"),url("./Inter-Italic-GHDVOOKA.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url("./Inter-Medium-JV63DMR7.woff2?v=3.18") format("woff2"),url("./Inter-Medium-KH2CGZVE.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:500;font-display:swap;src:url("./Inter-MediumItalic-P7H6BBYU.woff2?v=3.18") format("woff2"),url("./Inter-MediumItalic-PO2E4FIG.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url("./Inter-SemiBold-UMRILHOG.woff2?v=3.18") format("woff2"),url("./Inter-SemiBold-TJ6HPMMH.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:600;font-display:swap;src:url("./Inter-SemiBoldItalic-ABO2DCC7.woff2?v=3.18") format("woff2"),url("./Inter-SemiBoldItalic-DM4JJSFU.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url("./Inter-Bold-6AVOS7AV.woff2?v=3.18") format("woff2"),url("./Inter-Bold-RTIBL5DO.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:700;font-display:swap;src:url("./Inter-BoldItalic-AID2XGS3.woff2?v=3.18") format("woff2"),url("./Inter-BoldItalic-UU7SOVRI.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url("./Inter-ExtraBold-VAPCTO5F.woff2?v=3.18") format("woff2"),url("./Inter-ExtraBold-B5RSZK6R.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:800;font-display:swap;src:url("./Inter-ExtraBoldItalic-W26CJYY7.woff2?v=3.18") format("woff2"),url("./Inter-ExtraBoldItalic-R7DLWYIK.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url("./Inter-Black-NU3KAVPI.woff2?v=3.18") format("woff2"),url("./Inter-Black-7VL4YR6G.woff?v=3.18") format("woff")}@font-face{font-family:Inter;font-style:italic;font-weight:900;font-display:swap;src:url("./Inter-BlackItalic-4BVAVUVI.woff2?v=3.18") format("woff2"),url("./Inter-BlackItalic-HJLUEYVW.woff?v=3.18") format("woff")}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url("./Inter-roman.var-EDENVCUS.woff2?v=3.18") format("woff2")}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url("./Inter-italic.var-7LS4VCXC.woff2?v=3.18") format("woff2")}@font-face{font-family:Inter var experimental;font-weight:100 900;font-display:swap;font-style:oblique 0deg 10deg;src:url("./Inter.var-FTIQFLGO.woff2?v=3.18") format("woff2")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:100;src:local("Roboto Mono Thin "),local("Roboto Mono-Thin"),url("./roboto-mono-latin-100-JQJ4Z5FD.woff2") format("woff2"),url("./roboto-mono-latin-100-SMKVIC22.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:100;src:local("Roboto Mono Thin italic"),local("Roboto Mono-Thinitalic"),url("./roboto-mono-latin-100italic-SF7I3UQS.woff2") format("woff2"),url("./roboto-mono-latin-100italic-DARDHGP2.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:200;src:local("Roboto Mono Extra Light "),local("Roboto Mono-Extra Light"),url("./roboto-mono-latin-200-GAB3DPCB.woff2") format("woff2"),url("./roboto-mono-latin-200-GNXGWAU7.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:200;src:local("Roboto Mono Extra Light italic"),local("Roboto Mono-Extra Lightitalic"),url("./roboto-mono-latin-200italic-YC3AN6RQ.woff2") format("woff2"),url("./roboto-mono-latin-200italic-MBEOZD5A.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:300;src:local("Roboto Mono Light "),local("Roboto Mono-Light"),url("./roboto-mono-latin-300-76QG53G7.woff2") format("woff2"),url("./roboto-mono-latin-300-KB4HCXJB.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:300;src:local("Roboto Mono Light italic"),local("Roboto Mono-Lightitalic"),url("./roboto-mono-latin-300italic-ATWQWJG4.woff2") format("woff2"),url("./roboto-mono-latin-300italic-UCTTXECO.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:local("Roboto Mono Regular "),local("Roboto Mono-Regular"),url("./roboto-mono-latin-400-OKRWGZOX.woff2") format("woff2"),url("./roboto-mono-latin-400-L25YYWY3.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:400;src:local("Roboto Mono Regular italic"),local("Roboto Mono-Regularitalic"),url("./roboto-mono-latin-400italic-UPQRVZWX.woff2") format("woff2"),url("./roboto-mono-latin-400italic-3G7XMJ7A.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:500;src:local("Roboto Mono Medium "),local("Roboto Mono-Medium"),url("./roboto-mono-latin-500-67YXJMLO.woff2") format("woff2"),url("./roboto-mono-latin-500-4ZB2P7GK.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:500;src:local("Roboto Mono Medium italic"),local("Roboto Mono-Mediumitalic"),url("./roboto-mono-latin-500italic-U7WRIR22.woff2") format("woff2"),url("./roboto-mono-latin-500italic-RXGCSZS4.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:600;src:local("Roboto Mono SemiBold "),local("Roboto Mono-SemiBold"),url("./roboto-mono-latin-600-ZRZYGQNG.woff2") format("woff2"),url("./roboto-mono-latin-600-USMEYMTS.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:600;src:local("Roboto Mono SemiBold italic"),local("Roboto Mono-SemiBolditalic"),url("./roboto-mono-latin-600italic-THUILB76.woff2") format("woff2"),url("./roboto-mono-latin-600italic-TLIW3M4P.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:700;src:local("Roboto Mono Bold "),local("Roboto Mono-Bold"),url("./roboto-mono-latin-700-QNNSSZIK.woff2") format("woff2"),url("./roboto-mono-latin-700-PEQVO3WV.woff") format("woff")}@font-face{font-family:Roboto Mono;font-style:italic;font-display:swap;font-weight:700;src:local("Roboto Mono Bold italic"),local("Roboto Mono-Bolditalic"),url("./roboto-mono-latin-700italic-WWLRMKIN.woff2") format("woff2"),url("./roboto-mono-latin-700italic-KTWD2UYU.woff") format("woff")}
diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css
index cd66ffa0f..cee6eda68 100644
--- a/netbox/project-static/dist/netbox.css
+++ b/netbox/project-static/dist/netbox.css
@@ -1 +1 @@
-@charset "UTF-8";:root,[data-bs-theme=light]{--tblr-black: #000000;--tblr-white: #ffffff;--tblr-gray: #49566c;--tblr-gray-dark: #182433;--tblr-gray-100: #eef3f6;--tblr-gray-200: #dce1e7;--tblr-gray-300: #b8c4d4;--tblr-gray-400: #8a97ab;--tblr-gray-500: #6c7a91;--tblr-gray-600: #49566c;--tblr-gray-700: #3a4859;--tblr-gray-800: #182433;--tblr-gray-900: #040a11;--tblr-primary: #00857D;--tblr-secondary: #6c7a91;--tblr-success: #2fb344;--tblr-info: #4299e1;--tblr-warning: #f76707;--tblr-danger: #d63939;--tblr-light: #f6f8fb;--tblr-dark: #182433;--tblr-muted: #6c7a91;--tblr-blue: #066fd1;--tblr-azure: #4299e1;--tblr-indigo: #4263eb;--tblr-purple: #ae3ec9;--tblr-pink: #d6336c;--tblr-red: #d63939;--tblr-orange: #f76707;--tblr-yellow: #f59f00;--tblr-lime: #74b816;--tblr-green: #2fb344;--tblr-teal: #0ca678;--tblr-cyan: #17a2b8;--tblr-x: #000000;--tblr-facebook: #1877f2;--tblr-twitter: #1da1f2;--tblr-linkedin: #0a66c2;--tblr-google: #dc4e41;--tblr-youtube: #ff0000;--tblr-vimeo: #1ab7ea;--tblr-dribbble: #ea4c89;--tblr-github: #181717;--tblr-instagram: #e4405f;--tblr-pinterest: #bd081c;--tblr-vk: #6383a8;--tblr-rss: #ffa500;--tblr-flickr: #0063dc;--tblr-bitbucket: #0052cc;--tblr-tabler: #066fd1;--tblr-primary-rgb: 0, 133, 125;--tblr-secondary-rgb: 108, 122, 145;--tblr-success-rgb: 47, 179, 68;--tblr-info-rgb: 66, 153, 225;--tblr-warning-rgb: 247, 103, 7;--tblr-danger-rgb: 214, 57, 57;--tblr-light-rgb: 246, 248, 251;--tblr-dark-rgb: 24, 36, 51;--tblr-muted-rgb: 108, 122, 145;--tblr-blue-rgb: 6, 111, 209;--tblr-azure-rgb: 66, 153, 225;--tblr-indigo-rgb: 66, 99, 235;--tblr-purple-rgb: 174, 62, 201;--tblr-pink-rgb: 214, 51, 108;--tblr-red-rgb: 214, 57, 57;--tblr-orange-rgb: 247, 103, 7;--tblr-yellow-rgb: 245, 159, 0;--tblr-lime-rgb: 116, 184, 22;--tblr-green-rgb: 47, 179, 68;--tblr-teal-rgb: 12, 166, 120;--tblr-cyan-rgb: 23, 162, 184;--tblr-x-rgb: 0, 0, 0;--tblr-facebook-rgb: 24, 119, 242;--tblr-twitter-rgb: 29, 161, 242;--tblr-linkedin-rgb: 10, 102, 194;--tblr-google-rgb: 220, 78, 65;--tblr-youtube-rgb: 255, 0, 0;--tblr-vimeo-rgb: 26, 183, 234;--tblr-dribbble-rgb: 234, 76, 137;--tblr-github-rgb: 24, 23, 23;--tblr-instagram-rgb: 228, 64, 95;--tblr-pinterest-rgb: 189, 8, 28;--tblr-vk-rgb: 99, 131, 168;--tblr-rss-rgb: 255, 165, 0;--tblr-flickr-rgb: 0, 99, 220;--tblr-bitbucket-rgb: 0, 82, 204;--tblr-tabler-rgb: 6, 111, 209;--tblr-primary-text-emphasis: #003532;--tblr-secondary-text-emphasis: #2b313a;--tblr-success-text-emphasis: #13481b;--tblr-info-text-emphasis: #1a3d5a;--tblr-warning-text-emphasis: #632903;--tblr-danger-text-emphasis: #561717;--tblr-light-text-emphasis: #3a4859;--tblr-dark-text-emphasis: #3a4859;--tblr-primary-bg-subtle: #cce7e5;--tblr-secondary-bg-subtle: #e2e4e9;--tblr-success-bg-subtle: #d5f0da;--tblr-info-bg-subtle: #d9ebf9;--tblr-warning-bg-subtle: #fde1cd;--tblr-danger-bg-subtle: #f7d7d7;--tblr-light-bg-subtle: #f7f9fb;--tblr-dark-bg-subtle: #8a97ab;--tblr-primary-border-subtle: #99cecb;--tblr-secondary-border-subtle: #c4cad3;--tblr-success-border-subtle: #ace1b4;--tblr-info-border-subtle: #b3d6f3;--tblr-warning-border-subtle: #fcc29c;--tblr-danger-border-subtle: #efb0b0;--tblr-light-border-subtle: #dce1e7;--tblr-dark-border-subtle: #6c7a91;--tblr-white-rgb: 255, 255, 255;--tblr-black-rgb: 0, 0, 0;--tblr-font-sans-serif: "Inter", system-ui, sans-serif;--tblr-font-monospace: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--tblr-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--tblr-body-font-family: var(--tblr-font-sans-serif);--tblr-body-font-size: .875rem;--tblr-body-font-weight: 400;--tblr-body-line-height: 1.4285714286;--tblr-body-color: #182433;--tblr-body-color-rgb: 24, 36, 51;--tblr-body-bg: #f6f8fb;--tblr-body-bg-rgb: 246, 248, 251;--tblr-emphasis-color: #3a4859;--tblr-emphasis-color-rgb: 58, 72, 89;--tblr-secondary-color: rgba(24, 36, 51, .75);--tblr-secondary-color-rgb: 24, 36, 51;--tblr-secondary-bg: #dce1e7;--tblr-secondary-bg-rgb: 220, 225, 231;--tblr-tertiary-color: rgba(24, 36, 51, .5);--tblr-tertiary-color-rgb: 24, 36, 51;--tblr-tertiary-bg: #eef3f6;--tblr-tertiary-bg-rgb: 238, 243, 246;--tblr-heading-color: inherit;--tblr-link-color: #00857D;--tblr-link-color-rgb: 0, 133, 125;--tblr-link-decoration: none;--tblr-link-hover-color: #006a64;--tblr-link-hover-color-rgb: 0, 106, 100;--tblr-link-hover-decoration: underline;--tblr-code-color: var(--tblr-gray-600);--tblr-highlight-color: #182433;--tblr-highlight-bg: #fdeccc;--tblr-border-width: 1px;--tblr-border-style: solid;--tblr-border-color: #dce1e7;--tblr-border-color-translucent: rgba(4, 32, 69, .1);--tblr-border-radius: 4px;--tblr-border-radius-sm: 2px;--tblr-border-radius-lg: 8px;--tblr-border-radius-xl: 1rem;--tblr-border-radius-xxl: 2rem;--tblr-border-radius-2xl: var(--tblr-border-radius-xxl);--tblr-border-radius-pill: 100rem;--tblr-box-shadow: rgba(var(--tblr-body-color-rgb), .04) 0 2px 4px 0;--tblr-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);--tblr-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);--tblr-box-shadow-inset: 0 0 transparent;--tblr-focus-ring-width: .25rem;--tblr-focus-ring-opacity: .25;--tblr-focus-ring-color: rgba(var(--tblr-primary-rgb), .25);--tblr-form-valid-color: #2fb344;--tblr-form-valid-border-color: #2fb344;--tblr-form-invalid-color: #d63939;--tblr-form-invalid-border-color: #d63939}[data-bs-theme=dark],body[data-bs-theme=dark] [data-bs-theme=light]{color-scheme:dark;--tblr-body-color: #dce1e7;--tblr-body-color-rgb: 220, 225, 231;--tblr-body-bg: #040a11;--tblr-body-bg-rgb: 4, 10, 17;--tblr-emphasis-color: #ffffff;--tblr-emphasis-color-rgb: 255, 255, 255;--tblr-secondary-color: rgba(220, 225, 231, .75);--tblr-secondary-color-rgb: 220, 225, 231;--tblr-secondary-bg: #182433;--tblr-secondary-bg-rgb: 24, 36, 51;--tblr-tertiary-color: rgba(220, 225, 231, .5);--tblr-tertiary-color-rgb: 220, 225, 231;--tblr-tertiary-bg: #0e1722;--tblr-tertiary-bg-rgb: 14, 23, 34;--tblr-primary-text-emphasis: #66b6b1;--tblr-secondary-text-emphasis: #a7afbd;--tblr-success-text-emphasis: #82d18f;--tblr-info-text-emphasis: #8ec2ed;--tblr-warning-text-emphasis: #faa46a;--tblr-danger-text-emphasis: #e68888;--tblr-light-text-emphasis: #eef3f6;--tblr-dark-text-emphasis: #b8c4d4;--tblr-primary-bg-subtle: #001b19;--tblr-secondary-bg-subtle: #16181d;--tblr-success-bg-subtle: #09240e;--tblr-info-bg-subtle: #0d1f2d;--tblr-warning-bg-subtle: #311501;--tblr-danger-bg-subtle: #2b0b0b;--tblr-light-bg-subtle: #182433;--tblr-dark-bg-subtle: #0c121a;--tblr-primary-border-subtle: #00504b;--tblr-secondary-border-subtle: #414957;--tblr-success-border-subtle: #1c6b29;--tblr-info-border-subtle: #285c87;--tblr-warning-border-subtle: #943e04;--tblr-danger-border-subtle: #802222;--tblr-light-border-subtle: #3a4859;--tblr-dark-border-subtle: #182433;--tblr-heading-color: inherit;--tblr-link-color: #66b6b1;--tblr-link-hover-color: #85c5c1;--tblr-link-color-rgb: 102, 182, 177;--tblr-link-hover-color-rgb: 133, 197, 193;--tblr-code-color: var(--tblr-gray-300);--tblr-highlight-color: #dce1e7;--tblr-highlight-bg: #624000;--tblr-border-color: #25384f;--tblr-border-color-translucent: rgba(72, 110, 149, .14);--tblr-form-valid-color: #82d18f;--tblr-form-valid-border-color: #82d18f;--tblr-form-invalid-color: #e68888;--tblr-form-invalid-border-color: #e68888}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--tblr-body-font-family);font-size:var(--tblr-body-font-size);font-weight:var(--tblr-body-font-weight);line-height:var(--tblr-body-line-height);color:var(--tblr-body-color);text-align:var(--tblr-body-text-align);background-color:var(--tblr-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr,.hr{margin:2rem 0;color:inherit;border:0;border-top:var(--tblr-border-width) solid;opacity:.16}h6,.h6,h5,.h5,h4,.h4,h3,.field-group h2,.field-group .h2,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:var(--tblr-spacer);font-weight:var(--tblr-font-weight-bold);line-height:1.2;color:var(--tblr-heading-color)}h1,.h1{font-size:1.5rem}h2,.h2{font-size:1.25rem}h3,.field-group h2,.field-group .h2,.h3{font-size:1rem}h4,.h4{font-size:.875rem}h5,.h5{font-size:.75rem}h6,.h6{font-size:.625rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:600}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:85.714285%}mark,.mark{padding:.1875em;color:var(--tblr-highlight-color);background-color:var(--tblr-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--tblr-link-color-rgb),var(--tblr-link-opacity, 1));text-decoration:none}a:hover{--tblr-link-color-rgb: var(--tblr-link-hover-color-rgb);text-decoration:underline}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--tblr-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:85.714285%;color:var(--tblr-light)}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:85.714285%;color:var(--tblr-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.25rem .5rem;font-size:var(--tblr-font-size-h5);color:var(--tblr-text-secondary-dark);background-color:var(--tblr-code-bg);border-radius:2px}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--tblr-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:.875rem;font-weight:var(--tblr-font-weight-normal)}.display-1{font-size:5rem;font-weight:300;line-height:1.2}.display-2{font-size:4.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}.display-5{font-size:3rem;font-weight:300;line-height:1.2}.display-6{font-size:2rem;font-weight:300;line-height:1.2}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:85.714285%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:.875rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:85.714285%;color:#49566c}.blockquote-footer:before{content:"\2014\a0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--tblr-body-bg);border:var(--tblr-border-width) solid var(--tblr-border-color);border-radius:var(--tblr-border-radius);box-shadow:var(--tblr-box-shadow-sm);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:85.714285%;color:var(--tblr-secondary-color)}.container,.container-fluid,.container-xxl,.container-xl,.container-lg,.container-md,.container-sm{--tblr-gutter-x: calc(var(--tblr-page-padding) * 2);--tblr-gutter-y: 0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width: 576px){.container-sm,.container{max-width:540px}}@media (min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media (min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media (min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}@media (min-width: 1400px){.container-xxl,.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1320px}}:root{--tblr-breakpoint-xs: 0;--tblr-breakpoint-sm: 576px;--tblr-breakpoint-md: 768px;--tblr-breakpoint-lg: 992px;--tblr-breakpoint-xl: 1200px;--tblr-breakpoint-xxl: 1400px}.row{--tblr-gutter-x: var(--tblr-page-padding);--tblr-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--tblr-gutter-y));margin-right:calc(-.5 * var(--tblr-gutter-x));margin-left:calc(-.5 * var(--tblr-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-top:var(--tblr-gutter-y)}.grid{display:grid;grid-template-rows:repeat(var(--tblr-rows, 1),1fr);grid-template-columns:repeat(var(--tblr-columns, 12),1fr);gap:var(--tblr-gap, var(--tblr-page-padding))}.grid .g-col-1{grid-column:auto/span 1}.grid .g-col-2{grid-column:auto/span 2}.grid .g-col-3{grid-column:auto/span 3}.grid .g-col-4{grid-column:auto/span 4}.grid .g-col-5{grid-column:auto/span 5}.grid .g-col-6{grid-column:auto/span 6}.grid .g-col-7{grid-column:auto/span 7}.grid .g-col-8{grid-column:auto/span 8}.grid .g-col-9{grid-column:auto/span 9}.grid .g-col-10{grid-column:auto/span 10}.grid .g-col-11{grid-column:auto/span 11}.grid .g-col-12{grid-column:auto/span 12}.grid .g-start-1{grid-column-start:1}.grid .g-start-2{grid-column-start:2}.grid .g-start-3{grid-column-start:3}.grid .g-start-4{grid-column-start:4}.grid .g-start-5{grid-column-start:5}.grid .g-start-6{grid-column-start:6}.grid .g-start-7{grid-column-start:7}.grid .g-start-8{grid-column-start:8}.grid .g-start-9{grid-column-start:9}.grid .g-start-10{grid-column-start:10}.grid .g-start-11{grid-column-start:11}@media (min-width: 576px){.grid .g-col-sm-1{grid-column:auto/span 1}.grid .g-col-sm-2{grid-column:auto/span 2}.grid .g-col-sm-3{grid-column:auto/span 3}.grid .g-col-sm-4{grid-column:auto/span 4}.grid .g-col-sm-5{grid-column:auto/span 5}.grid .g-col-sm-6{grid-column:auto/span 6}.grid .g-col-sm-7{grid-column:auto/span 7}.grid .g-col-sm-8{grid-column:auto/span 8}.grid .g-col-sm-9{grid-column:auto/span 9}.grid .g-col-sm-10{grid-column:auto/span 10}.grid .g-col-sm-11{grid-column:auto/span 11}.grid .g-col-sm-12{grid-column:auto/span 12}.grid .g-start-sm-1{grid-column-start:1}.grid .g-start-sm-2{grid-column-start:2}.grid .g-start-sm-3{grid-column-start:3}.grid .g-start-sm-4{grid-column-start:4}.grid .g-start-sm-5{grid-column-start:5}.grid .g-start-sm-6{grid-column-start:6}.grid .g-start-sm-7{grid-column-start:7}.grid .g-start-sm-8{grid-column-start:8}.grid .g-start-sm-9{grid-column-start:9}.grid .g-start-sm-10{grid-column-start:10}.grid .g-start-sm-11{grid-column-start:11}}@media (min-width: 768px){.grid .g-col-md-1{grid-column:auto/span 1}.grid .g-col-md-2{grid-column:auto/span 2}.grid .g-col-md-3{grid-column:auto/span 3}.grid .g-col-md-4{grid-column:auto/span 4}.grid .g-col-md-5{grid-column:auto/span 5}.grid .g-col-md-6{grid-column:auto/span 6}.grid .g-col-md-7{grid-column:auto/span 7}.grid .g-col-md-8{grid-column:auto/span 8}.grid .g-col-md-9{grid-column:auto/span 9}.grid .g-col-md-10{grid-column:auto/span 10}.grid .g-col-md-11{grid-column:auto/span 11}.grid .g-col-md-12{grid-column:auto/span 12}.grid .g-start-md-1{grid-column-start:1}.grid .g-start-md-2{grid-column-start:2}.grid .g-start-md-3{grid-column-start:3}.grid .g-start-md-4{grid-column-start:4}.grid .g-start-md-5{grid-column-start:5}.grid .g-start-md-6{grid-column-start:6}.grid .g-start-md-7{grid-column-start:7}.grid .g-start-md-8{grid-column-start:8}.grid .g-start-md-9{grid-column-start:9}.grid .g-start-md-10{grid-column-start:10}.grid .g-start-md-11{grid-column-start:11}}@media (min-width: 992px){.grid .g-col-lg-1{grid-column:auto/span 1}.grid .g-col-lg-2{grid-column:auto/span 2}.grid .g-col-lg-3{grid-column:auto/span 3}.grid .g-col-lg-4{grid-column:auto/span 4}.grid .g-col-lg-5{grid-column:auto/span 5}.grid .g-col-lg-6{grid-column:auto/span 6}.grid .g-col-lg-7{grid-column:auto/span 7}.grid .g-col-lg-8{grid-column:auto/span 8}.grid .g-col-lg-9{grid-column:auto/span 9}.grid .g-col-lg-10{grid-column:auto/span 10}.grid .g-col-lg-11{grid-column:auto/span 11}.grid .g-col-lg-12{grid-column:auto/span 12}.grid .g-start-lg-1{grid-column-start:1}.grid .g-start-lg-2{grid-column-start:2}.grid .g-start-lg-3{grid-column-start:3}.grid .g-start-lg-4{grid-column-start:4}.grid .g-start-lg-5{grid-column-start:5}.grid .g-start-lg-6{grid-column-start:6}.grid .g-start-lg-7{grid-column-start:7}.grid .g-start-lg-8{grid-column-start:8}.grid .g-start-lg-9{grid-column-start:9}.grid .g-start-lg-10{grid-column-start:10}.grid .g-start-lg-11{grid-column-start:11}}@media (min-width: 1200px){.grid .g-col-xl-1{grid-column:auto/span 1}.grid .g-col-xl-2{grid-column:auto/span 2}.grid .g-col-xl-3{grid-column:auto/span 3}.grid .g-col-xl-4{grid-column:auto/span 4}.grid .g-col-xl-5{grid-column:auto/span 5}.grid .g-col-xl-6{grid-column:auto/span 6}.grid .g-col-xl-7{grid-column:auto/span 7}.grid .g-col-xl-8{grid-column:auto/span 8}.grid .g-col-xl-9{grid-column:auto/span 9}.grid .g-col-xl-10{grid-column:auto/span 10}.grid .g-col-xl-11{grid-column:auto/span 11}.grid .g-col-xl-12{grid-column:auto/span 12}.grid .g-start-xl-1{grid-column-start:1}.grid .g-start-xl-2{grid-column-start:2}.grid .g-start-xl-3{grid-column-start:3}.grid .g-start-xl-4{grid-column-start:4}.grid .g-start-xl-5{grid-column-start:5}.grid .g-start-xl-6{grid-column-start:6}.grid .g-start-xl-7{grid-column-start:7}.grid .g-start-xl-8{grid-column-start:8}.grid .g-start-xl-9{grid-column-start:9}.grid .g-start-xl-10{grid-column-start:10}.grid .g-start-xl-11{grid-column-start:11}}@media (min-width: 1400px){.grid .g-col-xxl-1{grid-column:auto/span 1}.grid .g-col-xxl-2{grid-column:auto/span 2}.grid .g-col-xxl-3{grid-column:auto/span 3}.grid .g-col-xxl-4{grid-column:auto/span 4}.grid .g-col-xxl-5{grid-column:auto/span 5}.grid .g-col-xxl-6{grid-column:auto/span 6}.grid .g-col-xxl-7{grid-column:auto/span 7}.grid .g-col-xxl-8{grid-column:auto/span 8}.grid .g-col-xxl-9{grid-column:auto/span 9}.grid .g-col-xxl-10{grid-column:auto/span 10}.grid .g-col-xxl-11{grid-column:auto/span 11}.grid .g-col-xxl-12{grid-column:auto/span 12}.grid .g-start-xxl-1{grid-column-start:1}.grid .g-start-xxl-2{grid-column-start:2}.grid .g-start-xxl-3{grid-column-start:3}.grid .g-start-xxl-4{grid-column-start:4}.grid .g-start-xxl-5{grid-column-start:5}.grid .g-start-xxl-6{grid-column-start:6}.grid .g-start-xxl-7{grid-column-start:7}.grid .g-start-xxl-8{grid-column-start:8}.grid .g-start-xxl-9{grid-column-start:9}.grid .g-start-xxl-10{grid-column-start:10}.grid .g-start-xxl-11{grid-column-start:11}}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--tblr-gutter-x: 0}.g-0,.gy-0{--tblr-gutter-y: 0}.g-1,.gx-1{--tblr-gutter-x: .25rem}.g-1,.gy-1{--tblr-gutter-y: .25rem}.g-2,.gx-2{--tblr-gutter-x: .5rem}.g-2,.gy-2{--tblr-gutter-y: .5rem}.g-3,.gx-3{--tblr-gutter-x: 1rem}.g-3,.gy-3{--tblr-gutter-y: 1rem}.g-4,.gx-4{--tblr-gutter-x: 1.5rem}.g-4,.gy-4{--tblr-gutter-y: 1.5rem}.g-5,.gx-5{--tblr-gutter-x: 2rem}.g-5,.gy-5{--tblr-gutter-y: 2rem}.g-6,.gx-6{--tblr-gutter-x: 3rem}.g-6,.gy-6{--tblr-gutter-y: 3rem}.g-7,.gx-7{--tblr-gutter-x: 5rem}.g-7,.gy-7{--tblr-gutter-y: 5rem}.g-8,.gx-8{--tblr-gutter-x: 8rem}.g-8,.gy-8{--tblr-gutter-y: 8rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--tblr-gutter-x: 0}.g-sm-0,.gy-sm-0{--tblr-gutter-y: 0}.g-sm-1,.gx-sm-1{--tblr-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--tblr-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--tblr-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--tblr-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--tblr-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--tblr-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--tblr-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--tblr-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--tblr-gutter-x: 2rem}.g-sm-5,.gy-sm-5{--tblr-gutter-y: 2rem}.g-sm-6,.gx-sm-6{--tblr-gutter-x: 3rem}.g-sm-6,.gy-sm-6{--tblr-gutter-y: 3rem}.g-sm-7,.gx-sm-7{--tblr-gutter-x: 5rem}.g-sm-7,.gy-sm-7{--tblr-gutter-y: 5rem}.g-sm-8,.gx-sm-8{--tblr-gutter-x: 8rem}.g-sm-8,.gy-sm-8{--tblr-gutter-y: 8rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--tblr-gutter-x: 0}.g-md-0,.gy-md-0{--tblr-gutter-y: 0}.g-md-1,.gx-md-1{--tblr-gutter-x: .25rem}.g-md-1,.gy-md-1{--tblr-gutter-y: .25rem}.g-md-2,.gx-md-2{--tblr-gutter-x: .5rem}.g-md-2,.gy-md-2{--tblr-gutter-y: .5rem}.g-md-3,.gx-md-3{--tblr-gutter-x: 1rem}.g-md-3,.gy-md-3{--tblr-gutter-y: 1rem}.g-md-4,.gx-md-4{--tblr-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--tblr-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--tblr-gutter-x: 2rem}.g-md-5,.gy-md-5{--tblr-gutter-y: 2rem}.g-md-6,.gx-md-6{--tblr-gutter-x: 3rem}.g-md-6,.gy-md-6{--tblr-gutter-y: 3rem}.g-md-7,.gx-md-7{--tblr-gutter-x: 5rem}.g-md-7,.gy-md-7{--tblr-gutter-y: 5rem}.g-md-8,.gx-md-8{--tblr-gutter-x: 8rem}.g-md-8,.gy-md-8{--tblr-gutter-y: 8rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--tblr-gutter-x: 0}.g-lg-0,.gy-lg-0{--tblr-gutter-y: 0}.g-lg-1,.gx-lg-1{--tblr-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--tblr-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--tblr-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--tblr-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--tblr-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--tblr-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--tblr-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--tblr-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--tblr-gutter-x: 2rem}.g-lg-5,.gy-lg-5{--tblr-gutter-y: 2rem}.g-lg-6,.gx-lg-6{--tblr-gutter-x: 3rem}.g-lg-6,.gy-lg-6{--tblr-gutter-y: 3rem}.g-lg-7,.gx-lg-7{--tblr-gutter-x: 5rem}.g-lg-7,.gy-lg-7{--tblr-gutter-y: 5rem}.g-lg-8,.gx-lg-8{--tblr-gutter-x: 8rem}.g-lg-8,.gy-lg-8{--tblr-gutter-y: 8rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--tblr-gutter-x: 0}.g-xl-0,.gy-xl-0{--tblr-gutter-y: 0}.g-xl-1,.gx-xl-1{--tblr-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--tblr-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--tblr-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--tblr-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--tblr-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--tblr-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--tblr-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--tblr-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--tblr-gutter-x: 2rem}.g-xl-5,.gy-xl-5{--tblr-gutter-y: 2rem}.g-xl-6,.gx-xl-6{--tblr-gutter-x: 3rem}.g-xl-6,.gy-xl-6{--tblr-gutter-y: 3rem}.g-xl-7,.gx-xl-7{--tblr-gutter-x: 5rem}.g-xl-7,.gy-xl-7{--tblr-gutter-y: 5rem}.g-xl-8,.gx-xl-8{--tblr-gutter-x: 8rem}.g-xl-8,.gy-xl-8{--tblr-gutter-y: 8rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--tblr-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--tblr-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--tblr-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--tblr-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--tblr-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--tblr-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--tblr-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--tblr-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--tblr-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--tblr-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--tblr-gutter-x: 2rem}.g-xxl-5,.gy-xxl-5{--tblr-gutter-y: 2rem}.g-xxl-6,.gx-xxl-6{--tblr-gutter-x: 3rem}.g-xxl-6,.gy-xxl-6{--tblr-gutter-y: 3rem}.g-xxl-7,.gx-xxl-7{--tblr-gutter-x: 5rem}.g-xxl-7,.gy-xxl-7{--tblr-gutter-y: 5rem}.g-xxl-8,.gx-xxl-8{--tblr-gutter-x: 8rem}.g-xxl-8,.gy-xxl-8{--tblr-gutter-y: 8rem}}.table,.markdown>table{--tblr-table-color-type: initial;--tblr-table-bg-type: initial;--tblr-table-color-state: initial;--tblr-table-bg-state: initial;--tblr-table-color: inherit;--tblr-table-bg: transparent;--tblr-table-border-color: var(--tblr-border-color-translucent);--tblr-table-accent-bg: transparent;--tblr-table-striped-color: inherit;--tblr-table-striped-bg: var(--tblr-bg-surface-tertiary);--tblr-table-active-color: inherit;--tblr-table-active-bg: rgba(var(--tblr-emphasis-color-rgb), .1);--tblr-table-hover-color: inherit;--tblr-table-hover-bg: rgba(var(--tblr-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--tblr-table-border-color)}.table>:not(caption)>*>*,.markdown>table>:not(caption)>*>*{padding:.5rem;color:var(--tblr-table-color-state, var(--tblr-table-color-type, var(--tblr-table-color)));background-color:var(--tblr-table-bg);border-bottom-width:var(--tblr-border-width);box-shadow:inset 0 0 0 9999px var(--tblr-table-bg-state, var(--tblr-table-bg-type, var(--tblr-table-accent-bg)))}.table>tbody,.markdown>table>tbody{vertical-align:inherit}.table>thead,.markdown>table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--tblr-border-width) * 2) solid var(--tblr-border-color-translucent)}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*,.markdown>table>:not(caption)>*{border-width:var(--tblr-border-width) 0}.table-bordered>:not(caption)>*>*,.markdown>table>:not(caption)>*>*{border-width:0 var(--tblr-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(2n)>*{--tblr-table-color-type: var(--tblr-table-striped-color);--tblr-table-bg-type: var(--tblr-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--tblr-table-color-type: var(--tblr-table-striped-color);--tblr-table-bg-type: var(--tblr-table-striped-bg)}.table-active{--tblr-table-color-state: var(--tblr-table-active-color);--tblr-table-bg-state: var(--tblr-table-active-bg)}.table-hover>tbody>tr:hover>*{--tblr-table-color-state: var(--tblr-table-hover-color);--tblr-table-bg-state: var(--tblr-table-hover-bg)}.table-primary{--tblr-table-color: #182433;--tblr-table-bg: #cce7e5;--tblr-table-border-color: #a8c0c1;--tblr-table-striped-bg: #c3dddc;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #bad4d3;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #bfd8d8;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-secondary{--tblr-table-color: #182433;--tblr-table-bg: #e2e4e9;--tblr-table-border-color: #babec5;--tblr-table-striped-bg: #d8dae0;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #ced1d7;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #d3d6db;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-success{--tblr-table-color: #182433;--tblr-table-bg: #d5f0da;--tblr-table-border-color: #afc7b9;--tblr-table-striped-bg: #cce6d2;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #c2dcc9;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #c7e1cd;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-info{--tblr-table-color: #182433;--tblr-table-bg: #d9ebf9;--tblr-table-border-color: #b2c3d1;--tblr-table-striped-bg: #cfe1ef;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #c6d7e5;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #cbdcea;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-warning{--tblr-table-color: #182433;--tblr-table-bg: #fde1cd;--tblr-table-border-color: #cfbbae;--tblr-table-striped-bg: #f2d8c5;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #e6cebe;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #ecd3c1;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-danger{--tblr-table-color: #182433;--tblr-table-bg: #f7d7d7;--tblr-table-border-color: #cab3b6;--tblr-table-striped-bg: #eccecf;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #e1c5c7;--tblr-table-active-color: #f6f8fb;--tblr-table-hover-bg: #e6cacb;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-light{--tblr-table-color: #182433;--tblr-table-bg: #f6f8fb;--tblr-table-border-color: #caced3;--tblr-table-striped-bg: #ebedf1;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #e0e3e7;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #e5e8ec;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-dark{--tblr-table-color: #f6f8fb;--tblr-table-bg: #182433;--tblr-table-border-color: #444e5b;--tblr-table-striped-bg: #232f3d;--tblr-table-striped-color: #f6f8fb;--tblr-table-active-bg: #2e3947;--tblr-table-active-color: #f6f8fb;--tblr-table-hover-bg: #293442;--tblr-table-hover-color: #f6f8fb;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem;font-size:.875rem;font-weight:var(--tblr-font-weight-medium)}.col-form-label{padding-top:calc(.5625rem + var(--tblr-border-width));padding-bottom:calc(.5625rem + var(--tblr-border-width));margin-bottom:0;font-size:inherit;font-weight:var(--tblr-font-weight-medium);line-height:1.4285714286}.col-form-label-lg{padding-top:calc(.5rem + var(--tblr-border-width));padding-bottom:calc(.5rem + var(--tblr-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.125rem + var(--tblr-border-width));padding-bottom:calc(.125rem + var(--tblr-border-width));font-size:.75rem}.form-text{margin-top:.25rem;font-size:85.714285%;color:var(--tblr-secondary-color)}.form-control{display:block;width:100%;padding:.5625rem .75rem;font-family:var(--tblr-font-sans-serif);font-size:.875rem;font-weight:400;line-height:1.4285714286;color:var(--tblr-body-color);appearance:none;background-color:var(--tblr-bg-forms);background-clip:padding-box;border:var(--tblr-border-width) solid var(--tblr-border-color);border-radius:var(--tblr-border-radius);box-shadow:var(--tblr-box-shadow-input);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--tblr-body-color);background-color:var(--tblr-bg-forms);border-color:#80c2be;outline:0;box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.4285714286em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::placeholder{color:#8a97ab;opacity:1}.form-control:disabled{background-color:var(--tblr-bg-surface-secondary);opacity:1}.form-control::file-selector-button{padding:.5625rem .75rem;margin:-.5625rem -.75rem;margin-inline-end:.75rem;color:var(--tblr-body-color);background-color:var(--tblr-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--tblr-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--tblr-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.5625rem 0;margin-bottom:0;line-height:1.4285714286;color:var(--tblr-body-color);background-color:transparent;border:solid transparent;border-width:var(--tblr-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2));padding:.125rem .25rem;font-size:.75rem;border-radius:var(--tblr-border-radius-sm)}.form-control-sm::file-selector-button{padding:.125rem .25rem;margin:-.125rem -.25rem;margin-inline-end:.25rem}.form-control-lg{min-height:calc(1.4285714286em + 1rem + calc(var(--tblr-border-width) * 2));padding:.5rem .75rem;font-size:1.25rem;border-radius:var(--tblr-border-radius-lg)}.form-control-lg::file-selector-button{padding:.5rem .75rem;margin:-.5rem -.75rem;margin-inline-end:.75rem}textarea.form-control{min-height:calc(1.4285714286em + 1.125rem + calc(var(--tblr-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.4285714286em + 1rem + calc(var(--tblr-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.4285714286em + 1.125rem + calc(var(--tblr-border-width) * 2));padding:.5625rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--tblr-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--tblr-border-radius)}.form-control-color.form-control-sm{height:calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.4285714286em + 1rem + calc(var(--tblr-border-width) * 2))}.form-select{--tblr-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a97ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.5625rem 2.25rem .5625rem .75rem;font-family:var(--tblr-font-sans-serif);font-size:.875rem;font-weight:400;line-height:1.4285714286;color:var(--tblr-body-color);appearance:none;background-color:var(--tblr-bg-forms);background-image:var(--tblr-form-select-bg-img),var(--tblr-form-select-bg-icon, none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--tblr-border-width) solid var(--tblr-border-color);border-radius:var(--tblr-border-radius);box-shadow:var(--tblr-box-shadow-input);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#80c2be;outline:0;box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--tblr-bg-surface-secondary)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--tblr-body-color)}.form-select-sm{padding-top:.125rem;padding-bottom:.125rem;padding-left:.25rem;font-size:.75rem;border-radius:var(--tblr-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:.75rem;font-size:1.25rem;border-radius:var(--tblr-border-radius-lg)}[data-bs-theme=dark] .form-select,body[data-bs-theme=dark] [data-bs-theme=light] .form-select{--tblr-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dce1e7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.25rem;padding-left:2rem;margin-bottom:.75rem}.form-check .form-check-input{float:left;margin-left:-2rem}.form-check-reverse{padding-right:2rem;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-2rem;margin-left:0}.form-check-input{--tblr-form-check-bg: var(--tblr-bg-forms);flex-shrink:0;width:1.25rem;height:1.25rem;margin-top:.0892857143rem;vertical-align:top;appearance:none;background-color:var(--tblr-form-check-bg);background-image:var(--tblr-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:var(--tblr-border-radius)}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#80c2be;outline:0;box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-check-input:checked{background-color:var(--tblr-primary);border-color:var(--tblr-border-color-translucent)}.form-check-input:checked[type=checkbox]{--tblr-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--tblr-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle r='3' fill='%23ffffff' cx='8' cy='8' /%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:var(--tblr-primary);border-color:var(--tblr-primary);--tblr-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.7}.form-switch{padding-left:2.5rem}.form-switch .form-check-input{--tblr-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23dce1e7'/%3e%3c/svg%3e");width:2rem;margin-left:-2.5rem;background-image:var(--tblr-form-switch-bg);background-position:left center;border-radius:2rem;transition:background-position .15s ease-in-out}.form-switch .form-check-input:focus{--tblr-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2380c2be'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--tblr-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5rem;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5rem;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.4}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--tblr-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.25rem;padding:0;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #f6f8fb,0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #f6f8fb,0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.375rem;appearance:none;background-color:var(--tblr-primary);border:2px var(--tblr-border-style) #ffffff;border-radius:1rem;box-shadow:0 .1rem .25rem #0000001a;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b3dad8}.form-range::-webkit-slider-runnable-track{width:100%;height:.25rem;color:transparent;cursor:pointer;background-color:var(--tblr-border-color);border-color:transparent;border-radius:1rem;box-shadow:var(--tblr-box-shadow-inset)}.form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:var(--tblr-primary);border:2px var(--tblr-border-style) #ffffff;border-radius:1rem;box-shadow:0 .1rem .25rem #0000001a;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{transition:none}}.form-range::-moz-range-thumb:active{background-color:#b3dad8}.form-range::-moz-range-track{width:100%;height:.25rem;color:transparent;cursor:pointer;background-color:var(--tblr-border-color);border-color:transparent;border-radius:1rem;box-shadow:var(--tblr-box-shadow-inset)}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--tblr-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--tblr-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--tblr-border-width) * 2));min-height:calc(3.5rem + calc(var(--tblr-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--tblr-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{color:rgba(var(--tblr-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-control-plaintext~label:after,.form-floating>.form-select~label:after{position:absolute;inset:1rem .375rem;z-index:-1;height:1.5em;content:"";background-color:var(--tblr-bg-forms);border-radius:var(--tblr-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--tblr-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--tblr-border-width) 0}.form-floating>:disabled~label,.form-floating>.form-control:disabled~label{color:#49566c}.form-floating>:disabled~label:after,.form-floating>.form-control:disabled~label:after{background-color:var(--tblr-bg-surface-secondary)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.5625rem .75rem;font-size:.875rem;font-weight:400;line-height:1.4285714286;color:var(--tblr-gray-500);text-align:center;white-space:nowrap;background-color:var(--tblr-bg-surface-secondary);border:var(--tblr-border-width) solid var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem .75rem;font-size:1.25rem;border-radius:var(--tblr-border-radius-lg)}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.125rem .25rem;font-size:.75rem;border-radius:var(--tblr-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--tblr-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:85.714285%;color:var(--tblr-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:var(--tblr-spacer-2) var(--tblr-spacer-2);margin-top:.1rem;font-size:.765625rem;color:#fff;background-color:var(--tblr-success);border-radius:var(--tblr-border-radius)}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:var(--tblr-form-valid-border-color);padding-right:calc(1.4285714286em + 1.125rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.3571428572em + .28125rem) center;background-size:calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:var(--tblr-form-valid-border-color);box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.4285714286em + 1.125rem);background-position:top calc(.3571428572em + .28125rem) right calc(.3571428572em + .28125rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:var(--tblr-form-valid-border-color)}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{--tblr-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:var(--tblr-form-valid-border-color);box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-success-rgb),.25)}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3rem + calc(1.4285714286em + 1.125rem))}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:var(--tblr-form-valid-border-color)}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:var(--tblr-form-valid-color)}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem rgba(var(--tblr-success-rgb),.25)}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:var(--tblr-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:85.714285%;color:var(--tblr-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:var(--tblr-spacer-2) var(--tblr-spacer-2);margin-top:.1rem;font-size:.765625rem;color:#fff;background-color:var(--tblr-danger);border-radius:var(--tblr-border-radius)}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:var(--tblr-form-invalid-border-color);padding-right:calc(1.4285714286em + 1.125rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d63939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.3571428572em + .28125rem) center;background-size:calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:var(--tblr-form-invalid-border-color);box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.4285714286em + 1.125rem);background-position:top calc(.3571428572em + .28125rem) right calc(.3571428572em + .28125rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:var(--tblr-form-invalid-border-color)}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{--tblr-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d63939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:var(--tblr-form-invalid-border-color);box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-danger-rgb),.25)}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3rem + calc(1.4285714286em + 1.125rem))}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:var(--tblr-form-invalid-border-color)}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:var(--tblr-form-invalid-color)}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--tblr-danger-rgb),.25)}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:var(--tblr-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--tblr-btn-padding-x: .5rem;--tblr-btn-padding-y: .25rem;--tblr-btn-font-family: var(--tblr-font-sans-serif);--tblr-btn-font-size: .875rem;--tblr-btn-font-weight: var(--tblr-font-weight-medium);--tblr-btn-line-height: 1.4285714286;--tblr-btn-color: var(--tblr-body-color);--tblr-btn-bg: transparent;--tblr-btn-border-width: var(--tblr-border-width);--tblr-btn-border-color: transparent;--tblr-btn-border-radius: var(--tblr-border-radius);--tblr-btn-hover-border-color: transparent;--tblr-btn-box-shadow: var(--tblr-box-shadow-input);--tblr-btn-disabled-opacity: .4;--tblr-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--tblr-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--tblr-btn-padding-y) var(--tblr-btn-padding-x);font-family:var(--tblr-btn-font-family);font-size:var(--tblr-btn-font-size);font-weight:var(--tblr-btn-font-weight);line-height:var(--tblr-btn-line-height);color:var(--tblr-btn-color);text-align:center;vertical-align:middle;cursor:pointer;user-select:none;border:var(--tblr-btn-border-width) solid var(--tblr-btn-border-color);border-radius:var(--tblr-btn-border-radius);background-color:var(--tblr-btn-bg);box-shadow:var(--tblr-btn-box-shadow);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--tblr-btn-hover-color);text-decoration:none;background-color:var(--tblr-btn-hover-bg);border-color:var(--tblr-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--tblr-btn-color);background-color:var(--tblr-btn-bg);border-color:var(--tblr-btn-border-color)}.btn:focus-visible{color:var(--tblr-btn-hover-color);background-color:var(--tblr-btn-hover-bg);border-color:var(--tblr-btn-hover-border-color);outline:0;box-shadow:var(--tblr-btn-box-shadow),var(--tblr-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--tblr-btn-hover-border-color);outline:0;box-shadow:var(--tblr-btn-box-shadow),var(--tblr-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--tblr-btn-active-color);background-color:var(--tblr-btn-active-bg);border-color:var(--tblr-btn-active-border-color);box-shadow:var(--tblr-btn-active-shadow)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--tblr-btn-active-shadow),var(--tblr-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--tblr-btn-active-shadow),var(--tblr-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--tblr-btn-disabled-color);pointer-events:none;background-color:var(--tblr-btn-disabled-bg);border-color:var(--tblr-btn-disabled-border-color);opacity:var(--tblr-btn-disabled-opacity);box-shadow:none}.btn-link{--tblr-btn-font-weight: 400;--tblr-btn-color: var(--tblr-link-color);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-link-hover-color);--tblr-btn-hover-border-color: transparent;--tblr-btn-active-color: var(--tblr-link-hover-color);--tblr-btn-active-border-color: transparent;--tblr-btn-disabled-color: #49566c;--tblr-btn-disabled-border-color: transparent;--tblr-btn-box-shadow: 0 0 0 #000;--tblr-btn-focus-shadow-rgb: 37, 150, 144;text-decoration:none}.btn-link:hover,.btn-link:focus-visible{text-decoration:underline}.btn-link:focus-visible{color:var(--tblr-btn-color)}.btn-link:hover{color:var(--tblr-btn-hover-color)}.btn-lg,.btn-group-lg>.btn{--tblr-btn-padding-y: .5rem;--tblr-btn-padding-x: .75rem;--tblr-btn-font-size: 1.25rem;--tblr-btn-border-radius: var(--tblr-border-radius-lg)}.btn-sm,.btn-group-sm>.btn{--tblr-btn-padding-y: .125rem;--tblr-btn-padding-x: .25rem;--tblr-btn-font-size: .75rem;--tblr-btn-border-radius: var(--tblr-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(-45deg)}.dropdown-menu{--tblr-dropdown-zindex: 1000;--tblr-dropdown-min-width: 11rem;--tblr-dropdown-padding-x: 0;--tblr-dropdown-padding-y: .25rem;--tblr-dropdown-spacer: 1px;--tblr-dropdown-font-size: .875rem;--tblr-dropdown-color: var(--tblr-body-color);--tblr-dropdown-bg: var(--tblr-bg-surface);--tblr-dropdown-border-color: var(--tblr-border-color-translucent);--tblr-dropdown-border-radius: var(--tblr-border-radius);--tblr-dropdown-border-width: var(--tblr-border-width);--tblr-dropdown-inner-border-radius: calc(var(--tblr-border-radius) - var(--tblr-border-width));--tblr-dropdown-divider-bg: var(--tblr-border-color-translucent);--tblr-dropdown-divider-margin-y: var(--tblr-spacer-2);--tblr-dropdown-box-shadow: var(--tblr-box-shadow-dropdown);--tblr-dropdown-link-color: inherit;--tblr-dropdown-link-hover-color: inherit;--tblr-dropdown-link-hover-bg: rgba(var(--tblr-secondary-rgb), .08);--tblr-dropdown-link-active-color: var(--tblr-primary);--tblr-dropdown-link-active-bg: var(--tblr-active-bg);--tblr-dropdown-link-disabled-color: var(--tblr-tertiary-color);--tblr-dropdown-item-padding-x: .75rem;--tblr-dropdown-item-padding-y: .5rem;--tblr-dropdown-header-color: #49566c;--tblr-dropdown-header-padding-x: .75rem;--tblr-dropdown-header-padding-y: .25rem;position:absolute;z-index:var(--tblr-dropdown-zindex);display:none;min-width:var(--tblr-dropdown-min-width);padding:var(--tblr-dropdown-padding-y) var(--tblr-dropdown-padding-x);margin:0;font-size:var(--tblr-dropdown-font-size);color:var(--tblr-dropdown-color);text-align:left;list-style:none;background-color:var(--tblr-dropdown-bg);background-clip:padding-box;border:var(--tblr-dropdown-border-width) solid var(--tblr-dropdown-border-color);border-radius:var(--tblr-dropdown-border-radius);box-shadow:var(--tblr-dropdown-box-shadow)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--tblr-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--tblr-dropdown-spacer)}.dropup .dropdown-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(135deg)}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--tblr-dropdown-spacer)}.dropend .dropdown-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(-135deg)}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--tblr-dropdown-spacer)}.dropstart .dropdown-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(45deg)}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--tblr-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--tblr-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--tblr-dropdown-item-padding-y) var(--tblr-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--tblr-dropdown-link-color);text-align:inherit;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--tblr-dropdown-item-border-radius, 0)}.dropdown-item:hover,.dropdown-item:focus{color:var(--tblr-dropdown-link-hover-color);text-decoration:none;background-color:var(--tblr-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--tblr-dropdown-link-active-color);text-decoration:none;background-color:var(--tblr-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--tblr-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--tblr-dropdown-header-padding-y) var(--tblr-dropdown-header-padding-x);margin-bottom:0;font-size:.765625rem;color:var(--tblr-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--tblr-dropdown-item-padding-y) var(--tblr-dropdown-item-padding-x);color:var(--tblr-dropdown-link-color)}.dropdown-menu-dark{--tblr-dropdown-color: #b8c4d4;--tblr-dropdown-bg: #182433;--tblr-dropdown-border-color: var(--tblr-border-color-translucent);--tblr-dropdown-box-shadow: ;--tblr-dropdown-link-color: #b8c4d4;--tblr-dropdown-link-hover-color: #ffffff;--tblr-dropdown-divider-bg: var(--tblr-border-color-translucent);--tblr-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--tblr-dropdown-link-active-color: var(--tblr-primary);--tblr-dropdown-link-active-bg: var(--tblr-active-bg);--tblr-dropdown-link-disabled-color: #6c7a91;--tblr-dropdown-header-color: #6c7a91}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--tblr-border-radius)}.btn-group>:not(.btn-check:first-child)+.btn,.btn-group>.btn-group:not(:first-child){margin-left:calc(var(--tblr-border-width) * -1)}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn,.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.1875rem;padding-left:.1875rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.btn-group.show .dropdown-toggle{box-shadow:inset 0 3px 5px #00000020}.btn-group.show .dropdown-toggle.btn-link{box-shadow:none}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:calc(var(--tblr-border-width) * -1)}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn~.btn,.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--tblr-nav-link-padding-x: .75rem;--tblr-nav-link-padding-y: .5rem;--tblr-nav-link-font-weight: ;--tblr-nav-link-color: var(--tblr-gray-500);--tblr-nav-link-hover-color: var(--tblr-link-hover-color);--tblr-nav-link-disabled-color: var(--tblr-disabled-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--tblr-nav-link-padding-y) var(--tblr-nav-link-padding-x);font-size:var(--tblr-nav-link-font-size);font-weight:var(--tblr-nav-link-font-weight);color:var(--tblr-nav-link-color);background:none;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}.nav-link:hover,.nav-link:focus{color:var(--tblr-nav-link-hover-color);text-decoration:none}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.nav-link.disabled,.nav-link:disabled{color:var(--tblr-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--tblr-nav-tabs-border-width: var(--tblr-border-width);--tblr-nav-tabs-border-color: var(--tblr-border-color);--tblr-nav-tabs-border-radius: var(--tblr-border-radius);--tblr-nav-tabs-link-hover-border-color: var(--tblr-border-color) var(--tblr-border-color) var(--tblr-border-color);--tblr-nav-tabs-link-active-color: var(--tblr-body-color);--tblr-nav-tabs-link-active-bg: var(--tblr-body-bg);--tblr-nav-tabs-link-active-border-color: var(--tblr-border-color) var(--tblr-border-color) var(--tblr-border-color);border-bottom:var(--tblr-nav-tabs-border-width) solid var(--tblr-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--tblr-nav-tabs-border-width));border:var(--tblr-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--tblr-nav-tabs-border-radius);border-top-right-radius:var(--tblr-nav-tabs-border-radius)}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--tblr-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--tblr-nav-tabs-link-active-color);background-color:var(--tblr-nav-tabs-link-active-bg);border-color:var(--tblr-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--tblr-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--tblr-nav-pills-border-radius: var(--tblr-border-radius);--tblr-nav-pills-link-active-color: var(--tblr-primary);--tblr-nav-pills-link-active-bg: rgba(var(--tblr-secondary-rgb), .15)}.nav-pills .nav-link{border-radius:var(--tblr-nav-pills-border-radius)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--tblr-nav-pills-link-active-color);background-color:var(--tblr-nav-pills-link-active-bg)}.nav-underline{--tblr-nav-underline-gap: 1rem;--tblr-nav-underline-border-width: .125rem;--tblr-nav-underline-link-active-color: var(--tblr-emphasis-color);gap:var(--tblr-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--tblr-nav-underline-border-width) solid transparent}.nav-underline .nav-link:hover,.nav-underline .nav-link:focus{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:600;color:var(--tblr-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--tblr-navbar-padding-x: 0;--tblr-navbar-padding-y: .25rem;--tblr-navbar-color: var(--tblr-body-color);--tblr-navbar-hover-color: rgba(var(--tblr-emphasis-color-rgb), .8);--tblr-navbar-disabled-color: var(--tblr-disabled-color);--tblr-navbar-active-color: var(--tblr-body-color) color;--tblr-navbar-brand-padding-y: .5rem;--tblr-navbar-brand-margin-end: 1rem;--tblr-navbar-brand-font-size: 1.25rem;--tblr-navbar-brand-color: var(--tblr-body-color);--tblr-navbar-brand-hover-color: var(--tblr-body-color) color;--tblr-navbar-nav-link-padding-x: .75rem;--tblr-navbar-toggler-padding-y: 0;--tblr-navbar-toggler-padding-x: 0;--tblr-navbar-toggler-font-size: 1rem;--tblr-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2824, 36, 51, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--tblr-navbar-toggler-border-color: rgba(var(--tblr-emphasis-color-rgb), .15);--tblr-navbar-toggler-border-radius: var(--tblr-border-radius);--tblr-navbar-toggler-focus-width: 0;--tblr-navbar-toggler-transition: box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--tblr-navbar-padding-y) var(--tblr-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-sm,.navbar>.container-md,.navbar>.container-lg,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--tblr-navbar-brand-padding-y);padding-bottom:var(--tblr-navbar-brand-padding-y);margin-right:var(--tblr-navbar-brand-margin-end);font-size:var(--tblr-navbar-brand-font-size);color:var(--tblr-navbar-brand-color);white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{color:var(--tblr-navbar-brand-hover-color);text-decoration:none}.navbar-nav{--tblr-nav-link-padding-x: 0;--tblr-nav-link-padding-y: .5rem;--tblr-nav-link-font-weight: ;--tblr-nav-link-color: var(--tblr-navbar-color);--tblr-nav-link-hover-color: var(--tblr-navbar-hover-color);--tblr-nav-link-disabled-color: var(--tblr-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--tblr-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--tblr-navbar-color)}.navbar-text a,.navbar-text a:hover,.navbar-text a:focus{color:var(--tblr-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--tblr-navbar-toggler-padding-y) var(--tblr-navbar-toggler-padding-x);font-size:var(--tblr-navbar-toggler-font-size);line-height:1;color:var(--tblr-navbar-color);background-color:transparent;border:var(--tblr-border-width) solid var(--tblr-navbar-toggler-border-color);border-radius:var(--tblr-navbar-toggler-border-radius);transition:var(--tblr-navbar-toggler-transition)}@media (prefers-reduced-motion: reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--tblr-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--tblr-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--tblr-scroll-height, 75vh);overflow-y:auto}@media (min-width: 576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark],body[data-bs-theme=dark] .navbar[data-bs-theme=light]{--tblr-navbar-color: rgba(255, 255, 255, .7);--tblr-navbar-hover-color: rgba(255, 255, 255, .75);--tblr-navbar-disabled-color: var(--tblr-disabled-color);--tblr-navbar-active-color: #ffffff;--tblr-navbar-brand-color: #ffffff;--tblr-navbar-brand-hover-color: #ffffff;--tblr-navbar-toggler-border-color: rgba(255, 255, 255, .1);--tblr-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}[data-bs-theme=dark] .navbar-toggler-icon,body[data-bs-theme=dark] [data-bs-theme=light] .navbar-toggler-icon{--tblr-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--tblr-card-spacer-y: 1rem;--tblr-card-spacer-x: 1.25rem;--tblr-card-title-spacer-y: 1.25rem;--tblr-card-title-color: ;--tblr-card-subtitle-color: ;--tblr-card-border-width: var(--tblr-border-width);--tblr-card-border-color: var(--tblr-border-color-translucent);--tblr-card-border-radius: var(--tblr-border-radius);--tblr-card-box-shadow: var(--tblr-shadow-card);--tblr-card-inner-border-radius: calc(var(--tblr-border-radius) - (var(--tblr-border-width)));--tblr-card-cap-padding-y: 1rem;--tblr-card-cap-padding-x: 1.25rem;--tblr-card-cap-bg: var(--tblr-bg-surface-tertiary);--tblr-card-cap-color: inherit;--tblr-card-height: ;--tblr-card-color: inherit;--tblr-card-bg: var(--tblr-bg-surface);--tblr-card-img-overlay-padding: 1rem;--tblr-card-group-margin: 1.5rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--tblr-card-height);color:var(--tblr-body-color);word-wrap:break-word;background-color:var(--tblr-card-bg);background-clip:border-box;border:var(--tblr-card-border-width) solid var(--tblr-card-border-color);border-radius:var(--tblr-card-border-radius);box-shadow:var(--tblr-card-box-shadow)}.card>hr,.card>.hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--tblr-card-inner-border-radius);border-top-right-radius:var(--tblr-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--tblr-card-inner-border-radius);border-bottom-left-radius:var(--tblr-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--tblr-card-spacer-y) var(--tblr-card-spacer-x);color:var(--tblr-card-color)}.card-title{margin-bottom:var(--tblr-card-title-spacer-y);color:var(--tblr-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--tblr-card-title-spacer-y));margin-bottom:0;color:var(--tblr-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:var(--tblr-card-spacer-x)}.card-header{padding:var(--tblr-card-cap-padding-y) var(--tblr-card-cap-padding-x);margin-bottom:0;color:var(--tblr-card-cap-color);background-color:var(--tblr-card-cap-bg);border-bottom:var(--tblr-card-border-width) solid var(--tblr-card-border-color)}.card-header:first-child{border-radius:var(--tblr-card-inner-border-radius) var(--tblr-card-inner-border-radius) 0 0}.card-footer{padding:var(--tblr-card-cap-padding-y) var(--tblr-card-cap-padding-x);color:var(--tblr-card-cap-color);background-color:var(--tblr-card-cap-bg);border-top:var(--tblr-card-border-width) solid var(--tblr-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--tblr-card-inner-border-radius) var(--tblr-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--tblr-card-cap-padding-x));margin-bottom:calc(-1 * var(--tblr-card-cap-padding-y));margin-left:calc(-.5 * var(--tblr-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--tblr-card-bg);border-bottom-color:var(--tblr-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--tblr-card-cap-padding-x));margin-left:calc(-.5 * var(--tblr-card-cap-padding-x))}.card-img-overlay{position:absolute;inset:0;padding:var(--tblr-card-img-overlay-padding);border-radius:var(--tblr-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--tblr-card-inner-border-radius);border-top-right-radius:var(--tblr-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--tblr-card-inner-border-radius);border-bottom-left-radius:var(--tblr-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--tblr-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.accordion{--tblr-accordion-color: var(--tblr-body-color);--tblr-accordion-bg: transparent;--tblr-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;--tblr-accordion-border-color: var(--tblr-border-color-translucent);--tblr-accordion-border-width: var(--tblr-border-width);--tblr-accordion-border-radius: var(--tblr-border-radius);--tblr-accordion-inner-border-radius: calc(var(--tblr-border-radius) - (var(--tblr-border-width)));--tblr-accordion-btn-padding-x: 1.25rem;--tblr-accordion-btn-padding-y: 1rem;--tblr-accordion-btn-color: var(--tblr-body-color);--tblr-accordion-btn-bg: transparent;--tblr-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23182433' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");--tblr-accordion-btn-icon-width: 1rem;--tblr-accordion-btn-icon-transform: rotate(-180deg);--tblr-accordion-btn-icon-transition: transform .2s ease-in-out;--tblr-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23003532' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");--tblr-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--tblr-primary-rgb), .25);--tblr-accordion-body-padding-x: 1.25rem;--tblr-accordion-body-padding-y: 1rem;--tblr-accordion-active-color: inherit;--tblr-accordion-active-bg: transparent}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--tblr-accordion-btn-padding-y) var(--tblr-accordion-btn-padding-x);font-size:.875rem;color:var(--tblr-accordion-btn-color);text-align:left;background-color:var(--tblr-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--tblr-accordion-transition)}@media (prefers-reduced-motion: reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--tblr-accordion-active-color);background-color:var(--tblr-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--tblr-accordion-border-width)) 0 var(--tblr-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--tblr-accordion-btn-active-icon);transform:var(--tblr-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--tblr-accordion-btn-icon-width);height:var(--tblr-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--tblr-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--tblr-accordion-btn-icon-width);transition:var(--tblr-accordion-btn-icon-transition)}@media (prefers-reduced-motion: reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;outline:0;box-shadow:var(--tblr-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--tblr-accordion-color);background-color:var(--tblr-accordion-bg);border:var(--tblr-accordion-border-width) solid var(--tblr-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--tblr-accordion-border-radius);border-top-right-radius:var(--tblr-accordion-border-radius)}.accordion-item:first-of-type>.accordion-header .accordion-button{border-top-left-radius:var(--tblr-accordion-inner-border-radius);border-top-right-radius:var(--tblr-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--tblr-accordion-border-radius);border-bottom-left-radius:var(--tblr-accordion-border-radius)}.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed{border-bottom-right-radius:var(--tblr-accordion-inner-border-radius);border-bottom-left-radius:var(--tblr-accordion-inner-border-radius)}.accordion-item:last-of-type>.accordion-collapse{border-bottom-right-radius:var(--tblr-accordion-border-radius);border-bottom-left-radius:var(--tblr-accordion-border-radius)}.accordion-body{padding:var(--tblr-accordion-body-padding-y) var(--tblr-accordion-body-padding-x)}.accordion-flush>.accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush>.accordion-item:first-child{border-top:0}.accordion-flush>.accordion-item:last-child{border-bottom:0}.accordion-flush>.accordion-item>.accordion-header .accordion-button,.accordion-flush>.accordion-item>.accordion-header .accordion-button.collapsed{border-radius:0}.accordion-flush>.accordion-item>.accordion-collapse{border-radius:0}[data-bs-theme=dark] .accordion-button:after{--tblr-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2366b6b1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--tblr-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2366b6b1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.breadcrumb{--tblr-breadcrumb-padding-x: 0;--tblr-breadcrumb-padding-y: 0;--tblr-breadcrumb-margin-bottom: 1rem;--tblr-breadcrumb-bg: ;--tblr-breadcrumb-border-radius: ;--tblr-breadcrumb-divider-color: var(--tblr-gray-500);--tblr-breadcrumb-item-padding-x: .5rem;--tblr-breadcrumb-item-active-color: inherit;display:flex;flex-wrap:wrap;padding:var(--tblr-breadcrumb-padding-y) var(--tblr-breadcrumb-padding-x);margin-bottom:var(--tblr-breadcrumb-margin-bottom);font-size:var(--tblr-breadcrumb-font-size);list-style:none;background-color:var(--tblr-breadcrumb-bg);border-radius:var(--tblr-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--tblr-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--tblr-breadcrumb-item-padding-x);color:var(--tblr-breadcrumb-divider-color);content:var(--tblr-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--tblr-breadcrumb-item-active-color)}.pagination{--tblr-pagination-padding-x: .25rem;--tblr-pagination-padding-y: .25rem;--tblr-pagination-font-size: .875rem;--tblr-pagination-color: var(--tblr-gray-500);--tblr-pagination-bg: transparent;--tblr-pagination-border-width: 0;--tblr-pagination-border-color: var(--tblr-border-color);--tblr-pagination-border-radius: var(--tblr-border-radius);--tblr-pagination-hover-color: var(--tblr-link-hover-color);--tblr-pagination-hover-bg: var(--tblr-tertiary-bg);--tblr-pagination-hover-border-color: var(--tblr-border-color);--tblr-pagination-focus-color: var(--tblr-link-hover-color);--tblr-pagination-focus-bg: var(--tblr-secondary-bg);--tblr-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--tblr-primary-rgb), .25);--tblr-pagination-active-color: #ffffff;--tblr-pagination-active-bg: var(--tblr-primary);--tblr-pagination-active-border-color: var(--tblr-primary);--tblr-pagination-disabled-color: var(--tblr-disabled-color);--tblr-pagination-disabled-bg: transparent;--tblr-pagination-disabled-border-color: var(--tblr-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--tblr-pagination-padding-y) var(--tblr-pagination-padding-x);font-size:var(--tblr-pagination-font-size);color:var(--tblr-pagination-color);background-color:var(--tblr-pagination-bg);border:var(--tblr-pagination-border-width) solid var(--tblr-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--tblr-pagination-hover-color);text-decoration:none;background-color:var(--tblr-pagination-hover-bg);border-color:var(--tblr-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--tblr-pagination-focus-color);background-color:var(--tblr-pagination-focus-bg);outline:0;box-shadow:var(--tblr-pagination-focus-box-shadow)}.page-link.active,.active>.page-link{z-index:3;color:var(--tblr-pagination-active-color);background-color:var(--tblr-pagination-active-bg);border-color:var(--tblr-pagination-active-border-color)}.page-link.disabled,.disabled>.page-link{color:var(--tblr-pagination-disabled-color);pointer-events:none;background-color:var(--tblr-pagination-disabled-bg);border-color:var(--tblr-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-0}.page-item:first-child .page-link{border-top-left-radius:var(--tblr-pagination-border-radius);border-bottom-left-radius:var(--tblr-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--tblr-pagination-border-radius);border-bottom-right-radius:var(--tblr-pagination-border-radius)}.pagination-lg{--tblr-pagination-padding-x: 1.5rem;--tblr-pagination-padding-y: .75rem;--tblr-pagination-font-size: 1.09375rem;--tblr-pagination-border-radius: var(--tblr-border-radius-lg)}.pagination-sm{--tblr-pagination-padding-x: .5rem;--tblr-pagination-padding-y: .25rem;--tblr-pagination-font-size: .765625rem;--tblr-pagination-border-radius: var(--tblr-border-radius-sm)}.badge{--tblr-badge-padding-x: .5em;--tblr-badge-padding-y: .25em;--tblr-badge-font-size: 85.714285%;--tblr-badge-font-weight: var(--tblr-font-weight-medium);--tblr-badge-color: var(--tblr-gray-500);--tblr-badge-border-radius: var(--tblr-border-radius);display:inline-block;padding:var(--tblr-badge-padding-y) var(--tblr-badge-padding-x);font-size:var(--tblr-badge-font-size);font-weight:var(--tblr-badge-font-weight);line-height:1;color:var(--tblr-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--tblr-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--tblr-alert-bg: transparent;--tblr-alert-padding-x: 1rem;--tblr-alert-padding-y: .75rem;--tblr-alert-margin-bottom: 1rem;--tblr-alert-color: inherit;--tblr-alert-border-color: transparent;--tblr-alert-border: var(--tblr-border-width) solid var(--tblr-alert-border-color);--tblr-alert-border-radius: var(--tblr-border-radius);--tblr-alert-link-color: inherit;position:relative;padding:var(--tblr-alert-padding-y) var(--tblr-alert-padding-x);margin-bottom:var(--tblr-alert-margin-bottom);color:var(--tblr-alert-color);background-color:var(--tblr-alert-bg);border:var(--tblr-alert-border);border-radius:var(--tblr-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:var(--tblr-font-weight-bold);color:var(--tblr-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:.9375rem 1rem}.alert-primary{--tblr-alert-color: var(--tblr-primary-text-emphasis);--tblr-alert-bg: var(--tblr-primary-bg-subtle);--tblr-alert-border-color: var(--tblr-primary-border-subtle);--tblr-alert-link-color: var(--tblr-primary-text-emphasis)}.alert-secondary{--tblr-alert-color: var(--tblr-secondary-text-emphasis);--tblr-alert-bg: var(--tblr-secondary-bg-subtle);--tblr-alert-border-color: var(--tblr-secondary-border-subtle);--tblr-alert-link-color: var(--tblr-secondary-text-emphasis)}.alert-success{--tblr-alert-color: var(--tblr-success-text-emphasis);--tblr-alert-bg: var(--tblr-success-bg-subtle);--tblr-alert-border-color: var(--tblr-success-border-subtle);--tblr-alert-link-color: var(--tblr-success-text-emphasis)}.alert-info{--tblr-alert-color: var(--tblr-info-text-emphasis);--tblr-alert-bg: var(--tblr-info-bg-subtle);--tblr-alert-border-color: var(--tblr-info-border-subtle);--tblr-alert-link-color: var(--tblr-info-text-emphasis)}.alert-warning{--tblr-alert-color: var(--tblr-warning-text-emphasis);--tblr-alert-bg: var(--tblr-warning-bg-subtle);--tblr-alert-border-color: var(--tblr-warning-border-subtle);--tblr-alert-link-color: var(--tblr-warning-text-emphasis)}.alert-danger{--tblr-alert-color: var(--tblr-danger-text-emphasis);--tblr-alert-bg: var(--tblr-danger-bg-subtle);--tblr-alert-border-color: var(--tblr-danger-border-subtle);--tblr-alert-link-color: var(--tblr-danger-text-emphasis)}.alert-light{--tblr-alert-color: var(--tblr-light-text-emphasis);--tblr-alert-bg: var(--tblr-light-bg-subtle);--tblr-alert-border-color: var(--tblr-light-border-subtle);--tblr-alert-link-color: var(--tblr-light-text-emphasis)}.alert-dark{--tblr-alert-color: var(--tblr-dark-text-emphasis);--tblr-alert-bg: var(--tblr-dark-bg-subtle);--tblr-alert-border-color: var(--tblr-dark-border-subtle);--tblr-alert-link-color: var(--tblr-dark-text-emphasis)}.alert-muted{--tblr-alert-color: var(--tblr-muted-text-emphasis);--tblr-alert-bg: var(--tblr-muted-bg-subtle);--tblr-alert-border-color: var(--tblr-muted-border-subtle);--tblr-alert-link-color: var(--tblr-muted-text-emphasis)}.alert-blue{--tblr-alert-color: var(--tblr-blue-text-emphasis);--tblr-alert-bg: var(--tblr-blue-bg-subtle);--tblr-alert-border-color: var(--tblr-blue-border-subtle);--tblr-alert-link-color: var(--tblr-blue-text-emphasis)}.alert-azure{--tblr-alert-color: var(--tblr-azure-text-emphasis);--tblr-alert-bg: var(--tblr-azure-bg-subtle);--tblr-alert-border-color: var(--tblr-azure-border-subtle);--tblr-alert-link-color: var(--tblr-azure-text-emphasis)}.alert-indigo{--tblr-alert-color: var(--tblr-indigo-text-emphasis);--tblr-alert-bg: var(--tblr-indigo-bg-subtle);--tblr-alert-border-color: var(--tblr-indigo-border-subtle);--tblr-alert-link-color: var(--tblr-indigo-text-emphasis)}.alert-purple{--tblr-alert-color: var(--tblr-purple-text-emphasis);--tblr-alert-bg: var(--tblr-purple-bg-subtle);--tblr-alert-border-color: var(--tblr-purple-border-subtle);--tblr-alert-link-color: var(--tblr-purple-text-emphasis)}.alert-pink{--tblr-alert-color: var(--tblr-pink-text-emphasis);--tblr-alert-bg: var(--tblr-pink-bg-subtle);--tblr-alert-border-color: var(--tblr-pink-border-subtle);--tblr-alert-link-color: var(--tblr-pink-text-emphasis)}.alert-red{--tblr-alert-color: var(--tblr-red-text-emphasis);--tblr-alert-bg: var(--tblr-red-bg-subtle);--tblr-alert-border-color: var(--tblr-red-border-subtle);--tblr-alert-link-color: var(--tblr-red-text-emphasis)}.alert-orange{--tblr-alert-color: var(--tblr-orange-text-emphasis);--tblr-alert-bg: var(--tblr-orange-bg-subtle);--tblr-alert-border-color: var(--tblr-orange-border-subtle);--tblr-alert-link-color: var(--tblr-orange-text-emphasis)}.alert-yellow{--tblr-alert-color: var(--tblr-yellow-text-emphasis);--tblr-alert-bg: var(--tblr-yellow-bg-subtle);--tblr-alert-border-color: var(--tblr-yellow-border-subtle);--tblr-alert-link-color: var(--tblr-yellow-text-emphasis)}.alert-lime{--tblr-alert-color: var(--tblr-lime-text-emphasis);--tblr-alert-bg: var(--tblr-lime-bg-subtle);--tblr-alert-border-color: var(--tblr-lime-border-subtle);--tblr-alert-link-color: var(--tblr-lime-text-emphasis)}.alert-green{--tblr-alert-color: var(--tblr-green-text-emphasis);--tblr-alert-bg: var(--tblr-green-bg-subtle);--tblr-alert-border-color: var(--tblr-green-border-subtle);--tblr-alert-link-color: var(--tblr-green-text-emphasis)}.alert-teal{--tblr-alert-color: var(--tblr-teal-text-emphasis);--tblr-alert-bg: var(--tblr-teal-bg-subtle);--tblr-alert-border-color: var(--tblr-teal-border-subtle);--tblr-alert-link-color: var(--tblr-teal-text-emphasis)}.alert-cyan{--tblr-alert-color: var(--tblr-cyan-text-emphasis);--tblr-alert-bg: var(--tblr-cyan-bg-subtle);--tblr-alert-border-color: var(--tblr-cyan-border-subtle);--tblr-alert-link-color: var(--tblr-cyan-text-emphasis)}.alert-x{--tblr-alert-color: var(--tblr-x-text-emphasis);--tblr-alert-bg: var(--tblr-x-bg-subtle);--tblr-alert-border-color: var(--tblr-x-border-subtle);--tblr-alert-link-color: var(--tblr-x-text-emphasis)}.alert-facebook{--tblr-alert-color: var(--tblr-facebook-text-emphasis);--tblr-alert-bg: var(--tblr-facebook-bg-subtle);--tblr-alert-border-color: var(--tblr-facebook-border-subtle);--tblr-alert-link-color: var(--tblr-facebook-text-emphasis)}.alert-twitter{--tblr-alert-color: var(--tblr-twitter-text-emphasis);--tblr-alert-bg: var(--tblr-twitter-bg-subtle);--tblr-alert-border-color: var(--tblr-twitter-border-subtle);--tblr-alert-link-color: var(--tblr-twitter-text-emphasis)}.alert-linkedin{--tblr-alert-color: var(--tblr-linkedin-text-emphasis);--tblr-alert-bg: var(--tblr-linkedin-bg-subtle);--tblr-alert-border-color: var(--tblr-linkedin-border-subtle);--tblr-alert-link-color: var(--tblr-linkedin-text-emphasis)}.alert-google{--tblr-alert-color: var(--tblr-google-text-emphasis);--tblr-alert-bg: var(--tblr-google-bg-subtle);--tblr-alert-border-color: var(--tblr-google-border-subtle);--tblr-alert-link-color: var(--tblr-google-text-emphasis)}.alert-youtube{--tblr-alert-color: var(--tblr-youtube-text-emphasis);--tblr-alert-bg: var(--tblr-youtube-bg-subtle);--tblr-alert-border-color: var(--tblr-youtube-border-subtle);--tblr-alert-link-color: var(--tblr-youtube-text-emphasis)}.alert-vimeo{--tblr-alert-color: var(--tblr-vimeo-text-emphasis);--tblr-alert-bg: var(--tblr-vimeo-bg-subtle);--tblr-alert-border-color: var(--tblr-vimeo-border-subtle);--tblr-alert-link-color: var(--tblr-vimeo-text-emphasis)}.alert-dribbble{--tblr-alert-color: var(--tblr-dribbble-text-emphasis);--tblr-alert-bg: var(--tblr-dribbble-bg-subtle);--tblr-alert-border-color: var(--tblr-dribbble-border-subtle);--tblr-alert-link-color: var(--tblr-dribbble-text-emphasis)}.alert-github{--tblr-alert-color: var(--tblr-github-text-emphasis);--tblr-alert-bg: var(--tblr-github-bg-subtle);--tblr-alert-border-color: var(--tblr-github-border-subtle);--tblr-alert-link-color: var(--tblr-github-text-emphasis)}.alert-instagram{--tblr-alert-color: var(--tblr-instagram-text-emphasis);--tblr-alert-bg: var(--tblr-instagram-bg-subtle);--tblr-alert-border-color: var(--tblr-instagram-border-subtle);--tblr-alert-link-color: var(--tblr-instagram-text-emphasis)}.alert-pinterest{--tblr-alert-color: var(--tblr-pinterest-text-emphasis);--tblr-alert-bg: var(--tblr-pinterest-bg-subtle);--tblr-alert-border-color: var(--tblr-pinterest-border-subtle);--tblr-alert-link-color: var(--tblr-pinterest-text-emphasis)}.alert-vk{--tblr-alert-color: var(--tblr-vk-text-emphasis);--tblr-alert-bg: var(--tblr-vk-bg-subtle);--tblr-alert-border-color: var(--tblr-vk-border-subtle);--tblr-alert-link-color: var(--tblr-vk-text-emphasis)}.alert-rss{--tblr-alert-color: var(--tblr-rss-text-emphasis);--tblr-alert-bg: var(--tblr-rss-bg-subtle);--tblr-alert-border-color: var(--tblr-rss-border-subtle);--tblr-alert-link-color: var(--tblr-rss-text-emphasis)}.alert-flickr{--tblr-alert-color: var(--tblr-flickr-text-emphasis);--tblr-alert-bg: var(--tblr-flickr-bg-subtle);--tblr-alert-border-color: var(--tblr-flickr-border-subtle);--tblr-alert-link-color: var(--tblr-flickr-text-emphasis)}.alert-bitbucket{--tblr-alert-color: var(--tblr-bitbucket-text-emphasis);--tblr-alert-bg: var(--tblr-bitbucket-bg-subtle);--tblr-alert-border-color: var(--tblr-bitbucket-border-subtle);--tblr-alert-link-color: var(--tblr-bitbucket-text-emphasis)}.alert-tabler{--tblr-alert-color: var(--tblr-tabler-text-emphasis);--tblr-alert-bg: var(--tblr-tabler-bg-subtle);--tblr-alert-border-color: var(--tblr-tabler-border-subtle);--tblr-alert-link-color: var(--tblr-tabler-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:.5rem}}.progress,.progress-stacked{--tblr-progress-height: .5rem;--tblr-progress-font-size: .65625rem;--tblr-progress-bg: var(--tblr-border-color);--tblr-progress-border-radius: var(--tblr-border-radius);--tblr-progress-box-shadow: var(--tblr-box-shadow-inset);--tblr-progress-bar-color: #ffffff;--tblr-progress-bar-bg: var(--tblr-primary);--tblr-progress-bar-transition: width .6s ease;display:flex;height:var(--tblr-progress-height);overflow:hidden;font-size:var(--tblr-progress-font-size);background-color:var(--tblr-progress-bg);border-radius:var(--tblr-progress-border-radius);box-shadow:var(--tblr-progress-box-shadow)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--tblr-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--tblr-progress-bar-bg);transition:var(--tblr-progress-bar-transition)}@media (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--tblr-progress-height) var(--tblr-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.list-group{--tblr-list-group-color: var(--tblr-body-color);--tblr-list-group-bg: inherit;--tblr-list-group-border-color: var(--tblr-border-color);--tblr-list-group-border-width: var(--tblr-border-width);--tblr-list-group-border-radius: var(--tblr-border-radius);--tblr-list-group-item-padding-x: 1.25rem;--tblr-list-group-item-padding-y: 1rem;--tblr-list-group-action-color: inherit;--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: rgba(var(--tblr-secondary-rgb), .08);--tblr-list-group-action-active-color: var(--tblr-body-color);--tblr-list-group-action-active-bg: var(--tblr-secondary-bg);--tblr-list-group-disabled-color: var(--tblr-secondary-color);--tblr-list-group-disabled-bg: inherit;--tblr-list-group-active-color: inherit;--tblr-list-group-active-bg: var(--tblr-active-bg);--tblr-list-group-active-border-color: var(--tblr-border-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--tblr-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--tblr-list-group-action-color);text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:var(--tblr-list-group-action-hover-color);text-decoration:none;background-color:var(--tblr-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--tblr-list-group-action-active-color);background-color:var(--tblr-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--tblr-list-group-item-padding-y) var(--tblr-list-group-item-padding-x);color:var(--tblr-list-group-color);background-color:var(--tblr-list-group-bg);border:var(--tblr-list-group-border-width) solid var(--tblr-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--tblr-list-group-disabled-color);pointer-events:none;background-color:var(--tblr-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--tblr-list-group-active-color);background-color:var(--tblr-list-group-active-bg);border-color:var(--tblr-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--tblr-list-group-border-width));border-top-width:var(--tblr-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}@media (min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}@media (min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}@media (min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}@media (min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}@media (min-width: 1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--tblr-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--tblr-list-group-color: var(--tblr-primary-text-emphasis);--tblr-list-group-bg: var(--tblr-primary-bg-subtle);--tblr-list-group-border-color: var(--tblr-primary-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-primary-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-primary-border-subtle);--tblr-list-group-active-color: var(--tblr-primary-bg-subtle);--tblr-list-group-active-bg: var(--tblr-primary-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-primary-text-emphasis)}.list-group-item-secondary{--tblr-list-group-color: var(--tblr-secondary-text-emphasis);--tblr-list-group-bg: var(--tblr-secondary-bg-subtle);--tblr-list-group-border-color: var(--tblr-secondary-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-secondary-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-secondary-border-subtle);--tblr-list-group-active-color: var(--tblr-secondary-bg-subtle);--tblr-list-group-active-bg: var(--tblr-secondary-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-secondary-text-emphasis)}.list-group-item-success{--tblr-list-group-color: var(--tblr-success-text-emphasis);--tblr-list-group-bg: var(--tblr-success-bg-subtle);--tblr-list-group-border-color: var(--tblr-success-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-success-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-success-border-subtle);--tblr-list-group-active-color: var(--tblr-success-bg-subtle);--tblr-list-group-active-bg: var(--tblr-success-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-success-text-emphasis)}.list-group-item-info{--tblr-list-group-color: var(--tblr-info-text-emphasis);--tblr-list-group-bg: var(--tblr-info-bg-subtle);--tblr-list-group-border-color: var(--tblr-info-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-info-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-info-border-subtle);--tblr-list-group-active-color: var(--tblr-info-bg-subtle);--tblr-list-group-active-bg: var(--tblr-info-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-info-text-emphasis)}.list-group-item-warning{--tblr-list-group-color: var(--tblr-warning-text-emphasis);--tblr-list-group-bg: var(--tblr-warning-bg-subtle);--tblr-list-group-border-color: var(--tblr-warning-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-warning-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-warning-border-subtle);--tblr-list-group-active-color: var(--tblr-warning-bg-subtle);--tblr-list-group-active-bg: var(--tblr-warning-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-warning-text-emphasis)}.list-group-item-danger{--tblr-list-group-color: var(--tblr-danger-text-emphasis);--tblr-list-group-bg: var(--tblr-danger-bg-subtle);--tblr-list-group-border-color: var(--tblr-danger-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-danger-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-danger-border-subtle);--tblr-list-group-active-color: var(--tblr-danger-bg-subtle);--tblr-list-group-active-bg: var(--tblr-danger-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-danger-text-emphasis)}.list-group-item-light{--tblr-list-group-color: var(--tblr-light-text-emphasis);--tblr-list-group-bg: var(--tblr-light-bg-subtle);--tblr-list-group-border-color: var(--tblr-light-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-light-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-light-border-subtle);--tblr-list-group-active-color: var(--tblr-light-bg-subtle);--tblr-list-group-active-bg: var(--tblr-light-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-light-text-emphasis)}.list-group-item-dark{--tblr-list-group-color: var(--tblr-dark-text-emphasis);--tblr-list-group-bg: var(--tblr-dark-bg-subtle);--tblr-list-group-border-color: var(--tblr-dark-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-dark-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-dark-border-subtle);--tblr-list-group-active-color: var(--tblr-dark-bg-subtle);--tblr-list-group-active-bg: var(--tblr-dark-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-dark-text-emphasis)}.list-group-item-muted{--tblr-list-group-color: var(--tblr-muted-text-emphasis);--tblr-list-group-bg: var(--tblr-muted-bg-subtle);--tblr-list-group-border-color: var(--tblr-muted-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-muted-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-muted-border-subtle);--tblr-list-group-active-color: var(--tblr-muted-bg-subtle);--tblr-list-group-active-bg: var(--tblr-muted-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-muted-text-emphasis)}.list-group-item-blue{--tblr-list-group-color: var(--tblr-blue-text-emphasis);--tblr-list-group-bg: var(--tblr-blue-bg-subtle);--tblr-list-group-border-color: var(--tblr-blue-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-blue-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-blue-border-subtle);--tblr-list-group-active-color: var(--tblr-blue-bg-subtle);--tblr-list-group-active-bg: var(--tblr-blue-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-blue-text-emphasis)}.list-group-item-azure{--tblr-list-group-color: var(--tblr-azure-text-emphasis);--tblr-list-group-bg: var(--tblr-azure-bg-subtle);--tblr-list-group-border-color: var(--tblr-azure-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-azure-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-azure-border-subtle);--tblr-list-group-active-color: var(--tblr-azure-bg-subtle);--tblr-list-group-active-bg: var(--tblr-azure-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-azure-text-emphasis)}.list-group-item-indigo{--tblr-list-group-color: var(--tblr-indigo-text-emphasis);--tblr-list-group-bg: var(--tblr-indigo-bg-subtle);--tblr-list-group-border-color: var(--tblr-indigo-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-indigo-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-indigo-border-subtle);--tblr-list-group-active-color: var(--tblr-indigo-bg-subtle);--tblr-list-group-active-bg: var(--tblr-indigo-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-indigo-text-emphasis)}.list-group-item-purple{--tblr-list-group-color: var(--tblr-purple-text-emphasis);--tblr-list-group-bg: var(--tblr-purple-bg-subtle);--tblr-list-group-border-color: var(--tblr-purple-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-purple-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-purple-border-subtle);--tblr-list-group-active-color: var(--tblr-purple-bg-subtle);--tblr-list-group-active-bg: var(--tblr-purple-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-purple-text-emphasis)}.list-group-item-pink{--tblr-list-group-color: var(--tblr-pink-text-emphasis);--tblr-list-group-bg: var(--tblr-pink-bg-subtle);--tblr-list-group-border-color: var(--tblr-pink-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-pink-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-pink-border-subtle);--tblr-list-group-active-color: var(--tblr-pink-bg-subtle);--tblr-list-group-active-bg: var(--tblr-pink-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-pink-text-emphasis)}.list-group-item-red{--tblr-list-group-color: var(--tblr-red-text-emphasis);--tblr-list-group-bg: var(--tblr-red-bg-subtle);--tblr-list-group-border-color: var(--tblr-red-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-red-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-red-border-subtle);--tblr-list-group-active-color: var(--tblr-red-bg-subtle);--tblr-list-group-active-bg: var(--tblr-red-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-red-text-emphasis)}.list-group-item-orange{--tblr-list-group-color: var(--tblr-orange-text-emphasis);--tblr-list-group-bg: var(--tblr-orange-bg-subtle);--tblr-list-group-border-color: var(--tblr-orange-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-orange-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-orange-border-subtle);--tblr-list-group-active-color: var(--tblr-orange-bg-subtle);--tblr-list-group-active-bg: var(--tblr-orange-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-orange-text-emphasis)}.list-group-item-yellow{--tblr-list-group-color: var(--tblr-yellow-text-emphasis);--tblr-list-group-bg: var(--tblr-yellow-bg-subtle);--tblr-list-group-border-color: var(--tblr-yellow-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-yellow-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-yellow-border-subtle);--tblr-list-group-active-color: var(--tblr-yellow-bg-subtle);--tblr-list-group-active-bg: var(--tblr-yellow-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-yellow-text-emphasis)}.list-group-item-lime{--tblr-list-group-color: var(--tblr-lime-text-emphasis);--tblr-list-group-bg: var(--tblr-lime-bg-subtle);--tblr-list-group-border-color: var(--tblr-lime-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-lime-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-lime-border-subtle);--tblr-list-group-active-color: var(--tblr-lime-bg-subtle);--tblr-list-group-active-bg: var(--tblr-lime-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-lime-text-emphasis)}.list-group-item-green{--tblr-list-group-color: var(--tblr-green-text-emphasis);--tblr-list-group-bg: var(--tblr-green-bg-subtle);--tblr-list-group-border-color: var(--tblr-green-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-green-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-green-border-subtle);--tblr-list-group-active-color: var(--tblr-green-bg-subtle);--tblr-list-group-active-bg: var(--tblr-green-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-green-text-emphasis)}.list-group-item-teal{--tblr-list-group-color: var(--tblr-teal-text-emphasis);--tblr-list-group-bg: var(--tblr-teal-bg-subtle);--tblr-list-group-border-color: var(--tblr-teal-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-teal-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-teal-border-subtle);--tblr-list-group-active-color: var(--tblr-teal-bg-subtle);--tblr-list-group-active-bg: var(--tblr-teal-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-teal-text-emphasis)}.list-group-item-cyan{--tblr-list-group-color: var(--tblr-cyan-text-emphasis);--tblr-list-group-bg: var(--tblr-cyan-bg-subtle);--tblr-list-group-border-color: var(--tblr-cyan-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-cyan-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-cyan-border-subtle);--tblr-list-group-active-color: var(--tblr-cyan-bg-subtle);--tblr-list-group-active-bg: var(--tblr-cyan-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-cyan-text-emphasis)}.list-group-item-x{--tblr-list-group-color: var(--tblr-x-text-emphasis);--tblr-list-group-bg: var(--tblr-x-bg-subtle);--tblr-list-group-border-color: var(--tblr-x-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-x-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-x-border-subtle);--tblr-list-group-active-color: var(--tblr-x-bg-subtle);--tblr-list-group-active-bg: var(--tblr-x-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-x-text-emphasis)}.list-group-item-facebook{--tblr-list-group-color: var(--tblr-facebook-text-emphasis);--tblr-list-group-bg: var(--tblr-facebook-bg-subtle);--tblr-list-group-border-color: var(--tblr-facebook-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-facebook-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-facebook-border-subtle);--tblr-list-group-active-color: var(--tblr-facebook-bg-subtle);--tblr-list-group-active-bg: var(--tblr-facebook-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-facebook-text-emphasis)}.list-group-item-twitter{--tblr-list-group-color: var(--tblr-twitter-text-emphasis);--tblr-list-group-bg: var(--tblr-twitter-bg-subtle);--tblr-list-group-border-color: var(--tblr-twitter-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-twitter-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-twitter-border-subtle);--tblr-list-group-active-color: var(--tblr-twitter-bg-subtle);--tblr-list-group-active-bg: var(--tblr-twitter-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-twitter-text-emphasis)}.list-group-item-linkedin{--tblr-list-group-color: var(--tblr-linkedin-text-emphasis);--tblr-list-group-bg: var(--tblr-linkedin-bg-subtle);--tblr-list-group-border-color: var(--tblr-linkedin-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-linkedin-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-linkedin-border-subtle);--tblr-list-group-active-color: var(--tblr-linkedin-bg-subtle);--tblr-list-group-active-bg: var(--tblr-linkedin-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-linkedin-text-emphasis)}.list-group-item-google{--tblr-list-group-color: var(--tblr-google-text-emphasis);--tblr-list-group-bg: var(--tblr-google-bg-subtle);--tblr-list-group-border-color: var(--tblr-google-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-google-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-google-border-subtle);--tblr-list-group-active-color: var(--tblr-google-bg-subtle);--tblr-list-group-active-bg: var(--tblr-google-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-google-text-emphasis)}.list-group-item-youtube{--tblr-list-group-color: var(--tblr-youtube-text-emphasis);--tblr-list-group-bg: var(--tblr-youtube-bg-subtle);--tblr-list-group-border-color: var(--tblr-youtube-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-youtube-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-youtube-border-subtle);--tblr-list-group-active-color: var(--tblr-youtube-bg-subtle);--tblr-list-group-active-bg: var(--tblr-youtube-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-youtube-text-emphasis)}.list-group-item-vimeo{--tblr-list-group-color: var(--tblr-vimeo-text-emphasis);--tblr-list-group-bg: var(--tblr-vimeo-bg-subtle);--tblr-list-group-border-color: var(--tblr-vimeo-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-vimeo-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-vimeo-border-subtle);--tblr-list-group-active-color: var(--tblr-vimeo-bg-subtle);--tblr-list-group-active-bg: var(--tblr-vimeo-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-vimeo-text-emphasis)}.list-group-item-dribbble{--tblr-list-group-color: var(--tblr-dribbble-text-emphasis);--tblr-list-group-bg: var(--tblr-dribbble-bg-subtle);--tblr-list-group-border-color: var(--tblr-dribbble-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-dribbble-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-dribbble-border-subtle);--tblr-list-group-active-color: var(--tblr-dribbble-bg-subtle);--tblr-list-group-active-bg: var(--tblr-dribbble-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-dribbble-text-emphasis)}.list-group-item-github{--tblr-list-group-color: var(--tblr-github-text-emphasis);--tblr-list-group-bg: var(--tblr-github-bg-subtle);--tblr-list-group-border-color: var(--tblr-github-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-github-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-github-border-subtle);--tblr-list-group-active-color: var(--tblr-github-bg-subtle);--tblr-list-group-active-bg: var(--tblr-github-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-github-text-emphasis)}.list-group-item-instagram{--tblr-list-group-color: var(--tblr-instagram-text-emphasis);--tblr-list-group-bg: var(--tblr-instagram-bg-subtle);--tblr-list-group-border-color: var(--tblr-instagram-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-instagram-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-instagram-border-subtle);--tblr-list-group-active-color: var(--tblr-instagram-bg-subtle);--tblr-list-group-active-bg: var(--tblr-instagram-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-instagram-text-emphasis)}.list-group-item-pinterest{--tblr-list-group-color: var(--tblr-pinterest-text-emphasis);--tblr-list-group-bg: var(--tblr-pinterest-bg-subtle);--tblr-list-group-border-color: var(--tblr-pinterest-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-pinterest-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-pinterest-border-subtle);--tblr-list-group-active-color: var(--tblr-pinterest-bg-subtle);--tblr-list-group-active-bg: var(--tblr-pinterest-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-pinterest-text-emphasis)}.list-group-item-vk{--tblr-list-group-color: var(--tblr-vk-text-emphasis);--tblr-list-group-bg: var(--tblr-vk-bg-subtle);--tblr-list-group-border-color: var(--tblr-vk-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-vk-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-vk-border-subtle);--tblr-list-group-active-color: var(--tblr-vk-bg-subtle);--tblr-list-group-active-bg: var(--tblr-vk-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-vk-text-emphasis)}.list-group-item-rss{--tblr-list-group-color: var(--tblr-rss-text-emphasis);--tblr-list-group-bg: var(--tblr-rss-bg-subtle);--tblr-list-group-border-color: var(--tblr-rss-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-rss-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-rss-border-subtle);--tblr-list-group-active-color: var(--tblr-rss-bg-subtle);--tblr-list-group-active-bg: var(--tblr-rss-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-rss-text-emphasis)}.list-group-item-flickr{--tblr-list-group-color: var(--tblr-flickr-text-emphasis);--tblr-list-group-bg: var(--tblr-flickr-bg-subtle);--tblr-list-group-border-color: var(--tblr-flickr-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-flickr-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-flickr-border-subtle);--tblr-list-group-active-color: var(--tblr-flickr-bg-subtle);--tblr-list-group-active-bg: var(--tblr-flickr-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-flickr-text-emphasis)}.list-group-item-bitbucket{--tblr-list-group-color: var(--tblr-bitbucket-text-emphasis);--tblr-list-group-bg: var(--tblr-bitbucket-bg-subtle);--tblr-list-group-border-color: var(--tblr-bitbucket-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-bitbucket-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-bitbucket-border-subtle);--tblr-list-group-active-color: var(--tblr-bitbucket-bg-subtle);--tblr-list-group-active-bg: var(--tblr-bitbucket-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-bitbucket-text-emphasis)}.list-group-item-tabler{--tblr-list-group-color: var(--tblr-tabler-text-emphasis);--tblr-list-group-bg: var(--tblr-tabler-bg-subtle);--tblr-list-group-border-color: var(--tblr-tabler-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-tabler-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-tabler-border-subtle);--tblr-list-group-active-color: var(--tblr-tabler-bg-subtle);--tblr-list-group-active-bg: var(--tblr-tabler-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-tabler-text-emphasis)}.btn-close{--tblr-btn-close-color: #182433;--tblr-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23182433'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--tblr-btn-close-opacity: .4;--tblr-btn-close-hover-opacity: .75;--tblr-btn-close-focus-shadow: 0 0 0 .25rem rgba(var(--tblr-primary-rgb), .25);--tblr-btn-close-focus-opacity: 1;--tblr-btn-close-disabled-opacity: .25;--tblr-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--tblr-btn-close-color);background:transparent var(--tblr-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:4px;opacity:var(--tblr-btn-close-opacity)}.btn-close:hover{color:var(--tblr-btn-close-color);text-decoration:none;opacity:var(--tblr-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--tblr-btn-close-focus-shadow);opacity:var(--tblr-btn-close-focus-opacity)}.btn-close:disabled,.btn-close.disabled{pointer-events:none;user-select:none;opacity:var(--tblr-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close,body[data-bs-theme=dark] [data-bs-theme=light] .btn-close{filter:var(--tblr-btn-close-white-filter)}.toast{--tblr-toast-zindex: 1090;--tblr-toast-padding-x: .75rem;--tblr-toast-padding-y: .5rem;--tblr-toast-spacing: calc(var(--tblr-page-padding) * 2);--tblr-toast-max-width: 350px;--tblr-toast-font-size: .875rem;--tblr-toast-color: ;--tblr-toast-bg: rgba(var(--tblr-body-bg-rgb), .85);--tblr-toast-border-width: var(--tblr-border-width);--tblr-toast-border-color: var(--tblr-border-color);--tblr-toast-border-radius: var(--tblr-border-radius);--tblr-toast-box-shadow: var(--tblr-box-shadow);--tblr-toast-header-color: var(--tblr-gray-500);--tblr-toast-header-bg: rgba(var(--tblr-body-bg-rgb), .85);--tblr-toast-header-border-color: var(--tblr-border-color);width:var(--tblr-toast-max-width);max-width:100%;font-size:var(--tblr-toast-font-size);color:var(--tblr-toast-color);pointer-events:auto;background-color:var(--tblr-toast-bg);background-clip:padding-box;border:var(--tblr-toast-border-width) solid var(--tblr-toast-border-color);box-shadow:var(--tblr-toast-box-shadow);border-radius:var(--tblr-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--tblr-toast-zindex: 1090;position:absolute;z-index:var(--tblr-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--tblr-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--tblr-toast-padding-y) var(--tblr-toast-padding-x);color:var(--tblr-toast-header-color);background-color:var(--tblr-toast-header-bg);background-clip:padding-box;border-bottom:var(--tblr-toast-border-width) solid var(--tblr-toast-header-border-color);border-top-left-radius:calc(var(--tblr-toast-border-radius) - var(--tblr-toast-border-width));border-top-right-radius:calc(var(--tblr-toast-border-radius) - var(--tblr-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--tblr-toast-padding-x));margin-left:var(--tblr-toast-padding-x)}.toast-body{padding:var(--tblr-toast-padding-x);word-wrap:break-word}.modal{--tblr-modal-zindex: 1055;--tblr-modal-width: 540px;--tblr-modal-padding: 1.5rem;--tblr-modal-margin: .5rem;--tblr-modal-color: ;--tblr-modal-bg: var(--tblr-bg-surface);--tblr-modal-border-color: transparent;--tblr-modal-border-width: var(--tblr-border-width);--tblr-modal-border-radius: var(--tblr-border-radius-lg);--tblr-modal-box-shadow: var(--tblr-box-shadow-sm);--tblr-modal-inner-border-radius: calc(var(--tblr-modal-border-radius) - 1px);--tblr-modal-header-padding-x: 1.5rem;--tblr-modal-header-padding-y: 1.5rem;--tblr-modal-header-padding: 1.5rem;--tblr-modal-header-border-color: var(--tblr-border-color);--tblr-modal-header-border-width: var(--tblr-border-width);--tblr-modal-title-line-height: 1.4285714286;--tblr-modal-footer-gap: .75rem;--tblr-modal-footer-bg: var(--tblr-bg-surface-tertiary);--tblr-modal-footer-border-color: var(--tblr-border-color);--tblr-modal-footer-border-width: var(--tblr-border-width);position:fixed;top:0;left:0;z-index:var(--tblr-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--tblr-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-1rem)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--tblr-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--tblr-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--tblr-modal-color);pointer-events:auto;background-color:var(--tblr-modal-bg);background-clip:padding-box;border:var(--tblr-modal-border-width) solid var(--tblr-modal-border-color);border-radius:var(--tblr-modal-border-radius);box-shadow:var(--tblr-modal-box-shadow);outline:0}.modal-backdrop{--tblr-backdrop-zindex: 1050;--tblr-backdrop-bg: #182433;--tblr-backdrop-opacity: .24;position:fixed;top:0;left:0;z-index:var(--tblr-backdrop-zindex);width:100vw;height:100vh;background-color:var(--tblr-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--tblr-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--tblr-modal-header-padding);border-bottom:var(--tblr-modal-header-border-width) solid var(--tblr-modal-header-border-color);border-top-left-radius:var(--tblr-modal-inner-border-radius);border-top-right-radius:var(--tblr-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--tblr-modal-header-padding-y) * .5) calc(var(--tblr-modal-header-padding-x) * .5);margin:calc(-.5 * var(--tblr-modal-header-padding-y)) calc(-.5 * var(--tblr-modal-header-padding-x)) calc(-.5 * var(--tblr-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--tblr-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--tblr-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--tblr-modal-padding) - var(--tblr-modal-footer-gap) * .5);background-color:var(--tblr-modal-footer-bg);border-top:var(--tblr-modal-footer-border-width) solid var(--tblr-modal-footer-border-color);border-bottom-right-radius:var(--tblr-modal-inner-border-radius);border-bottom-left-radius:var(--tblr-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--tblr-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--tblr-modal-margin: 1.75rem;--tblr-modal-box-shadow: var(--tblr-box-shadow)}.modal-dialog{max-width:var(--tblr-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--tblr-modal-width: 380px}}@media (min-width: 992px){.modal-lg,.modal-xl{--tblr-modal-width: 720px}}@media (min-width: 1200px){.modal-xl{--tblr-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--tblr-tooltip-zindex: 1080;--tblr-tooltip-max-width: 200px;--tblr-tooltip-padding-x: var(--tblr-spacer-2);--tblr-tooltip-padding-y: var(--tblr-spacer-2);--tblr-tooltip-margin: ;--tblr-tooltip-font-size: .765625rem;--tblr-tooltip-color: var(--tblr-light);--tblr-tooltip-bg: var(--tblr-bg-surface-dark);--tblr-tooltip-border-radius: var(--tblr-border-radius);--tblr-tooltip-opacity: .9;--tblr-tooltip-arrow-width: .8rem;--tblr-tooltip-arrow-height: .4rem;z-index:var(--tblr-tooltip-zindex);display:block;margin:var(--tblr-tooltip-margin);font-family:var(--tblr-font-sans-serif);font-style:normal;font-weight:400;line-height:1.4285714286;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--tblr-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--tblr-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--tblr-tooltip-arrow-width);height:var(--tblr-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:calc(-1 * var(--tblr-tooltip-arrow-height))}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--tblr-tooltip-arrow-height) calc(var(--tblr-tooltip-arrow-width) * .5) 0;border-top-color:var(--tblr-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:calc(-1 * var(--tblr-tooltip-arrow-height));width:var(--tblr-tooltip-arrow-height);height:var(--tblr-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--tblr-tooltip-arrow-width) * .5) var(--tblr-tooltip-arrow-height) calc(var(--tblr-tooltip-arrow-width) * .5) 0;border-right-color:var(--tblr-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:calc(-1 * var(--tblr-tooltip-arrow-height))}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--tblr-tooltip-arrow-width) * .5) var(--tblr-tooltip-arrow-height);border-bottom-color:var(--tblr-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:calc(-1 * var(--tblr-tooltip-arrow-height));width:var(--tblr-tooltip-arrow-height);height:var(--tblr-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--tblr-tooltip-arrow-width) * .5) 0 calc(var(--tblr-tooltip-arrow-width) * .5) var(--tblr-tooltip-arrow-height);border-left-color:var(--tblr-tooltip-bg)}.tooltip-inner{max-width:var(--tblr-tooltip-max-width);padding:var(--tblr-tooltip-padding-y) var(--tblr-tooltip-padding-x);color:var(--tblr-tooltip-color);text-align:center;background-color:var(--tblr-tooltip-bg);border-radius:var(--tblr-tooltip-border-radius)}.popover{--tblr-popover-zindex: 1070;--tblr-popover-max-width: 276px;--tblr-popover-font-size: .765625rem;--tblr-popover-bg: var(--tblr-bg-surface);--tblr-popover-border-width: var(--tblr-border-width);--tblr-popover-border-color: var(--tblr-border-color);--tblr-popover-border-radius: var(--tblr-border-radius-lg);--tblr-popover-inner-border-radius: calc(var(--tblr-border-radius-lg) - var(--tblr-border-width));--tblr-popover-box-shadow: var(--tblr-box-shadow);--tblr-popover-header-padding-x: 1rem;--tblr-popover-header-padding-y: .5rem;--tblr-popover-header-font-size: .875rem;--tblr-popover-header-color: inherit;--tblr-popover-header-bg: transparent;--tblr-popover-body-padding-x: 1rem;--tblr-popover-body-padding-y: 1rem;--tblr-popover-body-color: inherit;--tblr-popover-arrow-width: 1rem;--tblr-popover-arrow-height: .5rem;--tblr-popover-arrow-border: var(--tblr-popover-border-color);z-index:var(--tblr-popover-zindex);display:block;max-width:var(--tblr-popover-max-width);font-family:var(--tblr-font-sans-serif);font-style:normal;font-weight:400;line-height:1.4285714286;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--tblr-popover-font-size);word-wrap:break-word;background-color:var(--tblr-popover-bg);background-clip:padding-box;border:var(--tblr-popover-border-width) solid var(--tblr-popover-border-color);border-radius:var(--tblr-popover-border-radius);box-shadow:var(--tblr-popover-box-shadow)}.popover .popover-arrow{display:block;width:var(--tblr-popover-arrow-width);height:var(--tblr-popover-arrow-height)}.popover .popover-arrow:before,.popover .popover-arrow:after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-top>.popover-arrow,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--tblr-popover-arrow-height)) - var(--tblr-popover-border-width))}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--tblr-popover-arrow-height) calc(var(--tblr-popover-arrow-width) * .5) 0}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--tblr-popover-arrow-border)}.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--tblr-popover-border-width);border-top-color:var(--tblr-popover-bg)}.bs-popover-end>.popover-arrow,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--tblr-popover-arrow-height)) - var(--tblr-popover-border-width));width:var(--tblr-popover-arrow-height);height:var(--tblr-popover-arrow-width)}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--tblr-popover-arrow-width) * .5) var(--tblr-popover-arrow-height) calc(var(--tblr-popover-arrow-width) * .5) 0}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--tblr-popover-arrow-border)}.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--tblr-popover-border-width);border-right-color:var(--tblr-popover-bg)}.bs-popover-bottom>.popover-arrow,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--tblr-popover-arrow-height)) - var(--tblr-popover-border-width))}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--tblr-popover-arrow-width) * .5) var(--tblr-popover-arrow-height)}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--tblr-popover-arrow-border)}.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--tblr-popover-border-width);border-bottom-color:var(--tblr-popover-bg)}.bs-popover-bottom .popover-header:before,.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--tblr-popover-arrow-width);margin-left:calc(-.5 * var(--tblr-popover-arrow-width));content:"";border-bottom:var(--tblr-popover-border-width) solid var(--tblr-popover-header-bg)}.bs-popover-start>.popover-arrow,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--tblr-popover-arrow-height)) - var(--tblr-popover-border-width));width:var(--tblr-popover-arrow-height);height:var(--tblr-popover-arrow-width)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--tblr-popover-arrow-width) * .5) 0 calc(var(--tblr-popover-arrow-width) * .5) var(--tblr-popover-arrow-height)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--tblr-popover-arrow-border)}.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--tblr-popover-border-width);border-left-color:var(--tblr-popover-bg)}.popover-header{padding:var(--tblr-popover-header-padding-y) var(--tblr-popover-header-padding-x);margin-bottom:0;font-size:var(--tblr-popover-header-font-size);color:var(--tblr-popover-header-color);background-color:var(--tblr-popover-header-bg);border-bottom:var(--tblr-popover-border-width) solid var(--tblr-popover-border-color);border-top-left-radius:var(--tblr-popover-inner-border-radius);border-top-right-radius:var(--tblr-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--tblr-popover-body-padding-y) var(--tblr-popover-body-padding-x);color:var(--tblr-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-start),.active.carousel-item-end{transform:translate(100%)}.carousel-item-prev:not(.carousel-item-end),.active.carousel-item-start{transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='15 18 9 12 15 6'%3e%3c/polyline%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='9 18 15 12 9 6'%3e%3c/polyline%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-prev-icon,.carousel-dark .carousel-control-next-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-grow,.spinner-border{display:inline-block;width:var(--tblr-spinner-width);height:var(--tblr-spinner-height);vertical-align:var(--tblr-spinner-vertical-align);border-radius:50%;animation:var(--tblr-spinner-animation-speed) linear infinite var(--tblr-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--tblr-spinner-width: 1.5rem;--tblr-spinner-height: 1.5rem;--tblr-spinner-vertical-align: -.125em;--tblr-spinner-border-width: 2px;--tblr-spinner-animation-speed: .75s;--tblr-spinner-animation-name: spinner-border;border:var(--tblr-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--tblr-spinner-width: 1rem;--tblr-spinner-height: 1rem;--tblr-spinner-border-width: 1px}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--tblr-spinner-width: 1.5rem;--tblr-spinner-height: 1.5rem;--tblr-spinner-vertical-align: -.125em;--tblr-spinner-animation-speed: .75s;--tblr-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--tblr-spinner-width: 1rem;--tblr-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--tblr-spinner-animation-speed: 1.5s}}.offcanvas,.offcanvas-xxl,.offcanvas-xl,.offcanvas-lg,.offcanvas-md,.offcanvas-sm{--tblr-offcanvas-zindex: 1045;--tblr-offcanvas-width: 400px;--tblr-offcanvas-height: 30vh;--tblr-offcanvas-padding-x: 1.5rem;--tblr-offcanvas-padding-y: 1.5rem;--tblr-offcanvas-color: var(--tblr-body-color);--tblr-offcanvas-bg: var(--tblr-bg-surface);--tblr-offcanvas-border-width: var(--tblr-border-width);--tblr-offcanvas-border-color: var(--tblr-border-color);--tblr-offcanvas-box-shadow: var(--tblr-box-shadow-sm);--tblr-offcanvas-transition: transform .3s ease-in-out;--tblr-offcanvas-title-line-height: 1.4285714286}@media (max-width: 575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 575.98px) and (prefers-reduced-motion: reduce){.offcanvas-sm{transition:none}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}.offcanvas-sm.showing,.offcanvas-sm.hiding,.offcanvas-sm.show{visibility:visible}}@media (min-width: 576px){.offcanvas-sm{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){.offcanvas-md{transition:none}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}.offcanvas-md.showing,.offcanvas-md.hiding,.offcanvas-md.show{visibility:visible}}@media (min-width: 768px){.offcanvas-md{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){.offcanvas-lg{transition:none}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}.offcanvas-lg.showing,.offcanvas-lg.hiding,.offcanvas-lg.show{visibility:visible}}@media (min-width: 992px){.offcanvas-lg{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce){.offcanvas-xl{transition:none}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}.offcanvas-xl.showing,.offcanvas-xl.hiding,.offcanvas-xl.show{visibility:visible}}@media (min-width: 1200px){.offcanvas-xl{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 1399.98px) and (prefers-reduced-motion: reduce){.offcanvas-xxl{transition:none}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}.offcanvas-xxl.showing,.offcanvas-xxl.hiding,.offcanvas-xxl.show{visibility:visible}}@media (min-width: 1400px){.offcanvas-xxl{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}@media (prefers-reduced-motion: reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas.showing,.offcanvas.show:not(.hiding){transform:none}.offcanvas.showing,.offcanvas.hiding,.offcanvas.show{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#182433}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.24}.offcanvas-header{display:flex;align-items:center;padding:var(--tblr-offcanvas-padding-y) var(--tblr-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--tblr-offcanvas-padding-y) * .5) calc(var(--tblr-offcanvas-padding-x) * .5);margin:calc(-.5 * var(--tblr-offcanvas-padding-y)) calc(-.5 * var(--tblr-offcanvas-padding-x)) calc(-.5 * var(--tblr-offcanvas-padding-y)) auto}.offcanvas-title{margin-bottom:0;line-height:var(--tblr-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--tblr-offcanvas-padding-y) var(--tblr-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.2}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.1}}.placeholder-wave{mask-image:linear-gradient(130deg,#000 55%,#000000e6,#000 95%);mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#f6f8fb!important;background-color:RGBA(var(--tblr-primary-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-secondary,.text-bg-gray{color:#f6f8fb!important;background-color:RGBA(var(--tblr-secondary-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-success{color:#f6f8fb!important;background-color:RGBA(var(--tblr-success-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-info{color:#f6f8fb!important;background-color:RGBA(var(--tblr-info-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-warning{color:#f6f8fb!important;background-color:RGBA(var(--tblr-warning-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-danger{color:#f6f8fb!important;background-color:RGBA(var(--tblr-danger-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-light,.text-bg-white{color:#182433!important;background-color:RGBA(var(--tblr-light-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-dark,.text-bg-black{color:#f6f8fb!important;background-color:RGBA(var(--tblr-dark-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-muted{color:#f6f8fb!important;background-color:RGBA(var(--tblr-muted-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-blue{color:#f6f8fb!important;background-color:RGBA(var(--tblr-blue-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-azure{color:#f6f8fb!important;background-color:RGBA(var(--tblr-azure-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-indigo{color:#f6f8fb!important;background-color:RGBA(var(--tblr-indigo-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-purple{color:#f6f8fb!important;background-color:RGBA(var(--tblr-purple-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-pink{color:#f6f8fb!important;background-color:RGBA(var(--tblr-pink-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-red{color:#f6f8fb!important;background-color:RGBA(var(--tblr-red-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-orange{color:#f6f8fb!important;background-color:RGBA(var(--tblr-orange-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-yellow{color:#f6f8fb!important;background-color:RGBA(var(--tblr-yellow-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-lime{color:#f6f8fb!important;background-color:RGBA(var(--tblr-lime-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-green{color:#f6f8fb!important;background-color:RGBA(var(--tblr-green-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-teal{color:#f6f8fb!important;background-color:RGBA(var(--tblr-teal-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-cyan{color:#f6f8fb!important;background-color:RGBA(var(--tblr-cyan-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-x{color:#f6f8fb!important;background-color:RGBA(var(--tblr-x-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-facebook{color:#f6f8fb!important;background-color:RGBA(var(--tblr-facebook-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-twitter{color:#f6f8fb!important;background-color:RGBA(var(--tblr-twitter-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-linkedin{color:#f6f8fb!important;background-color:RGBA(var(--tblr-linkedin-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-google{color:#f6f8fb!important;background-color:RGBA(var(--tblr-google-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-youtube{color:#f6f8fb!important;background-color:RGBA(var(--tblr-youtube-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-vimeo{color:#f6f8fb!important;background-color:RGBA(var(--tblr-vimeo-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-dribbble{color:#f6f8fb!important;background-color:RGBA(var(--tblr-dribbble-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-github{color:#f6f8fb!important;background-color:RGBA(var(--tblr-github-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-instagram{color:#f6f8fb!important;background-color:RGBA(var(--tblr-instagram-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-pinterest{color:#f6f8fb!important;background-color:RGBA(var(--tblr-pinterest-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-vk{color:#f6f8fb!important;background-color:RGBA(var(--tblr-vk-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-rss{color:#f6f8fb!important;background-color:RGBA(var(--tblr-rss-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-flickr{color:#f6f8fb!important;background-color:RGBA(var(--tblr-flickr-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-bitbucket{color:#f6f8fb!important;background-color:RGBA(var(--tblr-bitbucket-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-tabler{color:#f6f8fb!important;background-color:RGBA(var(--tblr-tabler-rgb),var(--tblr-bg-opacity, 1))!important}.link-primary{color:RGBA(var(--tblr-primary-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-primary-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-primary:hover,.link-primary:focus{color:RGBA(0,106,100,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(0,106,100,var(--tblr-link-underline-opacity, 1))!important}.link-secondary{color:RGBA(var(--tblr-secondary-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-secondary-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-secondary:hover,.link-secondary:focus{color:RGBA(86,98,116,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(86,98,116,var(--tblr-link-underline-opacity, 1))!important}.link-success{color:RGBA(var(--tblr-success-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-success-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-success:hover,.link-success:focus{color:RGBA(38,143,54,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(38,143,54,var(--tblr-link-underline-opacity, 1))!important}.link-info{color:RGBA(var(--tblr-info-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-info-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-info:hover,.link-info:focus{color:RGBA(53,122,180,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(53,122,180,var(--tblr-link-underline-opacity, 1))!important}.link-warning{color:RGBA(var(--tblr-warning-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-warning-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-warning:hover,.link-warning:focus{color:RGBA(198,82,6,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(198,82,6,var(--tblr-link-underline-opacity, 1))!important}.link-danger{color:RGBA(var(--tblr-danger-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-danger-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-danger:hover,.link-danger:focus{color:RGBA(171,46,46,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(171,46,46,var(--tblr-link-underline-opacity, 1))!important}.link-light{color:RGBA(var(--tblr-light-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-light-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-light:hover,.link-light:focus{color:RGBA(248,249,252,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(248,249,252,var(--tblr-link-underline-opacity, 1))!important}.link-dark{color:RGBA(var(--tblr-dark-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-dark-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-dark:hover,.link-dark:focus{color:RGBA(19,29,41,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(19,29,41,var(--tblr-link-underline-opacity, 1))!important}.link-muted{color:RGBA(var(--tblr-muted-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-muted-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-muted:hover,.link-muted:focus{color:RGBA(86,98,116,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(86,98,116,var(--tblr-link-underline-opacity, 1))!important}.link-blue{color:RGBA(var(--tblr-blue-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-blue-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-blue:hover,.link-blue:focus{color:RGBA(5,89,167,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(5,89,167,var(--tblr-link-underline-opacity, 1))!important}.link-azure{color:RGBA(var(--tblr-azure-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-azure-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-azure:hover,.link-azure:focus{color:RGBA(53,122,180,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(53,122,180,var(--tblr-link-underline-opacity, 1))!important}.link-indigo{color:RGBA(var(--tblr-indigo-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-indigo-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-indigo:hover,.link-indigo:focus{color:RGBA(53,79,188,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(53,79,188,var(--tblr-link-underline-opacity, 1))!important}.link-purple{color:RGBA(var(--tblr-purple-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-purple-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-purple:hover,.link-purple:focus{color:RGBA(139,50,161,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(139,50,161,var(--tblr-link-underline-opacity, 1))!important}.link-pink{color:RGBA(var(--tblr-pink-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-pink-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-pink:hover,.link-pink:focus{color:RGBA(171,41,86,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(171,41,86,var(--tblr-link-underline-opacity, 1))!important}.link-red{color:RGBA(var(--tblr-red-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-red-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-red:hover,.link-red:focus{color:RGBA(171,46,46,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(171,46,46,var(--tblr-link-underline-opacity, 1))!important}.link-orange{color:RGBA(var(--tblr-orange-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-orange-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-orange:hover,.link-orange:focus{color:RGBA(198,82,6,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(198,82,6,var(--tblr-link-underline-opacity, 1))!important}.link-yellow{color:RGBA(var(--tblr-yellow-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-yellow-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-yellow:hover,.link-yellow:focus{color:RGBA(196,127,0,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(196,127,0,var(--tblr-link-underline-opacity, 1))!important}.link-lime{color:RGBA(var(--tblr-lime-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-lime-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-lime:hover,.link-lime:focus{color:RGBA(93,147,18,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(93,147,18,var(--tblr-link-underline-opacity, 1))!important}.link-green{color:RGBA(var(--tblr-green-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-green-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-green:hover,.link-green:focus{color:RGBA(38,143,54,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(38,143,54,var(--tblr-link-underline-opacity, 1))!important}.link-teal{color:RGBA(var(--tblr-teal-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-teal-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-teal:hover,.link-teal:focus{color:RGBA(10,133,96,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(10,133,96,var(--tblr-link-underline-opacity, 1))!important}.link-cyan{color:RGBA(var(--tblr-cyan-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-cyan-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-cyan:hover,.link-cyan:focus{color:RGBA(18,130,147,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(18,130,147,var(--tblr-link-underline-opacity, 1))!important}.link-x{color:RGBA(var(--tblr-x-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-x-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-x:hover,.link-x:focus{color:RGBA(0,0,0,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(0,0,0,var(--tblr-link-underline-opacity, 1))!important}.link-facebook{color:RGBA(var(--tblr-facebook-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-facebook-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-facebook:hover,.link-facebook:focus{color:RGBA(19,95,194,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(19,95,194,var(--tblr-link-underline-opacity, 1))!important}.link-twitter{color:RGBA(var(--tblr-twitter-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-twitter-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-twitter:hover,.link-twitter:focus{color:RGBA(23,129,194,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(23,129,194,var(--tblr-link-underline-opacity, 1))!important}.link-linkedin{color:RGBA(var(--tblr-linkedin-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-linkedin-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-linkedin:hover,.link-linkedin:focus{color:RGBA(8,82,155,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(8,82,155,var(--tblr-link-underline-opacity, 1))!important}.link-google{color:RGBA(var(--tblr-google-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-google-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-google:hover,.link-google:focus{color:RGBA(176,62,52,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(176,62,52,var(--tblr-link-underline-opacity, 1))!important}.link-youtube{color:RGBA(var(--tblr-youtube-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-youtube-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-youtube:hover,.link-youtube:focus{color:RGBA(204,0,0,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(204,0,0,var(--tblr-link-underline-opacity, 1))!important}.link-vimeo{color:RGBA(var(--tblr-vimeo-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-vimeo-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-vimeo:hover,.link-vimeo:focus{color:RGBA(21,146,187,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(21,146,187,var(--tblr-link-underline-opacity, 1))!important}.link-dribbble{color:RGBA(var(--tblr-dribbble-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-dribbble-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-dribbble:hover,.link-dribbble:focus{color:RGBA(187,61,110,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(187,61,110,var(--tblr-link-underline-opacity, 1))!important}.link-github{color:RGBA(var(--tblr-github-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-github-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-github:hover,.link-github:focus{color:RGBA(19,18,18,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(19,18,18,var(--tblr-link-underline-opacity, 1))!important}.link-instagram{color:RGBA(var(--tblr-instagram-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-instagram-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-instagram:hover,.link-instagram:focus{color:RGBA(182,51,76,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(182,51,76,var(--tblr-link-underline-opacity, 1))!important}.link-pinterest{color:RGBA(var(--tblr-pinterest-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-pinterest-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-pinterest:hover,.link-pinterest:focus{color:RGBA(151,6,22,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(151,6,22,var(--tblr-link-underline-opacity, 1))!important}.link-vk{color:RGBA(var(--tblr-vk-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-vk-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-vk:hover,.link-vk:focus{color:RGBA(79,105,134,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(79,105,134,var(--tblr-link-underline-opacity, 1))!important}.link-rss{color:RGBA(var(--tblr-rss-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-rss-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-rss:hover,.link-rss:focus{color:RGBA(204,132,0,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(204,132,0,var(--tblr-link-underline-opacity, 1))!important}.link-flickr{color:RGBA(var(--tblr-flickr-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-flickr-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-flickr:hover,.link-flickr:focus{color:RGBA(0,79,176,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(0,79,176,var(--tblr-link-underline-opacity, 1))!important}.link-bitbucket{color:RGBA(var(--tblr-bitbucket-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-bitbucket-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-bitbucket:hover,.link-bitbucket:focus{color:RGBA(0,66,163,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(0,66,163,var(--tblr-link-underline-opacity, 1))!important}.link-tabler{color:RGBA(var(--tblr-tabler-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-tabler-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-tabler:hover,.link-tabler:focus{color:RGBA(5,89,167,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(5,89,167,var(--tblr-link-underline-opacity, 1))!important}.link-body-emphasis{color:RGBA(var(--tblr-emphasis-color-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-emphasis-color-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--tblr-emphasis-color-rgb),var(--tblr-link-opacity, .75))!important;text-decoration-color:RGBA(var(--tblr-emphasis-color-rgb),var(--tblr-link-underline-opacity, .75))!important}.focus-ring:focus{outline:0;box-shadow:var(--tblr-focus-ring-x, 0) var(--tblr-focus-ring-y, 0) var(--tblr-focus-ring-blur, 0) var(--tblr-focus-ring-width) var(--tblr-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;text-decoration-color:rgba(var(--tblr-link-color-rgb),var(--tblr-link-opacity, .5));text-underline-offset:.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--tblr-icon-link-transform, translate3d(.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--tblr-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--tblr-aspect-ratio: 100%}.ratio-2x1{--tblr-aspect-ratio: 50%}.ratio-1x2{--tblr-aspect-ratio: 200%}.ratio-3x1{--tblr-aspect-ratio: 33.3333333333%}.ratio-1x3{--tblr-aspect-ratio: 300%}.ratio-4x3{--tblr-aspect-ratio: 75%}.ratio-3x4{--tblr-aspect-ratio: 133.3333333333%}.ratio-16x9{--tblr-aspect-ratio: 56.25%}.ratio-9x16{--tblr-aspect-ratio: 177.7777777778%}.ratio-21x9{--tblr-aspect-ratio: 42.8571428571%}.ratio-9x21{--tblr-aspect-ratio: 233.3333333333%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute!important}.stretched-link:after{position:absolute;inset:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--tblr-border-width);min-height:1em;background-color:currentcolor;opacity:.16}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{object-fit:contain!important}.object-fit-cover{object-fit:cover!important}.object-fit-fill{object-fit:fill!important}.object-fit-scale{object-fit:scale-down!important}.object-fit-none{object-fit:none!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--tblr-box-shadow)!important}.shadow-sm{box-shadow:var(--tblr-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--tblr-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--tblr-focus-ring-color: rgba(var(--tblr-primary-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-secondary{--tblr-focus-ring-color: rgba(var(--tblr-secondary-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-success{--tblr-focus-ring-color: rgba(var(--tblr-success-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-info{--tblr-focus-ring-color: rgba(var(--tblr-info-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-warning{--tblr-focus-ring-color: rgba(var(--tblr-warning-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-danger{--tblr-focus-ring-color: rgba(var(--tblr-danger-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-light{--tblr-focus-ring-color: rgba(var(--tblr-light-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-dark{--tblr-focus-ring-color: rgba(var(--tblr-dark-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-muted{--tblr-focus-ring-color: rgba(var(--tblr-muted-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-blue{--tblr-focus-ring-color: rgba(var(--tblr-blue-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-azure{--tblr-focus-ring-color: rgba(var(--tblr-azure-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-indigo{--tblr-focus-ring-color: rgba(var(--tblr-indigo-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-purple{--tblr-focus-ring-color: rgba(var(--tblr-purple-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-pink{--tblr-focus-ring-color: rgba(var(--tblr-pink-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-red{--tblr-focus-ring-color: rgba(var(--tblr-red-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-orange{--tblr-focus-ring-color: rgba(var(--tblr-orange-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-yellow{--tblr-focus-ring-color: rgba(var(--tblr-yellow-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-lime{--tblr-focus-ring-color: rgba(var(--tblr-lime-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-green{--tblr-focus-ring-color: rgba(var(--tblr-green-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-teal{--tblr-focus-ring-color: rgba(var(--tblr-teal-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-cyan{--tblr-focus-ring-color: rgba(var(--tblr-cyan-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-x{--tblr-focus-ring-color: rgba(var(--tblr-x-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-facebook{--tblr-focus-ring-color: rgba(var(--tblr-facebook-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-twitter{--tblr-focus-ring-color: rgba(var(--tblr-twitter-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-linkedin{--tblr-focus-ring-color: rgba(var(--tblr-linkedin-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-google{--tblr-focus-ring-color: rgba(var(--tblr-google-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-youtube{--tblr-focus-ring-color: rgba(var(--tblr-youtube-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-vimeo{--tblr-focus-ring-color: rgba(var(--tblr-vimeo-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-dribbble{--tblr-focus-ring-color: rgba(var(--tblr-dribbble-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-github{--tblr-focus-ring-color: rgba(var(--tblr-github-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-instagram{--tblr-focus-ring-color: rgba(var(--tblr-instagram-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-pinterest{--tblr-focus-ring-color: rgba(var(--tblr-pinterest-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-vk{--tblr-focus-ring-color: rgba(var(--tblr-vk-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-rss{--tblr-focus-ring-color: rgba(var(--tblr-rss-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-flickr{--tblr-focus-ring-color: rgba(var(--tblr-flickr-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-bitbucket{--tblr-focus-ring-color: rgba(var(--tblr-bitbucket-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-tabler{--tblr-focus-ring-color: rgba(var(--tblr-tabler-rgb), var(--tblr-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-wide{border:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-0{border:0!important}.border-top{border-top:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-top-wide{border-top:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-end-wide{border-right:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-bottom-wide{border-bottom:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-start-wide{border-left:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-start-0{border-left:0!important}.border-primary{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-primary-rgb),var(--tblr-border-opacity))!important}.border-secondary{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-secondary-rgb),var(--tblr-border-opacity))!important}.border-success{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-success-rgb),var(--tblr-border-opacity))!important}.border-info{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-info-rgb),var(--tblr-border-opacity))!important}.border-warning{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-warning-rgb),var(--tblr-border-opacity))!important}.border-danger{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-danger-rgb),var(--tblr-border-opacity))!important}.border-light{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-light-rgb),var(--tblr-border-opacity))!important}.border-dark{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-dark-rgb),var(--tblr-border-opacity))!important}.border-muted{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-muted-rgb),var(--tblr-border-opacity))!important}.border-blue{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-blue-rgb),var(--tblr-border-opacity))!important}.border-azure{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-azure-rgb),var(--tblr-border-opacity))!important}.border-indigo{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-indigo-rgb),var(--tblr-border-opacity))!important}.border-purple{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-purple-rgb),var(--tblr-border-opacity))!important}.border-pink{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-pink-rgb),var(--tblr-border-opacity))!important}.border-red{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-red-rgb),var(--tblr-border-opacity))!important}.border-orange{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-orange-rgb),var(--tblr-border-opacity))!important}.border-yellow{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-yellow-rgb),var(--tblr-border-opacity))!important}.border-lime{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-lime-rgb),var(--tblr-border-opacity))!important}.border-green{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-green-rgb),var(--tblr-border-opacity))!important}.border-teal{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-teal-rgb),var(--tblr-border-opacity))!important}.border-cyan{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-cyan-rgb),var(--tblr-border-opacity))!important}.border-x{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-x-rgb),var(--tblr-border-opacity))!important}.border-facebook{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-facebook-rgb),var(--tblr-border-opacity))!important}.border-twitter{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-twitter-rgb),var(--tblr-border-opacity))!important}.border-linkedin{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-linkedin-rgb),var(--tblr-border-opacity))!important}.border-google{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-google-rgb),var(--tblr-border-opacity))!important}.border-youtube{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-youtube-rgb),var(--tblr-border-opacity))!important}.border-vimeo{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-vimeo-rgb),var(--tblr-border-opacity))!important}.border-dribbble{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-dribbble-rgb),var(--tblr-border-opacity))!important}.border-github{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-github-rgb),var(--tblr-border-opacity))!important}.border-instagram{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-instagram-rgb),var(--tblr-border-opacity))!important}.border-pinterest{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-pinterest-rgb),var(--tblr-border-opacity))!important}.border-vk{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-vk-rgb),var(--tblr-border-opacity))!important}.border-rss{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-rss-rgb),var(--tblr-border-opacity))!important}.border-flickr{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-flickr-rgb),var(--tblr-border-opacity))!important}.border-bitbucket{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-border-opacity))!important}.border-tabler{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-tabler-rgb),var(--tblr-border-opacity))!important}.border-black{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-black-rgb),var(--tblr-border-opacity))!important}.border-white{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-white-rgb),var(--tblr-border-opacity))!important}.border-primary-subtle{border-color:var(--tblr-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--tblr-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--tblr-success-border-subtle)!important}.border-info-subtle{border-color:var(--tblr-info-border-subtle)!important}.border-warning-subtle{border-color:var(--tblr-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--tblr-danger-border-subtle)!important}.border-light-subtle{border-color:var(--tblr-light-border-subtle)!important}.border-dark-subtle{border-color:var(--tblr-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--tblr-border-opacity: .1}.border-opacity-25{--tblr-border-opacity: .25}.border-opacity-50{--tblr-border-opacity: .5}.border-opacity-75{--tblr-border-opacity: .75}.border-opacity-100{--tblr-border-opacity: 1}.w-25{width:25%!important}.w-33{width:33.33333%!important}.w-50{width:50%!important}.w-66{width:66.66666%!important}.w-75{width:75%!important}.w-100{width:100%!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-33{height:33.33333%!important}.h-50{height:50%!important}.h-66{height:66.66666%!important}.h-75{height:75%!important}.h-100{height:100%!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:2rem!important}.m-6{margin:3rem!important}.m-7{margin:5rem!important}.m-8{margin:8rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:2rem!important;margin-left:2rem!important}.mx-6{margin-right:3rem!important;margin-left:3rem!important}.mx-7{margin-right:5rem!important;margin-left:5rem!important}.mx-8{margin-right:8rem!important;margin-left:8rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:2rem!important}.mt-6{margin-top:3rem!important}.mt-7{margin-top:5rem!important}.mt-8{margin-top:8rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:2rem!important}.me-6{margin-right:3rem!important}.me-7{margin-right:5rem!important}.me-8{margin-right:8rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:2rem!important}.mb-6{margin-bottom:3rem!important}.mb-7{margin-bottom:5rem!important}.mb-8{margin-bottom:8rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:2rem!important}.ms-6{margin-left:3rem!important}.ms-7{margin-left:5rem!important}.ms-8{margin-left:8rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:2rem!important}.p-6{padding:3rem!important}.p-7{padding:5rem!important}.p-8{padding:8rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:2rem!important;padding-left:2rem!important}.px-6{padding-right:3rem!important;padding-left:3rem!important}.px-7{padding-right:5rem!important;padding-left:5rem!important}.px-8{padding-right:8rem!important;padding-left:8rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:2rem!important}.pt-6{padding-top:3rem!important}.pt-7{padding-top:5rem!important}.pt-8{padding-top:8rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:2rem!important}.pe-6{padding-right:3rem!important}.pe-7{padding-right:5rem!important}.pe-8{padding-right:8rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:2rem!important}.pb-6{padding-bottom:3rem!important}.pb-7{padding-bottom:5rem!important}.pb-8{padding-bottom:8rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:2rem!important}.ps-6{padding-left:3rem!important}.ps-7{padding-left:5rem!important}.ps-8{padding-left:8rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:2rem!important}.gap-6{gap:3rem!important}.gap-7{gap:5rem!important}.gap-8{gap:8rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:2rem!important}.row-gap-6{row-gap:3rem!important}.row-gap-7{row-gap:5rem!important}.row-gap-8{row-gap:8rem!important}.column-gap-0{column-gap:0!important}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:2rem!important}.column-gap-6{column-gap:3rem!important}.column-gap-7{column-gap:5rem!important}.column-gap-8{column-gap:8rem!important}.font-monospace{font-family:var(--tblr-font-monospace)!important}.fs-1{font-size:1.5rem!important}.fs-2{font-size:1.25rem!important}.fs-3{font-size:1rem!important}.fs-4{font-size:.875rem!important}.fs-5{font-size:.75rem!important}.fs-6{font-size:.625rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold,.fw-bold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.1428571429!important}.lh-base{line-height:1.4285714286!important}.lh-lg{line-height:1.7142857143!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-muted{--tblr-text-opacity: 1;color:var(--tblr-secondary-color)!important}.text-black{--tblr-text-opacity: 1;color:rgba(var(--tblr-black-rgb),var(--tblr-text-opacity))!important}.text-white{--tblr-text-opacity: 1;color:rgba(var(--tblr-white-rgb),var(--tblr-text-opacity))!important}.text-body{--tblr-text-opacity: 1;color:rgba(var(--tblr-body-color-rgb),var(--tblr-text-opacity))!important}.text-black-50{--tblr-text-opacity: 1;color:#00000080!important}.text-white-50{--tblr-text-opacity: 1;color:#ffffff80!important}.text-body-secondary{--tblr-text-opacity: 1;color:var(--tblr-secondary-color)!important}.text-body-tertiary{--tblr-text-opacity: 1;color:var(--tblr-tertiary-color)!important}.text-body-emphasis{--tblr-text-opacity: 1;color:var(--tblr-emphasis-color)!important}.text-reset{--tblr-text-opacity: 1;color:inherit!important}.text-opacity-25{--tblr-text-opacity: .25}.text-opacity-50{--tblr-text-opacity: .5}.text-opacity-75{--tblr-text-opacity: .75}.text-opacity-100{--tblr-text-opacity: 1}.text-primary-emphasis{color:var(--tblr-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--tblr-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--tblr-success-text-emphasis)!important}.text-info-emphasis{color:var(--tblr-info-text-emphasis)!important}.text-warning-emphasis{color:var(--tblr-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--tblr-danger-text-emphasis)!important}.text-light-emphasis{color:var(--tblr-light-text-emphasis)!important}.text-dark-emphasis{color:var(--tblr-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--tblr-link-opacity: .1}.link-opacity-25,.link-opacity-25-hover:hover{--tblr-link-opacity: .25}.link-opacity-50,.link-opacity-50-hover:hover{--tblr-link-opacity: .5}.link-opacity-75,.link-opacity-75-hover:hover{--tblr-link-opacity: .75}.link-opacity-100,.link-opacity-100-hover:hover{--tblr-link-opacity: 1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-primary-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-secondary{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-secondary-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-success{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-success-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-info{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-info-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-warning{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-warning-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-danger{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-danger-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-light{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-light-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-dark{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-dark-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-muted{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-muted-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-blue{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-blue-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-azure{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-azure-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-indigo{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-indigo-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-purple{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-purple-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-pink{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-pink-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-red{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-red-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-orange{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-orange-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-yellow{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-yellow-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-lime{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-lime-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-green{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-green-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-teal{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-teal-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-cyan{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-cyan-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-x{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-x-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-facebook{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-facebook-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-twitter{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-twitter-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-linkedin{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-linkedin-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-google{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-google-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-youtube{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-youtube-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-vimeo{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-vimeo-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-dribbble{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-dribbble-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-github{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-github-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-instagram{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-instagram-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-pinterest{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-pinterest-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-vk{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-vk-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-rss{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-rss-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-flickr{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-flickr-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-bitbucket{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-tabler{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-tabler-rgb),var(--tblr-link-underline-opacity))!important}.link-underline{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-link-color-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--tblr-link-underline-opacity: 0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--tblr-link-underline-opacity: .1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--tblr-link-underline-opacity: .25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--tblr-link-underline-opacity: .5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--tblr-link-underline-opacity: .75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--tblr-link-underline-opacity: 1}.bg-black{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-black-rgb),var(--tblr-bg-opacity))!important}.bg-body{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-body-bg-rgb),var(--tblr-bg-opacity))!important}.bg-transparent{--tblr-bg-opacity: 1;background-color:transparent!important}.bg-body-secondary{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-secondary-bg-rgb),var(--tblr-bg-opacity))!important}.bg-body-tertiary{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-tertiary-bg-rgb),var(--tblr-bg-opacity))!important}.bg-opacity-10{--tblr-bg-opacity: .1}.bg-opacity-25{--tblr-bg-opacity: .25}.bg-opacity-50{--tblr-bg-opacity: .5}.bg-opacity-75{--tblr-bg-opacity: .75}.bg-opacity-100{--tblr-bg-opacity: 1}.bg-primary-subtle{background-color:var(--tblr-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--tblr-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--tblr-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--tblr-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--tblr-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--tblr-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--tblr-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--tblr-dark-bg-subtle)!important}.bg-gradient{background-image:var(--tblr-gradient)!important}.user-select-all{user-select:all!important}.user-select-auto{user-select:auto!important}.user-select-none{user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--tblr-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--tblr-border-radius-sm)!important}.rounded-2{border-radius:var(--tblr-border-radius)!important}.rounded-3{border-radius:var(--tblr-border-radius-lg)!important}.rounded-4{border-radius:var(--tblr-border-radius-xl)!important}.rounded-5{border-radius:var(--tblr-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--tblr-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--tblr-border-radius)!important;border-top-right-radius:var(--tblr-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--tblr-border-radius-sm)!important;border-top-right-radius:var(--tblr-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--tblr-border-radius)!important;border-top-right-radius:var(--tblr-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--tblr-border-radius-lg)!important;border-top-right-radius:var(--tblr-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--tblr-border-radius-xl)!important;border-top-right-radius:var(--tblr-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--tblr-border-radius-xxl)!important;border-top-right-radius:var(--tblr-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--tblr-border-radius-pill)!important;border-top-right-radius:var(--tblr-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--tblr-border-radius)!important;border-bottom-right-radius:var(--tblr-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--tblr-border-radius-sm)!important;border-bottom-right-radius:var(--tblr-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--tblr-border-radius)!important;border-bottom-right-radius:var(--tblr-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--tblr-border-radius-lg)!important;border-bottom-right-radius:var(--tblr-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--tblr-border-radius-xl)!important;border-bottom-right-radius:var(--tblr-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--tblr-border-radius-xxl)!important;border-bottom-right-radius:var(--tblr-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--tblr-border-radius-pill)!important;border-bottom-right-radius:var(--tblr-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--tblr-border-radius)!important;border-bottom-left-radius:var(--tblr-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--tblr-border-radius-sm)!important;border-bottom-left-radius:var(--tblr-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--tblr-border-radius)!important;border-bottom-left-radius:var(--tblr-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--tblr-border-radius-lg)!important;border-bottom-left-radius:var(--tblr-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--tblr-border-radius-xl)!important;border-bottom-left-radius:var(--tblr-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--tblr-border-radius-xxl)!important;border-bottom-left-radius:var(--tblr-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--tblr-border-radius-pill)!important;border-bottom-left-radius:var(--tblr-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--tblr-border-radius)!important;border-top-left-radius:var(--tblr-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--tblr-border-radius-sm)!important;border-top-left-radius:var(--tblr-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--tblr-border-radius)!important;border-top-left-radius:var(--tblr-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--tblr-border-radius-lg)!important;border-top-left-radius:var(--tblr-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--tblr-border-radius-xl)!important;border-top-left-radius:var(--tblr-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--tblr-border-radius-xxl)!important;border-top-left-radius:var(--tblr-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--tblr-border-radius-pill)!important;border-top-left-radius:var(--tblr-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}.object-contain{object-fit:contain!important}.object-cover{object-fit:cover!important}.object-fill{object-fit:fill!important}.object-scale-down{object-fit:scale-down!important}.object-none{object-fit:none!important}.tracking-tight{letter-spacing:-.05em!important}.tracking-normal{letter-spacing:0!important}.tracking-wide{letter-spacing:.05em!important}.cursor-auto{cursor:auto!important}.cursor-pointer{cursor:pointer!important}.cursor-move{cursor:move!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-zoom-in{cursor:zoom-in!important}.cursor-zoom-out{cursor:zoom-out!important}.cursor-default{cursor:default!important}.cursor-none{cursor:none!important}.cursor-help{cursor:help!important}.cursor-progress{cursor:progress!important}.cursor-wait{cursor:wait!important}.cursor-text{cursor:text!important}.cursor-v-text{cursor:vertical-text!important}.cursor-grab{cursor:grab!important}.cursor-grabbing{cursor:grabbing!important}.border-x{border-left:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important;border-right:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-x-wide{border-left:2px var(--tblr-border-style) rgba(4,32,69,.1)!important;border-right:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-x-0{border-left:0!important;border-right:0!important}.border-y{border-top:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important;border-bottom:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-y-wide{border-top:2px var(--tblr-border-style) rgba(4,32,69,.1)!important;border-bottom:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-y-0{border-top:0!important;border-bottom:0!important}.columns-2{columns:2!important}.columns-3{columns:3!important}.columns-4{columns:4!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{object-fit:contain!important}.object-fit-sm-cover{object-fit:cover!important}.object-fit-sm-fill{object-fit:fill!important}.object-fit-sm-scale{object-fit:scale-down!important}.object-fit-sm-none{object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:2rem!important}.m-sm-6{margin:3rem!important}.m-sm-7{margin:5rem!important}.m-sm-8{margin:8rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:2rem!important;margin-left:2rem!important}.mx-sm-6{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-7{margin-right:5rem!important;margin-left:5rem!important}.mx-sm-8{margin-right:8rem!important;margin-left:8rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-sm-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-sm-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:2rem!important}.mt-sm-6{margin-top:3rem!important}.mt-sm-7{margin-top:5rem!important}.mt-sm-8{margin-top:8rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:2rem!important}.me-sm-6{margin-right:3rem!important}.me-sm-7{margin-right:5rem!important}.me-sm-8{margin-right:8rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:2rem!important}.mb-sm-6{margin-bottom:3rem!important}.mb-sm-7{margin-bottom:5rem!important}.mb-sm-8{margin-bottom:8rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:2rem!important}.ms-sm-6{margin-left:3rem!important}.ms-sm-7{margin-left:5rem!important}.ms-sm-8{margin-left:8rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:2rem!important}.p-sm-6{padding:3rem!important}.p-sm-7{padding:5rem!important}.p-sm-8{padding:8rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:2rem!important;padding-left:2rem!important}.px-sm-6{padding-right:3rem!important;padding-left:3rem!important}.px-sm-7{padding-right:5rem!important;padding-left:5rem!important}.px-sm-8{padding-right:8rem!important;padding-left:8rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-sm-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-sm-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-sm-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:2rem!important}.pt-sm-6{padding-top:3rem!important}.pt-sm-7{padding-top:5rem!important}.pt-sm-8{padding-top:8rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:2rem!important}.pe-sm-6{padding-right:3rem!important}.pe-sm-7{padding-right:5rem!important}.pe-sm-8{padding-right:8rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:2rem!important}.pb-sm-6{padding-bottom:3rem!important}.pb-sm-7{padding-bottom:5rem!important}.pb-sm-8{padding-bottom:8rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:2rem!important}.ps-sm-6{padding-left:3rem!important}.ps-sm-7{padding-left:5rem!important}.ps-sm-8{padding-left:8rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:2rem!important}.gap-sm-6{gap:3rem!important}.gap-sm-7{gap:5rem!important}.gap-sm-8{gap:8rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:2rem!important}.row-gap-sm-6{row-gap:3rem!important}.row-gap-sm-7{row-gap:5rem!important}.row-gap-sm-8{row-gap:8rem!important}.column-gap-sm-0{column-gap:0!important}.column-gap-sm-1{column-gap:.25rem!important}.column-gap-sm-2{column-gap:.5rem!important}.column-gap-sm-3{column-gap:1rem!important}.column-gap-sm-4{column-gap:1.5rem!important}.column-gap-sm-5{column-gap:2rem!important}.column-gap-sm-6{column-gap:3rem!important}.column-gap-sm-7{column-gap:5rem!important}.column-gap-sm-8{column-gap:8rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}.columns-sm-2{columns:2!important}.columns-sm-3{columns:3!important}.columns-sm-4{columns:4!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{object-fit:contain!important}.object-fit-md-cover{object-fit:cover!important}.object-fit-md-fill{object-fit:fill!important}.object-fit-md-scale{object-fit:scale-down!important}.object-fit-md-none{object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:2rem!important}.m-md-6{margin:3rem!important}.m-md-7{margin:5rem!important}.m-md-8{margin:8rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:2rem!important;margin-left:2rem!important}.mx-md-6{margin-right:3rem!important;margin-left:3rem!important}.mx-md-7{margin-right:5rem!important;margin-left:5rem!important}.mx-md-8{margin-right:8rem!important;margin-left:8rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-md-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-md-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:2rem!important}.mt-md-6{margin-top:3rem!important}.mt-md-7{margin-top:5rem!important}.mt-md-8{margin-top:8rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:2rem!important}.me-md-6{margin-right:3rem!important}.me-md-7{margin-right:5rem!important}.me-md-8{margin-right:8rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:2rem!important}.mb-md-6{margin-bottom:3rem!important}.mb-md-7{margin-bottom:5rem!important}.mb-md-8{margin-bottom:8rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:2rem!important}.ms-md-6{margin-left:3rem!important}.ms-md-7{margin-left:5rem!important}.ms-md-8{margin-left:8rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:2rem!important}.p-md-6{padding:3rem!important}.p-md-7{padding:5rem!important}.p-md-8{padding:8rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:2rem!important;padding-left:2rem!important}.px-md-6{padding-right:3rem!important;padding-left:3rem!important}.px-md-7{padding-right:5rem!important;padding-left:5rem!important}.px-md-8{padding-right:8rem!important;padding-left:8rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-md-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-md-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-md-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:2rem!important}.pt-md-6{padding-top:3rem!important}.pt-md-7{padding-top:5rem!important}.pt-md-8{padding-top:8rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:2rem!important}.pe-md-6{padding-right:3rem!important}.pe-md-7{padding-right:5rem!important}.pe-md-8{padding-right:8rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:2rem!important}.pb-md-6{padding-bottom:3rem!important}.pb-md-7{padding-bottom:5rem!important}.pb-md-8{padding-bottom:8rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:2rem!important}.ps-md-6{padding-left:3rem!important}.ps-md-7{padding-left:5rem!important}.ps-md-8{padding-left:8rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:2rem!important}.gap-md-6{gap:3rem!important}.gap-md-7{gap:5rem!important}.gap-md-8{gap:8rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:2rem!important}.row-gap-md-6{row-gap:3rem!important}.row-gap-md-7{row-gap:5rem!important}.row-gap-md-8{row-gap:8rem!important}.column-gap-md-0{column-gap:0!important}.column-gap-md-1{column-gap:.25rem!important}.column-gap-md-2{column-gap:.5rem!important}.column-gap-md-3{column-gap:1rem!important}.column-gap-md-4{column-gap:1.5rem!important}.column-gap-md-5{column-gap:2rem!important}.column-gap-md-6{column-gap:3rem!important}.column-gap-md-7{column-gap:5rem!important}.column-gap-md-8{column-gap:8rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}.columns-md-2{columns:2!important}.columns-md-3{columns:3!important}.columns-md-4{columns:4!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{object-fit:contain!important}.object-fit-lg-cover{object-fit:cover!important}.object-fit-lg-fill{object-fit:fill!important}.object-fit-lg-scale{object-fit:scale-down!important}.object-fit-lg-none{object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:2rem!important}.m-lg-6{margin:3rem!important}.m-lg-7{margin:5rem!important}.m-lg-8{margin:8rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:2rem!important;margin-left:2rem!important}.mx-lg-6{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-7{margin-right:5rem!important;margin-left:5rem!important}.mx-lg-8{margin-right:8rem!important;margin-left:8rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-lg-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-lg-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:2rem!important}.mt-lg-6{margin-top:3rem!important}.mt-lg-7{margin-top:5rem!important}.mt-lg-8{margin-top:8rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:2rem!important}.me-lg-6{margin-right:3rem!important}.me-lg-7{margin-right:5rem!important}.me-lg-8{margin-right:8rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:2rem!important}.mb-lg-6{margin-bottom:3rem!important}.mb-lg-7{margin-bottom:5rem!important}.mb-lg-8{margin-bottom:8rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:2rem!important}.ms-lg-6{margin-left:3rem!important}.ms-lg-7{margin-left:5rem!important}.ms-lg-8{margin-left:8rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:2rem!important}.p-lg-6{padding:3rem!important}.p-lg-7{padding:5rem!important}.p-lg-8{padding:8rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:2rem!important;padding-left:2rem!important}.px-lg-6{padding-right:3rem!important;padding-left:3rem!important}.px-lg-7{padding-right:5rem!important;padding-left:5rem!important}.px-lg-8{padding-right:8rem!important;padding-left:8rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-lg-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-lg-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-lg-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:2rem!important}.pt-lg-6{padding-top:3rem!important}.pt-lg-7{padding-top:5rem!important}.pt-lg-8{padding-top:8rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:2rem!important}.pe-lg-6{padding-right:3rem!important}.pe-lg-7{padding-right:5rem!important}.pe-lg-8{padding-right:8rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:2rem!important}.pb-lg-6{padding-bottom:3rem!important}.pb-lg-7{padding-bottom:5rem!important}.pb-lg-8{padding-bottom:8rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:2rem!important}.ps-lg-6{padding-left:3rem!important}.ps-lg-7{padding-left:5rem!important}.ps-lg-8{padding-left:8rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:2rem!important}.gap-lg-6{gap:3rem!important}.gap-lg-7{gap:5rem!important}.gap-lg-8{gap:8rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:2rem!important}.row-gap-lg-6{row-gap:3rem!important}.row-gap-lg-7{row-gap:5rem!important}.row-gap-lg-8{row-gap:8rem!important}.column-gap-lg-0{column-gap:0!important}.column-gap-lg-1{column-gap:.25rem!important}.column-gap-lg-2{column-gap:.5rem!important}.column-gap-lg-3{column-gap:1rem!important}.column-gap-lg-4{column-gap:1.5rem!important}.column-gap-lg-5{column-gap:2rem!important}.column-gap-lg-6{column-gap:3rem!important}.column-gap-lg-7{column-gap:5rem!important}.column-gap-lg-8{column-gap:8rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}.columns-lg-2{columns:2!important}.columns-lg-3{columns:3!important}.columns-lg-4{columns:4!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{object-fit:contain!important}.object-fit-xl-cover{object-fit:cover!important}.object-fit-xl-fill{object-fit:fill!important}.object-fit-xl-scale{object-fit:scale-down!important}.object-fit-xl-none{object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:2rem!important}.m-xl-6{margin:3rem!important}.m-xl-7{margin:5rem!important}.m-xl-8{margin:8rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:2rem!important;margin-left:2rem!important}.mx-xl-6{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-7{margin-right:5rem!important;margin-left:5rem!important}.mx-xl-8{margin-right:8rem!important;margin-left:8rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-xl-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-xl-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:2rem!important}.mt-xl-6{margin-top:3rem!important}.mt-xl-7{margin-top:5rem!important}.mt-xl-8{margin-top:8rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:2rem!important}.me-xl-6{margin-right:3rem!important}.me-xl-7{margin-right:5rem!important}.me-xl-8{margin-right:8rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:2rem!important}.mb-xl-6{margin-bottom:3rem!important}.mb-xl-7{margin-bottom:5rem!important}.mb-xl-8{margin-bottom:8rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:2rem!important}.ms-xl-6{margin-left:3rem!important}.ms-xl-7{margin-left:5rem!important}.ms-xl-8{margin-left:8rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:2rem!important}.p-xl-6{padding:3rem!important}.p-xl-7{padding:5rem!important}.p-xl-8{padding:8rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:2rem!important;padding-left:2rem!important}.px-xl-6{padding-right:3rem!important;padding-left:3rem!important}.px-xl-7{padding-right:5rem!important;padding-left:5rem!important}.px-xl-8{padding-right:8rem!important;padding-left:8rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-xl-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-xl-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-xl-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:2rem!important}.pt-xl-6{padding-top:3rem!important}.pt-xl-7{padding-top:5rem!important}.pt-xl-8{padding-top:8rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:2rem!important}.pe-xl-6{padding-right:3rem!important}.pe-xl-7{padding-right:5rem!important}.pe-xl-8{padding-right:8rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:2rem!important}.pb-xl-6{padding-bottom:3rem!important}.pb-xl-7{padding-bottom:5rem!important}.pb-xl-8{padding-bottom:8rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:2rem!important}.ps-xl-6{padding-left:3rem!important}.ps-xl-7{padding-left:5rem!important}.ps-xl-8{padding-left:8rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:2rem!important}.gap-xl-6{gap:3rem!important}.gap-xl-7{gap:5rem!important}.gap-xl-8{gap:8rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:2rem!important}.row-gap-xl-6{row-gap:3rem!important}.row-gap-xl-7{row-gap:5rem!important}.row-gap-xl-8{row-gap:8rem!important}.column-gap-xl-0{column-gap:0!important}.column-gap-xl-1{column-gap:.25rem!important}.column-gap-xl-2{column-gap:.5rem!important}.column-gap-xl-3{column-gap:1rem!important}.column-gap-xl-4{column-gap:1.5rem!important}.column-gap-xl-5{column-gap:2rem!important}.column-gap-xl-6{column-gap:3rem!important}.column-gap-xl-7{column-gap:5rem!important}.column-gap-xl-8{column-gap:8rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}.columns-xl-2{columns:2!important}.columns-xl-3{columns:3!important}.columns-xl-4{columns:4!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{object-fit:contain!important}.object-fit-xxl-cover{object-fit:cover!important}.object-fit-xxl-fill{object-fit:fill!important}.object-fit-xxl-scale{object-fit:scale-down!important}.object-fit-xxl-none{object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:2rem!important}.m-xxl-6{margin:3rem!important}.m-xxl-7{margin:5rem!important}.m-xxl-8{margin:8rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:2rem!important;margin-left:2rem!important}.mx-xxl-6{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-7{margin-right:5rem!important;margin-left:5rem!important}.mx-xxl-8{margin-right:8rem!important;margin-left:8rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-xxl-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-xxl-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:2rem!important}.mt-xxl-6{margin-top:3rem!important}.mt-xxl-7{margin-top:5rem!important}.mt-xxl-8{margin-top:8rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:2rem!important}.me-xxl-6{margin-right:3rem!important}.me-xxl-7{margin-right:5rem!important}.me-xxl-8{margin-right:8rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:2rem!important}.mb-xxl-6{margin-bottom:3rem!important}.mb-xxl-7{margin-bottom:5rem!important}.mb-xxl-8{margin-bottom:8rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:2rem!important}.ms-xxl-6{margin-left:3rem!important}.ms-xxl-7{margin-left:5rem!important}.ms-xxl-8{margin-left:8rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:2rem!important}.p-xxl-6{padding:3rem!important}.p-xxl-7{padding:5rem!important}.p-xxl-8{padding:8rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:2rem!important;padding-left:2rem!important}.px-xxl-6{padding-right:3rem!important;padding-left:3rem!important}.px-xxl-7{padding-right:5rem!important;padding-left:5rem!important}.px-xxl-8{padding-right:8rem!important;padding-left:8rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-xxl-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-xxl-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-xxl-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:2rem!important}.pt-xxl-6{padding-top:3rem!important}.pt-xxl-7{padding-top:5rem!important}.pt-xxl-8{padding-top:8rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:2rem!important}.pe-xxl-6{padding-right:3rem!important}.pe-xxl-7{padding-right:5rem!important}.pe-xxl-8{padding-right:8rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:2rem!important}.pb-xxl-6{padding-bottom:3rem!important}.pb-xxl-7{padding-bottom:5rem!important}.pb-xxl-8{padding-bottom:8rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:2rem!important}.ps-xxl-6{padding-left:3rem!important}.ps-xxl-7{padding-left:5rem!important}.ps-xxl-8{padding-left:8rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:2rem!important}.gap-xxl-6{gap:3rem!important}.gap-xxl-7{gap:5rem!important}.gap-xxl-8{gap:8rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:2rem!important}.row-gap-xxl-6{row-gap:3rem!important}.row-gap-xxl-7{row-gap:5rem!important}.row-gap-xxl-8{row-gap:8rem!important}.column-gap-xxl-0{column-gap:0!important}.column-gap-xxl-1{column-gap:.25rem!important}.column-gap-xxl-2{column-gap:.5rem!important}.column-gap-xxl-3{column-gap:1rem!important}.column-gap-xxl-4{column-gap:1.5rem!important}.column-gap-xxl-5{column-gap:2rem!important}.column-gap-xxl-6{column-gap:3rem!important}.column-gap-xxl-7{column-gap:5rem!important}.column-gap-xxl-8{column-gap:8rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}.columns-xxl-2{columns:2!important}.columns-xxl-3{columns:3!important}.columns-xxl-4{columns:4!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}:root,:host{font-size:16px;height:100%}:root,:host,[data-bs-theme=light]{--tblr-primary: #00857D;--tblr-primary-rgb: 0, 133, 125;--tblr-primary-fg: var(--tblr-light);--tblr-primary-darken: #007871;--tblr-primary-lt: #e6f3f2;--tblr-primary-lt-rgb: 230, 243, 242;--tblr-secondary: #6c7a91;--tblr-secondary-rgb: 108, 122, 145;--tblr-secondary-fg: var(--tblr-light);--tblr-secondary-darken: #616e83;--tblr-secondary-lt: #f0f2f4;--tblr-secondary-lt-rgb: 240, 242, 244;--tblr-success: #2fb344;--tblr-success-rgb: 47, 179, 68;--tblr-success-fg: var(--tblr-light);--tblr-success-darken: #2aa13d;--tblr-success-lt: #eaf7ec;--tblr-success-lt-rgb: 234, 247, 236;--tblr-info: #4299e1;--tblr-info-rgb: 66, 153, 225;--tblr-info-fg: var(--tblr-light);--tblr-info-darken: #3b8acb;--tblr-info-lt: #ecf5fc;--tblr-info-lt-rgb: 236, 245, 252;--tblr-warning: #f76707;--tblr-warning-rgb: 247, 103, 7;--tblr-warning-fg: var(--tblr-light);--tblr-warning-darken: #de5d06;--tblr-warning-lt: #fef0e6;--tblr-warning-lt-rgb: 254, 240, 230;--tblr-danger: #d63939;--tblr-danger-rgb: 214, 57, 57;--tblr-danger-fg: var(--tblr-light);--tblr-danger-darken: #c13333;--tblr-danger-lt: #fbebeb;--tblr-danger-lt-rgb: 251, 235, 235;--tblr-light: #f6f8fb;--tblr-light-rgb: 246, 248, 251;--tblr-light-fg: var(--tblr-dark);--tblr-light-darken: #dddfe2;--tblr-light-lt: #fefeff;--tblr-light-lt-rgb: 254, 254, 255;--tblr-dark: #182433;--tblr-dark-rgb: 24, 36, 51;--tblr-dark-fg: var(--tblr-light);--tblr-dark-darken: #16202e;--tblr-dark-lt: #e8e9eb;--tblr-dark-lt-rgb: 232, 233, 235;--tblr-muted: #6c7a91;--tblr-muted-rgb: 108, 122, 145;--tblr-muted-fg: var(--tblr-light);--tblr-muted-darken: #616e83;--tblr-muted-lt: #f0f2f4;--tblr-muted-lt-rgb: 240, 242, 244;--tblr-blue: #066fd1;--tblr-blue-rgb: 6, 111, 209;--tblr-blue-fg: var(--tblr-light);--tblr-blue-darken: #0564bc;--tblr-blue-lt: #e6f1fa;--tblr-blue-lt-rgb: 230, 241, 250;--tblr-azure: #4299e1;--tblr-azure-rgb: 66, 153, 225;--tblr-azure-fg: var(--tblr-light);--tblr-azure-darken: #3b8acb;--tblr-azure-lt: #ecf5fc;--tblr-azure-lt-rgb: 236, 245, 252;--tblr-indigo: #4263eb;--tblr-indigo-rgb: 66, 99, 235;--tblr-indigo-fg: var(--tblr-light);--tblr-indigo-darken: #3b59d4;--tblr-indigo-lt: #eceffd;--tblr-indigo-lt-rgb: 236, 239, 253;--tblr-purple: #ae3ec9;--tblr-purple-rgb: 174, 62, 201;--tblr-purple-fg: var(--tblr-light);--tblr-purple-darken: #9d38b5;--tblr-purple-lt: #f7ecfa;--tblr-purple-lt-rgb: 247, 236, 250;--tblr-pink: #d6336c;--tblr-pink-rgb: 214, 51, 108;--tblr-pink-fg: var(--tblr-light);--tblr-pink-darken: #c12e61;--tblr-pink-lt: #fbebf0;--tblr-pink-lt-rgb: 251, 235, 240;--tblr-red: #d63939;--tblr-red-rgb: 214, 57, 57;--tblr-red-fg: var(--tblr-light);--tblr-red-darken: #c13333;--tblr-red-lt: #fbebeb;--tblr-red-lt-rgb: 251, 235, 235;--tblr-orange: #f76707;--tblr-orange-rgb: 247, 103, 7;--tblr-orange-fg: var(--tblr-light);--tblr-orange-darken: #de5d06;--tblr-orange-lt: #fef0e6;--tblr-orange-lt-rgb: 254, 240, 230;--tblr-yellow: #f59f00;--tblr-yellow-rgb: 245, 159, 0;--tblr-yellow-fg: var(--tblr-light);--tblr-yellow-darken: #dd8f00;--tblr-yellow-lt: #fef5e6;--tblr-yellow-lt-rgb: 254, 245, 230;--tblr-lime: #74b816;--tblr-lime-rgb: 116, 184, 22;--tblr-lime-fg: var(--tblr-light);--tblr-lime-darken: #68a614;--tblr-lime-lt: #f1f8e8;--tblr-lime-lt-rgb: 241, 248, 232;--tblr-green: #2fb344;--tblr-green-rgb: 47, 179, 68;--tblr-green-fg: var(--tblr-light);--tblr-green-darken: #2aa13d;--tblr-green-lt: #eaf7ec;--tblr-green-lt-rgb: 234, 247, 236;--tblr-teal: #0ca678;--tblr-teal-rgb: 12, 166, 120;--tblr-teal-fg: var(--tblr-light);--tblr-teal-darken: #0b956c;--tblr-teal-lt: #e7f6f2;--tblr-teal-lt-rgb: 231, 246, 242;--tblr-cyan: #17a2b8;--tblr-cyan-rgb: 23, 162, 184;--tblr-cyan-fg: var(--tblr-light);--tblr-cyan-darken: #1592a6;--tblr-cyan-lt: #e8f6f8;--tblr-cyan-lt-rgb: 232, 246, 248;--tblr-x: #000000;--tblr-x-rgb: 0, 0, 0;--tblr-x-fg: var(--tblr-light);--tblr-x-darken: black;--tblr-x-lt: #e6e6e6;--tblr-x-lt-rgb: 230, 230, 230;--tblr-facebook: #1877f2;--tblr-facebook-rgb: 24, 119, 242;--tblr-facebook-fg: var(--tblr-light);--tblr-facebook-darken: #166bda;--tblr-facebook-lt: #e8f1fe;--tblr-facebook-lt-rgb: 232, 241, 254;--tblr-twitter: #1da1f2;--tblr-twitter-rgb: 29, 161, 242;--tblr-twitter-fg: var(--tblr-light);--tblr-twitter-darken: #1a91da;--tblr-twitter-lt: #e8f6fe;--tblr-twitter-lt-rgb: 232, 246, 254;--tblr-linkedin: #0a66c2;--tblr-linkedin-rgb: 10, 102, 194;--tblr-linkedin-fg: var(--tblr-light);--tblr-linkedin-darken: #095caf;--tblr-linkedin-lt: #e7f0f9;--tblr-linkedin-lt-rgb: 231, 240, 249;--tblr-google: #dc4e41;--tblr-google-rgb: 220, 78, 65;--tblr-google-fg: var(--tblr-light);--tblr-google-darken: #c6463b;--tblr-google-lt: #fcedec;--tblr-google-lt-rgb: 252, 237, 236;--tblr-youtube: #ff0000;--tblr-youtube-rgb: 255, 0, 0;--tblr-youtube-fg: var(--tblr-light);--tblr-youtube-darken: #e60000;--tblr-youtube-lt: #ffe6e6;--tblr-youtube-lt-rgb: 255, 230, 230;--tblr-vimeo: #1ab7ea;--tblr-vimeo-rgb: 26, 183, 234;--tblr-vimeo-fg: var(--tblr-light);--tblr-vimeo-darken: #17a5d3;--tblr-vimeo-lt: #e8f8fd;--tblr-vimeo-lt-rgb: 232, 248, 253;--tblr-dribbble: #ea4c89;--tblr-dribbble-rgb: 234, 76, 137;--tblr-dribbble-fg: var(--tblr-light);--tblr-dribbble-darken: #d3447b;--tblr-dribbble-lt: #fdedf3;--tblr-dribbble-lt-rgb: 253, 237, 243;--tblr-github: #181717;--tblr-github-rgb: 24, 23, 23;--tblr-github-fg: var(--tblr-light);--tblr-github-darken: #161515;--tblr-github-lt: #e8e8e8;--tblr-github-lt-rgb: 232, 232, 232;--tblr-instagram: #e4405f;--tblr-instagram-rgb: 228, 64, 95;--tblr-instagram-fg: var(--tblr-light);--tblr-instagram-darken: #cd3a56;--tblr-instagram-lt: #fcecef;--tblr-instagram-lt-rgb: 252, 236, 239;--tblr-pinterest: #bd081c;--tblr-pinterest-rgb: 189, 8, 28;--tblr-pinterest-fg: var(--tblr-light);--tblr-pinterest-darken: #aa0719;--tblr-pinterest-lt: #f8e6e8;--tblr-pinterest-lt-rgb: 248, 230, 232;--tblr-vk: #6383a8;--tblr-vk-rgb: 99, 131, 168;--tblr-vk-fg: var(--tblr-light);--tblr-vk-darken: #597697;--tblr-vk-lt: #eff3f6;--tblr-vk-lt-rgb: 239, 243, 246;--tblr-rss: #ffa500;--tblr-rss-rgb: 255, 165, 0;--tblr-rss-fg: var(--tblr-light);--tblr-rss-darken: #e69500;--tblr-rss-lt: #fff6e6;--tblr-rss-lt-rgb: 255, 246, 230;--tblr-flickr: #0063dc;--tblr-flickr-rgb: 0, 99, 220;--tblr-flickr-fg: var(--tblr-light);--tblr-flickr-darken: #0059c6;--tblr-flickr-lt: #e6effc;--tblr-flickr-lt-rgb: 230, 239, 252;--tblr-bitbucket: #0052cc;--tblr-bitbucket-rgb: 0, 82, 204;--tblr-bitbucket-fg: var(--tblr-light);--tblr-bitbucket-darken: #004ab8;--tblr-bitbucket-lt: #e6eefa;--tblr-bitbucket-lt-rgb: 230, 238, 250;--tblr-tabler: #066fd1;--tblr-tabler-rgb: 6, 111, 209;--tblr-tabler-fg: var(--tblr-light);--tblr-tabler-darken: #0564bc;--tblr-tabler-lt: #e6f1fa;--tblr-tabler-lt-rgb: 230, 241, 250;--tblr-gray-50: #f6f8fb;--tblr-gray-50-rgb: 246, 248, 251;--tblr-gray-50-fg: var(--tblr-dark);--tblr-gray-50-darken: #dddfe2;--tblr-gray-50-lt: #fefeff;--tblr-gray-50-lt-rgb: 254, 254, 255;--tblr-gray-100: #eef3f6;--tblr-gray-100-rgb: 238, 243, 246;--tblr-gray-100-fg: var(--tblr-dark);--tblr-gray-100-darken: #d6dbdd;--tblr-gray-100-lt: #fdfefe;--tblr-gray-100-lt-rgb: 253, 254, 254;--tblr-gray-200: #dce1e7;--tblr-gray-200-rgb: 220, 225, 231;--tblr-gray-200-fg: var(--tblr-dark);--tblr-gray-200-darken: #c6cbd0;--tblr-gray-200-lt: #fcfcfd;--tblr-gray-200-lt-rgb: 252, 252, 253;--tblr-gray-300: #b8c4d4;--tblr-gray-300-rgb: 184, 196, 212;--tblr-gray-300-fg: var(--tblr-light);--tblr-gray-300-darken: #a6b0bf;--tblr-gray-300-lt: #f8f9fb;--tblr-gray-300-lt-rgb: 248, 249, 251;--tblr-gray-400: #8a97ab;--tblr-gray-400-rgb: 138, 151, 171;--tblr-gray-400-fg: var(--tblr-light);--tblr-gray-400-darken: #7c889a;--tblr-gray-400-lt: #f3f5f7;--tblr-gray-400-lt-rgb: 243, 245, 247;--tblr-gray-500: #6c7a91;--tblr-gray-500-rgb: 108, 122, 145;--tblr-gray-500-fg: var(--tblr-light);--tblr-gray-500-darken: #616e83;--tblr-gray-500-lt: #f0f2f4;--tblr-gray-500-lt-rgb: 240, 242, 244;--tblr-gray-600: #49566c;--tblr-gray-600-rgb: 73, 86, 108;--tblr-gray-600-fg: var(--tblr-light);--tblr-gray-600-darken: #424d61;--tblr-gray-600-lt: #edeef0;--tblr-gray-600-lt-rgb: 237, 238, 240;--tblr-gray-700: #3a4859;--tblr-gray-700-rgb: 58, 72, 89;--tblr-gray-700-fg: var(--tblr-light);--tblr-gray-700-darken: #344150;--tblr-gray-700-lt: #ebedee;--tblr-gray-700-lt-rgb: 235, 237, 238;--tblr-gray-800: #182433;--tblr-gray-800-rgb: 24, 36, 51;--tblr-gray-800-fg: var(--tblr-light);--tblr-gray-800-darken: #16202e;--tblr-gray-800-lt: #e8e9eb;--tblr-gray-800-lt-rgb: 232, 233, 235;--tblr-gray-900: #040a11;--tblr-gray-900-rgb: 4, 10, 17;--tblr-gray-900-fg: var(--tblr-light);--tblr-gray-900-darken: #04090f;--tblr-gray-900-lt: #e6e7e7;--tblr-gray-900-lt-rgb: 230, 231, 231;--tblr-spacer-0: 0;--tblr-spacer-1: .25rem;--tblr-spacer-2: .5rem;--tblr-spacer-3: 1rem;--tblr-spacer-4: 1.5rem;--tblr-spacer-5: 2rem;--tblr-spacer-6: 3rem;--tblr-spacer-7: 5rem;--tblr-spacer-8: 8rem;--tblr-spacer: 1rem;--tblr-bg-surface: var(--tblr-white);--tblr-bg-surface-secondary: var(--tblr-gray-100);--tblr-bg-surface-tertiary: var(--tblr-gray-50);--tblr-bg-surface-dark: var(--tblr-dark);--tblr-bg-forms: var(--tblr-bg-surface);--tblr-border-color: #dce1e7;--tblr-border-color-translucent: rgba(4, 32, 69, .1);--tblr-border-dark-color: #8a97ab;--tblr-border-dark-color-translucent: rgba(4, 32, 69, .27);--tblr-border-active-color: #aab2bf;--tblr-icon-color: var(--tblr-gray-400);--tblr-active-bg: rgba(var(--tblr-primary-rgb), .04);--tblr-disabled-bg: var(--tblr-bg-surface-secondary);--tblr-disabled-color: var(--tblr-gray-300);--tblr-code-color: var(--tblr-gray-600);--tblr-code-bg: var(--tblr-bg-surface-secondary);--tblr-dark-mode-border-color: #25384f;--tblr-dark-mode-border-color-translucent: rgba(72, 110, 149, .14);--tblr-dark-mode-border-active-color: #2c415d;--tblr-dark-mode-border-dark-color: #1f2e41;--tblr-page-padding: var(--tblr-spacer-3);--tblr-page-padding-y: var(--tblr-spacer-4);--tblr-font-weight-light: 300;--tblr-font-weight-normal: 400;--tblr-font-weight-medium: 500;--tblr-font-weight-bold: 600;--tblr-font-weight-headings: var(--tblr-font-weight-bold);--tblr-font-size-h1: 1.5rem;--tblr-font-size-h2: 1.25rem;--tblr-font-size-h3: 1rem;--tblr-font-size-h4: .875rem;--tblr-font-size-h5: .75rem;--tblr-font-size-h6: .625rem;--tblr-line-height-h1: 2rem;--tblr-line-height-h2: 1.75rem;--tblr-line-height-h3: 1.5rem;--tblr-line-height-h4: 1.25rem;--tblr-line-height-h5: 1rem;--tblr-line-height-h6: 1rem;--tblr-box-shadow: rgba(var(--tblr-body-color-rgb), .04) 0 2px 4px 0;--tblr-box-shadow-border: inset 0 0 0 1px var(--tblr-border-color-translucent);--tblr-box-shadow-transparent: 0 0 0 0 transparent;--tblr-box-shadow-input: 0 1px 1px rgba(var(--tblr-body-color-rgb), .06);--tblr-box-shadow-card: 0 0 4px rgba(var(--tblr-body-color-rgb), .04);--tblr-box-shadow-card-hover: rgba(var(--tblr-body-color-rgb), .16) 0 2px 16px 0;--tblr-box-shadow-dropdown: 0 16px 24px 2px rgba(0, 0, 0, .07), 0 6px 30px 5px rgba(0, 0, 0, .06), 0 8px 10px -5px rgba(0, 0, 0, .1)}@media (max-width: 991.98px){:root,:host,[data-bs-theme=light]{--tblr-page-padding: var(--tblr-spacer-2)}}@keyframes pulse{0%{opacity:1;transform:scale3d(.8,.8,.8)}50%{transform:scaleZ(1);opacity:1}to{opacity:1;transform:scale3d(.8,.8,.8)}}@keyframes tada{0%{transform:scaleZ(1)}10%,5%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-5deg)}15%,25%,35%,45%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,5deg)}20%,30%,40%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-5deg)}50%{transform:scaleZ(1)}}@keyframes rotate-360{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}body{letter-spacing:0;touch-action:manipulation;text-rendering:optimizeLegibility;font-feature-settings:"liga" 0;position:relative;min-height:100%;height:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media print{body{background:transparent}}*{scrollbar-color:rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.16)}*::-webkit-scrollbar{width:1rem;height:1rem;transition:background .3s}@media (prefers-reduced-motion: reduce){*::-webkit-scrollbar{transition:none}}*::-webkit-scrollbar-thumb{border-radius:1rem;border:5px solid transparent;box-shadow:inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.16)}*::-webkit-scrollbar-track{background:transparent}*:hover::-webkit-scrollbar-thumb{box-shadow:inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.32)}*::-webkit-scrollbar-corner{background:transparent}.layout-fluid .container,.layout-fluid [class^=container-],.layout-fluid [class*=" container-"]{max-width:100%}.layout-boxed{--tblr-theme-boxed-border-radius: 0;--tblr-theme-boxed-width: 1320px}@media (min-width: 768px){.layout-boxed{background:#182433 linear-gradient(to right,rgba(255,255,255,.1),transparent) fixed;padding:1rem;--tblr-theme-boxed-border-radius: 4px}}.layout-boxed .page{margin:0 auto;max-width:var(--tblr-theme-boxed-width);border-radius:var(--tblr-theme-boxed-border-radius);color:var(--tblr-body-color)}@media (min-width: 768px){.layout-boxed .page{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);background:var(--tblr-body-bg)}}.layout-boxed .page>.navbar:first-child{border-top-left-radius:var(--tblr-theme-boxed-border-radius);border-top-right-radius:var(--tblr-theme-boxed-border-radius)}.navbar{--tblr-navbar-bg: var(--tblr-bg-surface);--tblr-navbar-border-width: var(--tblr-border-width);--tblr-navbar-active-border-color: #00857D;--tblr-navbar-active-bg: rgba(0, 0, 0, .06);--tblr-navbar-color: var(--tblr-body-color);--tblr-navbar-border-color: var(--tblr-border-color);align-items:stretch;min-height:3.5rem;box-shadow:inset 0 calc(-1 * var(--tblr-navbar-border-width)) 0 0 var(--tblr-navbar-border-color);background:var(--tblr-navbar-bg);color:var(--tblr-navbar-color)}.navbar-collapse .navbar{flex-grow:1}.navbar.collapsing{min-height:0}.navbar .dropdown-menu{position:absolute;z-index:1030}.navbar .navbar-nav{min-height:3rem}.navbar .navbar-nav .nav-link{position:relative;min-width:2rem;min-height:2rem;justify-content:center;border-radius:var(--tblr-border-radius)}.navbar .navbar-nav .nav-link .badge{position:absolute;top:.375rem;right:.375rem;transform:translate(50%,-50%)}.navbar-nav{margin:0;padding:0}@media (max-width: 575.98px){.navbar-expand-sm .navbar-collapse{flex-direction:column}.navbar-expand-sm .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-sm .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-sm .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-sm .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-sm .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-sm .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-sm .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 576px){.navbar-expand-sm .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-sm .nav-item.active{position:relative}.navbar-expand-sm .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-sm.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-sm.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-sm.navbar-vertical~.navbar,.navbar-expand-sm.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-sm.navbar-vertical.navbar-right~.navbar,.navbar-expand-sm.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}@media (max-width: 767.98px){.navbar-expand-md .navbar-collapse{flex-direction:column}.navbar-expand-md .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-md .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-md .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-md .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-md .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-md .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-md .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 768px){.navbar-expand-md .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-md .nav-item.active{position:relative}.navbar-expand-md .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-md.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-md.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-md.navbar-vertical~.navbar,.navbar-expand-md.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-md.navbar-vertical.navbar-right~.navbar,.navbar-expand-md.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}@media (max-width: 991.98px){.navbar-expand-lg .navbar-collapse{flex-direction:column}.navbar-expand-lg .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-lg .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-lg .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-lg .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-lg .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-lg .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-lg .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 992px){.navbar-expand-lg .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-lg .nav-item.active{position:relative}.navbar-expand-lg .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-lg.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-lg.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-lg.navbar-vertical~.navbar,.navbar-expand-lg.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-lg.navbar-vertical.navbar-right~.navbar,.navbar-expand-lg.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}@media (max-width: 1199.98px){.navbar-expand-xl .navbar-collapse{flex-direction:column}.navbar-expand-xl .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-xl .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-xl .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-xl .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-xl .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-xl .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-xl .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 1200px){.navbar-expand-xl .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-xl .nav-item.active{position:relative}.navbar-expand-xl .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-xl.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-xl.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-xl.navbar-vertical~.navbar,.navbar-expand-xl.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-xl.navbar-vertical.navbar-right~.navbar,.navbar-expand-xl.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}@media (max-width: 1399.98px){.navbar-expand-xxl .navbar-collapse{flex-direction:column}.navbar-expand-xxl .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-xxl .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-xxl .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-xxl .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-xxl .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-xxl .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-xxl .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 1400px){.navbar-expand-xxl .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-xxl .nav-item.active{position:relative}.navbar-expand-xxl .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-xxl.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-xxl.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-xxl.navbar-vertical~.navbar,.navbar-expand-xxl.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-xxl.navbar-vertical.navbar-right~.navbar,.navbar-expand-xxl.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}.navbar-expand .navbar-collapse{flex-direction:column}.navbar-expand .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}.navbar-expand .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand .nav-item.active{position:relative}.navbar-expand .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand.navbar-vertical~.navbar,.navbar-expand.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand.navbar-vertical.navbar-right~.navbar,.navbar-expand.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}.navbar-brand{display:inline-flex;align-items:center;font-weight:var(--tblr-font-weight-bold);margin:0;line-height:1;gap:.5rem}.navbar-brand-image{height:2rem;width:auto}.navbar-toggler{border:0;width:2rem;height:2rem;position:relative;display:flex;align-items:center;justify-content:center}.navbar-toggler-icon{height:2px;width:1.25em;background:currentColor;border-radius:10px;transition:top .2s .2s,bottom .2s .2s,transform .2s,opacity 0s .2s;position:relative}@media (prefers-reduced-motion: reduce){.navbar-toggler-icon{transition:none}}.navbar-toggler-icon:before,.navbar-toggler-icon:after{content:"";display:block;height:inherit;width:inherit;border-radius:inherit;background:inherit;position:absolute;left:0;transition:inherit}@media (prefers-reduced-motion: reduce){.navbar-toggler-icon:before,.navbar-toggler-icon:after{transition:none}}.navbar-toggler-icon:before{top:-.45em}.navbar-toggler-icon:after{bottom:-.45em}.navbar-toggler[aria-expanded=true] .navbar-toggler-icon{transform:rotate(45deg);transition:top .3s,bottom .3s,transform .3s .3s,opacity 0s .3s}@media (prefers-reduced-motion: reduce){.navbar-toggler[aria-expanded=true] .navbar-toggler-icon{transition:none}}.navbar-toggler[aria-expanded=true] .navbar-toggler-icon:before{top:0;transform:rotate(-90deg)}.navbar-toggler[aria-expanded=true] .navbar-toggler-icon:after{bottom:0;opacity:0}.navbar-transparent{--tblr-navbar-border-color: transparent !important;background:transparent!important}.navbar-nav{align-items:stretch}.navbar-nav .nav-item{display:flex;flex-direction:column;justify-content:center}.navbar-side{margin:0;display:flex;flex-direction:row;align-items:center;justify-content:space-around}@media (min-width: 576px){.navbar-vertical.navbar-expand-sm{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 576px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-sm{transition:none}}@media (min-width: 576px){.navbar-vertical.navbar-expand-sm.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-sm .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-sm .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-sm .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-sm .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-sm>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-sm~.page{padding-left:18rem}.navbar-vertical.navbar-expand-sm~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-sm.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-sm .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-sm .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-sm .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-sm .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-sm .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 768px){.navbar-vertical.navbar-expand-md{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 768px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-md{transition:none}}@media (min-width: 768px){.navbar-vertical.navbar-expand-md.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-md .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-md .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-md .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-md .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-md>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-md~.page{padding-left:18rem}.navbar-vertical.navbar-expand-md~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-md.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-md .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-md .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-md .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-md .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-md .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 992px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-lg{transition:none}}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-lg .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-lg .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-lg .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-lg .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-lg>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-lg~.page{padding-left:18rem}.navbar-vertical.navbar-expand-lg~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-lg.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-lg .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-lg .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-lg .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-lg .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-lg .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 1200px){.navbar-vertical.navbar-expand-xl{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 1200px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-xl{transition:none}}@media (min-width: 1200px){.navbar-vertical.navbar-expand-xl.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-xl .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-xl .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-xl .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-xl .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-xl>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-xl~.page{padding-left:18rem}.navbar-vertical.navbar-expand-xl~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-xl.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-xl .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-xl .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-xl .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-xl .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-xl .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 1400px){.navbar-vertical.navbar-expand-xxl{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 1400px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-xxl{transition:none}}@media (min-width: 1400px){.navbar-vertical.navbar-expand-xxl.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-xxl .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-xxl .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-xxl .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-xxl .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-xxl>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-xxl~.page{padding-left:18rem}.navbar-vertical.navbar-expand-xxl~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-xxl.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-xxl .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-xxl .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-xxl .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-xxl .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-xxl .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}.navbar-vertical.navbar-expand{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}@media (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand{transition:none}}.navbar-vertical.navbar-expand.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand~.page{padding-left:18rem}.navbar-vertical.navbar-expand~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}.navbar-overlap:after{content:"";height:9rem;position:absolute;top:100%;left:0;right:0;background:inherit;z-index:-1;box-shadow:inherit}.page{display:flex;flex-direction:column;position:relative;min-height:100%}.page-center{justify-content:center}.page-wrapper{flex:1;display:flex;flex-direction:column}@media print{.page-wrapper{margin:0!important}}.page-wrapper-full .page-body:first-child{margin:0;border-top:0}.page-body{margin-top:var(--tblr-page-padding-y);margin-bottom:var(--tblr-page-padding-y);display:flex;flex-direction:column;flex:1}.page-body-card{background:var(--tblr-bg-surface);border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);padding:var(--tblr-page-padding) 0;margin-bottom:0;flex:1}.page-body~.page-body-card{margin-top:0}.page-cover{background:no-repeat center/cover;min-height:9rem}@media (min-width: 768px){.page-cover{min-height:12rem}}@media (min-width: 992px){.page-cover{min-height:15rem}}.page-cover-overlay{position:relative}.page-cover-overlay:after{content:"";position:absolute;inset:0;background-image:linear-gradient(180deg,#0000,#0009)}.page-header{display:flex;flex-wrap:wrap;min-height:2.25rem;flex-direction:column;justify-content:center}.page-wrapper .page-header{margin:var(--tblr-page-padding-y) 0 0}.page-header-border{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);padding:var(--tblr-page-padding-y) 0;margin:0!important;background-color:var(--tblr-bg-surface)}.page-pretitle{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary)}.page-title{margin:0;font-size:var(--tblr-font-size-h2);line-height:var(--tblr-line-height-h2);font-weight:var(--tblr-font-weight-headings);color:inherit;display:flex;align-items:center}.page-title svg{width:1.5rem;height:1.5rem;margin-right:.25rem}.page-title-lg{font-size:1.5rem;line-height:2rem}.page-subtitle{margin-top:.25rem;color:var(--tblr-secondary)}.page-cover{--tblr-page-cover-blur: 20px;--tblr-page-cover-padding: 1rem;min-height:6rem;padding:var(--tblr-page-cover-padding) 0;position:relative;overflow:hidden}.page-cover-img{position:absolute;top:calc(-2 * var(--tblr-page-cover-blur, 0));left:calc(-2 * var(--tblr-page-cover-blur, 0));right:calc(-2 * var(--tblr-page-cover-blur, 0));bottom:calc(-2 * var(--tblr-page-cover-blur, 0));pointer-events:none;filter:blur(var(--tblr-page-cover-blur));object-fit:cover;background-size:cover;background-position:center;z-index:-1}.page-tabs{margin-top:.5rem;position:relative}.page-header-tabs .nav-bordered{border:0}.page-header-tabs+.page-body-card{margin-top:0}.footer{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);background-color:#fff;padding:2rem 0;color:var(--tblr-gray-500);margin-top:auto}.footer-transparent{background-color:transparent;border-top:0}body:not(.theme-dark):not([data-bs-theme=dark]) .hide-theme-light{display:none!important}body:not(.theme-dark):not([data-bs-theme=dark]) .img-dark{display:none!important}body.theme-dark .hide-theme-dark,body[data-bs-theme=dark] .hide-theme-dark,body.theme-dark .img-light,body[data-bs-theme=dark] .img-light{display:none!important}[data-bs-theme=dark],body[data-bs-theme=dark] [data-bs-theme=light]{--tblr-body-color: #dce1e7;--tblr-body-color-rgb: 220, 225, 231;--tblr-muted: #49566c;--tblr-body-bg: #151f2c;--tblr-body-bg-rgb: 21, 31, 44;--tblr-emphasis-color: #ffffff;--tblr-emphasis-color-rgb: 255, 255, 255;--tblr-bg-forms: #151f2c;--tblr-bg-surface: #182433;--tblr-bg-surface-dark: #151f2c;--tblr-bg-surface-secondary: #1b293a;--tblr-bg-surface-tertiary: #151f2c;--tblr-link-color: #00aea3;--tblr-link-hover-color: #00857D;--tblr-active-bg: #1b293a;--tblr-disabled-color: var(--tblr-gray-700);--tblr-border-color: var(--tblr-dark-mode-border-color);--tblr-border-color-translucent: var( --tblr-dark-mode-border-color-translucent );--tblr-border-dark-color: var(--tblr-dark-mode-border-dark-color);--tblr-border-active-color: var( --tblr-dark-mode-border-active-color );--tblr-btn-color: #151f2c;--tblr-code-color: var(--tblr-body-color);--tblr-code-bg: #1f2e41;--tblr-primary-lt: #162e3a;--tblr-primary-lt-rgb: 22, 46, 58;--tblr-secondary-lt: #202d3c;--tblr-secondary-lt-rgb: 32, 45, 60;--tblr-success-lt: #1a3235;--tblr-success-lt-rgb: 26, 50, 53;--tblr-info-lt: #1c3044;--tblr-info-lt-rgb: 28, 48, 68;--tblr-warning-lt: #2e2b2f;--tblr-warning-lt-rgb: 46, 43, 47;--tblr-danger-lt: #2b2634;--tblr-danger-lt-rgb: 43, 38, 52;--tblr-light-lt: #2e3947;--tblr-light-lt-rgb: 46, 57, 71;--tblr-dark-lt: #182433;--tblr-dark-lt-rgb: 24, 36, 51;--tblr-muted-lt: #202d3c;--tblr-muted-lt-rgb: 32, 45, 60;--tblr-blue-lt: #162c43;--tblr-blue-lt-rgb: 22, 44, 67;--tblr-azure-lt: #1c3044;--tblr-azure-lt-rgb: 28, 48, 68;--tblr-indigo-lt: #1c2a45;--tblr-indigo-lt-rgb: 28, 42, 69;--tblr-purple-lt: #272742;--tblr-purple-lt-rgb: 39, 39, 66;--tblr-pink-lt: #2b2639;--tblr-pink-lt-rgb: 43, 38, 57;--tblr-red-lt: #2b2634;--tblr-red-lt-rgb: 43, 38, 52;--tblr-orange-lt: #2e2b2f;--tblr-orange-lt-rgb: 46, 43, 47;--tblr-yellow-lt: #2e302e;--tblr-yellow-lt-rgb: 46, 48, 46;--tblr-lime-lt: #213330;--tblr-lime-lt-rgb: 33, 51, 48;--tblr-green-lt: #1a3235;--tblr-green-lt-rgb: 26, 50, 53;--tblr-teal-lt: #17313a;--tblr-teal-lt-rgb: 23, 49, 58;--tblr-cyan-lt: #183140;--tblr-cyan-lt-rgb: 24, 49, 64;--tblr-x-lt: #16202e;--tblr-x-lt-rgb: 22, 32, 46;--tblr-facebook-lt: #182c46;--tblr-facebook-lt-rgb: 24, 44, 70;--tblr-twitter-lt: #193146;--tblr-twitter-lt-rgb: 25, 49, 70;--tblr-linkedin-lt: #172b41;--tblr-linkedin-lt-rgb: 23, 43, 65;--tblr-google-lt: #2c2834;--tblr-google-lt-rgb: 44, 40, 52;--tblr-youtube-lt: #2f202e;--tblr-youtube-lt-rgb: 47, 32, 46;--tblr-vimeo-lt: #183345;--tblr-vimeo-lt-rgb: 24, 51, 69;--tblr-dribbble-lt: #2d283c;--tblr-dribbble-lt-rgb: 45, 40, 60;--tblr-github-lt: #182330;--tblr-github-lt-rgb: 24, 35, 48;--tblr-instagram-lt: #2c2737;--tblr-instagram-lt-rgb: 44, 39, 55;--tblr-pinterest-lt: #292131;--tblr-pinterest-lt-rgb: 41, 33, 49;--tblr-vk-lt: #202e3f;--tblr-vk-lt-rgb: 32, 46, 63;--tblr-rss-lt: #2f312e;--tblr-rss-lt-rgb: 47, 49, 46;--tblr-flickr-lt: #162a44;--tblr-flickr-lt-rgb: 22, 42, 68;--tblr-bitbucket-lt: #162942;--tblr-bitbucket-lt-rgb: 22, 41, 66;--tblr-tabler-lt: #162c43;--tblr-tabler-lt-rgb: 22, 44, 67}[data-bs-theme=dark] .navbar-brand-autodark .navbar-brand-image{filter:brightness(0) invert(1)}.accordion{--tblr-accordion-color: var(--tblr-body-color)}.accordion-button:focus:not(:focus-visible){outline:none;box-shadow:none}.accordion-button:after{opacity:.7}.accordion-button:not(.collapsed){font-weight:var(--tblr-font-weight-bold);border-bottom-color:transparent;box-shadow:none}.accordion-button:not(.collapsed):after{opacity:1}.alert{--tblr-alert-color: var(--tblr-secondary);--tblr-alert-bg: var(--tblr-bg-surface);border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);border-left:.25rem var(--tblr-border-style) var(--tblr-alert-color);box-shadow:#1824330a 0 2px 4px}.alert>:last-child{margin-bottom:0}.alert-important{border-color:transparent;background:var(--tblr-alert-color);color:#fff}.alert-important .alert-icon,.alert-important .alert-link,.alert-important .alert-title,.alert-important .alert-link:hover{color:inherit}.alert-important .btn-close{filter:var(--tblr-btn-close-white-filter)}.alert-link,.alert-link:hover{color:var(--tblr-alert-color)}.alert-primary{--tblr-alert-color: var(--tblr-primary)}.alert-secondary{--tblr-alert-color: var(--tblr-secondary)}.alert-success{--tblr-alert-color: var(--tblr-success)}.alert-info{--tblr-alert-color: var(--tblr-info)}.alert-warning{--tblr-alert-color: var(--tblr-warning)}.alert-danger{--tblr-alert-color: var(--tblr-danger)}.alert-light{--tblr-alert-color: var(--tblr-light)}.alert-dark{--tblr-alert-color: var(--tblr-dark)}.alert-muted{--tblr-alert-color: var(--tblr-muted)}.alert-blue{--tblr-alert-color: var(--tblr-blue)}.alert-azure{--tblr-alert-color: var(--tblr-azure)}.alert-indigo{--tblr-alert-color: var(--tblr-indigo)}.alert-purple{--tblr-alert-color: var(--tblr-purple)}.alert-pink{--tblr-alert-color: var(--tblr-pink)}.alert-red{--tblr-alert-color: var(--tblr-red)}.alert-orange{--tblr-alert-color: var(--tblr-orange)}.alert-yellow{--tblr-alert-color: var(--tblr-yellow)}.alert-lime{--tblr-alert-color: var(--tblr-lime)}.alert-green{--tblr-alert-color: var(--tblr-green)}.alert-teal{--tblr-alert-color: var(--tblr-teal)}.alert-cyan{--tblr-alert-color: var(--tblr-cyan)}.alert-x{--tblr-alert-color: var(--tblr-x)}.alert-facebook{--tblr-alert-color: var(--tblr-facebook)}.alert-twitter{--tblr-alert-color: var(--tblr-twitter)}.alert-linkedin{--tblr-alert-color: var(--tblr-linkedin)}.alert-google{--tblr-alert-color: var(--tblr-google)}.alert-youtube{--tblr-alert-color: var(--tblr-youtube)}.alert-vimeo{--tblr-alert-color: var(--tblr-vimeo)}.alert-dribbble{--tblr-alert-color: var(--tblr-dribbble)}.alert-github{--tblr-alert-color: var(--tblr-github)}.alert-instagram{--tblr-alert-color: var(--tblr-instagram)}.alert-pinterest{--tblr-alert-color: var(--tblr-pinterest)}.alert-vk{--tblr-alert-color: var(--tblr-vk)}.alert-rss{--tblr-alert-color: var(--tblr-rss)}.alert-flickr{--tblr-alert-color: var(--tblr-flickr)}.alert-bitbucket{--tblr-alert-color: var(--tblr-bitbucket)}.alert-tabler{--tblr-alert-color: var(--tblr-tabler)}.alert-icon{color:var(--tblr-alert-color);width:1.5rem!important;height:1.5rem!important;margin:-.125rem 1rem -.125rem 0}.alert-title{font-size:.875rem;line-height:1.25rem;font-weight:var(--tblr-font-weight-bold);margin-bottom:.25rem;color:var(--tblr-alert-color)}.avatar{--tblr-avatar-size: 2.5rem;--tblr-avatar-status-size: .75rem;--tblr-avatar-bg: var(--tblr-bg-surface-secondary);--tblr-avatar-box-shadow: var(--tblr-box-shadow-border);--tblr-avatar-font-size: 1rem;--tblr-avatar-icon-size: 1.5rem;position:relative;width:var(--tblr-avatar-size);height:var(--tblr-avatar-size);font-size:var(--tblr-avatar-font-size);font-weight:var(--tblr-font-weight-medium);line-height:1;display:inline-flex;align-items:center;justify-content:center;color:var(--tblr-secondary);text-align:center;text-transform:uppercase;vertical-align:bottom;user-select:none;background:var(--tblr-avatar-bg) no-repeat center/cover;border-radius:var(--tblr-border-radius);box-shadow:var(--tblr-avatar-box-shadow)}.avatar .icon{width:var(--tblr-avatar-icon-size);height:var(--tblr-avatar-icon-size)}.avatar .badge{position:absolute;right:0;bottom:0;border-radius:100rem;box-shadow:0 0 0 calc(var(--tblr-avatar-status-size) / 4) var(--tblr-bg-surface)}a.avatar{cursor:pointer}.avatar-rounded{border-radius:100rem}.avatar-xxs{--tblr-avatar-size: 1rem;--tblr-avatar-status-size: .25rem;--tblr-avatar-font-size: .5rem;--tblr-avatar-icon-size: .75rem}.avatar-xxs .badge:empty{width:.25rem;height:.25rem}.avatar-xs{--tblr-avatar-size: 1.25rem;--tblr-avatar-status-size: .375rem;--tblr-avatar-font-size: .625rem;--tblr-avatar-icon-size: 1rem}.avatar-xs .badge:empty{width:.375rem;height:.375rem}.avatar-sm{--tblr-avatar-size: 2rem;--tblr-avatar-status-size: .5rem;--tblr-avatar-font-size: .75rem;--tblr-avatar-icon-size: 1.25rem}.avatar-sm .badge:empty{width:.5rem;height:.5rem}.avatar-md{--tblr-avatar-size: 2.5rem;--tblr-avatar-status-size: .75rem;--tblr-avatar-font-size: .875rem;--tblr-avatar-icon-size: 1.5rem}.avatar-md .badge:empty{width:.75rem;height:.75rem}.avatar-lg{--tblr-avatar-size: 3rem;--tblr-avatar-status-size: .75rem;--tblr-avatar-font-size: 1.25rem;--tblr-avatar-icon-size: 2rem}.avatar-lg .badge:empty{width:.75rem;height:.75rem}.avatar-xl{--tblr-avatar-size: 5rem;--tblr-avatar-status-size: 1rem;--tblr-avatar-font-size: 2rem;--tblr-avatar-icon-size: 3rem}.avatar-xl .badge:empty{width:1rem;height:1rem}.avatar-2xl{--tblr-avatar-size: 7rem;--tblr-avatar-status-size: 1rem;--tblr-avatar-font-size: 3rem;--tblr-avatar-icon-size: 5rem}.avatar-2xl .badge:empty{width:1rem;height:1rem}.avatar-list{--tblr-list-gap: .5rem;display:flex;flex-wrap:wrap;gap:var(--tblr-list-gap)}.avatar-list a.avatar:hover{z-index:1}.avatar-list-stacked{display:block;--tblr-list-gap: 0}.avatar-list-stacked .avatar{margin-right:calc(-.5 * var(--tblr-avatar-size))!important;box-shadow:var(--tblr-avatar-box-shadow),0 0 0 2px var(--tblr-card-cap-bg, var(--tblr-card-bg, var(--tblr-bg-surface)))}.avatar-upload{width:4rem;height:4rem;border:var(--tblr-border-width) dashed var(--tblr-border-color);background:var(--tblr-bg-forms);flex-direction:column;transition:color .3s,background-color .3s}@media (prefers-reduced-motion: reduce){.avatar-upload{transition:none}}.avatar-upload svg{width:1.5rem;height:1.5rem;stroke-width:1}.avatar-upload:hover{border-color:var(--tblr-primary);color:var(--tblr-primary);text-decoration:none}.avatar-upload-text{font-size:.625rem;line-height:1;margin-top:.25rem}.avatar-cover{margin-top:calc(-.5 * var(--tblr-avatar-size));box-shadow:0 0 0 .25rem var(--tblr-card-bg, var(--tblr-body-bg))}.badge{justify-content:center;align-items:center;background:var(--tblr-bg-surface-secondary);overflow:hidden;user-select:none;border:var(--tblr-border-width) var(--tblr-border-style) transparent;min-width:1.35714285em;font-weight:var(--tblr-font-weight-bold);letter-spacing:.04em;vertical-align:bottom}a.badge{color:var(--tblr-bg-surface)}.badge .avatar{box-sizing:content-box;width:1.25rem;height:1.25rem;margin:0 .5rem 0 -.5rem}.badge .icon{width:1em;height:1em;font-size:1rem;stroke-width:2}.badge:empty,.badge-empty{display:inline-block;width:.5rem;height:.5rem;min-width:0;min-height:auto;padding:0;border-radius:100rem;vertical-align:baseline}.badge-outline{background-color:transparent;border:var(--tblr-border-width) var(--tblr-border-style) currentColor}.badge-pill{border-radius:100rem}.badges-list{--tblr-list-gap: .5rem;display:flex;flex-wrap:wrap;gap:var(--tblr-list-gap)}.badge-notification{position:absolute!important;top:0!important;right:0!important;transform:translate(50%,-50%);z-index:1}.badge-blink{animation:blink 2s infinite}.breadcrumb{--tblr-breadcrumb-item-active-font-weight: var(--tblr-font-weight-bold);--tblr-breadcrumb-item-disabled-color: var(--tblr-disabled-color);--tblr-breadcrumb-link-color: var(--tblr-link-color);padding:0;margin:0;background:transparent}.breadcrumb a{color:var(--tblr-breadcrumb-link-color)}.breadcrumb a:hover{text-decoration:underline}.breadcrumb-muted{--tblr-breadcrumb-link-color: var(--tblr-secondary)}.breadcrumb-item.active{font-weight:var(--tblr-breadcrumb-item-active-font-weight)}.breadcrumb-item.active a{color:inherit;pointer-events:none}.breadcrumb-item.disabled{color:var(--tblr-breadcrumb-item-disabled-color)}.breadcrumb-item.disabled:before{color:inherit}.breadcrumb-item.disabled a{color:inherit;pointer-events:none}.breadcrumb-dots{--tblr-breadcrumb-divider: "\b7"}.breadcrumb-arrows{--tblr-breadcrumb-divider: "\203a"}.breadcrumb-bullets{--tblr-breadcrumb-divider: "\2022"}.btn{--tblr-btn-icon-size: 1.25rem;--tblr-btn-bg: var(--tblr-bg-surface);--tblr-btn-color: var(--tblr-body-color);--tblr-btn-border-color: var(--tblr-border-color);--tblr-btn-hover-bg: var(--tblr-btn-bg);--tblr-btn-hover-border-color: var(--tblr-border-active-color);--tblr-btn-box-shadow: var(--tblr-box-shadow-input);--tblr-btn-active-color: var(--tblr-primary);--tblr-btn-active-bg: rgba(var(--tblr-primary-rgb), .04);--tblr-btn-active-border-color: var(--tblr-primary);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;box-shadow:var(--tblr-btn-box-shadow)}.btn .icon{width:var(--tblr-btn-icon-size);height:var(--tblr-btn-icon-size);min-width:var(--tblr-btn-icon-size);margin:0 calc(var(--tblr-btn-padding-x) / 2) 0 calc(var(--tblr-btn-padding-x) / -4);vertical-align:bottom;color:inherit}.btn .avatar{width:var(--tblr-btn-icon-size);height:var(--tblr-btn-icon-size);margin:0 calc(var(--tblr-btn-padding-x) / 2) 0 calc(var(--tblr-btn-padding-x) / -4)}.btn .icon-right{margin:0 calc(var(--tblr-btn-padding-x) / -4) 0 calc(var(--tblr-btn-padding-x) / 2)}.btn .badge{top:auto}.btn-check+.btn:hover{color:var(--tblr-btn-hover-color);background-color:var(--tblr-btn-hover-bg);border-color:var(--tblr-btn-hover-border-color)}.btn-link{color:#009f95;background-color:transparent;border-color:transparent;box-shadow:none}.btn-link .icon{color:inherit}.btn-link:hover{color:#006a64;border-color:transparent}.btn-primary{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-primary-fg);--tblr-btn-bg: var(--tblr-primary);--tblr-btn-hover-color: var(--tblr-primary-fg);--tblr-btn-hover-bg: rgba(var(--tblr-primary-rgb), .8);--tblr-btn-active-color: var(--tblr-primary-fg);--tblr-btn-active-bg: rgba(var(--tblr-primary-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-primary);--tblr-btn-disabled-color: var(--tblr-primary-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-primary{--tblr-btn-color: var(--tblr-primary);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-primary);--tblr-btn-hover-color: var(--tblr-primary-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-primary);--tblr-btn-active-color: var(--tblr-primary-fg);--tblr-btn-active-bg: var(--tblr-primary);--tblr-btn-disabled-color: var(--tblr-primary);--tblr-btn-disabled-border-color: var(--tblr-primary)}.btn-secondary{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-secondary-fg);--tblr-btn-bg: var(--tblr-secondary);--tblr-btn-hover-color: var(--tblr-secondary-fg);--tblr-btn-hover-bg: rgba(var(--tblr-secondary-rgb), .8);--tblr-btn-active-color: var(--tblr-secondary-fg);--tblr-btn-active-bg: rgba(var(--tblr-secondary-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-secondary);--tblr-btn-disabled-color: var(--tblr-secondary-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-secondary{--tblr-btn-color: var(--tblr-secondary);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-secondary);--tblr-btn-hover-color: var(--tblr-secondary-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-secondary);--tblr-btn-active-color: var(--tblr-secondary-fg);--tblr-btn-active-bg: var(--tblr-secondary);--tblr-btn-disabled-color: var(--tblr-secondary);--tblr-btn-disabled-border-color: var(--tblr-secondary)}.btn-success{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-success-fg);--tblr-btn-bg: var(--tblr-success);--tblr-btn-hover-color: var(--tblr-success-fg);--tblr-btn-hover-bg: rgba(var(--tblr-success-rgb), .8);--tblr-btn-active-color: var(--tblr-success-fg);--tblr-btn-active-bg: rgba(var(--tblr-success-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-success);--tblr-btn-disabled-color: var(--tblr-success-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-success{--tblr-btn-color: var(--tblr-success);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-success);--tblr-btn-hover-color: var(--tblr-success-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-success);--tblr-btn-active-color: var(--tblr-success-fg);--tblr-btn-active-bg: var(--tblr-success);--tblr-btn-disabled-color: var(--tblr-success);--tblr-btn-disabled-border-color: var(--tblr-success)}.btn-info{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-info-fg);--tblr-btn-bg: var(--tblr-info);--tblr-btn-hover-color: var(--tblr-info-fg);--tblr-btn-hover-bg: rgba(var(--tblr-info-rgb), .8);--tblr-btn-active-color: var(--tblr-info-fg);--tblr-btn-active-bg: rgba(var(--tblr-info-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-info);--tblr-btn-disabled-color: var(--tblr-info-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-info{--tblr-btn-color: var(--tblr-info);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-info);--tblr-btn-hover-color: var(--tblr-info-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-info);--tblr-btn-active-color: var(--tblr-info-fg);--tblr-btn-active-bg: var(--tblr-info);--tblr-btn-disabled-color: var(--tblr-info);--tblr-btn-disabled-border-color: var(--tblr-info)}.btn-warning{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-warning-fg);--tblr-btn-bg: var(--tblr-warning);--tblr-btn-hover-color: var(--tblr-warning-fg);--tblr-btn-hover-bg: rgba(var(--tblr-warning-rgb), .8);--tblr-btn-active-color: var(--tblr-warning-fg);--tblr-btn-active-bg: rgba(var(--tblr-warning-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-warning);--tblr-btn-disabled-color: var(--tblr-warning-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-warning{--tblr-btn-color: var(--tblr-warning);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-warning);--tblr-btn-hover-color: var(--tblr-warning-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-warning);--tblr-btn-active-color: var(--tblr-warning-fg);--tblr-btn-active-bg: var(--tblr-warning);--tblr-btn-disabled-color: var(--tblr-warning);--tblr-btn-disabled-border-color: var(--tblr-warning)}.btn-danger{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-danger-fg);--tblr-btn-bg: var(--tblr-danger);--tblr-btn-hover-color: var(--tblr-danger-fg);--tblr-btn-hover-bg: rgba(var(--tblr-danger-rgb), .8);--tblr-btn-active-color: var(--tblr-danger-fg);--tblr-btn-active-bg: rgba(var(--tblr-danger-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-danger);--tblr-btn-disabled-color: var(--tblr-danger-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-danger{--tblr-btn-color: var(--tblr-danger);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-danger);--tblr-btn-hover-color: var(--tblr-danger-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-danger);--tblr-btn-active-color: var(--tblr-danger-fg);--tblr-btn-active-bg: var(--tblr-danger);--tblr-btn-disabled-color: var(--tblr-danger);--tblr-btn-disabled-border-color: var(--tblr-danger)}.btn-light{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-light-fg);--tblr-btn-bg: var(--tblr-light);--tblr-btn-hover-color: var(--tblr-light-fg);--tblr-btn-hover-bg: rgba(var(--tblr-light-rgb), .8);--tblr-btn-active-color: var(--tblr-light-fg);--tblr-btn-active-bg: rgba(var(--tblr-light-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-light);--tblr-btn-disabled-color: var(--tblr-light-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-light{--tblr-btn-color: var(--tblr-light);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-light);--tblr-btn-hover-color: var(--tblr-light-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-light);--tblr-btn-active-color: var(--tblr-light-fg);--tblr-btn-active-bg: var(--tblr-light);--tblr-btn-disabled-color: var(--tblr-light);--tblr-btn-disabled-border-color: var(--tblr-light)}.btn-dark{--tblr-btn-border-color: var(--tblr-dark-mode-border-color);--tblr-btn-hover-border-color: var(--tblr-dark-mode-border-active-color);--tblr-btn-active-border-color: var(--tblr-dark-mode-border-active-color);--tblr-btn-color: var(--tblr-dark-fg);--tblr-btn-bg: var(--tblr-dark);--tblr-btn-hover-color: var(--tblr-dark-fg);--tblr-btn-hover-bg: rgba(var(--tblr-dark-rgb), .8);--tblr-btn-active-color: var(--tblr-dark-fg);--tblr-btn-active-bg: rgba(var(--tblr-dark-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-dark);--tblr-btn-disabled-color: var(--tblr-dark-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-dark{--tblr-btn-color: var(--tblr-dark);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-dark);--tblr-btn-hover-color: var(--tblr-dark-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-dark);--tblr-btn-active-color: var(--tblr-dark-fg);--tblr-btn-active-bg: var(--tblr-dark);--tblr-btn-disabled-color: var(--tblr-dark);--tblr-btn-disabled-border-color: var(--tblr-dark)}.btn-muted{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-muted-fg);--tblr-btn-bg: var(--tblr-muted);--tblr-btn-hover-color: var(--tblr-muted-fg);--tblr-btn-hover-bg: rgba(var(--tblr-muted-rgb), .8);--tblr-btn-active-color: var(--tblr-muted-fg);--tblr-btn-active-bg: rgba(var(--tblr-muted-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-muted);--tblr-btn-disabled-color: var(--tblr-muted-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-muted{--tblr-btn-color: var(--tblr-muted);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-muted);--tblr-btn-hover-color: var(--tblr-muted-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-muted);--tblr-btn-active-color: var(--tblr-muted-fg);--tblr-btn-active-bg: var(--tblr-muted);--tblr-btn-disabled-color: var(--tblr-muted);--tblr-btn-disabled-border-color: var(--tblr-muted)}.btn-blue{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-blue-fg);--tblr-btn-bg: var(--tblr-blue);--tblr-btn-hover-color: var(--tblr-blue-fg);--tblr-btn-hover-bg: rgba(var(--tblr-blue-rgb), .8);--tblr-btn-active-color: var(--tblr-blue-fg);--tblr-btn-active-bg: rgba(var(--tblr-blue-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-blue);--tblr-btn-disabled-color: var(--tblr-blue-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-blue{--tblr-btn-color: var(--tblr-blue);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-blue);--tblr-btn-hover-color: var(--tblr-blue-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-blue);--tblr-btn-active-color: var(--tblr-blue-fg);--tblr-btn-active-bg: var(--tblr-blue);--tblr-btn-disabled-color: var(--tblr-blue);--tblr-btn-disabled-border-color: var(--tblr-blue)}.btn-azure{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-azure-fg);--tblr-btn-bg: var(--tblr-azure);--tblr-btn-hover-color: var(--tblr-azure-fg);--tblr-btn-hover-bg: rgba(var(--tblr-azure-rgb), .8);--tblr-btn-active-color: var(--tblr-azure-fg);--tblr-btn-active-bg: rgba(var(--tblr-azure-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-azure);--tblr-btn-disabled-color: var(--tblr-azure-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-azure{--tblr-btn-color: var(--tblr-azure);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-azure);--tblr-btn-hover-color: var(--tblr-azure-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-azure);--tblr-btn-active-color: var(--tblr-azure-fg);--tblr-btn-active-bg: var(--tblr-azure);--tblr-btn-disabled-color: var(--tblr-azure);--tblr-btn-disabled-border-color: var(--tblr-azure)}.btn-indigo{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-indigo-fg);--tblr-btn-bg: var(--tblr-indigo);--tblr-btn-hover-color: var(--tblr-indigo-fg);--tblr-btn-hover-bg: rgba(var(--tblr-indigo-rgb), .8);--tblr-btn-active-color: var(--tblr-indigo-fg);--tblr-btn-active-bg: rgba(var(--tblr-indigo-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-indigo);--tblr-btn-disabled-color: var(--tblr-indigo-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-indigo{--tblr-btn-color: var(--tblr-indigo);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-indigo);--tblr-btn-hover-color: var(--tblr-indigo-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-indigo);--tblr-btn-active-color: var(--tblr-indigo-fg);--tblr-btn-active-bg: var(--tblr-indigo);--tblr-btn-disabled-color: var(--tblr-indigo);--tblr-btn-disabled-border-color: var(--tblr-indigo)}.btn-purple{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-purple-fg);--tblr-btn-bg: var(--tblr-purple);--tblr-btn-hover-color: var(--tblr-purple-fg);--tblr-btn-hover-bg: rgba(var(--tblr-purple-rgb), .8);--tblr-btn-active-color: var(--tblr-purple-fg);--tblr-btn-active-bg: rgba(var(--tblr-purple-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-purple);--tblr-btn-disabled-color: var(--tblr-purple-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-purple{--tblr-btn-color: var(--tblr-purple);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-purple);--tblr-btn-hover-color: var(--tblr-purple-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-purple);--tblr-btn-active-color: var(--tblr-purple-fg);--tblr-btn-active-bg: var(--tblr-purple);--tblr-btn-disabled-color: var(--tblr-purple);--tblr-btn-disabled-border-color: var(--tblr-purple)}.btn-pink{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-pink-fg);--tblr-btn-bg: var(--tblr-pink);--tblr-btn-hover-color: var(--tblr-pink-fg);--tblr-btn-hover-bg: rgba(var(--tblr-pink-rgb), .8);--tblr-btn-active-color: var(--tblr-pink-fg);--tblr-btn-active-bg: rgba(var(--tblr-pink-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-pink);--tblr-btn-disabled-color: var(--tblr-pink-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-pink{--tblr-btn-color: var(--tblr-pink);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-pink);--tblr-btn-hover-color: var(--tblr-pink-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-pink);--tblr-btn-active-color: var(--tblr-pink-fg);--tblr-btn-active-bg: var(--tblr-pink);--tblr-btn-disabled-color: var(--tblr-pink);--tblr-btn-disabled-border-color: var(--tblr-pink)}.btn-red{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-red-fg);--tblr-btn-bg: var(--tblr-red);--tblr-btn-hover-color: var(--tblr-red-fg);--tblr-btn-hover-bg: rgba(var(--tblr-red-rgb), .8);--tblr-btn-active-color: var(--tblr-red-fg);--tblr-btn-active-bg: rgba(var(--tblr-red-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-red);--tblr-btn-disabled-color: var(--tblr-red-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-red{--tblr-btn-color: var(--tblr-red);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-red);--tblr-btn-hover-color: var(--tblr-red-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-red);--tblr-btn-active-color: var(--tblr-red-fg);--tblr-btn-active-bg: var(--tblr-red);--tblr-btn-disabled-color: var(--tblr-red);--tblr-btn-disabled-border-color: var(--tblr-red)}.btn-orange{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-orange-fg);--tblr-btn-bg: var(--tblr-orange);--tblr-btn-hover-color: var(--tblr-orange-fg);--tblr-btn-hover-bg: rgba(var(--tblr-orange-rgb), .8);--tblr-btn-active-color: var(--tblr-orange-fg);--tblr-btn-active-bg: rgba(var(--tblr-orange-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-orange);--tblr-btn-disabled-color: var(--tblr-orange-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-orange{--tblr-btn-color: var(--tblr-orange);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-orange);--tblr-btn-hover-color: var(--tblr-orange-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-orange);--tblr-btn-active-color: var(--tblr-orange-fg);--tblr-btn-active-bg: var(--tblr-orange);--tblr-btn-disabled-color: var(--tblr-orange);--tblr-btn-disabled-border-color: var(--tblr-orange)}.btn-yellow{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-yellow-fg);--tblr-btn-bg: var(--tblr-yellow);--tblr-btn-hover-color: var(--tblr-yellow-fg);--tblr-btn-hover-bg: rgba(var(--tblr-yellow-rgb), .8);--tblr-btn-active-color: var(--tblr-yellow-fg);--tblr-btn-active-bg: rgba(var(--tblr-yellow-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-yellow);--tblr-btn-disabled-color: var(--tblr-yellow-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-yellow{--tblr-btn-color: var(--tblr-yellow);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-yellow);--tblr-btn-hover-color: var(--tblr-yellow-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-yellow);--tblr-btn-active-color: var(--tblr-yellow-fg);--tblr-btn-active-bg: var(--tblr-yellow);--tblr-btn-disabled-color: var(--tblr-yellow);--tblr-btn-disabled-border-color: var(--tblr-yellow)}.btn-lime{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-lime-fg);--tblr-btn-bg: var(--tblr-lime);--tblr-btn-hover-color: var(--tblr-lime-fg);--tblr-btn-hover-bg: rgba(var(--tblr-lime-rgb), .8);--tblr-btn-active-color: var(--tblr-lime-fg);--tblr-btn-active-bg: rgba(var(--tblr-lime-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-lime);--tblr-btn-disabled-color: var(--tblr-lime-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-lime{--tblr-btn-color: var(--tblr-lime);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-lime);--tblr-btn-hover-color: var(--tblr-lime-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-lime);--tblr-btn-active-color: var(--tblr-lime-fg);--tblr-btn-active-bg: var(--tblr-lime);--tblr-btn-disabled-color: var(--tblr-lime);--tblr-btn-disabled-border-color: var(--tblr-lime)}.btn-green{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-green-fg);--tblr-btn-bg: var(--tblr-green);--tblr-btn-hover-color: var(--tblr-green-fg);--tblr-btn-hover-bg: rgba(var(--tblr-green-rgb), .8);--tblr-btn-active-color: var(--tblr-green-fg);--tblr-btn-active-bg: rgba(var(--tblr-green-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-green);--tblr-btn-disabled-color: var(--tblr-green-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-green{--tblr-btn-color: var(--tblr-green);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-green);--tblr-btn-hover-color: var(--tblr-green-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-green);--tblr-btn-active-color: var(--tblr-green-fg);--tblr-btn-active-bg: var(--tblr-green);--tblr-btn-disabled-color: var(--tblr-green);--tblr-btn-disabled-border-color: var(--tblr-green)}.btn-teal{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-teal-fg);--tblr-btn-bg: var(--tblr-teal);--tblr-btn-hover-color: var(--tblr-teal-fg);--tblr-btn-hover-bg: rgba(var(--tblr-teal-rgb), .8);--tblr-btn-active-color: var(--tblr-teal-fg);--tblr-btn-active-bg: rgba(var(--tblr-teal-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-teal);--tblr-btn-disabled-color: var(--tblr-teal-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-teal{--tblr-btn-color: var(--tblr-teal);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-teal);--tblr-btn-hover-color: var(--tblr-teal-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-teal);--tblr-btn-active-color: var(--tblr-teal-fg);--tblr-btn-active-bg: var(--tblr-teal);--tblr-btn-disabled-color: var(--tblr-teal);--tblr-btn-disabled-border-color: var(--tblr-teal)}.btn-cyan{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-cyan-fg);--tblr-btn-bg: var(--tblr-cyan);--tblr-btn-hover-color: var(--tblr-cyan-fg);--tblr-btn-hover-bg: rgba(var(--tblr-cyan-rgb), .8);--tblr-btn-active-color: var(--tblr-cyan-fg);--tblr-btn-active-bg: rgba(var(--tblr-cyan-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-cyan);--tblr-btn-disabled-color: var(--tblr-cyan-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-cyan{--tblr-btn-color: var(--tblr-cyan);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-cyan);--tblr-btn-hover-color: var(--tblr-cyan-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-cyan);--tblr-btn-active-color: var(--tblr-cyan-fg);--tblr-btn-active-bg: var(--tblr-cyan);--tblr-btn-disabled-color: var(--tblr-cyan);--tblr-btn-disabled-border-color: var(--tblr-cyan)}.btn-x{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-x-fg);--tblr-btn-bg: var(--tblr-x);--tblr-btn-hover-color: var(--tblr-x-fg);--tblr-btn-hover-bg: rgba(var(--tblr-x-rgb), .8);--tblr-btn-active-color: var(--tblr-x-fg);--tblr-btn-active-bg: rgba(var(--tblr-x-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-x);--tblr-btn-disabled-color: var(--tblr-x-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-x{--tblr-btn-color: var(--tblr-x);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-x);--tblr-btn-hover-color: var(--tblr-x-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-x);--tblr-btn-active-color: var(--tblr-x-fg);--tblr-btn-active-bg: var(--tblr-x);--tblr-btn-disabled-color: var(--tblr-x);--tblr-btn-disabled-border-color: var(--tblr-x)}.btn-facebook{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-facebook-fg);--tblr-btn-bg: var(--tblr-facebook);--tblr-btn-hover-color: var(--tblr-facebook-fg);--tblr-btn-hover-bg: rgba(var(--tblr-facebook-rgb), .8);--tblr-btn-active-color: var(--tblr-facebook-fg);--tblr-btn-active-bg: rgba(var(--tblr-facebook-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-facebook);--tblr-btn-disabled-color: var(--tblr-facebook-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-facebook{--tblr-btn-color: var(--tblr-facebook);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-facebook);--tblr-btn-hover-color: var(--tblr-facebook-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-facebook);--tblr-btn-active-color: var(--tblr-facebook-fg);--tblr-btn-active-bg: var(--tblr-facebook);--tblr-btn-disabled-color: var(--tblr-facebook);--tblr-btn-disabled-border-color: var(--tblr-facebook)}.btn-twitter{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-twitter-fg);--tblr-btn-bg: var(--tblr-twitter);--tblr-btn-hover-color: var(--tblr-twitter-fg);--tblr-btn-hover-bg: rgba(var(--tblr-twitter-rgb), .8);--tblr-btn-active-color: var(--tblr-twitter-fg);--tblr-btn-active-bg: rgba(var(--tblr-twitter-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-twitter);--tblr-btn-disabled-color: var(--tblr-twitter-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-twitter{--tblr-btn-color: var(--tblr-twitter);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-twitter);--tblr-btn-hover-color: var(--tblr-twitter-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-twitter);--tblr-btn-active-color: var(--tblr-twitter-fg);--tblr-btn-active-bg: var(--tblr-twitter);--tblr-btn-disabled-color: var(--tblr-twitter);--tblr-btn-disabled-border-color: var(--tblr-twitter)}.btn-linkedin{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-linkedin-fg);--tblr-btn-bg: var(--tblr-linkedin);--tblr-btn-hover-color: var(--tblr-linkedin-fg);--tblr-btn-hover-bg: rgba(var(--tblr-linkedin-rgb), .8);--tblr-btn-active-color: var(--tblr-linkedin-fg);--tblr-btn-active-bg: rgba(var(--tblr-linkedin-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-linkedin);--tblr-btn-disabled-color: var(--tblr-linkedin-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-linkedin{--tblr-btn-color: var(--tblr-linkedin);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-linkedin);--tblr-btn-hover-color: var(--tblr-linkedin-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-linkedin);--tblr-btn-active-color: var(--tblr-linkedin-fg);--tblr-btn-active-bg: var(--tblr-linkedin);--tblr-btn-disabled-color: var(--tblr-linkedin);--tblr-btn-disabled-border-color: var(--tblr-linkedin)}.btn-google{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-google-fg);--tblr-btn-bg: var(--tblr-google);--tblr-btn-hover-color: var(--tblr-google-fg);--tblr-btn-hover-bg: rgba(var(--tblr-google-rgb), .8);--tblr-btn-active-color: var(--tblr-google-fg);--tblr-btn-active-bg: rgba(var(--tblr-google-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-google);--tblr-btn-disabled-color: var(--tblr-google-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-google{--tblr-btn-color: var(--tblr-google);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-google);--tblr-btn-hover-color: var(--tblr-google-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-google);--tblr-btn-active-color: var(--tblr-google-fg);--tblr-btn-active-bg: var(--tblr-google);--tblr-btn-disabled-color: var(--tblr-google);--tblr-btn-disabled-border-color: var(--tblr-google)}.btn-youtube{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-youtube-fg);--tblr-btn-bg: var(--tblr-youtube);--tblr-btn-hover-color: var(--tblr-youtube-fg);--tblr-btn-hover-bg: rgba(var(--tblr-youtube-rgb), .8);--tblr-btn-active-color: var(--tblr-youtube-fg);--tblr-btn-active-bg: rgba(var(--tblr-youtube-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-youtube);--tblr-btn-disabled-color: var(--tblr-youtube-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-youtube{--tblr-btn-color: var(--tblr-youtube);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-youtube);--tblr-btn-hover-color: var(--tblr-youtube-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-youtube);--tblr-btn-active-color: var(--tblr-youtube-fg);--tblr-btn-active-bg: var(--tblr-youtube);--tblr-btn-disabled-color: var(--tblr-youtube);--tblr-btn-disabled-border-color: var(--tblr-youtube)}.btn-vimeo{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-vimeo-fg);--tblr-btn-bg: var(--tblr-vimeo);--tblr-btn-hover-color: var(--tblr-vimeo-fg);--tblr-btn-hover-bg: rgba(var(--tblr-vimeo-rgb), .8);--tblr-btn-active-color: var(--tblr-vimeo-fg);--tblr-btn-active-bg: rgba(var(--tblr-vimeo-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-vimeo);--tblr-btn-disabled-color: var(--tblr-vimeo-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-vimeo{--tblr-btn-color: var(--tblr-vimeo);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-vimeo);--tblr-btn-hover-color: var(--tblr-vimeo-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-vimeo);--tblr-btn-active-color: var(--tblr-vimeo-fg);--tblr-btn-active-bg: var(--tblr-vimeo);--tblr-btn-disabled-color: var(--tblr-vimeo);--tblr-btn-disabled-border-color: var(--tblr-vimeo)}.btn-dribbble{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-dribbble-fg);--tblr-btn-bg: var(--tblr-dribbble);--tblr-btn-hover-color: var(--tblr-dribbble-fg);--tblr-btn-hover-bg: rgba(var(--tblr-dribbble-rgb), .8);--tblr-btn-active-color: var(--tblr-dribbble-fg);--tblr-btn-active-bg: rgba(var(--tblr-dribbble-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-dribbble);--tblr-btn-disabled-color: var(--tblr-dribbble-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-dribbble{--tblr-btn-color: var(--tblr-dribbble);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-dribbble);--tblr-btn-hover-color: var(--tblr-dribbble-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-dribbble);--tblr-btn-active-color: var(--tblr-dribbble-fg);--tblr-btn-active-bg: var(--tblr-dribbble);--tblr-btn-disabled-color: var(--tblr-dribbble);--tblr-btn-disabled-border-color: var(--tblr-dribbble)}.btn-github{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-github-fg);--tblr-btn-bg: var(--tblr-github);--tblr-btn-hover-color: var(--tblr-github-fg);--tblr-btn-hover-bg: rgba(var(--tblr-github-rgb), .8);--tblr-btn-active-color: var(--tblr-github-fg);--tblr-btn-active-bg: rgba(var(--tblr-github-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-github);--tblr-btn-disabled-color: var(--tblr-github-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-github{--tblr-btn-color: var(--tblr-github);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-github);--tblr-btn-hover-color: var(--tblr-github-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-github);--tblr-btn-active-color: var(--tblr-github-fg);--tblr-btn-active-bg: var(--tblr-github);--tblr-btn-disabled-color: var(--tblr-github);--tblr-btn-disabled-border-color: var(--tblr-github)}.btn-instagram{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-instagram-fg);--tblr-btn-bg: var(--tblr-instagram);--tblr-btn-hover-color: var(--tblr-instagram-fg);--tblr-btn-hover-bg: rgba(var(--tblr-instagram-rgb), .8);--tblr-btn-active-color: var(--tblr-instagram-fg);--tblr-btn-active-bg: rgba(var(--tblr-instagram-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-instagram);--tblr-btn-disabled-color: var(--tblr-instagram-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-instagram{--tblr-btn-color: var(--tblr-instagram);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-instagram);--tblr-btn-hover-color: var(--tblr-instagram-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-instagram);--tblr-btn-active-color: var(--tblr-instagram-fg);--tblr-btn-active-bg: var(--tblr-instagram);--tblr-btn-disabled-color: var(--tblr-instagram);--tblr-btn-disabled-border-color: var(--tblr-instagram)}.btn-pinterest{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-pinterest-fg);--tblr-btn-bg: var(--tblr-pinterest);--tblr-btn-hover-color: var(--tblr-pinterest-fg);--tblr-btn-hover-bg: rgba(var(--tblr-pinterest-rgb), .8);--tblr-btn-active-color: var(--tblr-pinterest-fg);--tblr-btn-active-bg: rgba(var(--tblr-pinterest-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-pinterest);--tblr-btn-disabled-color: var(--tblr-pinterest-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-pinterest{--tblr-btn-color: var(--tblr-pinterest);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-pinterest);--tblr-btn-hover-color: var(--tblr-pinterest-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-pinterest);--tblr-btn-active-color: var(--tblr-pinterest-fg);--tblr-btn-active-bg: var(--tblr-pinterest);--tblr-btn-disabled-color: var(--tblr-pinterest);--tblr-btn-disabled-border-color: var(--tblr-pinterest)}.btn-vk{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-vk-fg);--tblr-btn-bg: var(--tblr-vk);--tblr-btn-hover-color: var(--tblr-vk-fg);--tblr-btn-hover-bg: rgba(var(--tblr-vk-rgb), .8);--tblr-btn-active-color: var(--tblr-vk-fg);--tblr-btn-active-bg: rgba(var(--tblr-vk-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-vk);--tblr-btn-disabled-color: var(--tblr-vk-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-vk{--tblr-btn-color: var(--tblr-vk);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-vk);--tblr-btn-hover-color: var(--tblr-vk-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-vk);--tblr-btn-active-color: var(--tblr-vk-fg);--tblr-btn-active-bg: var(--tblr-vk);--tblr-btn-disabled-color: var(--tblr-vk);--tblr-btn-disabled-border-color: var(--tblr-vk)}.btn-rss{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-rss-fg);--tblr-btn-bg: var(--tblr-rss);--tblr-btn-hover-color: var(--tblr-rss-fg);--tblr-btn-hover-bg: rgba(var(--tblr-rss-rgb), .8);--tblr-btn-active-color: var(--tblr-rss-fg);--tblr-btn-active-bg: rgba(var(--tblr-rss-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-rss);--tblr-btn-disabled-color: var(--tblr-rss-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-rss{--tblr-btn-color: var(--tblr-rss);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-rss);--tblr-btn-hover-color: var(--tblr-rss-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-rss);--tblr-btn-active-color: var(--tblr-rss-fg);--tblr-btn-active-bg: var(--tblr-rss);--tblr-btn-disabled-color: var(--tblr-rss);--tblr-btn-disabled-border-color: var(--tblr-rss)}.btn-flickr{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-flickr-fg);--tblr-btn-bg: var(--tblr-flickr);--tblr-btn-hover-color: var(--tblr-flickr-fg);--tblr-btn-hover-bg: rgba(var(--tblr-flickr-rgb), .8);--tblr-btn-active-color: var(--tblr-flickr-fg);--tblr-btn-active-bg: rgba(var(--tblr-flickr-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-flickr);--tblr-btn-disabled-color: var(--tblr-flickr-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-flickr{--tblr-btn-color: var(--tblr-flickr);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-flickr);--tblr-btn-hover-color: var(--tblr-flickr-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-flickr);--tblr-btn-active-color: var(--tblr-flickr-fg);--tblr-btn-active-bg: var(--tblr-flickr);--tblr-btn-disabled-color: var(--tblr-flickr);--tblr-btn-disabled-border-color: var(--tblr-flickr)}.btn-bitbucket{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-bitbucket-fg);--tblr-btn-bg: var(--tblr-bitbucket);--tblr-btn-hover-color: var(--tblr-bitbucket-fg);--tblr-btn-hover-bg: rgba(var(--tblr-bitbucket-rgb), .8);--tblr-btn-active-color: var(--tblr-bitbucket-fg);--tblr-btn-active-bg: rgba(var(--tblr-bitbucket-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-bitbucket);--tblr-btn-disabled-color: var(--tblr-bitbucket-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-bitbucket{--tblr-btn-color: var(--tblr-bitbucket);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-bitbucket);--tblr-btn-hover-color: var(--tblr-bitbucket-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-bitbucket);--tblr-btn-active-color: var(--tblr-bitbucket-fg);--tblr-btn-active-bg: var(--tblr-bitbucket);--tblr-btn-disabled-color: var(--tblr-bitbucket);--tblr-btn-disabled-border-color: var(--tblr-bitbucket)}.btn-tabler{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-tabler-fg);--tblr-btn-bg: var(--tblr-tabler);--tblr-btn-hover-color: var(--tblr-tabler-fg);--tblr-btn-hover-bg: rgba(var(--tblr-tabler-rgb), .8);--tblr-btn-active-color: var(--tblr-tabler-fg);--tblr-btn-active-bg: rgba(var(--tblr-tabler-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-tabler);--tblr-btn-disabled-color: var(--tblr-tabler-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-tabler{--tblr-btn-color: var(--tblr-tabler);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-tabler);--tblr-btn-hover-color: var(--tblr-tabler-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-tabler);--tblr-btn-active-color: var(--tblr-tabler-fg);--tblr-btn-active-bg: var(--tblr-tabler);--tblr-btn-disabled-color: var(--tblr-tabler);--tblr-btn-disabled-border-color: var(--tblr-tabler)}.btn-ghost-primary{--tblr-btn-color: var(--tblr-primary);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-primary-fg);--tblr-btn-hover-bg: var(--tblr-primary);--tblr-btn-hover-border-color: var(--tblr-primary);--tblr-btn-active-color: var(--tblr-primary-fg);--tblr-btn-active-bg: var(--tblr-primary);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-primary);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-secondary{--tblr-btn-color: var(--tblr-secondary);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-secondary-fg);--tblr-btn-hover-bg: var(--tblr-secondary);--tblr-btn-hover-border-color: var(--tblr-secondary);--tblr-btn-active-color: var(--tblr-secondary-fg);--tblr-btn-active-bg: var(--tblr-secondary);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-secondary);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-success{--tblr-btn-color: var(--tblr-success);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-success-fg);--tblr-btn-hover-bg: var(--tblr-success);--tblr-btn-hover-border-color: var(--tblr-success);--tblr-btn-active-color: var(--tblr-success-fg);--tblr-btn-active-bg: var(--tblr-success);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-success);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-info{--tblr-btn-color: var(--tblr-info);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-info-fg);--tblr-btn-hover-bg: var(--tblr-info);--tblr-btn-hover-border-color: var(--tblr-info);--tblr-btn-active-color: var(--tblr-info-fg);--tblr-btn-active-bg: var(--tblr-info);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-info);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-warning{--tblr-btn-color: var(--tblr-warning);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-warning-fg);--tblr-btn-hover-bg: var(--tblr-warning);--tblr-btn-hover-border-color: var(--tblr-warning);--tblr-btn-active-color: var(--tblr-warning-fg);--tblr-btn-active-bg: var(--tblr-warning);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-warning);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-danger{--tblr-btn-color: var(--tblr-danger);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-danger-fg);--tblr-btn-hover-bg: var(--tblr-danger);--tblr-btn-hover-border-color: var(--tblr-danger);--tblr-btn-active-color: var(--tblr-danger-fg);--tblr-btn-active-bg: var(--tblr-danger);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-danger);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-light{--tblr-btn-color: var(--tblr-light);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-light-fg);--tblr-btn-hover-bg: var(--tblr-light);--tblr-btn-hover-border-color: var(--tblr-light);--tblr-btn-active-color: var(--tblr-light-fg);--tblr-btn-active-bg: var(--tblr-light);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-light);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-dark{--tblr-btn-color: var(--tblr-dark);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-dark-fg);--tblr-btn-hover-bg: var(--tblr-dark);--tblr-btn-hover-border-color: var(--tblr-dark);--tblr-btn-active-color: var(--tblr-dark-fg);--tblr-btn-active-bg: var(--tblr-dark);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-dark);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-muted{--tblr-btn-color: var(--tblr-muted);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-muted-fg);--tblr-btn-hover-bg: var(--tblr-muted);--tblr-btn-hover-border-color: var(--tblr-muted);--tblr-btn-active-color: var(--tblr-muted-fg);--tblr-btn-active-bg: var(--tblr-muted);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-muted);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-blue{--tblr-btn-color: var(--tblr-blue);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-blue-fg);--tblr-btn-hover-bg: var(--tblr-blue);--tblr-btn-hover-border-color: var(--tblr-blue);--tblr-btn-active-color: var(--tblr-blue-fg);--tblr-btn-active-bg: var(--tblr-blue);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-blue);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-azure{--tblr-btn-color: var(--tblr-azure);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-azure-fg);--tblr-btn-hover-bg: var(--tblr-azure);--tblr-btn-hover-border-color: var(--tblr-azure);--tblr-btn-active-color: var(--tblr-azure-fg);--tblr-btn-active-bg: var(--tblr-azure);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-azure);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-indigo{--tblr-btn-color: var(--tblr-indigo);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-indigo-fg);--tblr-btn-hover-bg: var(--tblr-indigo);--tblr-btn-hover-border-color: var(--tblr-indigo);--tblr-btn-active-color: var(--tblr-indigo-fg);--tblr-btn-active-bg: var(--tblr-indigo);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-indigo);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-purple{--tblr-btn-color: var(--tblr-purple);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-purple-fg);--tblr-btn-hover-bg: var(--tblr-purple);--tblr-btn-hover-border-color: var(--tblr-purple);--tblr-btn-active-color: var(--tblr-purple-fg);--tblr-btn-active-bg: var(--tblr-purple);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-purple);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-pink{--tblr-btn-color: var(--tblr-pink);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-pink-fg);--tblr-btn-hover-bg: var(--tblr-pink);--tblr-btn-hover-border-color: var(--tblr-pink);--tblr-btn-active-color: var(--tblr-pink-fg);--tblr-btn-active-bg: var(--tblr-pink);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-pink);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-red{--tblr-btn-color: var(--tblr-red);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-red-fg);--tblr-btn-hover-bg: var(--tblr-red);--tblr-btn-hover-border-color: var(--tblr-red);--tblr-btn-active-color: var(--tblr-red-fg);--tblr-btn-active-bg: var(--tblr-red);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-red);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-orange{--tblr-btn-color: var(--tblr-orange);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-orange-fg);--tblr-btn-hover-bg: var(--tblr-orange);--tblr-btn-hover-border-color: var(--tblr-orange);--tblr-btn-active-color: var(--tblr-orange-fg);--tblr-btn-active-bg: var(--tblr-orange);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-orange);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-yellow{--tblr-btn-color: var(--tblr-yellow);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-yellow-fg);--tblr-btn-hover-bg: var(--tblr-yellow);--tblr-btn-hover-border-color: var(--tblr-yellow);--tblr-btn-active-color: var(--tblr-yellow-fg);--tblr-btn-active-bg: var(--tblr-yellow);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-yellow);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-lime{--tblr-btn-color: var(--tblr-lime);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-lime-fg);--tblr-btn-hover-bg: var(--tblr-lime);--tblr-btn-hover-border-color: var(--tblr-lime);--tblr-btn-active-color: var(--tblr-lime-fg);--tblr-btn-active-bg: var(--tblr-lime);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-lime);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-green{--tblr-btn-color: var(--tblr-green);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-green-fg);--tblr-btn-hover-bg: var(--tblr-green);--tblr-btn-hover-border-color: var(--tblr-green);--tblr-btn-active-color: var(--tblr-green-fg);--tblr-btn-active-bg: var(--tblr-green);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-green);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-teal{--tblr-btn-color: var(--tblr-teal);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-teal-fg);--tblr-btn-hover-bg: var(--tblr-teal);--tblr-btn-hover-border-color: var(--tblr-teal);--tblr-btn-active-color: var(--tblr-teal-fg);--tblr-btn-active-bg: var(--tblr-teal);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-teal);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-cyan{--tblr-btn-color: var(--tblr-cyan);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-cyan-fg);--tblr-btn-hover-bg: var(--tblr-cyan);--tblr-btn-hover-border-color: var(--tblr-cyan);--tblr-btn-active-color: var(--tblr-cyan-fg);--tblr-btn-active-bg: var(--tblr-cyan);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-cyan);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-x{--tblr-btn-color: var(--tblr-x);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-x-fg);--tblr-btn-hover-bg: var(--tblr-x);--tblr-btn-hover-border-color: var(--tblr-x);--tblr-btn-active-color: var(--tblr-x-fg);--tblr-btn-active-bg: var(--tblr-x);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-x);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-facebook{--tblr-btn-color: var(--tblr-facebook);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-facebook-fg);--tblr-btn-hover-bg: var(--tblr-facebook);--tblr-btn-hover-border-color: var(--tblr-facebook);--tblr-btn-active-color: var(--tblr-facebook-fg);--tblr-btn-active-bg: var(--tblr-facebook);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-facebook);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-twitter{--tblr-btn-color: var(--tblr-twitter);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-twitter-fg);--tblr-btn-hover-bg: var(--tblr-twitter);--tblr-btn-hover-border-color: var(--tblr-twitter);--tblr-btn-active-color: var(--tblr-twitter-fg);--tblr-btn-active-bg: var(--tblr-twitter);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-twitter);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-linkedin{--tblr-btn-color: var(--tblr-linkedin);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-linkedin-fg);--tblr-btn-hover-bg: var(--tblr-linkedin);--tblr-btn-hover-border-color: var(--tblr-linkedin);--tblr-btn-active-color: var(--tblr-linkedin-fg);--tblr-btn-active-bg: var(--tblr-linkedin);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-linkedin);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-google{--tblr-btn-color: var(--tblr-google);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-google-fg);--tblr-btn-hover-bg: var(--tblr-google);--tblr-btn-hover-border-color: var(--tblr-google);--tblr-btn-active-color: var(--tblr-google-fg);--tblr-btn-active-bg: var(--tblr-google);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-google);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-youtube{--tblr-btn-color: var(--tblr-youtube);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-youtube-fg);--tblr-btn-hover-bg: var(--tblr-youtube);--tblr-btn-hover-border-color: var(--tblr-youtube);--tblr-btn-active-color: var(--tblr-youtube-fg);--tblr-btn-active-bg: var(--tblr-youtube);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-youtube);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-vimeo{--tblr-btn-color: var(--tblr-vimeo);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-vimeo-fg);--tblr-btn-hover-bg: var(--tblr-vimeo);--tblr-btn-hover-border-color: var(--tblr-vimeo);--tblr-btn-active-color: var(--tblr-vimeo-fg);--tblr-btn-active-bg: var(--tblr-vimeo);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-vimeo);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-dribbble{--tblr-btn-color: var(--tblr-dribbble);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-dribbble-fg);--tblr-btn-hover-bg: var(--tblr-dribbble);--tblr-btn-hover-border-color: var(--tblr-dribbble);--tblr-btn-active-color: var(--tblr-dribbble-fg);--tblr-btn-active-bg: var(--tblr-dribbble);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-dribbble);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-github{--tblr-btn-color: var(--tblr-github);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-github-fg);--tblr-btn-hover-bg: var(--tblr-github);--tblr-btn-hover-border-color: var(--tblr-github);--tblr-btn-active-color: var(--tblr-github-fg);--tblr-btn-active-bg: var(--tblr-github);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-github);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-instagram{--tblr-btn-color: var(--tblr-instagram);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-instagram-fg);--tblr-btn-hover-bg: var(--tblr-instagram);--tblr-btn-hover-border-color: var(--tblr-instagram);--tblr-btn-active-color: var(--tblr-instagram-fg);--tblr-btn-active-bg: var(--tblr-instagram);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-instagram);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-pinterest{--tblr-btn-color: var(--tblr-pinterest);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-pinterest-fg);--tblr-btn-hover-bg: var(--tblr-pinterest);--tblr-btn-hover-border-color: var(--tblr-pinterest);--tblr-btn-active-color: var(--tblr-pinterest-fg);--tblr-btn-active-bg: var(--tblr-pinterest);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-pinterest);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-vk{--tblr-btn-color: var(--tblr-vk);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-vk-fg);--tblr-btn-hover-bg: var(--tblr-vk);--tblr-btn-hover-border-color: var(--tblr-vk);--tblr-btn-active-color: var(--tblr-vk-fg);--tblr-btn-active-bg: var(--tblr-vk);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-vk);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-rss{--tblr-btn-color: var(--tblr-rss);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-rss-fg);--tblr-btn-hover-bg: var(--tblr-rss);--tblr-btn-hover-border-color: var(--tblr-rss);--tblr-btn-active-color: var(--tblr-rss-fg);--tblr-btn-active-bg: var(--tblr-rss);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-rss);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-flickr{--tblr-btn-color: var(--tblr-flickr);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-flickr-fg);--tblr-btn-hover-bg: var(--tblr-flickr);--tblr-btn-hover-border-color: var(--tblr-flickr);--tblr-btn-active-color: var(--tblr-flickr-fg);--tblr-btn-active-bg: var(--tblr-flickr);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-flickr);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-bitbucket{--tblr-btn-color: var(--tblr-bitbucket);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-bitbucket-fg);--tblr-btn-hover-bg: var(--tblr-bitbucket);--tblr-btn-hover-border-color: var(--tblr-bitbucket);--tblr-btn-active-color: var(--tblr-bitbucket-fg);--tblr-btn-active-bg: var(--tblr-bitbucket);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-bitbucket);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-tabler{--tblr-btn-color: var(--tblr-tabler);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-tabler-fg);--tblr-btn-hover-bg: var(--tblr-tabler);--tblr-btn-hover-border-color: var(--tblr-tabler);--tblr-btn-active-color: var(--tblr-tabler-fg);--tblr-btn-active-bg: var(--tblr-tabler);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-tabler);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-sm,.btn-group-sm>.btn{--tblr-btn-line-height: 1.5;--tblr-btn-icon-size: .75rem}.btn-lg,.btn-group-lg>.btn{--tblr-btn-line-height: 1.5;--tblr-btn-icon-size: 2rem}.btn-pill{padding-right:1.5em;padding-left:1.5em;border-radius:10rem}.btn-pill[class*=btn-icon]{padding:.375rem 15px}.btn-square{border-radius:0}.btn-icon{min-width:calc(var(--tblr-btn-line-height) * var(--tblr-btn-font-size) + var(--tblr-btn-padding-y) * 2 + var(--tblr-btn-border-width) * 2);min-height:calc(var(--tblr-btn-line-height) * var(--tblr-btn-font-size) + var(--tblr-btn-padding-y) * 2 + var(--tblr-btn-border-width) * 2);padding-left:0;padding-right:0}.btn-icon .icon{margin:calc(-1 * var(--tblr-btn-padding-x))}.btn-list{--tblr-list-gap: .5rem;display:flex;flex-wrap:wrap;gap:var(--tblr-list-gap)}.btn-floating{position:fixed;z-index:1030;bottom:1.5rem;right:1.5rem;border-radius:100rem}.btn-loading{position:relative;color:transparent!important;text-shadow:none!important;pointer-events:none}.btn-loading>*{opacity:0}.btn-loading:after{content:"";display:inline-block;vertical-align:text-bottom;border:2px var(--tblr-border-style) currentColor;border-right-color:transparent;border-radius:100rem;color:var(--tblr-btn-color);position:absolute;width:var(--tblr-btn-icon-size);height:var(--tblr-btn-icon-size);left:calc(50% - var(--tblr-btn-icon-size) / 2);top:calc(50% - var(--tblr-btn-icon-size) / 2);animation:spinner-border .75s linear infinite}.btn-action{padding:0;border:0;color:var(--tblr-secondary);display:inline-flex;width:2rem;height:2rem;align-items:center;justify-content:center;border-radius:var(--tblr-border-radius);background:transparent}.btn-action:after{content:none}.btn-action:focus{outline:none;box-shadow:none}.btn-action:hover,.btn-action.show{color:var(--tblr-body-color);background:var(--tblr-active-bg)}.btn-action.show{color:var(--tblr-primary)}.btn-action .icon{margin:0;width:1.25rem;height:1.25rem;font-size:1.25rem;stroke-width:1}.btn-actions{display:flex}.btn-group,.btn-group-vertical{box-shadow:var(--tblr-box-shadow-input)}.btn-group>.btn-check:checked+.btn,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:5}.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus{z-index:1}.calendar{display:block;font-size:.765625rem;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.calendar-nav{display:flex;align-items:center}.calendar-title{flex:1;text-align:center}.calendar-body,.calendar-header{display:flex;flex-wrap:wrap;justify-content:flex-start;padding:.5rem 0}.calendar-header{color:var(--tblr-secondary)}.calendar-date{flex:0 0 14.2857142857%;max-width:14.2857142857%;padding:.2rem;text-align:center;border:0}.calendar-date.prev-month,.calendar-date.next-month{opacity:.25}.calendar-date .date-item{position:relative;display:inline-block;width:1.4rem;height:1.4rem;line-height:1.4rem;color:#66758c;text-align:center;text-decoration:none;white-space:nowrap;vertical-align:middle;cursor:pointer;background:0 0;border:var(--tblr-border-width) var(--tblr-border-style) transparent;border-radius:100rem;outline:0;transition:background .3s,border .3s,box-shadow .32s,color .3s}@media (prefers-reduced-motion: reduce){.calendar-date .date-item{transition:none}}.calendar-date .date-item:hover{color:var(--tblr-primary);text-decoration:none;background:#fefeff;border-color:var(--tblr-border-color)}.calendar-date .date-today{color:var(--tblr-primary);border-color:var(--tblr-border-color)}.calendar-range{position:relative}.calendar-range:before{position:absolute;top:50%;right:0;left:0;height:1.4rem;content:"";background:rgba(var(--tblr-primary-rgb),.1);transform:translateY(-50%)}.calendar-range.range-start .date-item,.calendar-range.range-end .date-item{color:#fff;background:var(--tblr-primary);border-color:var(--tblr-primary)}.calendar-range.range-start:before{left:50%}.calendar-range.range-end:before{right:50%}.carousel-indicators-vertical{left:auto;top:0;margin:0 1rem 0 0;flex-direction:column}.carousel-indicators-vertical [data-bs-target]{margin:3px 0;width:3px;height:30px;border:0;border-left:10px var(--tblr-border-style) transparent;border-right:10px var(--tblr-border-style) transparent}.carousel-indicators-dot [data-bs-target]{width:.5rem;height:.5rem;border-radius:100rem;border:10px var(--tblr-border-style) transparent;margin:0}.carousel-indicators-thumb [data-bs-target]{width:2rem;height:auto;background:no-repeat center/cover;border:0;border-radius:var(--tblr-border-radius);box-shadow:rgba(var(--tblr-body-color-rgb),.04) 0 2px 4px;margin:0 3px;opacity:.75}@media (min-width: 992px){.carousel-indicators-thumb [data-bs-target]{width:4rem}}.carousel-indicators-thumb [data-bs-target]:before{content:"";padding-top:var(--tblr-aspect-ratio, 100%);display:block}.carousel-indicators-thumb.carousel-indicators-vertical [data-bs-target]{margin:3px 0}.carousel-caption-background{background:red;position:absolute;left:0;right:0;bottom:0;height:90%;background:linear-gradient(0deg,#182433e6,#18243300)}.card{transition:transform .3s ease-out,opacity .3s ease-out,box-shadow .3s ease-out}@media (prefers-reduced-motion: reduce){.card{transition:none}}@media print{.card{border:none;box-shadow:none}}a.card{color:inherit}a.card:hover{text-decoration:none;box-shadow:rgba(var(--tblr-body-color-rgb),.16) 0 2px 16px}.card .card{box-shadow:none}.card-borderless,.card-borderless .card-header,.card-borderless .card-footer{border-color:transparent}.card-stamp{--tblr-stamp-size: 7rem;position:absolute;top:0;right:0;width:calc(var(--tblr-stamp-size) * 1);height:calc(var(--tblr-stamp-size) * 1);max-height:100%;border-top-right-radius:4px;opacity:.2;overflow:hidden;pointer-events:none}.card-stamp-lg{--tblr-stamp-size: 13rem}.card-stamp-icon{background:var(--tblr-secondary);color:var(--tblr-card-bg, var(--tblr-bg-surface));display:flex;align-items:center;justify-content:center;border-radius:100rem;width:calc(var(--tblr-stamp-size) * 1);height:calc(var(--tblr-stamp-size) * 1);position:relative;top:calc(var(--tblr-stamp-size) * -.25);right:calc(var(--tblr-stamp-size) * -.25);font-size:calc(var(--tblr-stamp-size) * .75);transform:rotate(10deg)}.card-stamp-icon .icon{stroke-width:2;width:calc(var(--tblr-stamp-size) * .75);height:calc(var(--tblr-stamp-size) * .75)}.card-img,.card-img-start{border-top-left-radius:calc(var(--tblr-border-radius) - (var(--tblr-border-width)));border-bottom-left-radius:calc(var(--tblr-border-radius) - (var(--tblr-border-width)))}.card-img,.card-img-end{border-top-right-radius:calc(var(--tblr-border-radius) - (var(--tblr-border-width)));border-bottom-right-radius:calc(var(--tblr-border-radius) - (var(--tblr-border-width)))}.card-img-overlay{display:flex;flex-direction:column;justify-content:flex-end}.card-img-overlay-dark{background-image:linear-gradient(180deg,#0000,#0009)}.card-inactive{pointer-events:none;box-shadow:none}.card-inactive .card-body{opacity:.64}.card-active{--tblr-card-border-color: var(--tblr-primary);--tblr-card-bg: var(--tblr-active-bg)}.card-btn{display:flex;align-items:center;justify-content:center;padding:1rem 1.25rem;text-align:center;transition:background .3s;border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);flex:1;color:inherit;font-weight:var(--tblr-font-weight-medium)}@media (prefers-reduced-motion: reduce){.card-btn{transition:none}}.card-btn:hover{text-decoration:none;background:rgba(var(--tblr-primary-rgb),.04)}.card-btn+.card-btn{border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.card-stacked{--tblr-card-stacked-offset: .25rem;position:relative}.card-stacked:after{position:absolute;top:calc(-1 * var(--tblr-card-stacked-offset));right:var(--tblr-card-stacked-offset);left:var(--tblr-card-stacked-offset);height:var(--tblr-card-stacked-offset);content:"";background:var(--tblr-card-bg, var(--tblr-bg-surface));border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-card-border-color);border-radius:var(--tblr-card-border-radius) var(--tblr-card-border-radius) 0 0}.card-cover{position:relative;padding:1rem 1.25rem;background:#666 no-repeat center/cover}.card-cover:before{position:absolute;inset:0;content:"";background:#1824337a}.card-cover:first-child,.card-cover:first-child:before{border-radius:4px 4px 0 0}.card-cover-blurred:before{backdrop-filter:blur(2px)}.card-actions{margin:-.5rem -.5rem -.5rem auto;padding-left:.5rem}.card-actions a{text-decoration:none}.card-header{color:inherit;display:flex;align-items:center;background:transparent}.card-header:first-child{border-radius:var(--tblr-card-border-radius) var(--tblr-card-border-radius) 0 0}.card-header-light{border-bottom-color:transparent;background:var(--tblr-bg-surface-tertiary)}.card-header-tabs{background:var(--tblr-bg-surface-tertiary);flex:1;margin:calc(var(--tblr-card-cap-padding-y) * -1) calc(var(--tblr-card-cap-padding-x) * -1) calc(var(--tblr-card-cap-padding-y) * -1);padding:calc(var(--tblr-card-cap-padding-y) * .5) calc(var(--tblr-card-cap-padding-x) * .5) 0}.card-header-pills{flex:1;margin-top:-.5rem;margin-bottom:-.5rem}.card-rotate-left{transform:rotate(-1.5deg)}.card-rotate-right{transform:rotate(1.5deg)}.card-link{color:inherit}.card-link:hover{color:inherit;text-decoration:none;box-shadow:0 1px 6px #00000014}.card-link-rotate:hover{transform:rotate(1.5deg);opacity:1}.card-link-pop:hover{transform:translateY(-2px);opacity:1}.card-footer{margin-top:auto}.card-footer:last-child{border-radius:0 0 var(--tblr-card-border-radius) var(--tblr-card-border-radius)}.card-footer-transparent{background:transparent;border-color:transparent;padding-top:0}.card-footer-borderless{border-top:none}.card-progress{height:.25rem}.card-progress:last-child{border-radius:0 0 2px 2px}.card-progress:first-child{border-radius:2px 2px 0 0}.card-meta{color:var(--tblr-secondary)}.card-title{display:block;margin:0 0 1rem;font-size:1rem;font-weight:var(--tblr-font-weight-medium);color:inherit;line-height:1.5rem}a.card-title:hover{color:inherit}.card-header .card-title{margin:0}.card-subtitle{margin-bottom:1.25rem;color:var(--tblr-secondary);font-weight:400}.card-header .card-subtitle{margin:0}.card-title .card-subtitle{margin:0 0 0 .25rem;font-size:.875rem}.card-body{position:relative}.card-body>:last-child{margin-bottom:0}.card-sm>.card-body{padding:1rem}@media (min-width: 768px){.card-md>.card-body{padding:2.5rem}}@media (min-width: 768px){.card-lg>.card-body{padding:2rem}}@media (min-width: 992px){.card-lg>.card-body{padding:4rem}}@media print{.card-body{padding:0}}.card-body+.card-body{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.card-body-scrollable{overflow:auto}.card-options{top:1.5rem;right:.75rem;display:flex;margin-left:auto}.card-options-link{display:inline-block;min-width:1rem;margin-left:.25rem;color:var(--tblr-secondary)}.card-status-top{position:absolute;top:0;right:0;left:0;height:2px;border-radius:var(--tblr-card-border-radius) var(--tblr-card-border-radius) 0 0}.card-status-start{position:absolute;right:auto;bottom:0;width:2px;height:100%;border-radius:var(--tblr-card-border-radius) 0 0 var(--tblr-card-border-radius)}.card-status-bottom{position:absolute;top:initial;bottom:0;width:100%;height:2px;border-radius:0 0 var(--tblr-card-border-radius) var(--tblr-card-border-radius)}.card-table{margin-bottom:0!important}.card-table tr td:first-child,.card-table tr th:first-child{padding-left:1.25rem;border-left:0}.card-table tr td:last-child,.card-table tr th:last-child{padding-right:1.25rem;border-right:0}.card-table thead tr:first-child,.card-table tbody tr:first-child,.card-table tfoot tr:first-child,.card-table thead tr:first-child td,.card-table thead tr:first-child th,.card-table tbody tr:first-child td,.card-table tbody tr:first-child th,.card-table tfoot tr:first-child td,.card-table tfoot tr:first-child th{border-top:0}.card-body+.card-table{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-table-border-color)}.card-code{padding:0}.card-code .highlight{margin:0;border:0}.card-code pre{margin:0!important;border:0!important}.card-chart{position:relative;z-index:1;height:3.5rem}.card-avatar{margin-left:auto;margin-right:auto;box-shadow:0 0 0 .25rem var(--tblr-card-bg, var(--tblr-bg-surface));margin-top:calc(-1 * var(--tblr-avatar-size) * .5)}.card-body+.card-list-group{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.card-list-group .list-group-item{padding-right:1.25rem;padding-left:1.25rem;border-right:0;border-left:0;border-radius:0}.card-list-group .list-group-item:last-child{border-bottom:0}.card-list-group .list-group-item:first-child{border-top:0}.card-tabs .nav-tabs{position:relative;z-index:1000;border-bottom:0}.card-tabs .nav-tabs .nav-link{background:var(--tblr-bg-surface-tertiary);border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.card-tabs .nav-tabs .nav-link.active,.card-tabs .nav-tabs .nav-link:active,.card-tabs .nav-tabs .nav-link:hover{border-color:var(--tblr-border-color-translucent);color:var(--tblr-body-color)}.card-tabs .nav-tabs .nav-link.active{color:inherit;background:var(--tblr-card-bg, var(--tblr-bg-surface));border-bottom-color:transparent}.card-tabs .nav-tabs .nav-item:not(:first-child) .nav-link{border-top-left-radius:0}.card-tabs .nav-tabs .nav-item:not(:last-child) .nav-link{border-top-right-radius:0}.card-tabs .nav-tabs .nav-item+.nav-item{margin-left:calc(-1 * var(--tblr-border-width))}.card-tabs .nav-tabs-bottom,.card-tabs .nav-tabs-bottom .nav-link{margin-bottom:0}.card-tabs .nav-tabs-bottom .nav-link.active{border-top-color:transparent}.card-tabs .nav-tabs-bottom .nav-item{margin-top:calc(-1 * var(--tblr-border-width));margin-bottom:0}.card-tabs .nav-tabs-bottom .nav-item .nav-link{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);border-radius:0 0 var(--tblr-border-radius) var(--tblr-border-radius)}.card-tabs .nav-tabs-bottom .nav-item:not(:first-child) .nav-link{border-bottom-left-radius:0}.card-tabs .nav-tabs-bottom .nav-item:not(:last-child) .nav-link{border-bottom-right-radius:0}.card-tabs .card{border-bottom-left-radius:0}.card-tabs .nav-tabs+.tab-content .card{border-bottom-left-radius:var(--tblr-card-border-radius);border-top-left-radius:0}.card-note{--tblr-card-bg: #fff7dd;--tblr-card-border-color: #fff1c9}.btn-close{cursor:pointer}.btn-close:focus{outline:none}.dropdown-menu{user-select:none;background-clip:border-box}.dropdown-menu.card{padding:0;min-width:25rem;display:none}.dropdown-menu.card.show{display:flex}.dropdown-item{min-width:11rem;display:flex;align-items:center;margin:0;line-height:1.4285714286}.dropdown-item-icon{width:1.25rem!important;height:1.25rem!important;margin-right:.5rem;color:var(--tblr-secondary);opacity:.7;text-align:center}.dropdown-item-indicator{margin-right:.5rem;margin-left:-.25rem;height:1.25rem;display:inline-flex;line-height:1;vertical-align:bottom;align-items:center}.dropdown-header{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);padding-bottom:.25rem;pointer-events:none}.dropdown-menu-scrollable{height:auto;max-height:13rem;overflow-x:hidden}.dropdown-menu-column{min-width:11rem}.dropdown-menu-column .dropdown-item{min-width:0}.dropdown-menu-columns{display:flex;flex:0 .25rem}.dropdown-menu-arrow:before{content:"";position:absolute;top:-.25rem;left:.75rem;display:block;background:inherit;width:14px;height:14px;transform:rotate(45deg);transform-origin:center;border:1px solid;border-color:inherit;z-index:-1;clip:rect(0px,9px,9px,0px)}.dropdown-menu-arrow.dropdown-menu-end:before{right:.75rem;left:auto}.dropend>.dropdown-menu{margin-top:calc(-.25rem - 1px);margin-left:-.25rem}.dropend .dropdown-toggle:after{margin-left:auto}.dropdown-menu-card{padding:0}.dropdown-menu-card>.card{margin:0;border:0;box-shadow:none}.datagrid{--tblr-datagrid-padding: 1.5rem;--tblr-datagrid-item-width: 15rem;display:grid;grid-gap:var(--tblr-datagrid-padding);grid-template-columns:repeat(auto-fit,minmax(var(--tblr-datagrid-item-width),1fr))}.datagrid-title{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);margin-bottom:.25rem}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:1rem;text-align:center}@media (min-width: 768px){.empty{padding:3rem}}.empty-icon{margin:0 0 1rem;width:3rem;height:3rem;line-height:1;color:var(--tblr-secondary)}.empty-icon svg{width:100%;height:100%}.empty-img{margin:0 0 2rem;line-height:1}.empty-header{margin:0 0 1rem;font-size:4rem;font-weight:var(--tblr-font-weight-light);line-height:1;color:var(--tblr-secondary)}.empty-title{font-size:1.25rem;line-height:1.75rem;font-weight:var(--tblr-font-weight-bold)}.empty-title,.empty-subtitle{margin:0 0 .5rem}.empty-action{margin-top:1.5rem}.empty-bordered{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.row>*{min-width:0}.col-separator{border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.container-slim{--tblr-gutter-x: calc(var(--tblr-page-padding) * 2);--tblr-gutter-y: 0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto;max-width:16rem}.container-tight{--tblr-gutter-x: calc(var(--tblr-page-padding) * 2);--tblr-gutter-y: 0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto;max-width:30rem}.container-narrow{--tblr-gutter-x: calc(var(--tblr-page-padding) * 2);--tblr-gutter-y: 0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto;max-width:45rem}.row-0{margin-right:0;margin-left:0}.row-0>.col,.row-0>[class*=col-]{padding-right:0;padding-left:0}.row-0 .card{margin-bottom:0}.row-sm{margin-right:-.375rem;margin-left:-.375rem}.row-sm>.col,.row-sm>[class*=col-]{padding-right:.375rem;padding-left:.375rem}.row-sm .card{margin-bottom:.75rem}.row-md{margin-right:-1.5rem;margin-left:-1.5rem}.row-md>.col,.row-md>[class*=col-]{padding-right:1.5rem;padding-left:1.5rem}.row-md .card{margin-bottom:3rem}.row-lg{margin-right:-3rem;margin-left:-3rem}.row-lg>.col,.row-lg>[class*=col-]{padding-right:3rem;padding-left:3rem}.row-lg .card{margin-bottom:6rem}.row-deck>.col,.row-deck>[class*=col-]{display:flex;align-items:stretch}.row-deck>.col .card,.row-deck>[class*=col-] .card{flex:1 1 auto}.row-cards{--tblr-gutter-x: var(--tblr-page-padding);--tblr-gutter-y: var(--tblr-page-padding);min-width:0}.row-cards .row-cards{flex:1}.space-y{display:flex;flex-direction:column;gap:1rem}.space-x{display:flex;gap:1rem}.space-y-0{display:flex;flex-direction:column;gap:0}.space-x-0{display:flex;gap:0}.space-y-1{display:flex;flex-direction:column;gap:.25rem}.space-x-1{display:flex;gap:.25rem}.space-y-2{display:flex;flex-direction:column;gap:.5rem}.space-x-2{display:flex;gap:.5rem}.space-y-3{display:flex;flex-direction:column;gap:1rem}.space-x-3{display:flex;gap:1rem}.space-y-4{display:flex;flex-direction:column;gap:1.5rem}.space-x-4{display:flex;gap:1.5rem}.space-y-5{display:flex;flex-direction:column;gap:2rem}.space-x-5{display:flex;gap:2rem}.space-y-6{display:flex;flex-direction:column;gap:3rem}.space-x-6{display:flex;gap:3rem}.space-y-7{display:flex;flex-direction:column;gap:5rem}.space-x-7{display:flex;gap:5rem}.space-y-8{display:flex;flex-direction:column;gap:8rem}.space-x-8{display:flex;gap:8rem}.divide-y>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y>:not(template):not(:first-child){padding-top:1rem!important}.divide-y>:not(template):not(:last-child){padding-bottom:1rem!important}.divide-x>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x>:not(template):not(:first-child){padding-left:1rem!important}.divide-x>:not(template):not(:last-child){padding-right:1rem!important}.divide-y-0>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-0>:not(template):not(:first-child){padding-top:0!important}.divide-y-0>:not(template):not(:last-child){padding-bottom:0!important}.divide-x-0>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-0>:not(template):not(:first-child){padding-left:0!important}.divide-x-0>:not(template):not(:last-child){padding-right:0!important}.divide-y-1>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-1>:not(template):not(:first-child){padding-top:.25rem!important}.divide-y-1>:not(template):not(:last-child){padding-bottom:.25rem!important}.divide-x-1>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-1>:not(template):not(:first-child){padding-left:.25rem!important}.divide-x-1>:not(template):not(:last-child){padding-right:.25rem!important}.divide-y-2>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-2>:not(template):not(:first-child){padding-top:.5rem!important}.divide-y-2>:not(template):not(:last-child){padding-bottom:.5rem!important}.divide-x-2>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-2>:not(template):not(:first-child){padding-left:.5rem!important}.divide-x-2>:not(template):not(:last-child){padding-right:.5rem!important}.divide-y-3>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-3>:not(template):not(:first-child){padding-top:1rem!important}.divide-y-3>:not(template):not(:last-child){padding-bottom:1rem!important}.divide-x-3>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-3>:not(template):not(:first-child){padding-left:1rem!important}.divide-x-3>:not(template):not(:last-child){padding-right:1rem!important}.divide-y-4>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-4>:not(template):not(:first-child){padding-top:1.5rem!important}.divide-y-4>:not(template):not(:last-child){padding-bottom:1.5rem!important}.divide-x-4>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-4>:not(template):not(:first-child){padding-left:1.5rem!important}.divide-x-4>:not(template):not(:last-child){padding-right:1.5rem!important}.divide-y-5>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-5>:not(template):not(:first-child){padding-top:2rem!important}.divide-y-5>:not(template):not(:last-child){padding-bottom:2rem!important}.divide-x-5>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-5>:not(template):not(:first-child){padding-left:2rem!important}.divide-x-5>:not(template):not(:last-child){padding-right:2rem!important}.divide-y-6>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-6>:not(template):not(:first-child){padding-top:3rem!important}.divide-y-6>:not(template):not(:last-child){padding-bottom:3rem!important}.divide-x-6>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-6>:not(template):not(:first-child){padding-left:3rem!important}.divide-x-6>:not(template):not(:last-child){padding-right:3rem!important}.divide-y-7>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-7>:not(template):not(:first-child){padding-top:5rem!important}.divide-y-7>:not(template):not(:last-child){padding-bottom:5rem!important}.divide-x-7>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-7>:not(template):not(:first-child){padding-left:5rem!important}.divide-x-7>:not(template):not(:last-child){padding-right:5rem!important}.divide-y-8>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-8>:not(template):not(:first-child){padding-top:8rem!important}.divide-y-8>:not(template):not(:last-child){padding-bottom:8rem!important}.divide-x-8>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-8>:not(template):not(:first-child){padding-left:8rem!important}.divide-x-8>:not(template):not(:last-child){padding-right:8rem!important}.divide-y-fill{display:flex;flex-direction:column;height:100%}.divide-y-fill>:not(template){flex:1;display:flex;justify-content:center;flex-direction:column}.icon{--tblr-icon-size: 1.25rem;width:var(--tblr-icon-size);height:var(--tblr-icon-size);font-size:var(--tblr-icon-size);vertical-align:bottom;stroke-width:1.5}.icon:hover{text-decoration:none}.icon-inline{--tblr-icon-size: 1rem;vertical-align:-.2rem}.icon-filled{fill:currentColor}.icon-sm{--tblr-icon-size: 1rem;stroke-width:1}.icon-md{--tblr-icon-size: 2.5rem;stroke-width:1}.icon-lg{--tblr-icon-size: 3.5rem;stroke-width:1}.icon-pulse{transition:all .15s ease 0s;animation:pulse 2s ease infinite;animation-fill-mode:both}.icon-tada{transition:all .15s ease 0s;animation:tada 3s ease infinite;animation-fill-mode:both}.icon-rotate{transition:all .15s ease 0s;animation:rotate-360 3s linear infinite;animation-fill-mode:both}.img-responsive{--tblr-img-responsive-ratio: 75%;background:no-repeat center/cover;padding-top:var(--tblr-img-responsive-ratio)}.img-responsive-grid{padding-top:calc(var(--tblr-img-responsive-ratio) - var(--tblr-gutter-y) / 2)}.img-responsive-1x1{--tblr-img-responsive-ratio: 100%}.img-responsive-2x1{--tblr-img-responsive-ratio: 50%}.img-responsive-1x2{--tblr-img-responsive-ratio: 200%}.img-responsive-3x1{--tblr-img-responsive-ratio: 33.3333333333%}.img-responsive-1x3{--tblr-img-responsive-ratio: 300%}.img-responsive-4x3{--tblr-img-responsive-ratio: 75%}.img-responsive-3x4{--tblr-img-responsive-ratio: 133.3333333333%}.img-responsive-16x9{--tblr-img-responsive-ratio: 56.25%}.img-responsive-9x16{--tblr-img-responsive-ratio: 177.7777777778%}.img-responsive-21x9{--tblr-img-responsive-ratio: 42.8571428571%}.img-responsive-9x21{--tblr-img-responsive-ratio: 233.3333333333%}textarea[cols]{height:auto}.col-form-label,.form-label{display:block;font-weight:var(--tblr-font-weight-medium)}.col-form-label.required:after,.form-label.required:after{content:"*";margin-left:.25rem;color:#d63939}.form-label-description{float:right;font-weight:var(--tblr-font-weight-normal);color:var(--tblr-gray-500)}.form-hint{display:block;color:var(--tblr-gray-500)}.form-hint:last-child{margin-bottom:0}.form-hint+.form-control{margin-top:.25rem}.form-label+.form-hint{margin-top:-.25rem}.input-group+.form-hint,.form-control+.form-hint,.form-select+.form-hint{margin-top:.5rem;color:var(--tblr-gray-500)}.form-select:-moz-focusring{color:var(--tblr-body-color)}.form-control:-webkit-autofill{box-shadow:0 0 0 1000px var(--tblr-body-bg) inset;color:var(--tblr-body-color);-webkit-text-fill-color:var(--tblr-body-color)}.form-control:disabled,.form-control.disabled{color:var(--tblr-gray-500);user-select:none}.form-control[size]{width:auto}.form-control-light{background-color:var(--tblr-gray-100);border-color:transparent}.form-control-dark{background-color:#0000001a;color:#fff;border-color:transparent}.form-control-dark:focus{background-color:#0000001a;box-shadow:none;border-color:#ffffff3d}.form-control-dark::placeholder{color:#fff9}.form-control-rounded{border-radius:10rem}.form-control-flush{padding:0;background:none!important;border-color:transparent!important;resize:none;box-shadow:none!important;line-height:inherit}.form-footer{margin-top:2rem}.form-fieldset{padding:1rem;margin-bottom:1rem;background:var(--tblr-body-bg);border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.form-help{display:inline-flex;font-weight:var(--tblr-font-weight-bold);align-items:center;justify-content:center;width:1.125rem;height:1.125rem;font-size:.75rem;color:var(--tblr-gray-500);text-align:center;text-decoration:none;cursor:pointer;user-select:none;background:var(--tblr-gray-100);border-radius:100rem;transition:background-color .3s,color .3s}@media (prefers-reduced-motion: reduce){.form-help{transition:none}}.form-help:hover,.form-help[aria-describedby]{color:#fff;background:var(--tblr-primary)}.input-group{box-shadow:var(--tblr-box-shadow-input);border-radius:var(--tblr-border-radius)}.input-group .form-control,.input-group .btn{box-shadow:none}.input-group-link{font-size:.75rem}.input-group-flat:focus-within{box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25);border-radius:var(--tblr-border-radius)}.input-group-flat:focus-within .form-control,.input-group-flat:focus-within .input-group-text{border-color:#80c2be!important}.input-group-flat .form-control:focus{border-color:var(--tblr-border-color);box-shadow:none}.input-group-flat .form-control:not(:last-child){border-right:0}.input-group-flat .form-control:not(:first-child){border-left:0}.input-group-flat .input-group-text{background:var(--tblr-bg-forms);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.input-group-flat .input-group-text{transition:none}}.input-group-flat .input-group-text:first-child{padding-right:0}.input-group-flat .input-group-text:last-child{padding-left:0}.form-file-button{margin-left:0;border-left:0}.input-icon{position:relative}.input-icon .form-control:not(:last-child),.input-icon .form-select:not(:last-child){padding-right:2.5rem}.input-icon .form-control:not(:first-child),.input-icon .form-select:not(:last-child){padding-left:2.5rem}.input-icon-addon{position:absolute;top:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;min-width:2.5rem;color:var(--tblr-icon-color);pointer-events:none;font-size:1.2em}.input-icon-addon:last-child{right:0;left:auto}.form-colorinput{position:relative;display:inline-block;margin:0;line-height:1;cursor:pointer}.form-colorinput-input{position:absolute;z-index:-1;opacity:0}.form-colorinput-color{display:block;width:1.5rem;height:1.5rem;color:#fff;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);border-radius:3px;box-shadow:0 1px 2px #0000000d}.form-colorinput-color:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background:no-repeat center center/1.25rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e");opacity:0;transition:opacity .3s}@media (prefers-reduced-motion: reduce){.form-colorinput-color:before{transition:none}}.form-colorinput-input:checked~.form-colorinput-color:before{opacity:1}.form-colorinput-input:focus~.form-colorinput-color{border-color:var(--tblr-primary);box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-colorinput-light .form-colorinput-color:before{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23182433' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e")}.form-imagecheck{position:relative;margin:0;cursor:pointer}.form-imagecheck-input{position:absolute;z-index:-1;opacity:0}.form-imagecheck-figure{position:relative;display:block;margin:0;user-select:none;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:3px}.form-imagecheck-input:focus~.form-imagecheck-figure{border-color:var(--tblr-primary);box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-imagecheck-input:checked~.form-imagecheck-figure{border-color:var(--tblr-primary)}.form-imagecheck-figure:before{position:absolute;top:.25rem;left:.25rem;z-index:1;display:block;width:1.25rem;height:1.25rem;color:#fff;pointer-events:none;content:"";user-select:none;background:var(--tblr-bg-forms);border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:var(--tblr-border-radius);transition:opacity .3s}@media (prefers-reduced-motion: reduce){.form-imagecheck-figure:before{transition:none}}.form-imagecheck-input:checked~.form-imagecheck-figure:before{background-color:var(--tblr-primary);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e");background-repeat:repeat;background-position:center;background-size:1.25rem;border-color:var(--tblr-border-color-translucent)}.form-imagecheck-input[type=radio]~.form-imagecheck-figure:before{border-radius:50%}.form-imagecheck-input[type=radio]:checked~.form-imagecheck-figure:before{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle r='3' fill='%23ffffff' cx='8' cy='8' /%3e%3c/svg%3e")}.form-imagecheck-image{max-width:100%;display:block;opacity:.64;transition:opacity .3s}@media (prefers-reduced-motion: reduce){.form-imagecheck-image{transition:none}}.form-imagecheck-image:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.form-imagecheck-image:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.form-imagecheck:hover .form-imagecheck-image,.form-imagecheck-input:focus~.form-imagecheck-figure .form-imagecheck-image,.form-imagecheck-input:checked~.form-imagecheck-figure .form-imagecheck-image{opacity:1}.form-imagecheck-caption{padding:.25rem;font-size:.765625rem;color:var(--tblr-secondary);text-align:center;transition:color .3s}@media (prefers-reduced-motion: reduce){.form-imagecheck-caption{transition:none}}.form-imagecheck:hover .form-imagecheck-caption,.form-imagecheck-input:focus~.form-imagecheck-figure .form-imagecheck-caption,.form-imagecheck-input:checked~.form-imagecheck-figure .form-imagecheck-caption{color:var(--tblr-body-color)}.form-selectgroup{display:inline-flex;margin:0 -.5rem -.5rem 0;flex-wrap:wrap}.form-selectgroup .form-selectgroup-item{margin:0 .5rem .5rem 0}.form-selectgroup-vertical{flex-direction:column}.form-selectgroup-item{display:block;position:relative}.form-selectgroup-input{position:absolute;top:0;left:0;z-index:-1;opacity:0}.form-selectgroup-label{position:relative;display:block;min-width:calc(1.4285714286em + 1.125rem + calc(var(--tblr-border-width) * 2));margin:0;padding:.5625rem .75rem;font-size:.875rem;line-height:1.4285714286;color:var(--tblr-secondary);background:var(--tblr-bg-forms);text-align:center;cursor:pointer;user-select:none;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:3px;box-shadow:var(--tblr-box-shadow-input);transition:border-color .3s,background .3s,color .3s}@media (prefers-reduced-motion: reduce){.form-selectgroup-label{transition:none}}.form-selectgroup-label .icon:only-child{margin:0 -.25rem}.form-selectgroup-label:hover{color:var(--tblr-body-color)}.form-selectgroup-check{display:inline-block;width:1.25rem;height:1.25rem;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);vertical-align:middle;box-shadow:var(--tblr-box-shadow-input)}.form-selectgroup-input[type=checkbox]+.form-selectgroup-label .form-selectgroup-check{border-radius:var(--tblr-border-radius)}.form-selectgroup-input[type=radio]+.form-selectgroup-label .form-selectgroup-check{border-radius:50%}.form-selectgroup-input:checked+.form-selectgroup-label .form-selectgroup-check{background-color:var(--tblr-primary);background-repeat:repeat;background-position:center;background-size:1.25rem;border-color:var(--tblr-border-color-translucent)}.form-selectgroup-input[type=checkbox]:checked+.form-selectgroup-label .form-selectgroup-check{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e")}.form-selectgroup-input[type=radio]:checked+.form-selectgroup-label .form-selectgroup-check{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle r='3' fill='%23ffffff' cx='8' cy='8' /%3e%3c/svg%3e")}.form-selectgroup-check-floated{position:absolute;top:.5625rem;right:.5625rem}.form-selectgroup-input:checked+.form-selectgroup-label{z-index:1;color:var(--tblr-primary);background:rgba(var(--tblr-primary-rgb),.04);border-color:var(--tblr-primary)}.form-selectgroup-input:focus+.form-selectgroup-label{z-index:2;color:var(--tblr-primary);border-color:var(--tblr-primary);box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-selectgroup-boxes .form-selectgroup-label{text-align:left;padding:1.25rem 1rem;color:inherit}.form-selectgroup-boxes .form-selectgroup-input:checked+.form-selectgroup-label{color:inherit}.form-selectgroup-boxes .form-selectgroup-input:checked+.form-selectgroup-label .form-selectgroup-title{color:var(--tblr-primary)}.form-selectgroup-boxes .form-selectgroup-input:checked+.form-selectgroup-label .form-selectgroup-label-content{opacity:1}.form-selectgroup-pills{flex-wrap:wrap;align-items:flex-start}.form-selectgroup-pills .form-selectgroup-item{flex-grow:0}.form-selectgroup-pills .form-selectgroup-label{border-radius:50px}.form-control-color::-webkit-color-swatch{border:none}[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.form-control::file-selector-button{background-color:var(--tblr-btn-color, var(--tblr-tertiary-bg))}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--tblr-btn-color, var(--tblr-secondary-bg))}.form-check{user-select:none}.form-check.form-check-highlight .form-check-input:not(:checked)~.form-check-label{color:var(--tblr-secondary)}.form-check .form-check-label-off{color:var(--tblr-secondary)}.form-check .form-check-input:checked~.form-check-label-off{display:none}.form-check .form-check-input:not(:checked)~.form-check-label-on{display:none}.form-check-input{background-size:1.25rem;margin-top:0rem;box-shadow:var(--tblr-box-shadow-input)}.form-switch .form-check-input{transition:background-color .3s,background-position .3s}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-check-label{display:block}.form-check-label.required:after{content:"*";margin-left:.25rem;color:#d63939}.form-check-description{display:block;color:var(--tblr-secondary);font-size:.75rem;margin-top:.25rem}.form-check-single,.form-check-single .form-check-input{margin:0}.form-switch .form-check-input{height:1.25rem;margin-top:0rem}.form-switch-lg{padding-left:3.5rem;min-height:1.5rem}.form-switch-lg .form-check-input{height:1.5rem;width:2.75rem;background-size:1.5rem;margin-left:-3.5rem}.form-switch-lg .form-check-label{padding-top:.125rem}.form-check-input:checked{border:none}.form-select.is-invalid-lite,.form-control.is-invalid-lite,.form-select.is-valid-lite,.form-control.is-valid-lite{border-color:var(--tblr-border-color)!important}.legend{--tblr-legend-size: .75em;display:inline-block;background:var(--tblr-border-color);width:var(--tblr-legend-size);height:var(--tblr-legend-size);border-radius:var(--tblr-border-radius-sm);border:1px solid var(--tblr-border-color-translucent)}.list-group{margin-left:0;margin-right:0}.list-group-header{background:var(--tblr-bg-surface-tertiary);padding:.5rem 1.25rem;font-size:.75rem;font-weight:var(--tblr-font-weight-medium);line-height:1;text-transform:uppercase;color:var(--tblr-gray-500);border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.list-group-flush>.list-group-header:last-child{border-bottom-width:0}.list-group-item{background-color:inherit}.list-group-item.active{background-color:rgba(var(--tblr-secondary-rgb),.08);border-left-color:#00857d;border-left-width:2px}.list-group-item:active,.list-group-item:focus,.list-group-item:hover{background-color:rgba(var(--tblr-secondary-rgb),.08)}.list-group-item.disabled,.list-group-item:disabled{color:#6c7a91;background-color:rgba(var(--tblr-secondary-rgb),.08)}.list-bordered .list-item{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);margin-top:-1px}.list-bordered .list-item:first-child{border-top:none}.list-group-hoverable .list-group-item-actions{opacity:0;transition:opacity .3s}@media (prefers-reduced-motion: reduce){.list-group-hoverable .list-group-item-actions{transition:none}}.list-group-hoverable .list-group-item:hover .list-group-item-actions,.list-group-hoverable .list-group-item-actions.show{opacity:1}.list-group-transparent{--tblr-list-group-border-radius: 0;margin:0 -1.25rem}.list-group-transparent .list-group-item{background:none;border:0}.list-group-transparent .list-group-item .icon{color:var(--tblr-secondary)}.list-group-transparent .list-group-item.active{font-weight:var(--tblr-font-weight-bold);color:inherit;background:var(--tblr-active-bg)}.list-group-transparent .list-group-item.active .icon{color:inherit}.list-separated-item{padding:1rem 0}.list-separated-item:first-child{padding-top:0}.list-separated-item:last-child{padding-bottom:0}.list-separated-item+.list-separated-item{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.list-inline-item:not(:last-child){margin-right:auto;margin-inline-end:.5rem}.list-inline-dots .list-inline-item+.list-inline-item:before{content:" \b7 ";margin-inline-end:.5rem}.loader{position:relative;display:block;width:2.5rem;height:2.5rem;color:#066fd1;vertical-align:middle}.loader:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";border:1px var(--tblr-border-style);border-color:transparent;border-top-color:currentColor;border-left-color:currentColor;border-radius:100rem;animation:rotate-360 .6s linear;animation-iteration-count:infinite}.dimmer{position:relative}.dimmer .loader{position:absolute;top:50%;right:0;left:0;display:none;margin:0 auto;transform:translateY(-50%)}.dimmer.active .loader{display:block}.dimmer.active .dimmer-content{pointer-events:none;opacity:.1}@keyframes animated-dots{0%{transform:translate(-100%)}}.animated-dots{display:inline-block;overflow:hidden;vertical-align:bottom}.animated-dots:after{display:inline-block;content:"...";animation:animated-dots 1.2s steps(4,jump-none) infinite}.modal-content>.btn-close,.modal-header>.btn-close{position:absolute;top:0;right:0;width:3.5rem;height:3.5rem;margin:0;padding:0;z-index:10}.modal-body{scrollbar-color:rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.16)}.modal-body::-webkit-scrollbar{width:1rem;height:1rem;transition:background .3s}@media (prefers-reduced-motion: reduce){.modal-body::-webkit-scrollbar{transition:none}}.modal-body::-webkit-scrollbar-thumb{border-radius:1rem;border:5px solid transparent;box-shadow:inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.16)}.modal-body::-webkit-scrollbar-track{background:transparent}.modal-body:hover::-webkit-scrollbar-thumb{box-shadow:inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.32)}.modal-body::-webkit-scrollbar-corner{background:transparent}.modal-body .modal-title{margin-bottom:1rem}.modal-body+.modal-body{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.modal-status{position:absolute;top:0;left:0;right:0;height:2px;background:var(--tblr-secondary);border-radius:var(--tblr-border-radius-lg) var(--tblr-border-radius-lg) 0 0}.modal-header{align-items:center;min-height:3.5rem;background:transparent;padding:0 3.5rem 0 1.5rem}.modal-title{font-size:1rem;font-weight:var(--tblr-font-weight-bold);color:inherit;line-height:1.4285714286}.modal-footer{padding-top:.75rem;padding-bottom:.75rem}.modal-blur{backdrop-filter:blur(4px)}.modal-full-width{max-width:none;margin:0 .5rem}.nav-vertical,.nav-vertical .nav{flex-direction:column;flex-wrap:nowrap}.nav-vertical .nav{margin-left:1.25rem;border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);padding-left:.5rem}.nav-vertical .nav-link.active,.nav-vertical .nav-item.show .nav-link{font-weight:var(--tblr-font-weight-bold)}.nav-vertical.nav-pills{margin:0 -.75rem}.nav-bordered{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.nav-bordered .nav-item+.nav-item{margin-left:1.25rem}.nav-bordered .nav-link{padding-left:0;padding-right:0;margin:0 0 -var(--tblr-border-width);border:0;border-bottom:2px var(--tblr-border-style) transparent;color:var(--tblr-secondary)}.nav-bordered .nav-link.active,.nav-bordered .nav-item.show .nav-link{color:var(--tblr-primary);border-color:var(--tblr-primary)}.nav-link{display:flex;transition:color .3s;align-items:center}@media (prefers-reduced-motion: reduce){.nav-link{transition:none}}.nav-link-toggle{margin-left:auto;padding:0 .25rem;transition:transform .3s}@media (prefers-reduced-motion: reduce){.nav-link-toggle{transition:none}}.nav-link-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(-45deg)}.nav-link-toggle:after{margin:0}.nav-link[aria-expanded=true] .nav-link-toggle{transform:rotate(180deg)}.nav-link-icon{width:1.25rem;height:1.25rem;margin-right:.5rem;color:var(--tblr-icon-color)}.nav-link-icon svg{display:block;height:100%}.nav-fill .nav-item .nav-link{justify-content:center}.stars{display:inline-flex;color:#8a97ab;font-size:.75rem}.stars .star:not(:first-child){margin-left:.25rem}.pagination{user-select:none}.page-link{min-width:1.75rem;border-radius:var(--tblr-border-radius)}.page-item{text-align:center}.page-item:not(.active) .page-link:hover{background:transparent}.page-item.page-prev,.page-item.page-next{flex:0 0 50%;text-align:left}.page-item.page-next{margin-left:auto;text-align:right}.page-item-subtitle{margin-bottom:2px;font-size:12px;color:var(--tblr-secondary);text-transform:uppercase}.page-item.disabled .page-item-subtitle{color:var(--tblr-disabled-color)}.page-item-title{font-size:1rem;font-weight:var(--tblr-font-weight-normal);color:var(--tblr-body-color)}.page-link:hover .page-item-title{color:#00857d}.page-item.disabled .page-item-title{color:var(--tblr-disabled-color)}@keyframes progress-indeterminate{0%{right:100%;left:-35%}to,60%{right:-90%;left:100%}}.progress{position:relative;width:100%;line-height:.5rem;appearance:none}.progress::-webkit-progress-bar{background:var(--tblr-progress-bg)}.progress::-webkit-progress-value{background-color:var(--tblr-primary)}.progress::-moz-progress-bar{background-color:var(--tblr-primary)}.progress::-ms-fill{background-color:var(--tblr-primary);border:none}.progress-sm{height:.25rem}.progress-bar{height:100%}.progress-bar-indeterminate:after,.progress-bar-indeterminate:before{position:absolute;top:0;bottom:0;left:0;content:"";background-color:inherit;will-change:left,right}.progress-bar-indeterminate:before{animation:progress-indeterminate 1.5s cubic-bezier(.65,.815,.735,.395) infinite}.progress-separated .progress-bar{box-shadow:0 0 0 2px var(--tblr-card-bg, var(--tblr-bg-surface))}.progressbg{position:relative;padding:.25rem .5rem;display:flex}.progressbg-text{position:relative;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progressbg-progress{position:absolute;inset:0;z-index:0;height:100%;background:transparent;pointer-events:none}.progressbg-value{font-weight:var(--tblr-font-weight-medium);margin-left:auto;padding-left:2rem}.ribbon{--tblr-ribbon-margin: .25rem;--tblr-ribbon-border-radius: var(--tblr-border-radius);position:absolute;top:.75rem;right:calc(-1 * var(--tblr-ribbon-margin));z-index:1;padding:.25rem .75rem;font-size:.625rem;font-weight:var(--tblr-font-weight-bold);line-height:1;color:#fff;text-align:center;text-transform:uppercase;background:var(--tblr-primary);border-color:var(--tblr-primary);border-radius:var(--tblr-ribbon-border-radius) 0 var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius);display:inline-flex;align-items:center;justify-content:center;min-height:2rem;min-width:2rem}.ribbon:before{position:absolute;right:0;bottom:100%;width:0;height:0;content:"";filter:brightness(70%);border:calc(var(--tblr-ribbon-margin) * .5) var(--tblr-border-style);border-color:inherit;border-top-color:transparent;border-right-color:transparent}.ribbon.bg-blue{border-color:var(--tblr-blue)}.ribbon.bg-blue-lt{border-color:rgba(var(--tblr-blue-rgb),.1)!important}.ribbon.bg-azure{border-color:var(--tblr-azure)}.ribbon.bg-azure-lt{border-color:rgba(var(--tblr-azure-rgb),.1)!important}.ribbon.bg-indigo{border-color:var(--tblr-indigo)}.ribbon.bg-indigo-lt{border-color:rgba(var(--tblr-indigo-rgb),.1)!important}.ribbon.bg-purple{border-color:var(--tblr-purple)}.ribbon.bg-purple-lt{border-color:rgba(var(--tblr-purple-rgb),.1)!important}.ribbon.bg-pink{border-color:var(--tblr-pink)}.ribbon.bg-pink-lt{border-color:rgba(var(--tblr-pink-rgb),.1)!important}.ribbon.bg-red{border-color:var(--tblr-red)}.ribbon.bg-red-lt{border-color:rgba(var(--tblr-red-rgb),.1)!important}.ribbon.bg-orange{border-color:var(--tblr-orange)}.ribbon.bg-orange-lt{border-color:rgba(var(--tblr-orange-rgb),.1)!important}.ribbon.bg-yellow{border-color:var(--tblr-yellow)}.ribbon.bg-yellow-lt{border-color:rgba(var(--tblr-yellow-rgb),.1)!important}.ribbon.bg-lime{border-color:var(--tblr-lime)}.ribbon.bg-lime-lt{border-color:rgba(var(--tblr-lime-rgb),.1)!important}.ribbon.bg-green{border-color:var(--tblr-green)}.ribbon.bg-green-lt{border-color:rgba(var(--tblr-green-rgb),.1)!important}.ribbon.bg-teal{border-color:var(--tblr-teal)}.ribbon.bg-teal-lt{border-color:rgba(var(--tblr-teal-rgb),.1)!important}.ribbon.bg-cyan{border-color:var(--tblr-cyan)}.ribbon.bg-cyan-lt{border-color:rgba(var(--tblr-cyan-rgb),.1)!important}.ribbon .icon{width:1.25rem;height:1.25rem;font-size:1.25rem}.ribbon-top{top:calc(-1 * var(--tblr-ribbon-margin));right:.75rem;width:2rem;padding:.5rem 0;border-radius:0 var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius)}.ribbon-top:before{top:0;right:100%;bottom:auto;border-color:inherit;border-top-color:transparent;border-left-color:transparent}.ribbon-top.ribbon-start{right:auto;left:.75rem}.ribbon-top.ribbon-start:before{top:0;right:100%;left:auto}.ribbon-start{right:auto;left:calc(-1 * var(--tblr-ribbon-margin));border-radius:0 var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius)}.ribbon-start:before{top:auto;bottom:100%;left:0;border-color:inherit;border-top-color:transparent;border-left-color:transparent}.ribbon-bottom{top:auto;bottom:.75rem}.ribbon-bookmark{padding-left:.25rem;border-radius:0 0 var(--tblr-ribbon-border-radius) 0}.ribbon-bookmark:after{position:absolute;top:0;right:100%;display:block;width:0;height:0;content:"";border:1rem var(--tblr-border-style);border-color:inherit;border-right-width:0;border-left-color:transparent;border-left-width:.5rem}.ribbon-bookmark.ribbon-left{padding-right:.5rem}.ribbon-bookmark.ribbon-left:after{right:auto;left:100%;border-right-color:transparent;border-right-width:.5rem;border-left-width:0}.ribbon-bookmark.ribbon-top{padding-right:0;padding-bottom:.25rem;padding-left:0;border-radius:0 var(--tblr-ribbon-border-radius) 0 0}.ribbon-bookmark.ribbon-top:after{top:100%;right:0;left:0;border-color:inherit;border-width:1rem;border-top-width:0;border-bottom-color:transparent;border-bottom-width:.5rem}.markdown{line-height:1.7142857143}.markdown>:first-child{margin-top:0}.markdown>:last-child,.markdown>:last-child .highlight{margin-bottom:0}@media (min-width: 768px){.markdown>hr,.markdown>.hr{margin-top:3em;margin-bottom:3em}}.markdown>h1,.markdown>.h1,.markdown>h2,.markdown>.h2,.markdown>h3,.markdown>.h3,.markdown>h4,.markdown>.h4,.markdown>h5,.markdown>.h5,.markdown>h6,.markdown>.h6{font-weight:var(--tblr-font-weight-bold)}.markdown>blockquote{font-size:1rem;margin:1.5rem 0;padding:.5rem 1.5rem}.markdown>img{border-radius:var(--tblr-border-radius)}.placeholder:not(.btn):not([class*=bg-]){background-color:currentColor!important}.placeholder:not(.avatar):not([class*=card-img-]){border-radius:var(--tblr-border-radius)}.steps{--tblr-steps-color: var(--tblr-primary);--tblr-steps-inactive-color: var(--tblr-border-color);--tblr-steps-dot-size: .5rem;--tblr-steps-border-width: 2px;display:flex;flex-wrap:nowrap;width:100%;padding:0;margin:0;list-style:none}.steps-blue{--tblr-steps-color: var(--tblr-blue)}.steps-azure{--tblr-steps-color: var(--tblr-azure)}.steps-indigo{--tblr-steps-color: var(--tblr-indigo)}.steps-purple{--tblr-steps-color: var(--tblr-purple)}.steps-pink{--tblr-steps-color: var(--tblr-pink)}.steps-red{--tblr-steps-color: var(--tblr-red)}.steps-orange{--tblr-steps-color: var(--tblr-orange)}.steps-yellow{--tblr-steps-color: var(--tblr-yellow)}.steps-lime{--tblr-steps-color: var(--tblr-lime)}.steps-green{--tblr-steps-color: var(--tblr-green)}.steps-teal{--tblr-steps-color: var(--tblr-teal)}.steps-cyan{--tblr-steps-color: var(--tblr-cyan)}.step-item{position:relative;flex:1 1 0;min-height:1rem;margin-top:0;color:inherit;text-align:center;cursor:default;padding-top:calc(var(--tblr-steps-dot-size))}a.step-item{cursor:pointer}a.step-item:hover{color:inherit}.step-item:after,.step-item:before{background:var(--tblr-steps-color)}.step-item:not(:last-child):after{position:absolute;left:50%;width:100%;content:"";transform:translateY(-50%)}.step-item:after{top:calc(var(--tblr-steps-dot-size) * .5);height:var(--tblr-steps-border-width)}.step-item:before{content:"";position:absolute;top:0;left:50%;z-index:1;box-sizing:content-box;display:flex;align-items:center;justify-content:center;border-radius:100rem;transform:translate(-50%);color:var(--tblr-white);width:var(--tblr-steps-dot-size);height:var(--tblr-steps-dot-size)}.step-item.active{font-weight:var(--tblr-font-weight-bold)}.step-item.active:after{background:var(--tblr-steps-inactive-color)}.step-item.active~.step-item{color:var(--tblr-disabled-color)}.step-item.active~.step-item:after,.step-item.active~.step-item:before{background:var(--tblr-steps-inactive-color)}.steps-counter{--tblr-steps-dot-size: 1.5rem;counter-reset:steps}.steps-counter .step-item{counter-increment:steps}.steps-counter .step-item:before{content:counter(steps)}.steps-vertical{--tblr-steps-dot-offset: 6px;flex-direction:column}.steps-vertical.steps-counter{--tblr-steps-dot-offset: -2px}.steps-vertical .step-item{text-align:left;padding-top:0;padding-left:calc(var(--tblr-steps-dot-size) + 1rem);min-height:auto}.steps-vertical .step-item:not(:first-child){margin-top:1rem}.steps-vertical .step-item:before{top:var(--tblr-steps-dot-offset);left:0;transform:translate(0)}.steps-vertical .step-item:not(:last-child):after{position:absolute;content:"";transform:translate(-50%);top:var(--tblr-steps-dot-offset);left:calc(var(--tblr-steps-dot-size) * .5);width:var(--tblr-steps-border-width);height:calc(100% + 1rem)}@keyframes status-pulsate-main{40%{transform:scale(1.25)}60%{transform:scale(1.25)}}@keyframes status-pulsate-secondary{10%{transform:scale(1)}30%{transform:scale(3)}80%{transform:scale(3)}to{transform:scale(1)}}@keyframes status-pulsate-tertiary{25%{transform:scale(1)}80%{transform:scale(3);opacity:0}to{transform:scale(3);opacity:0}}.status{--tblr-status-height: 1.5rem;--tblr-status-color: #6c7a91;--tblr-status-color-rgb: 108, 122, 145;display:inline-flex;align-items:center;height:var(--tblr-status-height);padding:.25rem .75rem;gap:.5rem;color:var(--tblr-status-color);background:rgba(var(--tblr-status-color-rgb),.1);font-size:.875rem;text-transform:none;letter-spacing:normal;border-radius:100rem;font-weight:var(--tblr-font-weight-medium);line-height:1;margin:0}.status .status-dot{background:var(--tblr-status-color)}.status .icon{font-size:1.25rem}.status-lite{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)!important;background:transparent!important;color:var(--tblr-body-color)!important}.status-primary{--tblr-status-color: #00857D;--tblr-status-color-rgb: 0, 133, 125}.status-secondary{--tblr-status-color: #6c7a91;--tblr-status-color-rgb: 108, 122, 145}.status-success{--tblr-status-color: #2fb344;--tblr-status-color-rgb: 47, 179, 68}.status-info{--tblr-status-color: #4299e1;--tblr-status-color-rgb: 66, 153, 225}.status-warning{--tblr-status-color: #f76707;--tblr-status-color-rgb: 247, 103, 7}.status-danger{--tblr-status-color: #d63939;--tblr-status-color-rgb: 214, 57, 57}.status-light{--tblr-status-color: #f6f8fb;--tblr-status-color-rgb: 246, 248, 251}.status-dark{--tblr-status-color: #182433;--tblr-status-color-rgb: 24, 36, 51}.status-muted{--tblr-status-color: #6c7a91;--tblr-status-color-rgb: 108, 122, 145}.status-blue{--tblr-status-color: #066fd1;--tblr-status-color-rgb: 6, 111, 209}.status-azure{--tblr-status-color: #4299e1;--tblr-status-color-rgb: 66, 153, 225}.status-indigo{--tblr-status-color: #4263eb;--tblr-status-color-rgb: 66, 99, 235}.status-purple{--tblr-status-color: #ae3ec9;--tblr-status-color-rgb: 174, 62, 201}.status-pink{--tblr-status-color: #d6336c;--tblr-status-color-rgb: 214, 51, 108}.status-red{--tblr-status-color: #d63939;--tblr-status-color-rgb: 214, 57, 57}.status-orange{--tblr-status-color: #f76707;--tblr-status-color-rgb: 247, 103, 7}.status-yellow{--tblr-status-color: #f59f00;--tblr-status-color-rgb: 245, 159, 0}.status-lime{--tblr-status-color: #74b816;--tblr-status-color-rgb: 116, 184, 22}.status-green{--tblr-status-color: #2fb344;--tblr-status-color-rgb: 47, 179, 68}.status-teal{--tblr-status-color: #0ca678;--tblr-status-color-rgb: 12, 166, 120}.status-cyan{--tblr-status-color: #17a2b8;--tblr-status-color-rgb: 23, 162, 184}.status-x{--tblr-status-color: #000000;--tblr-status-color-rgb: 0, 0, 0}.status-facebook{--tblr-status-color: #1877f2;--tblr-status-color-rgb: 24, 119, 242}.status-twitter{--tblr-status-color: #1da1f2;--tblr-status-color-rgb: 29, 161, 242}.status-linkedin{--tblr-status-color: #0a66c2;--tblr-status-color-rgb: 10, 102, 194}.status-google{--tblr-status-color: #dc4e41;--tblr-status-color-rgb: 220, 78, 65}.status-youtube{--tblr-status-color: #ff0000;--tblr-status-color-rgb: 255, 0, 0}.status-vimeo{--tblr-status-color: #1ab7ea;--tblr-status-color-rgb: 26, 183, 234}.status-dribbble{--tblr-status-color: #ea4c89;--tblr-status-color-rgb: 234, 76, 137}.status-github{--tblr-status-color: #181717;--tblr-status-color-rgb: 24, 23, 23}.status-instagram{--tblr-status-color: #e4405f;--tblr-status-color-rgb: 228, 64, 95}.status-pinterest{--tblr-status-color: #bd081c;--tblr-status-color-rgb: 189, 8, 28}.status-vk{--tblr-status-color: #6383a8;--tblr-status-color-rgb: 99, 131, 168}.status-rss{--tblr-status-color: #ffa500;--tblr-status-color-rgb: 255, 165, 0}.status-flickr{--tblr-status-color: #0063dc;--tblr-status-color-rgb: 0, 99, 220}.status-bitbucket{--tblr-status-color: #0052cc;--tblr-status-color-rgb: 0, 82, 204}.status-tabler{--tblr-status-color: #066fd1;--tblr-status-color-rgb: 6, 111, 209}.status-dot{--tblr-status-dot-color: var(--tblr-status-color, #6c7a91);--tblr-status-size: .5rem;position:relative;display:inline-block;width:var(--tblr-status-size);height:var(--tblr-status-size);background:var(--tblr-status-dot-color);border-radius:100rem}.status-dot-animated:before{content:"";position:absolute;inset:0;z-index:0;background:inherit;border-radius:inherit;opacity:.6;animation:1s linear 2s backwards infinite status-pulsate-tertiary}.status-indicator{--tblr-status-indicator-size: 2.5rem;--tblr-status-indicator-color: var(--tblr-status-color, #6c7a91);display:block;position:relative;width:var(--tblr-status-indicator-size);height:var(--tblr-status-indicator-size)}.status-indicator-circle{--tblr-status-circle-size: .75rem;position:absolute;left:50%;top:50%;margin:calc(var(--tblr-status-circle-size) / -2) 0 0 calc(var(--tblr-status-circle-size) / -2);width:var(--tblr-status-circle-size);height:var(--tblr-status-circle-size);border-radius:100rem;background:var(--tblr-status-color)}.status-indicator-circle:nth-child(1){z-index:3}.status-indicator-circle:nth-child(2){z-index:2;opacity:.1}.status-indicator-circle:nth-child(3){z-index:1;opacity:.3}.status-indicator-animated .status-indicator-circle:nth-child(1){animation:2s linear 1s infinite backwards status-pulsate-main}.status-indicator-animated .status-indicator-circle:nth-child(2){animation:2s linear 1s infinite backwards status-pulsate-secondary}.status-indicator-animated .status-indicator-circle:nth-child(3){animation:2s linear 1s infinite backwards status-pulsate-tertiary}.switch-icon{display:inline-block;line-height:1;border:0;padding:0;background:transparent;width:1.25rem;height:1.25rem;vertical-align:bottom;position:relative;cursor:pointer}.switch-icon.disabled{pointer-events:none;opacity:.4}.switch-icon:focus{outline:none}.switch-icon svg{display:block;width:100%;height:100%}.switch-icon .switch-icon-a,.switch-icon .switch-icon-b{display:block;width:100%;height:100%}.switch-icon .switch-icon-a{opacity:1}.switch-icon .switch-icon-b{position:absolute;top:0;left:0;opacity:0}.switch-icon.active .switch-icon-a{opacity:0}.switch-icon.active .switch-icon-b{opacity:1}.switch-icon-fade .switch-icon-a,.switch-icon-fade .switch-icon-b{transition:opacity .5s}@media (prefers-reduced-motion: reduce){.switch-icon-fade .switch-icon-a,.switch-icon-fade .switch-icon-b{transition:none}}.switch-icon-scale .switch-icon-a,.switch-icon-scale .switch-icon-b{transition:opacity .5s,transform 0s .5s}@media (prefers-reduced-motion: reduce){.switch-icon-scale .switch-icon-a,.switch-icon-scale .switch-icon-b{transition:none}}.switch-icon-scale .switch-icon-b{transform:scale(1.5)}.switch-icon-scale.active .switch-icon-a,.switch-icon-scale.active .switch-icon-b{transition:opacity 0s,transform .5s}@media (prefers-reduced-motion: reduce){.switch-icon-scale.active .switch-icon-a,.switch-icon-scale.active .switch-icon-b{transition:none}}.switch-icon-scale.active .switch-icon-b{transform:scale(1)}.switch-icon-flip{perspective:10em}.switch-icon-flip .switch-icon-a,.switch-icon-flip .switch-icon-b{backface-visibility:hidden;transform-style:preserve-3d;transition:opacity 0s .2s,transform .4s ease-in-out}@media (prefers-reduced-motion: reduce){.switch-icon-flip .switch-icon-a,.switch-icon-flip .switch-icon-b{transition:none}}.switch-icon-flip .switch-icon-a{opacity:1;transform:rotateY(0)}.switch-icon-flip .switch-icon-b{opacity:1;transform:rotateY(-180deg)}.switch-icon-flip.active .switch-icon-a{opacity:1;transform:rotateY(180deg)}.switch-icon-flip.active .switch-icon-b{opacity:1;transform:rotateY(0)}.switch-icon-slide-up,.switch-icon-slide-left,.switch-icon-slide-right,.switch-icon-slide-down{overflow:hidden}.switch-icon-slide-up .switch-icon-a,.switch-icon-slide-up .switch-icon-b,.switch-icon-slide-left .switch-icon-a,.switch-icon-slide-left .switch-icon-b,.switch-icon-slide-right .switch-icon-a,.switch-icon-slide-right .switch-icon-b,.switch-icon-slide-down .switch-icon-a,.switch-icon-slide-down .switch-icon-b{transition:opacity .3s,transform .3s}@media (prefers-reduced-motion: reduce){.switch-icon-slide-up .switch-icon-a,.switch-icon-slide-up .switch-icon-b,.switch-icon-slide-left .switch-icon-a,.switch-icon-slide-left .switch-icon-b,.switch-icon-slide-right .switch-icon-a,.switch-icon-slide-right .switch-icon-b,.switch-icon-slide-down .switch-icon-a,.switch-icon-slide-down .switch-icon-b{transition:none}}.switch-icon-slide-up .switch-icon-a,.switch-icon-slide-left .switch-icon-a,.switch-icon-slide-right .switch-icon-a,.switch-icon-slide-down .switch-icon-a{transform:translateY(0)}.switch-icon-slide-up .switch-icon-b,.switch-icon-slide-left .switch-icon-b,.switch-icon-slide-right .switch-icon-b,.switch-icon-slide-down .switch-icon-b{transform:translateY(100%)}.switch-icon-slide-up.active .switch-icon-a,.switch-icon-slide-left.active .switch-icon-a,.switch-icon-slide-right.active .switch-icon-a,.switch-icon-slide-down.active .switch-icon-a{transform:translateY(-100%)}.switch-icon-slide-up.active .switch-icon-b,.switch-icon-slide-left.active .switch-icon-b,.switch-icon-slide-right.active .switch-icon-b,.switch-icon-slide-down.active .switch-icon-b{transform:translateY(0)}.switch-icon-slide-left .switch-icon-a{transform:translate(0)}.switch-icon-slide-left .switch-icon-b{transform:translate(100%)}.switch-icon-slide-left.active .switch-icon-a{transform:translate(-100%)}.switch-icon-slide-left.active .switch-icon-b,.switch-icon-slide-right .switch-icon-a{transform:translate(0)}.switch-icon-slide-right .switch-icon-b{transform:translate(-100%)}.switch-icon-slide-right.active .switch-icon-a{transform:translate(100%)}.switch-icon-slide-right.active .switch-icon-b{transform:translate(0)}.switch-icon-slide-down .switch-icon-a{transform:translateY(0)}.switch-icon-slide-down .switch-icon-b{transform:translateY(-100%)}.switch-icon-slide-down.active .switch-icon-a{transform:translateY(100%)}.switch-icon-slide-down.active .switch-icon-b{transform:translateY(0)}.table thead th,.markdown>table thead th{color:var(--tblr-gray-500);background:var(--tblr-bg-surface-tertiary);font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);padding-top:.5rem;padding-bottom:.5rem;white-space:nowrap}@media print{.table thead th,.markdown>table thead th{background:transparent}}.table-responsive .table,.table-responsive .markdown>table{margin-bottom:0}.table-responsive+.card-footer{border-top:0}.table-transparent thead th{background:transparent}.table-nowrap>:not(caption)>*>*{white-space:nowrap}.table-vcenter>:not(caption)>*>*{vertical-align:middle}.table-center>:not(caption)>*>*{text-align:center}.td-truncate{max-width:1px;width:100%}.table-mobile{display:block}.table-mobile thead{display:none}.table-mobile tbody,.table-mobile tr{display:flex;flex-direction:column}.table-mobile td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile .btn{display:block}@media (max-width: 575.98px){.table-mobile-sm{display:block}.table-mobile-sm thead{display:none}.table-mobile-sm tbody,.table-mobile-sm tr{display:flex;flex-direction:column}.table-mobile-sm td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-sm td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-sm tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-sm .btn{display:block}}@media (max-width: 767.98px){.table-mobile-md{display:block}.table-mobile-md thead{display:none}.table-mobile-md tbody,.table-mobile-md tr{display:flex;flex-direction:column}.table-mobile-md td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-md td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-md tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-md .btn{display:block}}@media (max-width: 991.98px){.table-mobile-lg{display:block}.table-mobile-lg thead{display:none}.table-mobile-lg tbody,.table-mobile-lg tr{display:flex;flex-direction:column}.table-mobile-lg td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-lg td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-lg tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-lg .btn{display:block}}@media (max-width: 1199.98px){.table-mobile-xl{display:block}.table-mobile-xl thead{display:none}.table-mobile-xl tbody,.table-mobile-xl tr{display:flex;flex-direction:column}.table-mobile-xl td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-xl td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-xl tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-xl .btn{display:block}}@media (max-width: 1399.98px){.table-mobile-xxl{display:block}.table-mobile-xxl thead{display:none}.table-mobile-xxl tbody,.table-mobile-xxl tr{display:flex;flex-direction:column}.table-mobile-xxl td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-xxl td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-xxl tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-xxl .btn{display:block}}.table-sort{font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;border:0;background:inherit;display:block;width:100%;text-align:inherit;transition:color .3s;margin:-.5rem;padding:.5rem}@media (prefers-reduced-motion: reduce){.table-sort{transition:none}}.table-sort:hover,.table-sort.asc,.table-sort.desc{color:var(--tblr-body-color)}.table-sort:after{content:"";display:inline-flex;width:1rem;height:1rem;vertical-align:bottom;mask-image:url("data:image/svg+xml, ");background:currentColor;margin-left:.25rem}.table-sort.asc:after{mask-image:url("data:image/svg+xml, ")}.table-sort.desc:after{mask-image:url("data:image/svg+xml, ")}.table-borderless thead th{background:transparent}.tag{--tblr-tag-height: 1.5rem;border:1px solid var(--tblr-border-color);display:inline-flex;align-items:center;height:var(--tblr-tag-height);border-radius:var(--tblr-border-radius);padding:0 .5rem;background:var(--tblr-bg-surface);box-shadow:var(--tblr-box-shadow-input);gap:.5rem}.tag .btn-close{margin-right:-.25rem;margin-left:-.125rem;padding:0;width:1rem;height:1rem;font-size:.5rem}.tag-badge{--tblr-badge-font-size: .625rem;--tblr-badge-padding-x: .25rem;--tblr-badge-padding-y: .125rem;margin-right:-.25rem}.tag-avatar,.tag-flag,.tag-payment,.tag-icon,.tag-check{margin-left:-.25rem}.tag-icon{color:var(--tblr-secondary);margin-right:-.125rem;width:1rem;height:1rem}.tag-check{width:1rem;height:1rem;background-size:1rem}.tags-list{--tblr-list-gap: .5rem;display:flex;flex-wrap:wrap;gap:var(--tblr-list-gap)}.toast{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);box-shadow:#1824330a 0 2px 4px}.toast .toast-header{user-select:none}.toast button[data-bs-dismiss=toast]{outline:none}.toast-primary{--tblr-toast-color: #00857D}.toast-secondary{--tblr-toast-color: #6c7a91}.toast-success{--tblr-toast-color: #2fb344}.toast-info{--tblr-toast-color: #4299e1}.toast-warning{--tblr-toast-color: #f76707}.toast-danger{--tblr-toast-color: #d63939}.toast-light{--tblr-toast-color: #f6f8fb}.toast-dark{--tblr-toast-color: #182433}.toast-muted{--tblr-toast-color: #6c7a91}.toast-blue{--tblr-toast-color: #066fd1}.toast-azure{--tblr-toast-color: #4299e1}.toast-indigo{--tblr-toast-color: #4263eb}.toast-purple{--tblr-toast-color: #ae3ec9}.toast-pink{--tblr-toast-color: #d6336c}.toast-red{--tblr-toast-color: #d63939}.toast-orange{--tblr-toast-color: #f76707}.toast-yellow{--tblr-toast-color: #f59f00}.toast-lime{--tblr-toast-color: #74b816}.toast-green{--tblr-toast-color: #2fb344}.toast-teal{--tblr-toast-color: #0ca678}.toast-cyan{--tblr-toast-color: #17a2b8}.toast-x{--tblr-toast-color: #000000}.toast-facebook{--tblr-toast-color: #1877f2}.toast-twitter{--tblr-toast-color: #1da1f2}.toast-linkedin{--tblr-toast-color: #0a66c2}.toast-google{--tblr-toast-color: #dc4e41}.toast-youtube{--tblr-toast-color: #ff0000}.toast-vimeo{--tblr-toast-color: #1ab7ea}.toast-dribbble{--tblr-toast-color: #ea4c89}.toast-github{--tblr-toast-color: #181717}.toast-instagram{--tblr-toast-color: #e4405f}.toast-pinterest{--tblr-toast-color: #bd081c}.toast-vk{--tblr-toast-color: #6383a8}.toast-rss{--tblr-toast-color: #ffa500}.toast-flickr{--tblr-toast-color: #0063dc}.toast-bitbucket{--tblr-toast-color: #0052cc}.toast-tabler{--tblr-toast-color: #066fd1}.toolbar{display:flex;flex-wrap:nowrap;flex-shrink:0;margin:0 -.5rem}.toolbar>*{margin:0 .5rem}.tracking{--tblr-tracking-height: 1.5rem;--tblr-tracking-gap-width: .125rem;--tblr-tracking-block-border-radius: var(--tblr-border-radius);display:flex;gap:var(--tblr-tracking-gap-width)}.tracking-squares{--tblr-tracking-block-border-radius: var(--tblr-border-radius-sm)}.tracking-squares .tracking-block{height:auto}.tracking-squares .tracking-block:before{content:"";display:block;padding-top:100%}.tracking-block{flex:1;border-radius:var(--tblr-tracking-block-border-radius);height:var(--tblr-tracking-height);min-width:.25rem;background:var(--tblr-border-color)}.timeline{--tblr-timeline-icon-size: 2.5rem;position:relative;list-style:none;padding:0}.timeline-event{position:relative}.timeline-event:not(:last-child){margin-bottom:var(--tblr-page-padding)}.timeline-event:not(:last-child):before{content:"";position:absolute;top:var(--tblr-timeline-icon-size);left:calc(var(--tblr-timeline-icon-size) / 2);bottom:calc(-1 * var(--tblr-page-padding));width:var(--tblr-border-width);background-color:var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.timeline-event-icon{position:absolute;display:flex;align-items:center;justify-content:center;width:var(--tblr-timeline-icon-size, 2.5rem);height:var(--tblr-timeline-icon-size, 2.5rem);background:var(--tblr-gray-200);color:var(--tblr-secondary);border-radius:var(--tblr-border-radius);z-index:5}.timeline-event-card{margin-left:calc(var(--tblr-timeline-icon-size, 2.5rem) + var(--tblr-page-padding))}.timeline-simple .timeline-event-icon{display:none}.timeline-simple .timeline-event-card{margin-left:0}.hr-text{display:flex;align-items:center;margin:2rem 0;font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);height:1px}.hr-text:after,.hr-text:before{flex:1 1 auto;height:1px;background-color:var(--tblr-border-color)}.hr-text:before{content:"";margin-right:.5rem}.hr-text:after{content:"";margin-left:.5rem}.hr-text>*:first-child{padding-right:.5rem;padding-left:0;color:var(--tblr-secondary)}.hr-text.hr-text-left:before{content:none}.hr-text.hr-text-left>*:first-child{padding-right:.5rem;padding-left:.5rem}.hr-text.hr-text-right:before{content:""}.hr-text.hr-text-right:after{content:none}.hr-text.hr-text-right>*:first-child{padding-right:0;padding-left:.5rem}.card>.hr-text{margin:0}.hr-text-spaceless{margin:-.5rem 0}.lead{line-height:1.4}a{text-decoration-skip-ink:auto}h1 a,h2 a,h3 a,.field-group h2 a,h4 a,h5 a,h6 a,.h1 a,.h2 a,.h3 a,.h4 a,.h5 a,.h6 a,h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover,h5 a:hover,h6 a:hover,.h1 a:hover,.h2 a:hover,.h3 a:hover,.h4 a:hover,.h5 a:hover,.h6 a:hover{color:inherit}h1,.h1{font-size:var(--tblr-font-size-h1);line-height:var(--tblr-line-height-h1)}h2,.h2{font-size:var(--tblr-font-size-h2);line-height:var(--tblr-line-height-h2)}h3,.field-group h2,.field-group .h2,.h3{font-size:var(--tblr-font-size-h3);line-height:var(--tblr-line-height-h3)}h4,.h4{font-size:var(--tblr-font-size-h4);line-height:var(--tblr-line-height-h4)}h5,.h5{font-size:var(--tblr-font-size-h5);line-height:var(--tblr-line-height-h5)}h6,.h6{font-size:var(--tblr-font-size-h6);line-height:var(--tblr-line-height-h6)}strong,.strong,b{font-weight:var(--tblr-font-weight-bold)}blockquote{padding-left:1rem;border-left:2px var(--tblr-border-style) var(--tblr-border-color)}blockquote p{margin-bottom:1rem}blockquote cite{display:block;text-align:right}blockquote cite:before{content:"\2014 "}ul,ol{padding-left:1.5rem}hr,.hr{margin:2rem 0}dl dd:last-child{margin-bottom:0}pre{padding:1rem;background:var(--tblr-bg-surface-dark);color:var(--tblr-light);border-radius:var(--tblr-border-radius)}pre code{background:transparent}code{background:var(--tblr-code-bg);padding:2px 4px;border-radius:var(--tblr-border-radius)}kbd,.kbd{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);display:inline-block;box-sizing:border-box;max-width:100%;font-size:var(--tblr-font-size-h5);font-weight:var(--tblr-font-weight-medium);line-height:1;vertical-align:baseline;border-radius:var(--tblr-border-radius)}img,svg{max-width:100%;height:auto}.list-unstyled{margin-left:0}::selection{background-color:rgba(var(--tblr-primary-rgb),.16)}[class^=link-].disabled,[class*=" link-"].disabled{color:var(--tblr-disabled-color)!important;pointer-events:none}.subheader{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary)}.chart{display:block;min-height:10rem}.chart text{font-family:inherit}.chart-sm{height:2.5rem}.chart-lg{height:15rem}.chart-square{height:5.75rem}.chart-sparkline{position:relative;width:4rem;height:2.5rem;line-height:1;min-height:0!important}.chart-sparkline-sm{height:1.5rem}.chart-sparkline-square{width:2.5rem}.chart-sparkline-wide{width:6rem}.chart-sparkline-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:.625rem}.chart-sparkline-label .icon{width:1rem;height:1rem;font-size:1rem}.offcanvas-header{border-bottom:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)}.offcanvas-footer{padding:1.5rem}.offcanvas-title{font-size:1rem;font-weight:var(--tblr-font-weight-medium);line-height:1.5rem}.offcanvas-narrow{width:20rem}.chat-bubbles{display:flex;flex-direction:column;gap:1rem}.chat-bubble{background:var(--tblr-bg-surface-secondary);border-radius:var(--tblr-border-radius-lg);padding:1rem;position:relative}.chat-bubble-me{background-color:var(--tblr-primary-lt);box-shadow:none}.chat-bubble-title{margin-bottom:.25rem}.chat-bubble-author{font-weight:600}.chat-bubble-date{color:var(--tblr-secondary)}.chat-bubble-body>*:last-child{margin-bottom:0}.bg-white-overlay{color:#fff;background-color:#f6f8fb3d}.bg-dark-overlay{color:#fff;background-color:#1824333d}.bg-cover{background-repeat:no-repeat;background-size:cover;background-position:center}.bg-primary{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-primary-rgb),var(--tblr-bg-opacity))!important}.bg-primary-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-primary-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-primary-lt-rgb),var(--tblr-bg-opacity))!important}.border-primary{border-color:#00857d!important}.bg-secondary{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-secondary-rgb),var(--tblr-bg-opacity))!important}.bg-secondary-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-secondary-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-secondary-lt-rgb),var(--tblr-bg-opacity))!important}.border-secondary{border-color:#6c7a91!important}.bg-success{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-success-rgb),var(--tblr-bg-opacity))!important}.bg-success-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-success-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-success-lt-rgb),var(--tblr-bg-opacity))!important}.border-success{border-color:#2fb344!important}.bg-info{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-info-rgb),var(--tblr-bg-opacity))!important}.bg-info-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-info-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-info-lt-rgb),var(--tblr-bg-opacity))!important}.border-info{border-color:#4299e1!important}.bg-warning{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-warning-rgb),var(--tblr-bg-opacity))!important}.bg-warning-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-warning-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-warning-lt-rgb),var(--tblr-bg-opacity))!important}.border-warning{border-color:#f76707!important}.bg-danger{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-danger-rgb),var(--tblr-bg-opacity))!important}.bg-danger-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-danger-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-danger-lt-rgb),var(--tblr-bg-opacity))!important}.border-danger{border-color:#d63939!important}.bg-light{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-light-rgb),var(--tblr-bg-opacity))!important}.bg-light-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-light-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-light-lt-rgb),var(--tblr-bg-opacity))!important}.border-light{border-color:#f6f8fb!important}.bg-dark{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-dark-rgb),var(--tblr-bg-opacity))!important}.bg-dark-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-dark-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-dark-lt-rgb),var(--tblr-bg-opacity))!important}.border-dark{border-color:#182433!important}.bg-muted{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-muted-rgb),var(--tblr-bg-opacity))!important}.bg-muted-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-muted-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-muted-lt-rgb),var(--tblr-bg-opacity))!important}.border-muted{border-color:#6c7a91!important}.bg-blue{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-blue-rgb),var(--tblr-bg-opacity))!important}.bg-blue-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-blue-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-blue-lt-rgb),var(--tblr-bg-opacity))!important}.border-blue{border-color:#066fd1!important}.bg-azure{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-azure-rgb),var(--tblr-bg-opacity))!important}.bg-azure-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-azure-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-azure-lt-rgb),var(--tblr-bg-opacity))!important}.border-azure{border-color:#4299e1!important}.bg-indigo{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-indigo-rgb),var(--tblr-bg-opacity))!important}.bg-indigo-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-indigo-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-indigo-lt-rgb),var(--tblr-bg-opacity))!important}.border-indigo{border-color:#4263eb!important}.bg-purple{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-purple-rgb),var(--tblr-bg-opacity))!important}.bg-purple-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-purple-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-purple-lt-rgb),var(--tblr-bg-opacity))!important}.border-purple{border-color:#ae3ec9!important}.bg-pink{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-pink-rgb),var(--tblr-bg-opacity))!important}.bg-pink-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-pink-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-pink-lt-rgb),var(--tblr-bg-opacity))!important}.border-pink{border-color:#d6336c!important}.bg-red{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-red-rgb),var(--tblr-bg-opacity))!important}.bg-red-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-red-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-red-lt-rgb),var(--tblr-bg-opacity))!important}.border-red{border-color:#d63939!important}.bg-orange{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-orange-rgb),var(--tblr-bg-opacity))!important}.bg-orange-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-orange-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-orange-lt-rgb),var(--tblr-bg-opacity))!important}.border-orange{border-color:#f76707!important}.bg-yellow{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-yellow-rgb),var(--tblr-bg-opacity))!important}.bg-yellow-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-yellow-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-yellow-lt-rgb),var(--tblr-bg-opacity))!important}.border-yellow{border-color:#f59f00!important}.bg-lime{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-lime-rgb),var(--tblr-bg-opacity))!important}.bg-lime-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-lime-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-lime-lt-rgb),var(--tblr-bg-opacity))!important}.border-lime{border-color:#74b816!important}.bg-green{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-green-rgb),var(--tblr-bg-opacity))!important}.bg-green-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-green-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-green-lt-rgb),var(--tblr-bg-opacity))!important}.border-green{border-color:#2fb344!important}.bg-teal{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-teal-rgb),var(--tblr-bg-opacity))!important}.bg-teal-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-teal-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-teal-lt-rgb),var(--tblr-bg-opacity))!important}.border-teal{border-color:#0ca678!important}.bg-cyan{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-cyan-rgb),var(--tblr-bg-opacity))!important}.bg-cyan-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-cyan-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-cyan-lt-rgb),var(--tblr-bg-opacity))!important}.border-cyan{border-color:#17a2b8!important}.bg-x{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-x-rgb),var(--tblr-bg-opacity))!important}.bg-x-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-x-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-x-lt-rgb),var(--tblr-bg-opacity))!important}.border-x{border-color:#000!important}.bg-facebook{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-facebook-rgb),var(--tblr-bg-opacity))!important}.bg-facebook-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-facebook-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-facebook-lt-rgb),var(--tblr-bg-opacity))!important}.border-facebook{border-color:#1877f2!important}.bg-twitter{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-twitter-rgb),var(--tblr-bg-opacity))!important}.bg-twitter-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-twitter-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-twitter-lt-rgb),var(--tblr-bg-opacity))!important}.border-twitter{border-color:#1da1f2!important}.bg-linkedin{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-linkedin-rgb),var(--tblr-bg-opacity))!important}.bg-linkedin-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-linkedin-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-linkedin-lt-rgb),var(--tblr-bg-opacity))!important}.border-linkedin{border-color:#0a66c2!important}.bg-google{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-google-rgb),var(--tblr-bg-opacity))!important}.bg-google-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-google-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-google-lt-rgb),var(--tblr-bg-opacity))!important}.border-google{border-color:#dc4e41!important}.bg-youtube{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-youtube-rgb),var(--tblr-bg-opacity))!important}.bg-youtube-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-youtube-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-youtube-lt-rgb),var(--tblr-bg-opacity))!important}.border-youtube{border-color:red!important}.bg-vimeo{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-vimeo-rgb),var(--tblr-bg-opacity))!important}.bg-vimeo-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-vimeo-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-vimeo-lt-rgb),var(--tblr-bg-opacity))!important}.border-vimeo{border-color:#1ab7ea!important}.bg-dribbble{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-dribbble-rgb),var(--tblr-bg-opacity))!important}.bg-dribbble-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-dribbble-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-dribbble-lt-rgb),var(--tblr-bg-opacity))!important}.border-dribbble{border-color:#ea4c89!important}.bg-github{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-github-rgb),var(--tblr-bg-opacity))!important}.bg-github-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-github-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-github-lt-rgb),var(--tblr-bg-opacity))!important}.border-github{border-color:#181717!important}.bg-instagram{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-instagram-rgb),var(--tblr-bg-opacity))!important}.bg-instagram-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-instagram-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-instagram-lt-rgb),var(--tblr-bg-opacity))!important}.border-instagram{border-color:#e4405f!important}.bg-pinterest{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-pinterest-rgb),var(--tblr-bg-opacity))!important}.bg-pinterest-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-pinterest-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-pinterest-lt-rgb),var(--tblr-bg-opacity))!important}.border-pinterest{border-color:#bd081c!important}.bg-vk{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-vk-rgb),var(--tblr-bg-opacity))!important}.bg-vk-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-vk-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-vk-lt-rgb),var(--tblr-bg-opacity))!important}.border-vk{border-color:#6383a8!important}.bg-rss{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-rss-rgb),var(--tblr-bg-opacity))!important}.bg-rss-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-rss-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-rss-lt-rgb),var(--tblr-bg-opacity))!important}.border-rss{border-color:orange!important}.bg-flickr{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-flickr-rgb),var(--tblr-bg-opacity))!important}.bg-flickr-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-flickr-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-flickr-lt-rgb),var(--tblr-bg-opacity))!important}.border-flickr{border-color:#0063dc!important}.bg-bitbucket{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-bg-opacity))!important}.bg-bitbucket-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-bitbucket-lt-rgb),var(--tblr-bg-opacity))!important}.border-bitbucket{border-color:#0052cc!important}.bg-tabler{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-tabler-rgb),var(--tblr-bg-opacity))!important}.bg-tabler-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-tabler-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-tabler-lt-rgb),var(--tblr-bg-opacity))!important}.border-tabler{border-color:#066fd1!important}.bg-white{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-white-rgb),var(--tblr-bg-opacity))!important}.bg-white-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-white-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-white-lt-rgb),var(--tblr-bg-opacity))!important}.border-white{border-color:#fff!important}.text-primary{--tblr-text-opacity: 1;color:rgba(var(--tblr-primary-rgb),var(--tblr-text-opacity))!important}.text-primary-fg{color:var(--tblr-primary-fg)!important}.text-secondary{--tblr-text-opacity: 1;color:rgba(var(--tblr-secondary-rgb),var(--tblr-text-opacity))!important}.text-secondary-fg{color:var(--tblr-secondary-fg)!important}.text-success{--tblr-text-opacity: 1;color:rgba(var(--tblr-success-rgb),var(--tblr-text-opacity))!important}.text-success-fg{color:var(--tblr-success-fg)!important}.text-info{--tblr-text-opacity: 1;color:rgba(var(--tblr-info-rgb),var(--tblr-text-opacity))!important}.text-info-fg{color:var(--tblr-info-fg)!important}.text-warning{--tblr-text-opacity: 1;color:rgba(var(--tblr-warning-rgb),var(--tblr-text-opacity))!important}.text-warning-fg{color:var(--tblr-warning-fg)!important}.text-danger{--tblr-text-opacity: 1;color:rgba(var(--tblr-danger-rgb),var(--tblr-text-opacity))!important}.text-danger-fg{color:var(--tblr-danger-fg)!important}.text-light{--tblr-text-opacity: 1;color:rgba(var(--tblr-light-rgb),var(--tblr-text-opacity))!important}.text-light-fg{color:var(--tblr-light-fg)!important}.text-dark{--tblr-text-opacity: 1;color:rgba(var(--tblr-dark-rgb),var(--tblr-text-opacity))!important}.text-dark-fg{color:var(--tblr-dark-fg)!important}.text-muted{--tblr-text-opacity: 1;color:rgba(var(--tblr-muted-rgb),var(--tblr-text-opacity))!important}.text-muted-fg{color:var(--tblr-muted-fg)!important}.text-blue{--tblr-text-opacity: 1;color:rgba(var(--tblr-blue-rgb),var(--tblr-text-opacity))!important}.text-blue-fg{color:var(--tblr-blue-fg)!important}.text-azure{--tblr-text-opacity: 1;color:rgba(var(--tblr-azure-rgb),var(--tblr-text-opacity))!important}.text-azure-fg{color:var(--tblr-azure-fg)!important}.text-indigo{--tblr-text-opacity: 1;color:rgba(var(--tblr-indigo-rgb),var(--tblr-text-opacity))!important}.text-indigo-fg{color:var(--tblr-indigo-fg)!important}.text-purple{--tblr-text-opacity: 1;color:rgba(var(--tblr-purple-rgb),var(--tblr-text-opacity))!important}.text-purple-fg{color:var(--tblr-purple-fg)!important}.text-pink{--tblr-text-opacity: 1;color:rgba(var(--tblr-pink-rgb),var(--tblr-text-opacity))!important}.text-pink-fg{color:var(--tblr-pink-fg)!important}.text-red{--tblr-text-opacity: 1;color:rgba(var(--tblr-red-rgb),var(--tblr-text-opacity))!important}.text-red-fg{color:var(--tblr-red-fg)!important}.text-orange{--tblr-text-opacity: 1;color:rgba(var(--tblr-orange-rgb),var(--tblr-text-opacity))!important}.text-orange-fg{color:var(--tblr-orange-fg)!important}.text-yellow{--tblr-text-opacity: 1;color:rgba(var(--tblr-yellow-rgb),var(--tblr-text-opacity))!important}.text-yellow-fg{color:var(--tblr-yellow-fg)!important}.text-lime{--tblr-text-opacity: 1;color:rgba(var(--tblr-lime-rgb),var(--tblr-text-opacity))!important}.text-lime-fg{color:var(--tblr-lime-fg)!important}.text-green{--tblr-text-opacity: 1;color:rgba(var(--tblr-green-rgb),var(--tblr-text-opacity))!important}.text-green-fg{color:var(--tblr-green-fg)!important}.text-teal{--tblr-text-opacity: 1;color:rgba(var(--tblr-teal-rgb),var(--tblr-text-opacity))!important}.text-teal-fg{color:var(--tblr-teal-fg)!important}.text-cyan{--tblr-text-opacity: 1;color:rgba(var(--tblr-cyan-rgb),var(--tblr-text-opacity))!important}.text-cyan-fg{color:var(--tblr-cyan-fg)!important}.text-x{--tblr-text-opacity: 1;color:rgba(var(--tblr-x-rgb),var(--tblr-text-opacity))!important}.text-x-fg{color:var(--tblr-x-fg)!important}.text-facebook{--tblr-text-opacity: 1;color:rgba(var(--tblr-facebook-rgb),var(--tblr-text-opacity))!important}.text-facebook-fg{color:var(--tblr-facebook-fg)!important}.text-twitter{--tblr-text-opacity: 1;color:rgba(var(--tblr-twitter-rgb),var(--tblr-text-opacity))!important}.text-twitter-fg{color:var(--tblr-twitter-fg)!important}.text-linkedin{--tblr-text-opacity: 1;color:rgba(var(--tblr-linkedin-rgb),var(--tblr-text-opacity))!important}.text-linkedin-fg{color:var(--tblr-linkedin-fg)!important}.text-google{--tblr-text-opacity: 1;color:rgba(var(--tblr-google-rgb),var(--tblr-text-opacity))!important}.text-google-fg{color:var(--tblr-google-fg)!important}.text-youtube{--tblr-text-opacity: 1;color:rgba(var(--tblr-youtube-rgb),var(--tblr-text-opacity))!important}.text-youtube-fg{color:var(--tblr-youtube-fg)!important}.text-vimeo{--tblr-text-opacity: 1;color:rgba(var(--tblr-vimeo-rgb),var(--tblr-text-opacity))!important}.text-vimeo-fg{color:var(--tblr-vimeo-fg)!important}.text-dribbble{--tblr-text-opacity: 1;color:rgba(var(--tblr-dribbble-rgb),var(--tblr-text-opacity))!important}.text-dribbble-fg{color:var(--tblr-dribbble-fg)!important}.text-github{--tblr-text-opacity: 1;color:rgba(var(--tblr-github-rgb),var(--tblr-text-opacity))!important}.text-github-fg{color:var(--tblr-github-fg)!important}.text-instagram{--tblr-text-opacity: 1;color:rgba(var(--tblr-instagram-rgb),var(--tblr-text-opacity))!important}.text-instagram-fg{color:var(--tblr-instagram-fg)!important}.text-pinterest{--tblr-text-opacity: 1;color:rgba(var(--tblr-pinterest-rgb),var(--tblr-text-opacity))!important}.text-pinterest-fg{color:var(--tblr-pinterest-fg)!important}.text-vk{--tblr-text-opacity: 1;color:rgba(var(--tblr-vk-rgb),var(--tblr-text-opacity))!important}.text-vk-fg{color:var(--tblr-vk-fg)!important}.text-rss{--tblr-text-opacity: 1;color:rgba(var(--tblr-rss-rgb),var(--tblr-text-opacity))!important}.text-rss-fg{color:var(--tblr-rss-fg)!important}.text-flickr{--tblr-text-opacity: 1;color:rgba(var(--tblr-flickr-rgb),var(--tblr-text-opacity))!important}.text-flickr-fg{color:var(--tblr-flickr-fg)!important}.text-bitbucket{--tblr-text-opacity: 1;color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-text-opacity))!important}.text-bitbucket-fg{color:var(--tblr-bitbucket-fg)!important}.text-tabler{--tblr-text-opacity: 1;color:rgba(var(--tblr-tabler-rgb),var(--tblr-text-opacity))!important}.text-tabler-fg{color:var(--tblr-tabler-fg)!important}.bg-gray-50{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-50-rgb),var(--tblr-bg-opacity))!important}.text-gray-50-fg{color:#182433!important}.bg-gray-100{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-100-rgb),var(--tblr-bg-opacity))!important}.text-gray-100-fg{color:#182433!important}.bg-gray-200{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-200-rgb),var(--tblr-bg-opacity))!important}.text-gray-200-fg{color:#182433!important}.bg-gray-300{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-300-rgb),var(--tblr-bg-opacity))!important}.text-gray-300-fg{color:#f6f8fb!important}.bg-gray-400{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-400-rgb),var(--tblr-bg-opacity))!important}.text-gray-400-fg{color:#f6f8fb!important}.bg-gray-500{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-500-rgb),var(--tblr-bg-opacity))!important}.text-gray-500-fg{color:#f6f8fb!important}.bg-gray-600{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-600-rgb),var(--tblr-bg-opacity))!important}.text-gray-600-fg{color:#f6f8fb!important}.bg-gray-700{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-700-rgb),var(--tblr-bg-opacity))!important}.text-gray-700-fg{color:#f6f8fb!important}.bg-gray-800{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-800-rgb),var(--tblr-bg-opacity))!important}.text-gray-800-fg{color:#f6f8fb!important}.bg-gray-900{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-900-rgb),var(--tblr-bg-opacity))!important}.text-gray-900-fg{color:#f6f8fb!important}.scrollable{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.scrollable.hover{overflow-y:hidden}.scrollable.hover>*{margin-top:-1px}.scrollable.hover:hover,.scrollable.hover:focus,.scrollable.hover:active{overflow:visible;overflow-y:auto}.touch .scrollable{overflow-y:auto!important}.scroll-x,.scroll-y{overflow:hidden;-webkit-overflow-scrolling:touch}.scroll-y{overflow-y:auto}.scroll-x{overflow-x:auto}.no-scroll{overflow:hidden}.w-0{width:0!important}.h-0{height:0!important}.w-1{width:.25rem!important}.h-1{height:.25rem!important}.w-2{width:.5rem!important}.h-2{height:.5rem!important}.w-3{width:1rem!important}.h-3{height:1rem!important}.w-4{width:1.5rem!important}.h-4{height:1.5rem!important}.w-5{width:2rem!important}.h-5{height:2rem!important}.w-6{width:3rem!important}.h-6{height:3rem!important}.w-7{width:5rem!important}.h-7{height:5rem!important}.w-8{width:8rem!important}.h-8{height:8rem!important}.w-auto{width:auto!important}.h-auto{height:auto!important}.w-px{width:1px!important}.h-px{height:1px!important}.w-full{width:100%!important}.h-full{height:100%!important}.opacity-0{opacity:0!important}.opacity-5{opacity:.05!important}.opacity-10{opacity:.1!important}.opacity-15{opacity:.15!important}.opacity-20{opacity:.2!important}.opacity-25{opacity:.25!important}.opacity-30{opacity:.3!important}.opacity-35{opacity:.35!important}.opacity-40{opacity:.4!important}.opacity-45{opacity:.45!important}.opacity-50{opacity:.5!important}.opacity-55{opacity:.55!important}.opacity-60{opacity:.6!important}.opacity-65{opacity:.65!important}.opacity-70{opacity:.7!important}.opacity-75{opacity:.75!important}.opacity-80{opacity:.8!important}.opacity-85{opacity:.85!important}.opacity-90{opacity:.9!important}.opacity-95{opacity:.95!important}.opacity-100{opacity:1!important}.hover-shadow-sm:hover{box-shadow:0 .125rem .25rem #00000013!important}.hover-shadow:hover{box-shadow:rgba(var(--tblr-body-color-rgb),.04) 0 2px 4px!important}.hover-shadow-lg:hover{box-shadow:0 1rem 3rem #0000002d!important}.hover-shadow-none:hover{box-shadow:none!important}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.ts-control{border:1px solid var(--tblr-border-color);padding:.5625rem .75rem;width:100%;overflow:hidden;position:relative;z-index:1;box-sizing:border-box;box-shadow:none;border-radius:var(--tblr-border-radius);display:flex;flex-wrap:wrap}.ts-wrapper.multi.has-items .ts-control{padding:calc(.5625rem - 1px + -0) .75rem calc(.5625rem - 4px + -0)}.full .ts-control{background-color:var(--tblr-bg-forms)}.disabled .ts-control,.disabled .ts-control *{cursor:default!important}.focus .ts-control{box-shadow:none}.ts-control>*{vertical-align:baseline;display:inline-block}.ts-wrapper.multi .ts-control>div{cursor:pointer;margin:0 3px 3px 0;padding:1px 5px;background:#efefef;color:#182433;border:0 solid #dce1e7}.ts-wrapper.multi .ts-control>div.active{background:#00857d;color:#fff;border:0 solid rgba(0,0,0,0)}.ts-wrapper.multi.disabled .ts-control>div,.ts-wrapper.multi.disabled .ts-control>div.active{color:#727272;background:#fff;border:0 solid white}.ts-control>input{flex:1 1 auto;min-width:7rem;display:inline-block!important;padding:0!important;min-height:0!important;max-height:none!important;max-width:100%!important;margin:0!important;text-indent:0!important;border:0 none!important;background:none!important;line-height:inherit!important;user-select:auto!important;box-shadow:none!important}.ts-control>input::-ms-clear{display:none}.ts-control>input:focus{outline:none!important}.has-items .ts-control>input{margin:0 4px!important}.ts-control.rtl{text-align:right}.ts-control.rtl.single .ts-control:after{left:calc(.75rem + 5px);right:auto}.ts-control.rtl .ts-control>input{margin:0 4px 0 -2px!important}.disabled .ts-control{opacity:.5;background-color:var(--tblr-bg-surface-secondary)}.input-hidden .ts-control>input{opacity:0;position:absolute;left:-10000px}.ts-dropdown{position:absolute;top:100%;left:0;width:100%;z-index:10;border:1px solid #d0d0d0;background:#fff;margin:.25rem 0 0;border-top:0 none;box-sizing:border-box;box-shadow:0 1px 3px #0000001a;border-radius:0 0 var(--tblr-border-radius) var(--tblr-border-radius)}.ts-dropdown [data-selectable]{cursor:pointer;overflow:hidden}.ts-dropdown [data-selectable] .highlight{background:#ffed2866;border-radius:1px}.ts-dropdown .option,.ts-dropdown .optgroup-header,.ts-dropdown .no-results,.ts-dropdown .create{padding:3px .75rem}.ts-dropdown .option,.ts-dropdown [data-disabled],.ts-dropdown [data-disabled] [data-selectable].option{cursor:inherit;opacity:.5}.ts-dropdown [data-selectable].option{opacity:1;cursor:pointer}.ts-dropdown .optgroup:first-child .optgroup-header{border-top:0 none}.ts-dropdown .optgroup-header{color:#49566c;background:var(--tblr-bg-surface);cursor:default}.ts-dropdown .active{background-color:rgba(var(--tblr-secondary-rgb),.08);color:inherit}.ts-dropdown .active.create{color:inherit}.ts-dropdown .create{color:#18243380}.ts-dropdown .spinner{display:inline-block;width:30px;height:30px;margin:3px .75rem}.ts-dropdown .spinner:after{content:" ";display:block;width:24px;height:24px;margin:3px;border-radius:50%;border:5px solid #d0d0d0;border-color:#d0d0d0 transparent #d0d0d0 transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ts-dropdown-content{overflow:hidden auto;max-height:200px;scroll-behavior:smooth}.ts-wrapper.plugin-drag_drop .ts-dragging{color:transparent!important}.ts-wrapper.plugin-drag_drop .ts-dragging>*{visibility:hidden!important}.plugin-checkbox_options:not(.rtl) .option input{margin-right:.5rem}.plugin-checkbox_options.rtl .option input{margin-left:.5rem}.plugin-clear_button{--ts-pr-clear-button: 1em}.plugin-clear_button .clear-button{opacity:0;position:absolute;top:50%;transform:translateY(-50%);right:calc(.75rem - 5px);margin-right:0!important;background:transparent!important;transition:opacity .5s;cursor:pointer}.plugin-clear_button.form-select .clear-button,.plugin-clear_button.single .clear-button{right:max(var(--ts-pr-caret),.75rem)}.plugin-clear_button.focus.has-items .clear-button,.plugin-clear_button:not(.disabled):hover.has-items .clear-button{opacity:1}.ts-wrapper .dropdown-header{position:relative;padding:6px .75rem;border-bottom:1px solid #d0d0d0;background:color-mix(#fff,#d0d0d0,85%);border-radius:var(--tblr-border-radius) var(--tblr-border-radius) 0 0}.ts-wrapper .dropdown-header-close{position:absolute;right:.75rem;top:50%;color:#182433;opacity:.4;margin-top:-12px;line-height:20px;font-size:20px!important}.ts-wrapper .dropdown-header-close:hover{color:#000}.plugin-dropdown_input.focus.dropdown-active .ts-control{box-shadow:none;border:1px solid var(--tblr-border-color);box-shadow:var(--tblr-box-shadow-input)}.plugin-dropdown_input .dropdown-input{border:1px solid #d0d0d0;border-width:0 0 1px;display:block;padding:.5625rem .75rem;box-shadow:none;width:100%;background:transparent}.plugin-dropdown_input.focus .ts-dropdown .dropdown-input{border-color:#80c2be;outline:0;box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.plugin-dropdown_input .items-placeholder{border:0 none!important;box-shadow:none!important;width:100%}.plugin-dropdown_input.has-items .items-placeholder,.plugin-dropdown_input.dropdown-active .items-placeholder{display:none!important}.ts-wrapper.plugin-input_autogrow.has-items .ts-control>input{min-width:0}.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control>input{flex:none;min-width:4px}.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control>input::placeholder{color:transparent}.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content{display:flex}.ts-dropdown.plugin-optgroup_columns .optgroup{border-right:1px solid #f2f2f2;border-top:0 none;flex-grow:1;flex-basis:0;min-width:0}.ts-dropdown.plugin-optgroup_columns .optgroup:last-child{border-right:0 none}.ts-dropdown.plugin-optgroup_columns .optgroup:before{display:none}.ts-dropdown.plugin-optgroup_columns .optgroup-header{border-top:0 none}.ts-wrapper.plugin-remove_button .item{display:inline-flex;align-items:center}.ts-wrapper.plugin-remove_button .item .remove{color:inherit;text-decoration:none;vertical-align:middle;display:inline-block;padding:0 5px;border-radius:0 2px 2px 0;box-sizing:border-box}.ts-wrapper.plugin-remove_button .item .remove:hover{background:#0000000d}.ts-wrapper.plugin-remove_button.disabled .item .remove:hover{background:none}.ts-wrapper.plugin-remove_button .remove-single{position:absolute;right:0;top:0;font-size:23px}.ts-wrapper.plugin-remove_button:not(.rtl) .item{padding-right:0!important}.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove{border-left:1px solid #dce1e7;margin-left:5px}.ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove{border-left-color:#0000}.ts-wrapper.plugin-remove_button:not(.rtl).disabled .item .remove{border-left-color:#fff}.ts-wrapper.plugin-remove_button.rtl .item{padding-left:0!important}.ts-wrapper.plugin-remove_button.rtl .item .remove{border-right:1px solid #dce1e7;margin-right:5px}.ts-wrapper.plugin-remove_button.rtl .item.active .remove{border-right-color:#0000}.ts-wrapper.plugin-remove_button.rtl.disabled .item .remove{border-right-color:#fff}:root{--ts-pr-clear-button: 0;--ts-pr-caret: 0;--ts-pr-min: .75rem}.ts-wrapper.single .ts-control,.ts-wrapper.single .ts-control input{cursor:pointer}.ts-control:not(.rtl){padding-right:max(var(--ts-pr-min),var(--ts-pr-clear-button) + var(--ts-pr-caret))!important}.ts-control.rtl{padding-left:max(var(--ts-pr-min),var(--ts-pr-clear-button) + var(--ts-pr-caret))!important}.ts-wrapper{position:relative}.ts-dropdown,.ts-control,.ts-control input{color:#182433;font-family:inherit;font-size:inherit;line-height:1.4285714286}.ts-control,.ts-wrapper.single.input-active .ts-control{background:var(--tblr-bg-forms);cursor:text}.ts-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;white-space:nowrap!important}.ts-dropdown,.ts-dropdown.form-control,.ts-dropdown.form-select{height:auto;padding:0;z-index:1000;background:#fff;border:1px solid var(--tblr-border-color-translucent);border-radius:4px;box-shadow:0 6px 12px #0000002d}.ts-dropdown .optgroup-header{font-size:.765625rem;line-height:1.4285714286}.ts-dropdown .optgroup:first-child:before{display:none}.ts-dropdown .optgroup:before{content:" ";display:block;height:0;margin:var(--tblr-spacer-2) 0;overflow:hidden;border-top:1px solid var(--tblr-border-color-translucent);margin-left:-.75rem;margin-right:-.75rem}.ts-dropdown .create{padding-left:.75rem}.ts-dropdown-content{padding:5px 0}.ts-control{box-shadow:var(--tblr-box-shadow-input);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;display:flex;align-items:center}@media (prefers-reduced-motion: reduce){.ts-control{transition:none}}.focus .ts-control{border-color:#80c2be;outline:0;box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.ts-control .item{display:flex;align-items:center}.ts-wrapper.is-invalid,.was-validated .invalid,.was-validated :invalid+.ts-wrapper{border-color:var(--tblr-form-invalid-color)}.ts-wrapper.is-invalid:not(.single),.was-validated .invalid:not(.single),.was-validated :invalid+.ts-wrapper:not(.single){background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d63939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");background-position:right calc(.3571428572em + .28125rem) center;background-size:calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem);background-repeat:no-repeat}.ts-wrapper.is-invalid.single,.was-validated .invalid.single,.was-validated :invalid+.ts-wrapper.single{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a97ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d63939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem);background-repeat:no-repeat}.ts-wrapper.is-invalid.focus .ts-control,.was-validated .invalid.focus .ts-control,.was-validated :invalid+.ts-wrapper.focus .ts-control{border-color:var(--tblr-form-invalid-color);box-shadow:0 0 0 .25rem rgba(var(--tblr-form-invalid-color),.25)}.ts-wrapper.is-valid,.was-validated .valid,.was-validated :valid+.ts-wrapper{border-color:var(--tblr-form-valid-color)}.ts-wrapper.is-valid:not(.single),.was-validated .valid:not(.single),.was-validated :valid+.ts-wrapper:not(.single){background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");background-position:right calc(.3571428572em + .28125rem) center;background-size:calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem);background-repeat:no-repeat}.ts-wrapper.is-valid.single,.was-validated .valid.single,.was-validated :valid+.ts-wrapper.single{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a97ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem);background-repeat:no-repeat}.ts-wrapper.is-valid.focus .ts-control,.was-validated .valid.focus .ts-control,.was-validated :valid+.ts-wrapper.focus .ts-control{border-color:var(--tblr-form-valid-color);box-shadow:0 0 0 .25rem rgba(var(--tblr-form-valid-color),.25)}.ts-wrapper{min-height:calc(1.4285714286em + 1.125rem + calc(var(--tblr-border-width) * 2));display:flex}.input-group-sm>.ts-wrapper,.ts-wrapper.form-select-sm,.ts-wrapper.form-control-sm{min-height:calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2))}.input-group-sm>.ts-wrapper .ts-control,.ts-wrapper.form-select-sm .ts-control,.ts-wrapper.form-control-sm .ts-control{border-radius:var(--tblr-border-radius-sm);font-size:.75rem}.input-group-sm>.ts-wrapper.has-items .ts-control,.ts-wrapper.form-select-sm.has-items .ts-control,.ts-wrapper.form-control-sm.has-items .ts-control{font-size:.75rem;padding-bottom:0}.input-group-sm>.ts-wrapper.multi.has-items .ts-control,.ts-wrapper.form-select-sm.multi.has-items .ts-control,.ts-wrapper.form-control-sm.multi.has-items .ts-control{padding-top:calc((calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2)) - 1.4285714286 * .75rem - 4px) / 2)!important}.ts-wrapper.multi.has-items .ts-control{padding-left:calc(.75rem - 5px);--ts-pr-min: calc(.75rem - 5px) }.ts-wrapper.multi .ts-control>div{border-radius:calc(var(--tblr-border-radius) - 1px)}.input-group-lg>.ts-wrapper,.ts-wrapper.form-control-lg,.ts-wrapper.form-select-lg{min-height:calc(1.4285714286em + 1rem + calc(var(--tblr-border-width) * 2))}.input-group-lg>.ts-wrapper .ts-control,.ts-wrapper.form-control-lg .ts-control,.ts-wrapper.form-select-lg .ts-control{border-radius:var(--tblr-border-radius-lg);font-size:1.25rem}.ts-wrapper:not(.form-control,.form-select){padding:0;border:none;height:auto;box-shadow:none;background:none}.ts-wrapper:not(.form-control,.form-select).single .ts-control{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a97ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px}.ts-wrapper.form-select,.ts-wrapper.single{--ts-pr-caret: 2.25rem}.ts-wrapper.form-control,.ts-wrapper.form-select{padding:0!important;height:auto;box-shadow:none;display:flex}.ts-wrapper.form-control .ts-control,.ts-wrapper.form-control.single.input-active .ts-control,.ts-wrapper.form-select .ts-control,.ts-wrapper.form-select.single.input-active .ts-control{border:none!important}.ts-wrapper.form-control:not(.disabled) .ts-control,.ts-wrapper.form-control:not(.disabled).single.input-active .ts-control,.ts-wrapper.form-select:not(.disabled) .ts-control,.ts-wrapper.form-select:not(.disabled).single.input-active .ts-control{background:transparent!important}.input-group>.ts-wrapper{flex-grow:1;width:1%}.input-group>.ts-wrapper:not(:nth-child(2))>.ts-control{border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.ts-wrapper:not(:last-child)>.ts-control{border-top-right-radius:0;border-bottom-right-radius:0}:root{--ts-pr-clear-button: 0rem;--ts-pr-caret: 0rem}.ts-input,.ts-control{color:inherit}.ts-control .dropdown-menu{width:100%;height:auto}.ts-wrapper .form-control,.ts-wrapper .form-select,.ts-wrapper.form-control,.ts-wrapper.form-select{box-shadow:var(--tblr-box-shadow-input)}.ts-wrapper.is-invalid .ts-control,.ts-wrapper.is-valid .ts-control{--ts-pr-clear-button: 1.5rem}.ts-dropdown{background:var(--tblr-bg-surface);color:var(--tblr-body-color);box-shadow:var(--tblr-box-shadow-dropdown)}.ts-dropdown .option{padding:.5rem .75rem}.ts-control,.ts-control input{color:var(--tblr-body-color)}.ts-control input::placeholder{color:#8a97ab}.ts-wrapper.multi .ts-control>div{background:var(--tblr-bg-surface-secondary);border:1px solid var(--tblr-border-color);color:var(--tblr-body-color)}html{scroll-behavior:auto!important}.table-responsive .dropdown,.table-responsive .btn-group,.table-responsive .btn-group-vertical{position:static}.progress{min-width:80px}hr.dropdown-divider,.dropdown-divider.hr{margin-bottom:.25rem;margin-top:.25rem}.dropdown-item{font-weight:400}*{font-feature-settings:"liga" 0;font-variant-ligatures:none}pre{background-color:transparent;color:inherit}.alert{background:var(--tblr-bg-surface)}.btn{display:inline-block}.btn:focus{border:1px solid var(--tblr-primary-fg);outline:2px solid var(--tblr-primary)!important}.btn-sm,.btn-group-sm>.btn{border-radius:4px}.dropdown-item{display:inline-block}.footer .text-primary{color:#001423!important}.nav-tabs .nav-link{display:inline-block}.page,.page-tabs .nav-tabs .nav-link.active{background-color:var(--tblr-bg-surface-tertiary)!important}.page-body .card .card-header{background:var(--tblr-bg-surface-secondary)!important}[data-bs-theme=dark],body[data-bs-theme=dark] [data-bs-theme=light]{--tblr-alert-color: darken(var(--tblr-warning),10%);--tblr-link-color: #00F2D4;--tblr-link-color-rgb: 0,242,212;--tblr-link-hover-color-rgb: 0,242,212;--tblr-secondary: #8a97ab;--tblr-primary: #00F2D4;--tblr-primary-fg: #001423;--tblr-primary-rgb: 0,242,212;--tblr-btn-active-color: #001423}body[data-bs-theme=dark],body[data-bs-theme=dark] body[data-bs-theme=light]{background-color:#001423}body[data-bs-theme=dark] ::selection,body[data-bs-theme=dark] body[data-bs-theme=light] ::selection{background-color:rgba(var(--tblr-primary-rgb),.48)}body[data-bs-theme=dark] .btn-primary,body[data-bs-theme=dark] .bg-primary .card-title,body[data-bs-theme=dark] .bg-primary a,body[data-bs-theme=dark] .bg-primary i,body[data-bs-theme=dark] .text-bg-primary{color:#001423!important}body[data-bs-theme=dark] .card{background:#001423!important}body[data-bs-theme=dark] .navbar,body[data-bs-theme=dark] .page-header{background-color:#001423}body[data-bs-theme=dark] .page,body[data-bs-theme=dark] .page-tabs .nav-tabs .nav-link.active{background-color:#081b2a!important}body[data-bs-theme=dark] .page-link.active,body[data-bs-theme=dark] .active>.page-link{color:#001423}body[data-bs-theme=dark] .text-bg-primary{color:#001423!important}body[data-bs-theme=dark] .text-muted{color:var(--tblr-secondary-color)!important}body[data-bs-theme=dark] .text-secondary{color:#8a97ab!important}body[data-bs-theme=dark] .footer .text-primary{color:#fff!important}body[data-bs-theme=dark] .toast{color:var(--tblr-body-color)}body[data-bs-theme=dark] .table-primary{--tblr-table-bg: rgba(var(--tblr-secondary-rgb), .48);--tblr-table-hover-bg: inherit;--tblr-table-hover-color: inherit}pre code{padding:unset}.dropdown-toggle:after{font-family:Material Design Icons;content:"\f0140";padding-right:9px;border-bottom:none;border-left:none;transform:none;vertical-align:.05em;height:auto}.ts-wrapper.multi .ts-control{padding:7px 7px 3px}.ts-wrapper.multi .ts-control div{margin:0 4px 4px 0}.badge a{color:inherit;text-decoration:none}.page-body .card{margin-bottom:1rem}.page-body .card .card-header,.page-body .card .card-body,.page-body .card .card-footer{padding:.75rem}.page-body .card .card-header{background:var(--tblr-bg-surface-tertiary)}.page-body .card h2.card-header,.page-body .card .card-header.h2{font-size:var(--tblr-font-size-h5);line-height:var(--tblr-line-height-h5);margin-bottom:0}.page-body .card .list-group-item{padding:.5rem .75rem}.page-body .card .table,.page-body .card .markdown>table{margin-bottom:0}form.object-edit{margin:auto;max-width:800px}.col-form-label.required{font-weight:700}.col-form-label.required:after{position:absolute;display:inline-block;margin-left:0;font-family:Material Design Icons;font-size:8px;content:"\f06c4"}.has-errors input,.has-errors select,.has-errors textarea{border:1px solid #d63939}.page{background-color:var(--tblr-bg-surface-secondary)}.page-header{background-color:var(--tblr-bg-surface);min-height:0}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg{padding-bottom:2rem}}.navbar-vertical.navbar-expand-lg .navbar-collapse .nav-link-icon{color:var(--tblr-nav-link-color)!important}.navbar-vertical.navbar-expand-lg .navbar-collapse .text-secondary{color:#00857d!important}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item a{color:#001423}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item .btn-group{visibility:hidden}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:hover{background-color:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:hover a{text-decoration:none}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:hover .btn-group{visibility:visible}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active{background-color:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active a{color:#001423}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active .btn-group{visibility:visible}.navbar-vertical.navbar-expand-lg .navbar-nav{z-index:1}@media (max-width: 991.98px){.navbar-vertical.navbar-expand-lg .navbar-brand{padding:.2rem 0}}.navbar-vertical.navbar-expand-lg .navbar-brand a:hover{text-decoration:none}.navbar-vertical.navbar-expand-lg img.motif{bottom:0;display:none;left:0;mask-image:linear-gradient(180deg,#0000,#0000004d);opacity:.5;position:fixed;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;width:18rem}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg img.motif{display:block}}body[data-bs-theme=light] .navbar-vertical.navbar-expand-lg{background:linear-gradient(180deg,#00857d00,#00857d1a),#fff}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg{background:linear-gradient(180deg,#00f2d400,#00f2d41a),#001423}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .nav-item.dropdown.active:after{border-color:#00f2d4!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item a{color:#fff!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item.active{background-color:#ffffff0f!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item.active a{color:#fff!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item:hover{background-color:#ffffff0f!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item .nav-link-title{color:#fff!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .text-secondary{color:#00f2d4!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg img.motif{opacity:.25}.progress{height:20px}.progress .progress-label{display:flex;flex-direction:column;justify-content:center;padding-left:.25rem}table.object-list tbody>tr:last-child>td{border-bottom-width:0}table.object-list th.asc>a:after{content:"\f0140";font-family:Material Design Icons}table.object-list th.desc>a:after{content:"\f0143";font-family:Material Design Icons}table.attr-table th{font-weight:400;width:min-content}table.attr-table th,table.attr-table td{border-bottom-style:dashed}table.attr-table tr:last-child{border-bottom-style:hidden}table.attr-table td{overflow-wrap:anywhere}td pre{margin-bottom:0}table th.orderable a{color:var(--tblr-body-color)}body[data-bs-theme=dark] .table thead th,body[data-bs-theme=dark] .markdown>table thead th{background:#001423!important}.page-tabs{border-bottom:1px solid var(--tblr-border-color-translucent)}.page-tabs .nav-tabs{position:relative;border:none}.page-tabs .nav-tabs .nav-link.active,.page-tabs .nav-tabs .nav-link:active,.page-tabs .nav-tabs .nav-link:hover{border-color:var(--tblr-border-color-translucent);border-bottom-color:transparent}.page-tabs .nav-tabs .nav-link.active{color:inherit;background:var(--tblr-bg-surface-secondary);border-bottom-color:transparent}pre.change-data{border-radius:0;padding:0}pre.change-data>span{display:block;padding-right:1rem;padding-left:1rem}pre.change-data>span.added{background-color:#2fb344}pre.change-data>span.removed{background-color:#d63939}pre.change-diff{border-color:transparent}pre.change-diff.change-added{background-color:#2fb344}pre.change-diff.change-removed{background-color:#d63939}pre.block{padding:1rem;border:1px solid #dce1e7;border-radius:4px}.grid-stack .card-header.bg-default{background:var(--tblr-bg-surface-secondary)!important}.grid-stack .card-header a{color:inherit!important}tr[data-cable-status=connected]{background-color:#2fb34426}tr[data-cable-status=planned]{background-color:#066fd126}tr[data-cable-status=decommissioning]{background-color:#f59f0026}tr[data-mark-connected=true]{background-color:#2fb34426}tr[data-virtual=true]{background-color:#00857d26}tr[data-enabled=disabled]{background-color:#d6393926}tr[data-cable-status=connected] button.mark-installed{display:none}tr:not([data-cable-status=connected]) button.mark-planned{display:none}.rendered-markdown table{width:100%}.rendered-markdown table th{border-bottom:2px solid #dddddd;padding:8px}.rendered-markdown table td{border-top:1px solid #dddddd;padding:8px}.rendered-markdown table th[align=left]{text-align:left}.rendered-markdown table th[align=center]{text-align:center}.rendered-markdown table th[align=right]{text-align:right}.rendered-markdown p:last-of-type{margin-bottom:0}td>.rendered-markdown{max-height:200px;overflow-y:scroll}.markdown-widget .preview{border:1px solid #dce1e7;border-radius:4px;min-height:200px}span.color-label{display:inline-block;width:5rem;height:1rem;padding:.25em .5em;border:1px solid #303030;border-radius:4px}.record-depth{display:inline;user-select:none;opacity:33%}.record-depth span:only-of-type,.record-depth span:last-of-type{margin-right:.25rem}.hide-last-child :last-child{visibility:hidden;opacity:0}.netbox-edition{letter-spacing:.15rem}.btn-float-group,.btn-float-group-right,.btn-float-group-left{position:sticky;bottom:10px;z-index:2}.btn-float-group-left{float:left}.btn-float-group-right{float:right}.btn-float{--tblr-btn-bg: var(--tblr-bg-surface-tertiary) !important}.logo{height:80px}.sso-icon{height:24px}tr[data-read=True] td{background-color:var(--tblr-bg-surface-secondary);color:var(--tblr-secondary-color)}
+@charset "UTF-8";:root,[data-bs-theme=light]{--tblr-black: #000000;--tblr-white: #ffffff;--tblr-gray: #49566c;--tblr-gray-dark: #182433;--tblr-gray-100: #eef3f6;--tblr-gray-200: #dce1e7;--tblr-gray-300: #b8c4d4;--tblr-gray-400: #8a97ab;--tblr-gray-500: #6c7a91;--tblr-gray-600: #49566c;--tblr-gray-700: #3a4859;--tblr-gray-800: #182433;--tblr-gray-900: #040a11;--tblr-primary: #00857D;--tblr-secondary: #6c7a91;--tblr-success: #2fb344;--tblr-info: #4299e1;--tblr-warning: #f76707;--tblr-danger: #d63939;--tblr-light: #f6f8fb;--tblr-dark: #182433;--tblr-muted: #6c7a91;--tblr-blue: #066fd1;--tblr-azure: #4299e1;--tblr-indigo: #4263eb;--tblr-purple: #ae3ec9;--tblr-pink: #d6336c;--tblr-red: #d63939;--tblr-orange: #f76707;--tblr-yellow: #f59f00;--tblr-lime: #74b816;--tblr-green: #2fb344;--tblr-teal: #0ca678;--tblr-cyan: #17a2b8;--tblr-x: #000000;--tblr-facebook: #1877f2;--tblr-twitter: #1da1f2;--tblr-linkedin: #0a66c2;--tblr-google: #dc4e41;--tblr-youtube: #ff0000;--tblr-vimeo: #1ab7ea;--tblr-dribbble: #ea4c89;--tblr-github: #181717;--tblr-instagram: #e4405f;--tblr-pinterest: #bd081c;--tblr-vk: #6383a8;--tblr-rss: #ffa500;--tblr-flickr: #0063dc;--tblr-bitbucket: #0052cc;--tblr-tabler: #066fd1;--tblr-primary-rgb: 0, 133, 125;--tblr-secondary-rgb: 108, 122, 145;--tblr-success-rgb: 47, 179, 68;--tblr-info-rgb: 66, 153, 225;--tblr-warning-rgb: 247, 103, 7;--tblr-danger-rgb: 214, 57, 57;--tblr-light-rgb: 246, 248, 251;--tblr-dark-rgb: 24, 36, 51;--tblr-muted-rgb: 108, 122, 145;--tblr-blue-rgb: 6, 111, 209;--tblr-azure-rgb: 66, 153, 225;--tblr-indigo-rgb: 66, 99, 235;--tblr-purple-rgb: 174, 62, 201;--tblr-pink-rgb: 214, 51, 108;--tblr-red-rgb: 214, 57, 57;--tblr-orange-rgb: 247, 103, 7;--tblr-yellow-rgb: 245, 159, 0;--tblr-lime-rgb: 116, 184, 22;--tblr-green-rgb: 47, 179, 68;--tblr-teal-rgb: 12, 166, 120;--tblr-cyan-rgb: 23, 162, 184;--tblr-x-rgb: 0, 0, 0;--tblr-facebook-rgb: 24, 119, 242;--tblr-twitter-rgb: 29, 161, 242;--tblr-linkedin-rgb: 10, 102, 194;--tblr-google-rgb: 220, 78, 65;--tblr-youtube-rgb: 255, 0, 0;--tblr-vimeo-rgb: 26, 183, 234;--tblr-dribbble-rgb: 234, 76, 137;--tblr-github-rgb: 24, 23, 23;--tblr-instagram-rgb: 228, 64, 95;--tblr-pinterest-rgb: 189, 8, 28;--tblr-vk-rgb: 99, 131, 168;--tblr-rss-rgb: 255, 165, 0;--tblr-flickr-rgb: 0, 99, 220;--tblr-bitbucket-rgb: 0, 82, 204;--tblr-tabler-rgb: 6, 111, 209;--tblr-primary-text-emphasis: #003532;--tblr-secondary-text-emphasis: #2b313a;--tblr-success-text-emphasis: #13481b;--tblr-info-text-emphasis: #1a3d5a;--tblr-warning-text-emphasis: #632903;--tblr-danger-text-emphasis: #561717;--tblr-light-text-emphasis: #3a4859;--tblr-dark-text-emphasis: #3a4859;--tblr-primary-bg-subtle: #cce7e5;--tblr-secondary-bg-subtle: #e2e4e9;--tblr-success-bg-subtle: #d5f0da;--tblr-info-bg-subtle: #d9ebf9;--tblr-warning-bg-subtle: #fde1cd;--tblr-danger-bg-subtle: #f7d7d7;--tblr-light-bg-subtle: #f7f9fb;--tblr-dark-bg-subtle: #8a97ab;--tblr-primary-border-subtle: #99cecb;--tblr-secondary-border-subtle: #c4cad3;--tblr-success-border-subtle: #ace1b4;--tblr-info-border-subtle: #b3d6f3;--tblr-warning-border-subtle: #fcc29c;--tblr-danger-border-subtle: #efb0b0;--tblr-light-border-subtle: #dce1e7;--tblr-dark-border-subtle: #6c7a91;--tblr-white-rgb: 255, 255, 255;--tblr-black-rgb: 0, 0, 0;--tblr-font-sans-serif: "Inter", system-ui, sans-serif;--tblr-font-monospace: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--tblr-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--tblr-body-font-family: var(--tblr-font-sans-serif);--tblr-body-font-size: .875rem;--tblr-body-font-weight: 400;--tblr-body-line-height: 1.4285714286;--tblr-body-color: #182433;--tblr-body-color-rgb: 24, 36, 51;--tblr-body-bg: #f6f8fb;--tblr-body-bg-rgb: 246, 248, 251;--tblr-emphasis-color: #3a4859;--tblr-emphasis-color-rgb: 58, 72, 89;--tblr-secondary-color: rgba(24, 36, 51, .75);--tblr-secondary-color-rgb: 24, 36, 51;--tblr-secondary-bg: #dce1e7;--tblr-secondary-bg-rgb: 220, 225, 231;--tblr-tertiary-color: rgba(24, 36, 51, .5);--tblr-tertiary-color-rgb: 24, 36, 51;--tblr-tertiary-bg: #eef3f6;--tblr-tertiary-bg-rgb: 238, 243, 246;--tblr-heading-color: inherit;--tblr-link-color: #00857D;--tblr-link-color-rgb: 0, 133, 125;--tblr-link-decoration: none;--tblr-link-hover-color: #006a64;--tblr-link-hover-color-rgb: 0, 106, 100;--tblr-link-hover-decoration: underline;--tblr-code-color: var(--tblr-gray-600);--tblr-highlight-color: #182433;--tblr-highlight-bg: #fdeccc;--tblr-border-width: 1px;--tblr-border-style: solid;--tblr-border-color: #dce1e7;--tblr-border-color-translucent: rgba(4, 32, 69, .1);--tblr-border-radius: 4px;--tblr-border-radius-sm: 2px;--tblr-border-radius-lg: 8px;--tblr-border-radius-xl: 1rem;--tblr-border-radius-xxl: 2rem;--tblr-border-radius-2xl: var(--tblr-border-radius-xxl);--tblr-border-radius-pill: 100rem;--tblr-box-shadow: rgba(var(--tblr-body-color-rgb), .04) 0 2px 4px 0;--tblr-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);--tblr-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);--tblr-box-shadow-inset: 0 0 transparent;--tblr-focus-ring-width: .25rem;--tblr-focus-ring-opacity: .25;--tblr-focus-ring-color: rgba(var(--tblr-primary-rgb), .25);--tblr-form-valid-color: #2fb344;--tblr-form-valid-border-color: #2fb344;--tblr-form-invalid-color: #d63939;--tblr-form-invalid-border-color: #d63939}[data-bs-theme=dark],body[data-bs-theme=dark] [data-bs-theme=light]{color-scheme:dark;--tblr-body-color: #dce1e7;--tblr-body-color-rgb: 220, 225, 231;--tblr-body-bg: #040a11;--tblr-body-bg-rgb: 4, 10, 17;--tblr-emphasis-color: #ffffff;--tblr-emphasis-color-rgb: 255, 255, 255;--tblr-secondary-color: rgba(220, 225, 231, .75);--tblr-secondary-color-rgb: 220, 225, 231;--tblr-secondary-bg: #182433;--tblr-secondary-bg-rgb: 24, 36, 51;--tblr-tertiary-color: rgba(220, 225, 231, .5);--tblr-tertiary-color-rgb: 220, 225, 231;--tblr-tertiary-bg: #0e1722;--tblr-tertiary-bg-rgb: 14, 23, 34;--tblr-primary-text-emphasis: #66b6b1;--tblr-secondary-text-emphasis: #a7afbd;--tblr-success-text-emphasis: #82d18f;--tblr-info-text-emphasis: #8ec2ed;--tblr-warning-text-emphasis: #faa46a;--tblr-danger-text-emphasis: #e68888;--tblr-light-text-emphasis: #eef3f6;--tblr-dark-text-emphasis: #b8c4d4;--tblr-primary-bg-subtle: #001b19;--tblr-secondary-bg-subtle: #16181d;--tblr-success-bg-subtle: #09240e;--tblr-info-bg-subtle: #0d1f2d;--tblr-warning-bg-subtle: #311501;--tblr-danger-bg-subtle: #2b0b0b;--tblr-light-bg-subtle: #182433;--tblr-dark-bg-subtle: #0c121a;--tblr-primary-border-subtle: #00504b;--tblr-secondary-border-subtle: #414957;--tblr-success-border-subtle: #1c6b29;--tblr-info-border-subtle: #285c87;--tblr-warning-border-subtle: #943e04;--tblr-danger-border-subtle: #802222;--tblr-light-border-subtle: #3a4859;--tblr-dark-border-subtle: #182433;--tblr-heading-color: inherit;--tblr-link-color: #66b6b1;--tblr-link-hover-color: #85c5c1;--tblr-link-color-rgb: 102, 182, 177;--tblr-link-hover-color-rgb: 133, 197, 193;--tblr-code-color: var(--tblr-gray-300);--tblr-highlight-color: #dce1e7;--tblr-highlight-bg: #624000;--tblr-border-color: #25384f;--tblr-border-color-translucent: rgba(72, 110, 149, .14);--tblr-form-valid-color: #82d18f;--tblr-form-valid-border-color: #82d18f;--tblr-form-invalid-color: #e68888;--tblr-form-invalid-border-color: #e68888}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--tblr-body-font-family);font-size:var(--tblr-body-font-size);font-weight:var(--tblr-body-font-weight);line-height:var(--tblr-body-line-height);color:var(--tblr-body-color);text-align:var(--tblr-body-text-align);background-color:var(--tblr-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr,.hr{margin:2rem 0;color:inherit;border:0;border-top:var(--tblr-border-width) solid;opacity:.16}h6,.h6,h5,.h5,h4,.h4,h3,.field-group h2,.field-group .h2,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:var(--tblr-spacer);font-weight:var(--tblr-font-weight-bold);line-height:1.2;color:var(--tblr-heading-color)}h1,.h1{font-size:1.5rem}h2,.h2{font-size:1.25rem}h3,.field-group h2,.field-group .h2,.h3{font-size:1rem}h4,.h4{font-size:.875rem}h5,.h5{font-size:.75rem}h6,.h6{font-size:.625rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:600}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:85.714285%}mark,.mark{padding:.1875em;color:var(--tblr-highlight-color);background-color:var(--tblr-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--tblr-link-color-rgb),var(--tblr-link-opacity, 1));text-decoration:none}a:hover{--tblr-link-color-rgb: var(--tblr-link-hover-color-rgb);text-decoration:underline}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--tblr-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:85.714285%;color:var(--tblr-light)}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:85.714285%;color:var(--tblr-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.25rem .5rem;font-size:var(--tblr-font-size-h5);color:var(--tblr-text-secondary-dark);background-color:var(--tblr-code-bg);border-radius:2px}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--tblr-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:.875rem;font-weight:var(--tblr-font-weight-normal)}.display-1{font-size:5rem;font-weight:300;line-height:1.2}.display-2{font-size:4.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}.display-5{font-size:3rem;font-weight:300;line-height:1.2}.display-6{font-size:2rem;font-weight:300;line-height:1.2}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:85.714285%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:.875rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:85.714285%;color:#49566c}.blockquote-footer:before{content:"\2014\a0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--tblr-body-bg);border:var(--tblr-border-width) solid var(--tblr-border-color);border-radius:var(--tblr-border-radius);box-shadow:var(--tblr-box-shadow-sm);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:85.714285%;color:var(--tblr-secondary-color)}.container,.container-fluid,.container-xxl,.container-xl,.container-lg,.container-md,.container-sm{--tblr-gutter-x: calc(var(--tblr-page-padding) * 2);--tblr-gutter-y: 0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width: 576px){.container-sm,.container{max-width:540px}}@media (min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media (min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media (min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}@media (min-width: 1400px){.container-xxl,.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1320px}}:root{--tblr-breakpoint-xs: 0;--tblr-breakpoint-sm: 576px;--tblr-breakpoint-md: 768px;--tblr-breakpoint-lg: 992px;--tblr-breakpoint-xl: 1200px;--tblr-breakpoint-xxl: 1400px}.row{--tblr-gutter-x: var(--tblr-page-padding);--tblr-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--tblr-gutter-y));margin-right:calc(-.5 * var(--tblr-gutter-x));margin-left:calc(-.5 * var(--tblr-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-top:var(--tblr-gutter-y)}.grid{display:grid;grid-template-rows:repeat(var(--tblr-rows, 1),1fr);grid-template-columns:repeat(var(--tblr-columns, 12),1fr);gap:var(--tblr-gap, var(--tblr-page-padding))}.grid .g-col-1{grid-column:auto/span 1}.grid .g-col-2{grid-column:auto/span 2}.grid .g-col-3{grid-column:auto/span 3}.grid .g-col-4{grid-column:auto/span 4}.grid .g-col-5{grid-column:auto/span 5}.grid .g-col-6{grid-column:auto/span 6}.grid .g-col-7{grid-column:auto/span 7}.grid .g-col-8{grid-column:auto/span 8}.grid .g-col-9{grid-column:auto/span 9}.grid .g-col-10{grid-column:auto/span 10}.grid .g-col-11{grid-column:auto/span 11}.grid .g-col-12{grid-column:auto/span 12}.grid .g-start-1{grid-column-start:1}.grid .g-start-2{grid-column-start:2}.grid .g-start-3{grid-column-start:3}.grid .g-start-4{grid-column-start:4}.grid .g-start-5{grid-column-start:5}.grid .g-start-6{grid-column-start:6}.grid .g-start-7{grid-column-start:7}.grid .g-start-8{grid-column-start:8}.grid .g-start-9{grid-column-start:9}.grid .g-start-10{grid-column-start:10}.grid .g-start-11{grid-column-start:11}@media (min-width: 576px){.grid .g-col-sm-1{grid-column:auto/span 1}.grid .g-col-sm-2{grid-column:auto/span 2}.grid .g-col-sm-3{grid-column:auto/span 3}.grid .g-col-sm-4{grid-column:auto/span 4}.grid .g-col-sm-5{grid-column:auto/span 5}.grid .g-col-sm-6{grid-column:auto/span 6}.grid .g-col-sm-7{grid-column:auto/span 7}.grid .g-col-sm-8{grid-column:auto/span 8}.grid .g-col-sm-9{grid-column:auto/span 9}.grid .g-col-sm-10{grid-column:auto/span 10}.grid .g-col-sm-11{grid-column:auto/span 11}.grid .g-col-sm-12{grid-column:auto/span 12}.grid .g-start-sm-1{grid-column-start:1}.grid .g-start-sm-2{grid-column-start:2}.grid .g-start-sm-3{grid-column-start:3}.grid .g-start-sm-4{grid-column-start:4}.grid .g-start-sm-5{grid-column-start:5}.grid .g-start-sm-6{grid-column-start:6}.grid .g-start-sm-7{grid-column-start:7}.grid .g-start-sm-8{grid-column-start:8}.grid .g-start-sm-9{grid-column-start:9}.grid .g-start-sm-10{grid-column-start:10}.grid .g-start-sm-11{grid-column-start:11}}@media (min-width: 768px){.grid .g-col-md-1{grid-column:auto/span 1}.grid .g-col-md-2{grid-column:auto/span 2}.grid .g-col-md-3{grid-column:auto/span 3}.grid .g-col-md-4{grid-column:auto/span 4}.grid .g-col-md-5{grid-column:auto/span 5}.grid .g-col-md-6{grid-column:auto/span 6}.grid .g-col-md-7{grid-column:auto/span 7}.grid .g-col-md-8{grid-column:auto/span 8}.grid .g-col-md-9{grid-column:auto/span 9}.grid .g-col-md-10{grid-column:auto/span 10}.grid .g-col-md-11{grid-column:auto/span 11}.grid .g-col-md-12{grid-column:auto/span 12}.grid .g-start-md-1{grid-column-start:1}.grid .g-start-md-2{grid-column-start:2}.grid .g-start-md-3{grid-column-start:3}.grid .g-start-md-4{grid-column-start:4}.grid .g-start-md-5{grid-column-start:5}.grid .g-start-md-6{grid-column-start:6}.grid .g-start-md-7{grid-column-start:7}.grid .g-start-md-8{grid-column-start:8}.grid .g-start-md-9{grid-column-start:9}.grid .g-start-md-10{grid-column-start:10}.grid .g-start-md-11{grid-column-start:11}}@media (min-width: 992px){.grid .g-col-lg-1{grid-column:auto/span 1}.grid .g-col-lg-2{grid-column:auto/span 2}.grid .g-col-lg-3{grid-column:auto/span 3}.grid .g-col-lg-4{grid-column:auto/span 4}.grid .g-col-lg-5{grid-column:auto/span 5}.grid .g-col-lg-6{grid-column:auto/span 6}.grid .g-col-lg-7{grid-column:auto/span 7}.grid .g-col-lg-8{grid-column:auto/span 8}.grid .g-col-lg-9{grid-column:auto/span 9}.grid .g-col-lg-10{grid-column:auto/span 10}.grid .g-col-lg-11{grid-column:auto/span 11}.grid .g-col-lg-12{grid-column:auto/span 12}.grid .g-start-lg-1{grid-column-start:1}.grid .g-start-lg-2{grid-column-start:2}.grid .g-start-lg-3{grid-column-start:3}.grid .g-start-lg-4{grid-column-start:4}.grid .g-start-lg-5{grid-column-start:5}.grid .g-start-lg-6{grid-column-start:6}.grid .g-start-lg-7{grid-column-start:7}.grid .g-start-lg-8{grid-column-start:8}.grid .g-start-lg-9{grid-column-start:9}.grid .g-start-lg-10{grid-column-start:10}.grid .g-start-lg-11{grid-column-start:11}}@media (min-width: 1200px){.grid .g-col-xl-1{grid-column:auto/span 1}.grid .g-col-xl-2{grid-column:auto/span 2}.grid .g-col-xl-3{grid-column:auto/span 3}.grid .g-col-xl-4{grid-column:auto/span 4}.grid .g-col-xl-5{grid-column:auto/span 5}.grid .g-col-xl-6{grid-column:auto/span 6}.grid .g-col-xl-7{grid-column:auto/span 7}.grid .g-col-xl-8{grid-column:auto/span 8}.grid .g-col-xl-9{grid-column:auto/span 9}.grid .g-col-xl-10{grid-column:auto/span 10}.grid .g-col-xl-11{grid-column:auto/span 11}.grid .g-col-xl-12{grid-column:auto/span 12}.grid .g-start-xl-1{grid-column-start:1}.grid .g-start-xl-2{grid-column-start:2}.grid .g-start-xl-3{grid-column-start:3}.grid .g-start-xl-4{grid-column-start:4}.grid .g-start-xl-5{grid-column-start:5}.grid .g-start-xl-6{grid-column-start:6}.grid .g-start-xl-7{grid-column-start:7}.grid .g-start-xl-8{grid-column-start:8}.grid .g-start-xl-9{grid-column-start:9}.grid .g-start-xl-10{grid-column-start:10}.grid .g-start-xl-11{grid-column-start:11}}@media (min-width: 1400px){.grid .g-col-xxl-1{grid-column:auto/span 1}.grid .g-col-xxl-2{grid-column:auto/span 2}.grid .g-col-xxl-3{grid-column:auto/span 3}.grid .g-col-xxl-4{grid-column:auto/span 4}.grid .g-col-xxl-5{grid-column:auto/span 5}.grid .g-col-xxl-6{grid-column:auto/span 6}.grid .g-col-xxl-7{grid-column:auto/span 7}.grid .g-col-xxl-8{grid-column:auto/span 8}.grid .g-col-xxl-9{grid-column:auto/span 9}.grid .g-col-xxl-10{grid-column:auto/span 10}.grid .g-col-xxl-11{grid-column:auto/span 11}.grid .g-col-xxl-12{grid-column:auto/span 12}.grid .g-start-xxl-1{grid-column-start:1}.grid .g-start-xxl-2{grid-column-start:2}.grid .g-start-xxl-3{grid-column-start:3}.grid .g-start-xxl-4{grid-column-start:4}.grid .g-start-xxl-5{grid-column-start:5}.grid .g-start-xxl-6{grid-column-start:6}.grid .g-start-xxl-7{grid-column-start:7}.grid .g-start-xxl-8{grid-column-start:8}.grid .g-start-xxl-9{grid-column-start:9}.grid .g-start-xxl-10{grid-column-start:10}.grid .g-start-xxl-11{grid-column-start:11}}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--tblr-gutter-x: 0}.g-0,.gy-0{--tblr-gutter-y: 0}.g-1,.gx-1{--tblr-gutter-x: .25rem}.g-1,.gy-1{--tblr-gutter-y: .25rem}.g-2,.gx-2{--tblr-gutter-x: .5rem}.g-2,.gy-2{--tblr-gutter-y: .5rem}.g-3,.gx-3{--tblr-gutter-x: 1rem}.g-3,.gy-3{--tblr-gutter-y: 1rem}.g-4,.gx-4{--tblr-gutter-x: 1.5rem}.g-4,.gy-4{--tblr-gutter-y: 1.5rem}.g-5,.gx-5{--tblr-gutter-x: 2rem}.g-5,.gy-5{--tblr-gutter-y: 2rem}.g-6,.gx-6{--tblr-gutter-x: 3rem}.g-6,.gy-6{--tblr-gutter-y: 3rem}.g-7,.gx-7{--tblr-gutter-x: 5rem}.g-7,.gy-7{--tblr-gutter-y: 5rem}.g-8,.gx-8{--tblr-gutter-x: 8rem}.g-8,.gy-8{--tblr-gutter-y: 8rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--tblr-gutter-x: 0}.g-sm-0,.gy-sm-0{--tblr-gutter-y: 0}.g-sm-1,.gx-sm-1{--tblr-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--tblr-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--tblr-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--tblr-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--tblr-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--tblr-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--tblr-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--tblr-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--tblr-gutter-x: 2rem}.g-sm-5,.gy-sm-5{--tblr-gutter-y: 2rem}.g-sm-6,.gx-sm-6{--tblr-gutter-x: 3rem}.g-sm-6,.gy-sm-6{--tblr-gutter-y: 3rem}.g-sm-7,.gx-sm-7{--tblr-gutter-x: 5rem}.g-sm-7,.gy-sm-7{--tblr-gutter-y: 5rem}.g-sm-8,.gx-sm-8{--tblr-gutter-x: 8rem}.g-sm-8,.gy-sm-8{--tblr-gutter-y: 8rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--tblr-gutter-x: 0}.g-md-0,.gy-md-0{--tblr-gutter-y: 0}.g-md-1,.gx-md-1{--tblr-gutter-x: .25rem}.g-md-1,.gy-md-1{--tblr-gutter-y: .25rem}.g-md-2,.gx-md-2{--tblr-gutter-x: .5rem}.g-md-2,.gy-md-2{--tblr-gutter-y: .5rem}.g-md-3,.gx-md-3{--tblr-gutter-x: 1rem}.g-md-3,.gy-md-3{--tblr-gutter-y: 1rem}.g-md-4,.gx-md-4{--tblr-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--tblr-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--tblr-gutter-x: 2rem}.g-md-5,.gy-md-5{--tblr-gutter-y: 2rem}.g-md-6,.gx-md-6{--tblr-gutter-x: 3rem}.g-md-6,.gy-md-6{--tblr-gutter-y: 3rem}.g-md-7,.gx-md-7{--tblr-gutter-x: 5rem}.g-md-7,.gy-md-7{--tblr-gutter-y: 5rem}.g-md-8,.gx-md-8{--tblr-gutter-x: 8rem}.g-md-8,.gy-md-8{--tblr-gutter-y: 8rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--tblr-gutter-x: 0}.g-lg-0,.gy-lg-0{--tblr-gutter-y: 0}.g-lg-1,.gx-lg-1{--tblr-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--tblr-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--tblr-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--tblr-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--tblr-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--tblr-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--tblr-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--tblr-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--tblr-gutter-x: 2rem}.g-lg-5,.gy-lg-5{--tblr-gutter-y: 2rem}.g-lg-6,.gx-lg-6{--tblr-gutter-x: 3rem}.g-lg-6,.gy-lg-6{--tblr-gutter-y: 3rem}.g-lg-7,.gx-lg-7{--tblr-gutter-x: 5rem}.g-lg-7,.gy-lg-7{--tblr-gutter-y: 5rem}.g-lg-8,.gx-lg-8{--tblr-gutter-x: 8rem}.g-lg-8,.gy-lg-8{--tblr-gutter-y: 8rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--tblr-gutter-x: 0}.g-xl-0,.gy-xl-0{--tblr-gutter-y: 0}.g-xl-1,.gx-xl-1{--tblr-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--tblr-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--tblr-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--tblr-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--tblr-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--tblr-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--tblr-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--tblr-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--tblr-gutter-x: 2rem}.g-xl-5,.gy-xl-5{--tblr-gutter-y: 2rem}.g-xl-6,.gx-xl-6{--tblr-gutter-x: 3rem}.g-xl-6,.gy-xl-6{--tblr-gutter-y: 3rem}.g-xl-7,.gx-xl-7{--tblr-gutter-x: 5rem}.g-xl-7,.gy-xl-7{--tblr-gutter-y: 5rem}.g-xl-8,.gx-xl-8{--tblr-gutter-x: 8rem}.g-xl-8,.gy-xl-8{--tblr-gutter-y: 8rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--tblr-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--tblr-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--tblr-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--tblr-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--tblr-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--tblr-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--tblr-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--tblr-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--tblr-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--tblr-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--tblr-gutter-x: 2rem}.g-xxl-5,.gy-xxl-5{--tblr-gutter-y: 2rem}.g-xxl-6,.gx-xxl-6{--tblr-gutter-x: 3rem}.g-xxl-6,.gy-xxl-6{--tblr-gutter-y: 3rem}.g-xxl-7,.gx-xxl-7{--tblr-gutter-x: 5rem}.g-xxl-7,.gy-xxl-7{--tblr-gutter-y: 5rem}.g-xxl-8,.gx-xxl-8{--tblr-gutter-x: 8rem}.g-xxl-8,.gy-xxl-8{--tblr-gutter-y: 8rem}}.table,.markdown>table{--tblr-table-color-type: initial;--tblr-table-bg-type: initial;--tblr-table-color-state: initial;--tblr-table-bg-state: initial;--tblr-table-color: inherit;--tblr-table-bg: transparent;--tblr-table-border-color: var(--tblr-border-color-translucent);--tblr-table-accent-bg: transparent;--tblr-table-striped-color: inherit;--tblr-table-striped-bg: var(--tblr-bg-surface-tertiary);--tblr-table-active-color: inherit;--tblr-table-active-bg: rgba(var(--tblr-emphasis-color-rgb), .1);--tblr-table-hover-color: inherit;--tblr-table-hover-bg: rgba(var(--tblr-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--tblr-table-border-color)}.table>:not(caption)>*>*,.markdown>table>:not(caption)>*>*{padding:.5rem;color:var(--tblr-table-color-state, var(--tblr-table-color-type, var(--tblr-table-color)));background-color:var(--tblr-table-bg);border-bottom-width:var(--tblr-border-width);box-shadow:inset 0 0 0 9999px var(--tblr-table-bg-state, var(--tblr-table-bg-type, var(--tblr-table-accent-bg)))}.table>tbody,.markdown>table>tbody{vertical-align:inherit}.table>thead,.markdown>table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--tblr-border-width) * 2) solid var(--tblr-border-color-translucent)}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*,.markdown>table>:not(caption)>*{border-width:var(--tblr-border-width) 0}.table-bordered>:not(caption)>*>*,.markdown>table>:not(caption)>*>*{border-width:0 var(--tblr-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(2n)>*{--tblr-table-color-type: var(--tblr-table-striped-color);--tblr-table-bg-type: var(--tblr-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--tblr-table-color-type: var(--tblr-table-striped-color);--tblr-table-bg-type: var(--tblr-table-striped-bg)}.table-active{--tblr-table-color-state: var(--tblr-table-active-color);--tblr-table-bg-state: var(--tblr-table-active-bg)}.table-hover>tbody>tr:hover>*{--tblr-table-color-state: var(--tblr-table-hover-color);--tblr-table-bg-state: var(--tblr-table-hover-bg)}.table-primary{--tblr-table-color: #182433;--tblr-table-bg: #cce7e5;--tblr-table-border-color: #a8c0c1;--tblr-table-striped-bg: #c3dddc;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #bad4d3;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #bfd8d8;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-secondary{--tblr-table-color: #182433;--tblr-table-bg: #e2e4e9;--tblr-table-border-color: #babec5;--tblr-table-striped-bg: #d8dae0;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #ced1d7;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #d3d6db;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-success{--tblr-table-color: #182433;--tblr-table-bg: #d5f0da;--tblr-table-border-color: #afc7b9;--tblr-table-striped-bg: #cce6d2;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #c2dcc9;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #c7e1cd;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-info{--tblr-table-color: #182433;--tblr-table-bg: #d9ebf9;--tblr-table-border-color: #b2c3d1;--tblr-table-striped-bg: #cfe1ef;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #c6d7e5;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #cbdcea;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-warning{--tblr-table-color: #182433;--tblr-table-bg: #fde1cd;--tblr-table-border-color: #cfbbae;--tblr-table-striped-bg: #f2d8c5;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #e6cebe;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #ecd3c1;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-danger{--tblr-table-color: #182433;--tblr-table-bg: #f7d7d7;--tblr-table-border-color: #cab3b6;--tblr-table-striped-bg: #eccecf;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #e1c5c7;--tblr-table-active-color: #f6f8fb;--tblr-table-hover-bg: #e6cacb;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-light{--tblr-table-color: #182433;--tblr-table-bg: #f6f8fb;--tblr-table-border-color: #caced3;--tblr-table-striped-bg: #ebedf1;--tblr-table-striped-color: #182433;--tblr-table-active-bg: #e0e3e7;--tblr-table-active-color: #182433;--tblr-table-hover-bg: #e5e8ec;--tblr-table-hover-color: #182433;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-dark{--tblr-table-color: #f6f8fb;--tblr-table-bg: #182433;--tblr-table-border-color: #444e5b;--tblr-table-striped-bg: #232f3d;--tblr-table-striped-color: #f6f8fb;--tblr-table-active-bg: #2e3947;--tblr-table-active-color: #f6f8fb;--tblr-table-hover-bg: #293442;--tblr-table-hover-color: #f6f8fb;color:var(--tblr-table-color);border-color:var(--tblr-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem;font-size:.875rem;font-weight:var(--tblr-font-weight-medium)}.col-form-label{padding-top:calc(.5625rem + var(--tblr-border-width));padding-bottom:calc(.5625rem + var(--tblr-border-width));margin-bottom:0;font-size:inherit;font-weight:var(--tblr-font-weight-medium);line-height:1.4285714286}.col-form-label-lg{padding-top:calc(.5rem + var(--tblr-border-width));padding-bottom:calc(.5rem + var(--tblr-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.125rem + var(--tblr-border-width));padding-bottom:calc(.125rem + var(--tblr-border-width));font-size:.75rem}.form-text{margin-top:.25rem;font-size:85.714285%;color:var(--tblr-secondary-color)}.form-control{display:block;width:100%;padding:.5625rem .75rem;font-family:var(--tblr-font-sans-serif);font-size:.875rem;font-weight:400;line-height:1.4285714286;color:var(--tblr-body-color);appearance:none;background-color:var(--tblr-bg-forms);background-clip:padding-box;border:var(--tblr-border-width) solid var(--tblr-border-color);border-radius:var(--tblr-border-radius);box-shadow:var(--tblr-box-shadow-input);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--tblr-body-color);background-color:var(--tblr-bg-forms);border-color:#80c2be;outline:0;box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.4285714286em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::placeholder{color:#8a97ab;opacity:1}.form-control:disabled{background-color:var(--tblr-bg-surface-secondary);opacity:1}.form-control::file-selector-button{padding:.5625rem .75rem;margin:-.5625rem -.75rem;margin-inline-end:.75rem;color:var(--tblr-body-color);background-color:var(--tblr-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--tblr-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--tblr-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.5625rem 0;margin-bottom:0;line-height:1.4285714286;color:var(--tblr-body-color);background-color:transparent;border:solid transparent;border-width:var(--tblr-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2));padding:.125rem .25rem;font-size:.75rem;border-radius:var(--tblr-border-radius-sm)}.form-control-sm::file-selector-button{padding:.125rem .25rem;margin:-.125rem -.25rem;margin-inline-end:.25rem}.form-control-lg{min-height:calc(1.4285714286em + 1rem + calc(var(--tblr-border-width) * 2));padding:.5rem .75rem;font-size:1.25rem;border-radius:var(--tblr-border-radius-lg)}.form-control-lg::file-selector-button{padding:.5rem .75rem;margin:-.5rem -.75rem;margin-inline-end:.75rem}textarea.form-control{min-height:calc(1.4285714286em + 1.125rem + calc(var(--tblr-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.4285714286em + 1rem + calc(var(--tblr-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.4285714286em + 1.125rem + calc(var(--tblr-border-width) * 2));padding:.5625rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--tblr-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--tblr-border-radius)}.form-control-color.form-control-sm{height:calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.4285714286em + 1rem + calc(var(--tblr-border-width) * 2))}.form-select{--tblr-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a97ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.5625rem 2.25rem .5625rem .75rem;font-family:var(--tblr-font-sans-serif);font-size:.875rem;font-weight:400;line-height:1.4285714286;color:var(--tblr-body-color);appearance:none;background-color:var(--tblr-bg-forms);background-image:var(--tblr-form-select-bg-img),var(--tblr-form-select-bg-icon, none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--tblr-border-width) solid var(--tblr-border-color);border-radius:var(--tblr-border-radius);box-shadow:var(--tblr-box-shadow-input);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#80c2be;outline:0;box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--tblr-bg-surface-secondary)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--tblr-body-color)}.form-select-sm{padding-top:.125rem;padding-bottom:.125rem;padding-left:.25rem;font-size:.75rem;border-radius:var(--tblr-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:.75rem;font-size:1.25rem;border-radius:var(--tblr-border-radius-lg)}[data-bs-theme=dark] .form-select,body[data-bs-theme=dark] [data-bs-theme=light] .form-select{--tblr-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dce1e7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.25rem;padding-left:2rem;margin-bottom:.75rem}.form-check .form-check-input{float:left;margin-left:-2rem}.form-check-reverse{padding-right:2rem;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-2rem;margin-left:0}.form-check-input{--tblr-form-check-bg: var(--tblr-bg-forms);flex-shrink:0;width:1.25rem;height:1.25rem;margin-top:.0892857143rem;vertical-align:top;appearance:none;background-color:var(--tblr-form-check-bg);background-image:var(--tblr-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:var(--tblr-border-radius)}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#80c2be;outline:0;box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-check-input:checked{background-color:var(--tblr-primary);border-color:var(--tblr-border-color-translucent)}.form-check-input:checked[type=checkbox]{--tblr-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--tblr-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle r='3' fill='%23ffffff' cx='8' cy='8' /%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:var(--tblr-primary);border-color:var(--tblr-primary);--tblr-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.7}.form-switch{padding-left:2.5rem}.form-switch .form-check-input{--tblr-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23dce1e7'/%3e%3c/svg%3e");width:2rem;margin-left:-2.5rem;background-image:var(--tblr-form-switch-bg);background-position:left center;border-radius:2rem;transition:background-position .15s ease-in-out}.form-switch .form-check-input:focus{--tblr-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2380c2be'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--tblr-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5rem;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5rem;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.4}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--tblr-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.25rem;padding:0;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #f6f8fb,0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #f6f8fb,0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.375rem;appearance:none;background-color:var(--tblr-primary);border:2px var(--tblr-border-style) #ffffff;border-radius:1rem;box-shadow:0 .1rem .25rem #0000001a;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b3dad8}.form-range::-webkit-slider-runnable-track{width:100%;height:.25rem;color:transparent;cursor:pointer;background-color:var(--tblr-border-color);border-color:transparent;border-radius:1rem;box-shadow:var(--tblr-box-shadow-inset)}.form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:var(--tblr-primary);border:2px var(--tblr-border-style) #ffffff;border-radius:1rem;box-shadow:0 .1rem .25rem #0000001a;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{transition:none}}.form-range::-moz-range-thumb:active{background-color:#b3dad8}.form-range::-moz-range-track{width:100%;height:.25rem;color:transparent;cursor:pointer;background-color:var(--tblr-border-color);border-color:transparent;border-radius:1rem;box-shadow:var(--tblr-box-shadow-inset)}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--tblr-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--tblr-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--tblr-border-width) * 2));min-height:calc(3.5rem + calc(var(--tblr-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--tblr-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{color:rgba(var(--tblr-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-control-plaintext~label:after,.form-floating>.form-select~label:after{position:absolute;inset:1rem .375rem;z-index:-1;height:1.5em;content:"";background-color:var(--tblr-bg-forms);border-radius:var(--tblr-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--tblr-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--tblr-border-width) 0}.form-floating>:disabled~label,.form-floating>.form-control:disabled~label{color:#49566c}.form-floating>:disabled~label:after,.form-floating>.form-control:disabled~label:after{background-color:var(--tblr-bg-surface-secondary)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.5625rem .75rem;font-size:.875rem;font-weight:400;line-height:1.4285714286;color:var(--tblr-gray-500);text-align:center;white-space:nowrap;background-color:var(--tblr-bg-surface-secondary);border:var(--tblr-border-width) solid var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem .75rem;font-size:1.25rem;border-radius:var(--tblr-border-radius-lg)}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.125rem .25rem;font-size:.75rem;border-radius:var(--tblr-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--tblr-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:85.714285%;color:var(--tblr-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:var(--tblr-spacer-2) var(--tblr-spacer-2);margin-top:.1rem;font-size:.765625rem;color:#fff;background-color:var(--tblr-success);border-radius:var(--tblr-border-radius)}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:var(--tblr-form-valid-border-color);padding-right:calc(1.4285714286em + 1.125rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.3571428572em + .28125rem) center;background-size:calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:var(--tblr-form-valid-border-color);box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.4285714286em + 1.125rem);background-position:top calc(.3571428572em + .28125rem) right calc(.3571428572em + .28125rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:var(--tblr-form-valid-border-color)}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{--tblr-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:var(--tblr-form-valid-border-color);box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-success-rgb),.25)}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3rem + calc(1.4285714286em + 1.125rem))}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:var(--tblr-form-valid-border-color)}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:var(--tblr-form-valid-color)}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem rgba(var(--tblr-success-rgb),.25)}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:var(--tblr-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:85.714285%;color:var(--tblr-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:var(--tblr-spacer-2) var(--tblr-spacer-2);margin-top:.1rem;font-size:.765625rem;color:#fff;background-color:var(--tblr-danger);border-radius:var(--tblr-border-radius)}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:var(--tblr-form-invalid-border-color);padding-right:calc(1.4285714286em + 1.125rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d63939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.3571428572em + .28125rem) center;background-size:calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:var(--tblr-form-invalid-border-color);box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.4285714286em + 1.125rem);background-position:top calc(.3571428572em + .28125rem) right calc(.3571428572em + .28125rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:var(--tblr-form-invalid-border-color)}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{--tblr-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d63939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:var(--tblr-form-invalid-border-color);box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-danger-rgb),.25)}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3rem + calc(1.4285714286em + 1.125rem))}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:var(--tblr-form-invalid-border-color)}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:var(--tblr-form-invalid-color)}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--tblr-danger-rgb),.25)}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:var(--tblr-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--tblr-btn-padding-x: .5rem;--tblr-btn-padding-y: .25rem;--tblr-btn-font-family: var(--tblr-font-sans-serif);--tblr-btn-font-size: .875rem;--tblr-btn-font-weight: var(--tblr-font-weight-medium);--tblr-btn-line-height: 1.4285714286;--tblr-btn-color: var(--tblr-body-color);--tblr-btn-bg: transparent;--tblr-btn-border-width: var(--tblr-border-width);--tblr-btn-border-color: transparent;--tblr-btn-border-radius: var(--tblr-border-radius);--tblr-btn-hover-border-color: transparent;--tblr-btn-box-shadow: var(--tblr-box-shadow-input);--tblr-btn-disabled-opacity: .4;--tblr-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--tblr-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--tblr-btn-padding-y) var(--tblr-btn-padding-x);font-family:var(--tblr-btn-font-family);font-size:var(--tblr-btn-font-size);font-weight:var(--tblr-btn-font-weight);line-height:var(--tblr-btn-line-height);color:var(--tblr-btn-color);text-align:center;vertical-align:middle;cursor:pointer;user-select:none;border:var(--tblr-btn-border-width) solid var(--tblr-btn-border-color);border-radius:var(--tblr-btn-border-radius);background-color:var(--tblr-btn-bg);box-shadow:var(--tblr-btn-box-shadow);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--tblr-btn-hover-color);text-decoration:none;background-color:var(--tblr-btn-hover-bg);border-color:var(--tblr-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--tblr-btn-color);background-color:var(--tblr-btn-bg);border-color:var(--tblr-btn-border-color)}.btn:focus-visible{color:var(--tblr-btn-hover-color);background-color:var(--tblr-btn-hover-bg);border-color:var(--tblr-btn-hover-border-color);outline:0;box-shadow:var(--tblr-btn-box-shadow),var(--tblr-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--tblr-btn-hover-border-color);outline:0;box-shadow:var(--tblr-btn-box-shadow),var(--tblr-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--tblr-btn-active-color);background-color:var(--tblr-btn-active-bg);border-color:var(--tblr-btn-active-border-color);box-shadow:var(--tblr-btn-active-shadow)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--tblr-btn-active-shadow),var(--tblr-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--tblr-btn-active-shadow),var(--tblr-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--tblr-btn-disabled-color);pointer-events:none;background-color:var(--tblr-btn-disabled-bg);border-color:var(--tblr-btn-disabled-border-color);opacity:var(--tblr-btn-disabled-opacity);box-shadow:none}.btn-link{--tblr-btn-font-weight: 400;--tblr-btn-color: var(--tblr-link-color);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-link-hover-color);--tblr-btn-hover-border-color: transparent;--tblr-btn-active-color: var(--tblr-link-hover-color);--tblr-btn-active-border-color: transparent;--tblr-btn-disabled-color: #49566c;--tblr-btn-disabled-border-color: transparent;--tblr-btn-box-shadow: 0 0 0 #000;--tblr-btn-focus-shadow-rgb: 37, 150, 144;text-decoration:none}.btn-link:hover,.btn-link:focus-visible{text-decoration:underline}.btn-link:focus-visible{color:var(--tblr-btn-color)}.btn-link:hover{color:var(--tblr-btn-hover-color)}.btn-lg,.btn-group-lg>.btn{--tblr-btn-padding-y: .5rem;--tblr-btn-padding-x: .75rem;--tblr-btn-font-size: 1.25rem;--tblr-btn-border-radius: var(--tblr-border-radius-lg)}.btn-sm,.btn-group-sm>.btn{--tblr-btn-padding-y: .125rem;--tblr-btn-padding-x: .25rem;--tblr-btn-font-size: .75rem;--tblr-btn-border-radius: var(--tblr-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(-45deg)}.dropdown-menu{--tblr-dropdown-zindex: 1000;--tblr-dropdown-min-width: 11rem;--tblr-dropdown-padding-x: 0;--tblr-dropdown-padding-y: .25rem;--tblr-dropdown-spacer: 1px;--tblr-dropdown-font-size: .875rem;--tblr-dropdown-color: var(--tblr-body-color);--tblr-dropdown-bg: var(--tblr-bg-surface);--tblr-dropdown-border-color: var(--tblr-border-color-translucent);--tblr-dropdown-border-radius: var(--tblr-border-radius);--tblr-dropdown-border-width: var(--tblr-border-width);--tblr-dropdown-inner-border-radius: calc(var(--tblr-border-radius) - var(--tblr-border-width));--tblr-dropdown-divider-bg: var(--tblr-border-color-translucent);--tblr-dropdown-divider-margin-y: var(--tblr-spacer-2);--tblr-dropdown-box-shadow: var(--tblr-box-shadow-dropdown);--tblr-dropdown-link-color: inherit;--tblr-dropdown-link-hover-color: inherit;--tblr-dropdown-link-hover-bg: rgba(var(--tblr-secondary-rgb), .08);--tblr-dropdown-link-active-color: var(--tblr-primary);--tblr-dropdown-link-active-bg: var(--tblr-active-bg);--tblr-dropdown-link-disabled-color: var(--tblr-tertiary-color);--tblr-dropdown-item-padding-x: .75rem;--tblr-dropdown-item-padding-y: .5rem;--tblr-dropdown-header-color: #49566c;--tblr-dropdown-header-padding-x: .75rem;--tblr-dropdown-header-padding-y: .25rem;position:absolute;z-index:var(--tblr-dropdown-zindex);display:none;min-width:var(--tblr-dropdown-min-width);padding:var(--tblr-dropdown-padding-y) var(--tblr-dropdown-padding-x);margin:0;font-size:var(--tblr-dropdown-font-size);color:var(--tblr-dropdown-color);text-align:left;list-style:none;background-color:var(--tblr-dropdown-bg);background-clip:padding-box;border:var(--tblr-dropdown-border-width) solid var(--tblr-dropdown-border-color);border-radius:var(--tblr-dropdown-border-radius);box-shadow:var(--tblr-dropdown-box-shadow)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--tblr-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--tblr-dropdown-spacer)}.dropup .dropdown-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(135deg)}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--tblr-dropdown-spacer)}.dropend .dropdown-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(-135deg)}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--tblr-dropdown-spacer)}.dropstart .dropdown-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(45deg)}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--tblr-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--tblr-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--tblr-dropdown-item-padding-y) var(--tblr-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--tblr-dropdown-link-color);text-align:inherit;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--tblr-dropdown-item-border-radius, 0)}.dropdown-item:hover,.dropdown-item:focus{color:var(--tblr-dropdown-link-hover-color);text-decoration:none;background-color:var(--tblr-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--tblr-dropdown-link-active-color);text-decoration:none;background-color:var(--tblr-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--tblr-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--tblr-dropdown-header-padding-y) var(--tblr-dropdown-header-padding-x);margin-bottom:0;font-size:.765625rem;color:var(--tblr-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--tblr-dropdown-item-padding-y) var(--tblr-dropdown-item-padding-x);color:var(--tblr-dropdown-link-color)}.dropdown-menu-dark{--tblr-dropdown-color: #b8c4d4;--tblr-dropdown-bg: #182433;--tblr-dropdown-border-color: var(--tblr-border-color-translucent);--tblr-dropdown-box-shadow: ;--tblr-dropdown-link-color: #b8c4d4;--tblr-dropdown-link-hover-color: #ffffff;--tblr-dropdown-divider-bg: var(--tblr-border-color-translucent);--tblr-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--tblr-dropdown-link-active-color: var(--tblr-primary);--tblr-dropdown-link-active-bg: var(--tblr-active-bg);--tblr-dropdown-link-disabled-color: #6c7a91;--tblr-dropdown-header-color: #6c7a91}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--tblr-border-radius)}.btn-group>:not(.btn-check:first-child)+.btn,.btn-group>.btn-group:not(:first-child){margin-left:calc(var(--tblr-border-width) * -1)}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn,.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.1875rem;padding-left:.1875rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.btn-group.show .dropdown-toggle{box-shadow:inset 0 3px 5px #00000020}.btn-group.show .dropdown-toggle.btn-link{box-shadow:none}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:calc(var(--tblr-border-width) * -1)}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn~.btn,.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--tblr-nav-link-padding-x: .75rem;--tblr-nav-link-padding-y: .5rem;--tblr-nav-link-font-weight: ;--tblr-nav-link-color: var(--tblr-gray-500);--tblr-nav-link-hover-color: var(--tblr-link-hover-color);--tblr-nav-link-disabled-color: var(--tblr-disabled-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--tblr-nav-link-padding-y) var(--tblr-nav-link-padding-x);font-size:var(--tblr-nav-link-font-size);font-weight:var(--tblr-nav-link-font-weight);color:var(--tblr-nav-link-color);background:none;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}.nav-link:hover,.nav-link:focus{color:var(--tblr-nav-link-hover-color);text-decoration:none}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.nav-link.disabled,.nav-link:disabled{color:var(--tblr-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--tblr-nav-tabs-border-width: var(--tblr-border-width);--tblr-nav-tabs-border-color: var(--tblr-border-color);--tblr-nav-tabs-border-radius: var(--tblr-border-radius);--tblr-nav-tabs-link-hover-border-color: var(--tblr-border-color) var(--tblr-border-color) var(--tblr-border-color);--tblr-nav-tabs-link-active-color: var(--tblr-body-color);--tblr-nav-tabs-link-active-bg: var(--tblr-body-bg);--tblr-nav-tabs-link-active-border-color: var(--tblr-border-color) var(--tblr-border-color) var(--tblr-border-color);border-bottom:var(--tblr-nav-tabs-border-width) solid var(--tblr-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--tblr-nav-tabs-border-width));border:var(--tblr-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--tblr-nav-tabs-border-radius);border-top-right-radius:var(--tblr-nav-tabs-border-radius)}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--tblr-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--tblr-nav-tabs-link-active-color);background-color:var(--tblr-nav-tabs-link-active-bg);border-color:var(--tblr-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--tblr-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--tblr-nav-pills-border-radius: var(--tblr-border-radius);--tblr-nav-pills-link-active-color: var(--tblr-primary);--tblr-nav-pills-link-active-bg: rgba(var(--tblr-secondary-rgb), .15)}.nav-pills .nav-link{border-radius:var(--tblr-nav-pills-border-radius)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--tblr-nav-pills-link-active-color);background-color:var(--tblr-nav-pills-link-active-bg)}.nav-underline{--tblr-nav-underline-gap: 1rem;--tblr-nav-underline-border-width: .125rem;--tblr-nav-underline-link-active-color: var(--tblr-emphasis-color);gap:var(--tblr-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--tblr-nav-underline-border-width) solid transparent}.nav-underline .nav-link:hover,.nav-underline .nav-link:focus{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:600;color:var(--tblr-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--tblr-navbar-padding-x: 0;--tblr-navbar-padding-y: .25rem;--tblr-navbar-color: var(--tblr-body-color);--tblr-navbar-hover-color: rgba(var(--tblr-emphasis-color-rgb), .8);--tblr-navbar-disabled-color: var(--tblr-disabled-color);--tblr-navbar-active-color: var(--tblr-body-color) color;--tblr-navbar-brand-padding-y: .5rem;--tblr-navbar-brand-margin-end: 1rem;--tblr-navbar-brand-font-size: 1.25rem;--tblr-navbar-brand-color: var(--tblr-body-color);--tblr-navbar-brand-hover-color: var(--tblr-body-color) color;--tblr-navbar-nav-link-padding-x: .75rem;--tblr-navbar-toggler-padding-y: 0;--tblr-navbar-toggler-padding-x: 0;--tblr-navbar-toggler-font-size: 1rem;--tblr-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2824, 36, 51, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--tblr-navbar-toggler-border-color: rgba(var(--tblr-emphasis-color-rgb), .15);--tblr-navbar-toggler-border-radius: var(--tblr-border-radius);--tblr-navbar-toggler-focus-width: 0;--tblr-navbar-toggler-transition: box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--tblr-navbar-padding-y) var(--tblr-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-sm,.navbar>.container-md,.navbar>.container-lg,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--tblr-navbar-brand-padding-y);padding-bottom:var(--tblr-navbar-brand-padding-y);margin-right:var(--tblr-navbar-brand-margin-end);font-size:var(--tblr-navbar-brand-font-size);color:var(--tblr-navbar-brand-color);white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{color:var(--tblr-navbar-brand-hover-color);text-decoration:none}.navbar-nav{--tblr-nav-link-padding-x: 0;--tblr-nav-link-padding-y: .5rem;--tblr-nav-link-font-weight: ;--tblr-nav-link-color: var(--tblr-navbar-color);--tblr-nav-link-hover-color: var(--tblr-navbar-hover-color);--tblr-nav-link-disabled-color: var(--tblr-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--tblr-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--tblr-navbar-color)}.navbar-text a,.navbar-text a:hover,.navbar-text a:focus{color:var(--tblr-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--tblr-navbar-toggler-padding-y) var(--tblr-navbar-toggler-padding-x);font-size:var(--tblr-navbar-toggler-font-size);line-height:1;color:var(--tblr-navbar-color);background-color:transparent;border:var(--tblr-border-width) solid var(--tblr-navbar-toggler-border-color);border-radius:var(--tblr-navbar-toggler-border-radius);transition:var(--tblr-navbar-toggler-transition)}@media (prefers-reduced-motion: reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--tblr-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--tblr-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--tblr-scroll-height, 75vh);overflow-y:auto}@media (min-width: 576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--tblr-navbar-nav-link-padding-x);padding-left:var(--tblr-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;box-shadow:none;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark],body[data-bs-theme=dark] .navbar[data-bs-theme=light]{--tblr-navbar-color: rgba(255, 255, 255, .7);--tblr-navbar-hover-color: rgba(255, 255, 255, .75);--tblr-navbar-disabled-color: var(--tblr-disabled-color);--tblr-navbar-active-color: #ffffff;--tblr-navbar-brand-color: #ffffff;--tblr-navbar-brand-hover-color: #ffffff;--tblr-navbar-toggler-border-color: rgba(255, 255, 255, .1);--tblr-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}[data-bs-theme=dark] .navbar-toggler-icon,body[data-bs-theme=dark] [data-bs-theme=light] .navbar-toggler-icon{--tblr-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--tblr-card-spacer-y: 1rem;--tblr-card-spacer-x: 1.25rem;--tblr-card-title-spacer-y: 1.25rem;--tblr-card-title-color: ;--tblr-card-subtitle-color: ;--tblr-card-border-width: var(--tblr-border-width);--tblr-card-border-color: var(--tblr-border-color-translucent);--tblr-card-border-radius: var(--tblr-border-radius);--tblr-card-box-shadow: var(--tblr-shadow-card);--tblr-card-inner-border-radius: calc(var(--tblr-border-radius) - (var(--tblr-border-width)));--tblr-card-cap-padding-y: 1rem;--tblr-card-cap-padding-x: 1.25rem;--tblr-card-cap-bg: var(--tblr-bg-surface-tertiary);--tblr-card-cap-color: inherit;--tblr-card-height: ;--tblr-card-color: inherit;--tblr-card-bg: var(--tblr-bg-surface);--tblr-card-img-overlay-padding: 1rem;--tblr-card-group-margin: 1.5rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--tblr-card-height);color:var(--tblr-body-color);word-wrap:break-word;background-color:var(--tblr-card-bg);background-clip:border-box;border:var(--tblr-card-border-width) solid var(--tblr-card-border-color);border-radius:var(--tblr-card-border-radius);box-shadow:var(--tblr-card-box-shadow)}.card>hr,.card>.hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--tblr-card-inner-border-radius);border-top-right-radius:var(--tblr-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--tblr-card-inner-border-radius);border-bottom-left-radius:var(--tblr-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--tblr-card-spacer-y) var(--tblr-card-spacer-x);color:var(--tblr-card-color)}.card-title{margin-bottom:var(--tblr-card-title-spacer-y);color:var(--tblr-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--tblr-card-title-spacer-y));margin-bottom:0;color:var(--tblr-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:var(--tblr-card-spacer-x)}.card-header{padding:var(--tblr-card-cap-padding-y) var(--tblr-card-cap-padding-x);margin-bottom:0;color:var(--tblr-card-cap-color);background-color:var(--tblr-card-cap-bg);border-bottom:var(--tblr-card-border-width) solid var(--tblr-card-border-color)}.card-header:first-child{border-radius:var(--tblr-card-inner-border-radius) var(--tblr-card-inner-border-radius) 0 0}.card-footer{padding:var(--tblr-card-cap-padding-y) var(--tblr-card-cap-padding-x);color:var(--tblr-card-cap-color);background-color:var(--tblr-card-cap-bg);border-top:var(--tblr-card-border-width) solid var(--tblr-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--tblr-card-inner-border-radius) var(--tblr-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--tblr-card-cap-padding-x));margin-bottom:calc(-1 * var(--tblr-card-cap-padding-y));margin-left:calc(-.5 * var(--tblr-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--tblr-card-bg);border-bottom-color:var(--tblr-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--tblr-card-cap-padding-x));margin-left:calc(-.5 * var(--tblr-card-cap-padding-x))}.card-img-overlay{position:absolute;inset:0;padding:var(--tblr-card-img-overlay-padding);border-radius:var(--tblr-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--tblr-card-inner-border-radius);border-top-right-radius:var(--tblr-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--tblr-card-inner-border-radius);border-bottom-left-radius:var(--tblr-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--tblr-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.accordion{--tblr-accordion-color: var(--tblr-body-color);--tblr-accordion-bg: transparent;--tblr-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;--tblr-accordion-border-color: var(--tblr-border-color-translucent);--tblr-accordion-border-width: var(--tblr-border-width);--tblr-accordion-border-radius: var(--tblr-border-radius);--tblr-accordion-inner-border-radius: calc(var(--tblr-border-radius) - (var(--tblr-border-width)));--tblr-accordion-btn-padding-x: 1.25rem;--tblr-accordion-btn-padding-y: 1rem;--tblr-accordion-btn-color: var(--tblr-body-color);--tblr-accordion-btn-bg: transparent;--tblr-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23182433' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");--tblr-accordion-btn-icon-width: 1rem;--tblr-accordion-btn-icon-transform: rotate(-180deg);--tblr-accordion-btn-icon-transition: transform .2s ease-in-out;--tblr-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23003532' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");--tblr-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--tblr-primary-rgb), .25);--tblr-accordion-body-padding-x: 1.25rem;--tblr-accordion-body-padding-y: 1rem;--tblr-accordion-active-color: inherit;--tblr-accordion-active-bg: transparent}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--tblr-accordion-btn-padding-y) var(--tblr-accordion-btn-padding-x);font-size:.875rem;color:var(--tblr-accordion-btn-color);text-align:left;background-color:var(--tblr-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--tblr-accordion-transition)}@media (prefers-reduced-motion: reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--tblr-accordion-active-color);background-color:var(--tblr-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--tblr-accordion-border-width)) 0 var(--tblr-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--tblr-accordion-btn-active-icon);transform:var(--tblr-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--tblr-accordion-btn-icon-width);height:var(--tblr-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--tblr-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--tblr-accordion-btn-icon-width);transition:var(--tblr-accordion-btn-icon-transition)}@media (prefers-reduced-motion: reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;outline:0;box-shadow:var(--tblr-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--tblr-accordion-color);background-color:var(--tblr-accordion-bg);border:var(--tblr-accordion-border-width) solid var(--tblr-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--tblr-accordion-border-radius);border-top-right-radius:var(--tblr-accordion-border-radius)}.accordion-item:first-of-type>.accordion-header .accordion-button{border-top-left-radius:var(--tblr-accordion-inner-border-radius);border-top-right-radius:var(--tblr-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--tblr-accordion-border-radius);border-bottom-left-radius:var(--tblr-accordion-border-radius)}.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed{border-bottom-right-radius:var(--tblr-accordion-inner-border-radius);border-bottom-left-radius:var(--tblr-accordion-inner-border-radius)}.accordion-item:last-of-type>.accordion-collapse{border-bottom-right-radius:var(--tblr-accordion-border-radius);border-bottom-left-radius:var(--tblr-accordion-border-radius)}.accordion-body{padding:var(--tblr-accordion-body-padding-y) var(--tblr-accordion-body-padding-x)}.accordion-flush>.accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush>.accordion-item:first-child{border-top:0}.accordion-flush>.accordion-item:last-child{border-bottom:0}.accordion-flush>.accordion-item>.accordion-header .accordion-button,.accordion-flush>.accordion-item>.accordion-header .accordion-button.collapsed{border-radius:0}.accordion-flush>.accordion-item>.accordion-collapse{border-radius:0}[data-bs-theme=dark] .accordion-button:after{--tblr-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2366b6b1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--tblr-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2366b6b1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.breadcrumb{--tblr-breadcrumb-padding-x: 0;--tblr-breadcrumb-padding-y: 0;--tblr-breadcrumb-margin-bottom: 1rem;--tblr-breadcrumb-bg: ;--tblr-breadcrumb-border-radius: ;--tblr-breadcrumb-divider-color: var(--tblr-gray-500);--tblr-breadcrumb-item-padding-x: .5rem;--tblr-breadcrumb-item-active-color: inherit;display:flex;flex-wrap:wrap;padding:var(--tblr-breadcrumb-padding-y) var(--tblr-breadcrumb-padding-x);margin-bottom:var(--tblr-breadcrumb-margin-bottom);font-size:var(--tblr-breadcrumb-font-size);list-style:none;background-color:var(--tblr-breadcrumb-bg);border-radius:var(--tblr-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--tblr-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--tblr-breadcrumb-item-padding-x);color:var(--tblr-breadcrumb-divider-color);content:var(--tblr-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--tblr-breadcrumb-item-active-color)}.pagination{--tblr-pagination-padding-x: .25rem;--tblr-pagination-padding-y: .25rem;--tblr-pagination-font-size: .875rem;--tblr-pagination-color: var(--tblr-gray-500);--tblr-pagination-bg: transparent;--tblr-pagination-border-width: 0;--tblr-pagination-border-color: var(--tblr-border-color);--tblr-pagination-border-radius: var(--tblr-border-radius);--tblr-pagination-hover-color: var(--tblr-link-hover-color);--tblr-pagination-hover-bg: var(--tblr-tertiary-bg);--tblr-pagination-hover-border-color: var(--tblr-border-color);--tblr-pagination-focus-color: var(--tblr-link-hover-color);--tblr-pagination-focus-bg: var(--tblr-secondary-bg);--tblr-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--tblr-primary-rgb), .25);--tblr-pagination-active-color: #ffffff;--tblr-pagination-active-bg: var(--tblr-primary);--tblr-pagination-active-border-color: var(--tblr-primary);--tblr-pagination-disabled-color: var(--tblr-disabled-color);--tblr-pagination-disabled-bg: transparent;--tblr-pagination-disabled-border-color: var(--tblr-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--tblr-pagination-padding-y) var(--tblr-pagination-padding-x);font-size:var(--tblr-pagination-font-size);color:var(--tblr-pagination-color);background-color:var(--tblr-pagination-bg);border:var(--tblr-pagination-border-width) solid var(--tblr-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--tblr-pagination-hover-color);text-decoration:none;background-color:var(--tblr-pagination-hover-bg);border-color:var(--tblr-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--tblr-pagination-focus-color);background-color:var(--tblr-pagination-focus-bg);outline:0;box-shadow:var(--tblr-pagination-focus-box-shadow)}.page-link.active,.active>.page-link{z-index:3;color:var(--tblr-pagination-active-color);background-color:var(--tblr-pagination-active-bg);border-color:var(--tblr-pagination-active-border-color)}.page-link.disabled,.disabled>.page-link{color:var(--tblr-pagination-disabled-color);pointer-events:none;background-color:var(--tblr-pagination-disabled-bg);border-color:var(--tblr-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-0}.page-item:first-child .page-link{border-top-left-radius:var(--tblr-pagination-border-radius);border-bottom-left-radius:var(--tblr-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--tblr-pagination-border-radius);border-bottom-right-radius:var(--tblr-pagination-border-radius)}.pagination-lg{--tblr-pagination-padding-x: 1.5rem;--tblr-pagination-padding-y: .75rem;--tblr-pagination-font-size: 1.09375rem;--tblr-pagination-border-radius: var(--tblr-border-radius-lg)}.pagination-sm{--tblr-pagination-padding-x: .5rem;--tblr-pagination-padding-y: .25rem;--tblr-pagination-font-size: .765625rem;--tblr-pagination-border-radius: var(--tblr-border-radius-sm)}.badge{--tblr-badge-padding-x: .5em;--tblr-badge-padding-y: .25em;--tblr-badge-font-size: 85.714285%;--tblr-badge-font-weight: var(--tblr-font-weight-medium);--tblr-badge-color: var(--tblr-gray-500);--tblr-badge-border-radius: var(--tblr-border-radius);display:inline-block;padding:var(--tblr-badge-padding-y) var(--tblr-badge-padding-x);font-size:var(--tblr-badge-font-size);font-weight:var(--tblr-badge-font-weight);line-height:1;color:var(--tblr-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--tblr-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--tblr-alert-bg: transparent;--tblr-alert-padding-x: 1rem;--tblr-alert-padding-y: .75rem;--tblr-alert-margin-bottom: 1rem;--tblr-alert-color: inherit;--tblr-alert-border-color: transparent;--tblr-alert-border: var(--tblr-border-width) solid var(--tblr-alert-border-color);--tblr-alert-border-radius: var(--tblr-border-radius);--tblr-alert-link-color: inherit;position:relative;padding:var(--tblr-alert-padding-y) var(--tblr-alert-padding-x);margin-bottom:var(--tblr-alert-margin-bottom);color:var(--tblr-alert-color);background-color:var(--tblr-alert-bg);border:var(--tblr-alert-border);border-radius:var(--tblr-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:var(--tblr-font-weight-bold);color:var(--tblr-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:.9375rem 1rem}.alert-primary{--tblr-alert-color: var(--tblr-primary-text-emphasis);--tblr-alert-bg: var(--tblr-primary-bg-subtle);--tblr-alert-border-color: var(--tblr-primary-border-subtle);--tblr-alert-link-color: var(--tblr-primary-text-emphasis)}.alert-secondary{--tblr-alert-color: var(--tblr-secondary-text-emphasis);--tblr-alert-bg: var(--tblr-secondary-bg-subtle);--tblr-alert-border-color: var(--tblr-secondary-border-subtle);--tblr-alert-link-color: var(--tblr-secondary-text-emphasis)}.alert-success{--tblr-alert-color: var(--tblr-success-text-emphasis);--tblr-alert-bg: var(--tblr-success-bg-subtle);--tblr-alert-border-color: var(--tblr-success-border-subtle);--tblr-alert-link-color: var(--tblr-success-text-emphasis)}.alert-info{--tblr-alert-color: var(--tblr-info-text-emphasis);--tblr-alert-bg: var(--tblr-info-bg-subtle);--tblr-alert-border-color: var(--tblr-info-border-subtle);--tblr-alert-link-color: var(--tblr-info-text-emphasis)}.alert-warning{--tblr-alert-color: var(--tblr-warning-text-emphasis);--tblr-alert-bg: var(--tblr-warning-bg-subtle);--tblr-alert-border-color: var(--tblr-warning-border-subtle);--tblr-alert-link-color: var(--tblr-warning-text-emphasis)}.alert-danger{--tblr-alert-color: var(--tblr-danger-text-emphasis);--tblr-alert-bg: var(--tblr-danger-bg-subtle);--tblr-alert-border-color: var(--tblr-danger-border-subtle);--tblr-alert-link-color: var(--tblr-danger-text-emphasis)}.alert-light{--tblr-alert-color: var(--tblr-light-text-emphasis);--tblr-alert-bg: var(--tblr-light-bg-subtle);--tblr-alert-border-color: var(--tblr-light-border-subtle);--tblr-alert-link-color: var(--tblr-light-text-emphasis)}.alert-dark{--tblr-alert-color: var(--tblr-dark-text-emphasis);--tblr-alert-bg: var(--tblr-dark-bg-subtle);--tblr-alert-border-color: var(--tblr-dark-border-subtle);--tblr-alert-link-color: var(--tblr-dark-text-emphasis)}.alert-muted{--tblr-alert-color: var(--tblr-muted-text-emphasis);--tblr-alert-bg: var(--tblr-muted-bg-subtle);--tblr-alert-border-color: var(--tblr-muted-border-subtle);--tblr-alert-link-color: var(--tblr-muted-text-emphasis)}.alert-blue{--tblr-alert-color: var(--tblr-blue-text-emphasis);--tblr-alert-bg: var(--tblr-blue-bg-subtle);--tblr-alert-border-color: var(--tblr-blue-border-subtle);--tblr-alert-link-color: var(--tblr-blue-text-emphasis)}.alert-azure{--tblr-alert-color: var(--tblr-azure-text-emphasis);--tblr-alert-bg: var(--tblr-azure-bg-subtle);--tblr-alert-border-color: var(--tblr-azure-border-subtle);--tblr-alert-link-color: var(--tblr-azure-text-emphasis)}.alert-indigo{--tblr-alert-color: var(--tblr-indigo-text-emphasis);--tblr-alert-bg: var(--tblr-indigo-bg-subtle);--tblr-alert-border-color: var(--tblr-indigo-border-subtle);--tblr-alert-link-color: var(--tblr-indigo-text-emphasis)}.alert-purple{--tblr-alert-color: var(--tblr-purple-text-emphasis);--tblr-alert-bg: var(--tblr-purple-bg-subtle);--tblr-alert-border-color: var(--tblr-purple-border-subtle);--tblr-alert-link-color: var(--tblr-purple-text-emphasis)}.alert-pink{--tblr-alert-color: var(--tblr-pink-text-emphasis);--tblr-alert-bg: var(--tblr-pink-bg-subtle);--tblr-alert-border-color: var(--tblr-pink-border-subtle);--tblr-alert-link-color: var(--tblr-pink-text-emphasis)}.alert-red{--tblr-alert-color: var(--tblr-red-text-emphasis);--tblr-alert-bg: var(--tblr-red-bg-subtle);--tblr-alert-border-color: var(--tblr-red-border-subtle);--tblr-alert-link-color: var(--tblr-red-text-emphasis)}.alert-orange{--tblr-alert-color: var(--tblr-orange-text-emphasis);--tblr-alert-bg: var(--tblr-orange-bg-subtle);--tblr-alert-border-color: var(--tblr-orange-border-subtle);--tblr-alert-link-color: var(--tblr-orange-text-emphasis)}.alert-yellow{--tblr-alert-color: var(--tblr-yellow-text-emphasis);--tblr-alert-bg: var(--tblr-yellow-bg-subtle);--tblr-alert-border-color: var(--tblr-yellow-border-subtle);--tblr-alert-link-color: var(--tblr-yellow-text-emphasis)}.alert-lime{--tblr-alert-color: var(--tblr-lime-text-emphasis);--tblr-alert-bg: var(--tblr-lime-bg-subtle);--tblr-alert-border-color: var(--tblr-lime-border-subtle);--tblr-alert-link-color: var(--tblr-lime-text-emphasis)}.alert-green{--tblr-alert-color: var(--tblr-green-text-emphasis);--tblr-alert-bg: var(--tblr-green-bg-subtle);--tblr-alert-border-color: var(--tblr-green-border-subtle);--tblr-alert-link-color: var(--tblr-green-text-emphasis)}.alert-teal{--tblr-alert-color: var(--tblr-teal-text-emphasis);--tblr-alert-bg: var(--tblr-teal-bg-subtle);--tblr-alert-border-color: var(--tblr-teal-border-subtle);--tblr-alert-link-color: var(--tblr-teal-text-emphasis)}.alert-cyan{--tblr-alert-color: var(--tblr-cyan-text-emphasis);--tblr-alert-bg: var(--tblr-cyan-bg-subtle);--tblr-alert-border-color: var(--tblr-cyan-border-subtle);--tblr-alert-link-color: var(--tblr-cyan-text-emphasis)}.alert-x{--tblr-alert-color: var(--tblr-x-text-emphasis);--tblr-alert-bg: var(--tblr-x-bg-subtle);--tblr-alert-border-color: var(--tblr-x-border-subtle);--tblr-alert-link-color: var(--tblr-x-text-emphasis)}.alert-facebook{--tblr-alert-color: var(--tblr-facebook-text-emphasis);--tblr-alert-bg: var(--tblr-facebook-bg-subtle);--tblr-alert-border-color: var(--tblr-facebook-border-subtle);--tblr-alert-link-color: var(--tblr-facebook-text-emphasis)}.alert-twitter{--tblr-alert-color: var(--tblr-twitter-text-emphasis);--tblr-alert-bg: var(--tblr-twitter-bg-subtle);--tblr-alert-border-color: var(--tblr-twitter-border-subtle);--tblr-alert-link-color: var(--tblr-twitter-text-emphasis)}.alert-linkedin{--tblr-alert-color: var(--tblr-linkedin-text-emphasis);--tblr-alert-bg: var(--tblr-linkedin-bg-subtle);--tblr-alert-border-color: var(--tblr-linkedin-border-subtle);--tblr-alert-link-color: var(--tblr-linkedin-text-emphasis)}.alert-google{--tblr-alert-color: var(--tblr-google-text-emphasis);--tblr-alert-bg: var(--tblr-google-bg-subtle);--tblr-alert-border-color: var(--tblr-google-border-subtle);--tblr-alert-link-color: var(--tblr-google-text-emphasis)}.alert-youtube{--tblr-alert-color: var(--tblr-youtube-text-emphasis);--tblr-alert-bg: var(--tblr-youtube-bg-subtle);--tblr-alert-border-color: var(--tblr-youtube-border-subtle);--tblr-alert-link-color: var(--tblr-youtube-text-emphasis)}.alert-vimeo{--tblr-alert-color: var(--tblr-vimeo-text-emphasis);--tblr-alert-bg: var(--tblr-vimeo-bg-subtle);--tblr-alert-border-color: var(--tblr-vimeo-border-subtle);--tblr-alert-link-color: var(--tblr-vimeo-text-emphasis)}.alert-dribbble{--tblr-alert-color: var(--tblr-dribbble-text-emphasis);--tblr-alert-bg: var(--tblr-dribbble-bg-subtle);--tblr-alert-border-color: var(--tblr-dribbble-border-subtle);--tblr-alert-link-color: var(--tblr-dribbble-text-emphasis)}.alert-github{--tblr-alert-color: var(--tblr-github-text-emphasis);--tblr-alert-bg: var(--tblr-github-bg-subtle);--tblr-alert-border-color: var(--tblr-github-border-subtle);--tblr-alert-link-color: var(--tblr-github-text-emphasis)}.alert-instagram{--tblr-alert-color: var(--tblr-instagram-text-emphasis);--tblr-alert-bg: var(--tblr-instagram-bg-subtle);--tblr-alert-border-color: var(--tblr-instagram-border-subtle);--tblr-alert-link-color: var(--tblr-instagram-text-emphasis)}.alert-pinterest{--tblr-alert-color: var(--tblr-pinterest-text-emphasis);--tblr-alert-bg: var(--tblr-pinterest-bg-subtle);--tblr-alert-border-color: var(--tblr-pinterest-border-subtle);--tblr-alert-link-color: var(--tblr-pinterest-text-emphasis)}.alert-vk{--tblr-alert-color: var(--tblr-vk-text-emphasis);--tblr-alert-bg: var(--tblr-vk-bg-subtle);--tblr-alert-border-color: var(--tblr-vk-border-subtle);--tblr-alert-link-color: var(--tblr-vk-text-emphasis)}.alert-rss{--tblr-alert-color: var(--tblr-rss-text-emphasis);--tblr-alert-bg: var(--tblr-rss-bg-subtle);--tblr-alert-border-color: var(--tblr-rss-border-subtle);--tblr-alert-link-color: var(--tblr-rss-text-emphasis)}.alert-flickr{--tblr-alert-color: var(--tblr-flickr-text-emphasis);--tblr-alert-bg: var(--tblr-flickr-bg-subtle);--tblr-alert-border-color: var(--tblr-flickr-border-subtle);--tblr-alert-link-color: var(--tblr-flickr-text-emphasis)}.alert-bitbucket{--tblr-alert-color: var(--tblr-bitbucket-text-emphasis);--tblr-alert-bg: var(--tblr-bitbucket-bg-subtle);--tblr-alert-border-color: var(--tblr-bitbucket-border-subtle);--tblr-alert-link-color: var(--tblr-bitbucket-text-emphasis)}.alert-tabler{--tblr-alert-color: var(--tblr-tabler-text-emphasis);--tblr-alert-bg: var(--tblr-tabler-bg-subtle);--tblr-alert-border-color: var(--tblr-tabler-border-subtle);--tblr-alert-link-color: var(--tblr-tabler-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:.5rem}}.progress,.progress-stacked{--tblr-progress-height: .5rem;--tblr-progress-font-size: .65625rem;--tblr-progress-bg: var(--tblr-border-color);--tblr-progress-border-radius: var(--tblr-border-radius);--tblr-progress-box-shadow: var(--tblr-box-shadow-inset);--tblr-progress-bar-color: #ffffff;--tblr-progress-bar-bg: var(--tblr-primary);--tblr-progress-bar-transition: width .6s ease;display:flex;height:var(--tblr-progress-height);overflow:hidden;font-size:var(--tblr-progress-font-size);background-color:var(--tblr-progress-bg);border-radius:var(--tblr-progress-border-radius);box-shadow:var(--tblr-progress-box-shadow)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--tblr-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--tblr-progress-bar-bg);transition:var(--tblr-progress-bar-transition)}@media (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--tblr-progress-height) var(--tblr-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.list-group{--tblr-list-group-color: var(--tblr-body-color);--tblr-list-group-bg: inherit;--tblr-list-group-border-color: var(--tblr-border-color);--tblr-list-group-border-width: var(--tblr-border-width);--tblr-list-group-border-radius: var(--tblr-border-radius);--tblr-list-group-item-padding-x: 1.25rem;--tblr-list-group-item-padding-y: 1rem;--tblr-list-group-action-color: inherit;--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: rgba(var(--tblr-secondary-rgb), .08);--tblr-list-group-action-active-color: var(--tblr-body-color);--tblr-list-group-action-active-bg: var(--tblr-secondary-bg);--tblr-list-group-disabled-color: var(--tblr-secondary-color);--tblr-list-group-disabled-bg: inherit;--tblr-list-group-active-color: inherit;--tblr-list-group-active-bg: var(--tblr-active-bg);--tblr-list-group-active-border-color: var(--tblr-border-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--tblr-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--tblr-list-group-action-color);text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:var(--tblr-list-group-action-hover-color);text-decoration:none;background-color:var(--tblr-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--tblr-list-group-action-active-color);background-color:var(--tblr-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--tblr-list-group-item-padding-y) var(--tblr-list-group-item-padding-x);color:var(--tblr-list-group-color);background-color:var(--tblr-list-group-bg);border:var(--tblr-list-group-border-width) solid var(--tblr-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--tblr-list-group-disabled-color);pointer-events:none;background-color:var(--tblr-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--tblr-list-group-active-color);background-color:var(--tblr-list-group-active-bg);border-color:var(--tblr-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--tblr-list-group-border-width));border-top-width:var(--tblr-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}@media (min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}@media (min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}@media (min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}@media (min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}@media (min-width: 1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--tblr-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--tblr-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--tblr-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--tblr-list-group-border-width));border-left-width:var(--tblr-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--tblr-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--tblr-list-group-color: var(--tblr-primary-text-emphasis);--tblr-list-group-bg: var(--tblr-primary-bg-subtle);--tblr-list-group-border-color: var(--tblr-primary-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-primary-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-primary-border-subtle);--tblr-list-group-active-color: var(--tblr-primary-bg-subtle);--tblr-list-group-active-bg: var(--tblr-primary-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-primary-text-emphasis)}.list-group-item-secondary{--tblr-list-group-color: var(--tblr-secondary-text-emphasis);--tblr-list-group-bg: var(--tblr-secondary-bg-subtle);--tblr-list-group-border-color: var(--tblr-secondary-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-secondary-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-secondary-border-subtle);--tblr-list-group-active-color: var(--tblr-secondary-bg-subtle);--tblr-list-group-active-bg: var(--tblr-secondary-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-secondary-text-emphasis)}.list-group-item-success{--tblr-list-group-color: var(--tblr-success-text-emphasis);--tblr-list-group-bg: var(--tblr-success-bg-subtle);--tblr-list-group-border-color: var(--tblr-success-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-success-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-success-border-subtle);--tblr-list-group-active-color: var(--tblr-success-bg-subtle);--tblr-list-group-active-bg: var(--tblr-success-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-success-text-emphasis)}.list-group-item-info{--tblr-list-group-color: var(--tblr-info-text-emphasis);--tblr-list-group-bg: var(--tblr-info-bg-subtle);--tblr-list-group-border-color: var(--tblr-info-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-info-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-info-border-subtle);--tblr-list-group-active-color: var(--tblr-info-bg-subtle);--tblr-list-group-active-bg: var(--tblr-info-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-info-text-emphasis)}.list-group-item-warning{--tblr-list-group-color: var(--tblr-warning-text-emphasis);--tblr-list-group-bg: var(--tblr-warning-bg-subtle);--tblr-list-group-border-color: var(--tblr-warning-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-warning-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-warning-border-subtle);--tblr-list-group-active-color: var(--tblr-warning-bg-subtle);--tblr-list-group-active-bg: var(--tblr-warning-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-warning-text-emphasis)}.list-group-item-danger{--tblr-list-group-color: var(--tblr-danger-text-emphasis);--tblr-list-group-bg: var(--tblr-danger-bg-subtle);--tblr-list-group-border-color: var(--tblr-danger-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-danger-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-danger-border-subtle);--tblr-list-group-active-color: var(--tblr-danger-bg-subtle);--tblr-list-group-active-bg: var(--tblr-danger-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-danger-text-emphasis)}.list-group-item-light{--tblr-list-group-color: var(--tblr-light-text-emphasis);--tblr-list-group-bg: var(--tblr-light-bg-subtle);--tblr-list-group-border-color: var(--tblr-light-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-light-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-light-border-subtle);--tblr-list-group-active-color: var(--tblr-light-bg-subtle);--tblr-list-group-active-bg: var(--tblr-light-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-light-text-emphasis)}.list-group-item-dark{--tblr-list-group-color: var(--tblr-dark-text-emphasis);--tblr-list-group-bg: var(--tblr-dark-bg-subtle);--tblr-list-group-border-color: var(--tblr-dark-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-dark-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-dark-border-subtle);--tblr-list-group-active-color: var(--tblr-dark-bg-subtle);--tblr-list-group-active-bg: var(--tblr-dark-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-dark-text-emphasis)}.list-group-item-muted{--tblr-list-group-color: var(--tblr-muted-text-emphasis);--tblr-list-group-bg: var(--tblr-muted-bg-subtle);--tblr-list-group-border-color: var(--tblr-muted-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-muted-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-muted-border-subtle);--tblr-list-group-active-color: var(--tblr-muted-bg-subtle);--tblr-list-group-active-bg: var(--tblr-muted-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-muted-text-emphasis)}.list-group-item-blue{--tblr-list-group-color: var(--tblr-blue-text-emphasis);--tblr-list-group-bg: var(--tblr-blue-bg-subtle);--tblr-list-group-border-color: var(--tblr-blue-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-blue-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-blue-border-subtle);--tblr-list-group-active-color: var(--tblr-blue-bg-subtle);--tblr-list-group-active-bg: var(--tblr-blue-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-blue-text-emphasis)}.list-group-item-azure{--tblr-list-group-color: var(--tblr-azure-text-emphasis);--tblr-list-group-bg: var(--tblr-azure-bg-subtle);--tblr-list-group-border-color: var(--tblr-azure-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-azure-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-azure-border-subtle);--tblr-list-group-active-color: var(--tblr-azure-bg-subtle);--tblr-list-group-active-bg: var(--tblr-azure-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-azure-text-emphasis)}.list-group-item-indigo{--tblr-list-group-color: var(--tblr-indigo-text-emphasis);--tblr-list-group-bg: var(--tblr-indigo-bg-subtle);--tblr-list-group-border-color: var(--tblr-indigo-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-indigo-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-indigo-border-subtle);--tblr-list-group-active-color: var(--tblr-indigo-bg-subtle);--tblr-list-group-active-bg: var(--tblr-indigo-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-indigo-text-emphasis)}.list-group-item-purple{--tblr-list-group-color: var(--tblr-purple-text-emphasis);--tblr-list-group-bg: var(--tblr-purple-bg-subtle);--tblr-list-group-border-color: var(--tblr-purple-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-purple-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-purple-border-subtle);--tblr-list-group-active-color: var(--tblr-purple-bg-subtle);--tblr-list-group-active-bg: var(--tblr-purple-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-purple-text-emphasis)}.list-group-item-pink{--tblr-list-group-color: var(--tblr-pink-text-emphasis);--tblr-list-group-bg: var(--tblr-pink-bg-subtle);--tblr-list-group-border-color: var(--tblr-pink-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-pink-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-pink-border-subtle);--tblr-list-group-active-color: var(--tblr-pink-bg-subtle);--tblr-list-group-active-bg: var(--tblr-pink-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-pink-text-emphasis)}.list-group-item-red{--tblr-list-group-color: var(--tblr-red-text-emphasis);--tblr-list-group-bg: var(--tblr-red-bg-subtle);--tblr-list-group-border-color: var(--tblr-red-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-red-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-red-border-subtle);--tblr-list-group-active-color: var(--tblr-red-bg-subtle);--tblr-list-group-active-bg: var(--tblr-red-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-red-text-emphasis)}.list-group-item-orange{--tblr-list-group-color: var(--tblr-orange-text-emphasis);--tblr-list-group-bg: var(--tblr-orange-bg-subtle);--tblr-list-group-border-color: var(--tblr-orange-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-orange-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-orange-border-subtle);--tblr-list-group-active-color: var(--tblr-orange-bg-subtle);--tblr-list-group-active-bg: var(--tblr-orange-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-orange-text-emphasis)}.list-group-item-yellow{--tblr-list-group-color: var(--tblr-yellow-text-emphasis);--tblr-list-group-bg: var(--tblr-yellow-bg-subtle);--tblr-list-group-border-color: var(--tblr-yellow-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-yellow-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-yellow-border-subtle);--tblr-list-group-active-color: var(--tblr-yellow-bg-subtle);--tblr-list-group-active-bg: var(--tblr-yellow-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-yellow-text-emphasis)}.list-group-item-lime{--tblr-list-group-color: var(--tblr-lime-text-emphasis);--tblr-list-group-bg: var(--tblr-lime-bg-subtle);--tblr-list-group-border-color: var(--tblr-lime-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-lime-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-lime-border-subtle);--tblr-list-group-active-color: var(--tblr-lime-bg-subtle);--tblr-list-group-active-bg: var(--tblr-lime-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-lime-text-emphasis)}.list-group-item-green{--tblr-list-group-color: var(--tblr-green-text-emphasis);--tblr-list-group-bg: var(--tblr-green-bg-subtle);--tblr-list-group-border-color: var(--tblr-green-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-green-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-green-border-subtle);--tblr-list-group-active-color: var(--tblr-green-bg-subtle);--tblr-list-group-active-bg: var(--tblr-green-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-green-text-emphasis)}.list-group-item-teal{--tblr-list-group-color: var(--tblr-teal-text-emphasis);--tblr-list-group-bg: var(--tblr-teal-bg-subtle);--tblr-list-group-border-color: var(--tblr-teal-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-teal-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-teal-border-subtle);--tblr-list-group-active-color: var(--tblr-teal-bg-subtle);--tblr-list-group-active-bg: var(--tblr-teal-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-teal-text-emphasis)}.list-group-item-cyan{--tblr-list-group-color: var(--tblr-cyan-text-emphasis);--tblr-list-group-bg: var(--tblr-cyan-bg-subtle);--tblr-list-group-border-color: var(--tblr-cyan-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-cyan-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-cyan-border-subtle);--tblr-list-group-active-color: var(--tblr-cyan-bg-subtle);--tblr-list-group-active-bg: var(--tblr-cyan-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-cyan-text-emphasis)}.list-group-item-x{--tblr-list-group-color: var(--tblr-x-text-emphasis);--tblr-list-group-bg: var(--tblr-x-bg-subtle);--tblr-list-group-border-color: var(--tblr-x-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-x-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-x-border-subtle);--tblr-list-group-active-color: var(--tblr-x-bg-subtle);--tblr-list-group-active-bg: var(--tblr-x-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-x-text-emphasis)}.list-group-item-facebook{--tblr-list-group-color: var(--tblr-facebook-text-emphasis);--tblr-list-group-bg: var(--tblr-facebook-bg-subtle);--tblr-list-group-border-color: var(--tblr-facebook-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-facebook-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-facebook-border-subtle);--tblr-list-group-active-color: var(--tblr-facebook-bg-subtle);--tblr-list-group-active-bg: var(--tblr-facebook-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-facebook-text-emphasis)}.list-group-item-twitter{--tblr-list-group-color: var(--tblr-twitter-text-emphasis);--tblr-list-group-bg: var(--tblr-twitter-bg-subtle);--tblr-list-group-border-color: var(--tblr-twitter-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-twitter-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-twitter-border-subtle);--tblr-list-group-active-color: var(--tblr-twitter-bg-subtle);--tblr-list-group-active-bg: var(--tblr-twitter-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-twitter-text-emphasis)}.list-group-item-linkedin{--tblr-list-group-color: var(--tblr-linkedin-text-emphasis);--tblr-list-group-bg: var(--tblr-linkedin-bg-subtle);--tblr-list-group-border-color: var(--tblr-linkedin-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-linkedin-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-linkedin-border-subtle);--tblr-list-group-active-color: var(--tblr-linkedin-bg-subtle);--tblr-list-group-active-bg: var(--tblr-linkedin-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-linkedin-text-emphasis)}.list-group-item-google{--tblr-list-group-color: var(--tblr-google-text-emphasis);--tblr-list-group-bg: var(--tblr-google-bg-subtle);--tblr-list-group-border-color: var(--tblr-google-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-google-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-google-border-subtle);--tblr-list-group-active-color: var(--tblr-google-bg-subtle);--tblr-list-group-active-bg: var(--tblr-google-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-google-text-emphasis)}.list-group-item-youtube{--tblr-list-group-color: var(--tblr-youtube-text-emphasis);--tblr-list-group-bg: var(--tblr-youtube-bg-subtle);--tblr-list-group-border-color: var(--tblr-youtube-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-youtube-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-youtube-border-subtle);--tblr-list-group-active-color: var(--tblr-youtube-bg-subtle);--tblr-list-group-active-bg: var(--tblr-youtube-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-youtube-text-emphasis)}.list-group-item-vimeo{--tblr-list-group-color: var(--tblr-vimeo-text-emphasis);--tblr-list-group-bg: var(--tblr-vimeo-bg-subtle);--tblr-list-group-border-color: var(--tblr-vimeo-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-vimeo-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-vimeo-border-subtle);--tblr-list-group-active-color: var(--tblr-vimeo-bg-subtle);--tblr-list-group-active-bg: var(--tblr-vimeo-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-vimeo-text-emphasis)}.list-group-item-dribbble{--tblr-list-group-color: var(--tblr-dribbble-text-emphasis);--tblr-list-group-bg: var(--tblr-dribbble-bg-subtle);--tblr-list-group-border-color: var(--tblr-dribbble-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-dribbble-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-dribbble-border-subtle);--tblr-list-group-active-color: var(--tblr-dribbble-bg-subtle);--tblr-list-group-active-bg: var(--tblr-dribbble-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-dribbble-text-emphasis)}.list-group-item-github{--tblr-list-group-color: var(--tblr-github-text-emphasis);--tblr-list-group-bg: var(--tblr-github-bg-subtle);--tblr-list-group-border-color: var(--tblr-github-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-github-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-github-border-subtle);--tblr-list-group-active-color: var(--tblr-github-bg-subtle);--tblr-list-group-active-bg: var(--tblr-github-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-github-text-emphasis)}.list-group-item-instagram{--tblr-list-group-color: var(--tblr-instagram-text-emphasis);--tblr-list-group-bg: var(--tblr-instagram-bg-subtle);--tblr-list-group-border-color: var(--tblr-instagram-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-instagram-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-instagram-border-subtle);--tblr-list-group-active-color: var(--tblr-instagram-bg-subtle);--tblr-list-group-active-bg: var(--tblr-instagram-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-instagram-text-emphasis)}.list-group-item-pinterest{--tblr-list-group-color: var(--tblr-pinterest-text-emphasis);--tblr-list-group-bg: var(--tblr-pinterest-bg-subtle);--tblr-list-group-border-color: var(--tblr-pinterest-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-pinterest-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-pinterest-border-subtle);--tblr-list-group-active-color: var(--tblr-pinterest-bg-subtle);--tblr-list-group-active-bg: var(--tblr-pinterest-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-pinterest-text-emphasis)}.list-group-item-vk{--tblr-list-group-color: var(--tblr-vk-text-emphasis);--tblr-list-group-bg: var(--tblr-vk-bg-subtle);--tblr-list-group-border-color: var(--tblr-vk-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-vk-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-vk-border-subtle);--tblr-list-group-active-color: var(--tblr-vk-bg-subtle);--tblr-list-group-active-bg: var(--tblr-vk-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-vk-text-emphasis)}.list-group-item-rss{--tblr-list-group-color: var(--tblr-rss-text-emphasis);--tblr-list-group-bg: var(--tblr-rss-bg-subtle);--tblr-list-group-border-color: var(--tblr-rss-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-rss-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-rss-border-subtle);--tblr-list-group-active-color: var(--tblr-rss-bg-subtle);--tblr-list-group-active-bg: var(--tblr-rss-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-rss-text-emphasis)}.list-group-item-flickr{--tblr-list-group-color: var(--tblr-flickr-text-emphasis);--tblr-list-group-bg: var(--tblr-flickr-bg-subtle);--tblr-list-group-border-color: var(--tblr-flickr-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-flickr-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-flickr-border-subtle);--tblr-list-group-active-color: var(--tblr-flickr-bg-subtle);--tblr-list-group-active-bg: var(--tblr-flickr-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-flickr-text-emphasis)}.list-group-item-bitbucket{--tblr-list-group-color: var(--tblr-bitbucket-text-emphasis);--tblr-list-group-bg: var(--tblr-bitbucket-bg-subtle);--tblr-list-group-border-color: var(--tblr-bitbucket-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-bitbucket-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-bitbucket-border-subtle);--tblr-list-group-active-color: var(--tblr-bitbucket-bg-subtle);--tblr-list-group-active-bg: var(--tblr-bitbucket-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-bitbucket-text-emphasis)}.list-group-item-tabler{--tblr-list-group-color: var(--tblr-tabler-text-emphasis);--tblr-list-group-bg: var(--tblr-tabler-bg-subtle);--tblr-list-group-border-color: var(--tblr-tabler-border-subtle);--tblr-list-group-action-hover-color: var(--tblr-emphasis-color);--tblr-list-group-action-hover-bg: var(--tblr-tabler-border-subtle);--tblr-list-group-action-active-color: var(--tblr-emphasis-color);--tblr-list-group-action-active-bg: var(--tblr-tabler-border-subtle);--tblr-list-group-active-color: var(--tblr-tabler-bg-subtle);--tblr-list-group-active-bg: var(--tblr-tabler-text-emphasis);--tblr-list-group-active-border-color: var(--tblr-tabler-text-emphasis)}.btn-close{--tblr-btn-close-color: #182433;--tblr-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23182433'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--tblr-btn-close-opacity: .4;--tblr-btn-close-hover-opacity: .75;--tblr-btn-close-focus-shadow: 0 0 0 .25rem rgba(var(--tblr-primary-rgb), .25);--tblr-btn-close-focus-opacity: 1;--tblr-btn-close-disabled-opacity: .25;--tblr-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--tblr-btn-close-color);background:transparent var(--tblr-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:4px;opacity:var(--tblr-btn-close-opacity)}.btn-close:hover{color:var(--tblr-btn-close-color);text-decoration:none;opacity:var(--tblr-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--tblr-btn-close-focus-shadow);opacity:var(--tblr-btn-close-focus-opacity)}.btn-close:disabled,.btn-close.disabled{pointer-events:none;user-select:none;opacity:var(--tblr-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close,body[data-bs-theme=dark] [data-bs-theme=light] .btn-close{filter:var(--tblr-btn-close-white-filter)}.toast{--tblr-toast-zindex: 1090;--tblr-toast-padding-x: .75rem;--tblr-toast-padding-y: .5rem;--tblr-toast-spacing: calc(var(--tblr-page-padding) * 2);--tblr-toast-max-width: 350px;--tblr-toast-font-size: .875rem;--tblr-toast-color: ;--tblr-toast-bg: rgba(var(--tblr-body-bg-rgb), .85);--tblr-toast-border-width: var(--tblr-border-width);--tblr-toast-border-color: var(--tblr-border-color);--tblr-toast-border-radius: var(--tblr-border-radius);--tblr-toast-box-shadow: var(--tblr-box-shadow);--tblr-toast-header-color: var(--tblr-gray-500);--tblr-toast-header-bg: rgba(var(--tblr-body-bg-rgb), .85);--tblr-toast-header-border-color: var(--tblr-border-color);width:var(--tblr-toast-max-width);max-width:100%;font-size:var(--tblr-toast-font-size);color:var(--tblr-toast-color);pointer-events:auto;background-color:var(--tblr-toast-bg);background-clip:padding-box;border:var(--tblr-toast-border-width) solid var(--tblr-toast-border-color);box-shadow:var(--tblr-toast-box-shadow);border-radius:var(--tblr-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--tblr-toast-zindex: 1090;position:absolute;z-index:var(--tblr-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--tblr-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--tblr-toast-padding-y) var(--tblr-toast-padding-x);color:var(--tblr-toast-header-color);background-color:var(--tblr-toast-header-bg);background-clip:padding-box;border-bottom:var(--tblr-toast-border-width) solid var(--tblr-toast-header-border-color);border-top-left-radius:calc(var(--tblr-toast-border-radius) - var(--tblr-toast-border-width));border-top-right-radius:calc(var(--tblr-toast-border-radius) - var(--tblr-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--tblr-toast-padding-x));margin-left:var(--tblr-toast-padding-x)}.toast-body{padding:var(--tblr-toast-padding-x);word-wrap:break-word}.modal{--tblr-modal-zindex: 1055;--tblr-modal-width: 540px;--tblr-modal-padding: 1.5rem;--tblr-modal-margin: .5rem;--tblr-modal-color: ;--tblr-modal-bg: var(--tblr-bg-surface);--tblr-modal-border-color: transparent;--tblr-modal-border-width: var(--tblr-border-width);--tblr-modal-border-radius: var(--tblr-border-radius-lg);--tblr-modal-box-shadow: var(--tblr-box-shadow-sm);--tblr-modal-inner-border-radius: calc(var(--tblr-modal-border-radius) - 1px);--tblr-modal-header-padding-x: 1.5rem;--tblr-modal-header-padding-y: 1.5rem;--tblr-modal-header-padding: 1.5rem;--tblr-modal-header-border-color: var(--tblr-border-color);--tblr-modal-header-border-width: var(--tblr-border-width);--tblr-modal-title-line-height: 1.4285714286;--tblr-modal-footer-gap: .75rem;--tblr-modal-footer-bg: var(--tblr-bg-surface-tertiary);--tblr-modal-footer-border-color: var(--tblr-border-color);--tblr-modal-footer-border-width: var(--tblr-border-width);position:fixed;top:0;left:0;z-index:var(--tblr-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--tblr-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-1rem)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--tblr-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--tblr-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--tblr-modal-color);pointer-events:auto;background-color:var(--tblr-modal-bg);background-clip:padding-box;border:var(--tblr-modal-border-width) solid var(--tblr-modal-border-color);border-radius:var(--tblr-modal-border-radius);box-shadow:var(--tblr-modal-box-shadow);outline:0}.modal-backdrop{--tblr-backdrop-zindex: 1050;--tblr-backdrop-bg: #182433;--tblr-backdrop-opacity: .24;position:fixed;top:0;left:0;z-index:var(--tblr-backdrop-zindex);width:100vw;height:100vh;background-color:var(--tblr-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--tblr-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--tblr-modal-header-padding);border-bottom:var(--tblr-modal-header-border-width) solid var(--tblr-modal-header-border-color);border-top-left-radius:var(--tblr-modal-inner-border-radius);border-top-right-radius:var(--tblr-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--tblr-modal-header-padding-y) * .5) calc(var(--tblr-modal-header-padding-x) * .5);margin:calc(-.5 * var(--tblr-modal-header-padding-y)) calc(-.5 * var(--tblr-modal-header-padding-x)) calc(-.5 * var(--tblr-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--tblr-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--tblr-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--tblr-modal-padding) - var(--tblr-modal-footer-gap) * .5);background-color:var(--tblr-modal-footer-bg);border-top:var(--tblr-modal-footer-border-width) solid var(--tblr-modal-footer-border-color);border-bottom-right-radius:var(--tblr-modal-inner-border-radius);border-bottom-left-radius:var(--tblr-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--tblr-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--tblr-modal-margin: 1.75rem;--tblr-modal-box-shadow: var(--tblr-box-shadow)}.modal-dialog{max-width:var(--tblr-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--tblr-modal-width: 380px}}@media (min-width: 992px){.modal-lg,.modal-xl{--tblr-modal-width: 720px}}@media (min-width: 1200px){.modal-xl{--tblr-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--tblr-tooltip-zindex: 1080;--tblr-tooltip-max-width: 200px;--tblr-tooltip-padding-x: var(--tblr-spacer-2);--tblr-tooltip-padding-y: var(--tblr-spacer-2);--tblr-tooltip-margin: ;--tblr-tooltip-font-size: .765625rem;--tblr-tooltip-color: var(--tblr-light);--tblr-tooltip-bg: var(--tblr-bg-surface-dark);--tblr-tooltip-border-radius: var(--tblr-border-radius);--tblr-tooltip-opacity: .9;--tblr-tooltip-arrow-width: .8rem;--tblr-tooltip-arrow-height: .4rem;z-index:var(--tblr-tooltip-zindex);display:block;margin:var(--tblr-tooltip-margin);font-family:var(--tblr-font-sans-serif);font-style:normal;font-weight:400;line-height:1.4285714286;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--tblr-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--tblr-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--tblr-tooltip-arrow-width);height:var(--tblr-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:calc(-1 * var(--tblr-tooltip-arrow-height))}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--tblr-tooltip-arrow-height) calc(var(--tblr-tooltip-arrow-width) * .5) 0;border-top-color:var(--tblr-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:calc(-1 * var(--tblr-tooltip-arrow-height));width:var(--tblr-tooltip-arrow-height);height:var(--tblr-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--tblr-tooltip-arrow-width) * .5) var(--tblr-tooltip-arrow-height) calc(var(--tblr-tooltip-arrow-width) * .5) 0;border-right-color:var(--tblr-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:calc(-1 * var(--tblr-tooltip-arrow-height))}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--tblr-tooltip-arrow-width) * .5) var(--tblr-tooltip-arrow-height);border-bottom-color:var(--tblr-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:calc(-1 * var(--tblr-tooltip-arrow-height));width:var(--tblr-tooltip-arrow-height);height:var(--tblr-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--tblr-tooltip-arrow-width) * .5) 0 calc(var(--tblr-tooltip-arrow-width) * .5) var(--tblr-tooltip-arrow-height);border-left-color:var(--tblr-tooltip-bg)}.tooltip-inner{max-width:var(--tblr-tooltip-max-width);padding:var(--tblr-tooltip-padding-y) var(--tblr-tooltip-padding-x);color:var(--tblr-tooltip-color);text-align:center;background-color:var(--tblr-tooltip-bg);border-radius:var(--tblr-tooltip-border-radius)}.popover{--tblr-popover-zindex: 1070;--tblr-popover-max-width: 276px;--tblr-popover-font-size: .765625rem;--tblr-popover-bg: var(--tblr-bg-surface);--tblr-popover-border-width: var(--tblr-border-width);--tblr-popover-border-color: var(--tblr-border-color);--tblr-popover-border-radius: var(--tblr-border-radius-lg);--tblr-popover-inner-border-radius: calc(var(--tblr-border-radius-lg) - var(--tblr-border-width));--tblr-popover-box-shadow: var(--tblr-box-shadow);--tblr-popover-header-padding-x: 1rem;--tblr-popover-header-padding-y: .5rem;--tblr-popover-header-font-size: .875rem;--tblr-popover-header-color: inherit;--tblr-popover-header-bg: transparent;--tblr-popover-body-padding-x: 1rem;--tblr-popover-body-padding-y: 1rem;--tblr-popover-body-color: inherit;--tblr-popover-arrow-width: 1rem;--tblr-popover-arrow-height: .5rem;--tblr-popover-arrow-border: var(--tblr-popover-border-color);z-index:var(--tblr-popover-zindex);display:block;max-width:var(--tblr-popover-max-width);font-family:var(--tblr-font-sans-serif);font-style:normal;font-weight:400;line-height:1.4285714286;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--tblr-popover-font-size);word-wrap:break-word;background-color:var(--tblr-popover-bg);background-clip:padding-box;border:var(--tblr-popover-border-width) solid var(--tblr-popover-border-color);border-radius:var(--tblr-popover-border-radius);box-shadow:var(--tblr-popover-box-shadow)}.popover .popover-arrow{display:block;width:var(--tblr-popover-arrow-width);height:var(--tblr-popover-arrow-height)}.popover .popover-arrow:before,.popover .popover-arrow:after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-top>.popover-arrow,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--tblr-popover-arrow-height)) - var(--tblr-popover-border-width))}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--tblr-popover-arrow-height) calc(var(--tblr-popover-arrow-width) * .5) 0}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--tblr-popover-arrow-border)}.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--tblr-popover-border-width);border-top-color:var(--tblr-popover-bg)}.bs-popover-end>.popover-arrow,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--tblr-popover-arrow-height)) - var(--tblr-popover-border-width));width:var(--tblr-popover-arrow-height);height:var(--tblr-popover-arrow-width)}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--tblr-popover-arrow-width) * .5) var(--tblr-popover-arrow-height) calc(var(--tblr-popover-arrow-width) * .5) 0}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--tblr-popover-arrow-border)}.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--tblr-popover-border-width);border-right-color:var(--tblr-popover-bg)}.bs-popover-bottom>.popover-arrow,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--tblr-popover-arrow-height)) - var(--tblr-popover-border-width))}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--tblr-popover-arrow-width) * .5) var(--tblr-popover-arrow-height)}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--tblr-popover-arrow-border)}.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--tblr-popover-border-width);border-bottom-color:var(--tblr-popover-bg)}.bs-popover-bottom .popover-header:before,.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--tblr-popover-arrow-width);margin-left:calc(-.5 * var(--tblr-popover-arrow-width));content:"";border-bottom:var(--tblr-popover-border-width) solid var(--tblr-popover-header-bg)}.bs-popover-start>.popover-arrow,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--tblr-popover-arrow-height)) - var(--tblr-popover-border-width));width:var(--tblr-popover-arrow-height);height:var(--tblr-popover-arrow-width)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--tblr-popover-arrow-width) * .5) 0 calc(var(--tblr-popover-arrow-width) * .5) var(--tblr-popover-arrow-height)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--tblr-popover-arrow-border)}.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--tblr-popover-border-width);border-left-color:var(--tblr-popover-bg)}.popover-header{padding:var(--tblr-popover-header-padding-y) var(--tblr-popover-header-padding-x);margin-bottom:0;font-size:var(--tblr-popover-header-font-size);color:var(--tblr-popover-header-color);background-color:var(--tblr-popover-header-bg);border-bottom:var(--tblr-popover-border-width) solid var(--tblr-popover-border-color);border-top-left-radius:var(--tblr-popover-inner-border-radius);border-top-right-radius:var(--tblr-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--tblr-popover-body-padding-y) var(--tblr-popover-body-padding-x);color:var(--tblr-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-start),.active.carousel-item-end{transform:translate(100%)}.carousel-item-prev:not(.carousel-item-end),.active.carousel-item-start{transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='15 18 9 12 15 6'%3e%3c/polyline%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='9 18 15 12 9 6'%3e%3c/polyline%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-prev-icon,.carousel-dark .carousel-control-next-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-grow,.spinner-border{display:inline-block;width:var(--tblr-spinner-width);height:var(--tblr-spinner-height);vertical-align:var(--tblr-spinner-vertical-align);border-radius:50%;animation:var(--tblr-spinner-animation-speed) linear infinite var(--tblr-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--tblr-spinner-width: 1.5rem;--tblr-spinner-height: 1.5rem;--tblr-spinner-vertical-align: -.125em;--tblr-spinner-border-width: 2px;--tblr-spinner-animation-speed: .75s;--tblr-spinner-animation-name: spinner-border;border:var(--tblr-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--tblr-spinner-width: 1rem;--tblr-spinner-height: 1rem;--tblr-spinner-border-width: 1px}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--tblr-spinner-width: 1.5rem;--tblr-spinner-height: 1.5rem;--tblr-spinner-vertical-align: -.125em;--tblr-spinner-animation-speed: .75s;--tblr-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--tblr-spinner-width: 1rem;--tblr-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--tblr-spinner-animation-speed: 1.5s}}.offcanvas,.offcanvas-xxl,.offcanvas-xl,.offcanvas-lg,.offcanvas-md,.offcanvas-sm{--tblr-offcanvas-zindex: 1045;--tblr-offcanvas-width: 400px;--tblr-offcanvas-height: 30vh;--tblr-offcanvas-padding-x: 1.5rem;--tblr-offcanvas-padding-y: 1.5rem;--tblr-offcanvas-color: var(--tblr-body-color);--tblr-offcanvas-bg: var(--tblr-bg-surface);--tblr-offcanvas-border-width: var(--tblr-border-width);--tblr-offcanvas-border-color: var(--tblr-border-color);--tblr-offcanvas-box-shadow: var(--tblr-box-shadow-sm);--tblr-offcanvas-transition: transform .3s ease-in-out;--tblr-offcanvas-title-line-height: 1.4285714286}@media (max-width: 575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 575.98px) and (prefers-reduced-motion: reduce){.offcanvas-sm{transition:none}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}.offcanvas-sm.showing,.offcanvas-sm.hiding,.offcanvas-sm.show{visibility:visible}}@media (min-width: 576px){.offcanvas-sm{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){.offcanvas-md{transition:none}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}.offcanvas-md.showing,.offcanvas-md.hiding,.offcanvas-md.show{visibility:visible}}@media (min-width: 768px){.offcanvas-md{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){.offcanvas-lg{transition:none}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}.offcanvas-lg.showing,.offcanvas-lg.hiding,.offcanvas-lg.show{visibility:visible}}@media (min-width: 992px){.offcanvas-lg{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce){.offcanvas-xl{transition:none}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}.offcanvas-xl.showing,.offcanvas-xl.hiding,.offcanvas-xl.show{visibility:visible}}@media (min-width: 1200px){.offcanvas-xl{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}}@media (max-width: 1399.98px) and (prefers-reduced-motion: reduce){.offcanvas-xxl{transition:none}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}.offcanvas-xxl.showing,.offcanvas-xxl.hiding,.offcanvas-xxl.show{visibility:visible}}@media (min-width: 1400px){.offcanvas-xxl{--tblr-offcanvas-height: auto;--tblr-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--tblr-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--tblr-offcanvas-color);visibility:hidden;background-color:var(--tblr-offcanvas-bg);background-clip:padding-box;outline:0;box-shadow:var(--tblr-offcanvas-box-shadow);transition:var(--tblr-offcanvas-transition)}@media (prefers-reduced-motion: reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--tblr-offcanvas-width);border-right:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--tblr-offcanvas-width);border-left:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-bottom:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--tblr-offcanvas-height);max-height:100%;border-top:var(--tblr-offcanvas-border-width) solid var(--tblr-offcanvas-border-color);transform:translateY(100%)}.offcanvas.showing,.offcanvas.show:not(.hiding){transform:none}.offcanvas.showing,.offcanvas.hiding,.offcanvas.show{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#182433}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.24}.offcanvas-header{display:flex;align-items:center;padding:var(--tblr-offcanvas-padding-y) var(--tblr-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--tblr-offcanvas-padding-y) * .5) calc(var(--tblr-offcanvas-padding-x) * .5);margin:calc(-.5 * var(--tblr-offcanvas-padding-y)) calc(-.5 * var(--tblr-offcanvas-padding-x)) calc(-.5 * var(--tblr-offcanvas-padding-y)) auto}.offcanvas-title{margin-bottom:0;line-height:var(--tblr-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--tblr-offcanvas-padding-y) var(--tblr-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.2}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.1}}.placeholder-wave{mask-image:linear-gradient(130deg,#000 55%,#000000e6,#000 95%);mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#f6f8fb!important;background-color:RGBA(var(--tblr-primary-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-secondary,.text-bg-gray{color:#f6f8fb!important;background-color:RGBA(var(--tblr-secondary-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-success{color:#f6f8fb!important;background-color:RGBA(var(--tblr-success-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-info{color:#f6f8fb!important;background-color:RGBA(var(--tblr-info-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-warning{color:#f6f8fb!important;background-color:RGBA(var(--tblr-warning-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-danger{color:#f6f8fb!important;background-color:RGBA(var(--tblr-danger-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-light,.text-bg-white{color:#182433!important;background-color:RGBA(var(--tblr-light-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-dark,.text-bg-black{color:#f6f8fb!important;background-color:RGBA(var(--tblr-dark-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-muted{color:#f6f8fb!important;background-color:RGBA(var(--tblr-muted-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-blue{color:#f6f8fb!important;background-color:RGBA(var(--tblr-blue-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-azure{color:#f6f8fb!important;background-color:RGBA(var(--tblr-azure-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-indigo{color:#f6f8fb!important;background-color:RGBA(var(--tblr-indigo-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-purple{color:#f6f8fb!important;background-color:RGBA(var(--tblr-purple-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-pink{color:#f6f8fb!important;background-color:RGBA(var(--tblr-pink-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-red{color:#f6f8fb!important;background-color:RGBA(var(--tblr-red-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-orange{color:#f6f8fb!important;background-color:RGBA(var(--tblr-orange-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-yellow{color:#f6f8fb!important;background-color:RGBA(var(--tblr-yellow-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-lime{color:#f6f8fb!important;background-color:RGBA(var(--tblr-lime-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-green{color:#f6f8fb!important;background-color:RGBA(var(--tblr-green-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-teal{color:#f6f8fb!important;background-color:RGBA(var(--tblr-teal-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-cyan{color:#f6f8fb!important;background-color:RGBA(var(--tblr-cyan-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-x{color:#f6f8fb!important;background-color:RGBA(var(--tblr-x-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-facebook{color:#f6f8fb!important;background-color:RGBA(var(--tblr-facebook-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-twitter{color:#f6f8fb!important;background-color:RGBA(var(--tblr-twitter-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-linkedin{color:#f6f8fb!important;background-color:RGBA(var(--tblr-linkedin-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-google{color:#f6f8fb!important;background-color:RGBA(var(--tblr-google-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-youtube{color:#f6f8fb!important;background-color:RGBA(var(--tblr-youtube-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-vimeo{color:#f6f8fb!important;background-color:RGBA(var(--tblr-vimeo-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-dribbble{color:#f6f8fb!important;background-color:RGBA(var(--tblr-dribbble-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-github{color:#f6f8fb!important;background-color:RGBA(var(--tblr-github-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-instagram{color:#f6f8fb!important;background-color:RGBA(var(--tblr-instagram-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-pinterest{color:#f6f8fb!important;background-color:RGBA(var(--tblr-pinterest-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-vk{color:#f6f8fb!important;background-color:RGBA(var(--tblr-vk-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-rss{color:#f6f8fb!important;background-color:RGBA(var(--tblr-rss-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-flickr{color:#f6f8fb!important;background-color:RGBA(var(--tblr-flickr-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-bitbucket{color:#f6f8fb!important;background-color:RGBA(var(--tblr-bitbucket-rgb),var(--tblr-bg-opacity, 1))!important}.text-bg-tabler{color:#f6f8fb!important;background-color:RGBA(var(--tblr-tabler-rgb),var(--tblr-bg-opacity, 1))!important}.link-primary{color:RGBA(var(--tblr-primary-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-primary-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-primary:hover,.link-primary:focus{color:RGBA(0,106,100,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(0,106,100,var(--tblr-link-underline-opacity, 1))!important}.link-secondary{color:RGBA(var(--tblr-secondary-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-secondary-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-secondary:hover,.link-secondary:focus{color:RGBA(86,98,116,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(86,98,116,var(--tblr-link-underline-opacity, 1))!important}.link-success{color:RGBA(var(--tblr-success-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-success-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-success:hover,.link-success:focus{color:RGBA(38,143,54,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(38,143,54,var(--tblr-link-underline-opacity, 1))!important}.link-info{color:RGBA(var(--tblr-info-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-info-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-info:hover,.link-info:focus{color:RGBA(53,122,180,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(53,122,180,var(--tblr-link-underline-opacity, 1))!important}.link-warning{color:RGBA(var(--tblr-warning-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-warning-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-warning:hover,.link-warning:focus{color:RGBA(198,82,6,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(198,82,6,var(--tblr-link-underline-opacity, 1))!important}.link-danger{color:RGBA(var(--tblr-danger-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-danger-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-danger:hover,.link-danger:focus{color:RGBA(171,46,46,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(171,46,46,var(--tblr-link-underline-opacity, 1))!important}.link-light{color:RGBA(var(--tblr-light-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-light-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-light:hover,.link-light:focus{color:RGBA(248,249,252,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(248,249,252,var(--tblr-link-underline-opacity, 1))!important}.link-dark{color:RGBA(var(--tblr-dark-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-dark-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-dark:hover,.link-dark:focus{color:RGBA(19,29,41,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(19,29,41,var(--tblr-link-underline-opacity, 1))!important}.link-muted{color:RGBA(var(--tblr-muted-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-muted-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-muted:hover,.link-muted:focus{color:RGBA(86,98,116,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(86,98,116,var(--tblr-link-underline-opacity, 1))!important}.link-blue{color:RGBA(var(--tblr-blue-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-blue-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-blue:hover,.link-blue:focus{color:RGBA(5,89,167,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(5,89,167,var(--tblr-link-underline-opacity, 1))!important}.link-azure{color:RGBA(var(--tblr-azure-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-azure-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-azure:hover,.link-azure:focus{color:RGBA(53,122,180,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(53,122,180,var(--tblr-link-underline-opacity, 1))!important}.link-indigo{color:RGBA(var(--tblr-indigo-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-indigo-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-indigo:hover,.link-indigo:focus{color:RGBA(53,79,188,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(53,79,188,var(--tblr-link-underline-opacity, 1))!important}.link-purple{color:RGBA(var(--tblr-purple-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-purple-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-purple:hover,.link-purple:focus{color:RGBA(139,50,161,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(139,50,161,var(--tblr-link-underline-opacity, 1))!important}.link-pink{color:RGBA(var(--tblr-pink-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-pink-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-pink:hover,.link-pink:focus{color:RGBA(171,41,86,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(171,41,86,var(--tblr-link-underline-opacity, 1))!important}.link-red{color:RGBA(var(--tblr-red-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-red-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-red:hover,.link-red:focus{color:RGBA(171,46,46,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(171,46,46,var(--tblr-link-underline-opacity, 1))!important}.link-orange{color:RGBA(var(--tblr-orange-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-orange-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-orange:hover,.link-orange:focus{color:RGBA(198,82,6,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(198,82,6,var(--tblr-link-underline-opacity, 1))!important}.link-yellow{color:RGBA(var(--tblr-yellow-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-yellow-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-yellow:hover,.link-yellow:focus{color:RGBA(196,127,0,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(196,127,0,var(--tblr-link-underline-opacity, 1))!important}.link-lime{color:RGBA(var(--tblr-lime-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-lime-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-lime:hover,.link-lime:focus{color:RGBA(93,147,18,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(93,147,18,var(--tblr-link-underline-opacity, 1))!important}.link-green{color:RGBA(var(--tblr-green-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-green-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-green:hover,.link-green:focus{color:RGBA(38,143,54,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(38,143,54,var(--tblr-link-underline-opacity, 1))!important}.link-teal{color:RGBA(var(--tblr-teal-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-teal-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-teal:hover,.link-teal:focus{color:RGBA(10,133,96,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(10,133,96,var(--tblr-link-underline-opacity, 1))!important}.link-cyan{color:RGBA(var(--tblr-cyan-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-cyan-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-cyan:hover,.link-cyan:focus{color:RGBA(18,130,147,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(18,130,147,var(--tblr-link-underline-opacity, 1))!important}.link-x{color:RGBA(var(--tblr-x-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-x-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-x:hover,.link-x:focus{color:RGBA(0,0,0,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(0,0,0,var(--tblr-link-underline-opacity, 1))!important}.link-facebook{color:RGBA(var(--tblr-facebook-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-facebook-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-facebook:hover,.link-facebook:focus{color:RGBA(19,95,194,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(19,95,194,var(--tblr-link-underline-opacity, 1))!important}.link-twitter{color:RGBA(var(--tblr-twitter-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-twitter-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-twitter:hover,.link-twitter:focus{color:RGBA(23,129,194,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(23,129,194,var(--tblr-link-underline-opacity, 1))!important}.link-linkedin{color:RGBA(var(--tblr-linkedin-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-linkedin-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-linkedin:hover,.link-linkedin:focus{color:RGBA(8,82,155,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(8,82,155,var(--tblr-link-underline-opacity, 1))!important}.link-google{color:RGBA(var(--tblr-google-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-google-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-google:hover,.link-google:focus{color:RGBA(176,62,52,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(176,62,52,var(--tblr-link-underline-opacity, 1))!important}.link-youtube{color:RGBA(var(--tblr-youtube-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-youtube-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-youtube:hover,.link-youtube:focus{color:RGBA(204,0,0,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(204,0,0,var(--tblr-link-underline-opacity, 1))!important}.link-vimeo{color:RGBA(var(--tblr-vimeo-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-vimeo-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-vimeo:hover,.link-vimeo:focus{color:RGBA(21,146,187,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(21,146,187,var(--tblr-link-underline-opacity, 1))!important}.link-dribbble{color:RGBA(var(--tblr-dribbble-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-dribbble-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-dribbble:hover,.link-dribbble:focus{color:RGBA(187,61,110,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(187,61,110,var(--tblr-link-underline-opacity, 1))!important}.link-github{color:RGBA(var(--tblr-github-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-github-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-github:hover,.link-github:focus{color:RGBA(19,18,18,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(19,18,18,var(--tblr-link-underline-opacity, 1))!important}.link-instagram{color:RGBA(var(--tblr-instagram-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-instagram-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-instagram:hover,.link-instagram:focus{color:RGBA(182,51,76,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(182,51,76,var(--tblr-link-underline-opacity, 1))!important}.link-pinterest{color:RGBA(var(--tblr-pinterest-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-pinterest-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-pinterest:hover,.link-pinterest:focus{color:RGBA(151,6,22,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(151,6,22,var(--tblr-link-underline-opacity, 1))!important}.link-vk{color:RGBA(var(--tblr-vk-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-vk-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-vk:hover,.link-vk:focus{color:RGBA(79,105,134,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(79,105,134,var(--tblr-link-underline-opacity, 1))!important}.link-rss{color:RGBA(var(--tblr-rss-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-rss-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-rss:hover,.link-rss:focus{color:RGBA(204,132,0,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(204,132,0,var(--tblr-link-underline-opacity, 1))!important}.link-flickr{color:RGBA(var(--tblr-flickr-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-flickr-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-flickr:hover,.link-flickr:focus{color:RGBA(0,79,176,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(0,79,176,var(--tblr-link-underline-opacity, 1))!important}.link-bitbucket{color:RGBA(var(--tblr-bitbucket-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-bitbucket-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-bitbucket:hover,.link-bitbucket:focus{color:RGBA(0,66,163,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(0,66,163,var(--tblr-link-underline-opacity, 1))!important}.link-tabler{color:RGBA(var(--tblr-tabler-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-tabler-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-tabler:hover,.link-tabler:focus{color:RGBA(5,89,167,var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(5,89,167,var(--tblr-link-underline-opacity, 1))!important}.link-body-emphasis{color:RGBA(var(--tblr-emphasis-color-rgb),var(--tblr-link-opacity, 1))!important;text-decoration-color:RGBA(var(--tblr-emphasis-color-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--tblr-emphasis-color-rgb),var(--tblr-link-opacity, .75))!important;text-decoration-color:RGBA(var(--tblr-emphasis-color-rgb),var(--tblr-link-underline-opacity, .75))!important}.focus-ring:focus{outline:0;box-shadow:var(--tblr-focus-ring-x, 0) var(--tblr-focus-ring-y, 0) var(--tblr-focus-ring-blur, 0) var(--tblr-focus-ring-width) var(--tblr-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;text-decoration-color:rgba(var(--tblr-link-color-rgb),var(--tblr-link-opacity, .5));text-underline-offset:.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--tblr-icon-link-transform, translate3d(.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--tblr-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--tblr-aspect-ratio: 100%}.ratio-2x1{--tblr-aspect-ratio: 50%}.ratio-1x2{--tblr-aspect-ratio: 200%}.ratio-3x1{--tblr-aspect-ratio: 33.3333333333%}.ratio-1x3{--tblr-aspect-ratio: 300%}.ratio-4x3{--tblr-aspect-ratio: 75%}.ratio-3x4{--tblr-aspect-ratio: 133.3333333333%}.ratio-16x9{--tblr-aspect-ratio: 56.25%}.ratio-9x16{--tblr-aspect-ratio: 177.7777777778%}.ratio-21x9{--tblr-aspect-ratio: 42.8571428571%}.ratio-9x21{--tblr-aspect-ratio: 233.3333333333%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute!important}.stretched-link:after{position:absolute;inset:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--tblr-border-width);min-height:1em;background-color:currentcolor;opacity:.16}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{object-fit:contain!important}.object-fit-cover{object-fit:cover!important}.object-fit-fill{object-fit:fill!important}.object-fit-scale{object-fit:scale-down!important}.object-fit-none{object-fit:none!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--tblr-box-shadow)!important}.shadow-sm{box-shadow:var(--tblr-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--tblr-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--tblr-focus-ring-color: rgba(var(--tblr-primary-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-secondary{--tblr-focus-ring-color: rgba(var(--tblr-secondary-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-success{--tblr-focus-ring-color: rgba(var(--tblr-success-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-info{--tblr-focus-ring-color: rgba(var(--tblr-info-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-warning{--tblr-focus-ring-color: rgba(var(--tblr-warning-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-danger{--tblr-focus-ring-color: rgba(var(--tblr-danger-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-light{--tblr-focus-ring-color: rgba(var(--tblr-light-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-dark{--tblr-focus-ring-color: rgba(var(--tblr-dark-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-muted{--tblr-focus-ring-color: rgba(var(--tblr-muted-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-blue{--tblr-focus-ring-color: rgba(var(--tblr-blue-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-azure{--tblr-focus-ring-color: rgba(var(--tblr-azure-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-indigo{--tblr-focus-ring-color: rgba(var(--tblr-indigo-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-purple{--tblr-focus-ring-color: rgba(var(--tblr-purple-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-pink{--tblr-focus-ring-color: rgba(var(--tblr-pink-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-red{--tblr-focus-ring-color: rgba(var(--tblr-red-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-orange{--tblr-focus-ring-color: rgba(var(--tblr-orange-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-yellow{--tblr-focus-ring-color: rgba(var(--tblr-yellow-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-lime{--tblr-focus-ring-color: rgba(var(--tblr-lime-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-green{--tblr-focus-ring-color: rgba(var(--tblr-green-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-teal{--tblr-focus-ring-color: rgba(var(--tblr-teal-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-cyan{--tblr-focus-ring-color: rgba(var(--tblr-cyan-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-x{--tblr-focus-ring-color: rgba(var(--tblr-x-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-facebook{--tblr-focus-ring-color: rgba(var(--tblr-facebook-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-twitter{--tblr-focus-ring-color: rgba(var(--tblr-twitter-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-linkedin{--tblr-focus-ring-color: rgba(var(--tblr-linkedin-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-google{--tblr-focus-ring-color: rgba(var(--tblr-google-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-youtube{--tblr-focus-ring-color: rgba(var(--tblr-youtube-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-vimeo{--tblr-focus-ring-color: rgba(var(--tblr-vimeo-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-dribbble{--tblr-focus-ring-color: rgba(var(--tblr-dribbble-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-github{--tblr-focus-ring-color: rgba(var(--tblr-github-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-instagram{--tblr-focus-ring-color: rgba(var(--tblr-instagram-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-pinterest{--tblr-focus-ring-color: rgba(var(--tblr-pinterest-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-vk{--tblr-focus-ring-color: rgba(var(--tblr-vk-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-rss{--tblr-focus-ring-color: rgba(var(--tblr-rss-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-flickr{--tblr-focus-ring-color: rgba(var(--tblr-flickr-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-bitbucket{--tblr-focus-ring-color: rgba(var(--tblr-bitbucket-rgb), var(--tblr-focus-ring-opacity))}.focus-ring-tabler{--tblr-focus-ring-color: rgba(var(--tblr-tabler-rgb), var(--tblr-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-wide{border:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-0{border:0!important}.border-top{border-top:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-top-wide{border-top:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-end-wide{border-right:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-bottom-wide{border-bottom:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-start-wide{border-left:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-start-0{border-left:0!important}.border-primary{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-primary-rgb),var(--tblr-border-opacity))!important}.border-secondary{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-secondary-rgb),var(--tblr-border-opacity))!important}.border-success{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-success-rgb),var(--tblr-border-opacity))!important}.border-info{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-info-rgb),var(--tblr-border-opacity))!important}.border-warning{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-warning-rgb),var(--tblr-border-opacity))!important}.border-danger{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-danger-rgb),var(--tblr-border-opacity))!important}.border-light{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-light-rgb),var(--tblr-border-opacity))!important}.border-dark{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-dark-rgb),var(--tblr-border-opacity))!important}.border-muted{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-muted-rgb),var(--tblr-border-opacity))!important}.border-blue{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-blue-rgb),var(--tblr-border-opacity))!important}.border-azure{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-azure-rgb),var(--tblr-border-opacity))!important}.border-indigo{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-indigo-rgb),var(--tblr-border-opacity))!important}.border-purple{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-purple-rgb),var(--tblr-border-opacity))!important}.border-pink{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-pink-rgb),var(--tblr-border-opacity))!important}.border-red{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-red-rgb),var(--tblr-border-opacity))!important}.border-orange{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-orange-rgb),var(--tblr-border-opacity))!important}.border-yellow{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-yellow-rgb),var(--tblr-border-opacity))!important}.border-lime{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-lime-rgb),var(--tblr-border-opacity))!important}.border-green{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-green-rgb),var(--tblr-border-opacity))!important}.border-teal{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-teal-rgb),var(--tblr-border-opacity))!important}.border-cyan{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-cyan-rgb),var(--tblr-border-opacity))!important}.border-x{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-x-rgb),var(--tblr-border-opacity))!important}.border-facebook{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-facebook-rgb),var(--tblr-border-opacity))!important}.border-twitter{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-twitter-rgb),var(--tblr-border-opacity))!important}.border-linkedin{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-linkedin-rgb),var(--tblr-border-opacity))!important}.border-google{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-google-rgb),var(--tblr-border-opacity))!important}.border-youtube{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-youtube-rgb),var(--tblr-border-opacity))!important}.border-vimeo{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-vimeo-rgb),var(--tblr-border-opacity))!important}.border-dribbble{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-dribbble-rgb),var(--tblr-border-opacity))!important}.border-github{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-github-rgb),var(--tblr-border-opacity))!important}.border-instagram{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-instagram-rgb),var(--tblr-border-opacity))!important}.border-pinterest{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-pinterest-rgb),var(--tblr-border-opacity))!important}.border-vk{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-vk-rgb),var(--tblr-border-opacity))!important}.border-rss{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-rss-rgb),var(--tblr-border-opacity))!important}.border-flickr{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-flickr-rgb),var(--tblr-border-opacity))!important}.border-bitbucket{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-border-opacity))!important}.border-tabler{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-tabler-rgb),var(--tblr-border-opacity))!important}.border-black{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-black-rgb),var(--tblr-border-opacity))!important}.border-white{--tblr-border-opacity: 1;border-color:rgba(var(--tblr-white-rgb),var(--tblr-border-opacity))!important}.border-primary-subtle{border-color:var(--tblr-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--tblr-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--tblr-success-border-subtle)!important}.border-info-subtle{border-color:var(--tblr-info-border-subtle)!important}.border-warning-subtle{border-color:var(--tblr-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--tblr-danger-border-subtle)!important}.border-light-subtle{border-color:var(--tblr-light-border-subtle)!important}.border-dark-subtle{border-color:var(--tblr-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--tblr-border-opacity: .1}.border-opacity-25{--tblr-border-opacity: .25}.border-opacity-50{--tblr-border-opacity: .5}.border-opacity-75{--tblr-border-opacity: .75}.border-opacity-100{--tblr-border-opacity: 1}.w-25{width:25%!important}.w-33{width:33.33333%!important}.w-50{width:50%!important}.w-66{width:66.66666%!important}.w-75{width:75%!important}.w-100{width:100%!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-33{height:33.33333%!important}.h-50{height:50%!important}.h-66{height:66.66666%!important}.h-75{height:75%!important}.h-100{height:100%!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:2rem!important}.m-6{margin:3rem!important}.m-7{margin:5rem!important}.m-8{margin:8rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:2rem!important;margin-left:2rem!important}.mx-6{margin-right:3rem!important;margin-left:3rem!important}.mx-7{margin-right:5rem!important;margin-left:5rem!important}.mx-8{margin-right:8rem!important;margin-left:8rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:2rem!important}.mt-6{margin-top:3rem!important}.mt-7{margin-top:5rem!important}.mt-8{margin-top:8rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:2rem!important}.me-6{margin-right:3rem!important}.me-7{margin-right:5rem!important}.me-8{margin-right:8rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:2rem!important}.mb-6{margin-bottom:3rem!important}.mb-7{margin-bottom:5rem!important}.mb-8{margin-bottom:8rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:2rem!important}.ms-6{margin-left:3rem!important}.ms-7{margin-left:5rem!important}.ms-8{margin-left:8rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:2rem!important}.p-6{padding:3rem!important}.p-7{padding:5rem!important}.p-8{padding:8rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:2rem!important;padding-left:2rem!important}.px-6{padding-right:3rem!important;padding-left:3rem!important}.px-7{padding-right:5rem!important;padding-left:5rem!important}.px-8{padding-right:8rem!important;padding-left:8rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:2rem!important}.pt-6{padding-top:3rem!important}.pt-7{padding-top:5rem!important}.pt-8{padding-top:8rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:2rem!important}.pe-6{padding-right:3rem!important}.pe-7{padding-right:5rem!important}.pe-8{padding-right:8rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:2rem!important}.pb-6{padding-bottom:3rem!important}.pb-7{padding-bottom:5rem!important}.pb-8{padding-bottom:8rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:2rem!important}.ps-6{padding-left:3rem!important}.ps-7{padding-left:5rem!important}.ps-8{padding-left:8rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:2rem!important}.gap-6{gap:3rem!important}.gap-7{gap:5rem!important}.gap-8{gap:8rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:2rem!important}.row-gap-6{row-gap:3rem!important}.row-gap-7{row-gap:5rem!important}.row-gap-8{row-gap:8rem!important}.column-gap-0{column-gap:0!important}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:2rem!important}.column-gap-6{column-gap:3rem!important}.column-gap-7{column-gap:5rem!important}.column-gap-8{column-gap:8rem!important}.font-monospace{font-family:var(--tblr-font-monospace)!important}.fs-1{font-size:1.5rem!important}.fs-2{font-size:1.25rem!important}.fs-3{font-size:1rem!important}.fs-4{font-size:.875rem!important}.fs-5{font-size:.75rem!important}.fs-6{font-size:.625rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold,.fw-bold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.1428571429!important}.lh-base{line-height:1.4285714286!important}.lh-lg{line-height:1.7142857143!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-muted{--tblr-text-opacity: 1;color:var(--tblr-secondary-color)!important}.text-black{--tblr-text-opacity: 1;color:rgba(var(--tblr-black-rgb),var(--tblr-text-opacity))!important}.text-white{--tblr-text-opacity: 1;color:rgba(var(--tblr-white-rgb),var(--tblr-text-opacity))!important}.text-body{--tblr-text-opacity: 1;color:rgba(var(--tblr-body-color-rgb),var(--tblr-text-opacity))!important}.text-black-50{--tblr-text-opacity: 1;color:#00000080!important}.text-white-50{--tblr-text-opacity: 1;color:#ffffff80!important}.text-body-secondary{--tblr-text-opacity: 1;color:var(--tblr-secondary-color)!important}.text-body-tertiary{--tblr-text-opacity: 1;color:var(--tblr-tertiary-color)!important}.text-body-emphasis{--tblr-text-opacity: 1;color:var(--tblr-emphasis-color)!important}.text-reset{--tblr-text-opacity: 1;color:inherit!important}.text-opacity-25{--tblr-text-opacity: .25}.text-opacity-50{--tblr-text-opacity: .5}.text-opacity-75{--tblr-text-opacity: .75}.text-opacity-100{--tblr-text-opacity: 1}.text-primary-emphasis{color:var(--tblr-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--tblr-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--tblr-success-text-emphasis)!important}.text-info-emphasis{color:var(--tblr-info-text-emphasis)!important}.text-warning-emphasis{color:var(--tblr-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--tblr-danger-text-emphasis)!important}.text-light-emphasis{color:var(--tblr-light-text-emphasis)!important}.text-dark-emphasis{color:var(--tblr-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--tblr-link-opacity: .1}.link-opacity-25,.link-opacity-25-hover:hover{--tblr-link-opacity: .25}.link-opacity-50,.link-opacity-50-hover:hover{--tblr-link-opacity: .5}.link-opacity-75,.link-opacity-75-hover:hover{--tblr-link-opacity: .75}.link-opacity-100,.link-opacity-100-hover:hover{--tblr-link-opacity: 1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-primary-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-secondary{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-secondary-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-success{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-success-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-info{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-info-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-warning{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-warning-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-danger{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-danger-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-light{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-light-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-dark{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-dark-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-muted{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-muted-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-blue{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-blue-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-azure{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-azure-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-indigo{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-indigo-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-purple{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-purple-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-pink{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-pink-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-red{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-red-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-orange{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-orange-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-yellow{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-yellow-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-lime{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-lime-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-green{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-green-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-teal{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-teal-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-cyan{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-cyan-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-x{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-x-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-facebook{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-facebook-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-twitter{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-twitter-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-linkedin{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-linkedin-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-google{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-google-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-youtube{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-youtube-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-vimeo{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-vimeo-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-dribbble{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-dribbble-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-github{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-github-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-instagram{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-instagram-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-pinterest{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-pinterest-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-vk{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-vk-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-rss{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-rss-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-flickr{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-flickr-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-bitbucket{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-link-underline-opacity))!important}.link-underline-tabler{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-tabler-rgb),var(--tblr-link-underline-opacity))!important}.link-underline{--tblr-link-underline-opacity: 1;text-decoration-color:rgba(var(--tblr-link-color-rgb),var(--tblr-link-underline-opacity, 1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--tblr-link-underline-opacity: 0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--tblr-link-underline-opacity: .1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--tblr-link-underline-opacity: .25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--tblr-link-underline-opacity: .5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--tblr-link-underline-opacity: .75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--tblr-link-underline-opacity: 1}.bg-black{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-black-rgb),var(--tblr-bg-opacity))!important}.bg-body{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-body-bg-rgb),var(--tblr-bg-opacity))!important}.bg-transparent{--tblr-bg-opacity: 1;background-color:transparent!important}.bg-body-secondary{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-secondary-bg-rgb),var(--tblr-bg-opacity))!important}.bg-body-tertiary{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-tertiary-bg-rgb),var(--tblr-bg-opacity))!important}.bg-opacity-10{--tblr-bg-opacity: .1}.bg-opacity-25{--tblr-bg-opacity: .25}.bg-opacity-50{--tblr-bg-opacity: .5}.bg-opacity-75{--tblr-bg-opacity: .75}.bg-opacity-100{--tblr-bg-opacity: 1}.bg-primary-subtle{background-color:var(--tblr-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--tblr-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--tblr-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--tblr-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--tblr-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--tblr-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--tblr-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--tblr-dark-bg-subtle)!important}.bg-gradient{background-image:var(--tblr-gradient)!important}.user-select-all{user-select:all!important}.user-select-auto{user-select:auto!important}.user-select-none{user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--tblr-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--tblr-border-radius-sm)!important}.rounded-2{border-radius:var(--tblr-border-radius)!important}.rounded-3{border-radius:var(--tblr-border-radius-lg)!important}.rounded-4{border-radius:var(--tblr-border-radius-xl)!important}.rounded-5{border-radius:var(--tblr-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--tblr-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--tblr-border-radius)!important;border-top-right-radius:var(--tblr-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--tblr-border-radius-sm)!important;border-top-right-radius:var(--tblr-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--tblr-border-radius)!important;border-top-right-radius:var(--tblr-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--tblr-border-radius-lg)!important;border-top-right-radius:var(--tblr-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--tblr-border-radius-xl)!important;border-top-right-radius:var(--tblr-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--tblr-border-radius-xxl)!important;border-top-right-radius:var(--tblr-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--tblr-border-radius-pill)!important;border-top-right-radius:var(--tblr-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--tblr-border-radius)!important;border-bottom-right-radius:var(--tblr-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--tblr-border-radius-sm)!important;border-bottom-right-radius:var(--tblr-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--tblr-border-radius)!important;border-bottom-right-radius:var(--tblr-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--tblr-border-radius-lg)!important;border-bottom-right-radius:var(--tblr-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--tblr-border-radius-xl)!important;border-bottom-right-radius:var(--tblr-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--tblr-border-radius-xxl)!important;border-bottom-right-radius:var(--tblr-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--tblr-border-radius-pill)!important;border-bottom-right-radius:var(--tblr-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--tblr-border-radius)!important;border-bottom-left-radius:var(--tblr-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--tblr-border-radius-sm)!important;border-bottom-left-radius:var(--tblr-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--tblr-border-radius)!important;border-bottom-left-radius:var(--tblr-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--tblr-border-radius-lg)!important;border-bottom-left-radius:var(--tblr-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--tblr-border-radius-xl)!important;border-bottom-left-radius:var(--tblr-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--tblr-border-radius-xxl)!important;border-bottom-left-radius:var(--tblr-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--tblr-border-radius-pill)!important;border-bottom-left-radius:var(--tblr-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--tblr-border-radius)!important;border-top-left-radius:var(--tblr-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--tblr-border-radius-sm)!important;border-top-left-radius:var(--tblr-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--tblr-border-radius)!important;border-top-left-radius:var(--tblr-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--tblr-border-radius-lg)!important;border-top-left-radius:var(--tblr-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--tblr-border-radius-xl)!important;border-top-left-radius:var(--tblr-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--tblr-border-radius-xxl)!important;border-top-left-radius:var(--tblr-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--tblr-border-radius-pill)!important;border-top-left-radius:var(--tblr-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}.object-contain{object-fit:contain!important}.object-cover{object-fit:cover!important}.object-fill{object-fit:fill!important}.object-scale-down{object-fit:scale-down!important}.object-none{object-fit:none!important}.tracking-tight{letter-spacing:-.05em!important}.tracking-normal{letter-spacing:0!important}.tracking-wide{letter-spacing:.05em!important}.cursor-auto{cursor:auto!important}.cursor-pointer{cursor:pointer!important}.cursor-move{cursor:move!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-zoom-in{cursor:zoom-in!important}.cursor-zoom-out{cursor:zoom-out!important}.cursor-default{cursor:default!important}.cursor-none{cursor:none!important}.cursor-help{cursor:help!important}.cursor-progress{cursor:progress!important}.cursor-wait{cursor:wait!important}.cursor-text{cursor:text!important}.cursor-v-text{cursor:vertical-text!important}.cursor-grab{cursor:grab!important}.cursor-grabbing{cursor:grabbing!important}.border-x{border-left:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important;border-right:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-x-wide{border-left:2px var(--tblr-border-style) rgba(4,32,69,.1)!important;border-right:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-x-0{border-left:0!important;border-right:0!important}.border-y{border-top:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important;border-bottom:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-y-wide{border-top:2px var(--tblr-border-style) rgba(4,32,69,.1)!important;border-bottom:2px var(--tblr-border-style) rgba(4,32,69,.1)!important}.border-y-0{border-top:0!important;border-bottom:0!important}.columns-2{columns:2!important}.columns-3{columns:3!important}.columns-4{columns:4!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{object-fit:contain!important}.object-fit-sm-cover{object-fit:cover!important}.object-fit-sm-fill{object-fit:fill!important}.object-fit-sm-scale{object-fit:scale-down!important}.object-fit-sm-none{object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:2rem!important}.m-sm-6{margin:3rem!important}.m-sm-7{margin:5rem!important}.m-sm-8{margin:8rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:2rem!important;margin-left:2rem!important}.mx-sm-6{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-7{margin-right:5rem!important;margin-left:5rem!important}.mx-sm-8{margin-right:8rem!important;margin-left:8rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-sm-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-sm-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:2rem!important}.mt-sm-6{margin-top:3rem!important}.mt-sm-7{margin-top:5rem!important}.mt-sm-8{margin-top:8rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:2rem!important}.me-sm-6{margin-right:3rem!important}.me-sm-7{margin-right:5rem!important}.me-sm-8{margin-right:8rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:2rem!important}.mb-sm-6{margin-bottom:3rem!important}.mb-sm-7{margin-bottom:5rem!important}.mb-sm-8{margin-bottom:8rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:2rem!important}.ms-sm-6{margin-left:3rem!important}.ms-sm-7{margin-left:5rem!important}.ms-sm-8{margin-left:8rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:2rem!important}.p-sm-6{padding:3rem!important}.p-sm-7{padding:5rem!important}.p-sm-8{padding:8rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:2rem!important;padding-left:2rem!important}.px-sm-6{padding-right:3rem!important;padding-left:3rem!important}.px-sm-7{padding-right:5rem!important;padding-left:5rem!important}.px-sm-8{padding-right:8rem!important;padding-left:8rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-sm-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-sm-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-sm-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:2rem!important}.pt-sm-6{padding-top:3rem!important}.pt-sm-7{padding-top:5rem!important}.pt-sm-8{padding-top:8rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:2rem!important}.pe-sm-6{padding-right:3rem!important}.pe-sm-7{padding-right:5rem!important}.pe-sm-8{padding-right:8rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:2rem!important}.pb-sm-6{padding-bottom:3rem!important}.pb-sm-7{padding-bottom:5rem!important}.pb-sm-8{padding-bottom:8rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:2rem!important}.ps-sm-6{padding-left:3rem!important}.ps-sm-7{padding-left:5rem!important}.ps-sm-8{padding-left:8rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:2rem!important}.gap-sm-6{gap:3rem!important}.gap-sm-7{gap:5rem!important}.gap-sm-8{gap:8rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:2rem!important}.row-gap-sm-6{row-gap:3rem!important}.row-gap-sm-7{row-gap:5rem!important}.row-gap-sm-8{row-gap:8rem!important}.column-gap-sm-0{column-gap:0!important}.column-gap-sm-1{column-gap:.25rem!important}.column-gap-sm-2{column-gap:.5rem!important}.column-gap-sm-3{column-gap:1rem!important}.column-gap-sm-4{column-gap:1.5rem!important}.column-gap-sm-5{column-gap:2rem!important}.column-gap-sm-6{column-gap:3rem!important}.column-gap-sm-7{column-gap:5rem!important}.column-gap-sm-8{column-gap:8rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}.columns-sm-2{columns:2!important}.columns-sm-3{columns:3!important}.columns-sm-4{columns:4!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{object-fit:contain!important}.object-fit-md-cover{object-fit:cover!important}.object-fit-md-fill{object-fit:fill!important}.object-fit-md-scale{object-fit:scale-down!important}.object-fit-md-none{object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:2rem!important}.m-md-6{margin:3rem!important}.m-md-7{margin:5rem!important}.m-md-8{margin:8rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:2rem!important;margin-left:2rem!important}.mx-md-6{margin-right:3rem!important;margin-left:3rem!important}.mx-md-7{margin-right:5rem!important;margin-left:5rem!important}.mx-md-8{margin-right:8rem!important;margin-left:8rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-md-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-md-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:2rem!important}.mt-md-6{margin-top:3rem!important}.mt-md-7{margin-top:5rem!important}.mt-md-8{margin-top:8rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:2rem!important}.me-md-6{margin-right:3rem!important}.me-md-7{margin-right:5rem!important}.me-md-8{margin-right:8rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:2rem!important}.mb-md-6{margin-bottom:3rem!important}.mb-md-7{margin-bottom:5rem!important}.mb-md-8{margin-bottom:8rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:2rem!important}.ms-md-6{margin-left:3rem!important}.ms-md-7{margin-left:5rem!important}.ms-md-8{margin-left:8rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:2rem!important}.p-md-6{padding:3rem!important}.p-md-7{padding:5rem!important}.p-md-8{padding:8rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:2rem!important;padding-left:2rem!important}.px-md-6{padding-right:3rem!important;padding-left:3rem!important}.px-md-7{padding-right:5rem!important;padding-left:5rem!important}.px-md-8{padding-right:8rem!important;padding-left:8rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-md-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-md-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-md-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:2rem!important}.pt-md-6{padding-top:3rem!important}.pt-md-7{padding-top:5rem!important}.pt-md-8{padding-top:8rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:2rem!important}.pe-md-6{padding-right:3rem!important}.pe-md-7{padding-right:5rem!important}.pe-md-8{padding-right:8rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:2rem!important}.pb-md-6{padding-bottom:3rem!important}.pb-md-7{padding-bottom:5rem!important}.pb-md-8{padding-bottom:8rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:2rem!important}.ps-md-6{padding-left:3rem!important}.ps-md-7{padding-left:5rem!important}.ps-md-8{padding-left:8rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:2rem!important}.gap-md-6{gap:3rem!important}.gap-md-7{gap:5rem!important}.gap-md-8{gap:8rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:2rem!important}.row-gap-md-6{row-gap:3rem!important}.row-gap-md-7{row-gap:5rem!important}.row-gap-md-8{row-gap:8rem!important}.column-gap-md-0{column-gap:0!important}.column-gap-md-1{column-gap:.25rem!important}.column-gap-md-2{column-gap:.5rem!important}.column-gap-md-3{column-gap:1rem!important}.column-gap-md-4{column-gap:1.5rem!important}.column-gap-md-5{column-gap:2rem!important}.column-gap-md-6{column-gap:3rem!important}.column-gap-md-7{column-gap:5rem!important}.column-gap-md-8{column-gap:8rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}.columns-md-2{columns:2!important}.columns-md-3{columns:3!important}.columns-md-4{columns:4!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{object-fit:contain!important}.object-fit-lg-cover{object-fit:cover!important}.object-fit-lg-fill{object-fit:fill!important}.object-fit-lg-scale{object-fit:scale-down!important}.object-fit-lg-none{object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:2rem!important}.m-lg-6{margin:3rem!important}.m-lg-7{margin:5rem!important}.m-lg-8{margin:8rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:2rem!important;margin-left:2rem!important}.mx-lg-6{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-7{margin-right:5rem!important;margin-left:5rem!important}.mx-lg-8{margin-right:8rem!important;margin-left:8rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-lg-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-lg-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:2rem!important}.mt-lg-6{margin-top:3rem!important}.mt-lg-7{margin-top:5rem!important}.mt-lg-8{margin-top:8rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:2rem!important}.me-lg-6{margin-right:3rem!important}.me-lg-7{margin-right:5rem!important}.me-lg-8{margin-right:8rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:2rem!important}.mb-lg-6{margin-bottom:3rem!important}.mb-lg-7{margin-bottom:5rem!important}.mb-lg-8{margin-bottom:8rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:2rem!important}.ms-lg-6{margin-left:3rem!important}.ms-lg-7{margin-left:5rem!important}.ms-lg-8{margin-left:8rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:2rem!important}.p-lg-6{padding:3rem!important}.p-lg-7{padding:5rem!important}.p-lg-8{padding:8rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:2rem!important;padding-left:2rem!important}.px-lg-6{padding-right:3rem!important;padding-left:3rem!important}.px-lg-7{padding-right:5rem!important;padding-left:5rem!important}.px-lg-8{padding-right:8rem!important;padding-left:8rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-lg-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-lg-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-lg-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:2rem!important}.pt-lg-6{padding-top:3rem!important}.pt-lg-7{padding-top:5rem!important}.pt-lg-8{padding-top:8rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:2rem!important}.pe-lg-6{padding-right:3rem!important}.pe-lg-7{padding-right:5rem!important}.pe-lg-8{padding-right:8rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:2rem!important}.pb-lg-6{padding-bottom:3rem!important}.pb-lg-7{padding-bottom:5rem!important}.pb-lg-8{padding-bottom:8rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:2rem!important}.ps-lg-6{padding-left:3rem!important}.ps-lg-7{padding-left:5rem!important}.ps-lg-8{padding-left:8rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:2rem!important}.gap-lg-6{gap:3rem!important}.gap-lg-7{gap:5rem!important}.gap-lg-8{gap:8rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:2rem!important}.row-gap-lg-6{row-gap:3rem!important}.row-gap-lg-7{row-gap:5rem!important}.row-gap-lg-8{row-gap:8rem!important}.column-gap-lg-0{column-gap:0!important}.column-gap-lg-1{column-gap:.25rem!important}.column-gap-lg-2{column-gap:.5rem!important}.column-gap-lg-3{column-gap:1rem!important}.column-gap-lg-4{column-gap:1.5rem!important}.column-gap-lg-5{column-gap:2rem!important}.column-gap-lg-6{column-gap:3rem!important}.column-gap-lg-7{column-gap:5rem!important}.column-gap-lg-8{column-gap:8rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}.columns-lg-2{columns:2!important}.columns-lg-3{columns:3!important}.columns-lg-4{columns:4!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{object-fit:contain!important}.object-fit-xl-cover{object-fit:cover!important}.object-fit-xl-fill{object-fit:fill!important}.object-fit-xl-scale{object-fit:scale-down!important}.object-fit-xl-none{object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:2rem!important}.m-xl-6{margin:3rem!important}.m-xl-7{margin:5rem!important}.m-xl-8{margin:8rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:2rem!important;margin-left:2rem!important}.mx-xl-6{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-7{margin-right:5rem!important;margin-left:5rem!important}.mx-xl-8{margin-right:8rem!important;margin-left:8rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-xl-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-xl-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:2rem!important}.mt-xl-6{margin-top:3rem!important}.mt-xl-7{margin-top:5rem!important}.mt-xl-8{margin-top:8rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:2rem!important}.me-xl-6{margin-right:3rem!important}.me-xl-7{margin-right:5rem!important}.me-xl-8{margin-right:8rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:2rem!important}.mb-xl-6{margin-bottom:3rem!important}.mb-xl-7{margin-bottom:5rem!important}.mb-xl-8{margin-bottom:8rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:2rem!important}.ms-xl-6{margin-left:3rem!important}.ms-xl-7{margin-left:5rem!important}.ms-xl-8{margin-left:8rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:2rem!important}.p-xl-6{padding:3rem!important}.p-xl-7{padding:5rem!important}.p-xl-8{padding:8rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:2rem!important;padding-left:2rem!important}.px-xl-6{padding-right:3rem!important;padding-left:3rem!important}.px-xl-7{padding-right:5rem!important;padding-left:5rem!important}.px-xl-8{padding-right:8rem!important;padding-left:8rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-xl-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-xl-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-xl-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:2rem!important}.pt-xl-6{padding-top:3rem!important}.pt-xl-7{padding-top:5rem!important}.pt-xl-8{padding-top:8rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:2rem!important}.pe-xl-6{padding-right:3rem!important}.pe-xl-7{padding-right:5rem!important}.pe-xl-8{padding-right:8rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:2rem!important}.pb-xl-6{padding-bottom:3rem!important}.pb-xl-7{padding-bottom:5rem!important}.pb-xl-8{padding-bottom:8rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:2rem!important}.ps-xl-6{padding-left:3rem!important}.ps-xl-7{padding-left:5rem!important}.ps-xl-8{padding-left:8rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:2rem!important}.gap-xl-6{gap:3rem!important}.gap-xl-7{gap:5rem!important}.gap-xl-8{gap:8rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:2rem!important}.row-gap-xl-6{row-gap:3rem!important}.row-gap-xl-7{row-gap:5rem!important}.row-gap-xl-8{row-gap:8rem!important}.column-gap-xl-0{column-gap:0!important}.column-gap-xl-1{column-gap:.25rem!important}.column-gap-xl-2{column-gap:.5rem!important}.column-gap-xl-3{column-gap:1rem!important}.column-gap-xl-4{column-gap:1.5rem!important}.column-gap-xl-5{column-gap:2rem!important}.column-gap-xl-6{column-gap:3rem!important}.column-gap-xl-7{column-gap:5rem!important}.column-gap-xl-8{column-gap:8rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}.columns-xl-2{columns:2!important}.columns-xl-3{columns:3!important}.columns-xl-4{columns:4!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{object-fit:contain!important}.object-fit-xxl-cover{object-fit:cover!important}.object-fit-xxl-fill{object-fit:fill!important}.object-fit-xxl-scale{object-fit:scale-down!important}.object-fit-xxl-none{object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:2rem!important}.m-xxl-6{margin:3rem!important}.m-xxl-7{margin:5rem!important}.m-xxl-8{margin:8rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:2rem!important;margin-left:2rem!important}.mx-xxl-6{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-7{margin-right:5rem!important;margin-left:5rem!important}.mx-xxl-8{margin-right:8rem!important;margin-left:8rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:2rem!important;margin-bottom:2rem!important}.my-xxl-6{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-7{margin-top:5rem!important;margin-bottom:5rem!important}.my-xxl-8{margin-top:8rem!important;margin-bottom:8rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:2rem!important}.mt-xxl-6{margin-top:3rem!important}.mt-xxl-7{margin-top:5rem!important}.mt-xxl-8{margin-top:8rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:2rem!important}.me-xxl-6{margin-right:3rem!important}.me-xxl-7{margin-right:5rem!important}.me-xxl-8{margin-right:8rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:2rem!important}.mb-xxl-6{margin-bottom:3rem!important}.mb-xxl-7{margin-bottom:5rem!important}.mb-xxl-8{margin-bottom:8rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:2rem!important}.ms-xxl-6{margin-left:3rem!important}.ms-xxl-7{margin-left:5rem!important}.ms-xxl-8{margin-left:8rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:2rem!important}.p-xxl-6{padding:3rem!important}.p-xxl-7{padding:5rem!important}.p-xxl-8{padding:8rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:2rem!important;padding-left:2rem!important}.px-xxl-6{padding-right:3rem!important;padding-left:3rem!important}.px-xxl-7{padding-right:5rem!important;padding-left:5rem!important}.px-xxl-8{padding-right:8rem!important;padding-left:8rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:2rem!important;padding-bottom:2rem!important}.py-xxl-6{padding-top:3rem!important;padding-bottom:3rem!important}.py-xxl-7{padding-top:5rem!important;padding-bottom:5rem!important}.py-xxl-8{padding-top:8rem!important;padding-bottom:8rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:2rem!important}.pt-xxl-6{padding-top:3rem!important}.pt-xxl-7{padding-top:5rem!important}.pt-xxl-8{padding-top:8rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:2rem!important}.pe-xxl-6{padding-right:3rem!important}.pe-xxl-7{padding-right:5rem!important}.pe-xxl-8{padding-right:8rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:2rem!important}.pb-xxl-6{padding-bottom:3rem!important}.pb-xxl-7{padding-bottom:5rem!important}.pb-xxl-8{padding-bottom:8rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:2rem!important}.ps-xxl-6{padding-left:3rem!important}.ps-xxl-7{padding-left:5rem!important}.ps-xxl-8{padding-left:8rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:2rem!important}.gap-xxl-6{gap:3rem!important}.gap-xxl-7{gap:5rem!important}.gap-xxl-8{gap:8rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:2rem!important}.row-gap-xxl-6{row-gap:3rem!important}.row-gap-xxl-7{row-gap:5rem!important}.row-gap-xxl-8{row-gap:8rem!important}.column-gap-xxl-0{column-gap:0!important}.column-gap-xxl-1{column-gap:.25rem!important}.column-gap-xxl-2{column-gap:.5rem!important}.column-gap-xxl-3{column-gap:1rem!important}.column-gap-xxl-4{column-gap:1.5rem!important}.column-gap-xxl-5{column-gap:2rem!important}.column-gap-xxl-6{column-gap:3rem!important}.column-gap-xxl-7{column-gap:5rem!important}.column-gap-xxl-8{column-gap:8rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}.columns-xxl-2{columns:2!important}.columns-xxl-3{columns:3!important}.columns-xxl-4{columns:4!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}:root,:host{font-size:16px;height:100%}:root,:host,[data-bs-theme=light]{--tblr-primary: #00857D;--tblr-primary-rgb: 0, 133, 125;--tblr-primary-fg: var(--tblr-light);--tblr-primary-darken: #007871;--tblr-primary-lt: #e6f3f2;--tblr-primary-lt-rgb: 230, 243, 242;--tblr-secondary: #6c7a91;--tblr-secondary-rgb: 108, 122, 145;--tblr-secondary-fg: var(--tblr-light);--tblr-secondary-darken: #616e83;--tblr-secondary-lt: #f0f2f4;--tblr-secondary-lt-rgb: 240, 242, 244;--tblr-success: #2fb344;--tblr-success-rgb: 47, 179, 68;--tblr-success-fg: var(--tblr-light);--tblr-success-darken: #2aa13d;--tblr-success-lt: #eaf7ec;--tblr-success-lt-rgb: 234, 247, 236;--tblr-info: #4299e1;--tblr-info-rgb: 66, 153, 225;--tblr-info-fg: var(--tblr-light);--tblr-info-darken: #3b8acb;--tblr-info-lt: #ecf5fc;--tblr-info-lt-rgb: 236, 245, 252;--tblr-warning: #f76707;--tblr-warning-rgb: 247, 103, 7;--tblr-warning-fg: var(--tblr-light);--tblr-warning-darken: #de5d06;--tblr-warning-lt: #fef0e6;--tblr-warning-lt-rgb: 254, 240, 230;--tblr-danger: #d63939;--tblr-danger-rgb: 214, 57, 57;--tblr-danger-fg: var(--tblr-light);--tblr-danger-darken: #c13333;--tblr-danger-lt: #fbebeb;--tblr-danger-lt-rgb: 251, 235, 235;--tblr-light: #f6f8fb;--tblr-light-rgb: 246, 248, 251;--tblr-light-fg: var(--tblr-dark);--tblr-light-darken: #dddfe2;--tblr-light-lt: #fefeff;--tblr-light-lt-rgb: 254, 254, 255;--tblr-dark: #182433;--tblr-dark-rgb: 24, 36, 51;--tblr-dark-fg: var(--tblr-light);--tblr-dark-darken: #16202e;--tblr-dark-lt: #e8e9eb;--tblr-dark-lt-rgb: 232, 233, 235;--tblr-muted: #6c7a91;--tblr-muted-rgb: 108, 122, 145;--tblr-muted-fg: var(--tblr-light);--tblr-muted-darken: #616e83;--tblr-muted-lt: #f0f2f4;--tblr-muted-lt-rgb: 240, 242, 244;--tblr-blue: #066fd1;--tblr-blue-rgb: 6, 111, 209;--tblr-blue-fg: var(--tblr-light);--tblr-blue-darken: #0564bc;--tblr-blue-lt: #e6f1fa;--tblr-blue-lt-rgb: 230, 241, 250;--tblr-azure: #4299e1;--tblr-azure-rgb: 66, 153, 225;--tblr-azure-fg: var(--tblr-light);--tblr-azure-darken: #3b8acb;--tblr-azure-lt: #ecf5fc;--tblr-azure-lt-rgb: 236, 245, 252;--tblr-indigo: #4263eb;--tblr-indigo-rgb: 66, 99, 235;--tblr-indigo-fg: var(--tblr-light);--tblr-indigo-darken: #3b59d4;--tblr-indigo-lt: #eceffd;--tblr-indigo-lt-rgb: 236, 239, 253;--tblr-purple: #ae3ec9;--tblr-purple-rgb: 174, 62, 201;--tblr-purple-fg: var(--tblr-light);--tblr-purple-darken: #9d38b5;--tblr-purple-lt: #f7ecfa;--tblr-purple-lt-rgb: 247, 236, 250;--tblr-pink: #d6336c;--tblr-pink-rgb: 214, 51, 108;--tblr-pink-fg: var(--tblr-light);--tblr-pink-darken: #c12e61;--tblr-pink-lt: #fbebf0;--tblr-pink-lt-rgb: 251, 235, 240;--tblr-red: #d63939;--tblr-red-rgb: 214, 57, 57;--tblr-red-fg: var(--tblr-light);--tblr-red-darken: #c13333;--tblr-red-lt: #fbebeb;--tblr-red-lt-rgb: 251, 235, 235;--tblr-orange: #f76707;--tblr-orange-rgb: 247, 103, 7;--tblr-orange-fg: var(--tblr-light);--tblr-orange-darken: #de5d06;--tblr-orange-lt: #fef0e6;--tblr-orange-lt-rgb: 254, 240, 230;--tblr-yellow: #f59f00;--tblr-yellow-rgb: 245, 159, 0;--tblr-yellow-fg: var(--tblr-light);--tblr-yellow-darken: #dd8f00;--tblr-yellow-lt: #fef5e6;--tblr-yellow-lt-rgb: 254, 245, 230;--tblr-lime: #74b816;--tblr-lime-rgb: 116, 184, 22;--tblr-lime-fg: var(--tblr-light);--tblr-lime-darken: #68a614;--tblr-lime-lt: #f1f8e8;--tblr-lime-lt-rgb: 241, 248, 232;--tblr-green: #2fb344;--tblr-green-rgb: 47, 179, 68;--tblr-green-fg: var(--tblr-light);--tblr-green-darken: #2aa13d;--tblr-green-lt: #eaf7ec;--tblr-green-lt-rgb: 234, 247, 236;--tblr-teal: #0ca678;--tblr-teal-rgb: 12, 166, 120;--tblr-teal-fg: var(--tblr-light);--tblr-teal-darken: #0b956c;--tblr-teal-lt: #e7f6f2;--tblr-teal-lt-rgb: 231, 246, 242;--tblr-cyan: #17a2b8;--tblr-cyan-rgb: 23, 162, 184;--tblr-cyan-fg: var(--tblr-light);--tblr-cyan-darken: #1592a6;--tblr-cyan-lt: #e8f6f8;--tblr-cyan-lt-rgb: 232, 246, 248;--tblr-x: #000000;--tblr-x-rgb: 0, 0, 0;--tblr-x-fg: var(--tblr-light);--tblr-x-darken: black;--tblr-x-lt: #e6e6e6;--tblr-x-lt-rgb: 230, 230, 230;--tblr-facebook: #1877f2;--tblr-facebook-rgb: 24, 119, 242;--tblr-facebook-fg: var(--tblr-light);--tblr-facebook-darken: #166bda;--tblr-facebook-lt: #e8f1fe;--tblr-facebook-lt-rgb: 232, 241, 254;--tblr-twitter: #1da1f2;--tblr-twitter-rgb: 29, 161, 242;--tblr-twitter-fg: var(--tblr-light);--tblr-twitter-darken: #1a91da;--tblr-twitter-lt: #e8f6fe;--tblr-twitter-lt-rgb: 232, 246, 254;--tblr-linkedin: #0a66c2;--tblr-linkedin-rgb: 10, 102, 194;--tblr-linkedin-fg: var(--tblr-light);--tblr-linkedin-darken: #095caf;--tblr-linkedin-lt: #e7f0f9;--tblr-linkedin-lt-rgb: 231, 240, 249;--tblr-google: #dc4e41;--tblr-google-rgb: 220, 78, 65;--tblr-google-fg: var(--tblr-light);--tblr-google-darken: #c6463b;--tblr-google-lt: #fcedec;--tblr-google-lt-rgb: 252, 237, 236;--tblr-youtube: #ff0000;--tblr-youtube-rgb: 255, 0, 0;--tblr-youtube-fg: var(--tblr-light);--tblr-youtube-darken: #e60000;--tblr-youtube-lt: #ffe6e6;--tblr-youtube-lt-rgb: 255, 230, 230;--tblr-vimeo: #1ab7ea;--tblr-vimeo-rgb: 26, 183, 234;--tblr-vimeo-fg: var(--tblr-light);--tblr-vimeo-darken: #17a5d3;--tblr-vimeo-lt: #e8f8fd;--tblr-vimeo-lt-rgb: 232, 248, 253;--tblr-dribbble: #ea4c89;--tblr-dribbble-rgb: 234, 76, 137;--tblr-dribbble-fg: var(--tblr-light);--tblr-dribbble-darken: #d3447b;--tblr-dribbble-lt: #fdedf3;--tblr-dribbble-lt-rgb: 253, 237, 243;--tblr-github: #181717;--tblr-github-rgb: 24, 23, 23;--tblr-github-fg: var(--tblr-light);--tblr-github-darken: #161515;--tblr-github-lt: #e8e8e8;--tblr-github-lt-rgb: 232, 232, 232;--tblr-instagram: #e4405f;--tblr-instagram-rgb: 228, 64, 95;--tblr-instagram-fg: var(--tblr-light);--tblr-instagram-darken: #cd3a56;--tblr-instagram-lt: #fcecef;--tblr-instagram-lt-rgb: 252, 236, 239;--tblr-pinterest: #bd081c;--tblr-pinterest-rgb: 189, 8, 28;--tblr-pinterest-fg: var(--tblr-light);--tblr-pinterest-darken: #aa0719;--tblr-pinterest-lt: #f8e6e8;--tblr-pinterest-lt-rgb: 248, 230, 232;--tblr-vk: #6383a8;--tblr-vk-rgb: 99, 131, 168;--tblr-vk-fg: var(--tblr-light);--tblr-vk-darken: #597697;--tblr-vk-lt: #eff3f6;--tblr-vk-lt-rgb: 239, 243, 246;--tblr-rss: #ffa500;--tblr-rss-rgb: 255, 165, 0;--tblr-rss-fg: var(--tblr-light);--tblr-rss-darken: #e69500;--tblr-rss-lt: #fff6e6;--tblr-rss-lt-rgb: 255, 246, 230;--tblr-flickr: #0063dc;--tblr-flickr-rgb: 0, 99, 220;--tblr-flickr-fg: var(--tblr-light);--tblr-flickr-darken: #0059c6;--tblr-flickr-lt: #e6effc;--tblr-flickr-lt-rgb: 230, 239, 252;--tblr-bitbucket: #0052cc;--tblr-bitbucket-rgb: 0, 82, 204;--tblr-bitbucket-fg: var(--tblr-light);--tblr-bitbucket-darken: #004ab8;--tblr-bitbucket-lt: #e6eefa;--tblr-bitbucket-lt-rgb: 230, 238, 250;--tblr-tabler: #066fd1;--tblr-tabler-rgb: 6, 111, 209;--tblr-tabler-fg: var(--tblr-light);--tblr-tabler-darken: #0564bc;--tblr-tabler-lt: #e6f1fa;--tblr-tabler-lt-rgb: 230, 241, 250;--tblr-gray-50: #f6f8fb;--tblr-gray-50-rgb: 246, 248, 251;--tblr-gray-50-fg: var(--tblr-dark);--tblr-gray-50-darken: #dddfe2;--tblr-gray-50-lt: #fefeff;--tblr-gray-50-lt-rgb: 254, 254, 255;--tblr-gray-100: #eef3f6;--tblr-gray-100-rgb: 238, 243, 246;--tblr-gray-100-fg: var(--tblr-dark);--tblr-gray-100-darken: #d6dbdd;--tblr-gray-100-lt: #fdfefe;--tblr-gray-100-lt-rgb: 253, 254, 254;--tblr-gray-200: #dce1e7;--tblr-gray-200-rgb: 220, 225, 231;--tblr-gray-200-fg: var(--tblr-dark);--tblr-gray-200-darken: #c6cbd0;--tblr-gray-200-lt: #fcfcfd;--tblr-gray-200-lt-rgb: 252, 252, 253;--tblr-gray-300: #b8c4d4;--tblr-gray-300-rgb: 184, 196, 212;--tblr-gray-300-fg: var(--tblr-light);--tblr-gray-300-darken: #a6b0bf;--tblr-gray-300-lt: #f8f9fb;--tblr-gray-300-lt-rgb: 248, 249, 251;--tblr-gray-400: #8a97ab;--tblr-gray-400-rgb: 138, 151, 171;--tblr-gray-400-fg: var(--tblr-light);--tblr-gray-400-darken: #7c889a;--tblr-gray-400-lt: #f3f5f7;--tblr-gray-400-lt-rgb: 243, 245, 247;--tblr-gray-500: #6c7a91;--tblr-gray-500-rgb: 108, 122, 145;--tblr-gray-500-fg: var(--tblr-light);--tblr-gray-500-darken: #616e83;--tblr-gray-500-lt: #f0f2f4;--tblr-gray-500-lt-rgb: 240, 242, 244;--tblr-gray-600: #49566c;--tblr-gray-600-rgb: 73, 86, 108;--tblr-gray-600-fg: var(--tblr-light);--tblr-gray-600-darken: #424d61;--tblr-gray-600-lt: #edeef0;--tblr-gray-600-lt-rgb: 237, 238, 240;--tblr-gray-700: #3a4859;--tblr-gray-700-rgb: 58, 72, 89;--tblr-gray-700-fg: var(--tblr-light);--tblr-gray-700-darken: #344150;--tblr-gray-700-lt: #ebedee;--tblr-gray-700-lt-rgb: 235, 237, 238;--tblr-gray-800: #182433;--tblr-gray-800-rgb: 24, 36, 51;--tblr-gray-800-fg: var(--tblr-light);--tblr-gray-800-darken: #16202e;--tblr-gray-800-lt: #e8e9eb;--tblr-gray-800-lt-rgb: 232, 233, 235;--tblr-gray-900: #040a11;--tblr-gray-900-rgb: 4, 10, 17;--tblr-gray-900-fg: var(--tblr-light);--tblr-gray-900-darken: #04090f;--tblr-gray-900-lt: #e6e7e7;--tblr-gray-900-lt-rgb: 230, 231, 231;--tblr-spacer-0: 0;--tblr-spacer-1: .25rem;--tblr-spacer-2: .5rem;--tblr-spacer-3: 1rem;--tblr-spacer-4: 1.5rem;--tblr-spacer-5: 2rem;--tblr-spacer-6: 3rem;--tblr-spacer-7: 5rem;--tblr-spacer-8: 8rem;--tblr-spacer: 1rem;--tblr-bg-surface: var(--tblr-white);--tblr-bg-surface-secondary: var(--tblr-gray-100);--tblr-bg-surface-tertiary: var(--tblr-gray-50);--tblr-bg-surface-dark: var(--tblr-dark);--tblr-bg-forms: var(--tblr-bg-surface);--tblr-border-color: #dce1e7;--tblr-border-color-translucent: rgba(4, 32, 69, .1);--tblr-border-dark-color: #8a97ab;--tblr-border-dark-color-translucent: rgba(4, 32, 69, .27);--tblr-border-active-color: #aab2bf;--tblr-icon-color: var(--tblr-gray-400);--tblr-active-bg: rgba(var(--tblr-primary-rgb), .04);--tblr-disabled-bg: var(--tblr-bg-surface-secondary);--tblr-disabled-color: var(--tblr-gray-300);--tblr-code-color: var(--tblr-gray-600);--tblr-code-bg: var(--tblr-bg-surface-secondary);--tblr-dark-mode-border-color: #25384f;--tblr-dark-mode-border-color-translucent: rgba(72, 110, 149, .14);--tblr-dark-mode-border-active-color: #2c415d;--tblr-dark-mode-border-dark-color: #1f2e41;--tblr-page-padding: var(--tblr-spacer-3);--tblr-page-padding-y: var(--tblr-spacer-4);--tblr-font-weight-light: 300;--tblr-font-weight-normal: 400;--tblr-font-weight-medium: 500;--tblr-font-weight-bold: 600;--tblr-font-weight-headings: var(--tblr-font-weight-bold);--tblr-font-size-h1: 1.5rem;--tblr-font-size-h2: 1.25rem;--tblr-font-size-h3: 1rem;--tblr-font-size-h4: .875rem;--tblr-font-size-h5: .75rem;--tblr-font-size-h6: .625rem;--tblr-line-height-h1: 2rem;--tblr-line-height-h2: 1.75rem;--tblr-line-height-h3: 1.5rem;--tblr-line-height-h4: 1.25rem;--tblr-line-height-h5: 1rem;--tblr-line-height-h6: 1rem;--tblr-box-shadow: rgba(var(--tblr-body-color-rgb), .04) 0 2px 4px 0;--tblr-box-shadow-border: inset 0 0 0 1px var(--tblr-border-color-translucent);--tblr-box-shadow-transparent: 0 0 0 0 transparent;--tblr-box-shadow-input: 0 1px 1px rgba(var(--tblr-body-color-rgb), .06);--tblr-box-shadow-card: 0 0 4px rgba(var(--tblr-body-color-rgb), .04);--tblr-box-shadow-card-hover: rgba(var(--tblr-body-color-rgb), .16) 0 2px 16px 0;--tblr-box-shadow-dropdown: 0 16px 24px 2px rgba(0, 0, 0, .07), 0 6px 30px 5px rgba(0, 0, 0, .06), 0 8px 10px -5px rgba(0, 0, 0, .1)}@media (max-width: 991.98px){:root,:host,[data-bs-theme=light]{--tblr-page-padding: var(--tblr-spacer-2)}}@keyframes pulse{0%{opacity:1;transform:scale3d(.8,.8,.8)}50%{transform:scaleZ(1);opacity:1}to{opacity:1;transform:scale3d(.8,.8,.8)}}@keyframes tada{0%{transform:scaleZ(1)}10%,5%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-5deg)}15%,25%,35%,45%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,5deg)}20%,30%,40%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-5deg)}50%{transform:scaleZ(1)}}@keyframes rotate-360{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}body{letter-spacing:0;touch-action:manipulation;text-rendering:optimizeLegibility;font-feature-settings:"liga" 0;position:relative;min-height:100%;height:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media print{body{background:transparent}}*{scrollbar-color:rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.16)}*::-webkit-scrollbar{width:1rem;height:1rem;transition:background .3s}@media (prefers-reduced-motion: reduce){*::-webkit-scrollbar{transition:none}}*::-webkit-scrollbar-thumb{border-radius:1rem;border:5px solid transparent;box-shadow:inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.16)}*::-webkit-scrollbar-track{background:transparent}*:hover::-webkit-scrollbar-thumb{box-shadow:inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.32)}*::-webkit-scrollbar-corner{background:transparent}.layout-fluid .container,.layout-fluid [class^=container-],.layout-fluid [class*=" container-"]{max-width:100%}.layout-boxed{--tblr-theme-boxed-border-radius: 0;--tblr-theme-boxed-width: 1320px}@media (min-width: 768px){.layout-boxed{background:#182433 linear-gradient(to right,rgba(255,255,255,.1),transparent) fixed;padding:1rem;--tblr-theme-boxed-border-radius: 4px}}.layout-boxed .page{margin:0 auto;max-width:var(--tblr-theme-boxed-width);border-radius:var(--tblr-theme-boxed-border-radius);color:var(--tblr-body-color)}@media (min-width: 768px){.layout-boxed .page{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);background:var(--tblr-body-bg)}}.layout-boxed .page>.navbar:first-child{border-top-left-radius:var(--tblr-theme-boxed-border-radius);border-top-right-radius:var(--tblr-theme-boxed-border-radius)}.navbar{--tblr-navbar-bg: var(--tblr-bg-surface);--tblr-navbar-border-width: var(--tblr-border-width);--tblr-navbar-active-border-color: #00857D;--tblr-navbar-active-bg: rgba(0, 0, 0, .06);--tblr-navbar-color: var(--tblr-body-color);--tblr-navbar-border-color: var(--tblr-border-color);align-items:stretch;min-height:3.5rem;box-shadow:inset 0 calc(-1 * var(--tblr-navbar-border-width)) 0 0 var(--tblr-navbar-border-color);background:var(--tblr-navbar-bg);color:var(--tblr-navbar-color)}.navbar-collapse .navbar{flex-grow:1}.navbar.collapsing{min-height:0}.navbar .dropdown-menu{position:absolute;z-index:1030}.navbar .navbar-nav{min-height:3rem}.navbar .navbar-nav .nav-link{position:relative;min-width:2rem;min-height:2rem;justify-content:center;border-radius:var(--tblr-border-radius)}.navbar .navbar-nav .nav-link .badge{position:absolute;top:.375rem;right:.375rem;transform:translate(50%,-50%)}.navbar-nav{margin:0;padding:0}@media (max-width: 575.98px){.navbar-expand-sm .navbar-collapse{flex-direction:column}.navbar-expand-sm .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-sm .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-sm .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-sm .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-sm .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-sm .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-sm .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 576px){.navbar-expand-sm .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-sm .nav-item.active{position:relative}.navbar-expand-sm .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-sm.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-sm.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-sm.navbar-vertical~.navbar,.navbar-expand-sm.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-sm.navbar-vertical.navbar-right~.navbar,.navbar-expand-sm.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}@media (max-width: 767.98px){.navbar-expand-md .navbar-collapse{flex-direction:column}.navbar-expand-md .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-md .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-md .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-md .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-md .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-md .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-md .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 768px){.navbar-expand-md .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-md .nav-item.active{position:relative}.navbar-expand-md .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-md.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-md.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-md.navbar-vertical~.navbar,.navbar-expand-md.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-md.navbar-vertical.navbar-right~.navbar,.navbar-expand-md.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}@media (max-width: 991.98px){.navbar-expand-lg .navbar-collapse{flex-direction:column}.navbar-expand-lg .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-lg .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-lg .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-lg .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-lg .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-lg .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-lg .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 992px){.navbar-expand-lg .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-lg .nav-item.active{position:relative}.navbar-expand-lg .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-lg.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-lg.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-lg.navbar-vertical~.navbar,.navbar-expand-lg.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-lg.navbar-vertical.navbar-right~.navbar,.navbar-expand-lg.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}@media (max-width: 1199.98px){.navbar-expand-xl .navbar-collapse{flex-direction:column}.navbar-expand-xl .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-xl .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-xl .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-xl .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-xl .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-xl .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-xl .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 1200px){.navbar-expand-xl .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-xl .nav-item.active{position:relative}.navbar-expand-xl .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-xl.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-xl.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-xl.navbar-vertical~.navbar,.navbar-expand-xl.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-xl.navbar-vertical.navbar-right~.navbar,.navbar-expand-xl.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}@media (max-width: 1399.98px){.navbar-expand-xxl .navbar-collapse{flex-direction:column}.navbar-expand-xxl .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand-xxl .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand-xxl .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand-xxl .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand-xxl .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand-xxl .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand-xxl .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 1400px){.navbar-expand-xxl .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand-xxl .nav-item.active{position:relative}.navbar-expand-xxl .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand-xxl.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-xxl.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand-xxl.navbar-vertical~.navbar,.navbar-expand-xxl.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand-xxl.navbar-vertical.navbar-right~.navbar,.navbar-expand-xxl.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}}.navbar-expand .navbar-collapse{flex-direction:column}.navbar-expand .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-expand .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-expand .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-expand .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-expand .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-expand .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-expand .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-expand .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}.navbar-expand .navbar-collapse{width:auto;flex:1 1 auto}.navbar-expand .nav-item.active{position:relative}.navbar-expand .nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;border:0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);border-bottom-width:2px}.navbar-expand.navbar-vertical{box-shadow:inset calc(-1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand.navbar-vertical.navbar-right{box-shadow:inset calc(1 * var(--tblr-navbar-border-width)) 0 0 0 var(--tblr-navbar-border-color)}.navbar-expand.navbar-vertical~.navbar,.navbar-expand.navbar-vertical~.page-wrapper{margin-left:18rem}.navbar-expand.navbar-vertical.navbar-right~.navbar,.navbar-expand.navbar-vertical.navbar-right~.page-wrapper{margin-left:0;margin-right:18rem}.navbar-brand{display:inline-flex;align-items:center;font-weight:var(--tblr-font-weight-bold);margin:0;line-height:1;gap:.5rem}.navbar-brand-image{height:2rem;width:auto}.navbar-toggler{border:0;width:2rem;height:2rem;position:relative;display:flex;align-items:center;justify-content:center}.navbar-toggler-icon{height:2px;width:1.25em;background:currentColor;border-radius:10px;transition:top .2s .2s,bottom .2s .2s,transform .2s,opacity 0s .2s;position:relative}@media (prefers-reduced-motion: reduce){.navbar-toggler-icon{transition:none}}.navbar-toggler-icon:before,.navbar-toggler-icon:after{content:"";display:block;height:inherit;width:inherit;border-radius:inherit;background:inherit;position:absolute;left:0;transition:inherit}@media (prefers-reduced-motion: reduce){.navbar-toggler-icon:before,.navbar-toggler-icon:after{transition:none}}.navbar-toggler-icon:before{top:-.45em}.navbar-toggler-icon:after{bottom:-.45em}.navbar-toggler[aria-expanded=true] .navbar-toggler-icon{transform:rotate(45deg);transition:top .3s,bottom .3s,transform .3s .3s,opacity 0s .3s}@media (prefers-reduced-motion: reduce){.navbar-toggler[aria-expanded=true] .navbar-toggler-icon{transition:none}}.navbar-toggler[aria-expanded=true] .navbar-toggler-icon:before{top:0;transform:rotate(-90deg)}.navbar-toggler[aria-expanded=true] .navbar-toggler-icon:after{bottom:0;opacity:0}.navbar-transparent{--tblr-navbar-border-color: transparent !important;background:transparent!important}.navbar-nav{align-items:stretch}.navbar-nav .nav-item{display:flex;flex-direction:column;justify-content:center}.navbar-side{margin:0;display:flex;flex-direction:row;align-items:center;justify-content:space-around}@media (min-width: 576px){.navbar-vertical.navbar-expand-sm{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 576px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-sm{transition:none}}@media (min-width: 576px){.navbar-vertical.navbar-expand-sm.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-sm .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-sm .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-sm .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-sm .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-sm>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-sm~.page{padding-left:18rem}.navbar-vertical.navbar-expand-sm~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-sm.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-sm .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-sm .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-sm .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-sm .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-sm .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-sm .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 768px){.navbar-vertical.navbar-expand-md{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 768px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-md{transition:none}}@media (min-width: 768px){.navbar-vertical.navbar-expand-md.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-md .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-md .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-md .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-md .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-md>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-md~.page{padding-left:18rem}.navbar-vertical.navbar-expand-md~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-md.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-md .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-md .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-md .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-md .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-md .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-md .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 992px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-lg{transition:none}}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-lg .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-lg .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-lg .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-lg .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-lg>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-lg~.page{padding-left:18rem}.navbar-vertical.navbar-expand-lg~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-lg.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-lg .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-lg .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-lg .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-lg .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-lg .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 1200px){.navbar-vertical.navbar-expand-xl{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 1200px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-xl{transition:none}}@media (min-width: 1200px){.navbar-vertical.navbar-expand-xl.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-xl .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-xl .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-xl .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-xl .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-xl>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-xl~.page{padding-left:18rem}.navbar-vertical.navbar-expand-xl~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-xl.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-xl .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-xl .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-xl .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-xl .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-xl .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-xl .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}@media (min-width: 1400px){.navbar-vertical.navbar-expand-xxl{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}}@media (min-width: 1400px) and (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand-xxl{transition:none}}@media (min-width: 1400px){.navbar-vertical.navbar-expand-xxl.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand-xxl .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand-xxl .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand-xxl .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand-xxl .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand-xxl>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand-xxl~.page{padding-left:18rem}.navbar-vertical.navbar-expand-xxl~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-xxl.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand-xxl .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand-xxl .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand-xxl .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand-xxl .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand-xxl .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand-xxl .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}}.navbar-vertical.navbar-expand{width:18rem;position:fixed;top:0;left:0;bottom:0;z-index:1030;align-items:flex-start;transition:transform .3s;overflow-y:scroll;padding:0}@media (prefers-reduced-motion: reduce){.navbar-vertical.navbar-expand{transition:none}}.navbar-vertical.navbar-expand.navbar-right{left:auto;right:0}.navbar-vertical.navbar-expand .navbar-brand{padding:.75rem 0;justify-content:center}.navbar-vertical.navbar-expand .navbar-collapse{align-items:stretch}.navbar-vertical.navbar-expand .navbar-nav{flex-direction:column;flex-grow:1;min-height:auto}.navbar-vertical.navbar-expand .navbar-nav .nav-link{padding-top:.5rem;padding-bottom:.5rem}.navbar-vertical.navbar-expand>[class^=container]{flex-direction:column;align-items:stretch;min-height:100%;justify-content:flex-start;padding:0}.navbar-vertical.navbar-expand~.page{padding-left:18rem}.navbar-vertical.navbar-expand~.page [class^=container]{padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand.navbar-right~.page{padding-left:0;padding-right:18rem}.navbar-vertical.navbar-expand .navbar-collapse{flex-direction:column}.navbar-vertical.navbar-expand .navbar-collapse [class^=container]{flex-direction:column;align-items:stretch;padding:0}.navbar-vertical.navbar-expand .navbar-collapse .navbar-nav{margin-left:0;margin-right:0}.navbar-vertical.navbar-expand .navbar-collapse .navbar-nav .nav-link{padding:.5rem calc(calc(var(--tblr-page-padding) * 2) / 2);justify-content:flex-start}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu-columns{flex-direction:column}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu{padding:0;background:transparent;position:static;color:inherit;box-shadow:none;border:none;min-width:0;margin:0}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item{min-width:0;display:flex;width:auto;padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 1.75rem);color:inherit}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item.disabled{color:var(--tblr-gray-300);pointer-events:none;background-color:transparent}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item.active,.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-item:active{background:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 3.25rem)}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item{padding-left:calc(calc(calc(var(--tblr-page-padding) * 2) / 2) + 4.75rem)}.navbar-vertical.navbar-expand .navbar-collapse .dropdown-toggle:after{margin-left:auto}.navbar-vertical.navbar-expand .navbar-collapse .nav-item.active:after{border-bottom-width:0;border-left-width:3px;right:auto;top:0;bottom:0}.navbar-overlap:after{content:"";height:9rem;position:absolute;top:100%;left:0;right:0;background:inherit;z-index:-1;box-shadow:inherit}.page{display:flex;flex-direction:column;position:relative;min-height:100%}.page-center{justify-content:center}.page-wrapper{flex:1;display:flex;flex-direction:column}@media print{.page-wrapper{margin:0!important}}.page-wrapper-full .page-body:first-child{margin:0;border-top:0}.page-body{margin-top:var(--tblr-page-padding-y);margin-bottom:var(--tblr-page-padding-y);display:flex;flex-direction:column;flex:1}.page-body-card{background:var(--tblr-bg-surface);border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);padding:var(--tblr-page-padding) 0;margin-bottom:0;flex:1}.page-body~.page-body-card{margin-top:0}.page-cover{background:no-repeat center/cover;min-height:9rem}@media (min-width: 768px){.page-cover{min-height:12rem}}@media (min-width: 992px){.page-cover{min-height:15rem}}.page-cover-overlay{position:relative}.page-cover-overlay:after{content:"";position:absolute;inset:0;background-image:linear-gradient(180deg,#0000,#0009)}.page-header{display:flex;flex-wrap:wrap;min-height:2.25rem;flex-direction:column;justify-content:center}.page-wrapper .page-header{margin:var(--tblr-page-padding-y) 0 0}.page-header-border{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);padding:var(--tblr-page-padding-y) 0;margin:0!important;background-color:var(--tblr-bg-surface)}.page-pretitle{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary)}.page-title{margin:0;font-size:var(--tblr-font-size-h2);line-height:var(--tblr-line-height-h2);font-weight:var(--tblr-font-weight-headings);color:inherit;display:flex;align-items:center}.page-title svg{width:1.5rem;height:1.5rem;margin-right:.25rem}.page-title-lg{font-size:1.5rem;line-height:2rem}.page-subtitle{margin-top:.25rem;color:var(--tblr-secondary)}.page-cover{--tblr-page-cover-blur: 20px;--tblr-page-cover-padding: 1rem;min-height:6rem;padding:var(--tblr-page-cover-padding) 0;position:relative;overflow:hidden}.page-cover-img{position:absolute;top:calc(-2 * var(--tblr-page-cover-blur, 0));left:calc(-2 * var(--tblr-page-cover-blur, 0));right:calc(-2 * var(--tblr-page-cover-blur, 0));bottom:calc(-2 * var(--tblr-page-cover-blur, 0));pointer-events:none;filter:blur(var(--tblr-page-cover-blur));object-fit:cover;background-size:cover;background-position:center;z-index:-1}.page-tabs{margin-top:.5rem;position:relative}.page-header-tabs .nav-bordered{border:0}.page-header-tabs+.page-body-card{margin-top:0}.footer{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);background-color:#fff;padding:2rem 0;color:var(--tblr-gray-500);margin-top:auto}.footer-transparent{background-color:transparent;border-top:0}body:not(.theme-dark):not([data-bs-theme=dark]) .hide-theme-light{display:none!important}body:not(.theme-dark):not([data-bs-theme=dark]) .img-dark{display:none!important}body.theme-dark .hide-theme-dark,body[data-bs-theme=dark] .hide-theme-dark,body.theme-dark .img-light,body[data-bs-theme=dark] .img-light{display:none!important}[data-bs-theme=dark],body[data-bs-theme=dark] [data-bs-theme=light]{--tblr-body-color: #dce1e7;--tblr-body-color-rgb: 220, 225, 231;--tblr-muted: #49566c;--tblr-body-bg: #151f2c;--tblr-body-bg-rgb: 21, 31, 44;--tblr-emphasis-color: #ffffff;--tblr-emphasis-color-rgb: 255, 255, 255;--tblr-bg-forms: #151f2c;--tblr-bg-surface: #182433;--tblr-bg-surface-dark: #151f2c;--tblr-bg-surface-secondary: #1b293a;--tblr-bg-surface-tertiary: #151f2c;--tblr-link-color: #00aea3;--tblr-link-hover-color: #00857D;--tblr-active-bg: #1b293a;--tblr-disabled-color: var(--tblr-gray-700);--tblr-border-color: var(--tblr-dark-mode-border-color);--tblr-border-color-translucent: var( --tblr-dark-mode-border-color-translucent );--tblr-border-dark-color: var(--tblr-dark-mode-border-dark-color);--tblr-border-active-color: var( --tblr-dark-mode-border-active-color );--tblr-btn-color: #151f2c;--tblr-code-color: var(--tblr-body-color);--tblr-code-bg: #1f2e41;--tblr-primary-lt: #162e3a;--tblr-primary-lt-rgb: 22, 46, 58;--tblr-secondary-lt: #202d3c;--tblr-secondary-lt-rgb: 32, 45, 60;--tblr-success-lt: #1a3235;--tblr-success-lt-rgb: 26, 50, 53;--tblr-info-lt: #1c3044;--tblr-info-lt-rgb: 28, 48, 68;--tblr-warning-lt: #2e2b2f;--tblr-warning-lt-rgb: 46, 43, 47;--tblr-danger-lt: #2b2634;--tblr-danger-lt-rgb: 43, 38, 52;--tblr-light-lt: #2e3947;--tblr-light-lt-rgb: 46, 57, 71;--tblr-dark-lt: #182433;--tblr-dark-lt-rgb: 24, 36, 51;--tblr-muted-lt: #202d3c;--tblr-muted-lt-rgb: 32, 45, 60;--tblr-blue-lt: #162c43;--tblr-blue-lt-rgb: 22, 44, 67;--tblr-azure-lt: #1c3044;--tblr-azure-lt-rgb: 28, 48, 68;--tblr-indigo-lt: #1c2a45;--tblr-indigo-lt-rgb: 28, 42, 69;--tblr-purple-lt: #272742;--tblr-purple-lt-rgb: 39, 39, 66;--tblr-pink-lt: #2b2639;--tblr-pink-lt-rgb: 43, 38, 57;--tblr-red-lt: #2b2634;--tblr-red-lt-rgb: 43, 38, 52;--tblr-orange-lt: #2e2b2f;--tblr-orange-lt-rgb: 46, 43, 47;--tblr-yellow-lt: #2e302e;--tblr-yellow-lt-rgb: 46, 48, 46;--tblr-lime-lt: #213330;--tblr-lime-lt-rgb: 33, 51, 48;--tblr-green-lt: #1a3235;--tblr-green-lt-rgb: 26, 50, 53;--tblr-teal-lt: #17313a;--tblr-teal-lt-rgb: 23, 49, 58;--tblr-cyan-lt: #183140;--tblr-cyan-lt-rgb: 24, 49, 64;--tblr-x-lt: #16202e;--tblr-x-lt-rgb: 22, 32, 46;--tblr-facebook-lt: #182c46;--tblr-facebook-lt-rgb: 24, 44, 70;--tblr-twitter-lt: #193146;--tblr-twitter-lt-rgb: 25, 49, 70;--tblr-linkedin-lt: #172b41;--tblr-linkedin-lt-rgb: 23, 43, 65;--tblr-google-lt: #2c2834;--tblr-google-lt-rgb: 44, 40, 52;--tblr-youtube-lt: #2f202e;--tblr-youtube-lt-rgb: 47, 32, 46;--tblr-vimeo-lt: #183345;--tblr-vimeo-lt-rgb: 24, 51, 69;--tblr-dribbble-lt: #2d283c;--tblr-dribbble-lt-rgb: 45, 40, 60;--tblr-github-lt: #182330;--tblr-github-lt-rgb: 24, 35, 48;--tblr-instagram-lt: #2c2737;--tblr-instagram-lt-rgb: 44, 39, 55;--tblr-pinterest-lt: #292131;--tblr-pinterest-lt-rgb: 41, 33, 49;--tblr-vk-lt: #202e3f;--tblr-vk-lt-rgb: 32, 46, 63;--tblr-rss-lt: #2f312e;--tblr-rss-lt-rgb: 47, 49, 46;--tblr-flickr-lt: #162a44;--tblr-flickr-lt-rgb: 22, 42, 68;--tblr-bitbucket-lt: #162942;--tblr-bitbucket-lt-rgb: 22, 41, 66;--tblr-tabler-lt: #162c43;--tblr-tabler-lt-rgb: 22, 44, 67}[data-bs-theme=dark] .navbar-brand-autodark .navbar-brand-image{filter:brightness(0) invert(1)}.accordion{--tblr-accordion-color: var(--tblr-body-color)}.accordion-button:focus:not(:focus-visible){outline:none;box-shadow:none}.accordion-button:after{opacity:.7}.accordion-button:not(.collapsed){font-weight:var(--tblr-font-weight-bold);border-bottom-color:transparent;box-shadow:none}.accordion-button:not(.collapsed):after{opacity:1}.alert{--tblr-alert-color: var(--tblr-secondary);--tblr-alert-bg: var(--tblr-bg-surface);border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);border-left:.25rem var(--tblr-border-style) var(--tblr-alert-color);box-shadow:#1824330a 0 2px 4px}.alert>:last-child{margin-bottom:0}.alert-important{border-color:transparent;background:var(--tblr-alert-color);color:#fff}.alert-important .alert-icon,.alert-important .alert-link,.alert-important .alert-title,.alert-important .alert-link:hover{color:inherit}.alert-important .btn-close{filter:var(--tblr-btn-close-white-filter)}.alert-link,.alert-link:hover{color:var(--tblr-alert-color)}.alert-primary{--tblr-alert-color: var(--tblr-primary)}.alert-secondary{--tblr-alert-color: var(--tblr-secondary)}.alert-success{--tblr-alert-color: var(--tblr-success)}.alert-info{--tblr-alert-color: var(--tblr-info)}.alert-warning{--tblr-alert-color: var(--tblr-warning)}.alert-danger{--tblr-alert-color: var(--tblr-danger)}.alert-light{--tblr-alert-color: var(--tblr-light)}.alert-dark{--tblr-alert-color: var(--tblr-dark)}.alert-muted{--tblr-alert-color: var(--tblr-muted)}.alert-blue{--tblr-alert-color: var(--tblr-blue)}.alert-azure{--tblr-alert-color: var(--tblr-azure)}.alert-indigo{--tblr-alert-color: var(--tblr-indigo)}.alert-purple{--tblr-alert-color: var(--tblr-purple)}.alert-pink{--tblr-alert-color: var(--tblr-pink)}.alert-red{--tblr-alert-color: var(--tblr-red)}.alert-orange{--tblr-alert-color: var(--tblr-orange)}.alert-yellow{--tblr-alert-color: var(--tblr-yellow)}.alert-lime{--tblr-alert-color: var(--tblr-lime)}.alert-green{--tblr-alert-color: var(--tblr-green)}.alert-teal{--tblr-alert-color: var(--tblr-teal)}.alert-cyan{--tblr-alert-color: var(--tblr-cyan)}.alert-x{--tblr-alert-color: var(--tblr-x)}.alert-facebook{--tblr-alert-color: var(--tblr-facebook)}.alert-twitter{--tblr-alert-color: var(--tblr-twitter)}.alert-linkedin{--tblr-alert-color: var(--tblr-linkedin)}.alert-google{--tblr-alert-color: var(--tblr-google)}.alert-youtube{--tblr-alert-color: var(--tblr-youtube)}.alert-vimeo{--tblr-alert-color: var(--tblr-vimeo)}.alert-dribbble{--tblr-alert-color: var(--tblr-dribbble)}.alert-github{--tblr-alert-color: var(--tblr-github)}.alert-instagram{--tblr-alert-color: var(--tblr-instagram)}.alert-pinterest{--tblr-alert-color: var(--tblr-pinterest)}.alert-vk{--tblr-alert-color: var(--tblr-vk)}.alert-rss{--tblr-alert-color: var(--tblr-rss)}.alert-flickr{--tblr-alert-color: var(--tblr-flickr)}.alert-bitbucket{--tblr-alert-color: var(--tblr-bitbucket)}.alert-tabler{--tblr-alert-color: var(--tblr-tabler)}.alert-icon{color:var(--tblr-alert-color);width:1.5rem!important;height:1.5rem!important;margin:-.125rem 1rem -.125rem 0}.alert-title{font-size:.875rem;line-height:1.25rem;font-weight:var(--tblr-font-weight-bold);margin-bottom:.25rem;color:var(--tblr-alert-color)}.avatar{--tblr-avatar-size: 2.5rem;--tblr-avatar-status-size: .75rem;--tblr-avatar-bg: var(--tblr-bg-surface-secondary);--tblr-avatar-box-shadow: var(--tblr-box-shadow-border);--tblr-avatar-font-size: 1rem;--tblr-avatar-icon-size: 1.5rem;position:relative;width:var(--tblr-avatar-size);height:var(--tblr-avatar-size);font-size:var(--tblr-avatar-font-size);font-weight:var(--tblr-font-weight-medium);line-height:1;display:inline-flex;align-items:center;justify-content:center;color:var(--tblr-secondary);text-align:center;text-transform:uppercase;vertical-align:bottom;user-select:none;background:var(--tblr-avatar-bg) no-repeat center/cover;border-radius:var(--tblr-border-radius);box-shadow:var(--tblr-avatar-box-shadow)}.avatar .icon{width:var(--tblr-avatar-icon-size);height:var(--tblr-avatar-icon-size)}.avatar .badge{position:absolute;right:0;bottom:0;border-radius:100rem;box-shadow:0 0 0 calc(var(--tblr-avatar-status-size) / 4) var(--tblr-bg-surface)}a.avatar{cursor:pointer}.avatar-rounded{border-radius:100rem}.avatar-xxs{--tblr-avatar-size: 1rem;--tblr-avatar-status-size: .25rem;--tblr-avatar-font-size: .5rem;--tblr-avatar-icon-size: .75rem}.avatar-xxs .badge:empty{width:.25rem;height:.25rem}.avatar-xs{--tblr-avatar-size: 1.25rem;--tblr-avatar-status-size: .375rem;--tblr-avatar-font-size: .625rem;--tblr-avatar-icon-size: 1rem}.avatar-xs .badge:empty{width:.375rem;height:.375rem}.avatar-sm{--tblr-avatar-size: 2rem;--tblr-avatar-status-size: .5rem;--tblr-avatar-font-size: .75rem;--tblr-avatar-icon-size: 1.25rem}.avatar-sm .badge:empty{width:.5rem;height:.5rem}.avatar-md{--tblr-avatar-size: 2.5rem;--tblr-avatar-status-size: .75rem;--tblr-avatar-font-size: .875rem;--tblr-avatar-icon-size: 1.5rem}.avatar-md .badge:empty{width:.75rem;height:.75rem}.avatar-lg{--tblr-avatar-size: 3rem;--tblr-avatar-status-size: .75rem;--tblr-avatar-font-size: 1.25rem;--tblr-avatar-icon-size: 2rem}.avatar-lg .badge:empty{width:.75rem;height:.75rem}.avatar-xl{--tblr-avatar-size: 5rem;--tblr-avatar-status-size: 1rem;--tblr-avatar-font-size: 2rem;--tblr-avatar-icon-size: 3rem}.avatar-xl .badge:empty{width:1rem;height:1rem}.avatar-2xl{--tblr-avatar-size: 7rem;--tblr-avatar-status-size: 1rem;--tblr-avatar-font-size: 3rem;--tblr-avatar-icon-size: 5rem}.avatar-2xl .badge:empty{width:1rem;height:1rem}.avatar-list{--tblr-list-gap: .5rem;display:flex;flex-wrap:wrap;gap:var(--tblr-list-gap)}.avatar-list a.avatar:hover{z-index:1}.avatar-list-stacked{display:block;--tblr-list-gap: 0}.avatar-list-stacked .avatar{margin-right:calc(-.5 * var(--tblr-avatar-size))!important;box-shadow:var(--tblr-avatar-box-shadow),0 0 0 2px var(--tblr-card-cap-bg, var(--tblr-card-bg, var(--tblr-bg-surface)))}.avatar-upload{width:4rem;height:4rem;border:var(--tblr-border-width) dashed var(--tblr-border-color);background:var(--tblr-bg-forms);flex-direction:column;transition:color .3s,background-color .3s}@media (prefers-reduced-motion: reduce){.avatar-upload{transition:none}}.avatar-upload svg{width:1.5rem;height:1.5rem;stroke-width:1}.avatar-upload:hover{border-color:var(--tblr-primary);color:var(--tblr-primary);text-decoration:none}.avatar-upload-text{font-size:.625rem;line-height:1;margin-top:.25rem}.avatar-cover{margin-top:calc(-.5 * var(--tblr-avatar-size));box-shadow:0 0 0 .25rem var(--tblr-card-bg, var(--tblr-body-bg))}.badge{justify-content:center;align-items:center;background:var(--tblr-bg-surface-secondary);overflow:hidden;user-select:none;border:var(--tblr-border-width) var(--tblr-border-style) transparent;min-width:1.35714285em;font-weight:var(--tblr-font-weight-bold);letter-spacing:.04em;vertical-align:bottom}a.badge{color:var(--tblr-bg-surface)}.badge .avatar{box-sizing:content-box;width:1.25rem;height:1.25rem;margin:0 .5rem 0 -.5rem}.badge .icon{width:1em;height:1em;font-size:1rem;stroke-width:2}.badge:empty,.badge-empty{display:inline-block;width:.5rem;height:.5rem;min-width:0;min-height:auto;padding:0;border-radius:100rem;vertical-align:baseline}.badge-outline{background-color:transparent;border:var(--tblr-border-width) var(--tblr-border-style) currentColor}.badge-pill{border-radius:100rem}.badges-list{--tblr-list-gap: .5rem;display:flex;flex-wrap:wrap;gap:var(--tblr-list-gap)}.badge-notification{position:absolute!important;top:0!important;right:0!important;transform:translate(50%,-50%);z-index:1}.badge-blink{animation:blink 2s infinite}.breadcrumb{--tblr-breadcrumb-item-active-font-weight: var(--tblr-font-weight-bold);--tblr-breadcrumb-item-disabled-color: var(--tblr-disabled-color);--tblr-breadcrumb-link-color: var(--tblr-link-color);padding:0;margin:0;background:transparent}.breadcrumb a{color:var(--tblr-breadcrumb-link-color)}.breadcrumb a:hover{text-decoration:underline}.breadcrumb-muted{--tblr-breadcrumb-link-color: var(--tblr-secondary)}.breadcrumb-item.active{font-weight:var(--tblr-breadcrumb-item-active-font-weight)}.breadcrumb-item.active a{color:inherit;pointer-events:none}.breadcrumb-item.disabled{color:var(--tblr-breadcrumb-item-disabled-color)}.breadcrumb-item.disabled:before{color:inherit}.breadcrumb-item.disabled a{color:inherit;pointer-events:none}.breadcrumb-dots{--tblr-breadcrumb-divider: "\b7"}.breadcrumb-arrows{--tblr-breadcrumb-divider: "\203a"}.breadcrumb-bullets{--tblr-breadcrumb-divider: "\2022"}.btn{--tblr-btn-icon-size: 1.25rem;--tblr-btn-bg: var(--tblr-bg-surface);--tblr-btn-color: var(--tblr-body-color);--tblr-btn-border-color: var(--tblr-border-color);--tblr-btn-hover-bg: var(--tblr-btn-bg);--tblr-btn-hover-border-color: var(--tblr-border-active-color);--tblr-btn-box-shadow: var(--tblr-box-shadow-input);--tblr-btn-active-color: var(--tblr-primary);--tblr-btn-active-bg: rgba(var(--tblr-primary-rgb), .04);--tblr-btn-active-border-color: var(--tblr-primary);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;box-shadow:var(--tblr-btn-box-shadow)}.btn .icon{width:var(--tblr-btn-icon-size);height:var(--tblr-btn-icon-size);min-width:var(--tblr-btn-icon-size);margin:0 calc(var(--tblr-btn-padding-x) / 2) 0 calc(var(--tblr-btn-padding-x) / -4);vertical-align:bottom;color:inherit}.btn .avatar{width:var(--tblr-btn-icon-size);height:var(--tblr-btn-icon-size);margin:0 calc(var(--tblr-btn-padding-x) / 2) 0 calc(var(--tblr-btn-padding-x) / -4)}.btn .icon-right{margin:0 calc(var(--tblr-btn-padding-x) / -4) 0 calc(var(--tblr-btn-padding-x) / 2)}.btn .badge{top:auto}.btn-check+.btn:hover{color:var(--tblr-btn-hover-color);background-color:var(--tblr-btn-hover-bg);border-color:var(--tblr-btn-hover-border-color)}.btn-link{color:#009f95;background-color:transparent;border-color:transparent;box-shadow:none}.btn-link .icon{color:inherit}.btn-link:hover{color:#006a64;border-color:transparent}.btn-primary{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-primary-fg);--tblr-btn-bg: var(--tblr-primary);--tblr-btn-hover-color: var(--tblr-primary-fg);--tblr-btn-hover-bg: rgba(var(--tblr-primary-rgb), .8);--tblr-btn-active-color: var(--tblr-primary-fg);--tblr-btn-active-bg: rgba(var(--tblr-primary-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-primary);--tblr-btn-disabled-color: var(--tblr-primary-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-primary{--tblr-btn-color: var(--tblr-primary);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-primary);--tblr-btn-hover-color: var(--tblr-primary-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-primary);--tblr-btn-active-color: var(--tblr-primary-fg);--tblr-btn-active-bg: var(--tblr-primary);--tblr-btn-disabled-color: var(--tblr-primary);--tblr-btn-disabled-border-color: var(--tblr-primary)}.btn-secondary{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-secondary-fg);--tblr-btn-bg: var(--tblr-secondary);--tblr-btn-hover-color: var(--tblr-secondary-fg);--tblr-btn-hover-bg: rgba(var(--tblr-secondary-rgb), .8);--tblr-btn-active-color: var(--tblr-secondary-fg);--tblr-btn-active-bg: rgba(var(--tblr-secondary-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-secondary);--tblr-btn-disabled-color: var(--tblr-secondary-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-secondary{--tblr-btn-color: var(--tblr-secondary);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-secondary);--tblr-btn-hover-color: var(--tblr-secondary-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-secondary);--tblr-btn-active-color: var(--tblr-secondary-fg);--tblr-btn-active-bg: var(--tblr-secondary);--tblr-btn-disabled-color: var(--tblr-secondary);--tblr-btn-disabled-border-color: var(--tblr-secondary)}.btn-success{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-success-fg);--tblr-btn-bg: var(--tblr-success);--tblr-btn-hover-color: var(--tblr-success-fg);--tblr-btn-hover-bg: rgba(var(--tblr-success-rgb), .8);--tblr-btn-active-color: var(--tblr-success-fg);--tblr-btn-active-bg: rgba(var(--tblr-success-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-success);--tblr-btn-disabled-color: var(--tblr-success-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-success{--tblr-btn-color: var(--tblr-success);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-success);--tblr-btn-hover-color: var(--tblr-success-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-success);--tblr-btn-active-color: var(--tblr-success-fg);--tblr-btn-active-bg: var(--tblr-success);--tblr-btn-disabled-color: var(--tblr-success);--tblr-btn-disabled-border-color: var(--tblr-success)}.btn-info{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-info-fg);--tblr-btn-bg: var(--tblr-info);--tblr-btn-hover-color: var(--tblr-info-fg);--tblr-btn-hover-bg: rgba(var(--tblr-info-rgb), .8);--tblr-btn-active-color: var(--tblr-info-fg);--tblr-btn-active-bg: rgba(var(--tblr-info-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-info);--tblr-btn-disabled-color: var(--tblr-info-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-info{--tblr-btn-color: var(--tblr-info);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-info);--tblr-btn-hover-color: var(--tblr-info-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-info);--tblr-btn-active-color: var(--tblr-info-fg);--tblr-btn-active-bg: var(--tblr-info);--tblr-btn-disabled-color: var(--tblr-info);--tblr-btn-disabled-border-color: var(--tblr-info)}.btn-warning{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-warning-fg);--tblr-btn-bg: var(--tblr-warning);--tblr-btn-hover-color: var(--tblr-warning-fg);--tblr-btn-hover-bg: rgba(var(--tblr-warning-rgb), .8);--tblr-btn-active-color: var(--tblr-warning-fg);--tblr-btn-active-bg: rgba(var(--tblr-warning-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-warning);--tblr-btn-disabled-color: var(--tblr-warning-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-warning{--tblr-btn-color: var(--tblr-warning);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-warning);--tblr-btn-hover-color: var(--tblr-warning-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-warning);--tblr-btn-active-color: var(--tblr-warning-fg);--tblr-btn-active-bg: var(--tblr-warning);--tblr-btn-disabled-color: var(--tblr-warning);--tblr-btn-disabled-border-color: var(--tblr-warning)}.btn-danger{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-danger-fg);--tblr-btn-bg: var(--tblr-danger);--tblr-btn-hover-color: var(--tblr-danger-fg);--tblr-btn-hover-bg: rgba(var(--tblr-danger-rgb), .8);--tblr-btn-active-color: var(--tblr-danger-fg);--tblr-btn-active-bg: rgba(var(--tblr-danger-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-danger);--tblr-btn-disabled-color: var(--tblr-danger-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-danger{--tblr-btn-color: var(--tblr-danger);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-danger);--tblr-btn-hover-color: var(--tblr-danger-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-danger);--tblr-btn-active-color: var(--tblr-danger-fg);--tblr-btn-active-bg: var(--tblr-danger);--tblr-btn-disabled-color: var(--tblr-danger);--tblr-btn-disabled-border-color: var(--tblr-danger)}.btn-light{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-light-fg);--tblr-btn-bg: var(--tblr-light);--tblr-btn-hover-color: var(--tblr-light-fg);--tblr-btn-hover-bg: rgba(var(--tblr-light-rgb), .8);--tblr-btn-active-color: var(--tblr-light-fg);--tblr-btn-active-bg: rgba(var(--tblr-light-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-light);--tblr-btn-disabled-color: var(--tblr-light-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-light{--tblr-btn-color: var(--tblr-light);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-light);--tblr-btn-hover-color: var(--tblr-light-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-light);--tblr-btn-active-color: var(--tblr-light-fg);--tblr-btn-active-bg: var(--tblr-light);--tblr-btn-disabled-color: var(--tblr-light);--tblr-btn-disabled-border-color: var(--tblr-light)}.btn-dark{--tblr-btn-border-color: var(--tblr-dark-mode-border-color);--tblr-btn-hover-border-color: var(--tblr-dark-mode-border-active-color);--tblr-btn-active-border-color: var(--tblr-dark-mode-border-active-color);--tblr-btn-color: var(--tblr-dark-fg);--tblr-btn-bg: var(--tblr-dark);--tblr-btn-hover-color: var(--tblr-dark-fg);--tblr-btn-hover-bg: rgba(var(--tblr-dark-rgb), .8);--tblr-btn-active-color: var(--tblr-dark-fg);--tblr-btn-active-bg: rgba(var(--tblr-dark-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-dark);--tblr-btn-disabled-color: var(--tblr-dark-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-dark{--tblr-btn-color: var(--tblr-dark);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-dark);--tblr-btn-hover-color: var(--tblr-dark-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-dark);--tblr-btn-active-color: var(--tblr-dark-fg);--tblr-btn-active-bg: var(--tblr-dark);--tblr-btn-disabled-color: var(--tblr-dark);--tblr-btn-disabled-border-color: var(--tblr-dark)}.btn-muted{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-muted-fg);--tblr-btn-bg: var(--tblr-muted);--tblr-btn-hover-color: var(--tblr-muted-fg);--tblr-btn-hover-bg: rgba(var(--tblr-muted-rgb), .8);--tblr-btn-active-color: var(--tblr-muted-fg);--tblr-btn-active-bg: rgba(var(--tblr-muted-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-muted);--tblr-btn-disabled-color: var(--tblr-muted-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-muted{--tblr-btn-color: var(--tblr-muted);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-muted);--tblr-btn-hover-color: var(--tblr-muted-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-muted);--tblr-btn-active-color: var(--tblr-muted-fg);--tblr-btn-active-bg: var(--tblr-muted);--tblr-btn-disabled-color: var(--tblr-muted);--tblr-btn-disabled-border-color: var(--tblr-muted)}.btn-blue{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-blue-fg);--tblr-btn-bg: var(--tblr-blue);--tblr-btn-hover-color: var(--tblr-blue-fg);--tblr-btn-hover-bg: rgba(var(--tblr-blue-rgb), .8);--tblr-btn-active-color: var(--tblr-blue-fg);--tblr-btn-active-bg: rgba(var(--tblr-blue-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-blue);--tblr-btn-disabled-color: var(--tblr-blue-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-blue{--tblr-btn-color: var(--tblr-blue);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-blue);--tblr-btn-hover-color: var(--tblr-blue-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-blue);--tblr-btn-active-color: var(--tblr-blue-fg);--tblr-btn-active-bg: var(--tblr-blue);--tblr-btn-disabled-color: var(--tblr-blue);--tblr-btn-disabled-border-color: var(--tblr-blue)}.btn-azure{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-azure-fg);--tblr-btn-bg: var(--tblr-azure);--tblr-btn-hover-color: var(--tblr-azure-fg);--tblr-btn-hover-bg: rgba(var(--tblr-azure-rgb), .8);--tblr-btn-active-color: var(--tblr-azure-fg);--tblr-btn-active-bg: rgba(var(--tblr-azure-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-azure);--tblr-btn-disabled-color: var(--tblr-azure-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-azure{--tblr-btn-color: var(--tblr-azure);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-azure);--tblr-btn-hover-color: var(--tblr-azure-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-azure);--tblr-btn-active-color: var(--tblr-azure-fg);--tblr-btn-active-bg: var(--tblr-azure);--tblr-btn-disabled-color: var(--tblr-azure);--tblr-btn-disabled-border-color: var(--tblr-azure)}.btn-indigo{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-indigo-fg);--tblr-btn-bg: var(--tblr-indigo);--tblr-btn-hover-color: var(--tblr-indigo-fg);--tblr-btn-hover-bg: rgba(var(--tblr-indigo-rgb), .8);--tblr-btn-active-color: var(--tblr-indigo-fg);--tblr-btn-active-bg: rgba(var(--tblr-indigo-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-indigo);--tblr-btn-disabled-color: var(--tblr-indigo-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-indigo{--tblr-btn-color: var(--tblr-indigo);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-indigo);--tblr-btn-hover-color: var(--tblr-indigo-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-indigo);--tblr-btn-active-color: var(--tblr-indigo-fg);--tblr-btn-active-bg: var(--tblr-indigo);--tblr-btn-disabled-color: var(--tblr-indigo);--tblr-btn-disabled-border-color: var(--tblr-indigo)}.btn-purple{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-purple-fg);--tblr-btn-bg: var(--tblr-purple);--tblr-btn-hover-color: var(--tblr-purple-fg);--tblr-btn-hover-bg: rgba(var(--tblr-purple-rgb), .8);--tblr-btn-active-color: var(--tblr-purple-fg);--tblr-btn-active-bg: rgba(var(--tblr-purple-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-purple);--tblr-btn-disabled-color: var(--tblr-purple-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-purple{--tblr-btn-color: var(--tblr-purple);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-purple);--tblr-btn-hover-color: var(--tblr-purple-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-purple);--tblr-btn-active-color: var(--tblr-purple-fg);--tblr-btn-active-bg: var(--tblr-purple);--tblr-btn-disabled-color: var(--tblr-purple);--tblr-btn-disabled-border-color: var(--tblr-purple)}.btn-pink{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-pink-fg);--tblr-btn-bg: var(--tblr-pink);--tblr-btn-hover-color: var(--tblr-pink-fg);--tblr-btn-hover-bg: rgba(var(--tblr-pink-rgb), .8);--tblr-btn-active-color: var(--tblr-pink-fg);--tblr-btn-active-bg: rgba(var(--tblr-pink-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-pink);--tblr-btn-disabled-color: var(--tblr-pink-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-pink{--tblr-btn-color: var(--tblr-pink);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-pink);--tblr-btn-hover-color: var(--tblr-pink-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-pink);--tblr-btn-active-color: var(--tblr-pink-fg);--tblr-btn-active-bg: var(--tblr-pink);--tblr-btn-disabled-color: var(--tblr-pink);--tblr-btn-disabled-border-color: var(--tblr-pink)}.btn-red{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-red-fg);--tblr-btn-bg: var(--tblr-red);--tblr-btn-hover-color: var(--tblr-red-fg);--tblr-btn-hover-bg: rgba(var(--tblr-red-rgb), .8);--tblr-btn-active-color: var(--tblr-red-fg);--tblr-btn-active-bg: rgba(var(--tblr-red-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-red);--tblr-btn-disabled-color: var(--tblr-red-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-red{--tblr-btn-color: var(--tblr-red);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-red);--tblr-btn-hover-color: var(--tblr-red-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-red);--tblr-btn-active-color: var(--tblr-red-fg);--tblr-btn-active-bg: var(--tblr-red);--tblr-btn-disabled-color: var(--tblr-red);--tblr-btn-disabled-border-color: var(--tblr-red)}.btn-orange{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-orange-fg);--tblr-btn-bg: var(--tblr-orange);--tblr-btn-hover-color: var(--tblr-orange-fg);--tblr-btn-hover-bg: rgba(var(--tblr-orange-rgb), .8);--tblr-btn-active-color: var(--tblr-orange-fg);--tblr-btn-active-bg: rgba(var(--tblr-orange-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-orange);--tblr-btn-disabled-color: var(--tblr-orange-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-orange{--tblr-btn-color: var(--tblr-orange);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-orange);--tblr-btn-hover-color: var(--tblr-orange-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-orange);--tblr-btn-active-color: var(--tblr-orange-fg);--tblr-btn-active-bg: var(--tblr-orange);--tblr-btn-disabled-color: var(--tblr-orange);--tblr-btn-disabled-border-color: var(--tblr-orange)}.btn-yellow{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-yellow-fg);--tblr-btn-bg: var(--tblr-yellow);--tblr-btn-hover-color: var(--tblr-yellow-fg);--tblr-btn-hover-bg: rgba(var(--tblr-yellow-rgb), .8);--tblr-btn-active-color: var(--tblr-yellow-fg);--tblr-btn-active-bg: rgba(var(--tblr-yellow-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-yellow);--tblr-btn-disabled-color: var(--tblr-yellow-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-yellow{--tblr-btn-color: var(--tblr-yellow);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-yellow);--tblr-btn-hover-color: var(--tblr-yellow-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-yellow);--tblr-btn-active-color: var(--tblr-yellow-fg);--tblr-btn-active-bg: var(--tblr-yellow);--tblr-btn-disabled-color: var(--tblr-yellow);--tblr-btn-disabled-border-color: var(--tblr-yellow)}.btn-lime{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-lime-fg);--tblr-btn-bg: var(--tblr-lime);--tblr-btn-hover-color: var(--tblr-lime-fg);--tblr-btn-hover-bg: rgba(var(--tblr-lime-rgb), .8);--tblr-btn-active-color: var(--tblr-lime-fg);--tblr-btn-active-bg: rgba(var(--tblr-lime-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-lime);--tblr-btn-disabled-color: var(--tblr-lime-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-lime{--tblr-btn-color: var(--tblr-lime);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-lime);--tblr-btn-hover-color: var(--tblr-lime-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-lime);--tblr-btn-active-color: var(--tblr-lime-fg);--tblr-btn-active-bg: var(--tblr-lime);--tblr-btn-disabled-color: var(--tblr-lime);--tblr-btn-disabled-border-color: var(--tblr-lime)}.btn-green{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-green-fg);--tblr-btn-bg: var(--tblr-green);--tblr-btn-hover-color: var(--tblr-green-fg);--tblr-btn-hover-bg: rgba(var(--tblr-green-rgb), .8);--tblr-btn-active-color: var(--tblr-green-fg);--tblr-btn-active-bg: rgba(var(--tblr-green-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-green);--tblr-btn-disabled-color: var(--tblr-green-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-green{--tblr-btn-color: var(--tblr-green);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-green);--tblr-btn-hover-color: var(--tblr-green-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-green);--tblr-btn-active-color: var(--tblr-green-fg);--tblr-btn-active-bg: var(--tblr-green);--tblr-btn-disabled-color: var(--tblr-green);--tblr-btn-disabled-border-color: var(--tblr-green)}.btn-teal{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-teal-fg);--tblr-btn-bg: var(--tblr-teal);--tblr-btn-hover-color: var(--tblr-teal-fg);--tblr-btn-hover-bg: rgba(var(--tblr-teal-rgb), .8);--tblr-btn-active-color: var(--tblr-teal-fg);--tblr-btn-active-bg: rgba(var(--tblr-teal-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-teal);--tblr-btn-disabled-color: var(--tblr-teal-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-teal{--tblr-btn-color: var(--tblr-teal);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-teal);--tblr-btn-hover-color: var(--tblr-teal-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-teal);--tblr-btn-active-color: var(--tblr-teal-fg);--tblr-btn-active-bg: var(--tblr-teal);--tblr-btn-disabled-color: var(--tblr-teal);--tblr-btn-disabled-border-color: var(--tblr-teal)}.btn-cyan{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-cyan-fg);--tblr-btn-bg: var(--tblr-cyan);--tblr-btn-hover-color: var(--tblr-cyan-fg);--tblr-btn-hover-bg: rgba(var(--tblr-cyan-rgb), .8);--tblr-btn-active-color: var(--tblr-cyan-fg);--tblr-btn-active-bg: rgba(var(--tblr-cyan-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-cyan);--tblr-btn-disabled-color: var(--tblr-cyan-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-cyan{--tblr-btn-color: var(--tblr-cyan);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-cyan);--tblr-btn-hover-color: var(--tblr-cyan-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-cyan);--tblr-btn-active-color: var(--tblr-cyan-fg);--tblr-btn-active-bg: var(--tblr-cyan);--tblr-btn-disabled-color: var(--tblr-cyan);--tblr-btn-disabled-border-color: var(--tblr-cyan)}.btn-x{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-x-fg);--tblr-btn-bg: var(--tblr-x);--tblr-btn-hover-color: var(--tblr-x-fg);--tblr-btn-hover-bg: rgba(var(--tblr-x-rgb), .8);--tblr-btn-active-color: var(--tblr-x-fg);--tblr-btn-active-bg: rgba(var(--tblr-x-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-x);--tblr-btn-disabled-color: var(--tblr-x-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-x{--tblr-btn-color: var(--tblr-x);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-x);--tblr-btn-hover-color: var(--tblr-x-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-x);--tblr-btn-active-color: var(--tblr-x-fg);--tblr-btn-active-bg: var(--tblr-x);--tblr-btn-disabled-color: var(--tblr-x);--tblr-btn-disabled-border-color: var(--tblr-x)}.btn-facebook{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-facebook-fg);--tblr-btn-bg: var(--tblr-facebook);--tblr-btn-hover-color: var(--tblr-facebook-fg);--tblr-btn-hover-bg: rgba(var(--tblr-facebook-rgb), .8);--tblr-btn-active-color: var(--tblr-facebook-fg);--tblr-btn-active-bg: rgba(var(--tblr-facebook-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-facebook);--tblr-btn-disabled-color: var(--tblr-facebook-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-facebook{--tblr-btn-color: var(--tblr-facebook);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-facebook);--tblr-btn-hover-color: var(--tblr-facebook-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-facebook);--tblr-btn-active-color: var(--tblr-facebook-fg);--tblr-btn-active-bg: var(--tblr-facebook);--tblr-btn-disabled-color: var(--tblr-facebook);--tblr-btn-disabled-border-color: var(--tblr-facebook)}.btn-twitter{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-twitter-fg);--tblr-btn-bg: var(--tblr-twitter);--tblr-btn-hover-color: var(--tblr-twitter-fg);--tblr-btn-hover-bg: rgba(var(--tblr-twitter-rgb), .8);--tblr-btn-active-color: var(--tblr-twitter-fg);--tblr-btn-active-bg: rgba(var(--tblr-twitter-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-twitter);--tblr-btn-disabled-color: var(--tblr-twitter-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-twitter{--tblr-btn-color: var(--tblr-twitter);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-twitter);--tblr-btn-hover-color: var(--tblr-twitter-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-twitter);--tblr-btn-active-color: var(--tblr-twitter-fg);--tblr-btn-active-bg: var(--tblr-twitter);--tblr-btn-disabled-color: var(--tblr-twitter);--tblr-btn-disabled-border-color: var(--tblr-twitter)}.btn-linkedin{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-linkedin-fg);--tblr-btn-bg: var(--tblr-linkedin);--tblr-btn-hover-color: var(--tblr-linkedin-fg);--tblr-btn-hover-bg: rgba(var(--tblr-linkedin-rgb), .8);--tblr-btn-active-color: var(--tblr-linkedin-fg);--tblr-btn-active-bg: rgba(var(--tblr-linkedin-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-linkedin);--tblr-btn-disabled-color: var(--tblr-linkedin-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-linkedin{--tblr-btn-color: var(--tblr-linkedin);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-linkedin);--tblr-btn-hover-color: var(--tblr-linkedin-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-linkedin);--tblr-btn-active-color: var(--tblr-linkedin-fg);--tblr-btn-active-bg: var(--tblr-linkedin);--tblr-btn-disabled-color: var(--tblr-linkedin);--tblr-btn-disabled-border-color: var(--tblr-linkedin)}.btn-google{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-google-fg);--tblr-btn-bg: var(--tblr-google);--tblr-btn-hover-color: var(--tblr-google-fg);--tblr-btn-hover-bg: rgba(var(--tblr-google-rgb), .8);--tblr-btn-active-color: var(--tblr-google-fg);--tblr-btn-active-bg: rgba(var(--tblr-google-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-google);--tblr-btn-disabled-color: var(--tblr-google-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-google{--tblr-btn-color: var(--tblr-google);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-google);--tblr-btn-hover-color: var(--tblr-google-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-google);--tblr-btn-active-color: var(--tblr-google-fg);--tblr-btn-active-bg: var(--tblr-google);--tblr-btn-disabled-color: var(--tblr-google);--tblr-btn-disabled-border-color: var(--tblr-google)}.btn-youtube{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-youtube-fg);--tblr-btn-bg: var(--tblr-youtube);--tblr-btn-hover-color: var(--tblr-youtube-fg);--tblr-btn-hover-bg: rgba(var(--tblr-youtube-rgb), .8);--tblr-btn-active-color: var(--tblr-youtube-fg);--tblr-btn-active-bg: rgba(var(--tblr-youtube-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-youtube);--tblr-btn-disabled-color: var(--tblr-youtube-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-youtube{--tblr-btn-color: var(--tblr-youtube);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-youtube);--tblr-btn-hover-color: var(--tblr-youtube-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-youtube);--tblr-btn-active-color: var(--tblr-youtube-fg);--tblr-btn-active-bg: var(--tblr-youtube);--tblr-btn-disabled-color: var(--tblr-youtube);--tblr-btn-disabled-border-color: var(--tblr-youtube)}.btn-vimeo{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-vimeo-fg);--tblr-btn-bg: var(--tblr-vimeo);--tblr-btn-hover-color: var(--tblr-vimeo-fg);--tblr-btn-hover-bg: rgba(var(--tblr-vimeo-rgb), .8);--tblr-btn-active-color: var(--tblr-vimeo-fg);--tblr-btn-active-bg: rgba(var(--tblr-vimeo-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-vimeo);--tblr-btn-disabled-color: var(--tblr-vimeo-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-vimeo{--tblr-btn-color: var(--tblr-vimeo);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-vimeo);--tblr-btn-hover-color: var(--tblr-vimeo-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-vimeo);--tblr-btn-active-color: var(--tblr-vimeo-fg);--tblr-btn-active-bg: var(--tblr-vimeo);--tblr-btn-disabled-color: var(--tblr-vimeo);--tblr-btn-disabled-border-color: var(--tblr-vimeo)}.btn-dribbble{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-dribbble-fg);--tblr-btn-bg: var(--tblr-dribbble);--tblr-btn-hover-color: var(--tblr-dribbble-fg);--tblr-btn-hover-bg: rgba(var(--tblr-dribbble-rgb), .8);--tblr-btn-active-color: var(--tblr-dribbble-fg);--tblr-btn-active-bg: rgba(var(--tblr-dribbble-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-dribbble);--tblr-btn-disabled-color: var(--tblr-dribbble-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-dribbble{--tblr-btn-color: var(--tblr-dribbble);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-dribbble);--tblr-btn-hover-color: var(--tblr-dribbble-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-dribbble);--tblr-btn-active-color: var(--tblr-dribbble-fg);--tblr-btn-active-bg: var(--tblr-dribbble);--tblr-btn-disabled-color: var(--tblr-dribbble);--tblr-btn-disabled-border-color: var(--tblr-dribbble)}.btn-github{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-github-fg);--tblr-btn-bg: var(--tblr-github);--tblr-btn-hover-color: var(--tblr-github-fg);--tblr-btn-hover-bg: rgba(var(--tblr-github-rgb), .8);--tblr-btn-active-color: var(--tblr-github-fg);--tblr-btn-active-bg: rgba(var(--tblr-github-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-github);--tblr-btn-disabled-color: var(--tblr-github-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-github{--tblr-btn-color: var(--tblr-github);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-github);--tblr-btn-hover-color: var(--tblr-github-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-github);--tblr-btn-active-color: var(--tblr-github-fg);--tblr-btn-active-bg: var(--tblr-github);--tblr-btn-disabled-color: var(--tblr-github);--tblr-btn-disabled-border-color: var(--tblr-github)}.btn-instagram{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-instagram-fg);--tblr-btn-bg: var(--tblr-instagram);--tblr-btn-hover-color: var(--tblr-instagram-fg);--tblr-btn-hover-bg: rgba(var(--tblr-instagram-rgb), .8);--tblr-btn-active-color: var(--tblr-instagram-fg);--tblr-btn-active-bg: rgba(var(--tblr-instagram-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-instagram);--tblr-btn-disabled-color: var(--tblr-instagram-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-instagram{--tblr-btn-color: var(--tblr-instagram);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-instagram);--tblr-btn-hover-color: var(--tblr-instagram-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-instagram);--tblr-btn-active-color: var(--tblr-instagram-fg);--tblr-btn-active-bg: var(--tblr-instagram);--tblr-btn-disabled-color: var(--tblr-instagram);--tblr-btn-disabled-border-color: var(--tblr-instagram)}.btn-pinterest{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-pinterest-fg);--tblr-btn-bg: var(--tblr-pinterest);--tblr-btn-hover-color: var(--tblr-pinterest-fg);--tblr-btn-hover-bg: rgba(var(--tblr-pinterest-rgb), .8);--tblr-btn-active-color: var(--tblr-pinterest-fg);--tblr-btn-active-bg: rgba(var(--tblr-pinterest-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-pinterest);--tblr-btn-disabled-color: var(--tblr-pinterest-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-pinterest{--tblr-btn-color: var(--tblr-pinterest);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-pinterest);--tblr-btn-hover-color: var(--tblr-pinterest-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-pinterest);--tblr-btn-active-color: var(--tblr-pinterest-fg);--tblr-btn-active-bg: var(--tblr-pinterest);--tblr-btn-disabled-color: var(--tblr-pinterest);--tblr-btn-disabled-border-color: var(--tblr-pinterest)}.btn-vk{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-vk-fg);--tblr-btn-bg: var(--tblr-vk);--tblr-btn-hover-color: var(--tblr-vk-fg);--tblr-btn-hover-bg: rgba(var(--tblr-vk-rgb), .8);--tblr-btn-active-color: var(--tblr-vk-fg);--tblr-btn-active-bg: rgba(var(--tblr-vk-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-vk);--tblr-btn-disabled-color: var(--tblr-vk-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-vk{--tblr-btn-color: var(--tblr-vk);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-vk);--tblr-btn-hover-color: var(--tblr-vk-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-vk);--tblr-btn-active-color: var(--tblr-vk-fg);--tblr-btn-active-bg: var(--tblr-vk);--tblr-btn-disabled-color: var(--tblr-vk);--tblr-btn-disabled-border-color: var(--tblr-vk)}.btn-rss{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-rss-fg);--tblr-btn-bg: var(--tblr-rss);--tblr-btn-hover-color: var(--tblr-rss-fg);--tblr-btn-hover-bg: rgba(var(--tblr-rss-rgb), .8);--tblr-btn-active-color: var(--tblr-rss-fg);--tblr-btn-active-bg: rgba(var(--tblr-rss-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-rss);--tblr-btn-disabled-color: var(--tblr-rss-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-rss{--tblr-btn-color: var(--tblr-rss);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-rss);--tblr-btn-hover-color: var(--tblr-rss-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-rss);--tblr-btn-active-color: var(--tblr-rss-fg);--tblr-btn-active-bg: var(--tblr-rss);--tblr-btn-disabled-color: var(--tblr-rss);--tblr-btn-disabled-border-color: var(--tblr-rss)}.btn-flickr{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-flickr-fg);--tblr-btn-bg: var(--tblr-flickr);--tblr-btn-hover-color: var(--tblr-flickr-fg);--tblr-btn-hover-bg: rgba(var(--tblr-flickr-rgb), .8);--tblr-btn-active-color: var(--tblr-flickr-fg);--tblr-btn-active-bg: rgba(var(--tblr-flickr-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-flickr);--tblr-btn-disabled-color: var(--tblr-flickr-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-flickr{--tblr-btn-color: var(--tblr-flickr);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-flickr);--tblr-btn-hover-color: var(--tblr-flickr-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-flickr);--tblr-btn-active-color: var(--tblr-flickr-fg);--tblr-btn-active-bg: var(--tblr-flickr);--tblr-btn-disabled-color: var(--tblr-flickr);--tblr-btn-disabled-border-color: var(--tblr-flickr)}.btn-bitbucket{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-bitbucket-fg);--tblr-btn-bg: var(--tblr-bitbucket);--tblr-btn-hover-color: var(--tblr-bitbucket-fg);--tblr-btn-hover-bg: rgba(var(--tblr-bitbucket-rgb), .8);--tblr-btn-active-color: var(--tblr-bitbucket-fg);--tblr-btn-active-bg: rgba(var(--tblr-bitbucket-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-bitbucket);--tblr-btn-disabled-color: var(--tblr-bitbucket-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-bitbucket{--tblr-btn-color: var(--tblr-bitbucket);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-bitbucket);--tblr-btn-hover-color: var(--tblr-bitbucket-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-bitbucket);--tblr-btn-active-color: var(--tblr-bitbucket-fg);--tblr-btn-active-bg: var(--tblr-bitbucket);--tblr-btn-disabled-color: var(--tblr-bitbucket);--tblr-btn-disabled-border-color: var(--tblr-bitbucket)}.btn-tabler{--tblr-btn-border-color: transparent;--tblr-btn-hover-border-color: transparent;--tblr-btn-active-border-color: transparent;--tblr-btn-color: var(--tblr-tabler-fg);--tblr-btn-bg: var(--tblr-tabler);--tblr-btn-hover-color: var(--tblr-tabler-fg);--tblr-btn-hover-bg: rgba(var(--tblr-tabler-rgb), .8);--tblr-btn-active-color: var(--tblr-tabler-fg);--tblr-btn-active-bg: rgba(var(--tblr-tabler-rgb), .8);--tblr-btn-disabled-bg: var(--tblr-tabler);--tblr-btn-disabled-color: var(--tblr-tabler-fg);--tblr-btn-box-shadow: var(--tblr-box-shadow-input)}.btn-outline-tabler{--tblr-btn-color: var(--tblr-tabler);--tblr-btn-bg: transparent;--tblr-btn-border-color: var(--tblr-tabler);--tblr-btn-hover-color: var(--tblr-tabler-fg);--tblr-btn-hover-border-color: transparent;--tblr-btn-hover-bg: var(--tblr-tabler);--tblr-btn-active-color: var(--tblr-tabler-fg);--tblr-btn-active-bg: var(--tblr-tabler);--tblr-btn-disabled-color: var(--tblr-tabler);--tblr-btn-disabled-border-color: var(--tblr-tabler)}.btn-ghost-primary{--tblr-btn-color: var(--tblr-primary);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-primary-fg);--tblr-btn-hover-bg: var(--tblr-primary);--tblr-btn-hover-border-color: var(--tblr-primary);--tblr-btn-active-color: var(--tblr-primary-fg);--tblr-btn-active-bg: var(--tblr-primary);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-primary);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-secondary{--tblr-btn-color: var(--tblr-secondary);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-secondary-fg);--tblr-btn-hover-bg: var(--tblr-secondary);--tblr-btn-hover-border-color: var(--tblr-secondary);--tblr-btn-active-color: var(--tblr-secondary-fg);--tblr-btn-active-bg: var(--tblr-secondary);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-secondary);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-success{--tblr-btn-color: var(--tblr-success);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-success-fg);--tblr-btn-hover-bg: var(--tblr-success);--tblr-btn-hover-border-color: var(--tblr-success);--tblr-btn-active-color: var(--tblr-success-fg);--tblr-btn-active-bg: var(--tblr-success);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-success);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-info{--tblr-btn-color: var(--tblr-info);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-info-fg);--tblr-btn-hover-bg: var(--tblr-info);--tblr-btn-hover-border-color: var(--tblr-info);--tblr-btn-active-color: var(--tblr-info-fg);--tblr-btn-active-bg: var(--tblr-info);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-info);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-warning{--tblr-btn-color: var(--tblr-warning);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-warning-fg);--tblr-btn-hover-bg: var(--tblr-warning);--tblr-btn-hover-border-color: var(--tblr-warning);--tblr-btn-active-color: var(--tblr-warning-fg);--tblr-btn-active-bg: var(--tblr-warning);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-warning);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-danger{--tblr-btn-color: var(--tblr-danger);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-danger-fg);--tblr-btn-hover-bg: var(--tblr-danger);--tblr-btn-hover-border-color: var(--tblr-danger);--tblr-btn-active-color: var(--tblr-danger-fg);--tblr-btn-active-bg: var(--tblr-danger);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-danger);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-light{--tblr-btn-color: var(--tblr-light);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-light-fg);--tblr-btn-hover-bg: var(--tblr-light);--tblr-btn-hover-border-color: var(--tblr-light);--tblr-btn-active-color: var(--tblr-light-fg);--tblr-btn-active-bg: var(--tblr-light);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-light);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-dark{--tblr-btn-color: var(--tblr-dark);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-dark-fg);--tblr-btn-hover-bg: var(--tblr-dark);--tblr-btn-hover-border-color: var(--tblr-dark);--tblr-btn-active-color: var(--tblr-dark-fg);--tblr-btn-active-bg: var(--tblr-dark);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-dark);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-muted{--tblr-btn-color: var(--tblr-muted);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-muted-fg);--tblr-btn-hover-bg: var(--tblr-muted);--tblr-btn-hover-border-color: var(--tblr-muted);--tblr-btn-active-color: var(--tblr-muted-fg);--tblr-btn-active-bg: var(--tblr-muted);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-muted);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-blue{--tblr-btn-color: var(--tblr-blue);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-blue-fg);--tblr-btn-hover-bg: var(--tblr-blue);--tblr-btn-hover-border-color: var(--tblr-blue);--tblr-btn-active-color: var(--tblr-blue-fg);--tblr-btn-active-bg: var(--tblr-blue);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-blue);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-azure{--tblr-btn-color: var(--tblr-azure);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-azure-fg);--tblr-btn-hover-bg: var(--tblr-azure);--tblr-btn-hover-border-color: var(--tblr-azure);--tblr-btn-active-color: var(--tblr-azure-fg);--tblr-btn-active-bg: var(--tblr-azure);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-azure);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-indigo{--tblr-btn-color: var(--tblr-indigo);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-indigo-fg);--tblr-btn-hover-bg: var(--tblr-indigo);--tblr-btn-hover-border-color: var(--tblr-indigo);--tblr-btn-active-color: var(--tblr-indigo-fg);--tblr-btn-active-bg: var(--tblr-indigo);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-indigo);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-purple{--tblr-btn-color: var(--tblr-purple);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-purple-fg);--tblr-btn-hover-bg: var(--tblr-purple);--tblr-btn-hover-border-color: var(--tblr-purple);--tblr-btn-active-color: var(--tblr-purple-fg);--tblr-btn-active-bg: var(--tblr-purple);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-purple);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-pink{--tblr-btn-color: var(--tblr-pink);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-pink-fg);--tblr-btn-hover-bg: var(--tblr-pink);--tblr-btn-hover-border-color: var(--tblr-pink);--tblr-btn-active-color: var(--tblr-pink-fg);--tblr-btn-active-bg: var(--tblr-pink);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-pink);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-red{--tblr-btn-color: var(--tblr-red);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-red-fg);--tblr-btn-hover-bg: var(--tblr-red);--tblr-btn-hover-border-color: var(--tblr-red);--tblr-btn-active-color: var(--tblr-red-fg);--tblr-btn-active-bg: var(--tblr-red);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-red);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-orange{--tblr-btn-color: var(--tblr-orange);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-orange-fg);--tblr-btn-hover-bg: var(--tblr-orange);--tblr-btn-hover-border-color: var(--tblr-orange);--tblr-btn-active-color: var(--tblr-orange-fg);--tblr-btn-active-bg: var(--tblr-orange);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-orange);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-yellow{--tblr-btn-color: var(--tblr-yellow);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-yellow-fg);--tblr-btn-hover-bg: var(--tblr-yellow);--tblr-btn-hover-border-color: var(--tblr-yellow);--tblr-btn-active-color: var(--tblr-yellow-fg);--tblr-btn-active-bg: var(--tblr-yellow);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-yellow);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-lime{--tblr-btn-color: var(--tblr-lime);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-lime-fg);--tblr-btn-hover-bg: var(--tblr-lime);--tblr-btn-hover-border-color: var(--tblr-lime);--tblr-btn-active-color: var(--tblr-lime-fg);--tblr-btn-active-bg: var(--tblr-lime);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-lime);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-green{--tblr-btn-color: var(--tblr-green);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-green-fg);--tblr-btn-hover-bg: var(--tblr-green);--tblr-btn-hover-border-color: var(--tblr-green);--tblr-btn-active-color: var(--tblr-green-fg);--tblr-btn-active-bg: var(--tblr-green);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-green);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-teal{--tblr-btn-color: var(--tblr-teal);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-teal-fg);--tblr-btn-hover-bg: var(--tblr-teal);--tblr-btn-hover-border-color: var(--tblr-teal);--tblr-btn-active-color: var(--tblr-teal-fg);--tblr-btn-active-bg: var(--tblr-teal);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-teal);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-cyan{--tblr-btn-color: var(--tblr-cyan);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-cyan-fg);--tblr-btn-hover-bg: var(--tblr-cyan);--tblr-btn-hover-border-color: var(--tblr-cyan);--tblr-btn-active-color: var(--tblr-cyan-fg);--tblr-btn-active-bg: var(--tblr-cyan);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-cyan);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-x{--tblr-btn-color: var(--tblr-x);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-x-fg);--tblr-btn-hover-bg: var(--tblr-x);--tblr-btn-hover-border-color: var(--tblr-x);--tblr-btn-active-color: var(--tblr-x-fg);--tblr-btn-active-bg: var(--tblr-x);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-x);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-facebook{--tblr-btn-color: var(--tblr-facebook);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-facebook-fg);--tblr-btn-hover-bg: var(--tblr-facebook);--tblr-btn-hover-border-color: var(--tblr-facebook);--tblr-btn-active-color: var(--tblr-facebook-fg);--tblr-btn-active-bg: var(--tblr-facebook);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-facebook);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-twitter{--tblr-btn-color: var(--tblr-twitter);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-twitter-fg);--tblr-btn-hover-bg: var(--tblr-twitter);--tblr-btn-hover-border-color: var(--tblr-twitter);--tblr-btn-active-color: var(--tblr-twitter-fg);--tblr-btn-active-bg: var(--tblr-twitter);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-twitter);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-linkedin{--tblr-btn-color: var(--tblr-linkedin);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-linkedin-fg);--tblr-btn-hover-bg: var(--tblr-linkedin);--tblr-btn-hover-border-color: var(--tblr-linkedin);--tblr-btn-active-color: var(--tblr-linkedin-fg);--tblr-btn-active-bg: var(--tblr-linkedin);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-linkedin);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-google{--tblr-btn-color: var(--tblr-google);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-google-fg);--tblr-btn-hover-bg: var(--tblr-google);--tblr-btn-hover-border-color: var(--tblr-google);--tblr-btn-active-color: var(--tblr-google-fg);--tblr-btn-active-bg: var(--tblr-google);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-google);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-youtube{--tblr-btn-color: var(--tblr-youtube);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-youtube-fg);--tblr-btn-hover-bg: var(--tblr-youtube);--tblr-btn-hover-border-color: var(--tblr-youtube);--tblr-btn-active-color: var(--tblr-youtube-fg);--tblr-btn-active-bg: var(--tblr-youtube);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-youtube);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-vimeo{--tblr-btn-color: var(--tblr-vimeo);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-vimeo-fg);--tblr-btn-hover-bg: var(--tblr-vimeo);--tblr-btn-hover-border-color: var(--tblr-vimeo);--tblr-btn-active-color: var(--tblr-vimeo-fg);--tblr-btn-active-bg: var(--tblr-vimeo);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-vimeo);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-dribbble{--tblr-btn-color: var(--tblr-dribbble);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-dribbble-fg);--tblr-btn-hover-bg: var(--tblr-dribbble);--tblr-btn-hover-border-color: var(--tblr-dribbble);--tblr-btn-active-color: var(--tblr-dribbble-fg);--tblr-btn-active-bg: var(--tblr-dribbble);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-dribbble);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-github{--tblr-btn-color: var(--tblr-github);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-github-fg);--tblr-btn-hover-bg: var(--tblr-github);--tblr-btn-hover-border-color: var(--tblr-github);--tblr-btn-active-color: var(--tblr-github-fg);--tblr-btn-active-bg: var(--tblr-github);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-github);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-instagram{--tblr-btn-color: var(--tblr-instagram);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-instagram-fg);--tblr-btn-hover-bg: var(--tblr-instagram);--tblr-btn-hover-border-color: var(--tblr-instagram);--tblr-btn-active-color: var(--tblr-instagram-fg);--tblr-btn-active-bg: var(--tblr-instagram);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-instagram);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-pinterest{--tblr-btn-color: var(--tblr-pinterest);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-pinterest-fg);--tblr-btn-hover-bg: var(--tblr-pinterest);--tblr-btn-hover-border-color: var(--tblr-pinterest);--tblr-btn-active-color: var(--tblr-pinterest-fg);--tblr-btn-active-bg: var(--tblr-pinterest);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-pinterest);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-vk{--tblr-btn-color: var(--tblr-vk);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-vk-fg);--tblr-btn-hover-bg: var(--tblr-vk);--tblr-btn-hover-border-color: var(--tblr-vk);--tblr-btn-active-color: var(--tblr-vk-fg);--tblr-btn-active-bg: var(--tblr-vk);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-vk);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-rss{--tblr-btn-color: var(--tblr-rss);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-rss-fg);--tblr-btn-hover-bg: var(--tblr-rss);--tblr-btn-hover-border-color: var(--tblr-rss);--tblr-btn-active-color: var(--tblr-rss-fg);--tblr-btn-active-bg: var(--tblr-rss);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-rss);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-flickr{--tblr-btn-color: var(--tblr-flickr);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-flickr-fg);--tblr-btn-hover-bg: var(--tblr-flickr);--tblr-btn-hover-border-color: var(--tblr-flickr);--tblr-btn-active-color: var(--tblr-flickr-fg);--tblr-btn-active-bg: var(--tblr-flickr);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-flickr);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-bitbucket{--tblr-btn-color: var(--tblr-bitbucket);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-bitbucket-fg);--tblr-btn-hover-bg: var(--tblr-bitbucket);--tblr-btn-hover-border-color: var(--tblr-bitbucket);--tblr-btn-active-color: var(--tblr-bitbucket-fg);--tblr-btn-active-bg: var(--tblr-bitbucket);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-bitbucket);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-ghost-tabler{--tblr-btn-color: var(--tblr-tabler);--tblr-btn-bg: transparent;--tblr-btn-border-color: transparent;--tblr-btn-hover-color: var(--tblr-tabler-fg);--tblr-btn-hover-bg: var(--tblr-tabler);--tblr-btn-hover-border-color: var(--tblr-tabler);--tblr-btn-active-color: var(--tblr-tabler-fg);--tblr-btn-active-bg: var(--tblr-tabler);--tblr-btn-active-border-color: transparent;--tblr-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--tblr-btn-disabled-color: var(--tblr-tabler);--tblr-btn-disabled-bg: transparent;--tblr-btn-disabled-border-color: transparent;--tblr-gradient: none;--tblr-btn-box-shadow: none}.btn-sm,.btn-group-sm>.btn{--tblr-btn-line-height: 1.5;--tblr-btn-icon-size: .75rem}.btn-lg,.btn-group-lg>.btn{--tblr-btn-line-height: 1.5;--tblr-btn-icon-size: 2rem}.btn-pill{padding-right:1.5em;padding-left:1.5em;border-radius:10rem}.btn-pill[class*=btn-icon]{padding:.375rem 15px}.btn-square{border-radius:0}.btn-icon{min-width:calc(var(--tblr-btn-line-height) * var(--tblr-btn-font-size) + var(--tblr-btn-padding-y) * 2 + var(--tblr-btn-border-width) * 2);min-height:calc(var(--tblr-btn-line-height) * var(--tblr-btn-font-size) + var(--tblr-btn-padding-y) * 2 + var(--tblr-btn-border-width) * 2);padding-left:0;padding-right:0}.btn-icon .icon{margin:calc(-1 * var(--tblr-btn-padding-x))}.btn-list{--tblr-list-gap: .5rem;display:flex;flex-wrap:wrap;gap:var(--tblr-list-gap)}.btn-floating{position:fixed;z-index:1030;bottom:1.5rem;right:1.5rem;border-radius:100rem}.btn-loading{position:relative;color:transparent!important;text-shadow:none!important;pointer-events:none}.btn-loading>*{opacity:0}.btn-loading:after{content:"";display:inline-block;vertical-align:text-bottom;border:2px var(--tblr-border-style) currentColor;border-right-color:transparent;border-radius:100rem;color:var(--tblr-btn-color);position:absolute;width:var(--tblr-btn-icon-size);height:var(--tblr-btn-icon-size);left:calc(50% - var(--tblr-btn-icon-size) / 2);top:calc(50% - var(--tblr-btn-icon-size) / 2);animation:spinner-border .75s linear infinite}.btn-action{padding:0;border:0;color:var(--tblr-secondary);display:inline-flex;width:2rem;height:2rem;align-items:center;justify-content:center;border-radius:var(--tblr-border-radius);background:transparent}.btn-action:after{content:none}.btn-action:focus{outline:none;box-shadow:none}.btn-action:hover,.btn-action.show{color:var(--tblr-body-color);background:var(--tblr-active-bg)}.btn-action.show{color:var(--tblr-primary)}.btn-action .icon{margin:0;width:1.25rem;height:1.25rem;font-size:1.25rem;stroke-width:1}.btn-actions{display:flex}.btn-group,.btn-group-vertical{box-shadow:var(--tblr-box-shadow-input)}.btn-group>.btn-check:checked+.btn,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:5}.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus{z-index:1}.calendar{display:block;font-size:.765625rem;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.calendar-nav{display:flex;align-items:center}.calendar-title{flex:1;text-align:center}.calendar-body,.calendar-header{display:flex;flex-wrap:wrap;justify-content:flex-start;padding:.5rem 0}.calendar-header{color:var(--tblr-secondary)}.calendar-date{flex:0 0 14.2857142857%;max-width:14.2857142857%;padding:.2rem;text-align:center;border:0}.calendar-date.prev-month,.calendar-date.next-month{opacity:.25}.calendar-date .date-item{position:relative;display:inline-block;width:1.4rem;height:1.4rem;line-height:1.4rem;color:#66758c;text-align:center;text-decoration:none;white-space:nowrap;vertical-align:middle;cursor:pointer;background:0 0;border:var(--tblr-border-width) var(--tblr-border-style) transparent;border-radius:100rem;outline:0;transition:background .3s,border .3s,box-shadow .32s,color .3s}@media (prefers-reduced-motion: reduce){.calendar-date .date-item{transition:none}}.calendar-date .date-item:hover{color:var(--tblr-primary);text-decoration:none;background:#fefeff;border-color:var(--tblr-border-color)}.calendar-date .date-today{color:var(--tblr-primary);border-color:var(--tblr-border-color)}.calendar-range{position:relative}.calendar-range:before{position:absolute;top:50%;right:0;left:0;height:1.4rem;content:"";background:rgba(var(--tblr-primary-rgb),.1);transform:translateY(-50%)}.calendar-range.range-start .date-item,.calendar-range.range-end .date-item{color:#fff;background:var(--tblr-primary);border-color:var(--tblr-primary)}.calendar-range.range-start:before{left:50%}.calendar-range.range-end:before{right:50%}.carousel-indicators-vertical{left:auto;top:0;margin:0 1rem 0 0;flex-direction:column}.carousel-indicators-vertical [data-bs-target]{margin:3px 0;width:3px;height:30px;border:0;border-left:10px var(--tblr-border-style) transparent;border-right:10px var(--tblr-border-style) transparent}.carousel-indicators-dot [data-bs-target]{width:.5rem;height:.5rem;border-radius:100rem;border:10px var(--tblr-border-style) transparent;margin:0}.carousel-indicators-thumb [data-bs-target]{width:2rem;height:auto;background:no-repeat center/cover;border:0;border-radius:var(--tblr-border-radius);box-shadow:rgba(var(--tblr-body-color-rgb),.04) 0 2px 4px;margin:0 3px;opacity:.75}@media (min-width: 992px){.carousel-indicators-thumb [data-bs-target]{width:4rem}}.carousel-indicators-thumb [data-bs-target]:before{content:"";padding-top:var(--tblr-aspect-ratio, 100%);display:block}.carousel-indicators-thumb.carousel-indicators-vertical [data-bs-target]{margin:3px 0}.carousel-caption-background{background:red;position:absolute;left:0;right:0;bottom:0;height:90%;background:linear-gradient(0deg,#182433e6,#18243300)}.card{transition:transform .3s ease-out,opacity .3s ease-out,box-shadow .3s ease-out}@media (prefers-reduced-motion: reduce){.card{transition:none}}@media print{.card{border:none;box-shadow:none}}a.card{color:inherit}a.card:hover{text-decoration:none;box-shadow:rgba(var(--tblr-body-color-rgb),.16) 0 2px 16px}.card .card{box-shadow:none}.card-borderless,.card-borderless .card-header,.card-borderless .card-footer{border-color:transparent}.card-stamp{--tblr-stamp-size: 7rem;position:absolute;top:0;right:0;width:calc(var(--tblr-stamp-size) * 1);height:calc(var(--tblr-stamp-size) * 1);max-height:100%;border-top-right-radius:4px;opacity:.2;overflow:hidden;pointer-events:none}.card-stamp-lg{--tblr-stamp-size: 13rem}.card-stamp-icon{background:var(--tblr-secondary);color:var(--tblr-card-bg, var(--tblr-bg-surface));display:flex;align-items:center;justify-content:center;border-radius:100rem;width:calc(var(--tblr-stamp-size) * 1);height:calc(var(--tblr-stamp-size) * 1);position:relative;top:calc(var(--tblr-stamp-size) * -.25);right:calc(var(--tblr-stamp-size) * -.25);font-size:calc(var(--tblr-stamp-size) * .75);transform:rotate(10deg)}.card-stamp-icon .icon{stroke-width:2;width:calc(var(--tblr-stamp-size) * .75);height:calc(var(--tblr-stamp-size) * .75)}.card-img,.card-img-start{border-top-left-radius:calc(var(--tblr-border-radius) - (var(--tblr-border-width)));border-bottom-left-radius:calc(var(--tblr-border-radius) - (var(--tblr-border-width)))}.card-img,.card-img-end{border-top-right-radius:calc(var(--tblr-border-radius) - (var(--tblr-border-width)));border-bottom-right-radius:calc(var(--tblr-border-radius) - (var(--tblr-border-width)))}.card-img-overlay{display:flex;flex-direction:column;justify-content:flex-end}.card-img-overlay-dark{background-image:linear-gradient(180deg,#0000,#0009)}.card-inactive{pointer-events:none;box-shadow:none}.card-inactive .card-body{opacity:.64}.card-active{--tblr-card-border-color: var(--tblr-primary);--tblr-card-bg: var(--tblr-active-bg)}.card-btn{display:flex;align-items:center;justify-content:center;padding:1rem 1.25rem;text-align:center;transition:background .3s;border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);flex:1;color:inherit;font-weight:var(--tblr-font-weight-medium)}@media (prefers-reduced-motion: reduce){.card-btn{transition:none}}.card-btn:hover{text-decoration:none;background:rgba(var(--tblr-primary-rgb),.04)}.card-btn+.card-btn{border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.card-stacked{--tblr-card-stacked-offset: .25rem;position:relative}.card-stacked:after{position:absolute;top:calc(-1 * var(--tblr-card-stacked-offset));right:var(--tblr-card-stacked-offset);left:var(--tblr-card-stacked-offset);height:var(--tblr-card-stacked-offset);content:"";background:var(--tblr-card-bg, var(--tblr-bg-surface));border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-card-border-color);border-radius:var(--tblr-card-border-radius) var(--tblr-card-border-radius) 0 0}.card-cover{position:relative;padding:1rem 1.25rem;background:#666 no-repeat center/cover}.card-cover:before{position:absolute;inset:0;content:"";background:#1824337a}.card-cover:first-child,.card-cover:first-child:before{border-radius:4px 4px 0 0}.card-cover-blurred:before{backdrop-filter:blur(2px)}.card-actions{margin:-.5rem -.5rem -.5rem auto;padding-left:.5rem}.card-actions a{text-decoration:none}.card-header{color:inherit;display:flex;align-items:center;background:transparent}.card-header:first-child{border-radius:var(--tblr-card-border-radius) var(--tblr-card-border-radius) 0 0}.card-header-light{border-bottom-color:transparent;background:var(--tblr-bg-surface-tertiary)}.card-header-tabs{background:var(--tblr-bg-surface-tertiary);flex:1;margin:calc(var(--tblr-card-cap-padding-y) * -1) calc(var(--tblr-card-cap-padding-x) * -1) calc(var(--tblr-card-cap-padding-y) * -1);padding:calc(var(--tblr-card-cap-padding-y) * .5) calc(var(--tblr-card-cap-padding-x) * .5) 0}.card-header-pills{flex:1;margin-top:-.5rem;margin-bottom:-.5rem}.card-rotate-left{transform:rotate(-1.5deg)}.card-rotate-right{transform:rotate(1.5deg)}.card-link{color:inherit}.card-link:hover{color:inherit;text-decoration:none;box-shadow:0 1px 6px #00000014}.card-link-rotate:hover{transform:rotate(1.5deg);opacity:1}.card-link-pop:hover{transform:translateY(-2px);opacity:1}.card-footer{margin-top:auto}.card-footer:last-child{border-radius:0 0 var(--tblr-card-border-radius) var(--tblr-card-border-radius)}.card-footer-transparent{background:transparent;border-color:transparent;padding-top:0}.card-footer-borderless{border-top:none}.card-progress{height:.25rem}.card-progress:last-child{border-radius:0 0 2px 2px}.card-progress:first-child{border-radius:2px 2px 0 0}.card-meta{color:var(--tblr-secondary)}.card-title{display:block;margin:0 0 1rem;font-size:1rem;font-weight:var(--tblr-font-weight-medium);color:inherit;line-height:1.5rem}a.card-title:hover{color:inherit}.card-header .card-title{margin:0}.card-subtitle{margin-bottom:1.25rem;color:var(--tblr-secondary);font-weight:400}.card-header .card-subtitle{margin:0}.card-title .card-subtitle{margin:0 0 0 .25rem;font-size:.875rem}.card-body{position:relative}.card-body>:last-child{margin-bottom:0}.card-sm>.card-body{padding:1rem}@media (min-width: 768px){.card-md>.card-body{padding:2.5rem}}@media (min-width: 768px){.card-lg>.card-body{padding:2rem}}@media (min-width: 992px){.card-lg>.card-body{padding:4rem}}@media print{.card-body{padding:0}}.card-body+.card-body{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.card-body-scrollable{overflow:auto}.card-options{top:1.5rem;right:.75rem;display:flex;margin-left:auto}.card-options-link{display:inline-block;min-width:1rem;margin-left:.25rem;color:var(--tblr-secondary)}.card-status-top{position:absolute;top:0;right:0;left:0;height:2px;border-radius:var(--tblr-card-border-radius) var(--tblr-card-border-radius) 0 0}.card-status-start{position:absolute;right:auto;bottom:0;width:2px;height:100%;border-radius:var(--tblr-card-border-radius) 0 0 var(--tblr-card-border-radius)}.card-status-bottom{position:absolute;top:initial;bottom:0;width:100%;height:2px;border-radius:0 0 var(--tblr-card-border-radius) var(--tblr-card-border-radius)}.card-table{margin-bottom:0!important}.card-table tr td:first-child,.card-table tr th:first-child{padding-left:1.25rem;border-left:0}.card-table tr td:last-child,.card-table tr th:last-child{padding-right:1.25rem;border-right:0}.card-table thead tr:first-child,.card-table tbody tr:first-child,.card-table tfoot tr:first-child,.card-table thead tr:first-child td,.card-table thead tr:first-child th,.card-table tbody tr:first-child td,.card-table tbody tr:first-child th,.card-table tfoot tr:first-child td,.card-table tfoot tr:first-child th{border-top:0}.card-body+.card-table{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-table-border-color)}.card-code{padding:0}.card-code .highlight{margin:0;border:0}.card-code pre{margin:0!important;border:0!important}.card-chart{position:relative;z-index:1;height:3.5rem}.card-avatar{margin-left:auto;margin-right:auto;box-shadow:0 0 0 .25rem var(--tblr-card-bg, var(--tblr-bg-surface));margin-top:calc(-1 * var(--tblr-avatar-size) * .5)}.card-body+.card-list-group{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.card-list-group .list-group-item{padding-right:1.25rem;padding-left:1.25rem;border-right:0;border-left:0;border-radius:0}.card-list-group .list-group-item:last-child{border-bottom:0}.card-list-group .list-group-item:first-child{border-top:0}.card-tabs .nav-tabs{position:relative;z-index:1000;border-bottom:0}.card-tabs .nav-tabs .nav-link{background:var(--tblr-bg-surface-tertiary);border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.card-tabs .nav-tabs .nav-link.active,.card-tabs .nav-tabs .nav-link:active,.card-tabs .nav-tabs .nav-link:hover{border-color:var(--tblr-border-color-translucent);color:var(--tblr-body-color)}.card-tabs .nav-tabs .nav-link.active{color:inherit;background:var(--tblr-card-bg, var(--tblr-bg-surface));border-bottom-color:transparent}.card-tabs .nav-tabs .nav-item:not(:first-child) .nav-link{border-top-left-radius:0}.card-tabs .nav-tabs .nav-item:not(:last-child) .nav-link{border-top-right-radius:0}.card-tabs .nav-tabs .nav-item+.nav-item{margin-left:calc(-1 * var(--tblr-border-width))}.card-tabs .nav-tabs-bottom,.card-tabs .nav-tabs-bottom .nav-link{margin-bottom:0}.card-tabs .nav-tabs-bottom .nav-link.active{border-top-color:transparent}.card-tabs .nav-tabs-bottom .nav-item{margin-top:calc(-1 * var(--tblr-border-width));margin-bottom:0}.card-tabs .nav-tabs-bottom .nav-item .nav-link{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);border-radius:0 0 var(--tblr-border-radius) var(--tblr-border-radius)}.card-tabs .nav-tabs-bottom .nav-item:not(:first-child) .nav-link{border-bottom-left-radius:0}.card-tabs .nav-tabs-bottom .nav-item:not(:last-child) .nav-link{border-bottom-right-radius:0}.card-tabs .card{border-bottom-left-radius:0}.card-tabs .nav-tabs+.tab-content .card{border-bottom-left-radius:var(--tblr-card-border-radius);border-top-left-radius:0}.card-note{--tblr-card-bg: #fff7dd;--tblr-card-border-color: #fff1c9}.btn-close{cursor:pointer}.btn-close:focus{outline:none}.dropdown-menu{user-select:none;background-clip:border-box}.dropdown-menu.card{padding:0;min-width:25rem;display:none}.dropdown-menu.card.show{display:flex}.dropdown-item{min-width:11rem;display:flex;align-items:center;margin:0;line-height:1.4285714286}.dropdown-item-icon{width:1.25rem!important;height:1.25rem!important;margin-right:.5rem;color:var(--tblr-secondary);opacity:.7;text-align:center}.dropdown-item-indicator{margin-right:.5rem;margin-left:-.25rem;height:1.25rem;display:inline-flex;line-height:1;vertical-align:bottom;align-items:center}.dropdown-header{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);padding-bottom:.25rem;pointer-events:none}.dropdown-menu-scrollable{height:auto;max-height:13rem;overflow-x:hidden}.dropdown-menu-column{min-width:11rem}.dropdown-menu-column .dropdown-item{min-width:0}.dropdown-menu-columns{display:flex;flex:0 .25rem}.dropdown-menu-arrow:before{content:"";position:absolute;top:-.25rem;left:.75rem;display:block;background:inherit;width:14px;height:14px;transform:rotate(45deg);transform-origin:center;border:1px solid;border-color:inherit;z-index:-1;clip:rect(0px,9px,9px,0px)}.dropdown-menu-arrow.dropdown-menu-end:before{right:.75rem;left:auto}.dropend>.dropdown-menu{margin-top:calc(-.25rem - 1px);margin-left:-.25rem}.dropend .dropdown-toggle:after{margin-left:auto}.dropdown-menu-card{padding:0}.dropdown-menu-card>.card{margin:0;border:0;box-shadow:none}.datagrid{--tblr-datagrid-padding: 1.5rem;--tblr-datagrid-item-width: 15rem;display:grid;grid-gap:var(--tblr-datagrid-padding);grid-template-columns:repeat(auto-fit,minmax(var(--tblr-datagrid-item-width),1fr))}.datagrid-title{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);margin-bottom:.25rem}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:1rem;text-align:center}@media (min-width: 768px){.empty{padding:3rem}}.empty-icon{margin:0 0 1rem;width:3rem;height:3rem;line-height:1;color:var(--tblr-secondary)}.empty-icon svg{width:100%;height:100%}.empty-img{margin:0 0 2rem;line-height:1}.empty-header{margin:0 0 1rem;font-size:4rem;font-weight:var(--tblr-font-weight-light);line-height:1;color:var(--tblr-secondary)}.empty-title{font-size:1.25rem;line-height:1.75rem;font-weight:var(--tblr-font-weight-bold)}.empty-title,.empty-subtitle{margin:0 0 .5rem}.empty-action{margin-top:1.5rem}.empty-bordered{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.row>*{min-width:0}.col-separator{border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.container-slim{--tblr-gutter-x: calc(var(--tblr-page-padding) * 2);--tblr-gutter-y: 0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto;max-width:16rem}.container-tight{--tblr-gutter-x: calc(var(--tblr-page-padding) * 2);--tblr-gutter-y: 0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto;max-width:30rem}.container-narrow{--tblr-gutter-x: calc(var(--tblr-page-padding) * 2);--tblr-gutter-y: 0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto;max-width:45rem}.row-0{margin-right:0;margin-left:0}.row-0>.col,.row-0>[class*=col-]{padding-right:0;padding-left:0}.row-0 .card{margin-bottom:0}.row-sm{margin-right:-.375rem;margin-left:-.375rem}.row-sm>.col,.row-sm>[class*=col-]{padding-right:.375rem;padding-left:.375rem}.row-sm .card{margin-bottom:.75rem}.row-md{margin-right:-1.5rem;margin-left:-1.5rem}.row-md>.col,.row-md>[class*=col-]{padding-right:1.5rem;padding-left:1.5rem}.row-md .card{margin-bottom:3rem}.row-lg{margin-right:-3rem;margin-left:-3rem}.row-lg>.col,.row-lg>[class*=col-]{padding-right:3rem;padding-left:3rem}.row-lg .card{margin-bottom:6rem}.row-deck>.col,.row-deck>[class*=col-]{display:flex;align-items:stretch}.row-deck>.col .card,.row-deck>[class*=col-] .card{flex:1 1 auto}.row-cards{--tblr-gutter-x: var(--tblr-page-padding);--tblr-gutter-y: var(--tblr-page-padding);min-width:0}.row-cards .row-cards{flex:1}.space-y{display:flex;flex-direction:column;gap:1rem}.space-x{display:flex;gap:1rem}.space-y-0{display:flex;flex-direction:column;gap:0}.space-x-0{display:flex;gap:0}.space-y-1{display:flex;flex-direction:column;gap:.25rem}.space-x-1{display:flex;gap:.25rem}.space-y-2{display:flex;flex-direction:column;gap:.5rem}.space-x-2{display:flex;gap:.5rem}.space-y-3{display:flex;flex-direction:column;gap:1rem}.space-x-3{display:flex;gap:1rem}.space-y-4{display:flex;flex-direction:column;gap:1.5rem}.space-x-4{display:flex;gap:1.5rem}.space-y-5{display:flex;flex-direction:column;gap:2rem}.space-x-5{display:flex;gap:2rem}.space-y-6{display:flex;flex-direction:column;gap:3rem}.space-x-6{display:flex;gap:3rem}.space-y-7{display:flex;flex-direction:column;gap:5rem}.space-x-7{display:flex;gap:5rem}.space-y-8{display:flex;flex-direction:column;gap:8rem}.space-x-8{display:flex;gap:8rem}.divide-y>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y>:not(template):not(:first-child){padding-top:1rem!important}.divide-y>:not(template):not(:last-child){padding-bottom:1rem!important}.divide-x>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x>:not(template):not(:first-child){padding-left:1rem!important}.divide-x>:not(template):not(:last-child){padding-right:1rem!important}.divide-y-0>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-0>:not(template):not(:first-child){padding-top:0!important}.divide-y-0>:not(template):not(:last-child){padding-bottom:0!important}.divide-x-0>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-0>:not(template):not(:first-child){padding-left:0!important}.divide-x-0>:not(template):not(:last-child){padding-right:0!important}.divide-y-1>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-1>:not(template):not(:first-child){padding-top:.25rem!important}.divide-y-1>:not(template):not(:last-child){padding-bottom:.25rem!important}.divide-x-1>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-1>:not(template):not(:first-child){padding-left:.25rem!important}.divide-x-1>:not(template):not(:last-child){padding-right:.25rem!important}.divide-y-2>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-2>:not(template):not(:first-child){padding-top:.5rem!important}.divide-y-2>:not(template):not(:last-child){padding-bottom:.5rem!important}.divide-x-2>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-2>:not(template):not(:first-child){padding-left:.5rem!important}.divide-x-2>:not(template):not(:last-child){padding-right:.5rem!important}.divide-y-3>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-3>:not(template):not(:first-child){padding-top:1rem!important}.divide-y-3>:not(template):not(:last-child){padding-bottom:1rem!important}.divide-x-3>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-3>:not(template):not(:first-child){padding-left:1rem!important}.divide-x-3>:not(template):not(:last-child){padding-right:1rem!important}.divide-y-4>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-4>:not(template):not(:first-child){padding-top:1.5rem!important}.divide-y-4>:not(template):not(:last-child){padding-bottom:1.5rem!important}.divide-x-4>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-4>:not(template):not(:first-child){padding-left:1.5rem!important}.divide-x-4>:not(template):not(:last-child){padding-right:1.5rem!important}.divide-y-5>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-5>:not(template):not(:first-child){padding-top:2rem!important}.divide-y-5>:not(template):not(:last-child){padding-bottom:2rem!important}.divide-x-5>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-5>:not(template):not(:first-child){padding-left:2rem!important}.divide-x-5>:not(template):not(:last-child){padding-right:2rem!important}.divide-y-6>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-6>:not(template):not(:first-child){padding-top:3rem!important}.divide-y-6>:not(template):not(:last-child){padding-bottom:3rem!important}.divide-x-6>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-6>:not(template):not(:first-child){padding-left:3rem!important}.divide-x-6>:not(template):not(:last-child){padding-right:3rem!important}.divide-y-7>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-7>:not(template):not(:first-child){padding-top:5rem!important}.divide-y-7>:not(template):not(:last-child){padding-bottom:5rem!important}.divide-x-7>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-7>:not(template):not(:first-child){padding-left:5rem!important}.divide-x-7>:not(template):not(:last-child){padding-right:5rem!important}.divide-y-8>:not(template)~:not(template){border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-y-8>:not(template):not(:first-child){padding-top:8rem!important}.divide-y-8>:not(template):not(:last-child){padding-bottom:8rem!important}.divide-x-8>:not(template)~:not(template){border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)!important}.divide-x-8>:not(template):not(:first-child){padding-left:8rem!important}.divide-x-8>:not(template):not(:last-child){padding-right:8rem!important}.divide-y-fill{display:flex;flex-direction:column;height:100%}.divide-y-fill>:not(template){flex:1;display:flex;justify-content:center;flex-direction:column}.icon{--tblr-icon-size: 1.25rem;width:var(--tblr-icon-size);height:var(--tblr-icon-size);font-size:var(--tblr-icon-size);vertical-align:bottom;stroke-width:1.5}.icon:hover{text-decoration:none}.icon-inline{--tblr-icon-size: 1rem;vertical-align:-.2rem}.icon-filled{fill:currentColor}.icon-sm{--tblr-icon-size: 1rem;stroke-width:1}.icon-md{--tblr-icon-size: 2.5rem;stroke-width:1}.icon-lg{--tblr-icon-size: 3.5rem;stroke-width:1}.icon-pulse{transition:all .15s ease 0s;animation:pulse 2s ease infinite;animation-fill-mode:both}.icon-tada{transition:all .15s ease 0s;animation:tada 3s ease infinite;animation-fill-mode:both}.icon-rotate{transition:all .15s ease 0s;animation:rotate-360 3s linear infinite;animation-fill-mode:both}.img-responsive{--tblr-img-responsive-ratio: 75%;background:no-repeat center/cover;padding-top:var(--tblr-img-responsive-ratio)}.img-responsive-grid{padding-top:calc(var(--tblr-img-responsive-ratio) - var(--tblr-gutter-y) / 2)}.img-responsive-1x1{--tblr-img-responsive-ratio: 100%}.img-responsive-2x1{--tblr-img-responsive-ratio: 50%}.img-responsive-1x2{--tblr-img-responsive-ratio: 200%}.img-responsive-3x1{--tblr-img-responsive-ratio: 33.3333333333%}.img-responsive-1x3{--tblr-img-responsive-ratio: 300%}.img-responsive-4x3{--tblr-img-responsive-ratio: 75%}.img-responsive-3x4{--tblr-img-responsive-ratio: 133.3333333333%}.img-responsive-16x9{--tblr-img-responsive-ratio: 56.25%}.img-responsive-9x16{--tblr-img-responsive-ratio: 177.7777777778%}.img-responsive-21x9{--tblr-img-responsive-ratio: 42.8571428571%}.img-responsive-9x21{--tblr-img-responsive-ratio: 233.3333333333%}textarea[cols]{height:auto}.col-form-label,.form-label{display:block;font-weight:var(--tblr-font-weight-medium)}.col-form-label.required:after,.form-label.required:after{content:"*";margin-left:.25rem;color:#d63939}.form-label-description{float:right;font-weight:var(--tblr-font-weight-normal);color:var(--tblr-gray-500)}.form-hint{display:block;color:var(--tblr-gray-500)}.form-hint:last-child{margin-bottom:0}.form-hint+.form-control{margin-top:.25rem}.form-label+.form-hint{margin-top:-.25rem}.input-group+.form-hint,.form-control+.form-hint,.form-select+.form-hint{margin-top:.5rem;color:var(--tblr-gray-500)}.form-select:-moz-focusring{color:var(--tblr-body-color)}.form-control:-webkit-autofill{box-shadow:0 0 0 1000px var(--tblr-body-bg) inset;color:var(--tblr-body-color);-webkit-text-fill-color:var(--tblr-body-color)}.form-control:disabled,.form-control.disabled{color:var(--tblr-gray-500);user-select:none}.form-control[size]{width:auto}.form-control-light{background-color:var(--tblr-gray-100);border-color:transparent}.form-control-dark{background-color:#0000001a;color:#fff;border-color:transparent}.form-control-dark:focus{background-color:#0000001a;box-shadow:none;border-color:#ffffff3d}.form-control-dark::placeholder{color:#fff9}.form-control-rounded{border-radius:10rem}.form-control-flush{padding:0;background:none!important;border-color:transparent!important;resize:none;box-shadow:none!important;line-height:inherit}.form-footer{margin-top:2rem}.form-fieldset{padding:1rem;margin-bottom:1rem;background:var(--tblr-body-bg);border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.form-help{display:inline-flex;font-weight:var(--tblr-font-weight-bold);align-items:center;justify-content:center;width:1.125rem;height:1.125rem;font-size:.75rem;color:var(--tblr-gray-500);text-align:center;text-decoration:none;cursor:pointer;user-select:none;background:var(--tblr-gray-100);border-radius:100rem;transition:background-color .3s,color .3s}@media (prefers-reduced-motion: reduce){.form-help{transition:none}}.form-help:hover,.form-help[aria-describedby]{color:#fff;background:var(--tblr-primary)}.input-group{box-shadow:var(--tblr-box-shadow-input);border-radius:var(--tblr-border-radius)}.input-group .form-control,.input-group .btn{box-shadow:none}.input-group-link{font-size:.75rem}.input-group-flat:focus-within{box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25);border-radius:var(--tblr-border-radius)}.input-group-flat:focus-within .form-control,.input-group-flat:focus-within .input-group-text{border-color:#80c2be!important}.input-group-flat .form-control:focus{border-color:var(--tblr-border-color);box-shadow:none}.input-group-flat .form-control:not(:last-child){border-right:0}.input-group-flat .form-control:not(:first-child){border-left:0}.input-group-flat .input-group-text{background:var(--tblr-bg-forms);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.input-group-flat .input-group-text{transition:none}}.input-group-flat .input-group-text:first-child{padding-right:0}.input-group-flat .input-group-text:last-child{padding-left:0}.form-file-button{margin-left:0;border-left:0}.input-icon{position:relative}.input-icon .form-control:not(:last-child),.input-icon .form-select:not(:last-child){padding-right:2.5rem}.input-icon .form-control:not(:first-child),.input-icon .form-select:not(:last-child){padding-left:2.5rem}.input-icon-addon{position:absolute;top:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;min-width:2.5rem;color:var(--tblr-icon-color);pointer-events:none;font-size:1.2em}.input-icon-addon:last-child{right:0;left:auto}.form-colorinput{position:relative;display:inline-block;margin:0;line-height:1;cursor:pointer}.form-colorinput-input{position:absolute;z-index:-1;opacity:0}.form-colorinput-color{display:block;width:1.5rem;height:1.5rem;color:#fff;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);border-radius:3px;box-shadow:0 1px 2px #0000000d}.form-colorinput-color:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background:no-repeat center center/1.25rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e");opacity:0;transition:opacity .3s}@media (prefers-reduced-motion: reduce){.form-colorinput-color:before{transition:none}}.form-colorinput-input:checked~.form-colorinput-color:before{opacity:1}.form-colorinput-input:focus~.form-colorinput-color{border-color:var(--tblr-primary);box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-colorinput-light .form-colorinput-color:before{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23182433' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e")}.form-imagecheck{position:relative;margin:0;cursor:pointer}.form-imagecheck-input{position:absolute;z-index:-1;opacity:0}.form-imagecheck-figure{position:relative;display:block;margin:0;user-select:none;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:3px}.form-imagecheck-input:focus~.form-imagecheck-figure{border-color:var(--tblr-primary);box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-imagecheck-input:checked~.form-imagecheck-figure{border-color:var(--tblr-primary)}.form-imagecheck-figure:before{position:absolute;top:.25rem;left:.25rem;z-index:1;display:block;width:1.25rem;height:1.25rem;color:#fff;pointer-events:none;content:"";user-select:none;background:var(--tblr-bg-forms);border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:var(--tblr-border-radius);transition:opacity .3s}@media (prefers-reduced-motion: reduce){.form-imagecheck-figure:before{transition:none}}.form-imagecheck-input:checked~.form-imagecheck-figure:before{background-color:var(--tblr-primary);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e");background-repeat:repeat;background-position:center;background-size:1.25rem;border-color:var(--tblr-border-color-translucent)}.form-imagecheck-input[type=radio]~.form-imagecheck-figure:before{border-radius:50%}.form-imagecheck-input[type=radio]:checked~.form-imagecheck-figure:before{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle r='3' fill='%23ffffff' cx='8' cy='8' /%3e%3c/svg%3e")}.form-imagecheck-image{max-width:100%;display:block;opacity:.64;transition:opacity .3s}@media (prefers-reduced-motion: reduce){.form-imagecheck-image{transition:none}}.form-imagecheck-image:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.form-imagecheck-image:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.form-imagecheck:hover .form-imagecheck-image,.form-imagecheck-input:focus~.form-imagecheck-figure .form-imagecheck-image,.form-imagecheck-input:checked~.form-imagecheck-figure .form-imagecheck-image{opacity:1}.form-imagecheck-caption{padding:.25rem;font-size:.765625rem;color:var(--tblr-secondary);text-align:center;transition:color .3s}@media (prefers-reduced-motion: reduce){.form-imagecheck-caption{transition:none}}.form-imagecheck:hover .form-imagecheck-caption,.form-imagecheck-input:focus~.form-imagecheck-figure .form-imagecheck-caption,.form-imagecheck-input:checked~.form-imagecheck-figure .form-imagecheck-caption{color:var(--tblr-body-color)}.form-selectgroup{display:inline-flex;margin:0 -.5rem -.5rem 0;flex-wrap:wrap}.form-selectgroup .form-selectgroup-item{margin:0 .5rem .5rem 0}.form-selectgroup-vertical{flex-direction:column}.form-selectgroup-item{display:block;position:relative}.form-selectgroup-input{position:absolute;top:0;left:0;z-index:-1;opacity:0}.form-selectgroup-label{position:relative;display:block;min-width:calc(1.4285714286em + 1.125rem + calc(var(--tblr-border-width) * 2));margin:0;padding:.5625rem .75rem;font-size:.875rem;line-height:1.4285714286;color:var(--tblr-secondary);background:var(--tblr-bg-forms);text-align:center;cursor:pointer;user-select:none;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:3px;box-shadow:var(--tblr-box-shadow-input);transition:border-color .3s,background .3s,color .3s}@media (prefers-reduced-motion: reduce){.form-selectgroup-label{transition:none}}.form-selectgroup-label .icon:only-child{margin:0 -.25rem}.form-selectgroup-label:hover{color:var(--tblr-body-color)}.form-selectgroup-check{display:inline-block;width:1.25rem;height:1.25rem;border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);vertical-align:middle;box-shadow:var(--tblr-box-shadow-input)}.form-selectgroup-input[type=checkbox]+.form-selectgroup-label .form-selectgroup-check{border-radius:var(--tblr-border-radius)}.form-selectgroup-input[type=radio]+.form-selectgroup-label .form-selectgroup-check{border-radius:50%}.form-selectgroup-input:checked+.form-selectgroup-label .form-selectgroup-check{background-color:var(--tblr-primary);background-repeat:repeat;background-position:center;background-size:1.25rem;border-color:var(--tblr-border-color-translucent)}.form-selectgroup-input[type=checkbox]:checked+.form-selectgroup-label .form-selectgroup-check{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e")}.form-selectgroup-input[type=radio]:checked+.form-selectgroup-label .form-selectgroup-check{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle r='3' fill='%23ffffff' cx='8' cy='8' /%3e%3c/svg%3e")}.form-selectgroup-check-floated{position:absolute;top:.5625rem;right:.5625rem}.form-selectgroup-input:checked+.form-selectgroup-label{z-index:1;color:var(--tblr-primary);background:rgba(var(--tblr-primary-rgb),.04);border-color:var(--tblr-primary)}.form-selectgroup-input:focus+.form-selectgroup-label{z-index:2;color:var(--tblr-primary);border-color:var(--tblr-primary);box-shadow:0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.form-selectgroup-boxes .form-selectgroup-label{text-align:left;padding:1.25rem 1rem;color:inherit}.form-selectgroup-boxes .form-selectgroup-input:checked+.form-selectgroup-label{color:inherit}.form-selectgroup-boxes .form-selectgroup-input:checked+.form-selectgroup-label .form-selectgroup-title{color:var(--tblr-primary)}.form-selectgroup-boxes .form-selectgroup-input:checked+.form-selectgroup-label .form-selectgroup-label-content{opacity:1}.form-selectgroup-pills{flex-wrap:wrap;align-items:flex-start}.form-selectgroup-pills .form-selectgroup-item{flex-grow:0}.form-selectgroup-pills .form-selectgroup-label{border-radius:50px}.form-control-color::-webkit-color-swatch{border:none}[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.form-control::file-selector-button{background-color:var(--tblr-btn-color, var(--tblr-tertiary-bg))}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--tblr-btn-color, var(--tblr-secondary-bg))}.form-check{user-select:none}.form-check.form-check-highlight .form-check-input:not(:checked)~.form-check-label{color:var(--tblr-secondary)}.form-check .form-check-label-off{color:var(--tblr-secondary)}.form-check .form-check-input:checked~.form-check-label-off{display:none}.form-check .form-check-input:not(:checked)~.form-check-label-on{display:none}.form-check-input{background-size:1.25rem;margin-top:0rem;box-shadow:var(--tblr-box-shadow-input)}.form-switch .form-check-input{transition:background-color .3s,background-position .3s}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-check-label{display:block}.form-check-label.required:after{content:"*";margin-left:.25rem;color:#d63939}.form-check-description{display:block;color:var(--tblr-secondary);font-size:.75rem;margin-top:.25rem}.form-check-single,.form-check-single .form-check-input{margin:0}.form-switch .form-check-input{height:1.25rem;margin-top:0rem}.form-switch-lg{padding-left:3.5rem;min-height:1.5rem}.form-switch-lg .form-check-input{height:1.5rem;width:2.75rem;background-size:1.5rem;margin-left:-3.5rem}.form-switch-lg .form-check-label{padding-top:.125rem}.form-check-input:checked{border:none}.form-select.is-invalid-lite,.form-control.is-invalid-lite,.form-select.is-valid-lite,.form-control.is-valid-lite{border-color:var(--tblr-border-color)!important}.legend{--tblr-legend-size: .75em;display:inline-block;background:var(--tblr-border-color);width:var(--tblr-legend-size);height:var(--tblr-legend-size);border-radius:var(--tblr-border-radius-sm);border:1px solid var(--tblr-border-color-translucent)}.list-group{margin-left:0;margin-right:0}.list-group-header{background:var(--tblr-bg-surface-tertiary);padding:.5rem 1.25rem;font-size:.75rem;font-weight:var(--tblr-font-weight-medium);line-height:1;text-transform:uppercase;color:var(--tblr-gray-500);border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.list-group-flush>.list-group-header:last-child{border-bottom-width:0}.list-group-item{background-color:inherit}.list-group-item.active{background-color:rgba(var(--tblr-secondary-rgb),.08);border-left-color:#00857d;border-left-width:2px}.list-group-item:active,.list-group-item:focus,.list-group-item:hover{background-color:rgba(var(--tblr-secondary-rgb),.08)}.list-group-item.disabled,.list-group-item:disabled{color:#6c7a91;background-color:rgba(var(--tblr-secondary-rgb),.08)}.list-bordered .list-item{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);margin-top:-1px}.list-bordered .list-item:first-child{border-top:none}.list-group-hoverable .list-group-item-actions{opacity:0;transition:opacity .3s}@media (prefers-reduced-motion: reduce){.list-group-hoverable .list-group-item-actions{transition:none}}.list-group-hoverable .list-group-item:hover .list-group-item-actions,.list-group-hoverable .list-group-item-actions.show{opacity:1}.list-group-transparent{--tblr-list-group-border-radius: 0;margin:0 -1.25rem}.list-group-transparent .list-group-item{background:none;border:0}.list-group-transparent .list-group-item .icon{color:var(--tblr-secondary)}.list-group-transparent .list-group-item.active{font-weight:var(--tblr-font-weight-bold);color:inherit;background:var(--tblr-active-bg)}.list-group-transparent .list-group-item.active .icon{color:inherit}.list-separated-item{padding:1rem 0}.list-separated-item:first-child{padding-top:0}.list-separated-item:last-child{padding-bottom:0}.list-separated-item+.list-separated-item{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.list-inline-item:not(:last-child){margin-right:auto;margin-inline-end:.5rem}.list-inline-dots .list-inline-item+.list-inline-item:before{content:" \b7 ";margin-inline-end:.5rem}.loader{position:relative;display:block;width:2.5rem;height:2.5rem;color:#066fd1;vertical-align:middle}.loader:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";border:1px var(--tblr-border-style);border-color:transparent;border-top-color:currentColor;border-left-color:currentColor;border-radius:100rem;animation:rotate-360 .6s linear;animation-iteration-count:infinite}.dimmer{position:relative}.dimmer .loader{position:absolute;top:50%;right:0;left:0;display:none;margin:0 auto;transform:translateY(-50%)}.dimmer.active .loader{display:block}.dimmer.active .dimmer-content{pointer-events:none;opacity:.1}@keyframes animated-dots{0%{transform:translate(-100%)}}.animated-dots{display:inline-block;overflow:hidden;vertical-align:bottom}.animated-dots:after{display:inline-block;content:"...";animation:animated-dots 1.2s steps(4,jump-none) infinite}.modal-content>.btn-close,.modal-header>.btn-close{position:absolute;top:0;right:0;width:3.5rem;height:3.5rem;margin:0;padding:0;z-index:10}.modal-body{scrollbar-color:rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.16)}.modal-body::-webkit-scrollbar{width:1rem;height:1rem;transition:background .3s}@media (prefers-reduced-motion: reduce){.modal-body::-webkit-scrollbar{transition:none}}.modal-body::-webkit-scrollbar-thumb{border-radius:1rem;border:5px solid transparent;box-shadow:inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.16)}.modal-body::-webkit-scrollbar-track{background:transparent}.modal-body:hover::-webkit-scrollbar-thumb{box-shadow:inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)),.32)}.modal-body::-webkit-scrollbar-corner{background:transparent}.modal-body .modal-title{margin-bottom:1rem}.modal-body+.modal-body{border-top:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.modal-status{position:absolute;top:0;left:0;right:0;height:2px;background:var(--tblr-secondary);border-radius:var(--tblr-border-radius-lg) var(--tblr-border-radius-lg) 0 0}.modal-header{align-items:center;min-height:3.5rem;background:transparent;padding:0 3.5rem 0 1.5rem}.modal-title{font-size:1rem;font-weight:var(--tblr-font-weight-bold);color:inherit;line-height:1.4285714286}.modal-footer{padding-top:.75rem;padding-bottom:.75rem}.modal-blur{backdrop-filter:blur(4px)}.modal-full-width{max-width:none;margin:0 .5rem}.nav-vertical,.nav-vertical .nav{flex-direction:column;flex-wrap:nowrap}.nav-vertical .nav{margin-left:1.25rem;border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);padding-left:.5rem}.nav-vertical .nav-link.active,.nav-vertical .nav-item.show .nav-link{font-weight:var(--tblr-font-weight-bold)}.nav-vertical.nav-pills{margin:0 -.75rem}.nav-bordered{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.nav-bordered .nav-item+.nav-item{margin-left:1.25rem}.nav-bordered .nav-link{padding-left:0;padding-right:0;margin:0 0 -var(--tblr-border-width);border:0;border-bottom:2px var(--tblr-border-style) transparent;color:var(--tblr-secondary)}.nav-bordered .nav-link.active,.nav-bordered .nav-item.show .nav-link{color:var(--tblr-primary);border-color:var(--tblr-primary)}.nav-link{display:flex;transition:color .3s;align-items:center}@media (prefers-reduced-motion: reduce){.nav-link{transition:none}}.nav-link-toggle{margin-left:auto;padding:0 .25rem;transition:transform .3s}@media (prefers-reduced-motion: reduce){.nav-link-toggle{transition:none}}.nav-link-toggle:after{content:"";display:inline-block;vertical-align:.306em;width:.36em;height:.36em;border-bottom:1px var(--tblr-border-style);border-left:1px var(--tblr-border-style);margin-right:.1em;margin-left:.4em;transform:rotate(-45deg)}.nav-link-toggle:after{margin:0}.nav-link[aria-expanded=true] .nav-link-toggle{transform:rotate(180deg)}.nav-link-icon{width:1.25rem;height:1.25rem;margin-right:.5rem;color:var(--tblr-icon-color)}.nav-link-icon svg{display:block;height:100%}.nav-fill .nav-item .nav-link{justify-content:center}.stars{display:inline-flex;color:#8a97ab;font-size:.75rem}.stars .star:not(:first-child){margin-left:.25rem}.pagination{user-select:none}.page-link{min-width:1.75rem;border-radius:var(--tblr-border-radius)}.page-item{text-align:center}.page-item:not(.active) .page-link:hover{background:transparent}.page-item.page-prev,.page-item.page-next{flex:0 0 50%;text-align:left}.page-item.page-next{margin-left:auto;text-align:right}.page-item-subtitle{margin-bottom:2px;font-size:12px;color:var(--tblr-secondary);text-transform:uppercase}.page-item.disabled .page-item-subtitle{color:var(--tblr-disabled-color)}.page-item-title{font-size:1rem;font-weight:var(--tblr-font-weight-normal);color:var(--tblr-body-color)}.page-link:hover .page-item-title{color:#00857d}.page-item.disabled .page-item-title{color:var(--tblr-disabled-color)}@keyframes progress-indeterminate{0%{right:100%;left:-35%}to,60%{right:-90%;left:100%}}.progress{position:relative;width:100%;line-height:.5rem;appearance:none}.progress::-webkit-progress-bar{background:var(--tblr-progress-bg)}.progress::-webkit-progress-value{background-color:var(--tblr-primary)}.progress::-moz-progress-bar{background-color:var(--tblr-primary)}.progress::-ms-fill{background-color:var(--tblr-primary);border:none}.progress-sm{height:.25rem}.progress-bar{height:100%}.progress-bar-indeterminate:after,.progress-bar-indeterminate:before{position:absolute;top:0;bottom:0;left:0;content:"";background-color:inherit;will-change:left,right}.progress-bar-indeterminate:before{animation:progress-indeterminate 1.5s cubic-bezier(.65,.815,.735,.395) infinite}.progress-separated .progress-bar{box-shadow:0 0 0 2px var(--tblr-card-bg, var(--tblr-bg-surface))}.progressbg{position:relative;padding:.25rem .5rem;display:flex}.progressbg-text{position:relative;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progressbg-progress{position:absolute;inset:0;z-index:0;height:100%;background:transparent;pointer-events:none}.progressbg-value{font-weight:var(--tblr-font-weight-medium);margin-left:auto;padding-left:2rem}.ribbon{--tblr-ribbon-margin: .25rem;--tblr-ribbon-border-radius: var(--tblr-border-radius);position:absolute;top:.75rem;right:calc(-1 * var(--tblr-ribbon-margin));z-index:1;padding:.25rem .75rem;font-size:.625rem;font-weight:var(--tblr-font-weight-bold);line-height:1;color:#fff;text-align:center;text-transform:uppercase;background:var(--tblr-primary);border-color:var(--tblr-primary);border-radius:var(--tblr-ribbon-border-radius) 0 var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius);display:inline-flex;align-items:center;justify-content:center;min-height:2rem;min-width:2rem}.ribbon:before{position:absolute;right:0;bottom:100%;width:0;height:0;content:"";filter:brightness(70%);border:calc(var(--tblr-ribbon-margin) * .5) var(--tblr-border-style);border-color:inherit;border-top-color:transparent;border-right-color:transparent}.ribbon.bg-blue{border-color:var(--tblr-blue)}.ribbon.bg-blue-lt{border-color:rgba(var(--tblr-blue-rgb),.1)!important}.ribbon.bg-azure{border-color:var(--tblr-azure)}.ribbon.bg-azure-lt{border-color:rgba(var(--tblr-azure-rgb),.1)!important}.ribbon.bg-indigo{border-color:var(--tblr-indigo)}.ribbon.bg-indigo-lt{border-color:rgba(var(--tblr-indigo-rgb),.1)!important}.ribbon.bg-purple{border-color:var(--tblr-purple)}.ribbon.bg-purple-lt{border-color:rgba(var(--tblr-purple-rgb),.1)!important}.ribbon.bg-pink{border-color:var(--tblr-pink)}.ribbon.bg-pink-lt{border-color:rgba(var(--tblr-pink-rgb),.1)!important}.ribbon.bg-red{border-color:var(--tblr-red)}.ribbon.bg-red-lt{border-color:rgba(var(--tblr-red-rgb),.1)!important}.ribbon.bg-orange{border-color:var(--tblr-orange)}.ribbon.bg-orange-lt{border-color:rgba(var(--tblr-orange-rgb),.1)!important}.ribbon.bg-yellow{border-color:var(--tblr-yellow)}.ribbon.bg-yellow-lt{border-color:rgba(var(--tblr-yellow-rgb),.1)!important}.ribbon.bg-lime{border-color:var(--tblr-lime)}.ribbon.bg-lime-lt{border-color:rgba(var(--tblr-lime-rgb),.1)!important}.ribbon.bg-green{border-color:var(--tblr-green)}.ribbon.bg-green-lt{border-color:rgba(var(--tblr-green-rgb),.1)!important}.ribbon.bg-teal{border-color:var(--tblr-teal)}.ribbon.bg-teal-lt{border-color:rgba(var(--tblr-teal-rgb),.1)!important}.ribbon.bg-cyan{border-color:var(--tblr-cyan)}.ribbon.bg-cyan-lt{border-color:rgba(var(--tblr-cyan-rgb),.1)!important}.ribbon .icon{width:1.25rem;height:1.25rem;font-size:1.25rem}.ribbon-top{top:calc(-1 * var(--tblr-ribbon-margin));right:.75rem;width:2rem;padding:.5rem 0;border-radius:0 var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius)}.ribbon-top:before{top:0;right:100%;bottom:auto;border-color:inherit;border-top-color:transparent;border-left-color:transparent}.ribbon-top.ribbon-start{right:auto;left:.75rem}.ribbon-top.ribbon-start:before{top:0;right:100%;left:auto}.ribbon-start{right:auto;left:calc(-1 * var(--tblr-ribbon-margin));border-radius:0 var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius) var(--tblr-ribbon-border-radius)}.ribbon-start:before{top:auto;bottom:100%;left:0;border-color:inherit;border-top-color:transparent;border-left-color:transparent}.ribbon-bottom{top:auto;bottom:.75rem}.ribbon-bookmark{padding-left:.25rem;border-radius:0 0 var(--tblr-ribbon-border-radius) 0}.ribbon-bookmark:after{position:absolute;top:0;right:100%;display:block;width:0;height:0;content:"";border:1rem var(--tblr-border-style);border-color:inherit;border-right-width:0;border-left-color:transparent;border-left-width:.5rem}.ribbon-bookmark.ribbon-left{padding-right:.5rem}.ribbon-bookmark.ribbon-left:after{right:auto;left:100%;border-right-color:transparent;border-right-width:.5rem;border-left-width:0}.ribbon-bookmark.ribbon-top{padding-right:0;padding-bottom:.25rem;padding-left:0;border-radius:0 var(--tblr-ribbon-border-radius) 0 0}.ribbon-bookmark.ribbon-top:after{top:100%;right:0;left:0;border-color:inherit;border-width:1rem;border-top-width:0;border-bottom-color:transparent;border-bottom-width:.5rem}.markdown{line-height:1.7142857143}.markdown>:first-child{margin-top:0}.markdown>:last-child,.markdown>:last-child .highlight{margin-bottom:0}@media (min-width: 768px){.markdown>hr,.markdown>.hr{margin-top:3em;margin-bottom:3em}}.markdown>h1,.markdown>.h1,.markdown>h2,.markdown>.h2,.markdown>h3,.markdown>.h3,.markdown>h4,.markdown>.h4,.markdown>h5,.markdown>.h5,.markdown>h6,.markdown>.h6{font-weight:var(--tblr-font-weight-bold)}.markdown>blockquote{font-size:1rem;margin:1.5rem 0;padding:.5rem 1.5rem}.markdown>img{border-radius:var(--tblr-border-radius)}.placeholder:not(.btn):not([class*=bg-]){background-color:currentColor!important}.placeholder:not(.avatar):not([class*=card-img-]){border-radius:var(--tblr-border-radius)}.steps{--tblr-steps-color: var(--tblr-primary);--tblr-steps-inactive-color: var(--tblr-border-color);--tblr-steps-dot-size: .5rem;--tblr-steps-border-width: 2px;display:flex;flex-wrap:nowrap;width:100%;padding:0;margin:0;list-style:none}.steps-blue{--tblr-steps-color: var(--tblr-blue)}.steps-azure{--tblr-steps-color: var(--tblr-azure)}.steps-indigo{--tblr-steps-color: var(--tblr-indigo)}.steps-purple{--tblr-steps-color: var(--tblr-purple)}.steps-pink{--tblr-steps-color: var(--tblr-pink)}.steps-red{--tblr-steps-color: var(--tblr-red)}.steps-orange{--tblr-steps-color: var(--tblr-orange)}.steps-yellow{--tblr-steps-color: var(--tblr-yellow)}.steps-lime{--tblr-steps-color: var(--tblr-lime)}.steps-green{--tblr-steps-color: var(--tblr-green)}.steps-teal{--tblr-steps-color: var(--tblr-teal)}.steps-cyan{--tblr-steps-color: var(--tblr-cyan)}.step-item{position:relative;flex:1 1 0;min-height:1rem;margin-top:0;color:inherit;text-align:center;cursor:default;padding-top:calc(var(--tblr-steps-dot-size))}a.step-item{cursor:pointer}a.step-item:hover{color:inherit}.step-item:after,.step-item:before{background:var(--tblr-steps-color)}.step-item:not(:last-child):after{position:absolute;left:50%;width:100%;content:"";transform:translateY(-50%)}.step-item:after{top:calc(var(--tblr-steps-dot-size) * .5);height:var(--tblr-steps-border-width)}.step-item:before{content:"";position:absolute;top:0;left:50%;z-index:1;box-sizing:content-box;display:flex;align-items:center;justify-content:center;border-radius:100rem;transform:translate(-50%);color:var(--tblr-white);width:var(--tblr-steps-dot-size);height:var(--tblr-steps-dot-size)}.step-item.active{font-weight:var(--tblr-font-weight-bold)}.step-item.active:after{background:var(--tblr-steps-inactive-color)}.step-item.active~.step-item{color:var(--tblr-disabled-color)}.step-item.active~.step-item:after,.step-item.active~.step-item:before{background:var(--tblr-steps-inactive-color)}.steps-counter{--tblr-steps-dot-size: 1.5rem;counter-reset:steps}.steps-counter .step-item{counter-increment:steps}.steps-counter .step-item:before{content:counter(steps)}.steps-vertical{--tblr-steps-dot-offset: 6px;flex-direction:column}.steps-vertical.steps-counter{--tblr-steps-dot-offset: -2px}.steps-vertical .step-item{text-align:left;padding-top:0;padding-left:calc(var(--tblr-steps-dot-size) + 1rem);min-height:auto}.steps-vertical .step-item:not(:first-child){margin-top:1rem}.steps-vertical .step-item:before{top:var(--tblr-steps-dot-offset);left:0;transform:translate(0)}.steps-vertical .step-item:not(:last-child):after{position:absolute;content:"";transform:translate(-50%);top:var(--tblr-steps-dot-offset);left:calc(var(--tblr-steps-dot-size) * .5);width:var(--tblr-steps-border-width);height:calc(100% + 1rem)}@keyframes status-pulsate-main{40%{transform:scale(1.25)}60%{transform:scale(1.25)}}@keyframes status-pulsate-secondary{10%{transform:scale(1)}30%{transform:scale(3)}80%{transform:scale(3)}to{transform:scale(1)}}@keyframes status-pulsate-tertiary{25%{transform:scale(1)}80%{transform:scale(3);opacity:0}to{transform:scale(3);opacity:0}}.status{--tblr-status-height: 1.5rem;--tblr-status-color: #6c7a91;--tblr-status-color-rgb: 108, 122, 145;display:inline-flex;align-items:center;height:var(--tblr-status-height);padding:.25rem .75rem;gap:.5rem;color:var(--tblr-status-color);background:rgba(var(--tblr-status-color-rgb),.1);font-size:.875rem;text-transform:none;letter-spacing:normal;border-radius:100rem;font-weight:var(--tblr-font-weight-medium);line-height:1;margin:0}.status .status-dot{background:var(--tblr-status-color)}.status .icon{font-size:1.25rem}.status-lite{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)!important;background:transparent!important;color:var(--tblr-body-color)!important}.status-primary{--tblr-status-color: #00857D;--tblr-status-color-rgb: 0, 133, 125}.status-secondary{--tblr-status-color: #6c7a91;--tblr-status-color-rgb: 108, 122, 145}.status-success{--tblr-status-color: #2fb344;--tblr-status-color-rgb: 47, 179, 68}.status-info{--tblr-status-color: #4299e1;--tblr-status-color-rgb: 66, 153, 225}.status-warning{--tblr-status-color: #f76707;--tblr-status-color-rgb: 247, 103, 7}.status-danger{--tblr-status-color: #d63939;--tblr-status-color-rgb: 214, 57, 57}.status-light{--tblr-status-color: #f6f8fb;--tblr-status-color-rgb: 246, 248, 251}.status-dark{--tblr-status-color: #182433;--tblr-status-color-rgb: 24, 36, 51}.status-muted{--tblr-status-color: #6c7a91;--tblr-status-color-rgb: 108, 122, 145}.status-blue{--tblr-status-color: #066fd1;--tblr-status-color-rgb: 6, 111, 209}.status-azure{--tblr-status-color: #4299e1;--tblr-status-color-rgb: 66, 153, 225}.status-indigo{--tblr-status-color: #4263eb;--tblr-status-color-rgb: 66, 99, 235}.status-purple{--tblr-status-color: #ae3ec9;--tblr-status-color-rgb: 174, 62, 201}.status-pink{--tblr-status-color: #d6336c;--tblr-status-color-rgb: 214, 51, 108}.status-red{--tblr-status-color: #d63939;--tblr-status-color-rgb: 214, 57, 57}.status-orange{--tblr-status-color: #f76707;--tblr-status-color-rgb: 247, 103, 7}.status-yellow{--tblr-status-color: #f59f00;--tblr-status-color-rgb: 245, 159, 0}.status-lime{--tblr-status-color: #74b816;--tblr-status-color-rgb: 116, 184, 22}.status-green{--tblr-status-color: #2fb344;--tblr-status-color-rgb: 47, 179, 68}.status-teal{--tblr-status-color: #0ca678;--tblr-status-color-rgb: 12, 166, 120}.status-cyan{--tblr-status-color: #17a2b8;--tblr-status-color-rgb: 23, 162, 184}.status-x{--tblr-status-color: #000000;--tblr-status-color-rgb: 0, 0, 0}.status-facebook{--tblr-status-color: #1877f2;--tblr-status-color-rgb: 24, 119, 242}.status-twitter{--tblr-status-color: #1da1f2;--tblr-status-color-rgb: 29, 161, 242}.status-linkedin{--tblr-status-color: #0a66c2;--tblr-status-color-rgb: 10, 102, 194}.status-google{--tblr-status-color: #dc4e41;--tblr-status-color-rgb: 220, 78, 65}.status-youtube{--tblr-status-color: #ff0000;--tblr-status-color-rgb: 255, 0, 0}.status-vimeo{--tblr-status-color: #1ab7ea;--tblr-status-color-rgb: 26, 183, 234}.status-dribbble{--tblr-status-color: #ea4c89;--tblr-status-color-rgb: 234, 76, 137}.status-github{--tblr-status-color: #181717;--tblr-status-color-rgb: 24, 23, 23}.status-instagram{--tblr-status-color: #e4405f;--tblr-status-color-rgb: 228, 64, 95}.status-pinterest{--tblr-status-color: #bd081c;--tblr-status-color-rgb: 189, 8, 28}.status-vk{--tblr-status-color: #6383a8;--tblr-status-color-rgb: 99, 131, 168}.status-rss{--tblr-status-color: #ffa500;--tblr-status-color-rgb: 255, 165, 0}.status-flickr{--tblr-status-color: #0063dc;--tblr-status-color-rgb: 0, 99, 220}.status-bitbucket{--tblr-status-color: #0052cc;--tblr-status-color-rgb: 0, 82, 204}.status-tabler{--tblr-status-color: #066fd1;--tblr-status-color-rgb: 6, 111, 209}.status-dot{--tblr-status-dot-color: var(--tblr-status-color, #6c7a91);--tblr-status-size: .5rem;position:relative;display:inline-block;width:var(--tblr-status-size);height:var(--tblr-status-size);background:var(--tblr-status-dot-color);border-radius:100rem}.status-dot-animated:before{content:"";position:absolute;inset:0;z-index:0;background:inherit;border-radius:inherit;opacity:.6;animation:1s linear 2s backwards infinite status-pulsate-tertiary}.status-indicator{--tblr-status-indicator-size: 2.5rem;--tblr-status-indicator-color: var(--tblr-status-color, #6c7a91);display:block;position:relative;width:var(--tblr-status-indicator-size);height:var(--tblr-status-indicator-size)}.status-indicator-circle{--tblr-status-circle-size: .75rem;position:absolute;left:50%;top:50%;margin:calc(var(--tblr-status-circle-size) / -2) 0 0 calc(var(--tblr-status-circle-size) / -2);width:var(--tblr-status-circle-size);height:var(--tblr-status-circle-size);border-radius:100rem;background:var(--tblr-status-color)}.status-indicator-circle:nth-child(1){z-index:3}.status-indicator-circle:nth-child(2){z-index:2;opacity:.1}.status-indicator-circle:nth-child(3){z-index:1;opacity:.3}.status-indicator-animated .status-indicator-circle:nth-child(1){animation:2s linear 1s infinite backwards status-pulsate-main}.status-indicator-animated .status-indicator-circle:nth-child(2){animation:2s linear 1s infinite backwards status-pulsate-secondary}.status-indicator-animated .status-indicator-circle:nth-child(3){animation:2s linear 1s infinite backwards status-pulsate-tertiary}.switch-icon{display:inline-block;line-height:1;border:0;padding:0;background:transparent;width:1.25rem;height:1.25rem;vertical-align:bottom;position:relative;cursor:pointer}.switch-icon.disabled{pointer-events:none;opacity:.4}.switch-icon:focus{outline:none}.switch-icon svg{display:block;width:100%;height:100%}.switch-icon .switch-icon-a,.switch-icon .switch-icon-b{display:block;width:100%;height:100%}.switch-icon .switch-icon-a{opacity:1}.switch-icon .switch-icon-b{position:absolute;top:0;left:0;opacity:0}.switch-icon.active .switch-icon-a{opacity:0}.switch-icon.active .switch-icon-b{opacity:1}.switch-icon-fade .switch-icon-a,.switch-icon-fade .switch-icon-b{transition:opacity .5s}@media (prefers-reduced-motion: reduce){.switch-icon-fade .switch-icon-a,.switch-icon-fade .switch-icon-b{transition:none}}.switch-icon-scale .switch-icon-a,.switch-icon-scale .switch-icon-b{transition:opacity .5s,transform 0s .5s}@media (prefers-reduced-motion: reduce){.switch-icon-scale .switch-icon-a,.switch-icon-scale .switch-icon-b{transition:none}}.switch-icon-scale .switch-icon-b{transform:scale(1.5)}.switch-icon-scale.active .switch-icon-a,.switch-icon-scale.active .switch-icon-b{transition:opacity 0s,transform .5s}@media (prefers-reduced-motion: reduce){.switch-icon-scale.active .switch-icon-a,.switch-icon-scale.active .switch-icon-b{transition:none}}.switch-icon-scale.active .switch-icon-b{transform:scale(1)}.switch-icon-flip{perspective:10em}.switch-icon-flip .switch-icon-a,.switch-icon-flip .switch-icon-b{backface-visibility:hidden;transform-style:preserve-3d;transition:opacity 0s .2s,transform .4s ease-in-out}@media (prefers-reduced-motion: reduce){.switch-icon-flip .switch-icon-a,.switch-icon-flip .switch-icon-b{transition:none}}.switch-icon-flip .switch-icon-a{opacity:1;transform:rotateY(0)}.switch-icon-flip .switch-icon-b{opacity:1;transform:rotateY(-180deg)}.switch-icon-flip.active .switch-icon-a{opacity:1;transform:rotateY(180deg)}.switch-icon-flip.active .switch-icon-b{opacity:1;transform:rotateY(0)}.switch-icon-slide-up,.switch-icon-slide-left,.switch-icon-slide-right,.switch-icon-slide-down{overflow:hidden}.switch-icon-slide-up .switch-icon-a,.switch-icon-slide-up .switch-icon-b,.switch-icon-slide-left .switch-icon-a,.switch-icon-slide-left .switch-icon-b,.switch-icon-slide-right .switch-icon-a,.switch-icon-slide-right .switch-icon-b,.switch-icon-slide-down .switch-icon-a,.switch-icon-slide-down .switch-icon-b{transition:opacity .3s,transform .3s}@media (prefers-reduced-motion: reduce){.switch-icon-slide-up .switch-icon-a,.switch-icon-slide-up .switch-icon-b,.switch-icon-slide-left .switch-icon-a,.switch-icon-slide-left .switch-icon-b,.switch-icon-slide-right .switch-icon-a,.switch-icon-slide-right .switch-icon-b,.switch-icon-slide-down .switch-icon-a,.switch-icon-slide-down .switch-icon-b{transition:none}}.switch-icon-slide-up .switch-icon-a,.switch-icon-slide-left .switch-icon-a,.switch-icon-slide-right .switch-icon-a,.switch-icon-slide-down .switch-icon-a{transform:translateY(0)}.switch-icon-slide-up .switch-icon-b,.switch-icon-slide-left .switch-icon-b,.switch-icon-slide-right .switch-icon-b,.switch-icon-slide-down .switch-icon-b{transform:translateY(100%)}.switch-icon-slide-up.active .switch-icon-a,.switch-icon-slide-left.active .switch-icon-a,.switch-icon-slide-right.active .switch-icon-a,.switch-icon-slide-down.active .switch-icon-a{transform:translateY(-100%)}.switch-icon-slide-up.active .switch-icon-b,.switch-icon-slide-left.active .switch-icon-b,.switch-icon-slide-right.active .switch-icon-b,.switch-icon-slide-down.active .switch-icon-b{transform:translateY(0)}.switch-icon-slide-left .switch-icon-a{transform:translate(0)}.switch-icon-slide-left .switch-icon-b{transform:translate(100%)}.switch-icon-slide-left.active .switch-icon-a{transform:translate(-100%)}.switch-icon-slide-left.active .switch-icon-b,.switch-icon-slide-right .switch-icon-a{transform:translate(0)}.switch-icon-slide-right .switch-icon-b{transform:translate(-100%)}.switch-icon-slide-right.active .switch-icon-a{transform:translate(100%)}.switch-icon-slide-right.active .switch-icon-b{transform:translate(0)}.switch-icon-slide-down .switch-icon-a{transform:translateY(0)}.switch-icon-slide-down .switch-icon-b{transform:translateY(-100%)}.switch-icon-slide-down.active .switch-icon-a{transform:translateY(100%)}.switch-icon-slide-down.active .switch-icon-b{transform:translateY(0)}.table thead th,.markdown>table thead th{color:var(--tblr-gray-500);background:var(--tblr-bg-surface-tertiary);font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);padding-top:.5rem;padding-bottom:.5rem;white-space:nowrap}@media print{.table thead th,.markdown>table thead th{background:transparent}}.table-responsive .table,.table-responsive .markdown>table{margin-bottom:0}.table-responsive+.card-footer{border-top:0}.table-transparent thead th{background:transparent}.table-nowrap>:not(caption)>*>*{white-space:nowrap}.table-vcenter>:not(caption)>*>*{vertical-align:middle}.table-center>:not(caption)>*>*{text-align:center}.td-truncate{max-width:1px;width:100%}.table-mobile{display:block}.table-mobile thead{display:none}.table-mobile tbody,.table-mobile tr{display:flex;flex-direction:column}.table-mobile td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile .btn{display:block}@media (max-width: 575.98px){.table-mobile-sm{display:block}.table-mobile-sm thead{display:none}.table-mobile-sm tbody,.table-mobile-sm tr{display:flex;flex-direction:column}.table-mobile-sm td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-sm td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-sm tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-sm .btn{display:block}}@media (max-width: 767.98px){.table-mobile-md{display:block}.table-mobile-md thead{display:none}.table-mobile-md tbody,.table-mobile-md tr{display:flex;flex-direction:column}.table-mobile-md td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-md td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-md tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-md .btn{display:block}}@media (max-width: 991.98px){.table-mobile-lg{display:block}.table-mobile-lg thead{display:none}.table-mobile-lg tbody,.table-mobile-lg tr{display:flex;flex-direction:column}.table-mobile-lg td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-lg td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-lg tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-lg .btn{display:block}}@media (max-width: 1199.98px){.table-mobile-xl{display:block}.table-mobile-xl thead{display:none}.table-mobile-xl tbody,.table-mobile-xl tr{display:flex;flex-direction:column}.table-mobile-xl td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-xl td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-xl tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-xl .btn{display:block}}@media (max-width: 1399.98px){.table-mobile-xxl{display:block}.table-mobile-xxl thead{display:none}.table-mobile-xxl tbody,.table-mobile-xxl tr{display:flex;flex-direction:column}.table-mobile-xxl td{display:block;padding:.5rem!important;border:none;color:var(--tblr-body-color)!important}.table-mobile-xxl td[data-label]:before{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);content:attr(data-label);display:block}.table-mobile-xxl tr{border-bottom:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent)}.table-mobile-xxl .btn{display:block}}.table-sort{font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;border:0;background:inherit;display:block;width:100%;text-align:inherit;transition:color .3s;margin:-.5rem;padding:.5rem}@media (prefers-reduced-motion: reduce){.table-sort{transition:none}}.table-sort:hover,.table-sort.asc,.table-sort.desc{color:var(--tblr-body-color)}.table-sort:after{content:"";display:inline-flex;width:1rem;height:1rem;vertical-align:bottom;mask-image:url("data:image/svg+xml, ");background:currentColor;margin-left:.25rem}.table-sort.asc:after{mask-image:url("data:image/svg+xml, ")}.table-sort.desc:after{mask-image:url("data:image/svg+xml, ")}.table-borderless thead th{background:transparent}.tag{--tblr-tag-height: 1.5rem;border:1px solid var(--tblr-border-color);display:inline-flex;align-items:center;height:var(--tblr-tag-height);border-radius:var(--tblr-border-radius);padding:0 .5rem;background:var(--tblr-bg-surface);box-shadow:var(--tblr-box-shadow-input);gap:.5rem}.tag .btn-close{margin-right:-.25rem;margin-left:-.125rem;padding:0;width:1rem;height:1rem;font-size:.5rem}.tag-badge{--tblr-badge-font-size: .625rem;--tblr-badge-padding-x: .25rem;--tblr-badge-padding-y: .125rem;margin-right:-.25rem}.tag-avatar,.tag-flag,.tag-payment,.tag-icon,.tag-check{margin-left:-.25rem}.tag-icon{color:var(--tblr-secondary);margin-right:-.125rem;width:1rem;height:1rem}.tag-check{width:1rem;height:1rem;background-size:1rem}.tags-list{--tblr-list-gap: .5rem;display:flex;flex-wrap:wrap;gap:var(--tblr-list-gap)}.toast{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color-translucent);box-shadow:#1824330a 0 2px 4px}.toast .toast-header{user-select:none}.toast button[data-bs-dismiss=toast]{outline:none}.toast-primary{--tblr-toast-color: #00857D}.toast-secondary{--tblr-toast-color: #6c7a91}.toast-success{--tblr-toast-color: #2fb344}.toast-info{--tblr-toast-color: #4299e1}.toast-warning{--tblr-toast-color: #f76707}.toast-danger{--tblr-toast-color: #d63939}.toast-light{--tblr-toast-color: #f6f8fb}.toast-dark{--tblr-toast-color: #182433}.toast-muted{--tblr-toast-color: #6c7a91}.toast-blue{--tblr-toast-color: #066fd1}.toast-azure{--tblr-toast-color: #4299e1}.toast-indigo{--tblr-toast-color: #4263eb}.toast-purple{--tblr-toast-color: #ae3ec9}.toast-pink{--tblr-toast-color: #d6336c}.toast-red{--tblr-toast-color: #d63939}.toast-orange{--tblr-toast-color: #f76707}.toast-yellow{--tblr-toast-color: #f59f00}.toast-lime{--tblr-toast-color: #74b816}.toast-green{--tblr-toast-color: #2fb344}.toast-teal{--tblr-toast-color: #0ca678}.toast-cyan{--tblr-toast-color: #17a2b8}.toast-x{--tblr-toast-color: #000000}.toast-facebook{--tblr-toast-color: #1877f2}.toast-twitter{--tblr-toast-color: #1da1f2}.toast-linkedin{--tblr-toast-color: #0a66c2}.toast-google{--tblr-toast-color: #dc4e41}.toast-youtube{--tblr-toast-color: #ff0000}.toast-vimeo{--tblr-toast-color: #1ab7ea}.toast-dribbble{--tblr-toast-color: #ea4c89}.toast-github{--tblr-toast-color: #181717}.toast-instagram{--tblr-toast-color: #e4405f}.toast-pinterest{--tblr-toast-color: #bd081c}.toast-vk{--tblr-toast-color: #6383a8}.toast-rss{--tblr-toast-color: #ffa500}.toast-flickr{--tblr-toast-color: #0063dc}.toast-bitbucket{--tblr-toast-color: #0052cc}.toast-tabler{--tblr-toast-color: #066fd1}.toolbar{display:flex;flex-wrap:nowrap;flex-shrink:0;margin:0 -.5rem}.toolbar>*{margin:0 .5rem}.tracking{--tblr-tracking-height: 1.5rem;--tblr-tracking-gap-width: .125rem;--tblr-tracking-block-border-radius: var(--tblr-border-radius);display:flex;gap:var(--tblr-tracking-gap-width)}.tracking-squares{--tblr-tracking-block-border-radius: var(--tblr-border-radius-sm)}.tracking-squares .tracking-block{height:auto}.tracking-squares .tracking-block:before{content:"";display:block;padding-top:100%}.tracking-block{flex:1;border-radius:var(--tblr-tracking-block-border-radius);height:var(--tblr-tracking-height);min-width:.25rem;background:var(--tblr-border-color)}.timeline{--tblr-timeline-icon-size: 2.5rem;position:relative;list-style:none;padding:0}.timeline-event{position:relative}.timeline-event:not(:last-child){margin-bottom:var(--tblr-page-padding)}.timeline-event:not(:last-child):before{content:"";position:absolute;top:var(--tblr-timeline-icon-size);left:calc(var(--tblr-timeline-icon-size) / 2);bottom:calc(-1 * var(--tblr-page-padding));width:var(--tblr-border-width);background-color:var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.timeline-event-icon{position:absolute;display:flex;align-items:center;justify-content:center;width:var(--tblr-timeline-icon-size, 2.5rem);height:var(--tblr-timeline-icon-size, 2.5rem);background:var(--tblr-gray-200);color:var(--tblr-secondary);border-radius:var(--tblr-border-radius);z-index:5}.timeline-event-card{margin-left:calc(var(--tblr-timeline-icon-size, 2.5rem) + var(--tblr-page-padding))}.timeline-simple .timeline-event-icon{display:none}.timeline-simple .timeline-event-card{margin-left:0}.hr-text{display:flex;align-items:center;margin:2rem 0;font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);height:1px}.hr-text:after,.hr-text:before{flex:1 1 auto;height:1px;background-color:var(--tblr-border-color)}.hr-text:before{content:"";margin-right:.5rem}.hr-text:after{content:"";margin-left:.5rem}.hr-text>*:first-child{padding-right:.5rem;padding-left:0;color:var(--tblr-secondary)}.hr-text.hr-text-left:before{content:none}.hr-text.hr-text-left>*:first-child{padding-right:.5rem;padding-left:.5rem}.hr-text.hr-text-right:before{content:""}.hr-text.hr-text-right:after{content:none}.hr-text.hr-text-right>*:first-child{padding-right:0;padding-left:.5rem}.card>.hr-text{margin:0}.hr-text-spaceless{margin:-.5rem 0}.lead{line-height:1.4}a{text-decoration-skip-ink:auto}h1 a,h2 a,h3 a,.field-group h2 a,h4 a,h5 a,h6 a,.h1 a,.h2 a,.h3 a,.h4 a,.h5 a,.h6 a,h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover,h5 a:hover,h6 a:hover,.h1 a:hover,.h2 a:hover,.h3 a:hover,.h4 a:hover,.h5 a:hover,.h6 a:hover{color:inherit}h1,.h1{font-size:var(--tblr-font-size-h1);line-height:var(--tblr-line-height-h1)}h2,.h2{font-size:var(--tblr-font-size-h2);line-height:var(--tblr-line-height-h2)}h3,.field-group h2,.field-group .h2,.h3{font-size:var(--tblr-font-size-h3);line-height:var(--tblr-line-height-h3)}h4,.h4{font-size:var(--tblr-font-size-h4);line-height:var(--tblr-line-height-h4)}h5,.h5{font-size:var(--tblr-font-size-h5);line-height:var(--tblr-line-height-h5)}h6,.h6{font-size:var(--tblr-font-size-h6);line-height:var(--tblr-line-height-h6)}strong,.strong,b{font-weight:var(--tblr-font-weight-bold)}blockquote{padding-left:1rem;border-left:2px var(--tblr-border-style) var(--tblr-border-color)}blockquote p{margin-bottom:1rem}blockquote cite{display:block;text-align:right}blockquote cite:before{content:"\2014 "}ul,ol{padding-left:1.5rem}hr,.hr{margin:2rem 0}dl dd:last-child{margin-bottom:0}pre{padding:1rem;background:var(--tblr-bg-surface-dark);color:var(--tblr-light);border-radius:var(--tblr-border-radius)}pre code{background:transparent}code{background:var(--tblr-code-bg);padding:2px 4px;border-radius:var(--tblr-border-radius)}kbd,.kbd{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);display:inline-block;box-sizing:border-box;max-width:100%;font-size:var(--tblr-font-size-h5);font-weight:var(--tblr-font-weight-medium);line-height:1;vertical-align:baseline;border-radius:var(--tblr-border-radius)}img,svg{max-width:100%;height:auto}.list-unstyled{margin-left:0}::selection{background-color:rgba(var(--tblr-primary-rgb),.16)}[class^=link-].disabled,[class*=" link-"].disabled{color:var(--tblr-disabled-color)!important;pointer-events:none}.subheader{font-size:.625rem;font-weight:var(--tblr-font-weight-bold);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary)}.chart{display:block;min-height:10rem}.chart text{font-family:inherit}.chart-sm{height:2.5rem}.chart-lg{height:15rem}.chart-square{height:5.75rem}.chart-sparkline{position:relative;width:4rem;height:2.5rem;line-height:1;min-height:0!important}.chart-sparkline-sm{height:1.5rem}.chart-sparkline-square{width:2.5rem}.chart-sparkline-wide{width:6rem}.chart-sparkline-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:.625rem}.chart-sparkline-label .icon{width:1rem;height:1rem;font-size:1rem}.offcanvas-header{border-bottom:var(--tblr-border-width) var(--tblr-border-style) rgba(4,32,69,.1)}.offcanvas-footer{padding:1.5rem}.offcanvas-title{font-size:1rem;font-weight:var(--tblr-font-weight-medium);line-height:1.5rem}.offcanvas-narrow{width:20rem}.chat-bubbles{display:flex;flex-direction:column;gap:1rem}.chat-bubble{background:var(--tblr-bg-surface-secondary);border-radius:var(--tblr-border-radius-lg);padding:1rem;position:relative}.chat-bubble-me{background-color:var(--tblr-primary-lt);box-shadow:none}.chat-bubble-title{margin-bottom:.25rem}.chat-bubble-author{font-weight:600}.chat-bubble-date{color:var(--tblr-secondary)}.chat-bubble-body>*:last-child{margin-bottom:0}.bg-white-overlay{color:#fff;background-color:#f6f8fb3d}.bg-dark-overlay{color:#fff;background-color:#1824333d}.bg-cover{background-repeat:no-repeat;background-size:cover;background-position:center}.bg-primary{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-primary-rgb),var(--tblr-bg-opacity))!important}.bg-primary-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-primary-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-primary-lt-rgb),var(--tblr-bg-opacity))!important}.border-primary{border-color:#00857d!important}.bg-secondary{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-secondary-rgb),var(--tblr-bg-opacity))!important}.bg-secondary-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-secondary-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-secondary-lt-rgb),var(--tblr-bg-opacity))!important}.border-secondary{border-color:#6c7a91!important}.bg-success{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-success-rgb),var(--tblr-bg-opacity))!important}.bg-success-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-success-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-success-lt-rgb),var(--tblr-bg-opacity))!important}.border-success{border-color:#2fb344!important}.bg-info{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-info-rgb),var(--tblr-bg-opacity))!important}.bg-info-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-info-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-info-lt-rgb),var(--tblr-bg-opacity))!important}.border-info{border-color:#4299e1!important}.bg-warning{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-warning-rgb),var(--tblr-bg-opacity))!important}.bg-warning-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-warning-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-warning-lt-rgb),var(--tblr-bg-opacity))!important}.border-warning{border-color:#f76707!important}.bg-danger{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-danger-rgb),var(--tblr-bg-opacity))!important}.bg-danger-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-danger-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-danger-lt-rgb),var(--tblr-bg-opacity))!important}.border-danger{border-color:#d63939!important}.bg-light{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-light-rgb),var(--tblr-bg-opacity))!important}.bg-light-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-light-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-light-lt-rgb),var(--tblr-bg-opacity))!important}.border-light{border-color:#f6f8fb!important}.bg-dark{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-dark-rgb),var(--tblr-bg-opacity))!important}.bg-dark-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-dark-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-dark-lt-rgb),var(--tblr-bg-opacity))!important}.border-dark{border-color:#182433!important}.bg-muted{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-muted-rgb),var(--tblr-bg-opacity))!important}.bg-muted-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-muted-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-muted-lt-rgb),var(--tblr-bg-opacity))!important}.border-muted{border-color:#6c7a91!important}.bg-blue{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-blue-rgb),var(--tblr-bg-opacity))!important}.bg-blue-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-blue-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-blue-lt-rgb),var(--tblr-bg-opacity))!important}.border-blue{border-color:#066fd1!important}.bg-azure{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-azure-rgb),var(--tblr-bg-opacity))!important}.bg-azure-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-azure-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-azure-lt-rgb),var(--tblr-bg-opacity))!important}.border-azure{border-color:#4299e1!important}.bg-indigo{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-indigo-rgb),var(--tblr-bg-opacity))!important}.bg-indigo-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-indigo-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-indigo-lt-rgb),var(--tblr-bg-opacity))!important}.border-indigo{border-color:#4263eb!important}.bg-purple{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-purple-rgb),var(--tblr-bg-opacity))!important}.bg-purple-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-purple-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-purple-lt-rgb),var(--tblr-bg-opacity))!important}.border-purple{border-color:#ae3ec9!important}.bg-pink{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-pink-rgb),var(--tblr-bg-opacity))!important}.bg-pink-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-pink-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-pink-lt-rgb),var(--tblr-bg-opacity))!important}.border-pink{border-color:#d6336c!important}.bg-red{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-red-rgb),var(--tblr-bg-opacity))!important}.bg-red-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-red-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-red-lt-rgb),var(--tblr-bg-opacity))!important}.border-red{border-color:#d63939!important}.bg-orange{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-orange-rgb),var(--tblr-bg-opacity))!important}.bg-orange-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-orange-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-orange-lt-rgb),var(--tblr-bg-opacity))!important}.border-orange{border-color:#f76707!important}.bg-yellow{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-yellow-rgb),var(--tblr-bg-opacity))!important}.bg-yellow-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-yellow-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-yellow-lt-rgb),var(--tblr-bg-opacity))!important}.border-yellow{border-color:#f59f00!important}.bg-lime{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-lime-rgb),var(--tblr-bg-opacity))!important}.bg-lime-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-lime-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-lime-lt-rgb),var(--tblr-bg-opacity))!important}.border-lime{border-color:#74b816!important}.bg-green{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-green-rgb),var(--tblr-bg-opacity))!important}.bg-green-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-green-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-green-lt-rgb),var(--tblr-bg-opacity))!important}.border-green{border-color:#2fb344!important}.bg-teal{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-teal-rgb),var(--tblr-bg-opacity))!important}.bg-teal-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-teal-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-teal-lt-rgb),var(--tblr-bg-opacity))!important}.border-teal{border-color:#0ca678!important}.bg-cyan{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-cyan-rgb),var(--tblr-bg-opacity))!important}.bg-cyan-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-cyan-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-cyan-lt-rgb),var(--tblr-bg-opacity))!important}.border-cyan{border-color:#17a2b8!important}.bg-x{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-x-rgb),var(--tblr-bg-opacity))!important}.bg-x-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-x-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-x-lt-rgb),var(--tblr-bg-opacity))!important}.border-x{border-color:#000!important}.bg-facebook{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-facebook-rgb),var(--tblr-bg-opacity))!important}.bg-facebook-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-facebook-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-facebook-lt-rgb),var(--tblr-bg-opacity))!important}.border-facebook{border-color:#1877f2!important}.bg-twitter{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-twitter-rgb),var(--tblr-bg-opacity))!important}.bg-twitter-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-twitter-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-twitter-lt-rgb),var(--tblr-bg-opacity))!important}.border-twitter{border-color:#1da1f2!important}.bg-linkedin{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-linkedin-rgb),var(--tblr-bg-opacity))!important}.bg-linkedin-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-linkedin-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-linkedin-lt-rgb),var(--tblr-bg-opacity))!important}.border-linkedin{border-color:#0a66c2!important}.bg-google{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-google-rgb),var(--tblr-bg-opacity))!important}.bg-google-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-google-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-google-lt-rgb),var(--tblr-bg-opacity))!important}.border-google{border-color:#dc4e41!important}.bg-youtube{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-youtube-rgb),var(--tblr-bg-opacity))!important}.bg-youtube-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-youtube-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-youtube-lt-rgb),var(--tblr-bg-opacity))!important}.border-youtube{border-color:red!important}.bg-vimeo{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-vimeo-rgb),var(--tblr-bg-opacity))!important}.bg-vimeo-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-vimeo-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-vimeo-lt-rgb),var(--tblr-bg-opacity))!important}.border-vimeo{border-color:#1ab7ea!important}.bg-dribbble{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-dribbble-rgb),var(--tblr-bg-opacity))!important}.bg-dribbble-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-dribbble-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-dribbble-lt-rgb),var(--tblr-bg-opacity))!important}.border-dribbble{border-color:#ea4c89!important}.bg-github{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-github-rgb),var(--tblr-bg-opacity))!important}.bg-github-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-github-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-github-lt-rgb),var(--tblr-bg-opacity))!important}.border-github{border-color:#181717!important}.bg-instagram{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-instagram-rgb),var(--tblr-bg-opacity))!important}.bg-instagram-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-instagram-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-instagram-lt-rgb),var(--tblr-bg-opacity))!important}.border-instagram{border-color:#e4405f!important}.bg-pinterest{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-pinterest-rgb),var(--tblr-bg-opacity))!important}.bg-pinterest-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-pinterest-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-pinterest-lt-rgb),var(--tblr-bg-opacity))!important}.border-pinterest{border-color:#bd081c!important}.bg-vk{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-vk-rgb),var(--tblr-bg-opacity))!important}.bg-vk-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-vk-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-vk-lt-rgb),var(--tblr-bg-opacity))!important}.border-vk{border-color:#6383a8!important}.bg-rss{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-rss-rgb),var(--tblr-bg-opacity))!important}.bg-rss-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-rss-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-rss-lt-rgb),var(--tblr-bg-opacity))!important}.border-rss{border-color:orange!important}.bg-flickr{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-flickr-rgb),var(--tblr-bg-opacity))!important}.bg-flickr-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-flickr-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-flickr-lt-rgb),var(--tblr-bg-opacity))!important}.border-flickr{border-color:#0063dc!important}.bg-bitbucket{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-bg-opacity))!important}.bg-bitbucket-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-bitbucket-lt-rgb),var(--tblr-bg-opacity))!important}.border-bitbucket{border-color:#0052cc!important}.bg-tabler{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-tabler-rgb),var(--tblr-bg-opacity))!important}.bg-tabler-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-tabler-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-tabler-lt-rgb),var(--tblr-bg-opacity))!important}.border-tabler{border-color:#066fd1!important}.bg-white{--tblr-bg-opacity: 1;background-color:rgba(var(--tblr-white-rgb),var(--tblr-bg-opacity))!important}.bg-white-lt{--tblr-bg-opacity: 1;--tblr-text-opacity: 1;color:rgba(var(--tblr-white-rgb),var(--tblr-text-opacity))!important;background-color:rgba(var(--tblr-white-lt-rgb),var(--tblr-bg-opacity))!important}.border-white{border-color:#fff!important}.text-primary{--tblr-text-opacity: 1;color:rgba(var(--tblr-primary-rgb),var(--tblr-text-opacity))!important}.text-primary-fg{color:var(--tblr-primary-fg)!important}.text-secondary{--tblr-text-opacity: 1;color:rgba(var(--tblr-secondary-rgb),var(--tblr-text-opacity))!important}.text-secondary-fg{color:var(--tblr-secondary-fg)!important}.text-success{--tblr-text-opacity: 1;color:rgba(var(--tblr-success-rgb),var(--tblr-text-opacity))!important}.text-success-fg{color:var(--tblr-success-fg)!important}.text-info{--tblr-text-opacity: 1;color:rgba(var(--tblr-info-rgb),var(--tblr-text-opacity))!important}.text-info-fg{color:var(--tblr-info-fg)!important}.text-warning{--tblr-text-opacity: 1;color:rgba(var(--tblr-warning-rgb),var(--tblr-text-opacity))!important}.text-warning-fg{color:var(--tblr-warning-fg)!important}.text-danger{--tblr-text-opacity: 1;color:rgba(var(--tblr-danger-rgb),var(--tblr-text-opacity))!important}.text-danger-fg{color:var(--tblr-danger-fg)!important}.text-light{--tblr-text-opacity: 1;color:rgba(var(--tblr-light-rgb),var(--tblr-text-opacity))!important}.text-light-fg{color:var(--tblr-light-fg)!important}.text-dark{--tblr-text-opacity: 1;color:rgba(var(--tblr-dark-rgb),var(--tblr-text-opacity))!important}.text-dark-fg{color:var(--tblr-dark-fg)!important}.text-muted{--tblr-text-opacity: 1;color:rgba(var(--tblr-muted-rgb),var(--tblr-text-opacity))!important}.text-muted-fg{color:var(--tblr-muted-fg)!important}.text-blue{--tblr-text-opacity: 1;color:rgba(var(--tblr-blue-rgb),var(--tblr-text-opacity))!important}.text-blue-fg{color:var(--tblr-blue-fg)!important}.text-azure{--tblr-text-opacity: 1;color:rgba(var(--tblr-azure-rgb),var(--tblr-text-opacity))!important}.text-azure-fg{color:var(--tblr-azure-fg)!important}.text-indigo{--tblr-text-opacity: 1;color:rgba(var(--tblr-indigo-rgb),var(--tblr-text-opacity))!important}.text-indigo-fg{color:var(--tblr-indigo-fg)!important}.text-purple{--tblr-text-opacity: 1;color:rgba(var(--tblr-purple-rgb),var(--tblr-text-opacity))!important}.text-purple-fg{color:var(--tblr-purple-fg)!important}.text-pink{--tblr-text-opacity: 1;color:rgba(var(--tblr-pink-rgb),var(--tblr-text-opacity))!important}.text-pink-fg{color:var(--tblr-pink-fg)!important}.text-red{--tblr-text-opacity: 1;color:rgba(var(--tblr-red-rgb),var(--tblr-text-opacity))!important}.text-red-fg{color:var(--tblr-red-fg)!important}.text-orange{--tblr-text-opacity: 1;color:rgba(var(--tblr-orange-rgb),var(--tblr-text-opacity))!important}.text-orange-fg{color:var(--tblr-orange-fg)!important}.text-yellow{--tblr-text-opacity: 1;color:rgba(var(--tblr-yellow-rgb),var(--tblr-text-opacity))!important}.text-yellow-fg{color:var(--tblr-yellow-fg)!important}.text-lime{--tblr-text-opacity: 1;color:rgba(var(--tblr-lime-rgb),var(--tblr-text-opacity))!important}.text-lime-fg{color:var(--tblr-lime-fg)!important}.text-green{--tblr-text-opacity: 1;color:rgba(var(--tblr-green-rgb),var(--tblr-text-opacity))!important}.text-green-fg{color:var(--tblr-green-fg)!important}.text-teal{--tblr-text-opacity: 1;color:rgba(var(--tblr-teal-rgb),var(--tblr-text-opacity))!important}.text-teal-fg{color:var(--tblr-teal-fg)!important}.text-cyan{--tblr-text-opacity: 1;color:rgba(var(--tblr-cyan-rgb),var(--tblr-text-opacity))!important}.text-cyan-fg{color:var(--tblr-cyan-fg)!important}.text-x{--tblr-text-opacity: 1;color:rgba(var(--tblr-x-rgb),var(--tblr-text-opacity))!important}.text-x-fg{color:var(--tblr-x-fg)!important}.text-facebook{--tblr-text-opacity: 1;color:rgba(var(--tblr-facebook-rgb),var(--tblr-text-opacity))!important}.text-facebook-fg{color:var(--tblr-facebook-fg)!important}.text-twitter{--tblr-text-opacity: 1;color:rgba(var(--tblr-twitter-rgb),var(--tblr-text-opacity))!important}.text-twitter-fg{color:var(--tblr-twitter-fg)!important}.text-linkedin{--tblr-text-opacity: 1;color:rgba(var(--tblr-linkedin-rgb),var(--tblr-text-opacity))!important}.text-linkedin-fg{color:var(--tblr-linkedin-fg)!important}.text-google{--tblr-text-opacity: 1;color:rgba(var(--tblr-google-rgb),var(--tblr-text-opacity))!important}.text-google-fg{color:var(--tblr-google-fg)!important}.text-youtube{--tblr-text-opacity: 1;color:rgba(var(--tblr-youtube-rgb),var(--tblr-text-opacity))!important}.text-youtube-fg{color:var(--tblr-youtube-fg)!important}.text-vimeo{--tblr-text-opacity: 1;color:rgba(var(--tblr-vimeo-rgb),var(--tblr-text-opacity))!important}.text-vimeo-fg{color:var(--tblr-vimeo-fg)!important}.text-dribbble{--tblr-text-opacity: 1;color:rgba(var(--tblr-dribbble-rgb),var(--tblr-text-opacity))!important}.text-dribbble-fg{color:var(--tblr-dribbble-fg)!important}.text-github{--tblr-text-opacity: 1;color:rgba(var(--tblr-github-rgb),var(--tblr-text-opacity))!important}.text-github-fg{color:var(--tblr-github-fg)!important}.text-instagram{--tblr-text-opacity: 1;color:rgba(var(--tblr-instagram-rgb),var(--tblr-text-opacity))!important}.text-instagram-fg{color:var(--tblr-instagram-fg)!important}.text-pinterest{--tblr-text-opacity: 1;color:rgba(var(--tblr-pinterest-rgb),var(--tblr-text-opacity))!important}.text-pinterest-fg{color:var(--tblr-pinterest-fg)!important}.text-vk{--tblr-text-opacity: 1;color:rgba(var(--tblr-vk-rgb),var(--tblr-text-opacity))!important}.text-vk-fg{color:var(--tblr-vk-fg)!important}.text-rss{--tblr-text-opacity: 1;color:rgba(var(--tblr-rss-rgb),var(--tblr-text-opacity))!important}.text-rss-fg{color:var(--tblr-rss-fg)!important}.text-flickr{--tblr-text-opacity: 1;color:rgba(var(--tblr-flickr-rgb),var(--tblr-text-opacity))!important}.text-flickr-fg{color:var(--tblr-flickr-fg)!important}.text-bitbucket{--tblr-text-opacity: 1;color:rgba(var(--tblr-bitbucket-rgb),var(--tblr-text-opacity))!important}.text-bitbucket-fg{color:var(--tblr-bitbucket-fg)!important}.text-tabler{--tblr-text-opacity: 1;color:rgba(var(--tblr-tabler-rgb),var(--tblr-text-opacity))!important}.text-tabler-fg{color:var(--tblr-tabler-fg)!important}.bg-gray-50{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-50-rgb),var(--tblr-bg-opacity))!important}.text-gray-50-fg{color:#182433!important}.bg-gray-100{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-100-rgb),var(--tblr-bg-opacity))!important}.text-gray-100-fg{color:#182433!important}.bg-gray-200{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-200-rgb),var(--tblr-bg-opacity))!important}.text-gray-200-fg{color:#182433!important}.bg-gray-300{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-300-rgb),var(--tblr-bg-opacity))!important}.text-gray-300-fg{color:#f6f8fb!important}.bg-gray-400{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-400-rgb),var(--tblr-bg-opacity))!important}.text-gray-400-fg{color:#f6f8fb!important}.bg-gray-500{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-500-rgb),var(--tblr-bg-opacity))!important}.text-gray-500-fg{color:#f6f8fb!important}.bg-gray-600{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-600-rgb),var(--tblr-bg-opacity))!important}.text-gray-600-fg{color:#f6f8fb!important}.bg-gray-700{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-700-rgb),var(--tblr-bg-opacity))!important}.text-gray-700-fg{color:#f6f8fb!important}.bg-gray-800{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-800-rgb),var(--tblr-bg-opacity))!important}.text-gray-800-fg{color:#f6f8fb!important}.bg-gray-900{--tblr-bg-opacity: .1;background-color:rgba(var(--tblr-gray-900-rgb),var(--tblr-bg-opacity))!important}.text-gray-900-fg{color:#f6f8fb!important}.scrollable{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.scrollable.hover{overflow-y:hidden}.scrollable.hover>*{margin-top:-1px}.scrollable.hover:hover,.scrollable.hover:focus,.scrollable.hover:active{overflow:visible;overflow-y:auto}.touch .scrollable{overflow-y:auto!important}.scroll-x,.scroll-y{overflow:hidden;-webkit-overflow-scrolling:touch}.scroll-y{overflow-y:auto}.scroll-x{overflow-x:auto}.no-scroll{overflow:hidden}.w-0{width:0!important}.h-0{height:0!important}.w-1{width:.25rem!important}.h-1{height:.25rem!important}.w-2{width:.5rem!important}.h-2{height:.5rem!important}.w-3{width:1rem!important}.h-3{height:1rem!important}.w-4{width:1.5rem!important}.h-4{height:1.5rem!important}.w-5{width:2rem!important}.h-5{height:2rem!important}.w-6{width:3rem!important}.h-6{height:3rem!important}.w-7{width:5rem!important}.h-7{height:5rem!important}.w-8{width:8rem!important}.h-8{height:8rem!important}.w-auto{width:auto!important}.h-auto{height:auto!important}.w-px{width:1px!important}.h-px{height:1px!important}.w-full{width:100%!important}.h-full{height:100%!important}.opacity-0{opacity:0!important}.opacity-5{opacity:.05!important}.opacity-10{opacity:.1!important}.opacity-15{opacity:.15!important}.opacity-20{opacity:.2!important}.opacity-25{opacity:.25!important}.opacity-30{opacity:.3!important}.opacity-35{opacity:.35!important}.opacity-40{opacity:.4!important}.opacity-45{opacity:.45!important}.opacity-50{opacity:.5!important}.opacity-55{opacity:.55!important}.opacity-60{opacity:.6!important}.opacity-65{opacity:.65!important}.opacity-70{opacity:.7!important}.opacity-75{opacity:.75!important}.opacity-80{opacity:.8!important}.opacity-85{opacity:.85!important}.opacity-90{opacity:.9!important}.opacity-95{opacity:.95!important}.opacity-100{opacity:1!important}.hover-shadow-sm:hover{box-shadow:0 .125rem .25rem #00000013!important}.hover-shadow:hover{box-shadow:rgba(var(--tblr-body-color-rgb),.04) 0 2px 4px!important}.hover-shadow-lg:hover{box-shadow:0 1rem 3rem #0000002d!important}.hover-shadow-none:hover{box-shadow:none!important}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.ts-control{border:1px solid var(--tblr-border-color);padding:.5625rem .75rem;width:100%;overflow:hidden;position:relative;z-index:1;box-sizing:border-box;box-shadow:none;border-radius:var(--tblr-border-radius);display:flex;flex-wrap:wrap}.ts-wrapper.multi.has-items .ts-control{padding:calc(.5625rem - 1px + -0) .75rem calc(.5625rem - 4px + -0)}.full .ts-control{background-color:var(--tblr-bg-forms)}.disabled .ts-control,.disabled .ts-control *{cursor:default!important}.focus .ts-control{box-shadow:none}.ts-control>*{vertical-align:baseline;display:inline-block}.ts-wrapper.multi .ts-control>div{cursor:pointer;margin:0 3px 3px 0;padding:1px 5px;background:#efefef;color:#182433;border:0 solid #dce1e7}.ts-wrapper.multi .ts-control>div.active{background:#00857d;color:#fff;border:0 solid rgba(0,0,0,0)}.ts-wrapper.multi.disabled .ts-control>div,.ts-wrapper.multi.disabled .ts-control>div.active{color:#727272;background:#fff;border:0 solid white}.ts-control>input{flex:1 1 auto;min-width:7rem;display:inline-block!important;padding:0!important;min-height:0!important;max-height:none!important;max-width:100%!important;margin:0!important;text-indent:0!important;border:0 none!important;background:none!important;line-height:inherit!important;user-select:auto!important;box-shadow:none!important}.ts-control>input::-ms-clear{display:none}.ts-control>input:focus{outline:none!important}.has-items .ts-control>input{margin:0 4px!important}.ts-control.rtl{text-align:right}.ts-control.rtl.single .ts-control:after{left:calc(.75rem + 5px);right:auto}.ts-control.rtl .ts-control>input{margin:0 4px 0 -2px!important}.disabled .ts-control{opacity:.5;background-color:var(--tblr-bg-surface-secondary)}.input-hidden .ts-control>input{opacity:0;position:absolute;left:-10000px}.ts-dropdown{position:absolute;top:100%;left:0;width:100%;z-index:10;border:1px solid #d0d0d0;background:#fff;margin:.25rem 0 0;border-top:0 none;box-sizing:border-box;box-shadow:0 1px 3px #0000001a;border-radius:0 0 var(--tblr-border-radius) var(--tblr-border-radius)}.ts-dropdown [data-selectable]{cursor:pointer;overflow:hidden}.ts-dropdown [data-selectable] .highlight{background:#ffed2866;border-radius:1px}.ts-dropdown .option,.ts-dropdown .optgroup-header,.ts-dropdown .no-results,.ts-dropdown .create{padding:3px .75rem}.ts-dropdown .option,.ts-dropdown [data-disabled],.ts-dropdown [data-disabled] [data-selectable].option{cursor:inherit;opacity:.5}.ts-dropdown [data-selectable].option{opacity:1;cursor:pointer}.ts-dropdown .optgroup:first-child .optgroup-header{border-top:0 none}.ts-dropdown .optgroup-header{color:#49566c;background:var(--tblr-bg-surface);cursor:default}.ts-dropdown .active{background-color:rgba(var(--tblr-secondary-rgb),.08);color:inherit}.ts-dropdown .active.create{color:inherit}.ts-dropdown .create{color:#18243380}.ts-dropdown .spinner{display:inline-block;width:30px;height:30px;margin:3px .75rem}.ts-dropdown .spinner:after{content:" ";display:block;width:24px;height:24px;margin:3px;border-radius:50%;border:5px solid #d0d0d0;border-color:#d0d0d0 transparent #d0d0d0 transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ts-dropdown-content{overflow:hidden auto;max-height:200px;scroll-behavior:smooth}.ts-wrapper.plugin-drag_drop .ts-dragging{color:transparent!important}.ts-wrapper.plugin-drag_drop .ts-dragging>*{visibility:hidden!important}.plugin-checkbox_options:not(.rtl) .option input{margin-right:.5rem}.plugin-checkbox_options.rtl .option input{margin-left:.5rem}.plugin-clear_button{--ts-pr-clear-button: 1em}.plugin-clear_button .clear-button{opacity:0;position:absolute;top:50%;transform:translateY(-50%);right:calc(.75rem - 5px);margin-right:0!important;background:transparent!important;transition:opacity .5s;cursor:pointer}.plugin-clear_button.form-select .clear-button,.plugin-clear_button.single .clear-button{right:max(var(--ts-pr-caret),.75rem)}.plugin-clear_button.focus.has-items .clear-button,.plugin-clear_button:not(.disabled):hover.has-items .clear-button{opacity:1}.ts-wrapper .dropdown-header{position:relative;padding:6px .75rem;border-bottom:1px solid #d0d0d0;background:color-mix(#fff,#d0d0d0,85%);border-radius:var(--tblr-border-radius) var(--tblr-border-radius) 0 0}.ts-wrapper .dropdown-header-close{position:absolute;right:.75rem;top:50%;color:#182433;opacity:.4;margin-top:-12px;line-height:20px;font-size:20px!important}.ts-wrapper .dropdown-header-close:hover{color:#000}.plugin-dropdown_input.focus.dropdown-active .ts-control{box-shadow:none;border:1px solid var(--tblr-border-color);box-shadow:var(--tblr-box-shadow-input)}.plugin-dropdown_input .dropdown-input{border:1px solid #d0d0d0;border-width:0 0 1px;display:block;padding:.5625rem .75rem;box-shadow:none;width:100%;background:transparent}.plugin-dropdown_input.focus .ts-dropdown .dropdown-input{border-color:#80c2be;outline:0;box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.plugin-dropdown_input .items-placeholder{border:0 none!important;box-shadow:none!important;width:100%}.plugin-dropdown_input.has-items .items-placeholder,.plugin-dropdown_input.dropdown-active .items-placeholder{display:none!important}.ts-wrapper.plugin-input_autogrow.has-items .ts-control>input{min-width:0}.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control>input{flex:none;min-width:4px}.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control>input::placeholder{color:transparent}.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content{display:flex}.ts-dropdown.plugin-optgroup_columns .optgroup{border-right:1px solid #f2f2f2;border-top:0 none;flex-grow:1;flex-basis:0;min-width:0}.ts-dropdown.plugin-optgroup_columns .optgroup:last-child{border-right:0 none}.ts-dropdown.plugin-optgroup_columns .optgroup:before{display:none}.ts-dropdown.plugin-optgroup_columns .optgroup-header{border-top:0 none}.ts-wrapper.plugin-remove_button .item{display:inline-flex;align-items:center}.ts-wrapper.plugin-remove_button .item .remove{color:inherit;text-decoration:none;vertical-align:middle;display:inline-block;padding:0 5px;border-radius:0 2px 2px 0;box-sizing:border-box}.ts-wrapper.plugin-remove_button .item .remove:hover{background:#0000000d}.ts-wrapper.plugin-remove_button.disabled .item .remove:hover{background:none}.ts-wrapper.plugin-remove_button .remove-single{position:absolute;right:0;top:0;font-size:23px}.ts-wrapper.plugin-remove_button:not(.rtl) .item{padding-right:0!important}.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove{border-left:1px solid #dce1e7;margin-left:5px}.ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove{border-left-color:#0000}.ts-wrapper.plugin-remove_button:not(.rtl).disabled .item .remove{border-left-color:#fff}.ts-wrapper.plugin-remove_button.rtl .item{padding-left:0!important}.ts-wrapper.plugin-remove_button.rtl .item .remove{border-right:1px solid #dce1e7;margin-right:5px}.ts-wrapper.plugin-remove_button.rtl .item.active .remove{border-right-color:#0000}.ts-wrapper.plugin-remove_button.rtl.disabled .item .remove{border-right-color:#fff}:root{--ts-pr-clear-button: 0;--ts-pr-caret: 0;--ts-pr-min: .75rem}.ts-wrapper.single .ts-control,.ts-wrapper.single .ts-control input{cursor:pointer}.ts-control:not(.rtl){padding-right:max(var(--ts-pr-min),var(--ts-pr-clear-button) + var(--ts-pr-caret))!important}.ts-control.rtl{padding-left:max(var(--ts-pr-min),var(--ts-pr-clear-button) + var(--ts-pr-caret))!important}.ts-wrapper{position:relative}.ts-dropdown,.ts-control,.ts-control input{color:#182433;font-family:inherit;font-size:inherit;line-height:1.4285714286}.ts-control,.ts-wrapper.single.input-active .ts-control{background:var(--tblr-bg-forms);cursor:text}.ts-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;white-space:nowrap!important}.ts-dropdown,.ts-dropdown.form-control,.ts-dropdown.form-select{height:auto;padding:0;z-index:1000;background:#fff;border:1px solid var(--tblr-border-color-translucent);border-radius:4px;box-shadow:0 6px 12px #0000002d}.ts-dropdown .optgroup-header{font-size:.765625rem;line-height:1.4285714286}.ts-dropdown .optgroup:first-child:before{display:none}.ts-dropdown .optgroup:before{content:" ";display:block;height:0;margin:var(--tblr-spacer-2) 0;overflow:hidden;border-top:1px solid var(--tblr-border-color-translucent);margin-left:-.75rem;margin-right:-.75rem}.ts-dropdown .create{padding-left:.75rem}.ts-dropdown-content{padding:5px 0}.ts-control{box-shadow:var(--tblr-box-shadow-input);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;display:flex;align-items:center}@media (prefers-reduced-motion: reduce){.ts-control{transition:none}}.focus .ts-control{border-color:#80c2be;outline:0;box-shadow:var(--tblr-box-shadow-input),0 0 0 .25rem rgba(var(--tblr-primary-rgb),.25)}.ts-control .item{display:flex;align-items:center}.ts-wrapper.is-invalid,.was-validated .invalid,.was-validated :invalid+.ts-wrapper{border-color:var(--tblr-form-invalid-color)}.ts-wrapper.is-invalid:not(.single),.was-validated .invalid:not(.single),.was-validated :invalid+.ts-wrapper:not(.single){background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d63939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");background-position:right calc(.3571428572em + .28125rem) center;background-size:calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem);background-repeat:no-repeat}.ts-wrapper.is-invalid.single,.was-validated .invalid.single,.was-validated :invalid+.ts-wrapper.single{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a97ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d63939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem);background-repeat:no-repeat}.ts-wrapper.is-invalid.focus .ts-control,.was-validated .invalid.focus .ts-control,.was-validated :invalid+.ts-wrapper.focus .ts-control{border-color:var(--tblr-form-invalid-color);box-shadow:0 0 0 .25rem rgba(var(--tblr-form-invalid-color),.25)}.ts-wrapper.is-valid,.was-validated .valid,.was-validated :valid+.ts-wrapper{border-color:var(--tblr-form-valid-color)}.ts-wrapper.is-valid:not(.single),.was-validated .valid:not(.single),.was-validated :valid+.ts-wrapper:not(.single){background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");background-position:right calc(.3571428572em + .28125rem) center;background-size:calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem);background-repeat:no-repeat}.ts-wrapper.is-valid.single,.was-validated .valid.single,.was-validated :valid+.ts-wrapper.single{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a97ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.7142857143em + .5625rem) calc(.7142857143em + .5625rem);background-repeat:no-repeat}.ts-wrapper.is-valid.focus .ts-control,.was-validated .valid.focus .ts-control,.was-validated :valid+.ts-wrapper.focus .ts-control{border-color:var(--tblr-form-valid-color);box-shadow:0 0 0 .25rem rgba(var(--tblr-form-valid-color),.25)}.ts-wrapper{min-height:calc(1.4285714286em + 1.125rem + calc(var(--tblr-border-width) * 2));display:flex}.input-group-sm>.ts-wrapper,.ts-wrapper.form-select-sm,.ts-wrapper.form-control-sm{min-height:calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2))}.input-group-sm>.ts-wrapper .ts-control,.ts-wrapper.form-select-sm .ts-control,.ts-wrapper.form-control-sm .ts-control{border-radius:var(--tblr-border-radius-sm);font-size:.75rem}.input-group-sm>.ts-wrapper.has-items .ts-control,.ts-wrapper.form-select-sm.has-items .ts-control,.ts-wrapper.form-control-sm.has-items .ts-control{font-size:.75rem;padding-bottom:0}.input-group-sm>.ts-wrapper.multi.has-items .ts-control,.ts-wrapper.form-select-sm.multi.has-items .ts-control,.ts-wrapper.form-control-sm.multi.has-items .ts-control{padding-top:calc((calc(1.4285714286em + .25rem + calc(var(--tblr-border-width) * 2)) - 1.4285714286 * .75rem - 4px) / 2)!important}.ts-wrapper.multi.has-items .ts-control{padding-left:calc(.75rem - 5px);--ts-pr-min: calc(.75rem - 5px) }.ts-wrapper.multi .ts-control>div{border-radius:calc(var(--tblr-border-radius) - 1px)}.input-group-lg>.ts-wrapper,.ts-wrapper.form-control-lg,.ts-wrapper.form-select-lg{min-height:calc(1.4285714286em + 1rem + calc(var(--tblr-border-width) * 2))}.input-group-lg>.ts-wrapper .ts-control,.ts-wrapper.form-control-lg .ts-control,.ts-wrapper.form-select-lg .ts-control{border-radius:var(--tblr-border-radius-lg);font-size:1.25rem}.ts-wrapper:not(.form-control,.form-select){padding:0;border:none;height:auto;box-shadow:none;background:none}.ts-wrapper:not(.form-control,.form-select).single .ts-control{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a97ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px}.ts-wrapper.form-select,.ts-wrapper.single{--ts-pr-caret: 2.25rem}.ts-wrapper.form-control,.ts-wrapper.form-select{padding:0!important;height:auto;box-shadow:none;display:flex}.ts-wrapper.form-control .ts-control,.ts-wrapper.form-control.single.input-active .ts-control,.ts-wrapper.form-select .ts-control,.ts-wrapper.form-select.single.input-active .ts-control{border:none!important}.ts-wrapper.form-control:not(.disabled) .ts-control,.ts-wrapper.form-control:not(.disabled).single.input-active .ts-control,.ts-wrapper.form-select:not(.disabled) .ts-control,.ts-wrapper.form-select:not(.disabled).single.input-active .ts-control{background:transparent!important}.input-group>.ts-wrapper{flex-grow:1;width:1%}.input-group>.ts-wrapper:not(:nth-child(2))>.ts-control{border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.ts-wrapper:not(:last-child)>.ts-control{border-top-right-radius:0;border-bottom-right-radius:0}:root{--ts-pr-clear-button: 0rem;--ts-pr-caret: 0rem}.ts-input,.ts-control{color:inherit}.ts-control .dropdown-menu{width:100%;height:auto}.ts-wrapper .form-control,.ts-wrapper .form-select,.ts-wrapper.form-control,.ts-wrapper.form-select{box-shadow:var(--tblr-box-shadow-input)}.ts-wrapper.is-invalid .ts-control,.ts-wrapper.is-valid .ts-control{--ts-pr-clear-button: 1.5rem}.ts-dropdown{background:var(--tblr-bg-surface);color:var(--tblr-body-color);box-shadow:var(--tblr-box-shadow-dropdown)}.ts-dropdown .option{padding:.5rem .75rem}.ts-control,.ts-control input{color:var(--tblr-body-color)}.ts-control input::placeholder{color:#8a97ab}.ts-wrapper.multi .ts-control>div{background:var(--tblr-bg-surface-secondary);border:1px solid var(--tblr-border-color);color:var(--tblr-body-color)}html{scroll-behavior:auto!important}.table-responsive .dropdown,.table-responsive .btn-group,.table-responsive .btn-group-vertical{position:static}.progress{min-width:80px}hr.dropdown-divider,.dropdown-divider.hr{margin-bottom:.25rem;margin-top:.25rem}.dropdown-item{font-weight:400}*{font-feature-settings:"liga" 0;font-variant-ligatures:none}pre{background-color:transparent;color:inherit}.alert{background:var(--tblr-bg-surface)}.btn{display:inline-block}.btn:focus{border:1px solid var(--tblr-primary-fg);outline:2px solid var(--tblr-primary)!important}.btn-sm,.btn-group-sm>.btn{border-radius:4px}.dropdown-item{display:inline-block}.footer .text-primary{color:#001423!important}.nav-tabs .nav-link{display:inline-block}.page,.page-tabs .nav-tabs .nav-link.active{background-color:var(--tblr-bg-surface-tertiary)!important}.page-body .card .card-header{background:var(--tblr-bg-surface-secondary)!important}[data-bs-theme=dark],body[data-bs-theme=dark] [data-bs-theme=light]{--tblr-alert-color: darken(var(--tblr-warning),10%);--tblr-link-color: #00F2D4;--tblr-link-color-rgb: 0,242,212;--tblr-link-hover-color-rgb: 0,242,212;--tblr-secondary: #8a97ab;--tblr-primary: #00F2D4;--tblr-primary-fg: #001423;--tblr-primary-rgb: 0,242,212;--tblr-btn-active-color: #001423}body[data-bs-theme=dark],body[data-bs-theme=dark] body[data-bs-theme=light]{background-color:#001423}body[data-bs-theme=dark] ::selection,body[data-bs-theme=dark] body[data-bs-theme=light] ::selection{background-color:rgba(var(--tblr-primary-rgb),.48)}body[data-bs-theme=dark] .btn-primary,body[data-bs-theme=dark] .bg-primary .card-title,body[data-bs-theme=dark] .bg-primary a,body[data-bs-theme=dark] .bg-primary i,body[data-bs-theme=dark] .text-bg-primary{color:#001423!important}body[data-bs-theme=dark] .card{background:#001423!important}body[data-bs-theme=dark] .navbar,body[data-bs-theme=dark] .page-header{background-color:#001423}body[data-bs-theme=dark] .page,body[data-bs-theme=dark] .page-tabs .nav-tabs .nav-link.active{background-color:#081b2a!important}body[data-bs-theme=dark] .page-link.active,body[data-bs-theme=dark] .active>.page-link{color:#001423}body[data-bs-theme=dark] .text-bg-primary{color:#001423!important}body[data-bs-theme=dark] .text-muted{color:var(--tblr-secondary-color)!important}body[data-bs-theme=dark] .text-secondary{color:#8a97ab!important}body[data-bs-theme=dark] .footer .text-primary{color:#fff!important}body[data-bs-theme=dark] .toast{color:var(--tblr-body-color)}body[data-bs-theme=dark] .table-primary{--tblr-table-bg: rgba(var(--tblr-secondary-rgb), .48);--tblr-table-hover-bg: inherit;--tblr-table-hover-color: inherit}pre code{padding:unset}.dropdown-toggle:after{font-family:Material Design Icons;content:"\f0140";padding-right:9px;border-bottom:none;border-left:none;transform:none;vertical-align:.05em;height:auto}.ts-wrapper.multi .ts-control{padding:7px 7px 3px}.ts-wrapper.multi .ts-control div{margin:0 4px 4px 0}.badge a{color:inherit;text-decoration:none}.page-body .card{margin-bottom:1rem}.page-body .card .card-header,.page-body .card .card-body,.page-body .card .card-footer{padding:.75rem}.page-body .card .card-header{background:var(--tblr-bg-surface-tertiary)}.page-body .card h2.card-header,.page-body .card .card-header.h2{font-size:var(--tblr-font-size-h5);line-height:var(--tblr-line-height-h5);margin-bottom:0}.page-body .card .list-group-item{padding:.5rem .75rem}.page-body .card .table,.page-body .card .markdown>table{margin-bottom:0}form.object-edit{margin:auto;max-width:800px}.col-form-label.required{font-weight:700}.col-form-label.required:after{position:absolute;display:inline-block;margin-left:0;font-family:Material Design Icons;font-size:8px;content:"\f06c4"}.has-errors input,.has-errors select,.has-errors textarea{border:1px solid #d63939}.page{background-color:var(--tblr-bg-surface-secondary)}.page-header{background-color:var(--tblr-bg-surface);min-height:0}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg{padding-bottom:2rem}}.navbar-vertical.navbar-expand-lg .navbar-collapse .nav-link-icon{color:var(--tblr-nav-link-color)!important}.navbar-vertical.navbar-expand-lg .navbar-collapse .text-secondary{color:#00857d!important}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item a{color:#001423}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item .btn-group{visibility:hidden}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:hover{background-color:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:hover a{text-decoration:none}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item:hover .btn-group{visibility:visible}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active{background-color:var(--tblr-navbar-active-bg)}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active a{color:#001423}.navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item.active .btn-group{visibility:visible}.navbar-vertical.navbar-expand-lg .navbar-nav{z-index:1}@media (max-width: 991.98px){.navbar-vertical.navbar-expand-lg .navbar-brand{padding:.2rem 0}}.navbar-vertical.navbar-expand-lg .navbar-brand a:hover{text-decoration:none}.navbar-vertical.navbar-expand-lg img.motif{bottom:0;display:none;left:0;mask-image:linear-gradient(180deg,#0000,#0000004d);opacity:.5;position:fixed;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;width:18rem}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg img.motif{display:block}}body[data-bs-theme=light] .navbar-vertical.navbar-expand-lg{background:linear-gradient(180deg,#00857d00,#00857d1a),#fff}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg{background:linear-gradient(180deg,#00f2d400,#00f2d41a),#001423}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .nav-item.dropdown.active:after{border-color:#00f2d4!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item a{color:#fff!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item.active{background-color:#ffffff0f!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item.active a{color:#fff!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item:hover{background-color:#ffffff0f!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .dropdown-item .nav-link-title{color:#fff!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg .text-secondary{color:#00f2d4!important}body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg img.motif{opacity:.25}.progress{height:20px}.progress .progress-label{display:flex;flex-direction:column;justify-content:center;padding-left:.25rem}table.object-list tbody>tr:last-child>td{border-bottom-width:0}table.object-list th.asc>a:after{content:"\f0140";font-family:Material Design Icons}table.object-list th.desc>a:after{content:"\f0143";font-family:Material Design Icons}table.attr-table th{font-weight:400;width:min-content}table.attr-table th,table.attr-table td{border-bottom-style:dashed}table.attr-table tr:last-child{border-bottom-style:hidden}table.attr-table td{overflow-wrap:anywhere}td pre{margin-bottom:0}table th.orderable a{color:var(--tblr-body-color)}body[data-bs-theme=dark] .table thead th,body[data-bs-theme=dark] .markdown>table thead th{background:#001423!important}.page-tabs{border-bottom:1px solid var(--tblr-border-color-translucent)}.page-tabs .nav-tabs{position:relative;border:none}.page-tabs .nav-tabs .nav-link.active,.page-tabs .nav-tabs .nav-link:active,.page-tabs .nav-tabs .nav-link:hover{border-color:var(--tblr-border-color-translucent);border-bottom-color:transparent}.page-tabs .nav-tabs .nav-link.active{color:inherit;background:var(--tblr-bg-surface-secondary);border-bottom-color:transparent}pre.change-data{border-radius:0;padding:0}pre.change-data>span{display:block;padding-right:1rem;padding-left:1rem}pre.change-data>span.added{background-color:#2fb344}pre.change-data>span.removed{background-color:#d63939}pre.change-diff{border-color:transparent}pre.change-diff.change-added{background-color:#2fb344}pre.change-diff.change-removed{background-color:#d63939}pre.block{padding:1rem;border:1px solid #dce1e7;border-radius:4px}.grid-stack .card-header.bg-default{background:var(--tblr-bg-surface-secondary)!important}.grid-stack .card-header a{color:inherit!important}tr[data-cable-status=connected]{background-color:#2fb34426}tr[data-cable-status=planned]{background-color:#066fd126}tr[data-cable-status=decommissioning]{background-color:#f59f0026}tr[data-mark-connected=true]{background-color:#2fb34426}tr[data-virtual=true]{background-color:#00857d26}tr[data-enabled=disabled]{background-color:#8a97ab26}tr[data-cable-status=connected] button.mark-installed{display:none}tr:not([data-cable-status=connected]) button.mark-planned{display:none}.rendered-markdown table{width:100%}.rendered-markdown table th{border-bottom:2px solid #dddddd;padding:8px}.rendered-markdown table td{border-top:1px solid #dddddd;padding:8px}.rendered-markdown table th[align=left]{text-align:left}.rendered-markdown table th[align=center]{text-align:center}.rendered-markdown table th[align=right]{text-align:right}.rendered-markdown p:last-of-type{margin-bottom:0}td>.rendered-markdown{max-height:200px;overflow-y:scroll}.markdown-widget .preview{border:1px solid #dce1e7;border-radius:4px;min-height:200px}span.color-label{display:inline-block;width:5rem;height:1rem;padding:.25em .5em;border:1px solid #303030;border-radius:4px}.record-depth{display:inline;user-select:none;opacity:33%}.record-depth span:only-of-type,.record-depth span:last-of-type{margin-right:.25rem}.hide-last-child :last-child{visibility:hidden;opacity:0}.netbox-edition{letter-spacing:.15rem}.btn-float-group,.btn-float-group-right,.btn-float-group-left{position:sticky;bottom:10px;z-index:2}.btn-float-group-left{float:left}.btn-float-group-right{float:right}.btn-float{--tblr-btn-bg: var(--tblr-bg-surface-tertiary) !important}.logo{height:80px}.sso-icon{height:24px}tr[data-read=True] td{background-color:var(--tblr-bg-surface-secondary);color:var(--tblr-secondary-color)}
diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js
index 969d5c73a..7e516f7f4 100644
--- a/netbox/project-static/dist/netbox.js
+++ b/netbox/project-static/dist/netbox.js
@@ -1,21 +1,14 @@
-"use strict";(()=>{var sh=Object.create;var Ua=Object.defineProperty,oh=Object.defineProperties,ah=Object.getOwnPropertyDescriptor,lh=Object.getOwnPropertyDescriptors,ch=Object.getOwnPropertyNames,du=Object.getOwnPropertySymbols,uh=Object.getPrototypeOf,fu=Object.prototype.hasOwnProperty,dh=Object.prototype.propertyIsEnumerable;var tc=(ii,ti,ei)=>ti in ii?Ua(ii,ti,{enumerable:!0,configurable:!0,writable:!0,value:ei}):ii[ti]=ei,Ui=(ii,ti)=>{for(var ei in ti||(ti={}))fu.call(ti,ei)&&tc(ii,ei,ti[ei]);if(du)for(var ei of du(ti))dh.call(ti,ei)&&tc(ii,ei,ti[ei]);return ii},Hn=(ii,ti)=>oh(ii,lh(ti));var Ya=(ii,ti)=>()=>(ti||ii((ti={exports:{}}).exports,ti),ti.exports),hu=(ii,ti)=>{for(var ei in ti)Ua(ii,ei,{get:ti[ei],enumerable:!0})},fh=(ii,ti,ei,ni)=>{if(ti&&typeof ti=="object"||typeof ti=="function")for(let ri of ch(ti))!fu.call(ii,ri)&&ri!==ei&&Ua(ii,ri,{get:()=>ti[ri],enumerable:!(ni=ah(ti,ri))||ni.enumerable});return ii};var zo=(ii,ti,ei)=>(ei=ii!=null?sh(uh(ii)):{},fh(ti||!ii||!ii.__esModule?Ua(ei,"default",{value:ii,enumerable:!0}):ei,ii));var Rn=(ii,ti,ei)=>tc(ii,typeof ti!="symbol"?ti+"":ti,ei);var ks=(ii,ti,ei)=>new Promise((ni,ri)=>{var si=di=>{try{li(ei.next(di))}catch(mi){ri(mi)}},ai=di=>{try{li(ei.throw(di))}catch(mi){ri(mi)}},li=di=>di.done?ni(di.value):Promise.resolve(di.value).then(si,ai);li((ei=ei.apply(ii,ti)).next())});var Id=Ya((exports,module)=>{(function(ii,ti){typeof define=="function"&&define.amd?define([],ti):typeof module=="object"&&module.exports?module.exports=ti():ii.htmx=ii.htmx||ti()})(typeof self!="undefined"?self:exports,function(){return function(){"use strict";var Q={onLoad:F,process:zt,on:de,off:ge,trigger:ce,ajax:Nr,find:C,findAll:f,closest:v,values:function(ii,ti){var ei=dr(ii,ti||"post");return ei.values},remove:_,addClass:z,removeClass:n,toggleClass:$,takeClass:W,defineExtension:Ur,removeExtension:Br,logAll:V,logNone:j,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:!1,scrollBehavior:"smooth",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get"],selfRequestsOnly:!1,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null},parseInterval:d,_:t,createEventSource:function(ii){return new EventSource(ii,{withCredentials:!0})},createWebSocket:function(ii){var ti=new WebSocket(ii,[]);return ti.binaryType=Q.config.wsBinaryType,ti},version:"1.9.12"},r={addTriggerHandler:Lt,bodyContains:se,canAccessLocalStorage:U,findThisElement:xe,filterValues:yr,hasAttribute:o,getAttributeValue:te,getClosestAttributeValue:ne,getClosestMatch:c,getExpressionVars:Hr,getHeaders:xr,getInputValues:dr,getInternalData:ae,getSwapSpecification:wr,getTriggerSpecs:it,getTarget:ye,makeFragment:l,mergeObjects:le,makeSettleInfo:T,oobSwap:Ee,querySelectorExt:ue,selectAndSwap:je,settleImmediately:nr,shouldCancel:ut,triggerEvent:ce,triggerErrorEvent:fe,withExtensions:R},w=["get","post","put","delete","patch"],i=w.map(function(ii){return"[hx-"+ii+"], [data-hx-"+ii+"]"}).join(", "),S=e("head"),q=e("title"),H=e("svg",!0);function e(ii,ti){return new RegExp("<"+ii+"(\\s[^>]*>|>)([\\s\\S]*?)<\\/"+ii+">",ti?"gim":"im")}function d(ii){if(ii==null)return;let ti=NaN;return ii.slice(-2)=="ms"?ti=parseFloat(ii.slice(0,-2)):ii.slice(-1)=="s"?ti=parseFloat(ii.slice(0,-1))*1e3:ii.slice(-1)=="m"?ti=parseFloat(ii.slice(0,-1))*1e3*60:ti=parseFloat(ii),isNaN(ti)?void 0:ti}function ee(ii,ti){return ii.getAttribute&&ii.getAttribute(ti)}function o(ii,ti){return ii.hasAttribute&&(ii.hasAttribute(ti)||ii.hasAttribute("data-"+ti))}function te(ii,ti){return ee(ii,ti)||ee(ii,"data-"+ti)}function u(ii){return ii.parentElement}function re(){return document}function c(ii,ti){for(;ii&&!ti(ii);)ii=u(ii);return ii||null}function L(ii,ti,ei){var ni=te(ti,ei),ri=te(ti,"hx-disinherit");return ii!==ti&&ri&&(ri==="*"||ri.split(" ").indexOf(ei)>=0)?"unset":ni}function ne(ii,ti){var ei=null;if(c(ii,function(ni){return ei=L(ii,ni,ti)}),ei!=="unset")return ei}function h(ii,ti){var ei=ii.matches||ii.matchesSelector||ii.msMatchesSelector||ii.mozMatchesSelector||ii.webkitMatchesSelector||ii.oMatchesSelector;return ei&&ei.call(ii,ti)}function A(ii){var ti=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ei=ti.exec(ii);return ei?ei[1].toLowerCase():""}function s(ii,ti){for(var ei=new DOMParser,ni=ei.parseFromString(ii,"text/html"),ri=ni.body;ti>0;)ti--,ri=ri.firstChild;return ri==null&&(ri=re().createDocumentFragment()),ri}function N(ii){return/"+ni+" ",0),si=ri.querySelector("template").content;return Q.config.allowScriptTags?oe(si.querySelectorAll("script"),function(ai){Q.config.inlineScriptNonce&&(ai.nonce=Q.config.inlineScriptNonce),ai.htmxExecuted=navigator.userAgent.indexOf("Firefox")===-1}):oe(si.querySelectorAll("script"),function(ai){_(ai)}),si}switch(ei){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return s("",1);case"col":return s("",2);case"tr":return s("",2);case"td":case"th":return s("",3);case"script":case"style":return s(""+ni+"
",1);default:return s(ni,0)}}function ie(ii){ii&&ii()}function I(ii,ti){return Object.prototype.toString.call(ii)==="[object "+ti+"]"}function k(ii){return I(ii,"Function")}function P(ii){return I(ii,"Object")}function ae(ii){var ti="htmx-internal-data",ei=ii[ti];return ei||(ei=ii[ti]={}),ei}function M(ii){var ti=[];if(ii)for(var ei=0;ei=0}function se(ii){return ii.getRootNode&&ii.getRootNode()instanceof window.ShadowRoot?re().body.contains(ii.getRootNode().host):re().body.contains(ii)}function D(ii){return ii.trim().split(/\s+/)}function le(ii,ti){for(var ei in ti)ti.hasOwnProperty(ei)&&(ii[ei]=ti[ei]);return ii}function E(ii){try{return JSON.parse(ii)}catch(ti){return b(ti),null}}function U(){var ii="htmx:localStorageTest";try{return localStorage.setItem(ii,ii),localStorage.removeItem(ii),!0}catch(ti){return!1}}function B(ii){try{var ti=new URL(ii);return ti&&(ii=ti.pathname+ti.search),/^\/$/.test(ii)||(ii=ii.replace(/\/+$/,"")),ii}catch(ei){return ii}}function t(e){return Tr(re().body,function(){return eval(e)})}function F(ii){var ti=Q.on("htmx:load",function(ei){ii(ei.detail.elt)});return ti}function V(){Q.logger=function(ii,ti,ei){console&&console.log(ti,ii,ei)}}function j(){Q.logger=null}function C(ii,ti){return ti?ii.querySelector(ti):C(re(),ii)}function f(ii,ti){return ti?ii.querySelectorAll(ti):f(re(),ii)}function _(ii,ti){ii=p(ii),ti?setTimeout(function(){_(ii),ii=null},ti):ii.parentElement.removeChild(ii)}function z(ii,ti,ei){ii=p(ii),ei?setTimeout(function(){z(ii,ti),ii=null},ei):ii.classList&&ii.classList.add(ti)}function n(ii,ti,ei){ii=p(ii),ei?setTimeout(function(){n(ii,ti),ii=null},ei):ii.classList&&(ii.classList.remove(ti),ii.classList.length===0&&ii.removeAttribute("class"))}function $(ii,ti){ii=p(ii),ii.classList.toggle(ti)}function W(ii,ti){ii=p(ii),oe(ii.parentElement.children,function(ei){n(ei,ti)}),z(ii,ti)}function v(ii,ti){if(ii=p(ii),ii.closest)return ii.closest(ti);do if(ii==null||h(ii,ti))return ii;while(ii=ii&&u(ii));return null}function g(ii,ti){return ii.substring(0,ti.length)===ti}function G(ii,ti){return ii.substring(ii.length-ti.length)===ti}function J(ii){var ti=ii.trim();return g(ti,"<")&&G(ti,"/>")?ti.substring(1,ti.length-2):ti}function Z(ii,ti){return ti.indexOf("closest ")===0?[v(ii,J(ti.substr(8)))]:ti.indexOf("find ")===0?[C(ii,J(ti.substr(5)))]:ti==="next"?[ii.nextElementSibling]:ti.indexOf("next ")===0?[K(ii,J(ti.substr(5)))]:ti==="previous"?[ii.previousElementSibling]:ti.indexOf("previous ")===0?[Y(ii,J(ti.substr(9)))]:ti==="document"?[document]:ti==="window"?[window]:ti==="body"?[document.body]:re().querySelectorAll(J(ti))}var K=function(ii,ti){for(var ei=re().querySelectorAll(ti),ni=0;ni=0;ni--){var ri=ei[ni];if(ri.compareDocumentPosition(ii)===Node.DOCUMENT_POSITION_FOLLOWING)return ri}};function ue(ii,ti){return ti?Z(ii,ti)[0]:Z(re().body,ii)[0]}function p(ii){return I(ii,"String")?C(ii):ii}function ve(ii,ti,ei){return k(ti)?{target:re().body,event:ii,listener:ti}:{target:p(ii),event:ti,listener:ei}}function de(ii,ti,ei){jr(function(){var ri=ve(ii,ti,ei);ri.target.addEventListener(ri.event,ri.listener)});var ni=k(ti);return ni?ti:ei}function ge(ii,ti,ei){return jr(function(){var ni=ve(ii,ti,ei);ni.target.removeEventListener(ni.event,ni.listener)}),k(ti)?ti:ei}var pe=re().createElement("output");function me(ii,ti){var ei=ne(ii,ti);if(ei){if(ei==="this")return[xe(ii,ti)];var ni=Z(ii,ei);return ni.length===0?(b('The selector "'+ei+'" on '+ti+" returned no matches!"),[pe]):ni}}function xe(ii,ti){return c(ii,function(ei){return te(ei,ti)!=null})}function ye(ii){var ti=ne(ii,"hx-target");if(ti)return ti==="this"?xe(ii,"hx-target"):ue(ii,ti);var ei=ae(ii);return ei.boosted?re().body:ii}function be(ii){for(var ti=Q.config.attributesToSettle,ei=0;ei0?(ri=ii.substr(0,ii.indexOf(":")),ni=ii.substr(ii.indexOf(":")+1,ii.length)):ri=ii);var si=re().querySelectorAll(ni);return si?(oe(si,function(ai){var li,di=ti.cloneNode(!0);li=re().createDocumentFragment(),li.appendChild(di),Se(ri,ai)||(li=di);var mi={shouldSwap:!0,target:ai,fragment:li};ce(ai,"htmx:oobBeforeSwap",mi)&&(ai=mi.target,mi.shouldSwap&&Fe(ri,ai,ai,li,ei),oe(ei.elts,function(hi){ce(hi,"htmx:oobAfterSwap",mi)}))}),ti.parentNode.removeChild(ti)):(ti.parentNode.removeChild(ti),fe(re().body,"htmx:oobErrorNoTarget",{content:ti})),ii}function Ce(ii,ti,ei){var ni=ne(ii,"hx-select-oob");if(ni)for(var ri=ni.split(","),si=0;si0){var si=ri.replace("'","\\'"),ai=ni.tagName.replace(":","\\:"),li=ii.querySelector(ai+"[id='"+si+"']");if(li&&li!==ii){var di=ni.cloneNode();we(ni,li),ei.tasks.push(function(){we(ni,di)})}}})}function Oe(ii){return function(){n(ii,Q.config.addedClass),zt(ii),Nt(ii),qe(ii),ce(ii,"htmx:load")}}function qe(ii){var ti="[autofocus]",ei=h(ii,ti)?ii:ii.querySelector(ti);ei!=null&&ei.focus()}function a(ii,ti,ei,ni){for(Te(ii,ei,ni);ei.childNodes.length>0;){var ri=ei.firstChild;z(ri,Q.config.addedClass),ii.insertBefore(ri,ti),ri.nodeType!==Node.TEXT_NODE&&ri.nodeType!==Node.COMMENT_NODE&&ni.tasks.push(Oe(ri))}}function He(ii,ti){for(var ei=0;ei-1){var ti=ii.replace(H,""),ei=ti.match(q);if(ei)return ei[2]}}function je(ii,ti,ei,ni,ri,si){ri.title=Ve(ni);var ai=l(ni);if(ai)return Ce(ei,ai,ri),ai=Be(ei,ai,si),Re(ai),Fe(ii,ei,ti,ai,ri)}function _e(ii,ti,ei){var ni=ii.getResponseHeader(ti);if(ni.indexOf("{")===0){var ri=E(ni);for(var si in ri)if(ri.hasOwnProperty(si)){var ai=ri[si];P(ai)||(ai={value:ai}),ce(ei,si,ai)}}else for(var li=ni.split(","),di=0;di0;){var ai=ti[0];if(ai==="]"){if(ni--,ni===0){si===null&&(ri=ri+"true"),ti.shift(),ri+=")})";try{var li=Tr(ii,function(){return Function(ri)()},function(){return!0});return li.source=ri,li}catch(di){return fe(re().body,"htmx:syntax:error",{error:di,source:ri}),null}}}else ai==="["&&ni++;Qe(ai,si,ei)?ri+="(("+ei+"."+ai+") ? ("+ei+"."+ai+") : (window."+ai+"))":ri=ri+ai,si=ti.shift()}}}function y(ii,ti){for(var ei="";ii.length>0&&!ti.test(ii[0]);)ei+=ii.shift();return ei}function tt(ii){var ti;return ii.length>0&&Ze.test(ii[0])?(ii.shift(),ti=y(ii,Ke).trim(),ii.shift()):ti=y(ii,x),ti}var rt="input, textarea, select";function nt(ii,ti,ei){var ni=[],ri=Ye(ti);do{y(ri,Je);var si=ri.length,ai=y(ri,/[,\[\s]/);if(ai!=="")if(ai==="every"){var li={trigger:"every"};y(ri,Je),li.pollInterval=d(y(ri,/[,\[\s]/)),y(ri,Je);var di=et(ii,ri,"event");di&&(li.eventFilter=di),ni.push(li)}else if(ai.indexOf("sse:")===0)ni.push({trigger:"sse",sseEvent:ai.substr(4)});else{var mi={trigger:ai},di=et(ii,ri,"event");for(di&&(mi.eventFilter=di);ri.length>0&&ri[0]!==",";){y(ri,Je);var hi=ri.shift();if(hi==="changed")mi.changed=!0;else if(hi==="once")mi.once=!0;else if(hi==="consume")mi.consume=!0;else if(hi==="delay"&&ri[0]===":")ri.shift(),mi.delay=d(y(ri,x));else if(hi==="from"&&ri[0]===":"){if(ri.shift(),Ze.test(ri[0]))var _i=tt(ri);else{var _i=y(ri,x);if(_i==="closest"||_i==="find"||_i==="next"||_i==="previous"){ri.shift();var Ei=tt(ri);Ei.length>0&&(_i+=" "+Ei)}}mi.from=_i}else hi==="target"&&ri[0]===":"?(ri.shift(),mi.target=tt(ri)):hi==="throttle"&&ri[0]===":"?(ri.shift(),mi.throttle=d(y(ri,x))):hi==="queue"&&ri[0]===":"?(ri.shift(),mi.queue=y(ri,x)):hi==="root"&&ri[0]===":"?(ri.shift(),mi[hi]=tt(ri)):hi==="threshold"&&ri[0]===":"?(ri.shift(),mi[hi]=y(ri,x)):fe(ii,"htmx:syntax:error",{token:ri.shift()})}ni.push(mi)}ri.length===si&&fe(ii,"htmx:syntax:error",{token:ri.shift()}),y(ri,Je)}while(ri[0]===","&&ri.shift());return ei&&(ei[ti]=ni),ni}function it(ii){var ti=te(ii,"hx-trigger"),ei=[];if(ti){var ni=Q.config.triggerSpecsCache;ei=ni&&ni[ti]||nt(ii,ti,ni)}return ei.length>0?ei:h(ii,"form")?[{trigger:"submit"}]:h(ii,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:h(ii,rt)?[{trigger:"change"}]:[{trigger:"click"}]}function at(ii){ae(ii).cancelled=!0}function ot(ii,ti,ei){var ni=ae(ii);ni.timeout=setTimeout(function(){se(ii)&&ni.cancelled!==!0&&(ct(ei,ii,Wt("hx:poll:trigger",{triggerSpec:ei,target:ii}))||ti(ii),ot(ii,ti,ei))},ei.pollInterval)}function st(ii){return location.hostname===ii.hostname&&ee(ii,"href")&&ee(ii,"href").indexOf("#")!==0}function lt(ii,ti,ei){if(ii.tagName==="A"&&st(ii)&&(ii.target===""||ii.target==="_self")||ii.tagName==="FORM"){ti.boosted=!0;var ni,ri;if(ii.tagName==="A")ni="get",ri=ee(ii,"href");else{var si=ee(ii,"method");ni=si?si.toLowerCase():"get",ri=ee(ii,"action")}ei.forEach(function(ai){ht(ii,function(li,di){if(v(li,Q.config.disableSelector)){m(li);return}he(ni,ri,li,di)},ti,ai,!0)})}}function ut(ii,ti){return!!((ii.type==="submit"||ii.type==="click")&&(ti.tagName==="FORM"||h(ti,'input[type="submit"], button')&&v(ti,"form")!==null||ti.tagName==="A"&&ti.href&&(ti.getAttribute("href")==="#"||ti.getAttribute("href").indexOf("#")!==0)))}function ft(ii,ti){return ae(ii).boosted&&ii.tagName==="A"&&ti.type==="click"&&(ti.ctrlKey||ti.metaKey)}function ct(ii,ti,ei){var ni=ii.eventFilter;if(ni)try{return ni.call(ti,ei)!==!0}catch(ri){return fe(re().body,"htmx:eventFilter:error",{error:ri,source:ni.source}),!0}return!1}function ht(ii,ti,ei,ni,ri){var si=ae(ii),ai;ni.from?ai=Z(ii,ni.from):ai=[ii],ni.changed&&ai.forEach(function(li){var di=ae(li);di.lastValue=li.value}),oe(ai,function(li){var di=function(mi){if(!se(ii)){li.removeEventListener(ni.trigger,di);return}if(!ft(ii,mi)&&((ri||ut(mi,ii))&&mi.preventDefault(),!ct(ni,ii,mi))){var hi=ae(mi);if(hi.triggerSpec=ni,hi.handledFor==null&&(hi.handledFor=[]),hi.handledFor.indexOf(ii)<0){if(hi.handledFor.push(ii),ni.consume&&mi.stopPropagation(),ni.target&&mi.target&&!h(mi.target,ni.target))return;if(ni.once){if(si.triggeredOnce)return;si.triggeredOnce=!0}if(ni.changed){var _i=ae(li);if(_i.lastValue===li.value)return;_i.lastValue=li.value}if(si.delayed&&clearTimeout(si.delayed),si.throttle)return;ni.throttle>0?si.throttle||(ti(ii,mi),si.throttle=setTimeout(function(){si.throttle=null},ni.throttle)):ni.delay>0?si.delayed=setTimeout(function(){ti(ii,mi)},ni.delay):(ce(ii,"htmx:trigger"),ti(ii,mi))}}};ei.listenerInfos==null&&(ei.listenerInfos=[]),ei.listenerInfos.push({trigger:ni.trigger,listener:di,on:li}),li.addEventListener(ni.trigger,di)})}var vt=!1,dt=null;function gt(){dt||(dt=function(){vt=!0},window.addEventListener("scroll",dt),setInterval(function(){vt&&(vt=!1,oe(re().querySelectorAll("[hx-trigger='revealed'],[data-hx-trigger='revealed']"),function(ii){pt(ii)}))},200))}function pt(ii){if(!o(ii,"data-hx-revealed")&&X(ii)){ii.setAttribute("data-hx-revealed","true");var ti=ae(ii);ti.initHash?ce(ii,"revealed"):ii.addEventListener("htmx:afterProcessNode",function(ei){ce(ii,"revealed")},{once:!0})}}function mt(ii,ti,ei){for(var ni=D(ei),ri=0;ri=0){var ai=wt(ei);setTimeout(function(){xt(ii,ti,ei+1)},ai)}},ri.onopen=function(si){ei=0},ae(ii).webSocket=ri,ri.addEventListener("message",function(si){if(!yt(ii)){var ai=si.data;R(ii,function(Ei){ai=Ei.transformResponse(ai,null,ii)});for(var li=T(ii),di=l(ai),mi=M(di.children),hi=0;hi0){ce(ii,"htmx:validation:halted",ai);return}ni.send(JSON.stringify(hi)),ut(ei,ii)&&ei.preventDefault()}):fe(ii,"htmx:noWebSocketSourceError")}function wt(ii){var ti=Q.config.wsReconnectDelay;if(typeof ti=="function")return ti(ii);if(ti==="full-jitter"){var ei=Math.min(ii,6),ni=1e3*Math.pow(2,ei);return ni*Math.random()}b('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"')}function St(ii,ti,ei){for(var ni=D(ei),ri=0;ri0?setTimeout(ri,ni):ri()}function Ht(ii,ti,ei){var ni=!1;return oe(w,function(ri){if(o(ii,"hx-"+ri)){var si=te(ii,"hx-"+ri);ni=!0,ti.path=si,ti.verb=ri,ei.forEach(function(ai){Lt(ii,ai,ti,function(li,di){if(v(li,Q.config.disableSelector)){m(li);return}he(ri,si,li,di)})})}}),ni}function Lt(ii,ti,ei,ni){if(ti.sseEvent)Rt(ii,ni,ti.sseEvent);else if(ti.trigger==="revealed")gt(),ht(ii,ni,ei,ti),pt(ii);else if(ti.trigger==="intersect"){var ri={};ti.root&&(ri.root=ue(ii,ti.root)),ti.threshold&&(ri.threshold=parseFloat(ti.threshold));var si=new IntersectionObserver(function(ai){for(var li=0;li0?(ei.polling=!0,ot(ii,ni,ti)):ht(ii,ni,ei,ti)}function At(ii){if(!ii.htmxExecuted&&Q.config.allowScriptTags&&(ii.type==="text/javascript"||ii.type==="module"||ii.type==="")){var ti=re().createElement("script");oe(ii.attributes,function(ni){ti.setAttribute(ni.name,ni.value)}),ti.textContent=ii.textContent,ti.async=!1,Q.config.inlineScriptNonce&&(ti.nonce=Q.config.inlineScriptNonce);var ei=ii.parentElement;try{ei.insertBefore(ti,ii)}catch(ni){b(ni)}finally{ii.parentElement&&ii.parentElement.removeChild(ii)}}}function Nt(ii){h(ii,"script")&&At(ii),oe(f(ii,"script"),function(ti){At(ti)})}function It(ii){var ti=ii.attributes;if(!ti)return!1;for(var ei=0;ei0;){var ai=ni.shift(),li=ai.match(/^\s*([a-zA-Z:\-\.]+:)(.*)/);si===0&&li?(ai.split(":"),ri=li[1].slice(0,-1),ei[ri]=li[2]):ei[ri]+=ai,si+=Bt(ai)}for(var di in ei)Ft(ii,di,ei[di])}}function jt(ii){Ae(ii);for(var ti=0;tiQ.config.historyCacheSize;)ri.shift();for(;ri.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(ri));break}catch(li){fe(re().body,"htmx:historyCacheError",{cause:li,cache:ri}),ri.shift()}}}function Yt(ii){if(!U())return null;ii=B(ii);for(var ti=E(localStorage.getItem("htmx-history-cache"))||[],ei=0;ei=200&&this.status<400){ce(re().body,"htmx:historyCacheMissLoad",ei);var ni=l(this.response);ni=ni.querySelector("[hx-history-elt],[data-hx-history-elt]")||ni;var ri=Zt(),si=T(ri),ai=Ve(this.response);if(ai){var li=C("title");li?li.innerHTML=ai:window.document.title=ai}Ue(ri,ni,si),nr(si.tasks),Jt=ii,ce(re().body,"htmx:historyRestore",{path:ii,cacheMiss:!0,serverResponse:this.response})}else fe(re().body,"htmx:historyCacheMissLoadError",ei)},ti.send()}function ar(ii){er(),ii=ii||location.pathname+location.search;var ti=Yt(ii);if(ti){var ei=l(ti.content),ni=Zt(),ri=T(ni);Ue(ni,ei,ri),nr(ri.tasks),document.title=ti.title,setTimeout(function(){window.scrollTo(0,ti.scroll)},0),Jt=ii,ce(re().body,"htmx:historyRestore",{path:ii,item:ti})}else Q.config.refreshOnHistoryMiss?window.location.reload(!0):ir(ii)}function or(ii){var ti=me(ii,"hx-indicator");return ti==null&&(ti=[ii]),oe(ti,function(ei){var ni=ae(ei);ni.requestCount=(ni.requestCount||0)+1,ei.classList.add.call(ei.classList,Q.config.requestClass)}),ti}function sr(ii){var ti=me(ii,"hx-disabled-elt");return ti==null&&(ti=[]),oe(ti,function(ei){var ni=ae(ei);ni.requestCount=(ni.requestCount||0)+1,ei.setAttribute("disabled","")}),ti}function lr(ii,ti){oe(ii,function(ei){var ni=ae(ei);ni.requestCount=(ni.requestCount||0)-1,ni.requestCount===0&&ei.classList.remove.call(ei.classList,Q.config.requestClass)}),oe(ti,function(ei){var ni=ae(ei);ni.requestCount=(ni.requestCount||0)-1,ni.requestCount===0&&ei.removeAttribute("disabled")})}function ur(ii,ti){for(var ei=0;ei=0}function wr(ii,ti){var ei=ti||ne(ii,"hx-swap"),ni={swapStyle:ae(ii).boosted?"innerHTML":Q.config.defaultSwapStyle,swapDelay:Q.config.defaultSwapDelay,settleDelay:Q.config.defaultSettleDelay};if(Q.config.scrollIntoViewOnBoost&&ae(ii).boosted&&!br(ii)&&(ni.show="top"),ei){var ri=D(ei);if(ri.length>0)for(var si=0;si0?di.join(":"):null;ni.scroll=mi,ni.scrollTarget=hi}else if(ai.indexOf("show:")===0){var _i=ai.substr(5),di=_i.split(":"),Ei=di.pop(),hi=di.length>0?di.join(":"):null;ni.show=Ei,ni.showTarget=hi}else if(ai.indexOf("focus-scroll:")===0){var Ai=ai.substr(13);ni.focusScroll=Ai=="true"}else si==0?ni.swapStyle=ai:b("Unknown modifier in hx-swap: "+ai)}}return ni}function Sr(ii){return ne(ii,"hx-encoding")==="multipart/form-data"||h(ii,"form")&&ee(ii,"enctype")==="multipart/form-data"}function Er(ii,ti,ei){var ni=null;return R(ti,function(ri){ni==null&&(ni=ri.encodeParameters(ii,ei,ti))}),ni!=null?ni:Sr(ti)?mr(ei):pr(ei)}function T(ii){return{tasks:[],elts:[ii]}}function Cr(ii,ti){var ei=ii[0],ni=ii[ii.length-1];if(ti.scroll){var ri=null;ti.scrollTarget&&(ri=ue(ei,ti.scrollTarget)),ti.scroll==="top"&&(ei||ri)&&(ri=ri||ei,ri.scrollTop=0),ti.scroll==="bottom"&&(ni||ri)&&(ri=ri||ni,ri.scrollTop=ri.scrollHeight)}if(ti.show){var ri=null;if(ti.showTarget){var si=ti.showTarget;ti.showTarget==="window"&&(si="body"),ri=ue(ei,si)}ti.show==="top"&&(ei||ri)&&(ri=ri||ei,ri.scrollIntoView({block:"start",behavior:Q.config.scrollBehavior})),ti.show==="bottom"&&(ni||ri)&&(ri=ri||ni,ri.scrollIntoView({block:"end",behavior:Q.config.scrollBehavior}))}}function Rr(ii,ti,ei,ni){if(ni==null&&(ni={}),ii==null)return ni;var ri=te(ii,ti);if(ri){var si=ri.trim(),ai=ei;if(si==="unset")return null;si.indexOf("javascript:")===0?(si=si.substr(11),ai=!0):si.indexOf("js:")===0&&(si=si.substr(3),ai=!0),si.indexOf("{")!==0&&(si="{"+si+"}");var li;ai?li=Tr(ii,function(){return Function("return ("+si+")")()},{}):li=E(si);for(var di in li)li.hasOwnProperty(di)&&ni[di]==null&&(ni[di]=li[di])}return Rr(u(ii),ti,ei,ni)}function Tr(ii,ti,ei){return Q.config.allowEval?ti():(fe(ii,"htmx:evalDisallowedError"),ei)}function Or(ii,ti){return Rr(ii,"hx-vars",!0,ti)}function qr(ii,ti){return Rr(ii,"hx-vals",!1,ti)}function Hr(ii){return le(Or(ii),qr(ii))}function Lr(ii,ti,ei){if(ei!==null)try{ii.setRequestHeader(ti,ei)}catch(ni){ii.setRequestHeader(ti,encodeURIComponent(ei)),ii.setRequestHeader(ti+"-URI-AutoEncoded","true")}}function Ar(ii){if(ii.responseURL&&typeof URL!="undefined")try{var ti=new URL(ii.responseURL);return ti.pathname+ti.search}catch(ei){fe(re().body,"htmx:badResponseUrl",{url:ii.responseURL})}}function O(ii,ti){return ti.test(ii.getAllResponseHeaders())}function Nr(ii,ti,ei){return ii=ii.toLowerCase(),ei?ei instanceof Element||I(ei,"String")?he(ii,ti,null,null,{targetOverride:p(ei),returnPromise:!0}):he(ii,ti,p(ei.source),ei.event,{handler:ei.handler,headers:ei.headers,values:ei.values,targetOverride:p(ei.target),swapOverride:ei.swap,select:ei.select,returnPromise:!0}):he(ii,ti,null,null,{returnPromise:!0})}function Ir(ii){for(var ti=[];ii;)ti.push(ii),ii=ii.parentElement;return ti}function kr(ii,ti,ei){var ni,ri;if(typeof URL=="function"){ri=new URL(ti,document.location.href);var si=document.location.origin;ni=si===ri.origin}else ri=ti,ni=g(ti,document.location.origin);return Q.config.selfRequestsOnly&&!ni?!1:ce(ii,"htmx:validateUrl",le({url:ri,sameHost:ni},ei))}function he(ii,ti,ei,ni,ri,si){var ai=null,li=null;if(ri=ri!=null?ri:{},ri.returnPromise&&typeof Promise!="undefined")var di=new Promise(function(qn,yn){ai=qn,li=yn});ei==null&&(ei=re().body);var mi=ri.handler||Mr,hi=ri.select||null;if(!se(ei))return ie(ai),di;var _i=ri.targetOverride||ye(ei);if(_i==null||_i==pe)return fe(ei,"htmx:targetError",{target:te(ei,"hx-target")}),ie(li),di;var Ei=ae(ei),Ai=Ei.lastButtonClicked;if(Ai){var ki=ee(Ai,"formaction");ki!=null&&(ti=ki);var Ti=ee(Ai,"formmethod");Ti!=null&&Ti.toLowerCase()!=="dialog"&&(ii=Ti)}var Fi=ne(ei,"hx-confirm");if(si===void 0){var en=function(qn){return he(ii,ti,ei,ni,ri,!!qn)},rn={target:_i,elt:ei,path:ti,verb:ii,triggeringEvent:ni,etc:ri,issueRequest:en,question:Fi};if(ce(ei,"htmx:confirm",rn)===!1)return ie(ai),di}var ln=ei,Yi=ne(ei,"hx-sync"),on=null,an=!1;if(Yi){var bn=Yi.split(":"),hn=bn[0].trim();if(hn==="this"?ln=xe(ei,"hx-sync"):ln=ue(ei,hn),Yi=(bn[1]||"drop").trim(),Ei=ae(ln),Yi==="drop"&&Ei.xhr&&Ei.abortable!==!0)return ie(ai),di;if(Yi==="abort"){if(Ei.xhr)return ie(ai),di;an=!0}else if(Yi==="replace")ce(ln,"htmx:abort");else if(Yi.indexOf("queue")===0){var pn=Yi.split(" ");on=(pn[1]||"last").trim()}}if(Ei.xhr)if(Ei.abortable)ce(ln,"htmx:abort");else{if(on==null){if(ni){var gn=ae(ni);gn&&gn.triggerSpec&&gn.triggerSpec.queue&&(on=gn.triggerSpec.queue)}on==null&&(on="last")}return Ei.queuedRequests==null&&(Ei.queuedRequests=[]),on==="first"&&Ei.queuedRequests.length===0?Ei.queuedRequests.push(function(){he(ii,ti,ei,ni,ri)}):on==="all"?Ei.queuedRequests.push(function(){he(ii,ti,ei,ni,ri)}):on==="last"&&(Ei.queuedRequests=[],Ei.queuedRequests.push(function(){he(ii,ti,ei,ni,ri)})),ie(ai),di}var un=new XMLHttpRequest;Ei.xhr=un,Ei.abortable=an;var vn=function(){if(Ei.xhr=null,Ei.abortable=!1,Ei.queuedRequests!=null&&Ei.queuedRequests.length>0){var qn=Ei.queuedRequests.shift();qn()}},Tn=ne(ei,"hx-prompt");if(Tn){var Ni=prompt(Tn);if(Ni===null||!ce(ei,"htmx:prompt",{prompt:Ni,target:_i}))return ie(ai),vn(),di}if(Fi&&!si&&!confirm(Fi))return ie(ai),vn(),di;var Hi=xr(ei,_i,Ni);ii!=="get"&&!Sr(ei)&&(Hi["Content-Type"]="application/x-www-form-urlencoded"),ri.headers&&(Hi=le(Hi,ri.headers));var Pi=dr(ei,ii),$i=Pi.errors,mn=Pi.values;ri.values&&(mn=le(mn,ri.values));var tn=Hr(ei),zi=le(mn,tn),Li=yr(zi,ei);Q.config.getCacheBusterParam&&ii==="get"&&(Li["org.htmx.cache-buster"]=ee(_i,"id")||"true"),(ti==null||ti==="")&&(ti=re().location.href);var ji=Rr(ei,"hx-request"),Ji=ae(ei).boosted,Vi=Q.config.methodsThatUseUrlParams.indexOf(ii)>=0,Ii={boosted:Ji,useUrlParams:Vi,parameters:Li,unfilteredParameters:zi,headers:Hi,target:_i,verb:ii,errors:$i,withCredentials:ri.credentials||ji.credentials||Q.config.withCredentials,timeout:ri.timeout||ji.timeout||Q.config.timeout,path:ti,triggeringEvent:ni};if(!ce(ei,"htmx:configRequest",Ii))return ie(ai),vn(),di;if(ti=Ii.path,ii=Ii.verb,Hi=Ii.headers,Li=Ii.parameters,$i=Ii.errors,Vi=Ii.useUrlParams,$i&&$i.length>0)return ce(ei,"htmx:validation:halted",Ii),ie(ai),vn(),di;var Sn=ti.split("#"),Yn=Sn[0],Fn=Sn[1],Bn=ti;if(Vi){Bn=Yn;var Gn=Object.keys(Li).length!==0;Gn&&(Bn.indexOf("?")<0?Bn+="?":Bn+="&",Bn+=pr(Li),Fn&&(Bn+="#"+Fn))}if(!kr(ei,Bn,Ii))return fe(ei,"htmx:invalidPath",Ii),ie(li),di;if(un.open(ii.toUpperCase(),Bn,!0),un.overrideMimeType("text/html"),un.withCredentials=Ii.withCredentials,un.timeout=Ii.timeout,!ji.noHeaders){for(var Qn in Hi)if(Hi.hasOwnProperty(Qn)){var Ts=Hi[Qn];Lr(un,Qn,Ts)}}var zn={xhr:un,target:_i,requestConfig:Ii,etc:ri,boosted:Ji,select:hi,pathInfo:{requestPath:ti,finalRequestPath:Bn,anchor:Fn}};if(un.onload=function(){try{var qn=Ir(ei);if(zn.pathInfo.responsePath=Ar(un),mi(ei,zn),lr(hs,ms),ce(ei,"htmx:afterRequest",zn),ce(ei,"htmx:afterOnLoad",zn),!se(ei)){for(var yn=null;qn.length>0&&yn==null;){var Kr=qn.shift();se(Kr)&&(yn=Kr)}yn&&(ce(yn,"htmx:afterRequest",zn),ce(yn,"htmx:afterOnLoad",zn))}ie(ai),vn()}catch(as){throw fe(ei,"htmx:onLoadError",le({error:as},zn)),as}},un.onerror=function(){lr(hs,ms),fe(ei,"htmx:afterRequest",zn),fe(ei,"htmx:sendError",zn),ie(li),vn()},un.onabort=function(){lr(hs,ms),fe(ei,"htmx:afterRequest",zn),fe(ei,"htmx:sendAbort",zn),ie(li),vn()},un.ontimeout=function(){lr(hs,ms),fe(ei,"htmx:afterRequest",zn),fe(ei,"htmx:timeout",zn),ie(li),vn()},!ce(ei,"htmx:beforeRequest",zn))return ie(ai),vn(),di;var hs=or(ei),ms=sr(ei);oe(["loadstart","loadend","progress","abort"],function(qn){oe([un,un.upload],function(yn){yn.addEventListener(qn,function(Kr){ce(ei,"htmx:xhr:"+qn,{lengthComputable:Kr.lengthComputable,loaded:Kr.loaded,total:Kr.total})})})}),ce(ei,"htmx:beforeSend",zn);var qs=Vi?null:Er(un,ei,Li);return un.send(qs),di}function Pr(ii,ti){var ei=ti.xhr,ni=null,ri=null;if(O(ei,/HX-Push:/i)?(ni=ei.getResponseHeader("HX-Push"),ri="push"):O(ei,/HX-Push-Url:/i)?(ni=ei.getResponseHeader("HX-Push-Url"),ri="push"):O(ei,/HX-Replace-Url:/i)&&(ni=ei.getResponseHeader("HX-Replace-Url"),ri="replace"),ni)return ni==="false"?{}:{type:ri,path:ni};var si=ti.pathInfo.finalRequestPath,ai=ti.pathInfo.responsePath,li=ne(ii,"hx-push-url"),di=ne(ii,"hx-replace-url"),mi=ae(ii).boosted,hi=null,_i=null;return li?(hi="push",_i=li):di?(hi="replace",_i=di):mi&&(hi="push",_i=ai||si),_i?_i==="false"?{}:(_i==="true"&&(_i=ai||si),ti.pathInfo.anchor&&_i.indexOf("#")===-1&&(_i=_i+"#"+ti.pathInfo.anchor),{type:hi,path:_i}):{}}function Mr(ii,ti){var ei=ti.xhr,ni=ti.target,ri=ti.etc,si=ti.requestConfig,ai=ti.select;if(ce(ii,"htmx:beforeOnLoad",ti)){if(O(ei,/HX-Trigger:/i)&&_e(ei,"HX-Trigger",ii),O(ei,/HX-Location:/i)){er();var li=ei.getResponseHeader("HX-Location"),di;li.indexOf("{")===0&&(di=E(li),li=di.path,delete di.path),Nr("GET",li,di).then(function(){tr(li)});return}var mi=O(ei,/HX-Refresh:/i)&&ei.getResponseHeader("HX-Refresh")==="true";if(O(ei,/HX-Redirect:/i)){location.href=ei.getResponseHeader("HX-Redirect"),mi&&location.reload();return}if(mi){location.reload();return}O(ei,/HX-Retarget:/i)&&(ei.getResponseHeader("HX-Retarget")==="this"?ti.target=ii:ti.target=ue(ii,ei.getResponseHeader("HX-Retarget")));var hi=Pr(ii,ti),_i=ei.status>=200&&ei.status<400&&ei.status!==204,Ei=ei.response,Ai=ei.status>=400,ki=Q.config.ignoreTitle,Ti=le({shouldSwap:_i,serverResponse:Ei,isError:Ai,ignoreTitle:ki},ti);if(ce(ni,"htmx:beforeSwap",Ti)){if(ni=Ti.target,Ei=Ti.serverResponse,Ai=Ti.isError,ki=Ti.ignoreTitle,ti.target=ni,ti.failed=Ai,ti.successful=!Ai,Ti.shouldSwap){ei.status===286&&at(ii),R(ii,function(hn){Ei=hn.transformResponse(Ei,ei,ii)}),hi.type&&er();var Fi=ri.swapOverride;O(ei,/HX-Reswap:/i)&&(Fi=ei.getResponseHeader("HX-Reswap"));var di=wr(ii,Fi);di.hasOwnProperty("ignoreTitle")&&(ki=di.ignoreTitle),ni.classList.add(Q.config.swappingClass);var en=null,rn=null,ln=function(){try{var hn=document.activeElement,pn={};try{pn={elt:hn,start:hn?hn.selectionStart:null,end:hn?hn.selectionEnd:null}}catch(Pi){}var gn;ai&&(gn=ai),O(ei,/HX-Reselect:/i)&&(gn=ei.getResponseHeader("HX-Reselect")),hi.type&&(ce(re().body,"htmx:beforeHistoryUpdate",le({history:hi},ti)),hi.type==="push"?(tr(hi.path),ce(re().body,"htmx:pushedIntoHistory",{path:hi.path})):(rr(hi.path),ce(re().body,"htmx:replacedInHistory",{path:hi.path})));var un=T(ni);if(je(di.swapStyle,ni,ii,Ei,un,gn),pn.elt&&!se(pn.elt)&&ee(pn.elt,"id")){var vn=document.getElementById(ee(pn.elt,"id")),Tn={preventScroll:di.focusScroll!==void 0?!di.focusScroll:!Q.config.defaultFocusScroll};if(vn){if(pn.start&&vn.setSelectionRange)try{vn.setSelectionRange(pn.start,pn.end)}catch(Pi){}vn.focus(Tn)}}if(ni.classList.remove(Q.config.swappingClass),oe(un.elts,function(Pi){Pi.classList&&Pi.classList.add(Q.config.settlingClass),ce(Pi,"htmx:afterSwap",ti)}),O(ei,/HX-Trigger-After-Swap:/i)){var Ni=ii;se(ii)||(Ni=re().body),_e(ei,"HX-Trigger-After-Swap",Ni)}var Hi=function(){if(oe(un.tasks,function(tn){tn.call()}),oe(un.elts,function(tn){tn.classList&&tn.classList.remove(Q.config.settlingClass),ce(tn,"htmx:afterSettle",ti)}),ti.pathInfo.anchor){var Pi=re().getElementById(ti.pathInfo.anchor);Pi&&Pi.scrollIntoView({block:"start",behavior:"auto"})}if(un.title&&!ki){var $i=C("title");$i?$i.innerHTML=un.title:window.document.title=un.title}if(Cr(un.elts,di),O(ei,/HX-Trigger-After-Settle:/i)){var mn=ii;se(ii)||(mn=re().body),_e(ei,"HX-Trigger-After-Settle",mn)}ie(en)};di.settleDelay>0?setTimeout(Hi,di.settleDelay):Hi()}catch(Pi){throw fe(ii,"htmx:swapError",ti),ie(rn),Pi}},Yi=Q.config.globalViewTransitions;if(di.hasOwnProperty("transition")&&(Yi=di.transition),Yi&&ce(ii,"htmx:beforeTransition",ti)&&typeof Promise!="undefined"&&document.startViewTransition){var on=new Promise(function(hn,pn){en=hn,rn=pn}),an=ln;ln=function(){document.startViewTransition(function(){return an(),on})}}di.swapDelay>0?setTimeout(ln,di.swapDelay):ln()}Ai&&fe(ii,"htmx:responseError",le({error:"Response Status Error Code "+ei.status+" from "+ti.pathInfo.requestPath},ti))}}}var Xr={};function Dr(){return{init:function(ii){return null},onEvent:function(ii,ti){return!0},transformResponse:function(ii,ti,ei){return ii},isInlineSwap:function(ii){return!1},handleSwap:function(ii,ti,ei,ni){return!1},encodeParameters:function(ii,ti,ei){return null}}}function Ur(ii,ti){ti.init&&ti.init(r),Xr[ii]=le(Dr(),ti)}function Br(ii){delete Xr[ii]}function Fr(ii,ti,ei){if(ii==null)return ti;ti==null&&(ti=[]),ei==null&&(ei=[]);var ni=te(ii,"hx-ext");return ni&&oe(ni.split(","),function(ri){if(ri=ri.replace(/ /g,""),ri.slice(0,7)=="ignore:"){ei.push(ri.slice(7));return}if(ei.indexOf(ri)<0){var si=Xr[ri];si&&ti.indexOf(si)<0&&ti.push(si)}}),Fr(u(ii),ti,ei)}var Vr=!1;re().addEventListener("DOMContentLoaded",function(){Vr=!0});function jr(ii){Vr||re().readyState==="complete"?ii():re().addEventListener("DOMContentLoaded",ii)}function _r(){Q.config.includeIndicatorStyles!==!1&&re().head.insertAdjacentHTML("beforeend","")}function zr(){var ii=re().querySelector('meta[name="htmx-config"]');return ii?E(ii.content):null}function $r(){var ii=zr();ii&&(Q.config=le(Q.config,ii))}return jr(function(){$r(),_r();var ii=re().body;zt(ii);var ti=re().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");ii.addEventListener("htmx:abort",function(ni){var ri=ni.target,si=ae(ri);si&&si.xhr&&si.xhr.abort()});let ei=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(ni){ni.state&&ni.state.htmx?(ar(),oe(ti,function(ri){ce(ri,"htmx:restored",{document:re(),triggerEvent:ce})})):ei&&ei(ni)},setTimeout(function(){ce(ii,"htmx:load",{}),ii=null},0)}),Q}()})});var El=Ya((Bc,zc)=>{(function(ii,ti){typeof Bc=="object"&&typeof zc!="undefined"?zc.exports=ti():typeof define=="function"&&define.amd?define(ti):(ii=typeof globalThis!="undefined"?globalThis:ii||self,ii.TomSelect=ti())})(Bc,function(){"use strict";function ii(fi,oi){fi.split(/\s+/).forEach(ci=>{oi(ci)})}class ti{constructor(){this._events=void 0,this._events={}}on(oi,ci){ii(oi,ui=>{let gi=this._events[ui]||[];gi.push(ci),this._events[ui]=gi})}off(oi,ci){var ui=arguments.length;if(ui===0){this._events={};return}ii(oi,gi=>{if(ui===1){delete this._events[gi];return}let bi=this._events[gi];bi!==void 0&&(bi.splice(bi.indexOf(ci),1),this._events[gi]=bi)})}trigger(oi,...ci){var ui=this;ii(oi,gi=>{let bi=ui._events[gi];bi!==void 0&&bi.forEach(yi=>{yi.apply(ui,ci)})})}}function ei(fi){return fi.plugins={},class extends fi{constructor(...oi){super(...oi),this.plugins={names:[],settings:{},requested:{},loaded:{}}}static define(oi,ci){fi.plugins[oi]={name:oi,fn:ci}}initializePlugins(oi){var ci,ui;let gi=this,bi=[];if(Array.isArray(oi))oi.forEach(yi=>{typeof yi=="string"?bi.push(yi):(gi.plugins.settings[yi.name]=yi.options,bi.push(yi.name))});else if(oi)for(ci in oi)oi.hasOwnProperty(ci)&&(gi.plugins.settings[ci]=oi[ci],bi.push(ci));for(;ui=bi.shift();)gi.require(ui)}loadPlugin(oi){var ci=this,ui=ci.plugins,gi=fi.plugins[oi];if(!fi.plugins.hasOwnProperty(oi))throw new Error('Unable to find "'+oi+'" plugin');ui.requested[oi]=!0,ui.loaded[oi]=gi.fn.apply(ci,[ci.plugins.settings[oi]||{}]),ui.names.push(oi)}require(oi){var ci=this,ui=ci.plugins;if(!ci.plugins.loaded.hasOwnProperty(oi)){if(ui.requested[oi])throw new Error('Plugin has circular dependency ("'+oi+'")');ci.loadPlugin(oi)}return ui.loaded[oi]}}}let ni=fi=>(fi=fi.filter(Boolean),fi.length<2?fi[0]||"":di(fi)==1?"["+fi.join("")+"]":"(?:"+fi.join("|")+")"),ri=fi=>{if(!ai(fi))return fi.join("");let oi="",ci=0,ui=()=>{ci>1&&(oi+="{"+ci+"}")};return fi.forEach((gi,bi)=>{if(gi===fi[bi-1]){ci++;return}ui(),oi+=gi,ci=1}),ui(),oi},si=fi=>{let oi=hi(fi);return ni(oi)},ai=fi=>new Set(fi).size!==fi.length,li=fi=>(fi+"").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu,"\\$1"),di=fi=>fi.reduce((oi,ci)=>Math.max(oi,mi(ci)),0),mi=fi=>hi(fi).length,hi=fi=>Array.from(fi);let _i=fi=>{if(fi.length===1)return[[fi]];let oi=[],ci=fi.substring(1);return _i(ci).forEach(function(gi){let bi=gi.slice(0);bi[0]=fi.charAt(0)+bi[0],oi.push(bi),bi=gi.slice(0),bi.unshift(fi.charAt(0)),oi.push(bi)}),oi};let Ei=[[0,65535]],Ai="[\u0300-\u036F\xB7\u02BE\u02BC]",ki,Ti,Fi=3,en={},rn={"/":"\u2044\u2215",0:"\u07C0",a:"\u2C65\u0250\u0251",aa:"\uA733",ae:"\xE6\u01FD\u01E3",ao:"\uA735",au:"\uA737",av:"\uA739\uA73B",ay:"\uA73D",b:"\u0180\u0253\u0183",c:"\uA73F\u0188\u023C\u2184",d:"\u0111\u0257\u0256\u1D05\u018C\uABB7\u0501\u0266",e:"\u025B\u01DD\u1D07\u0247",f:"\uA77C\u0192",g:"\u01E5\u0260\uA7A1\u1D79\uA77F\u0262",h:"\u0127\u2C68\u2C76\u0265",i:"\u0268\u0131",j:"\u0249\u0237",k:"\u0199\u2C6A\uA741\uA743\uA745\uA7A3",l:"\u0142\u019A\u026B\u2C61\uA749\uA747\uA781\u026D",m:"\u0271\u026F\u03FB",n:"\uA7A5\u019E\u0272\uA791\u1D0E\u043B\u0509",o:"\xF8\u01FF\u0254\u0275\uA74B\uA74D\u1D11",oe:"\u0153",oi:"\u01A3",oo:"\uA74F",ou:"\u0223",p:"\u01A5\u1D7D\uA751\uA753\uA755\u03C1",q:"\uA757\uA759\u024B",r:"\u024D\u027D\uA75B\uA7A7\uA783",s:"\xDF\u023F\uA7A9\uA785\u0282",t:"\u0167\u01AD\u0288\u2C66\uA787",th:"\xFE",tz:"\uA729",u:"\u0289",v:"\u028B\uA75F\u028C",vy:"\uA761",w:"\u2C73",y:"\u01B4\u024F\u1EFF",z:"\u01B6\u0225\u0240\u2C6C\uA763",hv:"\u0195"};for(let fi in rn){let oi=rn[fi]||"";for(let ci=0;ci{ki===void 0&&(ki=gn(fi||Ei))},on=(fi,oi="NFKD")=>fi.normalize(oi),an=fi=>hi(fi).reduce((oi,ci)=>oi+bn(ci),""),bn=fi=>(fi=on(fi).toLowerCase().replace(ln,oi=>en[oi]||""),on(fi,"NFC"));function*hn(fi){for(let[oi,ci]of fi)for(let ui=oi;ui<=ci;ui++){let gi=String.fromCharCode(ui),bi=an(gi);bi!=gi.toLowerCase()&&(bi.length>Fi||bi.length!=0&&(yield{folded:bi,composed:gi,code_point:ui}))}}let pn=fi=>{let oi={},ci=(ui,gi)=>{let bi=oi[ui]||new Set,yi=new RegExp("^"+si(bi)+"$","iu");gi.match(yi)||(bi.add(li(gi)),oi[ui]=bi)};for(let ui of hn(fi))ci(ui.folded,ui.folded),ci(ui.folded,ui.composed);return oi},gn=fi=>{let oi=pn(fi),ci={},ui=[];for(let bi in oi){let yi=oi[bi];yi&&(ci[bi]=si(yi)),bi.length>1&&ui.push(li(bi))}ui.sort((bi,yi)=>yi.length-bi.length);let gi=ni(ui);return Ti=new RegExp("^"+gi,"u"),ci},un=(fi,oi=1)=>{let ci=0;return fi=fi.map(ui=>(ki[ui]&&(ci+=ui.length),ki[ui]||ui)),ci>=oi?ri(fi):""},vn=(fi,oi=1)=>(oi=Math.max(oi,fi.length-1),ni(_i(fi).map(ci=>un(ci,oi)))),Tn=(fi,oi=!0)=>{let ci=fi.length>1?1:0;return ni(fi.map(ui=>{let gi=[],bi=oi?ui.length():ui.length()-1;for(let yi=0;yi{for(let ci of oi){if(ci.start!=fi.start||ci.end!=fi.end||ci.substrs.join("")!==fi.substrs.join(""))continue;let ui=fi.parts,gi=yi=>{for(let Ci of ui){if(Ci.start===yi.start&&Ci.substr===yi.substr)return!1;if(!(yi.length==1||Ci.length==1)&&(yi.startCi.start||Ci.startyi.start))return!0}return!1};if(!(ci.parts.filter(gi).length>0))return!0}return!1};class Hi{constructor(){this.parts=[],this.substrs=[],this.start=0,this.end=0}add(oi){oi&&(this.parts.push(oi),this.substrs.push(oi.substr),this.start=Math.min(oi.start,this.start),this.end=Math.max(oi.end,this.end))}last(){return this.parts[this.parts.length-1]}length(){return this.parts.length}clone(oi,ci){let ui=new Hi,gi=JSON.parse(JSON.stringify(this.parts)),bi=gi.pop();for(let Oi of gi)ui.add(Oi);let yi=ci.substr.substring(0,oi-bi.start),Ci=yi.length;return ui.add({start:bi.start,end:bi.start+Ci,length:Ci,substr:yi}),ui}}let Pi=fi=>{Yi(),fi=an(fi);let oi="",ci=[new Hi];for(let ui=0;ui0){Oi=Oi.sort((Wi,Bi)=>Wi.length()-Bi.length());for(let Wi of Oi)Ni(Wi,ci)||ci.push(Wi);continue}if(ui>0&&Di.size==1&&!Di.has("3")){oi+=Tn(ci,!1);let Wi=new Hi,Bi=ci[0];Bi&&Wi.add(Bi.last()),ci=[Wi]}}return oi+=Tn(ci,!0),oi};let $i=(fi,oi)=>{if(fi)return fi[oi]},mn=(fi,oi)=>{if(fi){for(var ci,ui=oi.split(".");(ci=ui.shift())&&(fi=fi[ci]););return fi}},tn=(fi,oi,ci)=>{var ui,gi;return!fi||(fi=fi+"",oi.regex==null)||(gi=fi.search(oi.regex),gi===-1)?0:(ui=oi.string.length/fi.length,gi===0&&(ui+=.5),ui*ci)},zi=(fi,oi)=>{var ci=fi[oi];if(typeof ci=="function")return ci;ci&&!Array.isArray(ci)&&(fi[oi]=[ci])},Li=(fi,oi)=>{if(Array.isArray(fi))fi.forEach(oi);else for(var ci in fi)fi.hasOwnProperty(ci)&&oi(fi[ci],ci)},ji=(fi,oi)=>typeof fi=="number"&&typeof oi=="number"?fi>oi?1:fioi?1:oi>fi?-1:0);class Ji{constructor(oi,ci){this.items=void 0,this.settings=void 0,this.items=oi,this.settings=ci||{diacritics:!0}}tokenize(oi,ci,ui){if(!oi||!oi.length)return[];let gi=[],bi=oi.split(/\s+/);var yi;return ui&&(yi=new RegExp("^("+Object.keys(ui).map(li).join("|")+"):(.*)$")),bi.forEach(Ci=>{let Oi,Di=null,Wi=null;yi&&(Oi=Ci.match(yi))&&(Di=Oi[1],Ci=Oi[2]),Ci.length>0&&(this.settings.diacritics?Wi=Pi(Ci)||null:Wi=li(Ci),Wi&&ci&&(Wi="\\b"+Wi)),gi.push({string:Ci,regex:Wi?new RegExp(Wi,"iu"):null,field:Di})}),gi}getScoreFunction(oi,ci){var ui=this.prepareSearch(oi,ci);return this._getScoreFunction(ui)}_getScoreFunction(oi){let ci=oi.tokens,ui=ci.length;if(!ui)return function(){return 0};let gi=oi.options.fields,bi=oi.weights,yi=gi.length,Ci=oi.getAttrFn;if(!yi)return function(){return 1};let Oi=function(){return yi===1?function(Di,Wi){let Bi=gi[0].field;return tn(Ci(Wi,Bi),Di,bi[Bi]||1)}:function(Di,Wi){var Bi=0;if(Di.field){let Zi=Ci(Wi,Di.field);!Di.regex&&Zi?Bi+=1/yi:Bi+=tn(Zi,Di,1)}else Li(bi,(Zi,In)=>{Bi+=tn(Ci(Wi,In),Di,Zi)});return Bi/yi}}();return ui===1?function(Di){return Oi(ci[0],Di)}:oi.options.conjunction==="and"?function(Di){var Wi,Bi=0;for(let Zi of ci){if(Wi=Oi(Zi,Di),Wi<=0)return 0;Bi+=Wi}return Bi/ui}:function(Di){var Wi=0;return Li(ci,Bi=>{Wi+=Oi(Bi,Di)}),Wi/ui}}getSortFunction(oi,ci){var ui=this.prepareSearch(oi,ci);return this._getSortFunction(ui)}_getSortFunction(oi){var ci,ui=[];let gi=this,bi=oi.options,yi=!oi.query&&bi.sort_empty?bi.sort_empty:bi.sort;if(typeof yi=="function")return yi.bind(this);let Ci=function(Wi,Bi){return Wi==="$score"?Bi.score:oi.getAttrFn(gi.items[Bi.id],Wi)};if(yi)for(let Di of yi)(oi.query||Di.field!=="$score")&&ui.push(Di);if(oi.query){ci=!0;for(let Di of ui)if(Di.field==="$score"){ci=!1;break}ci&&ui.unshift({field:"$score",direction:"desc"})}else ui=ui.filter(Di=>Di.field!=="$score");return ui.length?function(Di,Wi){var Bi,Zi;for(let In of ui)if(Zi=In.field,Bi=(In.direction==="desc"?-1:1)*ji(Ci(Zi,Di),Ci(Zi,Wi)),Bi)return Bi;return 0}:null}prepareSearch(oi,ci){let ui={};var gi=Object.assign({},ci);if(zi(gi,"sort"),zi(gi,"sort_empty"),gi.fields){zi(gi,"fields");let bi=[];gi.fields.forEach(yi=>{typeof yi=="string"&&(yi={field:yi,weight:1}),bi.push(yi),ui[yi.field]="weight"in yi?yi.weight:1}),gi.fields=bi}return{options:gi,query:oi.toLowerCase().trim(),tokens:this.tokenize(oi,gi.respect_word_boundaries,ui),total:0,items:[],weights:ui,getAttrFn:gi.nesting?mn:$i}}search(oi,ci){var ui=this,gi,bi;bi=this.prepareSearch(oi,ci),ci=bi.options,oi=bi.query;let yi=ci.score||ui._getScoreFunction(bi);oi.length?Li(ui.items,(Oi,Di)=>{gi=yi(Oi),(ci.filter===!1||gi>0)&&bi.items.push({score:gi,id:Di})}):Li(ui.items,(Oi,Di)=>{bi.items.push({score:1,id:Di})});let Ci=ui._getSortFunction(bi);return Ci&&bi.items.sort(Ci),bi.total=bi.items.length,typeof ci.limit=="number"&&(bi.items=bi.items.slice(0,ci.limit)),bi}}let Vi=(fi,oi)=>{if(Array.isArray(fi))fi.forEach(oi);else for(var ci in fi)fi.hasOwnProperty(ci)&&oi(fi[ci],ci)},Ii=fi=>{if(fi.jquery)return fi[0];if(fi instanceof HTMLElement)return fi;if(Sn(fi)){var oi=document.createElement("template");return oi.innerHTML=fi.trim(),oi.content.firstChild}return document.querySelector(fi)},Sn=fi=>typeof fi=="string"&&fi.indexOf("<")>-1,Yn=fi=>fi.replace(/['"\\]/g,"\\$&"),Fn=(fi,oi)=>{var ci=document.createEvent("HTMLEvents");ci.initEvent(oi,!0,!1),fi.dispatchEvent(ci)},Bn=(fi,oi)=>{Object.assign(fi.style,oi)},Gn=(fi,...oi)=>{var ci=Ts(oi);fi=zn(fi),fi.map(ui=>{ci.map(gi=>{ui.classList.add(gi)})})},Qn=(fi,...oi)=>{var ci=Ts(oi);fi=zn(fi),fi.map(ui=>{ci.map(gi=>{ui.classList.remove(gi)})})},Ts=fi=>{var oi=[];return Vi(fi,ci=>{typeof ci=="string"&&(ci=ci.trim().split(/[\11\12\14\15\40]/)),Array.isArray(ci)&&(oi=oi.concat(ci))}),oi.filter(Boolean)},zn=fi=>(Array.isArray(fi)||(fi=[fi]),fi),hs=(fi,oi,ci)=>{if(!(ci&&!ci.contains(fi)))for(;fi&&fi.matches;){if(fi.matches(oi))return fi;fi=fi.parentNode}},ms=(fi,oi=0)=>oi>0?fi[fi.length-1]:fi[0],qs=fi=>Object.keys(fi).length===0,qn=(fi,oi)=>{if(!fi)return-1;oi=oi||fi.nodeName;for(var ci=0;fi=fi.previousElementSibling;)fi.matches(oi)&&ci++;return ci},yn=(fi,oi)=>{Vi(oi,(ci,ui)=>{ci==null?fi.removeAttribute(ui):fi.setAttribute(ui,""+ci)})},Kr=(fi,oi)=>{fi.parentNode&&fi.parentNode.replaceChild(oi,fi)},as=(fi,oi)=>{if(oi===null)return;if(typeof oi=="string"){if(!oi.length)return;oi=new RegExp(oi,"i")}let ci=bi=>{var yi=bi.data.match(oi);if(yi&&bi.data.length>0){var Ci=document.createElement("span");Ci.className="highlight";var Oi=bi.splitText(yi.index);Oi.splitText(yi[0].length);var Di=Oi.cloneNode(!0);return Ci.appendChild(Di),Kr(Oi,Ci),1}return 0},ui=bi=>{bi.nodeType===1&&bi.childNodes&&!/(script|style)/i.test(bi.tagName)&&(bi.className!=="highlight"||bi.tagName!=="SPAN")&&Array.from(bi.childNodes).forEach(yi=>{gi(yi)})},gi=bi=>bi.nodeType===3?ci(bi):(ui(bi),0);gi(fi)},Ws=fi=>{var oi=fi.querySelectorAll("span.highlight");Array.prototype.forEach.call(oi,function(ci){var ui=ci.parentNode;ui.replaceChild(ci.firstChild,ci),ui.normalize()})},po=65,Us=13,Ms=27,Ss=37,Ro=38,Ys=39,Po=40,ha=8,Wl=46,pa=9,Ho=(typeof navigator=="undefined"?!1:/Mac/.test(navigator.userAgent))?"metaKey":"ctrlKey";var ja={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:null,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,shouldOpen:null,maxOptions:50,maxItems:null,hideSelected:null,duplicates:!1,addPrecedence:!1,selectOnTab:!1,preload:null,allowEmptyOption:!1,refreshThrottle:300,loadThrottle:300,loadingClass:"loading",dataAttr:null,optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"ts-wrapper",controlClass:"ts-control",dropdownClass:"ts-dropdown",dropdownContentClass:"ts-dropdown-content",itemClass:"item",optionClass:"option",dropdownParent:null,controlInput:' ',copyClassesToDropdown:!1,placeholder:null,hidePlaceholder:null,shouldLoad:function(fi){return fi.length>0},render:{}};let wn=fi=>typeof fi=="undefined"||fi===null?null:Gs(fi),Gs=fi=>typeof fi=="boolean"?fi?"1":"0":fi+"",Ks=fi=>(fi+"").replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),Yl=(fi,oi)=>oi>0?setTimeout(fi,oi):(fi.call(null),null),Fo=(fi,oi)=>{var ci;return function(ui,gi){var bi=this;ci&&(bi.loading=Math.max(bi.loading-1,0),clearTimeout(ci)),ci=setTimeout(function(){ci=null,bi.loadedSearches[ui]=!0,fi.call(bi,ui,gi)},oi)}},$o=(fi,oi,ci)=>{var ui,gi=fi.trigger,bi={};fi.trigger=function(){var yi=arguments[0];if(oi.indexOf(yi)!==-1)bi[yi]=arguments;else return gi.apply(fi,arguments)},ci.apply(fi,[]),fi.trigger=gi;for(ui of oi)ui in bi&&gi.apply(fi,bi[ui])},Cs=fi=>({start:fi.selectionStart||0,length:(fi.selectionEnd||0)-(fi.selectionStart||0)}),Dn=(fi,oi=!1)=>{fi&&(fi.preventDefault(),oi&&fi.stopPropagation())},On=(fi,oi,ci,ui)=>{fi.addEventListener(oi,ci,ui)},pi=(fi,oi)=>{if(!oi||!oi[fi])return!1;var ci=(oi.altKey?1:0)+(oi.ctrlKey?1:0)+(oi.shiftKey?1:0)+(oi.metaKey?1:0);return ci===1},vi=(fi,oi)=>{let ci=fi.getAttribute("id");return ci||(fi.setAttribute("id",oi),oi)},wi=fi=>fi.replace(/[\\"']/g,"\\$&"),Si=(fi,oi)=>{oi&&fi.append(oi)};function Ri(fi,oi){var ci=Object.assign({},ja,oi),ui=ci.dataAttr,gi=ci.labelField,bi=ci.valueField,yi=ci.disabledField,Ci=ci.optgroupField,Oi=ci.optgroupLabelField,Di=ci.optgroupValueField,Wi=fi.tagName.toLowerCase(),Bi=fi.getAttribute("placeholder")||fi.getAttribute("data-placeholder");if(!Bi&&!ci.allowEmptyOption){let Cn=fi.querySelector('option[value=""]');Cn&&(Bi=Cn.textContent)}var Zi={placeholder:Bi,options:[],optgroups:[],items:[],maxItems:null},In=()=>{var Cn,Pn=Zi.options,kn={},dn=1;let jn=0;var Os=xn=>{var Ln=Object.assign({},xn.dataset),En=ui&&Ln[ui];return typeof En=="string"&&En.length&&(Ln=Object.assign(Ln,JSON.parse(En))),Ln},Va=(xn,Ln)=>{var En=wn(xn.value);if(En!=null&&!(!En&&!ci.allowEmptyOption)){if(kn.hasOwnProperty(En)){if(Ln){var Jr=kn[En][Ci];Jr?Array.isArray(Jr)?Jr.push(Ln):kn[En][Ci]=[Jr,Ln]:kn[En][Ci]=Ln}}else{var Nn=Os(xn);Nn[gi]=Nn[gi]||xn.textContent,Nn[bi]=Nn[bi]||En,Nn[yi]=Nn[yi]||xn.disabled,Nn[Ci]=Nn[Ci]||Ln,Nn.$option=xn,Nn.$order=Nn.$order||++jn,kn[En]=Nn,Pn.push(Nn)}xn.selected&&Zi.items.push(En)}},Bo=xn=>{var Ln,En;En=Os(xn),En[Oi]=En[Oi]||xn.getAttribute("label")||"",En[Di]=En[Di]||dn++,En[yi]=En[yi]||xn.disabled,En.$order=En.$order||++jn,Zi.optgroups.push(En),Ln=En[Di],Vi(xn.children,Jr=>{Va(Jr,Ln)})};Zi.maxItems=fi.hasAttribute("multiple")?null:1,Vi(fi.children,xn=>{Cn=xn.tagName.toLowerCase(),Cn==="optgroup"?Bo(xn):Cn==="option"&&Va(xn)})},Qi=()=>{let Cn=fi.getAttribute(ui);if(Cn)Zi.options=JSON.parse(Cn),Vi(Zi.options,kn=>{Zi.items.push(kn[bi])});else{var Pn=fi.value.trim()||"";if(!ci.allowEmptyOption&&!Pn.length)return;let kn=Pn.split(ci.delimiter);Vi(kn,dn=>{let jn={};jn[gi]=dn,jn[bi]=dn,Zi.options.push(jn)}),Zi.items=kn}};return Wi==="select"?In():Qi(),Object.assign({},ja,Zi,oi)}var qi=0;class nn extends ei(ti){constructor(oi,ci){super(),this.control_input=void 0,this.wrapper=void 0,this.dropdown=void 0,this.control=void 0,this.dropdown_content=void 0,this.focus_node=void 0,this.order=0,this.settings=void 0,this.input=void 0,this.tabIndex=void 0,this.is_select_tag=void 0,this.rtl=void 0,this.inputId=void 0,this._destroy=void 0,this.sifter=void 0,this.isOpen=!1,this.isDisabled=!1,this.isReadOnly=!1,this.isRequired=void 0,this.isInvalid=!1,this.isValid=!0,this.isLocked=!1,this.isFocused=!1,this.isInputHidden=!1,this.isSetup=!1,this.ignoreFocus=!1,this.ignoreHover=!1,this.hasOptions=!1,this.currentResults=void 0,this.lastValue="",this.caretPos=0,this.loading=0,this.loadedSearches={},this.activeOption=null,this.activeItems=[],this.optgroups={},this.options={},this.userOptions={},this.items=[],this.refreshTimeout=null,qi++;var ui,gi=Ii(oi);if(gi.tomselect)throw new Error("Tom Select already initialized on this element");gi.tomselect=this;var bi=window.getComputedStyle&&window.getComputedStyle(gi,null);ui=bi.getPropertyValue("direction");let yi=Ri(gi,ci);this.settings=yi,this.input=gi,this.tabIndex=gi.tabIndex||0,this.is_select_tag=gi.tagName.toLowerCase()==="select",this.rtl=/rtl/i.test(ui),this.inputId=vi(gi,"tomselect-"+qi),this.isRequired=gi.required,this.sifter=new Ji(this.options,{diacritics:yi.diacritics}),yi.mode=yi.mode||(yi.maxItems===1?"single":"multi"),typeof yi.hideSelected!="boolean"&&(yi.hideSelected=yi.mode==="multi"),typeof yi.hidePlaceholder!="boolean"&&(yi.hidePlaceholder=yi.mode!=="multi");var Ci=yi.createFilter;typeof Ci!="function"&&(typeof Ci=="string"&&(Ci=new RegExp(Ci)),Ci instanceof RegExp?yi.createFilter=Pn=>Ci.test(Pn):yi.createFilter=Pn=>this.settings.duplicates||!this.options[Pn]),this.initializePlugins(yi.plugins),this.setupCallbacks(),this.setupTemplates();let Oi=Ii(""),Di=Ii("
"),Wi=this._render("dropdown"),Bi=Ii('
'),Zi=this.input.getAttribute("class")||"",In=yi.mode;var Qi;if(Gn(Oi,yi.wrapperClass,Zi,In),Gn(Di,yi.controlClass),Si(Oi,Di),Gn(Wi,yi.dropdownClass,In),yi.copyClassesToDropdown&&Gn(Wi,Zi),Gn(Bi,yi.dropdownContentClass),Si(Wi,Bi),Ii(yi.dropdownParent||Oi).appendChild(Wi),Sn(yi.controlInput)){Qi=Ii(yi.controlInput);var Cn=["autocorrect","autocapitalize","autocomplete","spellcheck"];Li(Cn,Pn=>{gi.getAttribute(Pn)&&yn(Qi,{[Pn]:gi.getAttribute(Pn)})}),Qi.tabIndex=-1,Di.appendChild(Qi),this.focus_node=Qi}else yi.controlInput?(Qi=Ii(yi.controlInput),this.focus_node=Qi):(Qi=Ii("
"),this.focus_node=Di);this.wrapper=Oi,this.dropdown=Wi,this.dropdown_content=Bi,this.control=Di,this.control_input=Qi,this.setup()}setup(){let oi=this,ci=oi.settings,ui=oi.control_input,gi=oi.dropdown,bi=oi.dropdown_content,yi=oi.wrapper,Ci=oi.control,Oi=oi.input,Di=oi.focus_node,Wi={passive:!0},Bi=oi.inputId+"-ts-dropdown";yn(bi,{id:Bi}),yn(Di,{role:"combobox","aria-haspopup":"listbox","aria-expanded":"false","aria-controls":Bi});let Zi=vi(Di,oi.inputId+"-ts-control"),In="label[for='"+Yn(oi.inputId)+"']",Qi=document.querySelector(In),Cn=oi.focus.bind(oi);if(Qi){On(Qi,"click",Cn),yn(Qi,{for:Zi});let dn=vi(Qi,oi.inputId+"-ts-label");yn(Di,{"aria-labelledby":dn}),yn(bi,{"aria-labelledby":dn})}if(yi.style.width=Oi.style.width,oi.plugins.names.length){let dn="plugin-"+oi.plugins.names.join(" plugin-");Gn([yi,gi],dn)}(ci.maxItems===null||ci.maxItems>1)&&oi.is_select_tag&&yn(Oi,{multiple:"multiple"}),ci.placeholder&&yn(ui,{placeholder:ci.placeholder}),!ci.splitOn&&ci.delimiter&&(ci.splitOn=new RegExp("\\s*"+li(ci.delimiter)+"+\\s*")),ci.load&&ci.loadThrottle&&(ci.load=Fo(ci.load,ci.loadThrottle)),On(gi,"mousemove",()=>{oi.ignoreHover=!1}),On(gi,"mouseenter",dn=>{var jn=hs(dn.target,"[data-selectable]",gi);jn&&oi.onOptionHover(dn,jn)},{capture:!0}),On(gi,"click",dn=>{let jn=hs(dn.target,"[data-selectable]");jn&&(oi.onOptionSelect(dn,jn),Dn(dn,!0))}),On(Ci,"click",dn=>{var jn=hs(dn.target,"[data-ts-item]",Ci);if(jn&&oi.onItemSelect(dn,jn)){Dn(dn,!0);return}ui.value==""&&(oi.onClick(),Dn(dn,!0))}),On(Di,"keydown",dn=>oi.onKeyDown(dn)),On(ui,"keypress",dn=>oi.onKeyPress(dn)),On(ui,"input",dn=>oi.onInput(dn)),On(Di,"blur",dn=>oi.onBlur(dn)),On(Di,"focus",dn=>oi.onFocus(dn)),On(ui,"paste",dn=>oi.onPaste(dn));let Pn=dn=>{let jn=dn.composedPath()[0];if(!yi.contains(jn)&&!gi.contains(jn)){oi.isFocused&&oi.blur(),oi.inputState();return}jn==ui&&oi.isOpen?dn.stopPropagation():Dn(dn,!0)},kn=()=>{oi.isOpen&&oi.positionDropdown()};On(document,"mousedown",Pn),On(window,"scroll",kn,Wi),On(window,"resize",kn,Wi),this._destroy=()=>{document.removeEventListener("mousedown",Pn),window.removeEventListener("scroll",kn),window.removeEventListener("resize",kn),Qi&&Qi.removeEventListener("click",Cn)},this.revertSettings={innerHTML:Oi.innerHTML,tabIndex:Oi.tabIndex},Oi.tabIndex=-1,Oi.insertAdjacentElement("afterend",oi.wrapper),oi.sync(!1),ci.items=[],delete ci.optgroups,delete ci.options,On(Oi,"invalid",()=>{oi.isValid&&(oi.isValid=!1,oi.isInvalid=!0,oi.refreshState())}),oi.updateOriginalInput(),oi.refreshItems(),oi.close(!1),oi.inputState(),oi.isSetup=!0,Oi.disabled?oi.disable():Oi.readOnly?oi.setReadOnly(!0):oi.enable(),oi.on("change",this.onChange),Gn(Oi,"tomselected","ts-hidden-accessible"),oi.trigger("initialize"),ci.preload===!0&&oi.preload()}setupOptions(oi=[],ci=[]){this.addOptions(oi),Li(ci,ui=>{this.registerOptionGroup(ui)})}setupTemplates(){var oi=this,ci=oi.settings.labelField,ui=oi.settings.optgroupLabelField,gi={optgroup:bi=>{let yi=document.createElement("div");return yi.className="optgroup",yi.appendChild(bi.options),yi},optgroup_header:(bi,yi)=>'",option:(bi,yi)=>"
"+yi(bi[ci])+"
",item:(bi,yi)=>"
"+yi(bi[ci])+"
",option_create:(bi,yi)=>'
Add '+yi(bi.input)+" …
",no_results:()=>'
No results found
',loading:()=>'
',not_loading:()=>{},dropdown:()=>"
"};oi.settings.render=Object.assign({},gi,oi.settings.render)}setupCallbacks(){var oi,ci,ui={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",item_select:"onItemSelect",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(oi in ui)ci=this.settings[ui[oi]],ci&&this.on(oi,ci)}sync(oi=!0){let ci=this,ui=oi?Ri(ci.input,{delimiter:ci.settings.delimiter}):ci.settings;ci.setupOptions(ui.options,ui.optgroups),ci.setValue(ui.items||[],!0),ci.lastQuery=null}onClick(){var oi=this;if(oi.activeItems.length>0){oi.clearActiveItems(),oi.focus();return}oi.isFocused&&oi.isOpen?oi.blur():oi.focus()}onMouseDown(){}onChange(){Fn(this.input,"input"),Fn(this.input,"change")}onPaste(oi){var ci=this;if(ci.isInputHidden||ci.isLocked){Dn(oi);return}ci.settings.splitOn&&setTimeout(()=>{var ui=ci.inputValue();if(ui.match(ci.settings.splitOn)){var gi=ui.trim().split(ci.settings.splitOn);Li(gi,bi=>{wn(bi)&&(this.options[bi]?ci.addItem(bi):ci.createItem(bi))})}},0)}onKeyPress(oi){var ci=this;if(ci.isLocked){Dn(oi);return}var ui=String.fromCharCode(oi.keyCode||oi.which);if(ci.settings.create&&ci.settings.mode==="multi"&&ui===ci.settings.delimiter){ci.createItem(),Dn(oi);return}}onKeyDown(oi){var ci=this;if(ci.ignoreHover=!0,ci.isLocked){oi.keyCode!==pa&&Dn(oi);return}switch(oi.keyCode){case po:if(pi(Ho,oi)&&ci.control_input.value==""){Dn(oi),ci.selectAll();return}break;case Ms:ci.isOpen&&(Dn(oi,!0),ci.close()),ci.clearActiveItems();return;case Po:if(!ci.isOpen&&ci.hasOptions)ci.open();else if(ci.activeOption){let ui=ci.getAdjacent(ci.activeOption,1);ui&&ci.setActiveOption(ui)}Dn(oi);return;case Ro:if(ci.activeOption){let ui=ci.getAdjacent(ci.activeOption,-1);ui&&ci.setActiveOption(ui)}Dn(oi);return;case Us:ci.canSelect(ci.activeOption)?(ci.onOptionSelect(oi,ci.activeOption),Dn(oi)):(ci.settings.create&&ci.createItem()||document.activeElement==ci.control_input&&ci.isOpen)&&Dn(oi);return;case Ss:ci.advanceSelection(-1,oi);return;case Ys:ci.advanceSelection(1,oi);return;case pa:ci.settings.selectOnTab&&(ci.canSelect(ci.activeOption)&&(ci.onOptionSelect(oi,ci.activeOption),Dn(oi)),ci.settings.create&&ci.createItem()&&Dn(oi));return;case ha:case Wl:ci.deleteSelection(oi);return}ci.isInputHidden&&!pi(Ho,oi)&&Dn(oi)}onInput(oi){if(this.isLocked)return;let ci=this.inputValue();if(this.lastValue!==ci){if(this.lastValue=ci,ci==""){this._onInput();return}this.refreshTimeout&&clearTimeout(this.refreshTimeout),this.refreshTimeout=Yl(()=>{this.refreshTimeout=null,this._onInput()},this.settings.refreshThrottle)}}_onInput(){let oi=this.lastValue;this.settings.shouldLoad.call(this,oi)&&this.load(oi),this.refreshOptions(),this.trigger("type",oi)}onOptionHover(oi,ci){this.ignoreHover||this.setActiveOption(ci,!1)}onFocus(oi){var ci=this,ui=ci.isFocused;if(ci.isDisabled||ci.isReadOnly){ci.blur(),Dn(oi);return}ci.ignoreFocus||(ci.isFocused=!0,ci.settings.preload==="focus"&&ci.preload(),ui||ci.trigger("focus"),ci.activeItems.length||(ci.inputState(),ci.refreshOptions(!!ci.settings.openOnFocus)),ci.refreshState())}onBlur(oi){if(document.hasFocus()!==!1){var ci=this;if(ci.isFocused){ci.isFocused=!1,ci.ignoreFocus=!1;var ui=()=>{ci.close(),ci.setActiveItem(),ci.setCaret(ci.items.length),ci.trigger("blur")};ci.settings.create&&ci.settings.createOnBlur?ci.createItem(null,ui):ui()}}}onOptionSelect(oi,ci){var ui,gi=this;ci.parentElement&&ci.parentElement.matches("[data-disabled]")||(ci.classList.contains("create")?gi.createItem(null,()=>{gi.settings.closeAfterSelect&&gi.close()}):(ui=ci.dataset.value,typeof ui!="undefined"&&(gi.lastQuery=null,gi.addItem(ui),gi.settings.closeAfterSelect&&gi.close(),!gi.settings.hideSelected&&oi.type&&/click/.test(oi.type)&&gi.setActiveOption(ci))))}canSelect(oi){return!!(this.isOpen&&oi&&this.dropdown_content.contains(oi))}onItemSelect(oi,ci){var ui=this;return!ui.isLocked&&ui.settings.mode==="multi"?(Dn(oi),ui.setActiveItem(ci,oi),!0):!1}canLoad(oi){return!(!this.settings.load||this.loadedSearches.hasOwnProperty(oi))}load(oi){let ci=this;if(!ci.canLoad(oi))return;Gn(ci.wrapper,ci.settings.loadingClass),ci.loading++;let ui=ci.loadCallback.bind(ci);ci.settings.load.call(ci,oi,ui)}loadCallback(oi,ci){let ui=this;ui.loading=Math.max(ui.loading-1,0),ui.lastQuery=null,ui.clearActiveOption(),ui.setupOptions(oi,ci),ui.refreshOptions(ui.isFocused&&!ui.isInputHidden),ui.loading||Qn(ui.wrapper,ui.settings.loadingClass),ui.trigger("load",oi,ci)}preload(){var oi=this.wrapper.classList;oi.contains("preloaded")||(oi.add("preloaded"),this.load(""))}setTextboxValue(oi=""){var ci=this.control_input,ui=ci.value!==oi;ui&&(ci.value=oi,Fn(ci,"update"),this.lastValue=oi)}getValue(){return this.is_select_tag&&this.input.hasAttribute("multiple")?this.items:this.items.join(this.settings.delimiter)}setValue(oi,ci){var ui=ci?[]:["change"];$o(this,ui,()=>{this.clear(ci),this.addItems(oi,ci)})}setMaxItems(oi){oi===0&&(oi=null),this.settings.maxItems=oi,this.refreshState()}setActiveItem(oi,ci){var ui=this,gi,bi,yi,Ci,Oi,Di;if(ui.settings.mode!=="single"){if(!oi){ui.clearActiveItems(),ui.isFocused&&ui.inputState();return}if(gi=ci&&ci.type.toLowerCase(),gi==="click"&&pi("shiftKey",ci)&&ui.activeItems.length){for(Di=ui.getLastActive(),yi=Array.prototype.indexOf.call(ui.control.children,Di),Ci=Array.prototype.indexOf.call(ui.control.children,oi),yi>Ci&&(Oi=yi,yi=Ci,Ci=Oi),bi=yi;bi<=Ci;bi++)oi=ui.control.children[bi],ui.activeItems.indexOf(oi)===-1&&ui.setActiveItemClass(oi);Dn(ci)}else gi==="click"&&pi(Ho,ci)||gi==="keydown"&&pi("shiftKey",ci)?oi.classList.contains("active")?ui.removeActiveItem(oi):ui.setActiveItemClass(oi):(ui.clearActiveItems(),ui.setActiveItemClass(oi));ui.inputState(),ui.isFocused||ui.focus()}}setActiveItemClass(oi){let ci=this,ui=ci.control.querySelector(".last-active");ui&&Qn(ui,"last-active"),Gn(oi,"active last-active"),ci.trigger("item_select",oi),ci.activeItems.indexOf(oi)==-1&&ci.activeItems.push(oi)}removeActiveItem(oi){var ci=this.activeItems.indexOf(oi);this.activeItems.splice(ci,1),Qn(oi,"active")}clearActiveItems(){Qn(this.activeItems,"active"),this.activeItems=[]}setActiveOption(oi,ci=!0){oi!==this.activeOption&&(this.clearActiveOption(),oi&&(this.activeOption=oi,yn(this.focus_node,{"aria-activedescendant":oi.getAttribute("id")}),yn(oi,{"aria-selected":"true"}),Gn(oi,"active"),ci&&this.scrollToOption(oi)))}scrollToOption(oi,ci){if(!oi)return;let ui=this.dropdown_content,gi=ui.clientHeight,bi=ui.scrollTop||0,yi=oi.offsetHeight,Ci=oi.getBoundingClientRect().top-ui.getBoundingClientRect().top+bi;Ci+yi>gi+bi?this.scroll(Ci-gi+yi,ci):Ci
{oi.setActiveItemClass(ui)}))}inputState(){var oi=this;oi.control.contains(oi.control_input)&&(yn(oi.control_input,{placeholder:oi.settings.placeholder}),oi.activeItems.length>0||!oi.isFocused&&oi.settings.hidePlaceholder&&oi.items.length>0?(oi.setTextboxValue(),oi.isInputHidden=!0):(oi.settings.hidePlaceholder&&oi.items.length>0&&yn(oi.control_input,{placeholder:""}),oi.isInputHidden=!1),oi.wrapper.classList.toggle("input-hidden",oi.isInputHidden))}inputValue(){return this.control_input.value.trim()}focus(){var oi=this;oi.isDisabled||oi.isReadOnly||(oi.ignoreFocus=!0,oi.control_input.offsetWidth?oi.control_input.focus():oi.focus_node.focus(),setTimeout(()=>{oi.ignoreFocus=!1,oi.onFocus()},0))}blur(){this.focus_node.blur(),this.onBlur()}getScoreFunction(oi){return this.sifter.getScoreFunction(oi,this.getSearchOptions())}getSearchOptions(){var oi=this.settings,ci=oi.sortField;return typeof oi.sortField=="string"&&(ci=[{field:oi.sortField}]),{fields:oi.searchField,conjunction:oi.searchConjunction,sort:ci,nesting:oi.nesting}}search(oi){var ci,ui,gi=this,bi=this.getSearchOptions();if(gi.settings.score&&(ui=gi.settings.score.call(gi,oi),typeof ui!="function"))throw new Error('Tom Select "score" setting must be a function that returns a function');return oi!==gi.lastQuery?(gi.lastQuery=oi,ci=gi.sifter.search(oi,Object.assign(bi,{score:ui})),gi.currentResults=ci):ci=Object.assign({},gi.currentResults),gi.settings.hideSelected&&(ci.items=ci.items.filter(yi=>{let Ci=wn(yi.id);return!(Ci&&gi.items.indexOf(Ci)!==-1)})),ci}refreshOptions(oi=!0){var ci,ui,gi,bi,yi,Ci,Oi,Di,Wi,Bi;let Zi={},In=[];var Qi=this,Cn=Qi.inputValue();let Pn=Cn===Qi.lastQuery||Cn==""&&Qi.lastQuery==null;var kn=Qi.search(Cn),dn=null,jn=Qi.settings.shouldOpen||!1,Os=Qi.dropdown_content;Pn&&(dn=Qi.activeOption,dn&&(Wi=dn.closest("[data-group]"))),bi=kn.items.length,typeof Qi.settings.maxOptions=="number"&&(bi=Math.min(bi,Qi.settings.maxOptions)),bi>0&&(jn=!0);let Va=(xn,Ln)=>{let En=Zi[xn];if(En!==void 0){let Nn=In[En];if(Nn!==void 0)return[En,Nn.fragment]}let Jr=document.createDocumentFragment();return En=In.length,In.push({fragment:Jr,order:Ln,optgroup:xn}),[En,Jr]};for(ci=0;ci0&&(Nn=Nn.cloneNode(!0),yn(Nn,{id:En.$id+"-clone-"+ui,"aria-selected":null}),Nn.classList.add("ts-cloned"),Qn(Nn,"active"),Qi.activeOption&&Qi.activeOption.dataset.value==Ln&&Wi&&Wi.dataset.group===yi.toString()&&(dn=Nn)),rh.appendChild(Nn),yi!=""&&(Zi[yi]=nh)}}Qi.settings.lockOptgroupOrder&&In.sort((xn,Ln)=>xn.order-Ln.order),Oi=document.createDocumentFragment(),Li(In,xn=>{let Ln=xn.fragment,En=xn.optgroup;if(!Ln||!Ln.children.length)return;let Jr=Qi.optgroups[En];if(Jr!==void 0){let Nn=document.createDocumentFragment(),qa=Qi.render("optgroup_header",Jr);Si(Nn,qa),Si(Nn,Ln);let Wa=Qi.render("optgroup",{group:Jr,options:Nn});Si(Oi,Wa)}else Si(Oi,Ln)}),Os.innerHTML="",Si(Os,Oi),Qi.settings.highlight&&(Ws(Os),kn.query.length&&kn.tokens.length&&Li(kn.tokens,xn=>{as(Os,xn.regex)}));var Bo=xn=>{let Ln=Qi.render(xn,{input:Cn});return Ln&&(jn=!0,Os.insertBefore(Ln,Os.firstChild)),Ln};if(Qi.loading?Bo("loading"):Qi.settings.shouldLoad.call(Qi,Cn)?kn.items.length===0&&Bo("no_results"):Bo("not_loading"),Di=Qi.canCreate(Cn),Di&&(Bi=Bo("option_create")),Qi.hasOptions=kn.items.length>0||Di,jn){if(kn.items.length>0){if(!dn&&Qi.settings.mode==="single"&&Qi.items[0]!=null&&(dn=Qi.getOption(Qi.items[0])),!Os.contains(dn)){let xn=0;Bi&&!Qi.settings.addPrecedence&&(xn=1),dn=Qi.selectable()[xn]}}else Bi&&(dn=Bi);oi&&!Qi.isOpen&&(Qi.open(),Qi.scrollToOption(dn,"auto")),Qi.setActiveOption(dn)}else Qi.clearActiveOption(),oi&&Qi.isOpen&&Qi.close(!1)}selectable(){return this.dropdown_content.querySelectorAll("[data-selectable]")}addOption(oi,ci=!1){let ui=this;if(Array.isArray(oi))return ui.addOptions(oi,ci),!1;let gi=wn(oi[ui.settings.valueField]);return gi===null||ui.options.hasOwnProperty(gi)?!1:(oi.$order=oi.$order||++ui.order,oi.$id=ui.inputId+"-opt-"+oi.$order,ui.options[gi]=oi,ui.lastQuery=null,ci&&(ui.userOptions[gi]=ci,ui.trigger("option_add",gi,oi)),gi)}addOptions(oi,ci=!1){Li(oi,ui=>{this.addOption(ui,ci)})}registerOption(oi){return this.addOption(oi)}registerOptionGroup(oi){var ci=wn(oi[this.settings.optgroupValueField]);return ci===null?!1:(oi.$order=oi.$order||++this.order,this.optgroups[ci]=oi,ci)}addOptionGroup(oi,ci){var ui;ci[this.settings.optgroupValueField]=oi,(ui=this.registerOptionGroup(ci))&&this.trigger("optgroup_add",ui,ci)}removeOptionGroup(oi){this.optgroups.hasOwnProperty(oi)&&(delete this.optgroups[oi],this.clearCache(),this.trigger("optgroup_remove",oi))}clearOptionGroups(){this.optgroups={},this.clearCache(),this.trigger("optgroup_clear")}updateOption(oi,ci){let ui=this;var gi,bi;let yi=wn(oi),Ci=wn(ci[ui.settings.valueField]);if(yi===null)return;let Oi=ui.options[yi];if(Oi==null)return;if(typeof Ci!="string")throw new Error("Value must be set in option data");let Di=ui.getOption(yi),Wi=ui.getItem(yi);if(ci.$order=ci.$order||Oi.$order,delete ui.options[yi],ui.uncacheValue(Ci),ui.options[Ci]=ci,Di){if(ui.dropdown_content.contains(Di)){let Bi=ui._render("option",ci);Kr(Di,Bi),ui.activeOption===Di&&ui.setActiveOption(Bi)}Di.remove()}Wi&&(bi=ui.items.indexOf(yi),bi!==-1&&ui.items.splice(bi,1,Ci),gi=ui._render("item",ci),Wi.classList.contains("active")&&Gn(gi,"active"),Kr(Wi,gi)),ui.lastQuery=null}removeOption(oi,ci){let ui=this;oi=Gs(oi),ui.uncacheValue(oi),delete ui.userOptions[oi],delete ui.options[oi],ui.lastQuery=null,ui.trigger("option_remove",oi),ui.removeItem(oi,ci)}clearOptions(oi){let ci=(oi||this.clearFilter).bind(this);this.loadedSearches={},this.userOptions={},this.clearCache();let ui={};Li(this.options,(gi,bi)=>{ci(gi,bi)&&(ui[bi]=gi)}),this.options=this.sifter.items=ui,this.lastQuery=null,this.trigger("option_clear")}clearFilter(oi,ci){return this.items.indexOf(ci)>=0}getOption(oi,ci=!1){let ui=wn(oi);if(ui===null)return null;let gi=this.options[ui];if(gi!=null){if(gi.$div)return gi.$div;if(ci)return this._render("option",gi)}return null}getAdjacent(oi,ci,ui="option"){var gi=this,bi;if(!oi)return null;ui=="item"?bi=gi.controlChildren():bi=gi.dropdown_content.querySelectorAll("[data-selectable]");for(let yi=0;yi0?bi[yi+1]:bi[yi-1];return null}getItem(oi){if(typeof oi=="object")return oi;var ci=wn(oi);return ci!==null?this.control.querySelector(`[data-value="${wi(ci)}"]`):null}addItems(oi,ci){var ui=this,gi=Array.isArray(oi)?oi:[oi];gi=gi.filter(yi=>ui.items.indexOf(yi)===-1);let bi=gi[gi.length-1];gi.forEach(yi=>{ui.isPending=yi!==bi,ui.addItem(yi,ci)})}addItem(oi,ci){var ui=ci?[]:["change","dropdown_close"];$o(this,ui,()=>{var gi,bi;let yi=this,Ci=yi.settings.mode,Oi=wn(oi);if(!(Oi&&yi.items.indexOf(Oi)!==-1&&(Ci==="single"&&yi.close(),Ci==="single"||!yi.settings.duplicates))&&!(Oi===null||!yi.options.hasOwnProperty(Oi))&&(Ci==="single"&&yi.clear(ci),!(Ci==="multi"&&yi.isFull()))){if(gi=yi._render("item",yi.options[Oi]),yi.control.contains(gi)&&(gi=gi.cloneNode(!0)),bi=yi.isFull(),yi.items.splice(yi.caretPos,0,Oi),yi.insertAtCaret(gi),yi.isSetup){if(!yi.isPending&&yi.settings.hideSelected){let Di=yi.getOption(Oi),Wi=yi.getAdjacent(Di,1);Wi&&yi.setActiveOption(Wi)}!yi.isPending&&!yi.settings.closeAfterSelect&&yi.refreshOptions(yi.isFocused&&Ci!=="single"),yi.settings.closeAfterSelect!=!1&&yi.isFull()?yi.close():yi.isPending||yi.positionDropdown(),yi.trigger("item_add",Oi,gi),yi.isPending||yi.updateOriginalInput({silent:ci})}(!yi.isPending||!bi&&yi.isFull())&&(yi.inputState(),yi.refreshState())}})}removeItem(oi=null,ci){let ui=this;if(oi=ui.getItem(oi),!oi)return;var gi,bi;let yi=oi.dataset.value;gi=qn(oi),oi.remove(),oi.classList.contains("active")&&(bi=ui.activeItems.indexOf(oi),ui.activeItems.splice(bi,1),Qn(oi,"active")),ui.items.splice(gi,1),ui.lastQuery=null,!ui.settings.persist&&ui.userOptions.hasOwnProperty(yi)&&ui.removeOption(yi,ci),gi{}){arguments.length===3&&(ci=arguments[2]),typeof ci!="function"&&(ci=()=>{});var ui=this,gi=ui.caretPos,bi;if(oi=oi||ui.inputValue(),!ui.canCreate(oi))return ci(),!1;ui.lock();var yi=!1,Ci=Oi=>{if(ui.unlock(),!Oi||typeof Oi!="object")return ci();var Di=wn(Oi[ui.settings.valueField]);if(typeof Di!="string")return ci();ui.setTextboxValue(),ui.addOption(Oi,!0),ui.setCaret(gi),ui.addItem(Di),ci(Oi),yi=!0};return typeof ui.settings.create=="function"?bi=ui.settings.create.call(this,oi,Ci):bi={[ui.settings.labelField]:oi,[ui.settings.valueField]:oi},yi||Ci(bi),!0}refreshItems(){var oi=this;oi.lastQuery=null,oi.isSetup&&oi.addItems(oi.items),oi.updateOriginalInput(),oi.refreshState()}refreshState(){let oi=this;oi.refreshValidityState();let ci=oi.isFull(),ui=oi.isLocked;oi.wrapper.classList.toggle("rtl",oi.rtl);let gi=oi.wrapper.classList;gi.toggle("focus",oi.isFocused),gi.toggle("disabled",oi.isDisabled),gi.toggle("readonly",oi.isReadOnly),gi.toggle("required",oi.isRequired),gi.toggle("invalid",!oi.isValid),gi.toggle("locked",ui),gi.toggle("full",ci),gi.toggle("input-active",oi.isFocused&&!oi.isInputHidden),gi.toggle("dropdown-active",oi.isOpen),gi.toggle("has-options",qs(oi.options)),gi.toggle("has-items",oi.items.length>0)}refreshValidityState(){var oi=this;oi.input.validity&&(oi.isValid=oi.input.validity.valid,oi.isInvalid=!oi.isValid)}isFull(){return this.settings.maxItems!==null&&this.items.length>=this.settings.maxItems}updateOriginalInput(oi={}){let ci=this;var ui,gi;let bi=ci.input.querySelector('option[value=""]');if(ci.is_select_tag){let Oi=function(Di,Wi,Bi){return Di||(Di=Ii(''+Ks(Bi)+" ")),Di!=bi&&ci.input.append(Di),yi.push(Di),(Di!=bi||Ci>0)&&(Di.selected=!0),Di},yi=[],Ci=ci.input.querySelectorAll("option:checked").length;ci.input.querySelectorAll("option:checked").forEach(Di=>{Di.selected=!1}),ci.items.length==0&&ci.settings.mode=="single"?Oi(bi,"",""):ci.items.forEach(Di=>{if(ui=ci.options[Di],gi=ui[ci.settings.labelField]||"",yi.includes(ui.$option)){let Wi=ci.input.querySelector(`option[value="${wi(Di)}"]:not(:checked)`);Oi(Wi,Di,gi)}else ui.$option=Oi(ui.$option,Di,gi)})}else ci.input.value=ci.getValue();ci.isSetup&&(oi.silent||ci.trigger("change",ci.getValue()))}open(){var oi=this;oi.isLocked||oi.isOpen||oi.settings.mode==="multi"&&oi.isFull()||(oi.isOpen=!0,yn(oi.focus_node,{"aria-expanded":"true"}),oi.refreshState(),Bn(oi.dropdown,{visibility:"hidden",display:"block"}),oi.positionDropdown(),Bn(oi.dropdown,{visibility:"visible",display:"block"}),oi.focus(),oi.trigger("dropdown_open",oi.dropdown))}close(oi=!0){var ci=this,ui=ci.isOpen;oi&&(ci.setTextboxValue(),ci.settings.mode==="single"&&ci.items.length&&ci.inputState()),ci.isOpen=!1,yn(ci.focus_node,{"aria-expanded":"false"}),Bn(ci.dropdown,{display:"none"}),ci.settings.hideSelected&&ci.clearActiveOption(),ci.refreshState(),ui&&ci.trigger("dropdown_close",ci.dropdown)}positionDropdown(){if(this.settings.dropdownParent==="body"){var oi=this.control,ci=oi.getBoundingClientRect(),ui=oi.offsetHeight+ci.top+window.scrollY,gi=ci.left+window.scrollX;Bn(this.dropdown,{width:ci.width+"px",top:ui+"px",left:gi+"px"})}}clear(oi){var ci=this;if(ci.items.length){var ui=ci.controlChildren();Li(ui,gi=>{ci.removeItem(gi,!0)}),ci.inputState(),oi||ci.updateOriginalInput(),ci.trigger("clear")}}insertAtCaret(oi){let ci=this,ui=ci.caretPos,gi=ci.control;gi.insertBefore(oi,gi.children[ui]||null),ci.setCaret(ui+1)}deleteSelection(oi){var ci,ui,gi,bi,yi=this;ci=oi&&oi.keyCode===ha?-1:1,ui=Cs(yi.control_input);let Ci=[];if(yi.activeItems.length)bi=ms(yi.activeItems,ci),gi=qn(bi),ci>0&&gi++,Li(yi.activeItems,Oi=>Ci.push(Oi));else if((yi.isFocused||yi.settings.mode==="single")&&yi.items.length){let Oi=yi.controlChildren(),Di;ci<0&&ui.start===0&&ui.length===0?Di=Oi[yi.caretPos-1]:ci>0&&ui.start===yi.inputValue().length&&(Di=Oi[yi.caretPos]),Di!==void 0&&Ci.push(Di)}if(!yi.shouldDelete(Ci,oi))return!1;for(Dn(oi,!0),typeof gi!="undefined"&&yi.setCaret(gi);Ci.length;)yi.removeItem(Ci.pop());return yi.inputState(),yi.positionDropdown(),yi.refreshOptions(!1),!0}shouldDelete(oi,ci){let ui=oi.map(gi=>gi.dataset.value);return!(!ui.length||typeof this.settings.onDelete=="function"&&this.settings.onDelete(ui,ci)===!1)}advanceSelection(oi,ci){var ui,gi,bi=this;bi.rtl&&(oi*=-1),!bi.inputValue().length&&(pi(Ho,ci)||pi("shiftKey",ci)?(ui=bi.getLastActive(oi),ui?ui.classList.contains("active")?gi=bi.getAdjacent(ui,oi,"item"):gi=ui:oi>0?gi=bi.control_input.nextElementSibling:gi=bi.control_input.previousElementSibling,gi&&(gi.classList.contains("active")&&bi.removeActiveItem(ui),bi.setActiveItemClass(gi))):bi.moveCaret(oi))}moveCaret(oi){}getLastActive(oi){let ci=this.control.querySelector(".last-active");if(ci)return ci;var ui=this.control.querySelectorAll(".active");if(ui)return ms(ui,oi)}setCaret(oi){this.caretPos=this.items.length}controlChildren(){return Array.from(this.control.querySelectorAll("[data-ts-item]"))}lock(){this.setLocked(!0)}unlock(){this.setLocked(!1)}setLocked(oi=this.isReadOnly||this.isDisabled){this.isLocked=oi,this.refreshState()}disable(){this.setDisabled(!0),this.close()}enable(){this.setDisabled(!1)}setDisabled(oi){this.focus_node.tabIndex=oi?-1:this.tabIndex,this.isDisabled=oi,this.input.disabled=oi,this.control_input.disabled=oi,this.setLocked()}setReadOnly(oi){this.isReadOnly=oi,this.input.readOnly=oi,this.control_input.readOnly=oi,this.setLocked()}destroy(){var oi=this,ci=oi.revertSettings;oi.trigger("destroy"),oi.off(),oi.wrapper.remove(),oi.dropdown.remove(),oi.input.innerHTML=ci.innerHTML,oi.input.tabIndex=ci.tabIndex,Qn(oi.input,"tomselected","ts-hidden-accessible"),oi._destroy(),delete oi.input.tomselect}render(oi,ci){var ui,gi;let bi=this;if(typeof this.settings.render[oi]!="function"||(gi=bi.settings.render[oi].call(this,ci,Ks),!gi))return null;if(gi=Ii(gi),oi==="option"||oi==="option_create"?ci[bi.settings.disabledField]?yn(gi,{"aria-disabled":"true"}):yn(gi,{"data-selectable":""}):oi==="optgroup"&&(ui=ci.group[bi.settings.optgroupValueField],yn(gi,{"data-group":ui}),ci.group[bi.settings.disabledField]&&yn(gi,{"data-disabled":""})),oi==="option"||oi==="item"){let yi=Gs(ci[bi.settings.valueField]);yn(gi,{"data-value":yi}),oi==="item"?(Gn(gi,bi.settings.itemClass),yn(gi,{"data-ts-item":""})):(Gn(gi,bi.settings.optionClass),yn(gi,{role:"option",id:ci.$id}),ci.$div=gi,bi.options[yi]=ci)}return gi}_render(oi,ci){let ui=this.render(oi,ci);if(ui==null)throw"HTMLElement expected";return ui}clearCache(){Li(this.options,oi=>{oi.$div&&(oi.$div.remove(),delete oi.$div)})}uncacheValue(oi){let ci=this.getOption(oi);ci&&ci.remove()}canCreate(oi){return this.settings.create&&oi.length>0&&this.settings.createFilter.call(this,oi)}hook(oi,ci,ui){var gi=this,bi=gi[ci];gi[ci]=function(){var yi,Ci;return oi==="after"&&(yi=bi.apply(gi,arguments)),Ci=ui.apply(gi,arguments),oi==="instead"?Ci:(oi==="before"&&(yi=bi.apply(gi,arguments)),yi)}}}function Xi(){On(this.input,"change",()=>{this.sync()})}function _n(fi){var oi=this,ci=oi.onOptionSelect;oi.settings.hideSelected=!1;let ui=Object.assign({className:"tomselect-checkbox",checkedClassNames:void 0,uncheckedClassNames:void 0},fi);var gi=function(Ci,Oi){Oi?(Ci.checked=!0,ui.uncheckedClassNames&&Ci.classList.remove(...ui.uncheckedClassNames),ui.checkedClassNames&&Ci.classList.add(...ui.checkedClassNames)):(Ci.checked=!1,ui.checkedClassNames&&Ci.classList.remove(...ui.checkedClassNames),ui.uncheckedClassNames&&Ci.classList.add(...ui.uncheckedClassNames))},bi=function(Ci){setTimeout(()=>{var Oi=Ci.querySelector("input."+ui.className);Oi instanceof HTMLInputElement&&gi(Oi,Ci.classList.contains("selected"))},1)};oi.hook("after","setupTemplates",()=>{var yi=oi.settings.render.option;oi.settings.render.option=(Ci,Oi)=>{var Di=Ii(yi.call(oi,Ci,Oi)),Wi=document.createElement("input");ui.className&&Wi.classList.add(ui.className),Wi.addEventListener("click",function(Zi){Dn(Zi)}),Wi.type="checkbox";let Bi=wn(Ci[oi.settings.valueField]);return gi(Wi,!!(Bi&&oi.items.indexOf(Bi)>-1)),Di.prepend(Wi),Di}}),oi.on("item_remove",yi=>{var Ci=oi.getOption(yi);Ci&&(Ci.classList.remove("selected"),bi(Ci))}),oi.on("item_add",yi=>{var Ci=oi.getOption(yi);Ci&&bi(Ci)}),oi.hook("instead","onOptionSelect",(yi,Ci)=>{if(Ci.classList.contains("selected")){Ci.classList.remove("selected"),oi.removeItem(Ci.dataset.value),oi.refreshOptions(),Dn(yi,!0);return}ci.call(oi,yi,Ci),bi(Ci)})}function Ki(fi){let oi=this,ci=Object.assign({className:"clear-button",title:"Clear All",html:ui=>`⨯
`},fi);oi.on("initialize",()=>{var ui=Ii(ci.html(ci));ui.addEventListener("click",gi=>{oi.isLocked||(oi.clear(),oi.settings.mode==="single"&&oi.settings.allowEmptyOption&&oi.addItem(""),gi.preventDefault(),gi.stopPropagation())}),oi.control.appendChild(ui)})}let fn=(fi,oi)=>{var ci;(ci=fi.parentNode)==null||ci.insertBefore(oi,fi.nextSibling)},Mn=(fi,oi)=>{var ci;(ci=fi.parentNode)==null||ci.insertBefore(oi,fi)},gs=(fi,oi)=>{do{var ci;if(oi=(ci=oi)==null?void 0:ci.previousElementSibling,fi==oi)return!0}while(oi&&oi.previousElementSibling);return!1};function is(){var fi=this;if(fi.settings.mode!=="multi")return;var oi=fi.lock,ci=fi.unlock;let ui=!0,gi;fi.hook("after","setupTemplates",()=>{var bi=fi.settings.render.item;fi.settings.render.item=(yi,Ci)=>{let Oi=Ii(bi.call(fi,yi,Ci));yn(Oi,{draggable:"true"});let Di=Cn=>{ui||Dn(Cn),Cn.stopPropagation()},Wi=Cn=>{gi=Oi,setTimeout(()=>{Oi.classList.add("ts-dragging")},0)},Bi=Cn=>{Cn.preventDefault(),Oi.classList.add("ts-drag-over"),In(Oi,gi)},Zi=()=>{Oi.classList.remove("ts-drag-over")},In=(Cn,Pn)=>{Pn!==void 0&&(gs(Pn,Oi)?fn(Cn,Pn):Mn(Cn,Pn))},Qi=()=>{var Cn;document.querySelectorAll(".ts-drag-over").forEach(kn=>kn.classList.remove("ts-drag-over")),(Cn=gi)==null||Cn.classList.remove("ts-dragging"),gi=void 0;var Pn=[];fi.control.querySelectorAll("[data-value]").forEach(kn=>{if(kn.dataset.value){let dn=kn.dataset.value;dn&&Pn.push(dn)}}),fi.setValue(Pn)};return On(Oi,"mousedown",Di),On(Oi,"dragstart",Wi),On(Oi,"dragenter",Bi),On(Oi,"dragover",Bi),On(Oi,"dragleave",Zi),On(Oi,"dragend",Qi),Oi}}),fi.hook("instead","lock",()=>(ui=!1,oi.call(fi))),fi.hook("instead","unlock",()=>(ui=!0,ci.call(fi)))}function mo(fi){let oi=this,ci=Object.assign({title:"Untitled",headerClass:"dropdown-header",titleRowClass:"dropdown-header-title",labelClass:"dropdown-header-label",closeClass:"dropdown-header-close",html:ui=>''},fi);oi.on("initialize",()=>{var ui=Ii(ci.html(ci)),gi=ui.querySelector("."+ci.closeClass);gi&&gi.addEventListener("click",bi=>{Dn(bi,!0),oi.close()}),oi.dropdown.insertBefore(ui,oi.dropdown.firstChild)})}function Qs(){var fi=this;fi.hook("instead","setCaret",oi=>{fi.settings.mode==="single"||!fi.control.contains(fi.control_input)?oi=fi.items.length:(oi=Math.max(0,Math.min(fi.items.length,oi)),oi!=fi.caretPos&&!fi.isPending&&fi.controlChildren().forEach((ci,ui)=>{ui{if(!fi.isFocused)return;let ci=fi.getLastActive(oi);if(ci){let ui=qn(ci);fi.setCaret(oi>0?ui+1:ui),fi.setActiveItem(),Qn(ci,"last-active")}else fi.setCaret(fi.caretPos+oi)})}function Gl(){let fi=this;fi.settings.shouldOpen=!0,fi.hook("before","setup",()=>{fi.focus_node=fi.control,Gn(fi.control_input,"dropdown-input");let oi=Ii('');oi.append(fi.control_input),fi.dropdown.insertBefore(oi,fi.dropdown.firstChild);let ci=Ii('
');ci.placeholder=fi.settings.placeholder||"",fi.control.append(ci)}),fi.on("initialize",()=>{fi.control_input.addEventListener("keydown",ci=>{switch(ci.keyCode){case Ms:fi.isOpen&&(Dn(ci,!0),fi.close()),fi.clearActiveItems();return;case pa:fi.focus_node.tabIndex=-1;break}return fi.onKeyDown.call(fi,ci)}),fi.on("blur",()=>{fi.focus_node.tabIndex=fi.isDisabled?-1:fi.tabIndex}),fi.on("dropdown_open",()=>{fi.control_input.focus()});let oi=fi.onBlur;fi.hook("instead","onBlur",ci=>{if(!(ci&&ci.relatedTarget==fi.control_input))return oi.call(fi)}),On(fi.control_input,"blur",()=>fi.onBlur()),fi.hook("before","close",()=>{fi.isOpen&&fi.focus_node.focus({preventScroll:!0})})})}function ma(){var fi=this;fi.on("initialize",()=>{var oi=document.createElement("span"),ci=fi.control_input;oi.style.cssText="position:absolute; top:-99999px; left:-99999px; width:auto; padding:0; white-space:pre; ",fi.wrapper.appendChild(oi);var ui=["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"];for(let bi of ui)oi.style[bi]=ci.style[bi];var gi=()=>{oi.textContent=ci.value,ci.style.width=oi.clientWidth+"px"};gi(),fi.on("update item_add item_remove",gi),On(ci,"input",gi),On(ci,"keyup",gi),On(ci,"blur",gi),On(ci,"update",gi)})}function Kl(){var fi=this,oi=fi.deleteSelection;this.hook("instead","deleteSelection",ci=>fi.activeItems.length?oi.call(fi,ci):!1)}function Ql(){this.hook("instead","setActiveItem",()=>{}),this.hook("instead","selectAll",()=>{})}function Xl(){var fi=this,oi=fi.onKeyDown;fi.hook("instead","onKeyDown",ci=>{var ui,gi,bi,yi;if(!fi.isOpen||!(ci.keyCode===Ss||ci.keyCode===Ys))return oi.call(fi,ci);fi.ignoreHover=!0,yi=hs(fi.activeOption,"[data-group]"),ui=qn(fi.activeOption,"[data-selectable]"),yi&&(ci.keyCode===Ss?yi=yi.previousSibling:yi=yi.nextSibling,yi&&(bi=yi.querySelectorAll("[data-selectable]"),gi=bi[Math.min(bi.length-1,ui)],gi&&fi.setActiveOption(gi)))})}function Jl(fi){let oi=Object.assign({label:"×",title:"Remove",className:"remove",append:!0},fi);var ci=this;if(oi.append){var ui='
'+oi.label+" ";ci.hook("after","setupTemplates",()=>{var gi=ci.settings.render.item;ci.settings.render.item=(bi,yi)=>{var Ci=Ii(gi.call(ci,bi,yi)),Oi=Ii(ui);return Ci.appendChild(Oi),On(Oi,"mousedown",Di=>{Dn(Di,!0)}),On(Oi,"click",Di=>{ci.isLocked||(Dn(Di,!0),!ci.isLocked&&ci.shouldDelete([Ci],Di)&&(ci.removeItem(Ci),ci.refreshOptions(!1),ci.inputState()))}),Ci}})}}function Zl(fi){let oi=this,ci=Object.assign({text:ui=>ui[oi.settings.labelField]},fi);oi.on("item_remove",function(ui){if(oi.isFocused&&oi.control_input.value.trim()===""){var gi=oi.options[ui];gi&&oi.setTextboxValue(ci.text.call(oi,gi))}})}function ec(){let fi=this,oi=fi.canLoad,ci=fi.clearActiveOption,ui=fi.loadCallback;var gi={},bi,yi=!1,Ci,Oi=[];if(fi.settings.shouldLoadMore||(fi.settings.shouldLoadMore=()=>{if(bi.clientHeight/(bi.scrollHeight-bi.scrollTop)>.9)return!0;if(fi.activeOption){var Zi=fi.selectable(),In=Array.from(Zi).indexOf(fi.activeOption);if(In>=Zi.length-2)return!0}return!1}),!fi.settings.firstUrl)throw"virtual_scroll plugin requires a firstUrl() method";fi.settings.sortField=[{field:"$order"},{field:"$score"}];let Di=Bi=>typeof fi.settings.maxOptions=="number"&&bi.children.length>=fi.settings.maxOptions?!1:!!(Bi in gi&&gi[Bi]),Wi=(Bi,Zi)=>fi.items.indexOf(Zi)>=0||Oi.indexOf(Zi)>=0;fi.setNextUrl=(Bi,Zi)=>{gi[Bi]=Zi},fi.getUrl=Bi=>{if(Bi in gi){let Zi=gi[Bi];return gi[Bi]=!1,Zi}return fi.clearPagination(),fi.settings.firstUrl.call(fi,Bi)},fi.clearPagination=()=>{gi={}},fi.hook("instead","clearActiveOption",()=>{if(!yi)return ci.call(fi)}),fi.hook("instead","canLoad",Bi=>Bi in gi?Di(Bi):oi.call(fi,Bi)),fi.hook("instead","loadCallback",(Bi,Zi)=>{if(!yi)fi.clearOptions(Wi);else if(Ci){let In=Bi[0];In!==void 0&&(Ci.dataset.value=In[fi.settings.valueField])}ui.call(fi,Bi,Zi),yi=!1}),fi.hook("after","refreshOptions",()=>{let Bi=fi.lastValue;var Zi;Di(Bi)?(Zi=fi.render("loading_more",{query:Bi}),Zi&&(Zi.setAttribute("data-selectable",""),Ci=Zi)):Bi in gi&&!bi.querySelector(".no-results")&&(Zi=fi.render("no_more_results",{query:Bi})),Zi&&(Gn(Zi,fi.settings.optionClass),bi.append(Zi))}),fi.on("initialize",()=>{Oi=Object.keys(fi.options),bi=fi.dropdown_content,fi.settings.render=Object.assign({},{loading_more:()=>'
Loading more results ...
',no_more_results:()=>'
No more results
'},fi.settings.render),bi.addEventListener("scroll",()=>{fi.settings.shouldLoadMore.call(fi)&&Di(fi.lastValue)&&(yi||(yi=!0,fi.load.call(fi,fi.lastValue)))})})}return nn.define("change_listener",Xi),nn.define("checkbox_options",_n),nn.define("clear_button",Ki),nn.define("drag_drop",is),nn.define("dropdown_header",mo),nn.define("caret_position",Qs),nn.define("dropdown_input",Gl),nn.define("input_autogrow",ma),nn.define("no_backspace_delete",Kl),nn.define("no_active_items",Ql),nn.define("optgroup_columns",Xl),nn.define("remove_button",Jl),nn.define("restore_on_backspace",Zl),nn.define("virtual_scroll",ec),nn})});var Ud=Ya((Tl,Wd)=>{(function(ii,ti){typeof Tl=="object"&&typeof Wd!="undefined"?ti(Tl):typeof define=="function"&&define.amd?define(["exports"],ti):(ii=typeof globalThis!="undefined"?globalThis:ii||self,ti(ii.diacritics={}))})(Tl,function(ii){"use strict";let ti=Ni=>(Ni=Ni.filter(Boolean),Ni.length<2?Ni[0]||"":ai(Ni)==1?"["+Ni.join("")+"]":"(?:"+Ni.join("|")+")"),ei=Ni=>{if(!ri(Ni))return Ni.join("");let Hi="",Pi=0,$i=()=>{Pi>1&&(Hi+="{"+Pi+"}")};return Ni.forEach((mn,tn)=>{if(mn===Ni[tn-1]){Pi++;return}$i(),Hi+=mn,Pi=1}),$i(),Hi},ni=Ni=>{let Hi=di(Ni);return ti(Hi)},ri=Ni=>new Set(Ni).size!==Ni.length,si=Ni=>(Ni+"").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu,"\\$1"),ai=Ni=>Ni.reduce((Hi,Pi)=>Math.max(Hi,li(Pi)),0),li=Ni=>di(Ni).length,di=Ni=>Array.from(Ni),mi=Ni=>{if(Ni.length===1)return[[Ni]];let Hi=[],Pi=Ni.substring(1);return mi(Pi).forEach(function(mn){let tn=mn.slice(0);tn[0]=Ni.charAt(0)+tn[0],Hi.push(tn),tn=mn.slice(0),tn.unshift(Ni.charAt(0)),Hi.push(tn)}),Hi},hi=[[0,65535]],_i="[\u0300-\u036F\xB7\u02BE\u02BC]";ii.unicode_map=void 0;let Ei,Ai=3,ki={},Ti={"/":"\u2044\u2215",0:"\u07C0",a:"\u2C65\u0250\u0251",aa:"\uA733",ae:"\xE6\u01FD\u01E3",ao:"\uA735",au:"\uA737",av:"\uA739\uA73B",ay:"\uA73D",b:"\u0180\u0253\u0183",c:"\uA73F\u0188\u023C\u2184",d:"\u0111\u0257\u0256\u1D05\u018C\uABB7\u0501\u0266",e:"\u025B\u01DD\u1D07\u0247",f:"\uA77C\u0192",g:"\u01E5\u0260\uA7A1\u1D79\uA77F\u0262",h:"\u0127\u2C68\u2C76\u0265",i:"\u0268\u0131",j:"\u0249\u0237",k:"\u0199\u2C6A\uA741\uA743\uA745\uA7A3",l:"\u0142\u019A\u026B\u2C61\uA749\uA747\uA781\u026D",m:"\u0271\u026F\u03FB",n:"\uA7A5\u019E\u0272\uA791\u1D0E\u043B\u0509",o:"\xF8\u01FF\u0254\u0275\uA74B\uA74D\u1D11",oe:"\u0153",oi:"\u01A3",oo:"\uA74F",ou:"\u0223",p:"\u01A5\u1D7D\uA751\uA753\uA755\u03C1",q:"\uA757\uA759\u024B",r:"\u024D\u027D\uA75B\uA7A7\uA783",s:"\xDF\u023F\uA7A9\uA785\u0282",t:"\u0167\u01AD\u0288\u2C66\uA787",th:"\xFE",tz:"\uA729",u:"\u0289",v:"\u028B\uA75F\u028C",vy:"\uA761",w:"\u2C73",y:"\u01B4\u024F\u1EFF",z:"\u01B6\u0225\u0240\u2C6C\uA763",hv:"\u0195"};for(let Ni in Ti){let Hi=Ti[Ni]||"";for(let Pi=0;Pi
{ii.unicode_map===void 0&&(ii.unicode_map=bn(Ni||hi))},rn=(Ni,Hi="NFKD")=>Ni.normalize(Hi),ln=Ni=>di(Ni).reduce((Hi,Pi)=>Hi+Yi(Pi),""),Yi=Ni=>(Ni=rn(Ni).toLowerCase().replace(Fi,Hi=>ki[Hi]||""),rn(Ni,"NFC"));function*on(Ni){for(let[Hi,Pi]of Ni)for(let $i=Hi;$i<=Pi;$i++){let mn=String.fromCharCode($i),tn=ln(mn);tn!=mn.toLowerCase()&&(tn.length>Ai||tn.length!=0&&(yield{folded:tn,composed:mn,code_point:$i}))}}let an=Ni=>{let Hi={},Pi=($i,mn)=>{let tn=Hi[$i]||new Set,zi=new RegExp("^"+ni(tn)+"$","iu");mn.match(zi)||(tn.add(si(mn)),Hi[$i]=tn)};for(let $i of on(Ni))Pi($i.folded,$i.folded),Pi($i.folded,$i.composed);return Hi},bn=Ni=>{let Hi=an(Ni),Pi={},$i=[];for(let tn in Hi){let zi=Hi[tn];zi&&(Pi[tn]=ni(zi)),tn.length>1&&$i.push(si(tn))}$i.sort((tn,zi)=>zi.length-tn.length);let mn=ti($i);return Ei=new RegExp("^"+mn,"u"),Pi},hn=(Ni,Hi=1)=>{let Pi=0;return Ni=Ni.map($i=>(ii.unicode_map[$i]&&(Pi+=$i.length),ii.unicode_map[$i]||$i)),Pi>=Hi?ei(Ni):""},pn=(Ni,Hi=1)=>(Hi=Math.max(Hi,Ni.length-1),ti(mi(Ni).map(Pi=>hn(Pi,Hi)))),gn=(Ni,Hi=!0)=>{let Pi=Ni.length>1?1:0;return ti(Ni.map($i=>{let mn=[],tn=Hi?$i.length():$i.length()-1;for(let zi=0;zi{for(let Pi of Hi){if(Pi.start!=Ni.start||Pi.end!=Ni.end||Pi.substrs.join("")!==Ni.substrs.join(""))continue;let $i=Ni.parts,mn=zi=>{for(let Li of $i){if(Li.start===zi.start&&Li.substr===zi.substr)return!1;if(!(zi.length==1||Li.length==1)&&(zi.startLi.start||Li.startzi.start))return!0}return!1};if(!(Pi.parts.filter(mn).length>0))return!0}return!1};class vn{constructor(){this.parts=[],this.substrs=[],this.start=0,this.end=0}add(Hi){Hi&&(this.parts.push(Hi),this.substrs.push(Hi.substr),this.start=Math.min(Hi.start,this.start),this.end=Math.max(Hi.end,this.end))}last(){return this.parts[this.parts.length-1]}length(){return this.parts.length}clone(Hi,Pi){let $i=new vn,mn=JSON.parse(JSON.stringify(this.parts)),tn=mn.pop();for(let ji of mn)$i.add(ji);let zi=Pi.substr.substring(0,Hi-tn.start),Li=zi.length;return $i.add({start:tn.start,end:tn.start+Li,length:Li,substr:zi}),$i}}let Tn=Ni=>{en(),Ni=ln(Ni);let Hi="",Pi=[new vn];for(let $i=0;$i0){ji=ji.sort((Vi,Ii)=>Vi.length()-Ii.length());for(let Vi of ji)un(Vi,Pi)||Pi.push(Vi);continue}if($i>0&&Ji.size==1&&!Ji.has("3")){Hi+=gn(Pi,!1);let Vi=new vn,Ii=Pi[0];Ii&&Vi.add(Ii.last()),Pi=[Vi]}}return Hi+=gn(Pi,!0),Hi};ii._asciifold=Yi,ii.asciifold=ln,ii.code_points=hi,ii.escape_regex=si,ii.generateMap=bn,ii.generateSets=an,ii.generator=on,ii.getPattern=Tn,ii.initialize=en,ii.mapSequence=hn,ii.normalize=rn,ii.substringsToPattern=pn,Object.defineProperty(ii,"__esModule",{value:!0})})});var If=Ya((Ra,eu)=>{(function(ti,ei){typeof Ra=="object"&&typeof eu=="object"?eu.exports=ei():typeof define=="function"&&define.amd?define([],ei):typeof Ra=="object"?Ra.ClipboardJS=ei():ti.ClipboardJS=ei()})(Ra,function(){return function(){var ii={686:function(ni,ri,si){"use strict";si.d(ri,{default:function(){return tn}});var ai=si(279),li=si.n(ai),di=si(370),mi=si.n(di),hi=si(817),_i=si.n(hi);function Ei(zi){try{return document.execCommand(zi)}catch(Li){return!1}}var Ai=function(Li){var ji=_i()(Li);return Ei("cut"),ji},ki=Ai;function Ti(zi){var Li=document.documentElement.getAttribute("dir")==="rtl",ji=document.createElement("textarea");ji.style.fontSize="12pt",ji.style.border="0",ji.style.padding="0",ji.style.margin="0",ji.style.position="absolute",ji.style[Li?"right":"left"]="-9999px";var Ji=window.pageYOffset||document.documentElement.scrollTop;return ji.style.top="".concat(Ji,"px"),ji.setAttribute("readonly",""),ji.value=zi,ji}var Fi=function(Li,ji){var Ji=Ti(Li);ji.container.appendChild(Ji);var Vi=_i()(Ji);return Ei("copy"),Ji.remove(),Vi},en=function(Li){var ji=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ji="";return typeof Li=="string"?Ji=Fi(Li,ji):Li instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Li==null?void 0:Li.type)?Ji=Fi(Li.value,ji):(Ji=_i()(Li),Ei("copy")),Ji},rn=en;function ln(zi){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ln=function(ji){return typeof ji}:ln=function(ji){return ji&&typeof Symbol=="function"&&ji.constructor===Symbol&&ji!==Symbol.prototype?"symbol":typeof ji},ln(zi)}var Yi=function(){var Li=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ji=Li.action,Ji=ji===void 0?"copy":ji,Vi=Li.container,Ii=Li.target,Sn=Li.text;if(Ji!=="copy"&&Ji!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Ii!==void 0)if(Ii&&ln(Ii)==="object"&&Ii.nodeType===1){if(Ji==="copy"&&Ii.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ji==="cut"&&(Ii.hasAttribute("readonly")||Ii.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Sn)return rn(Sn,{container:Vi});if(Ii)return Ji==="cut"?ki(Ii):rn(Ii,{container:Vi})},on=Yi;function an(zi){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?an=function(ji){return typeof ji}:an=function(ji){return ji&&typeof Symbol=="function"&&ji.constructor===Symbol&&ji!==Symbol.prototype?"symbol":typeof ji},an(zi)}function bn(zi,Li){if(!(zi instanceof Li))throw new TypeError("Cannot call a class as a function")}function hn(zi,Li){for(var ji=0;ji0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Vi.action=="function"?Vi.action:this.defaultAction,this.target=typeof Vi.target=="function"?Vi.target:this.defaultTarget,this.text=typeof Vi.text=="function"?Vi.text:this.defaultText,this.container=an(Vi.container)==="object"?Vi.container:document.body}},{key:"listenClick",value:function(Vi){var Ii=this;this.listener=mi()(Vi,"click",function(Sn){return Ii.onClick(Sn)})}},{key:"onClick",value:function(Vi){var Ii=Vi.delegateTarget||Vi.currentTarget,Sn=this.action(Ii)||"copy",Yn=on({action:Sn,container:this.container,target:this.target(Ii),text:this.text(Ii)});this.emit(Yn?"success":"error",{action:Sn,text:Yn,trigger:Ii,clearSelection:function(){Ii&&Ii.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Vi){return $i("action",Vi)}},{key:"defaultTarget",value:function(Vi){var Ii=$i("target",Vi);if(Ii)return document.querySelector(Ii)}},{key:"defaultText",value:function(Vi){return $i("text",Vi)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Vi){var Ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return rn(Vi,Ii)}},{key:"cut",value:function(Vi){return ki(Vi)}},{key:"isSupported",value:function(){var Vi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Ii=typeof Vi=="string"?[Vi]:Vi,Sn=!!document.queryCommandSupported;return Ii.forEach(function(Yn){Sn=Sn&&!!document.queryCommandSupported(Yn)}),Sn}}]),ji}(li()),tn=mn},828:function(ni){var ri=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var si=Element.prototype;si.matches=si.matchesSelector||si.mozMatchesSelector||si.msMatchesSelector||si.oMatchesSelector||si.webkitMatchesSelector}function ai(li,di){for(;li&&li.nodeType!==ri;){if(typeof li.matches=="function"&&li.matches(di))return li;li=li.parentNode}}ni.exports=ai},438:function(ni,ri,si){var ai=si(828);function li(hi,_i,Ei,Ai,ki){var Ti=mi.apply(this,arguments);return hi.addEventListener(Ei,Ti,ki),{destroy:function(){hi.removeEventListener(Ei,Ti,ki)}}}function di(hi,_i,Ei,Ai,ki){return typeof hi.addEventListener=="function"?li.apply(null,arguments):typeof Ei=="function"?li.bind(null,document).apply(null,arguments):(typeof hi=="string"&&(hi=document.querySelectorAll(hi)),Array.prototype.map.call(hi,function(Ti){return li(Ti,_i,Ei,Ai,ki)}))}function mi(hi,_i,Ei,Ai){return function(ki){ki.delegateTarget=ai(ki.target,_i),ki.delegateTarget&&Ai.call(hi,ki)}}ni.exports=di},879:function(ni,ri){ri.node=function(si){return si!==void 0&&si instanceof HTMLElement&&si.nodeType===1},ri.nodeList=function(si){var ai=Object.prototype.toString.call(si);return si!==void 0&&(ai==="[object NodeList]"||ai==="[object HTMLCollection]")&&"length"in si&&(si.length===0||ri.node(si[0]))},ri.string=function(si){return typeof si=="string"||si instanceof String},ri.fn=function(si){var ai=Object.prototype.toString.call(si);return ai==="[object Function]"}},370:function(ni,ri,si){var ai=si(879),li=si(438);function di(Ei,Ai,ki){if(!Ei&&!Ai&&!ki)throw new Error("Missing required arguments");if(!ai.string(Ai))throw new TypeError("Second argument must be a String");if(!ai.fn(ki))throw new TypeError("Third argument must be a Function");if(ai.node(Ei))return mi(Ei,Ai,ki);if(ai.nodeList(Ei))return hi(Ei,Ai,ki);if(ai.string(Ei))return _i(Ei,Ai,ki);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function mi(Ei,Ai,ki){return Ei.addEventListener(Ai,ki),{destroy:function(){Ei.removeEventListener(Ai,ki)}}}function hi(Ei,Ai,ki){return Array.prototype.forEach.call(Ei,function(Ti){Ti.addEventListener(Ai,ki)}),{destroy:function(){Array.prototype.forEach.call(Ei,function(Ti){Ti.removeEventListener(Ai,ki)})}}}function _i(Ei,Ai,ki){return li(document.body,Ei,Ai,ki)}ni.exports=di},817:function(ni){function ri(si){var ai;if(si.nodeName==="SELECT")si.focus(),ai=si.value;else if(si.nodeName==="INPUT"||si.nodeName==="TEXTAREA"){var li=si.hasAttribute("readonly");li||si.setAttribute("readonly",""),si.select(),si.setSelectionRange(0,si.value.length),li||si.removeAttribute("readonly"),ai=si.value}else{si.hasAttribute("contenteditable")&&si.focus();var di=window.getSelection(),mi=document.createRange();mi.selectNodeContents(si),di.removeAllRanges(),di.addRange(mi),ai=di.toString()}return ai}ni.exports=ri},279:function(ni){function ri(){}ri.prototype={on:function(si,ai,li){var di=this.e||(this.e={});return(di[si]||(di[si]=[])).push({fn:ai,ctx:li}),this},once:function(si,ai,li){var di=this;function mi(){di.off(si,mi),ai.apply(li,arguments)}return mi._=ai,this.on(si,mi,li)},emit:function(si){var ai=[].slice.call(arguments,1),li=((this.e||(this.e={}))[si]||[]).slice(),di=0,mi=li.length;for(di;di_u,afterRead:()=>gu,afterWrite:()=>wu,applyStyles:()=>Vo,arrow:()=>Ka,auto:()=>ga,basePlacements:()=>Ns,beforeMain:()=>vu,beforeRead:()=>pu,beforeWrite:()=>bu,bottom:()=>Xn,clippingParents:()=>ic,computeStyles:()=>Wo,createPopper:()=>Sa,createPopperBase:()=>Mu,createPopperLite:()=>ku,detectOverflow:()=>rs,end:()=>Xs,eventListeners:()=>Uo,flip:()=>Za,hide:()=>el,left:()=>Wn,main:()=>yu,modifierPhases:()=>rc,offset:()=>tl,placements:()=>ya,popper:()=>go,popperGenerator:()=>To,popperOffsets:()=>Ko,preventOverflow:()=>il,read:()=>mu,reference:()=>nc,right:()=>Kn,start:()=>Ls,top:()=>Vn,variationPlacements:()=>Ga,viewport:()=>va,write:()=>Eu});var Vn="top",Xn="bottom",Kn="right",Wn="left",ga="auto",Ns=[Vn,Xn,Kn,Wn],Ls="start",Xs="end",ic="clippingParents",va="viewport",go="popper",nc="reference",Ga=Ns.reduce(function(ii,ti){return ii.concat([ti+"-"+Ls,ti+"-"+Xs])},[]),ya=[].concat(Ns,[ga]).reduce(function(ii,ti){return ii.concat([ti,ti+"-"+Ls,ti+"-"+Xs])},[]),pu="beforeRead",mu="read",gu="afterRead",vu="beforeMain",yu="main",_u="afterMain",bu="beforeWrite",Eu="write",wu="afterWrite",rc=[pu,mu,gu,vu,yu,_u,bu,Eu,wu];function Yr(ii){return ii?(ii.nodeName||"").toLowerCase():null}function $n(ii){if(ii==null)return window;if(ii.toString()!=="[object Window]"){var ti=ii.ownerDocument;return ti&&ti.defaultView||window}return ii}function vs(ii){var ti=$n(ii).Element;return ii instanceof ti||ii instanceof Element}function Wr(ii){var ti=$n(ii).HTMLElement;return ii instanceof ti||ii instanceof HTMLElement}function jo(ii){if(typeof ShadowRoot=="undefined")return!1;var ti=$n(ii).ShadowRoot;return ii instanceof ti||ii instanceof ShadowRoot}function hh(ii){var ti=ii.state;Object.keys(ti.elements).forEach(function(ei){var ni=ti.styles[ei]||{},ri=ti.attributes[ei]||{},si=ti.elements[ei];!Wr(si)||!Yr(si)||(Object.assign(si.style,ni),Object.keys(ri).forEach(function(ai){var li=ri[ai];li===!1?si.removeAttribute(ai):si.setAttribute(ai,li===!0?"":li)}))})}function ph(ii){var ti=ii.state,ei={popper:{position:ti.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(ti.elements.popper.style,ei.popper),ti.styles=ei,ti.elements.arrow&&Object.assign(ti.elements.arrow.style,ei.arrow),function(){Object.keys(ti.elements).forEach(function(ni){var ri=ti.elements[ni],si=ti.attributes[ni]||{},ai=Object.keys(ti.styles.hasOwnProperty(ni)?ti.styles[ni]:ei[ni]),li=ai.reduce(function(di,mi){return di[mi]="",di},{});!Wr(ri)||!Yr(ri)||(Object.assign(ri.style,li),Object.keys(si).forEach(function(di){ri.removeAttribute(di)}))})}}var Vo={name:"applyStyles",enabled:!0,phase:"write",fn:hh,effect:ph,requires:["computeStyles"]};function Gr(ii){return ii.split("-")[0]}var As=Math.max,vo=Math.min,Is=Math.round;function qo(){var ii=navigator.userAgentData;return ii!=null&&ii.brands&&Array.isArray(ii.brands)?ii.brands.map(function(ti){return ti.brand+"/"+ti.version}).join(" "):navigator.userAgent}function _a(){return!/^((?!chrome|android).)*safari/i.test(qo())}function ys(ii,ti,ei){ti===void 0&&(ti=!1),ei===void 0&&(ei=!1);var ni=ii.getBoundingClientRect(),ri=1,si=1;ti&&Wr(ii)&&(ri=ii.offsetWidth>0&&Is(ni.width)/ii.offsetWidth||1,si=ii.offsetHeight>0&&Is(ni.height)/ii.offsetHeight||1);var ai=vs(ii)?$n(ii):window,li=ai.visualViewport,di=!_a()&&ei,mi=(ni.left+(di&&li?li.offsetLeft:0))/ri,hi=(ni.top+(di&&li?li.offsetTop:0))/si,_i=ni.width/ri,Ei=ni.height/si;return{width:_i,height:Ei,top:hi,right:mi+_i,bottom:hi+Ei,left:mi,x:mi,y:hi}}function yo(ii){var ti=ys(ii),ei=ii.offsetWidth,ni=ii.offsetHeight;return Math.abs(ti.width-ei)<=1&&(ei=ti.width),Math.abs(ti.height-ni)<=1&&(ni=ti.height),{x:ii.offsetLeft,y:ii.offsetTop,width:ei,height:ni}}function ba(ii,ti){var ei=ti.getRootNode&&ti.getRootNode();if(ii.contains(ti))return!0;if(ei&&jo(ei)){var ni=ti;do{if(ni&&ii.isSameNode(ni))return!0;ni=ni.parentNode||ni.host}while(ni)}return!1}function ns(ii){return $n(ii).getComputedStyle(ii)}function sc(ii){return["table","td","th"].indexOf(Yr(ii))>=0}function Qr(ii){return((vs(ii)?ii.ownerDocument:ii.document)||window.document).documentElement}function Rs(ii){return Yr(ii)==="html"?ii:ii.assignedSlot||ii.parentNode||(jo(ii)?ii.host:null)||Qr(ii)}function xu(ii){return!Wr(ii)||ns(ii).position==="fixed"?null:ii.offsetParent}function mh(ii){var ti=/firefox/i.test(qo()),ei=/Trident/i.test(qo());if(ei&&Wr(ii)){var ni=ns(ii);if(ni.position==="fixed")return null}var ri=Rs(ii);for(jo(ri)&&(ri=ri.host);Wr(ri)&&["html","body"].indexOf(Yr(ri))<0;){var si=ns(ri);if(si.transform!=="none"||si.perspective!=="none"||si.contain==="paint"||["transform","perspective"].indexOf(si.willChange)!==-1||ti&&si.willChange==="filter"||ti&&si.filter&&si.filter!=="none")return ri;ri=ri.parentNode}return null}function Ds(ii){for(var ti=$n(ii),ei=xu(ii);ei&&sc(ei)&&ns(ei).position==="static";)ei=xu(ei);return ei&&(Yr(ei)==="html"||Yr(ei)==="body"&&ns(ei).position==="static")?ti:ei||mh(ii)||ti}function _o(ii){return["top","bottom"].indexOf(ii)>=0?"x":"y"}function bo(ii,ti,ei){return As(ii,vo(ti,ei))}function Tu(ii,ti,ei){var ni=bo(ii,ti,ei);return ni>ei?ei:ni}function Ea(){return{top:0,right:0,bottom:0,left:0}}function wa(ii){return Object.assign({},Ea(),ii)}function xa(ii,ti){return ti.reduce(function(ei,ni){return ei[ni]=ii,ei},{})}var gh=function(ti,ei){return ti=typeof ti=="function"?ti(Object.assign({},ei.rects,{placement:ei.placement})):ti,wa(typeof ti!="number"?ti:xa(ti,Ns))};function vh(ii){var ti,ei=ii.state,ni=ii.name,ri=ii.options,si=ei.elements.arrow,ai=ei.modifiersData.popperOffsets,li=Gr(ei.placement),di=_o(li),mi=[Wn,Kn].indexOf(li)>=0,hi=mi?"height":"width";if(!(!si||!ai)){var _i=gh(ri.padding,ei),Ei=yo(si),Ai=di==="y"?Vn:Wn,ki=di==="y"?Xn:Kn,Ti=ei.rects.reference[hi]+ei.rects.reference[di]-ai[di]-ei.rects.popper[hi],Fi=ai[di]-ei.rects.reference[di],en=Ds(si),rn=en?di==="y"?en.clientHeight||0:en.clientWidth||0:0,ln=Ti/2-Fi/2,Yi=_i[Ai],on=rn-Ei[hi]-_i[ki],an=rn/2-Ei[hi]/2+ln,bn=bo(Yi,an,on),hn=di;ei.modifiersData[ni]=(ti={},ti[hn]=bn,ti.centerOffset=bn-an,ti)}}function yh(ii){var ti=ii.state,ei=ii.options,ni=ei.element,ri=ni===void 0?"[data-popper-arrow]":ni;ri!=null&&(typeof ri=="string"&&(ri=ti.elements.popper.querySelector(ri),!ri)||ba(ti.elements.popper,ri)&&(ti.elements.arrow=ri))}var Ka={name:"arrow",enabled:!0,phase:"main",fn:vh,effect:yh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _s(ii){return ii.split("-")[1]}var _h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bh(ii,ti){var ei=ii.x,ni=ii.y,ri=ti.devicePixelRatio||1;return{x:Is(ei*ri)/ri||0,y:Is(ni*ri)/ri||0}}function Su(ii){var ti,ei=ii.popper,ni=ii.popperRect,ri=ii.placement,si=ii.variation,ai=ii.offsets,li=ii.position,di=ii.gpuAcceleration,mi=ii.adaptive,hi=ii.roundOffsets,_i=ii.isFixed,Ei=ai.x,Ai=Ei===void 0?0:Ei,ki=ai.y,Ti=ki===void 0?0:ki,Fi=typeof hi=="function"?hi({x:Ai,y:Ti}):{x:Ai,y:Ti};Ai=Fi.x,Ti=Fi.y;var en=ai.hasOwnProperty("x"),rn=ai.hasOwnProperty("y"),ln=Wn,Yi=Vn,on=window;if(mi){var an=Ds(ei),bn="clientHeight",hn="clientWidth";if(an===$n(ei)&&(an=Qr(ei),ns(an).position!=="static"&&li==="absolute"&&(bn="scrollHeight",hn="scrollWidth")),an=an,ri===Vn||(ri===Wn||ri===Kn)&&si===Xs){Yi=Xn;var pn=_i&&an===on&&on.visualViewport?on.visualViewport.height:an[bn];Ti-=pn-ni.height,Ti*=di?1:-1}if(ri===Wn||(ri===Vn||ri===Xn)&&si===Xs){ln=Kn;var gn=_i&&an===on&&on.visualViewport?on.visualViewport.width:an[hn];Ai-=gn-ni.width,Ai*=di?1:-1}}var un=Object.assign({position:li},mi&&_h),vn=hi===!0?bh({x:Ai,y:Ti},$n(ei)):{x:Ai,y:Ti};if(Ai=vn.x,Ti=vn.y,di){var Tn;return Object.assign({},un,(Tn={},Tn[Yi]=rn?"0":"",Tn[ln]=en?"0":"",Tn.transform=(on.devicePixelRatio||1)<=1?"translate("+Ai+"px, "+Ti+"px)":"translate3d("+Ai+"px, "+Ti+"px, 0)",Tn))}return Object.assign({},un,(ti={},ti[Yi]=rn?Ti+"px":"",ti[ln]=en?Ai+"px":"",ti.transform="",ti))}function Eh(ii){var ti=ii.state,ei=ii.options,ni=ei.gpuAcceleration,ri=ni===void 0?!0:ni,si=ei.adaptive,ai=si===void 0?!0:si,li=ei.roundOffsets,di=li===void 0?!0:li,mi={placement:Gr(ti.placement),variation:_s(ti.placement),popper:ti.elements.popper,popperRect:ti.rects.popper,gpuAcceleration:ri,isFixed:ti.options.strategy==="fixed"};ti.modifiersData.popperOffsets!=null&&(ti.styles.popper=Object.assign({},ti.styles.popper,Su(Object.assign({},mi,{offsets:ti.modifiersData.popperOffsets,position:ti.options.strategy,adaptive:ai,roundOffsets:di})))),ti.modifiersData.arrow!=null&&(ti.styles.arrow=Object.assign({},ti.styles.arrow,Su(Object.assign({},mi,{offsets:ti.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:di})))),ti.attributes.popper=Object.assign({},ti.attributes.popper,{"data-popper-placement":ti.placement})}var Wo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Eh,data:{}};var Qa={passive:!0};function wh(ii){var ti=ii.state,ei=ii.instance,ni=ii.options,ri=ni.scroll,si=ri===void 0?!0:ri,ai=ni.resize,li=ai===void 0?!0:ai,di=$n(ti.elements.popper),mi=[].concat(ti.scrollParents.reference,ti.scrollParents.popper);return si&&mi.forEach(function(hi){hi.addEventListener("scroll",ei.update,Qa)}),li&&di.addEventListener("resize",ei.update,Qa),function(){si&&mi.forEach(function(hi){hi.removeEventListener("scroll",ei.update,Qa)}),li&&di.removeEventListener("resize",ei.update,Qa)}}var Uo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wh,data:{}};var xh={left:"right",right:"left",bottom:"top",top:"bottom"};function Yo(ii){return ii.replace(/left|right|bottom|top/g,function(ti){return xh[ti]})}var Th={start:"end",end:"start"};function Xa(ii){return ii.replace(/start|end/g,function(ti){return Th[ti]})}function Eo(ii){var ti=$n(ii),ei=ti.pageXOffset,ni=ti.pageYOffset;return{scrollLeft:ei,scrollTop:ni}}function wo(ii){return ys(Qr(ii)).left+Eo(ii).scrollLeft}function oc(ii,ti){var ei=$n(ii),ni=Qr(ii),ri=ei.visualViewport,si=ni.clientWidth,ai=ni.clientHeight,li=0,di=0;if(ri){si=ri.width,ai=ri.height;var mi=_a();(mi||!mi&&ti==="fixed")&&(li=ri.offsetLeft,di=ri.offsetTop)}return{width:si,height:ai,x:li+wo(ii),y:di}}function ac(ii){var ti,ei=Qr(ii),ni=Eo(ii),ri=(ti=ii.ownerDocument)==null?void 0:ti.body,si=As(ei.scrollWidth,ei.clientWidth,ri?ri.scrollWidth:0,ri?ri.clientWidth:0),ai=As(ei.scrollHeight,ei.clientHeight,ri?ri.scrollHeight:0,ri?ri.clientHeight:0),li=-ni.scrollLeft+wo(ii),di=-ni.scrollTop;return ns(ri||ei).direction==="rtl"&&(li+=As(ei.clientWidth,ri?ri.clientWidth:0)-si),{width:si,height:ai,x:li,y:di}}function xo(ii){var ti=ns(ii),ei=ti.overflow,ni=ti.overflowX,ri=ti.overflowY;return/auto|scroll|overlay|hidden/.test(ei+ri+ni)}function Ja(ii){return["html","body","#document"].indexOf(Yr(ii))>=0?ii.ownerDocument.body:Wr(ii)&&xo(ii)?ii:Ja(Rs(ii))}function Js(ii,ti){var ei;ti===void 0&&(ti=[]);var ni=Ja(ii),ri=ni===((ei=ii.ownerDocument)==null?void 0:ei.body),si=$n(ni),ai=ri?[si].concat(si.visualViewport||[],xo(ni)?ni:[]):ni,li=ti.concat(ai);return ri?li:li.concat(Js(Rs(ai)))}function Go(ii){return Object.assign({},ii,{left:ii.x,top:ii.y,right:ii.x+ii.width,bottom:ii.y+ii.height})}function Sh(ii,ti){var ei=ys(ii,!1,ti==="fixed");return ei.top=ei.top+ii.clientTop,ei.left=ei.left+ii.clientLeft,ei.bottom=ei.top+ii.clientHeight,ei.right=ei.left+ii.clientWidth,ei.width=ii.clientWidth,ei.height=ii.clientHeight,ei.x=ei.left,ei.y=ei.top,ei}function Cu(ii,ti,ei){return ti===va?Go(oc(ii,ei)):vs(ti)?Sh(ti,ei):Go(ac(Qr(ii)))}function Ch(ii){var ti=Js(Rs(ii)),ei=["absolute","fixed"].indexOf(ns(ii).position)>=0,ni=ei&&Wr(ii)?Ds(ii):ii;return vs(ni)?ti.filter(function(ri){return vs(ri)&&ba(ri,ni)&&Yr(ri)!=="body"}):[]}function lc(ii,ti,ei,ni){var ri=ti==="clippingParents"?Ch(ii):[].concat(ti),si=[].concat(ri,[ei]),ai=si[0],li=si.reduce(function(di,mi){var hi=Cu(ii,mi,ni);return di.top=As(hi.top,di.top),di.right=vo(hi.right,di.right),di.bottom=vo(hi.bottom,di.bottom),di.left=As(hi.left,di.left),di},Cu(ii,ai,ni));return li.width=li.right-li.left,li.height=li.bottom-li.top,li.x=li.left,li.y=li.top,li}function Ta(ii){var ti=ii.reference,ei=ii.element,ni=ii.placement,ri=ni?Gr(ni):null,si=ni?_s(ni):null,ai=ti.x+ti.width/2-ei.width/2,li=ti.y+ti.height/2-ei.height/2,di;switch(ri){case Vn:di={x:ai,y:ti.y-ei.height};break;case Xn:di={x:ai,y:ti.y+ti.height};break;case Kn:di={x:ti.x+ti.width,y:li};break;case Wn:di={x:ti.x-ei.width,y:li};break;default:di={x:ti.x,y:ti.y}}var mi=ri?_o(ri):null;if(mi!=null){var hi=mi==="y"?"height":"width";switch(si){case Ls:di[mi]=di[mi]-(ti[hi]/2-ei[hi]/2);break;case Xs:di[mi]=di[mi]+(ti[hi]/2-ei[hi]/2);break;default:}}return di}function rs(ii,ti){ti===void 0&&(ti={});var ei=ti,ni=ei.placement,ri=ni===void 0?ii.placement:ni,si=ei.strategy,ai=si===void 0?ii.strategy:si,li=ei.boundary,di=li===void 0?ic:li,mi=ei.rootBoundary,hi=mi===void 0?va:mi,_i=ei.elementContext,Ei=_i===void 0?go:_i,Ai=ei.altBoundary,ki=Ai===void 0?!1:Ai,Ti=ei.padding,Fi=Ti===void 0?0:Ti,en=wa(typeof Fi!="number"?Fi:xa(Fi,Ns)),rn=Ei===go?nc:go,ln=ii.rects.popper,Yi=ii.elements[ki?rn:Ei],on=lc(vs(Yi)?Yi:Yi.contextElement||Qr(ii.elements.popper),di,hi,ai),an=ys(ii.elements.reference),bn=Ta({reference:an,element:ln,strategy:"absolute",placement:ri}),hn=Go(Object.assign({},ln,bn)),pn=Ei===go?hn:an,gn={top:on.top-pn.top+en.top,bottom:pn.bottom-on.bottom+en.bottom,left:on.left-pn.left+en.left,right:pn.right-on.right+en.right},un=ii.modifiersData.offset;if(Ei===go&&un){var vn=un[ri];Object.keys(gn).forEach(function(Tn){var Ni=[Kn,Xn].indexOf(Tn)>=0?1:-1,Hi=[Vn,Xn].indexOf(Tn)>=0?"y":"x";gn[Tn]+=vn[Hi]*Ni})}return gn}function cc(ii,ti){ti===void 0&&(ti={});var ei=ti,ni=ei.placement,ri=ei.boundary,si=ei.rootBoundary,ai=ei.padding,li=ei.flipVariations,di=ei.allowedAutoPlacements,mi=di===void 0?ya:di,hi=_s(ni),_i=hi?li?Ga:Ga.filter(function(ki){return _s(ki)===hi}):Ns,Ei=_i.filter(function(ki){return mi.indexOf(ki)>=0});Ei.length===0&&(Ei=_i);var Ai=Ei.reduce(function(ki,Ti){return ki[Ti]=rs(ii,{placement:Ti,boundary:ri,rootBoundary:si,padding:ai})[Gr(Ti)],ki},{});return Object.keys(Ai).sort(function(ki,Ti){return Ai[ki]-Ai[Ti]})}function Ah(ii){if(Gr(ii)===ga)return[];var ti=Yo(ii);return[Xa(ii),ti,Xa(ti)]}function Dh(ii){var ti=ii.state,ei=ii.options,ni=ii.name;if(!ti.modifiersData[ni]._skip){for(var ri=ei.mainAxis,si=ri===void 0?!0:ri,ai=ei.altAxis,li=ai===void 0?!0:ai,di=ei.fallbackPlacements,mi=ei.padding,hi=ei.boundary,_i=ei.rootBoundary,Ei=ei.altBoundary,Ai=ei.flipVariations,ki=Ai===void 0?!0:Ai,Ti=ei.allowedAutoPlacements,Fi=ti.options.placement,en=Gr(Fi),rn=en===Fi,ln=di||(rn||!ki?[Yo(Fi)]:Ah(Fi)),Yi=[Fi].concat(ln).reduce(function(Vi,Ii){return Vi.concat(Gr(Ii)===ga?cc(ti,{placement:Ii,boundary:hi,rootBoundary:_i,padding:mi,flipVariations:ki,allowedAutoPlacements:Ti}):Ii)},[]),on=ti.rects.reference,an=ti.rects.popper,bn=new Map,hn=!0,pn=Yi[0],gn=0;gn=0,Hi=Ni?"width":"height",Pi=rs(ti,{placement:un,boundary:hi,rootBoundary:_i,altBoundary:Ei,padding:mi}),$i=Ni?Tn?Kn:Wn:Tn?Xn:Vn;on[Hi]>an[Hi]&&($i=Yo($i));var mn=Yo($i),tn=[];if(si&&tn.push(Pi[vn]<=0),li&&tn.push(Pi[$i]<=0,Pi[mn]<=0),tn.every(function(Vi){return Vi})){pn=un,hn=!1;break}bn.set(un,tn)}if(hn)for(var zi=ki?3:1,Li=function(Ii){var Sn=Yi.find(function(Yn){var Fn=bn.get(Yn);if(Fn)return Fn.slice(0,Ii).every(function(Bn){return Bn})});if(Sn)return pn=Sn,"break"},ji=zi;ji>0;ji--){var Ji=Li(ji);if(Ji==="break")break}ti.placement!==pn&&(ti.modifiersData[ni]._skip=!0,ti.placement=pn,ti.reset=!0)}}var Za={name:"flip",enabled:!0,phase:"main",fn:Dh,requiresIfExists:["offset"],data:{_skip:!1}};function Au(ii,ti,ei){return ei===void 0&&(ei={x:0,y:0}),{top:ii.top-ti.height-ei.y,right:ii.right-ti.width+ei.x,bottom:ii.bottom-ti.height+ei.y,left:ii.left-ti.width-ei.x}}function Du(ii){return[Vn,Kn,Xn,Wn].some(function(ti){return ii[ti]>=0})}function Oh(ii){var ti=ii.state,ei=ii.name,ni=ti.rects.reference,ri=ti.rects.popper,si=ti.modifiersData.preventOverflow,ai=rs(ti,{elementContext:"reference"}),li=rs(ti,{altBoundary:!0}),di=Au(ai,ni),mi=Au(li,ri,si),hi=Du(di),_i=Du(mi);ti.modifiersData[ei]={referenceClippingOffsets:di,popperEscapeOffsets:mi,isReferenceHidden:hi,hasPopperEscaped:_i},ti.attributes.popper=Object.assign({},ti.attributes.popper,{"data-popper-reference-hidden":hi,"data-popper-escaped":_i})}var el={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oh};function Lh(ii,ti,ei){var ni=Gr(ii),ri=[Wn,Vn].indexOf(ni)>=0?-1:1,si=typeof ei=="function"?ei(Object.assign({},ti,{placement:ii})):ei,ai=si[0],li=si[1];return ai=ai||0,li=(li||0)*ri,[Wn,Kn].indexOf(ni)>=0?{x:li,y:ai}:{x:ai,y:li}}function Mh(ii){var ti=ii.state,ei=ii.options,ni=ii.name,ri=ei.offset,si=ri===void 0?[0,0]:ri,ai=ya.reduce(function(hi,_i){return hi[_i]=Lh(_i,ti.rects,si),hi},{}),li=ai[ti.placement],di=li.x,mi=li.y;ti.modifiersData.popperOffsets!=null&&(ti.modifiersData.popperOffsets.x+=di,ti.modifiersData.popperOffsets.y+=mi),ti.modifiersData[ni]=ai}var tl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mh};function kh(ii){var ti=ii.state,ei=ii.name;ti.modifiersData[ei]=Ta({reference:ti.rects.reference,element:ti.rects.popper,strategy:"absolute",placement:ti.placement})}var Ko={name:"popperOffsets",enabled:!0,phase:"read",fn:kh,data:{}};function uc(ii){return ii==="x"?"y":"x"}function Nh(ii){var ti=ii.state,ei=ii.options,ni=ii.name,ri=ei.mainAxis,si=ri===void 0?!0:ri,ai=ei.altAxis,li=ai===void 0?!1:ai,di=ei.boundary,mi=ei.rootBoundary,hi=ei.altBoundary,_i=ei.padding,Ei=ei.tether,Ai=Ei===void 0?!0:Ei,ki=ei.tetherOffset,Ti=ki===void 0?0:ki,Fi=rs(ti,{boundary:di,rootBoundary:mi,padding:_i,altBoundary:hi}),en=Gr(ti.placement),rn=_s(ti.placement),ln=!rn,Yi=_o(en),on=uc(Yi),an=ti.modifiersData.popperOffsets,bn=ti.rects.reference,hn=ti.rects.popper,pn=typeof Ti=="function"?Ti(Object.assign({},ti.rects,{placement:ti.placement})):Ti,gn=typeof pn=="number"?{mainAxis:pn,altAxis:pn}:Object.assign({mainAxis:0,altAxis:0},pn),un=ti.modifiersData.offset?ti.modifiersData.offset[ti.placement]:null,vn={x:0,y:0};if(an){if(si){var Tn,Ni=Yi==="y"?Vn:Wn,Hi=Yi==="y"?Xn:Kn,Pi=Yi==="y"?"height":"width",$i=an[Yi],mn=$i+Fi[Ni],tn=$i-Fi[Hi],zi=Ai?-hn[Pi]/2:0,Li=rn===Ls?bn[Pi]:hn[Pi],ji=rn===Ls?-hn[Pi]:-bn[Pi],Ji=ti.elements.arrow,Vi=Ai&&Ji?yo(Ji):{width:0,height:0},Ii=ti.modifiersData["arrow#persistent"]?ti.modifiersData["arrow#persistent"].padding:Ea(),Sn=Ii[Ni],Yn=Ii[Hi],Fn=bo(0,bn[Pi],Vi[Pi]),Bn=ln?bn[Pi]/2-zi-Fn-Sn-gn.mainAxis:Li-Fn-Sn-gn.mainAxis,Gn=ln?-bn[Pi]/2+zi+Fn+Yn+gn.mainAxis:ji+Fn+Yn+gn.mainAxis,Qn=ti.elements.arrow&&Ds(ti.elements.arrow),Ts=Qn?Yi==="y"?Qn.clientTop||0:Qn.clientLeft||0:0,zn=(Tn=un==null?void 0:un[Yi])!=null?Tn:0,hs=$i+Bn-zn-Ts,ms=$i+Gn-zn,qs=bo(Ai?vo(mn,hs):mn,$i,Ai?As(tn,ms):tn);an[Yi]=qs,vn[Yi]=qs-$i}if(li){var qn,yn=Yi==="x"?Vn:Wn,Kr=Yi==="x"?Xn:Kn,as=an[on],Ws=on==="y"?"height":"width",po=as+Fi[yn],Us=as-Fi[Kr],Ms=[Vn,Wn].indexOf(en)!==-1,Ss=(qn=un==null?void 0:un[on])!=null?qn:0,Ro=Ms?po:as-bn[Ws]-hn[Ws]-Ss+gn.altAxis,Ys=Ms?as+bn[Ws]+hn[Ws]-Ss-gn.altAxis:Us,Po=Ai&&Ms?Tu(Ro,as,Ys):bo(Ai?Ro:po,as,Ai?Ys:Us);an[on]=Po,vn[on]=Po-as}ti.modifiersData[ni]=vn}}var il={name:"preventOverflow",enabled:!0,phase:"main",fn:Nh,requiresIfExists:["offset"]};function dc(ii){return{scrollLeft:ii.scrollLeft,scrollTop:ii.scrollTop}}function fc(ii){return ii===$n(ii)||!Wr(ii)?Eo(ii):dc(ii)}function Ih(ii){var ti=ii.getBoundingClientRect(),ei=Is(ti.width)/ii.offsetWidth||1,ni=Is(ti.height)/ii.offsetHeight||1;return ei!==1||ni!==1}function hc(ii,ti,ei){ei===void 0&&(ei=!1);var ni=Wr(ti),ri=Wr(ti)&&Ih(ti),si=Qr(ti),ai=ys(ii,ri,ei),li={scrollLeft:0,scrollTop:0},di={x:0,y:0};return(ni||!ni&&!ei)&&((Yr(ti)!=="body"||xo(si))&&(li=fc(ti)),Wr(ti)?(di=ys(ti,!0),di.x+=ti.clientLeft,di.y+=ti.clientTop):si&&(di.x=wo(si))),{x:ai.left+li.scrollLeft-di.x,y:ai.top+li.scrollTop-di.y,width:ai.width,height:ai.height}}function Rh(ii){var ti=new Map,ei=new Set,ni=[];ii.forEach(function(si){ti.set(si.name,si)});function ri(si){ei.add(si.name);var ai=[].concat(si.requires||[],si.requiresIfExists||[]);ai.forEach(function(li){if(!ei.has(li)){var di=ti.get(li);di&&ri(di)}}),ni.push(si)}return ii.forEach(function(si){ei.has(si.name)||ri(si)}),ni}function pc(ii){var ti=Rh(ii);return rc.reduce(function(ei,ni){return ei.concat(ti.filter(function(ri){return ri.phase===ni}))},[])}function mc(ii){var ti;return function(){return ti||(ti=new Promise(function(ei){Promise.resolve().then(function(){ti=void 0,ei(ii())})})),ti}}function gc(ii){var ti=ii.reduce(function(ei,ni){var ri=ei[ni.name];return ei[ni.name]=ri?Object.assign({},ri,ni,{options:Object.assign({},ri.options,ni.options),data:Object.assign({},ri.data,ni.data)}):ni,ei},{});return Object.keys(ti).map(function(ei){return ti[ei]})}var Ou={placement:"bottom",modifiers:[],strategy:"absolute"};function Lu(){for(var ii=arguments.length,ti=new Array(ii),ei=0;ei(ii&&window.CSS&&window.CSS.escape&&(ii=ii.replace(/#([^\s"#']+)/g,(ti,ei)=>`#${CSS.escape(ei)}`)),ii),Bh=ii=>ii==null?`${ii}`:Object.prototype.toString.call(ii).match(/\s([a-z]+)/i)[1].toLowerCase(),zh=ii=>{do ii+=Math.floor(Math.random()*Fh);while(document.getElementById(ii));return ii},jh=ii=>{if(!ii)return 0;let{transitionDuration:ti,transitionDelay:ei}=window.getComputedStyle(ii),ni=Number.parseFloat(ti),ri=Number.parseFloat(ei);return!ni&&!ri?0:(ti=ti.split(",")[0],ei=ei.split(",")[0],(Number.parseFloat(ti)+Number.parseFloat(ei))*$h)},ld=ii=>{ii.dispatchEvent(new Event(kc))},Ps=ii=>!ii||typeof ii!="object"?!1:(typeof ii.jquery!="undefined"&&(ii=ii[0]),typeof ii.nodeType!="undefined"),eo=ii=>Ps(ii)?ii.jquery?ii[0]:ii:typeof ii=="string"&&ii.length>0?document.querySelector(ad(ii)):null,ia=ii=>{if(!Ps(ii)||ii.getClientRects().length===0)return!1;let ti=getComputedStyle(ii).getPropertyValue("visibility")==="visible",ei=ii.closest("details:not([open])");if(!ei)return ti;if(ei!==ii){let ni=ii.closest("summary");if(ni&&ni.parentNode!==ei||ni===null)return!1}return ti},to=ii=>!ii||ii.nodeType!==Node.ELEMENT_NODE||ii.classList.contains("disabled")?!0:typeof ii.disabled!="undefined"?ii.disabled:ii.hasAttribute("disabled")&&ii.getAttribute("disabled")!=="false",cd=ii=>{if(!document.documentElement.attachShadow)return null;if(typeof ii.getRootNode=="function"){let ti=ii.getRootNode();return ti instanceof ShadowRoot?ti:null}return ii instanceof ShadowRoot?ii:ii.parentNode?cd(ii.parentNode):null},fl=()=>{},La=ii=>{ii.offsetHeight},ud=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,yc=[],Vh=ii=>{document.readyState==="loading"?(yc.length||document.addEventListener("DOMContentLoaded",()=>{for(let ti of yc)ti()}),yc.push(ii)):ii()},bs=()=>document.documentElement.dir==="rtl",ws=ii=>{Vh(()=>{let ti=ud();if(ti){let ei=ii.NAME,ni=ti.fn[ei];ti.fn[ei]=ii.jQueryInterface,ti.fn[ei].Constructor=ii,ti.fn[ei].noConflict=()=>(ti.fn[ei]=ni,ii.jQueryInterface)}})},ls=(ii,ti=[],ei=ii)=>typeof ii=="function"?ii(...ti):ei,dd=(ii,ti,ei=!0)=>{if(!ei){ls(ii);return}let ri=jh(ti)+5,si=!1,ai=({target:li})=>{li===ti&&(si=!0,ti.removeEventListener(kc,ai),ls(ii))};ti.addEventListener(kc,ai),setTimeout(()=>{si||ld(ti)},ri)},Pc=(ii,ti,ei,ni)=>{let ri=ii.length,si=ii.indexOf(ti);return si===-1?!ei&&ni?ii[ri-1]:ii[0]:(si+=ei?1:-1,ni&&(si=(si+ri)%ri),ii[Math.max(0,Math.min(si,ri-1))])},qh=/[^.]*(?=\..*)\.|.*/,Wh=/\..*/,Uh=/::\d+$/,_c={},Nu=1,fd={mouseenter:"mouseover",mouseleave:"mouseout"},Yh=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function hd(ii,ti){return ti&&`${ti}::${Nu++}`||ii.uidEvent||Nu++}function pd(ii){let ti=hd(ii);return ii.uidEvent=ti,_c[ti]=_c[ti]||{},_c[ti]}function Gh(ii,ti){return function ei(ni){return Hc(ni,{delegateTarget:ii}),ei.oneOff&&Mi.off(ii,ni.type,ti),ti.apply(ii,[ni])}}function Kh(ii,ti,ei){return function ni(ri){let si=ii.querySelectorAll(ti);for(let{target:ai}=ri;ai&&ai!==this;ai=ai.parentNode)for(let li of si)if(li===ai)return Hc(ri,{delegateTarget:ai}),ni.oneOff&&Mi.off(ii,ri.type,ti,ei),ei.apply(ai,[ri])}}function md(ii,ti,ei=null){return Object.values(ii).find(ni=>ni.callable===ti&&ni.delegationSelector===ei)}function gd(ii,ti,ei){let ni=typeof ti=="string",ri=ni?ei:ti||ei,si=vd(ii);return Yh.has(si)||(si=ii),[ni,ri,si]}function Iu(ii,ti,ei,ni,ri){if(typeof ti!="string"||!ii)return;let[si,ai,li]=gd(ti,ei,ni);ti in fd&&(ai=(ki=>function(Ti){if(!Ti.relatedTarget||Ti.relatedTarget!==Ti.delegateTarget&&!Ti.delegateTarget.contains(Ti.relatedTarget))return ki.call(this,Ti)})(ai));let di=pd(ii),mi=di[li]||(di[li]={}),hi=md(mi,ai,si?ei:null);if(hi){hi.oneOff=hi.oneOff&&ri;return}let _i=hd(ai,ti.replace(qh,"")),Ei=si?Kh(ii,ei,ai):Gh(ii,ai);Ei.delegationSelector=si?ei:null,Ei.callable=ai,Ei.oneOff=ri,Ei.uidEvent=_i,mi[_i]=Ei,ii.addEventListener(li,Ei,si)}function Nc(ii,ti,ei,ni,ri){let si=md(ti[ei],ni,ri);si&&(ii.removeEventListener(ei,si,!!ri),delete ti[ei][si.uidEvent])}function Qh(ii,ti,ei,ni){let ri=ti[ei]||{};for(let[si,ai]of Object.entries(ri))si.includes(ni)&&Nc(ii,ti,ei,ai.callable,ai.delegationSelector)}function vd(ii){return ii=ii.replace(Wh,""),fd[ii]||ii}var Mi={on(ii,ti,ei,ni){Iu(ii,ti,ei,ni,!1)},one(ii,ti,ei,ni){Iu(ii,ti,ei,ni,!0)},off(ii,ti,ei,ni){if(typeof ti!="string"||!ii)return;let[ri,si,ai]=gd(ti,ei,ni),li=ai!==ti,di=pd(ii),mi=di[ai]||{},hi=ti.startsWith(".");if(typeof si!="undefined"){if(!Object.keys(mi).length)return;Nc(ii,di,ai,si,ri?ei:null);return}if(hi)for(let _i of Object.keys(di))Qh(ii,di,_i,ti.slice(1));for(let[_i,Ei]of Object.entries(mi)){let Ai=_i.replace(Uh,"");(!li||ti.includes(Ai))&&Nc(ii,di,ai,Ei.callable,Ei.delegationSelector)}},trigger(ii,ti,ei){if(typeof ti!="string"||!ii)return null;let ni=ud(),ri=vd(ti),si=ti!==ri,ai=null,li=!0,di=!0,mi=!1;si&&ni&&(ai=ni.Event(ti,ei),ni(ii).trigger(ai),li=!ai.isPropagationStopped(),di=!ai.isImmediatePropagationStopped(),mi=ai.isDefaultPrevented());let hi=Hc(new Event(ti,{bubbles:li,cancelable:!0}),ei);return mi&&hi.preventDefault(),di&&ii.dispatchEvent(hi),hi.defaultPrevented&&ai&&ai.preventDefault(),hi}};function Hc(ii,ti={}){for(let[ei,ni]of Object.entries(ti))try{ii[ei]=ni}catch(ri){Object.defineProperty(ii,ei,{configurable:!0,get(){return ni}})}return ii}function Ru(ii){if(ii==="true")return!0;if(ii==="false")return!1;if(ii===Number(ii).toString())return Number(ii);if(ii===""||ii==="null")return null;if(typeof ii!="string")return ii;try{return JSON.parse(decodeURIComponent(ii))}catch(ti){return ii}}function bc(ii){return ii.replace(/[A-Z]/g,ti=>`-${ti.toLowerCase()}`)}var Hs={setDataAttribute(ii,ti,ei){ii.setAttribute(`data-bs-${bc(ti)}`,ei)},removeDataAttribute(ii,ti){ii.removeAttribute(`data-bs-${bc(ti)}`)},getDataAttributes(ii){if(!ii)return{};let ti={},ei=Object.keys(ii.dataset).filter(ni=>ni.startsWith("bs")&&!ni.startsWith("bsConfig"));for(let ni of ei){let ri=ni.replace(/^bs/,"");ri=ri.charAt(0).toLowerCase()+ri.slice(1,ri.length),ti[ri]=Ru(ii.dataset[ni])}return ti},getDataAttribute(ii,ti){return Ru(ii.getAttribute(`data-bs-${bc(ti)}`))}},Ao=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(ti){return ti=this._mergeConfigObj(ti),ti=this._configAfterMerge(ti),this._typeCheckConfig(ti),ti}_configAfterMerge(ti){return ti}_mergeConfigObj(ti,ei){let ni=Ps(ei)?Hs.getDataAttribute(ei,"config"):{};return Ui(Ui(Ui(Ui({},this.constructor.Default),typeof ni=="object"?ni:{}),Ps(ei)?Hs.getDataAttributes(ei):{}),typeof ti=="object"?ti:{})}_typeCheckConfig(ti,ei=this.constructor.DefaultType){for(let[ni,ri]of Object.entries(ei)){let si=ti[ni],ai=Ps(si)?"element":Bh(si);if(!new RegExp(ri).test(ai))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${ni}" provided type "${ai}" but expected type "${ri}".`)}}},Xh="5.3.3",ps=class extends Ao{constructor(ti,ei){super(),ti=eo(ti),ti&&(this._element=ti,this._config=this._getConfig(ei),vc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){vc.remove(this._element,this.constructor.DATA_KEY),Mi.off(this._element,this.constructor.EVENT_KEY);for(let ti of Object.getOwnPropertyNames(this))this[ti]=null}_queueCallback(ti,ei,ni=!0){dd(ti,ei,ni)}_getConfig(ti){return ti=this._mergeConfigObj(ti,this._element),ti=this._configAfterMerge(ti),this._typeCheckConfig(ti),ti}static getInstance(ti){return vc.get(eo(ti),this.DATA_KEY)}static getOrCreateInstance(ti,ei={}){return this.getInstance(ti)||new this(ti,typeof ei=="object"?ei:null)}static get VERSION(){return Xh}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(ti){return`${ti}${this.EVENT_KEY}`}},Ec=ii=>{let ti=ii.getAttribute("data-bs-target");if(!ti||ti==="#"){let ei=ii.getAttribute("href");if(!ei||!ei.includes("#")&&!ei.startsWith("."))return null;ei.includes("#")&&!ei.startsWith("#")&&(ei=`#${ei.split("#")[1]}`),ti=ei&&ei!=="#"?ei.trim():null}return ti?ti.split(",").map(ei=>ad(ei)).join(","):null},cn={find(ii,ti=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(ti,ii))},findOne(ii,ti=document.documentElement){return Element.prototype.querySelector.call(ti,ii)},children(ii,ti){return[].concat(...ii.children).filter(ei=>ei.matches(ti))},parents(ii,ti){let ei=[],ni=ii.parentNode.closest(ti);for(;ni;)ei.push(ni),ni=ni.parentNode.closest(ti);return ei},prev(ii,ti){let ei=ii.previousElementSibling;for(;ei;){if(ei.matches(ti))return[ei];ei=ei.previousElementSibling}return[]},next(ii,ti){let ei=ii.nextElementSibling;for(;ei;){if(ei.matches(ti))return[ei];ei=ei.nextElementSibling}return[]},focusableChildren(ii){let ti=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(ei=>`${ei}:not([tabindex^="-"])`).join(",");return this.find(ti,ii).filter(ei=>!to(ei)&&ia(ei))},getSelectorFromElement(ii){let ti=Ec(ii);return ti&&cn.findOne(ti)?ti:null},getElementFromSelector(ii){let ti=Ec(ii);return ti?cn.findOne(ti):null},getMultipleElementsFromSelector(ii){let ti=Ec(ii);return ti?cn.find(ti):[]}},bl=(ii,ti="hide")=>{let ei=`click.dismiss${ii.EVENT_KEY}`,ni=ii.NAME;Mi.on(document,ei,`[data-bs-dismiss="${ni}"]`,function(ri){if(["A","AREA"].includes(this.tagName)&&ri.preventDefault(),to(this))return;let si=cn.getElementFromSelector(this)||this.closest(`.${ni}`);ii.getOrCreateInstance(si)[ti]()})},Jh="alert",Zh="bs.alert",yd=`.${Zh}`,ep=`close${yd}`,tp=`closed${yd}`,ip="fade",np="show",hl=class ii extends ps{static get NAME(){return Jh}close(){if(Mi.trigger(this._element,ep).defaultPrevented)return;this._element.classList.remove(np);let ei=this._element.classList.contains(ip);this._queueCallback(()=>this._destroyElement(),this._element,ei)}_destroyElement(){this._element.remove(),Mi.trigger(this._element,tp),this.dispose()}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this);if(typeof ti=="string"){if(ei[ti]===void 0||ti.startsWith("_")||ti==="constructor")throw new TypeError(`No method named "${ti}"`);ei[ti](this)}})}};bl(hl,"close");ws(hl);var rp="button",sp="bs.button",op=`.${sp}`,ap=".data-api",lp="active",Pu='[data-bs-toggle="button"]',cp=`click${op}${ap}`,pl=class ii extends ps{static get NAME(){return rp}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(lp))}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this);ti==="toggle"&&ei[ti]()})}};Mi.on(document,cp,Pu,ii=>{ii.preventDefault();let ti=ii.target.closest(Pu);pl.getOrCreateInstance(ti).toggle()});ws(pl);var up="swipe",na=".bs.swipe",dp=`touchstart${na}`,fp=`touchmove${na}`,hp=`touchend${na}`,pp=`pointerdown${na}`,mp=`pointerup${na}`,gp="touch",vp="pen",yp="pointer-event",_p=40,bp={endCallback:null,leftCallback:null,rightCallback:null},Ep={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},ml=class ii extends Ao{constructor(ti,ei){super(),this._element=ti,!(!ti||!ii.isSupported())&&(this._config=this._getConfig(ei),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return bp}static get DefaultType(){return Ep}static get NAME(){return up}dispose(){Mi.off(this._element,na)}_start(ti){if(!this._supportPointerEvents){this._deltaX=ti.touches[0].clientX;return}this._eventIsPointerPenTouch(ti)&&(this._deltaX=ti.clientX)}_end(ti){this._eventIsPointerPenTouch(ti)&&(this._deltaX=ti.clientX-this._deltaX),this._handleSwipe(),ls(this._config.endCallback)}_move(ti){this._deltaX=ti.touches&&ti.touches.length>1?0:ti.touches[0].clientX-this._deltaX}_handleSwipe(){let ti=Math.abs(this._deltaX);if(ti<=_p)return;let ei=ti/this._deltaX;this._deltaX=0,ei&&ls(ei>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Mi.on(this._element,pp,ti=>this._start(ti)),Mi.on(this._element,mp,ti=>this._end(ti)),this._element.classList.add(yp)):(Mi.on(this._element,dp,ti=>this._start(ti)),Mi.on(this._element,fp,ti=>this._move(ti)),Mi.on(this._element,hp,ti=>this._end(ti)))}_eventIsPointerPenTouch(ti){return this._supportPointerEvents&&(ti.pointerType===vp||ti.pointerType===gp)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},wp="carousel",xp="bs.carousel",so=`.${xp}`,_d=".data-api",Tp="ArrowLeft",Sp="ArrowRight",Cp=500,Ca="next",Qo="prev",Jo="left",ul="right",Ap=`slide${so}`,wc=`slid${so}`,Dp=`keydown${so}`,Op=`mouseenter${so}`,Lp=`mouseleave${so}`,Mp=`dragstart${so}`,kp=`load${so}${_d}`,Np=`click${so}${_d}`,bd="carousel",rl="active",Ip="slide",Rp="carousel-item-end",Pp="carousel-item-start",Hp="carousel-item-next",Fp="carousel-item-prev",Ed=".active",wd=".carousel-item",$p=Ed+wd,Bp=".carousel-item img",zp=".carousel-indicators",jp="[data-bs-slide], [data-bs-slide-to]",Vp='[data-bs-ride="carousel"]',qp={[Tp]:ul,[Sp]:Jo},Wp={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Up={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},Da=class ii extends ps{constructor(ti,ei){super(ti,ei),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=cn.findOne(zp,this._element),this._addEventListeners(),this._config.ride===bd&&this.cycle()}static get Default(){return Wp}static get DefaultType(){return Up}static get NAME(){return wp}next(){this._slide(Ca)}nextWhenVisible(){!document.hidden&&ia(this._element)&&this.next()}prev(){this._slide(Qo)}pause(){this._isSliding&&ld(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Mi.one(this._element,wc,()=>this.cycle());return}this.cycle()}}to(ti){let ei=this._getItems();if(ti>ei.length-1||ti<0)return;if(this._isSliding){Mi.one(this._element,wc,()=>this.to(ti));return}let ni=this._getItemIndex(this._getActive());if(ni===ti)return;let ri=ti>ni?Ca:Qo;this._slide(ri,ei[ti])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(ti){return ti.defaultInterval=ti.interval,ti}_addEventListeners(){this._config.keyboard&&Mi.on(this._element,Dp,ti=>this._keydown(ti)),this._config.pause==="hover"&&(Mi.on(this._element,Op,()=>this.pause()),Mi.on(this._element,Lp,()=>this._maybeEnableCycle())),this._config.touch&&ml.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let ni of cn.find(Bp,this._element))Mi.on(ni,Mp,ri=>ri.preventDefault());let ei={leftCallback:()=>this._slide(this._directionToOrder(Jo)),rightCallback:()=>this._slide(this._directionToOrder(ul)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Cp+this._config.interval))}};this._swipeHelper=new ml(this._element,ei)}_keydown(ti){if(/input|textarea/i.test(ti.target.tagName))return;let ei=qp[ti.key];ei&&(ti.preventDefault(),this._slide(this._directionToOrder(ei)))}_getItemIndex(ti){return this._getItems().indexOf(ti)}_setActiveIndicatorElement(ti){if(!this._indicatorsElement)return;let ei=cn.findOne(Ed,this._indicatorsElement);ei.classList.remove(rl),ei.removeAttribute("aria-current");let ni=cn.findOne(`[data-bs-slide-to="${ti}"]`,this._indicatorsElement);ni&&(ni.classList.add(rl),ni.setAttribute("aria-current","true"))}_updateInterval(){let ti=this._activeElement||this._getActive();if(!ti)return;let ei=Number.parseInt(ti.getAttribute("data-bs-interval"),10);this._config.interval=ei||this._config.defaultInterval}_slide(ti,ei=null){if(this._isSliding)return;let ni=this._getActive(),ri=ti===Ca,si=ei||Pc(this._getItems(),ni,ri,this._config.wrap);if(si===ni)return;let ai=this._getItemIndex(si),li=Ai=>Mi.trigger(this._element,Ai,{relatedTarget:si,direction:this._orderToDirection(ti),from:this._getItemIndex(ni),to:ai});if(li(Ap).defaultPrevented||!ni||!si)return;let mi=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(ai),this._activeElement=si;let hi=ri?Pp:Rp,_i=ri?Hp:Fp;si.classList.add(_i),La(si),ni.classList.add(hi),si.classList.add(hi);let Ei=()=>{si.classList.remove(hi,_i),si.classList.add(rl),ni.classList.remove(rl,_i,hi),this._isSliding=!1,li(wc)};this._queueCallback(Ei,ni,this._isAnimated()),mi&&this.cycle()}_isAnimated(){return this._element.classList.contains(Ip)}_getActive(){return cn.findOne($p,this._element)}_getItems(){return cn.find(wd,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(ti){return bs()?ti===Jo?Qo:Ca:ti===Jo?Ca:Qo}_orderToDirection(ti){return bs()?ti===Qo?Jo:ul:ti===Qo?ul:Jo}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this,ti);if(typeof ti=="number"){ei.to(ti);return}if(typeof ti=="string"){if(ei[ti]===void 0||ti.startsWith("_")||ti==="constructor")throw new TypeError(`No method named "${ti}"`);ei[ti]()}})}};Mi.on(document,Np,jp,function(ii){let ti=cn.getElementFromSelector(this);if(!ti||!ti.classList.contains(bd))return;ii.preventDefault();let ei=Da.getOrCreateInstance(ti),ni=this.getAttribute("data-bs-slide-to");if(ni){ei.to(ni),ei._maybeEnableCycle();return}if(Hs.getDataAttribute(this,"slide")==="next"){ei.next(),ei._maybeEnableCycle();return}ei.prev(),ei._maybeEnableCycle()});Mi.on(window,kp,()=>{let ii=cn.find(Vp);for(let ti of ii)Da.getOrCreateInstance(ti)});ws(Da);var Yp="collapse",Gp="bs.collapse",Ma=`.${Gp}`,Kp=".data-api",Qp=`show${Ma}`,Xp=`shown${Ma}`,Jp=`hide${Ma}`,Zp=`hidden${Ma}`,em=`click${Ma}${Kp}`,xc="show",ea="collapse",sl="collapsing",tm="collapsed",im=`:scope .${ea} .${ea}`,nm="collapse-horizontal",rm="width",sm="height",om=".collapse.show, .collapse.collapsing",Ic='[data-bs-toggle="collapse"]',am={parent:null,toggle:!0},lm={parent:"(null|element)",toggle:"boolean"},io=class ii extends ps{constructor(ti,ei){super(ti,ei),this._isTransitioning=!1,this._triggerArray=[];let ni=cn.find(Ic);for(let ri of ni){let si=cn.getSelectorFromElement(ri),ai=cn.find(si).filter(li=>li===this._element);si!==null&&ai.length&&this._triggerArray.push(ri)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return am}static get DefaultType(){return lm}static get NAME(){return Yp}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let ti=[];if(this._config.parent&&(ti=this._getFirstLevelChildren(om).filter(li=>li!==this._element).map(li=>ii.getOrCreateInstance(li,{toggle:!1}))),ti.length&&ti[0]._isTransitioning||Mi.trigger(this._element,Qp).defaultPrevented)return;for(let li of ti)li.hide();let ni=this._getDimension();this._element.classList.remove(ea),this._element.classList.add(sl),this._element.style[ni]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let ri=()=>{this._isTransitioning=!1,this._element.classList.remove(sl),this._element.classList.add(ea,xc),this._element.style[ni]="",Mi.trigger(this._element,Xp)},ai=`scroll${ni[0].toUpperCase()+ni.slice(1)}`;this._queueCallback(ri,this._element,!0),this._element.style[ni]=`${this._element[ai]}px`}hide(){if(this._isTransitioning||!this._isShown()||Mi.trigger(this._element,Jp).defaultPrevented)return;let ei=this._getDimension();this._element.style[ei]=`${this._element.getBoundingClientRect()[ei]}px`,La(this._element),this._element.classList.add(sl),this._element.classList.remove(ea,xc);for(let ri of this._triggerArray){let si=cn.getElementFromSelector(ri);si&&!this._isShown(si)&&this._addAriaAndCollapsedClass([ri],!1)}this._isTransitioning=!0;let ni=()=>{this._isTransitioning=!1,this._element.classList.remove(sl),this._element.classList.add(ea),Mi.trigger(this._element,Zp)};this._element.style[ei]="",this._queueCallback(ni,this._element,!0)}_isShown(ti=this._element){return ti.classList.contains(xc)}_configAfterMerge(ti){return ti.toggle=!!ti.toggle,ti.parent=eo(ti.parent),ti}_getDimension(){return this._element.classList.contains(nm)?rm:sm}_initializeChildren(){if(!this._config.parent)return;let ti=this._getFirstLevelChildren(Ic);for(let ei of ti){let ni=cn.getElementFromSelector(ei);ni&&this._addAriaAndCollapsedClass([ei],this._isShown(ni))}}_getFirstLevelChildren(ti){let ei=cn.find(im,this._config.parent);return cn.find(ti,this._config.parent).filter(ni=>!ei.includes(ni))}_addAriaAndCollapsedClass(ti,ei){if(ti.length)for(let ni of ti)ni.classList.toggle(tm,!ei),ni.setAttribute("aria-expanded",ei)}static jQueryInterface(ti){let ei={};return typeof ti=="string"&&/show|hide/.test(ti)&&(ei.toggle=!1),this.each(function(){let ni=ii.getOrCreateInstance(this,ei);if(typeof ti=="string"){if(typeof ni[ti]=="undefined")throw new TypeError(`No method named "${ti}"`);ni[ti]()}})}};Mi.on(document,em,Ic,function(ii){(ii.target.tagName==="A"||ii.delegateTarget&&ii.delegateTarget.tagName==="A")&&ii.preventDefault();for(let ti of cn.getMultipleElementsFromSelector(this))io.getOrCreateInstance(ti,{toggle:!1}).toggle()});ws(io);var Hu="dropdown",cm="bs.dropdown",Oo=`.${cm}`,Fc=".data-api",um="Escape",Fu="Tab",dm="ArrowUp",$u="ArrowDown",fm=2,hm=`hide${Oo}`,pm=`hidden${Oo}`,mm=`show${Oo}`,gm=`shown${Oo}`,xd=`click${Oo}${Fc}`,Td=`keydown${Oo}${Fc}`,vm=`keyup${Oo}${Fc}`,Zo="show",ym="dropup",_m="dropend",bm="dropstart",Em="dropup-center",wm="dropdown-center",So='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',xm=`${So}.${Zo}`,dl=".dropdown-menu",Tm=".navbar",Sm=".navbar-nav",Cm=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Am=bs()?"top-end":"top-start",Dm=bs()?"top-start":"top-end",Om=bs()?"bottom-end":"bottom-start",Lm=bs()?"bottom-start":"bottom-end",Mm=bs()?"left-start":"right-start",km=bs()?"right-start":"left-start",Nm="top",Im="bottom",Rm={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Pm={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},no=class ii extends ps{constructor(ti,ei){super(ti,ei),this._popper=null,this._parent=this._element.parentNode,this._menu=cn.next(this._element,dl)[0]||cn.prev(this._element,dl)[0]||cn.findOne(dl,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Rm}static get DefaultType(){return Pm}static get NAME(){return Hu}toggle(){return this._isShown()?this.hide():this.show()}show(){if(to(this._element)||this._isShown())return;let ti={relatedTarget:this._element};if(!Mi.trigger(this._element,mm,ti).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Sm))for(let ni of[].concat(...document.body.children))Mi.on(ni,"mouseover",fl);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Zo),this._element.classList.add(Zo),Mi.trigger(this._element,gm,ti)}}hide(){if(to(this._element)||!this._isShown())return;let ti={relatedTarget:this._element};this._completeHide(ti)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(ti){if(!Mi.trigger(this._element,hm,ti).defaultPrevented){if("ontouchstart"in document.documentElement)for(let ni of[].concat(...document.body.children))Mi.off(ni,"mouseover",fl);this._popper&&this._popper.destroy(),this._menu.classList.remove(Zo),this._element.classList.remove(Zo),this._element.setAttribute("aria-expanded","false"),Hs.removeDataAttribute(this._menu,"popper"),Mi.trigger(this._element,pm,ti)}}_getConfig(ti){if(ti=super._getConfig(ti),typeof ti.reference=="object"&&!Ps(ti.reference)&&typeof ti.reference.getBoundingClientRect!="function")throw new TypeError(`${Hu.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return ti}_createPopper(){if(typeof nl=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let ti=this._element;this._config.reference==="parent"?ti=this._parent:Ps(this._config.reference)?ti=eo(this._config.reference):typeof this._config.reference=="object"&&(ti=this._config.reference);let ei=this._getPopperConfig();this._popper=Sa(ti,this._menu,ei)}_isShown(){return this._menu.classList.contains(Zo)}_getPlacement(){let ti=this._parent;if(ti.classList.contains(_m))return Mm;if(ti.classList.contains(bm))return km;if(ti.classList.contains(Em))return Nm;if(ti.classList.contains(wm))return Im;let ei=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return ti.classList.contains(ym)?ei?Dm:Am:ei?Lm:Om}_detectNavbar(){return this._element.closest(Tm)!==null}_getOffset(){let{offset:ti}=this._config;return typeof ti=="string"?ti.split(",").map(ei=>Number.parseInt(ei,10)):typeof ti=="function"?ei=>ti(ei,this._element):ti}_getPopperConfig(){let ti={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Hs.setDataAttribute(this._menu,"popper","static"),ti.modifiers=[{name:"applyStyles",enabled:!1}]),Ui(Ui({},ti),ls(this._config.popperConfig,[ti]))}_selectMenuItem({key:ti,target:ei}){let ni=cn.find(Cm,this._menu).filter(ri=>ia(ri));ni.length&&Pc(ni,ei,ti===$u,!ni.includes(ei)).focus()}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this,ti);if(typeof ti=="string"){if(typeof ei[ti]=="undefined")throw new TypeError(`No method named "${ti}"`);ei[ti]()}})}static clearMenus(ti){if(ti.button===fm||ti.type==="keyup"&&ti.key!==Fu)return;let ei=cn.find(xm);for(let ni of ei){let ri=ii.getInstance(ni);if(!ri||ri._config.autoClose===!1)continue;let si=ti.composedPath(),ai=si.includes(ri._menu);if(si.includes(ri._element)||ri._config.autoClose==="inside"&&!ai||ri._config.autoClose==="outside"&&ai||ri._menu.contains(ti.target)&&(ti.type==="keyup"&&ti.key===Fu||/input|select|option|textarea|form/i.test(ti.target.tagName)))continue;let li={relatedTarget:ri._element};ti.type==="click"&&(li.clickEvent=ti),ri._completeHide(li)}}static dataApiKeydownHandler(ti){let ei=/input|textarea/i.test(ti.target.tagName),ni=ti.key===um,ri=[dm,$u].includes(ti.key);if(!ri&&!ni||ei&&!ni)return;ti.preventDefault();let si=this.matches(So)?this:cn.prev(this,So)[0]||cn.next(this,So)[0]||cn.findOne(So,ti.delegateTarget.parentNode),ai=ii.getOrCreateInstance(si);if(ri){ti.stopPropagation(),ai.show(),ai._selectMenuItem(ti);return}ai._isShown()&&(ti.stopPropagation(),ai.hide(),si.focus())}};Mi.on(document,Td,So,no.dataApiKeydownHandler);Mi.on(document,Td,dl,no.dataApiKeydownHandler);Mi.on(document,xd,no.clearMenus);Mi.on(document,vm,no.clearMenus);Mi.on(document,xd,So,function(ii){ii.preventDefault(),no.getOrCreateInstance(this).toggle()});ws(no);var Sd="backdrop",Hm="fade",Bu="show",zu=`mousedown.bs.${Sd}`,Fm={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},$m={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},gl=class extends Ao{constructor(ti){super(),this._config=this._getConfig(ti),this._isAppended=!1,this._element=null}static get Default(){return Fm}static get DefaultType(){return $m}static get NAME(){return Sd}show(ti){if(!this._config.isVisible){ls(ti);return}this._append();let ei=this._getElement();this._config.isAnimated&&La(ei),ei.classList.add(Bu),this._emulateAnimation(()=>{ls(ti)})}hide(ti){if(!this._config.isVisible){ls(ti);return}this._getElement().classList.remove(Bu),this._emulateAnimation(()=>{this.dispose(),ls(ti)})}dispose(){this._isAppended&&(Mi.off(this._element,zu),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let ti=document.createElement("div");ti.className=this._config.className,this._config.isAnimated&&ti.classList.add(Hm),this._element=ti}return this._element}_configAfterMerge(ti){return ti.rootElement=eo(ti.rootElement),ti}_append(){if(this._isAppended)return;let ti=this._getElement();this._config.rootElement.append(ti),Mi.on(ti,zu,()=>{ls(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(ti){dd(ti,this._getElement(),this._config.isAnimated)}},Bm="focustrap",zm="bs.focustrap",vl=`.${zm}`,jm=`focusin${vl}`,Vm=`keydown.tab${vl}`,qm="Tab",Wm="forward",ju="backward",Um={autofocus:!0,trapElement:null},Ym={autofocus:"boolean",trapElement:"element"},yl=class extends Ao{constructor(ti){super(),this._config=this._getConfig(ti),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Um}static get DefaultType(){return Ym}static get NAME(){return Bm}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Mi.off(document,vl),Mi.on(document,jm,ti=>this._handleFocusin(ti)),Mi.on(document,Vm,ti=>this._handleKeydown(ti)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Mi.off(document,vl))}_handleFocusin(ti){let{trapElement:ei}=this._config;if(ti.target===document||ti.target===ei||ei.contains(ti.target))return;let ni=cn.focusableChildren(ei);ni.length===0?ei.focus():this._lastTabNavDirection===ju?ni[ni.length-1].focus():ni[0].focus()}_handleKeydown(ti){ti.key===qm&&(this._lastTabNavDirection=ti.shiftKey?ju:Wm)}},Vu=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",qu=".sticky-top",ol="padding-right",Wu="margin-right",Oa=class{constructor(){this._element=document.body}getWidth(){let ti=document.documentElement.clientWidth;return Math.abs(window.innerWidth-ti)}hide(){let ti=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ol,ei=>ei+ti),this._setElementAttributes(Vu,ol,ei=>ei+ti),this._setElementAttributes(qu,Wu,ei=>ei-ti)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ol),this._resetElementAttributes(Vu,ol),this._resetElementAttributes(qu,Wu)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(ti,ei,ni){let ri=this.getWidth(),si=ai=>{if(ai!==this._element&&window.innerWidth>ai.clientWidth+ri)return;this._saveInitialAttribute(ai,ei);let li=window.getComputedStyle(ai).getPropertyValue(ei);ai.style.setProperty(ei,`${ni(Number.parseFloat(li))}px`)};this._applyManipulationCallback(ti,si)}_saveInitialAttribute(ti,ei){let ni=ti.style.getPropertyValue(ei);ni&&Hs.setDataAttribute(ti,ei,ni)}_resetElementAttributes(ti,ei){let ni=ri=>{let si=Hs.getDataAttribute(ri,ei);if(si===null){ri.style.removeProperty(ei);return}Hs.removeDataAttribute(ri,ei),ri.style.setProperty(ei,si)};this._applyManipulationCallback(ti,ni)}_applyManipulationCallback(ti,ei){if(Ps(ti)){ei(ti);return}for(let ni of cn.find(ti,this._element))ei(ni)}},Gm="modal",Km="bs.modal",Es=`.${Km}`,Qm=".data-api",Xm="Escape",Jm=`hide${Es}`,Zm=`hidePrevented${Es}`,Cd=`hidden${Es}`,Ad=`show${Es}`,eg=`shown${Es}`,tg=`resize${Es}`,ig=`click.dismiss${Es}`,ng=`mousedown.dismiss${Es}`,rg=`keydown.dismiss${Es}`,sg=`click${Es}${Qm}`,Uu="modal-open",og="fade",Yu="show",Tc="modal-static",ag=".modal.show",lg=".modal-dialog",cg=".modal-body",ug='[data-bs-toggle="modal"]',dg={backdrop:!0,focus:!0,keyboard:!0},fg={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},Fs=class ii extends ps{constructor(ti,ei){super(ti,ei),this._dialog=cn.findOne(lg,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Oa,this._addEventListeners()}static get Default(){return dg}static get DefaultType(){return fg}static get NAME(){return Gm}toggle(ti){return this._isShown?this.hide():this.show(ti)}show(ti){this._isShown||this._isTransitioning||Mi.trigger(this._element,Ad,{relatedTarget:ti}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Uu),this._adjustDialog(),this._backdrop.show(()=>this._showElement(ti)))}hide(){!this._isShown||this._isTransitioning||Mi.trigger(this._element,Jm).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Yu),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Mi.off(window,Es),Mi.off(this._dialog,Es),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new gl({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new yl({trapElement:this._element})}_showElement(ti){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;let ei=cn.findOne(cg,this._dialog);ei&&(ei.scrollTop=0),La(this._element),this._element.classList.add(Yu);let ni=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Mi.trigger(this._element,eg,{relatedTarget:ti})};this._queueCallback(ni,this._dialog,this._isAnimated())}_addEventListeners(){Mi.on(this._element,rg,ti=>{if(ti.key===Xm){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Mi.on(window,tg,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Mi.on(this._element,ng,ti=>{Mi.one(this._element,ig,ei=>{if(!(this._element!==ti.target||this._element!==ei.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Uu),this._resetAdjustments(),this._scrollBar.reset(),Mi.trigger(this._element,Cd)})}_isAnimated(){return this._element.classList.contains(og)}_triggerBackdropTransition(){if(Mi.trigger(this._element,Zm).defaultPrevented)return;let ei=this._element.scrollHeight>document.documentElement.clientHeight,ni=this._element.style.overflowY;ni==="hidden"||this._element.classList.contains(Tc)||(ei||(this._element.style.overflowY="hidden"),this._element.classList.add(Tc),this._queueCallback(()=>{this._element.classList.remove(Tc),this._queueCallback(()=>{this._element.style.overflowY=ni},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let ti=this._element.scrollHeight>document.documentElement.clientHeight,ei=this._scrollBar.getWidth(),ni=ei>0;if(ni&&!ti){let ri=bs()?"paddingLeft":"paddingRight";this._element.style[ri]=`${ei}px`}if(!ni&&ti){let ri=bs()?"paddingRight":"paddingLeft";this._element.style[ri]=`${ei}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(ti,ei){return this.each(function(){let ni=ii.getOrCreateInstance(this,ti);if(typeof ti=="string"){if(typeof ni[ti]=="undefined")throw new TypeError(`No method named "${ti}"`);ni[ti](ei)}})}};Mi.on(document,sg,ug,function(ii){let ti=cn.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&ii.preventDefault(),Mi.one(ti,Ad,ri=>{ri.defaultPrevented||Mi.one(ti,Cd,()=>{ia(this)&&this.focus()})});let ei=cn.findOne(ag);ei&&Fs.getInstance(ei).hide(),Fs.getOrCreateInstance(ti).toggle(this)});bl(Fs);ws(Fs);var hg="offcanvas",pg="bs.offcanvas",zs=`.${pg}`,Dd=".data-api",mg=`load${zs}${Dd}`,gg="Escape",Gu="show",Ku="showing",Qu="hiding",vg="offcanvas-backdrop",Od=".offcanvas.show",yg=`show${zs}`,_g=`shown${zs}`,bg=`hide${zs}`,Xu=`hidePrevented${zs}`,Ld=`hidden${zs}`,Eg=`resize${zs}`,wg=`click${zs}${Dd}`,xg=`keydown.dismiss${zs}`,Tg='[data-bs-toggle="offcanvas"]',Sg={backdrop:!0,keyboard:!0,scroll:!1},Cg={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},ro=class ii extends ps{constructor(ti,ei){super(ti,ei),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Sg}static get DefaultType(){return Cg}static get NAME(){return hg}toggle(ti){return this._isShown?this.hide():this.show(ti)}show(ti){if(this._isShown||Mi.trigger(this._element,yg,{relatedTarget:ti}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Oa().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ku);let ni=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Gu),this._element.classList.remove(Ku),Mi.trigger(this._element,_g,{relatedTarget:ti})};this._queueCallback(ni,this._element,!0)}hide(){if(!this._isShown||Mi.trigger(this._element,bg).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Qu),this._backdrop.hide();let ei=()=>{this._element.classList.remove(Gu,Qu),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Oa().reset(),Mi.trigger(this._element,Ld)};this._queueCallback(ei,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let ti=()=>{if(this._config.backdrop==="static"){Mi.trigger(this._element,Xu);return}this.hide()},ei=!!this._config.backdrop;return new gl({className:vg,isVisible:ei,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:ei?ti:null})}_initializeFocusTrap(){return new yl({trapElement:this._element})}_addEventListeners(){Mi.on(this._element,xg,ti=>{if(ti.key===gg){if(this._config.keyboard){this.hide();return}Mi.trigger(this._element,Xu)}})}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this,ti);if(typeof ti=="string"){if(ei[ti]===void 0||ti.startsWith("_")||ti==="constructor")throw new TypeError(`No method named "${ti}"`);ei[ti](this)}})}};Mi.on(document,wg,Tg,function(ii){let ti=cn.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&ii.preventDefault(),to(this))return;Mi.one(ti,Ld,()=>{ia(this)&&this.focus()});let ei=cn.findOne(Od);ei&&ei!==ti&&ro.getInstance(ei).hide(),ro.getOrCreateInstance(ti).toggle(this)});Mi.on(window,mg,()=>{for(let ii of cn.find(Od))ro.getOrCreateInstance(ii).show()});Mi.on(window,Eg,()=>{for(let ii of cn.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(ii).position!=="fixed"&&ro.getOrCreateInstance(ii).hide()});bl(ro);ws(ro);var Ag=/^aria-[\w-]*$/i,Md={"*":["class","dir","id","lang","role",Ag],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Dg=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Og=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Lg=(ii,ti)=>{let ei=ii.nodeName.toLowerCase();return ti.includes(ei)?Dg.has(ei)?!!Og.test(ii.nodeValue):!0:ti.filter(ni=>ni instanceof RegExp).some(ni=>ni.test(ei))};function Mg(ii,ti,ei){if(!ii.length)return ii;if(ei&&typeof ei=="function")return ei(ii);let ri=new window.DOMParser().parseFromString(ii,"text/html"),si=[].concat(...ri.body.querySelectorAll("*"));for(let ai of si){let li=ai.nodeName.toLowerCase();if(!Object.keys(ti).includes(li)){ai.remove();continue}let di=[].concat(...ai.attributes),mi=[].concat(ti["*"]||[],ti[li]||[]);for(let hi of di)Lg(hi,mi)||ai.removeAttribute(hi.nodeName)}return ri.body.innerHTML}var kg="TemplateFactory",Ng={allowList:Md,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Ig={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Rg={entry:"(string|element|function|null)",selector:"(string|element)"},Rc=class extends Ao{constructor(ti){super(),this._config=this._getConfig(ti)}static get Default(){return Ng}static get DefaultType(){return Ig}static get NAME(){return kg}getContent(){return Object.values(this._config.content).map(ti=>this._resolvePossibleFunction(ti)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(ti){return this._checkContent(ti),this._config.content=Ui(Ui({},this._config.content),ti),this}toHtml(){let ti=document.createElement("div");ti.innerHTML=this._maybeSanitize(this._config.template);for(let[ri,si]of Object.entries(this._config.content))this._setContent(ti,si,ri);let ei=ti.children[0],ni=this._resolvePossibleFunction(this._config.extraClass);return ni&&ei.classList.add(...ni.split(" ")),ei}_typeCheckConfig(ti){super._typeCheckConfig(ti),this._checkContent(ti.content)}_checkContent(ti){for(let[ei,ni]of Object.entries(ti))super._typeCheckConfig({selector:ei,entry:ni},Rg)}_setContent(ti,ei,ni){let ri=cn.findOne(ni,ti);if(ri){if(ei=this._resolvePossibleFunction(ei),!ei){ri.remove();return}if(Ps(ei)){this._putElementInTemplate(eo(ei),ri);return}if(this._config.html){ri.innerHTML=this._maybeSanitize(ei);return}ri.textContent=ei}}_maybeSanitize(ti){return this._config.sanitize?Mg(ti,this._config.allowList,this._config.sanitizeFn):ti}_resolvePossibleFunction(ti){return ls(ti,[this])}_putElementInTemplate(ti,ei){if(this._config.html){ei.innerHTML="",ei.append(ti);return}ei.textContent=ti.textContent}},Pg="tooltip",Hg=new Set(["sanitize","allowList","sanitizeFn"]),Sc="fade",Fg="modal",al="show",$g=".tooltip-inner",Ju=`.${Fg}`,Zu="hide.bs.modal",Aa="hover",Cc="focus",Bg="click",zg="manual",jg="hide",Vg="hidden",qg="show",Wg="shown",Ug="inserted",Yg="click",Gg="focusin",Kg="focusout",Qg="mouseenter",Xg="mouseleave",Jg={AUTO:"auto",TOP:"top",RIGHT:bs()?"left":"right",BOTTOM:"bottom",LEFT:bs()?"right":"left"},Zg={allowList:Md,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},ev={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"},$s=class ii extends ps{constructor(ti,ei){if(typeof nl=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(ti,ei),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Zg}static get DefaultType(){return ev}static get NAME(){return Pg}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Mi.off(this._element.closest(Ju),Zu,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let ti=Mi.trigger(this._element,this.constructor.eventName(qg)),ni=(cd(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(ti.defaultPrevented||!ni)return;this._disposePopper();let ri=this._getTipElement();this._element.setAttribute("aria-describedby",ri.getAttribute("id"));let{container:si}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(si.append(ri),Mi.trigger(this._element,this.constructor.eventName(Ug))),this._popper=this._createPopper(ri),ri.classList.add(al),"ontouchstart"in document.documentElement)for(let li of[].concat(...document.body.children))Mi.on(li,"mouseover",fl);let ai=()=>{Mi.trigger(this._element,this.constructor.eventName(Wg)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(ai,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Mi.trigger(this._element,this.constructor.eventName(jg)).defaultPrevented)return;if(this._getTipElement().classList.remove(al),"ontouchstart"in document.documentElement)for(let ri of[].concat(...document.body.children))Mi.off(ri,"mouseover",fl);this._activeTrigger[Bg]=!1,this._activeTrigger[Cc]=!1,this._activeTrigger[Aa]=!1,this._isHovered=null;let ni=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Mi.trigger(this._element,this.constructor.eventName(Vg)))};this._queueCallback(ni,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(ti){let ei=this._getTemplateFactory(ti).toHtml();if(!ei)return null;ei.classList.remove(Sc,al),ei.classList.add(`bs-${this.constructor.NAME}-auto`);let ni=zh(this.constructor.NAME).toString();return ei.setAttribute("id",ni),this._isAnimated()&&ei.classList.add(Sc),ei}setContent(ti){this._newContent=ti,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(ti){return this._templateFactory?this._templateFactory.changeContent(ti):this._templateFactory=new Rc(Hn(Ui({},this._config),{content:ti,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[$g]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(ti){return this.constructor.getOrCreateInstance(ti.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Sc)}_isShown(){return this.tip&&this.tip.classList.contains(al)}_createPopper(ti){let ei=ls(this._config.placement,[this,ti,this._element]),ni=Jg[ei.toUpperCase()];return Sa(this._element,ti,this._getPopperConfig(ni))}_getOffset(){let{offset:ti}=this._config;return typeof ti=="string"?ti.split(",").map(ei=>Number.parseInt(ei,10)):typeof ti=="function"?ei=>ti(ei,this._element):ti}_resolvePossibleFunction(ti){return ls(ti,[this._element])}_getPopperConfig(ti){let ei={placement:ti,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:ni=>{this._getTipElement().setAttribute("data-popper-placement",ni.state.placement)}}]};return Ui(Ui({},ei),ls(this._config.popperConfig,[ei]))}_setListeners(){let ti=this._config.trigger.split(" ");for(let ei of ti)if(ei==="click")Mi.on(this._element,this.constructor.eventName(Yg),this._config.selector,ni=>{this._initializeOnDelegatedTarget(ni).toggle()});else if(ei!==zg){let ni=ei===Aa?this.constructor.eventName(Qg):this.constructor.eventName(Gg),ri=ei===Aa?this.constructor.eventName(Xg):this.constructor.eventName(Kg);Mi.on(this._element,ni,this._config.selector,si=>{let ai=this._initializeOnDelegatedTarget(si);ai._activeTrigger[si.type==="focusin"?Cc:Aa]=!0,ai._enter()}),Mi.on(this._element,ri,this._config.selector,si=>{let ai=this._initializeOnDelegatedTarget(si);ai._activeTrigger[si.type==="focusout"?Cc:Aa]=ai._element.contains(si.relatedTarget),ai._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Mi.on(this._element.closest(Ju),Zu,this._hideModalHandler)}_fixTitle(){let ti=this._element.getAttribute("title");ti&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",ti),this._element.setAttribute("data-bs-original-title",ti),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(ti,ei){clearTimeout(this._timeout),this._timeout=setTimeout(ti,ei)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(ti){let ei=Hs.getDataAttributes(this._element);for(let ni of Object.keys(ei))Hg.has(ni)&&delete ei[ni];return ti=Ui(Ui({},ei),typeof ti=="object"&&ti?ti:{}),ti=this._mergeConfigObj(ti),ti=this._configAfterMerge(ti),this._typeCheckConfig(ti),ti}_configAfterMerge(ti){return ti.container=ti.container===!1?document.body:eo(ti.container),typeof ti.delay=="number"&&(ti.delay={show:ti.delay,hide:ti.delay}),typeof ti.title=="number"&&(ti.title=ti.title.toString()),typeof ti.content=="number"&&(ti.content=ti.content.toString()),ti}_getDelegateConfig(){let ti={};for(let[ei,ni]of Object.entries(this._config))this.constructor.Default[ei]!==ni&&(ti[ei]=ni);return ti.selector=!1,ti.trigger="manual",ti}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this,ti);if(typeof ti=="string"){if(typeof ei[ti]=="undefined")throw new TypeError(`No method named "${ti}"`);ei[ti]()}})}};ws($s);var tv="popover",iv=".popover-header",nv=".popover-body",rv=Hn(Ui({},$s.Default),{content:"",offset:[0,8],placement:"right",template:'',trigger:"click"}),sv=Hn(Ui({},$s.DefaultType),{content:"(null|string|element|function)"}),ta=class ii extends $s{static get Default(){return rv}static get DefaultType(){return sv}static get NAME(){return tv}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[iv]:this._getTitle(),[nv]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this,ti);if(typeof ti=="string"){if(typeof ei[ti]=="undefined")throw new TypeError(`No method named "${ti}"`);ei[ti]()}})}};ws(ta);var ov="scrollspy",av="bs.scrollspy",$c=`.${av}`,lv=".data-api",cv=`activate${$c}`,ed=`click${$c}`,uv=`load${$c}${lv}`,dv="dropdown-item",Xo="active",fv='[data-bs-spy="scroll"]',Ac="[href]",hv=".nav, .list-group",td=".nav-link",pv=".nav-item",mv=".list-group-item",gv=`${td}, ${pv} > ${td}, ${mv}`,vv=".dropdown",yv=".dropdown-toggle",_v={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},bv={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},_l=class ii extends ps{constructor(ti,ei){super(ti,ei),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return _v}static get DefaultType(){return bv}static get NAME(){return ov}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let ti of this._observableSections.values())this._observer.observe(ti)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(ti){return ti.target=eo(ti.target)||document.body,ti.rootMargin=ti.offset?`${ti.offset}px 0px -30%`:ti.rootMargin,typeof ti.threshold=="string"&&(ti.threshold=ti.threshold.split(",").map(ei=>Number.parseFloat(ei))),ti}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Mi.off(this._config.target,ed),Mi.on(this._config.target,ed,Ac,ti=>{let ei=this._observableSections.get(ti.target.hash);if(ei){ti.preventDefault();let ni=this._rootElement||window,ri=ei.offsetTop-this._element.offsetTop;if(ni.scrollTo){ni.scrollTo({top:ri,behavior:"smooth"});return}ni.scrollTop=ri}}))}_getNewObserver(){let ti={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(ei=>this._observerCallback(ei),ti)}_observerCallback(ti){let ei=ai=>this._targetLinks.get(`#${ai.target.id}`),ni=ai=>{this._previousScrollData.visibleEntryTop=ai.target.offsetTop,this._process(ei(ai))},ri=(this._rootElement||document.documentElement).scrollTop,si=ri>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=ri;for(let ai of ti){if(!ai.isIntersecting){this._activeTarget=null,this._clearActiveClass(ei(ai));continue}let li=ai.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(si&&li){if(ni(ai),!ri)return;continue}!si&&!li&&ni(ai)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let ti=cn.find(Ac,this._config.target);for(let ei of ti){if(!ei.hash||to(ei))continue;let ni=cn.findOne(decodeURI(ei.hash),this._element);ia(ni)&&(this._targetLinks.set(decodeURI(ei.hash),ei),this._observableSections.set(ei.hash,ni))}}_process(ti){this._activeTarget!==ti&&(this._clearActiveClass(this._config.target),this._activeTarget=ti,ti.classList.add(Xo),this._activateParents(ti),Mi.trigger(this._element,cv,{relatedTarget:ti}))}_activateParents(ti){if(ti.classList.contains(dv)){cn.findOne(yv,ti.closest(vv)).classList.add(Xo);return}for(let ei of cn.parents(ti,hv))for(let ni of cn.prev(ei,gv))ni.classList.add(Xo)}_clearActiveClass(ti){ti.classList.remove(Xo);let ei=cn.find(`${Ac}.${Xo}`,ti);for(let ni of ei)ni.classList.remove(Xo)}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this,ti);if(typeof ti=="string"){if(ei[ti]===void 0||ti.startsWith("_")||ti==="constructor")throw new TypeError(`No method named "${ti}"`);ei[ti]()}})}};Mi.on(window,uv,()=>{for(let ii of cn.find(fv))_l.getOrCreateInstance(ii)});ws(_l);var Ev="tab",wv="bs.tab",Lo=`.${wv}`,xv=`hide${Lo}`,Tv=`hidden${Lo}`,Sv=`show${Lo}`,Cv=`shown${Lo}`,Av=`click${Lo}`,Dv=`keydown${Lo}`,Ov=`load${Lo}`,Lv="ArrowLeft",id="ArrowRight",Mv="ArrowUp",nd="ArrowDown",Dc="Home",rd="End",Co="active",sd="fade",Oc="show",kv="dropdown",kd=".dropdown-toggle",Nv=".dropdown-menu",Lc=`:not(${kd})`,Iv='.list-group, .nav, [role="tablist"]',Rv=".nav-item, .list-group-item",Pv=`.nav-link${Lc}, .list-group-item${Lc}, [role="tab"]${Lc}`,Nd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Mc=`${Pv}, ${Nd}`,Hv=`.${Co}[data-bs-toggle="tab"], .${Co}[data-bs-toggle="pill"], .${Co}[data-bs-toggle="list"]`,Do=class ii extends ps{constructor(ti){super(ti),this._parent=this._element.closest(Iv),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Mi.on(this._element,Dv,ei=>this._keydown(ei)))}static get NAME(){return Ev}show(){let ti=this._element;if(this._elemIsActive(ti))return;let ei=this._getActiveElem(),ni=ei?Mi.trigger(ei,xv,{relatedTarget:ti}):null;Mi.trigger(ti,Sv,{relatedTarget:ei}).defaultPrevented||ni&&ni.defaultPrevented||(this._deactivate(ei,ti),this._activate(ti,ei))}_activate(ti,ei){if(!ti)return;ti.classList.add(Co),this._activate(cn.getElementFromSelector(ti));let ni=()=>{if(ti.getAttribute("role")!=="tab"){ti.classList.add(Oc);return}ti.removeAttribute("tabindex"),ti.setAttribute("aria-selected",!0),this._toggleDropDown(ti,!0),Mi.trigger(ti,Cv,{relatedTarget:ei})};this._queueCallback(ni,ti,ti.classList.contains(sd))}_deactivate(ti,ei){if(!ti)return;ti.classList.remove(Co),ti.blur(),this._deactivate(cn.getElementFromSelector(ti));let ni=()=>{if(ti.getAttribute("role")!=="tab"){ti.classList.remove(Oc);return}ti.setAttribute("aria-selected",!1),ti.setAttribute("tabindex","-1"),this._toggleDropDown(ti,!1),Mi.trigger(ti,Tv,{relatedTarget:ei})};this._queueCallback(ni,ti,ti.classList.contains(sd))}_keydown(ti){if(![Lv,id,Mv,nd,Dc,rd].includes(ti.key))return;ti.stopPropagation(),ti.preventDefault();let ei=this._getChildren().filter(ri=>!to(ri)),ni;if([Dc,rd].includes(ti.key))ni=ei[ti.key===Dc?0:ei.length-1];else{let ri=[id,nd].includes(ti.key);ni=Pc(ei,ti.target,ri,!0)}ni&&(ni.focus({preventScroll:!0}),ii.getOrCreateInstance(ni).show())}_getChildren(){return cn.find(Mc,this._parent)}_getActiveElem(){return this._getChildren().find(ti=>this._elemIsActive(ti))||null}_setInitialAttributes(ti,ei){this._setAttributeIfNotExists(ti,"role","tablist");for(let ni of ei)this._setInitialAttributesOnChild(ni)}_setInitialAttributesOnChild(ti){ti=this._getInnerElement(ti);let ei=this._elemIsActive(ti),ni=this._getOuterElement(ti);ti.setAttribute("aria-selected",ei),ni!==ti&&this._setAttributeIfNotExists(ni,"role","presentation"),ei||ti.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(ti,"role","tab"),this._setInitialAttributesOnTargetPanel(ti)}_setInitialAttributesOnTargetPanel(ti){let ei=cn.getElementFromSelector(ti);ei&&(this._setAttributeIfNotExists(ei,"role","tabpanel"),ti.id&&this._setAttributeIfNotExists(ei,"aria-labelledby",`${ti.id}`))}_toggleDropDown(ti,ei){let ni=this._getOuterElement(ti);if(!ni.classList.contains(kv))return;let ri=(si,ai)=>{let li=cn.findOne(si,ni);li&&li.classList.toggle(ai,ei)};ri(kd,Co),ri(Nv,Oc),ni.setAttribute("aria-expanded",ei)}_setAttributeIfNotExists(ti,ei,ni){ti.hasAttribute(ei)||ti.setAttribute(ei,ni)}_elemIsActive(ti){return ti.classList.contains(Co)}_getInnerElement(ti){return ti.matches(Mc)?ti:cn.findOne(Mc,ti)}_getOuterElement(ti){return ti.closest(Rv)||ti}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this);if(typeof ti=="string"){if(ei[ti]===void 0||ti.startsWith("_")||ti==="constructor")throw new TypeError(`No method named "${ti}"`);ei[ti]()}})}};Mi.on(document,Av,Nd,function(ii){["A","AREA"].includes(this.tagName)&&ii.preventDefault(),!to(this)&&Do.getOrCreateInstance(this).show()});Mi.on(window,Ov,()=>{for(let ii of cn.find(Hv))Do.getOrCreateInstance(ii)});ws(Do);var Fv="toast",$v="bs.toast",oo=`.${$v}`,Bv=`mouseover${oo}`,zv=`mouseout${oo}`,jv=`focusin${oo}`,Vv=`focusout${oo}`,qv=`hide${oo}`,Wv=`hidden${oo}`,Uv=`show${oo}`,Yv=`shown${oo}`,Gv="fade",od="hide",ll="show",cl="showing",Kv={animation:"boolean",autohide:"boolean",delay:"number"},Qv={animation:!0,autohide:!0,delay:5e3},Bs=class ii extends ps{constructor(ti,ei){super(ti,ei),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Qv}static get DefaultType(){return Kv}static get NAME(){return Fv}show(){if(Mi.trigger(this._element,Uv).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Gv);let ei=()=>{this._element.classList.remove(cl),Mi.trigger(this._element,Yv),this._maybeScheduleHide()};this._element.classList.remove(od),La(this._element),this._element.classList.add(ll,cl),this._queueCallback(ei,this._element,this._config.animation)}hide(){if(!this.isShown()||Mi.trigger(this._element,qv).defaultPrevented)return;let ei=()=>{this._element.classList.add(od),this._element.classList.remove(cl,ll),Mi.trigger(this._element,Wv)};this._element.classList.add(cl),this._queueCallback(ei,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ll),super.dispose()}isShown(){return this._element.classList.contains(ll)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(ti,ei){switch(ti.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=ei;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=ei;break}}if(ei){this._clearTimeout();return}let ni=ti.relatedTarget;this._element===ni||this._element.contains(ni)||this._maybeScheduleHide()}_setListeners(){Mi.on(this._element,Bv,ti=>this._onInteraction(ti,!0)),Mi.on(this._element,zv,ti=>this._onInteraction(ti,!1)),Mi.on(this._element,jv,ti=>this._onInteraction(ti,!0)),Mi.on(this._element,Vv,ti=>this._onInteraction(ti,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(ti){return this.each(function(){let ei=ii.getOrCreateInstance(this,ti);if(typeof ti=="string"){if(typeof ei[ti]=="undefined")throw new TypeError(`No method named "${ti}"`);ei[ti](this)}})}};bl(Bs);ws(Bs);var EA=zo(Id()),wA=zo(El());function Mo(ii){return"error"in ii}function Un(ii){let ti=["","null","undefined"];return Array.isArray(ii)?ii.length>0:typeof ii=="string"&&!ti.includes(ii)||typeof ii=="number"||typeof ii=="boolean"?!0:typeof ii=="object"&&ii!==null}function wl(ii){return typeof ii!==null&&typeof ii!="undefined"}function Xv(ii,ti,ei){return ks(this,null,function*(){let ni=window.CSRF_TOKEN,ri=new Headers({"X-CSRFToken":ni}),si;typeof ei!="undefined"&&(si=JSON.stringify(ei),ri.set("content-type","application/json"));let ai=yield fetch(ii,{method:ti,body:si,headers:ri,credentials:"same-origin"}),li=ai.headers.get("Content-Type");if(typeof li=="string"&&li.includes("text"))return{error:yield ai.text()};let di=yield ai.json();return!ai.ok&&Array.isArray(di)?{error:di.join(`
-`)}:!ai.ok&&"detail"in di?{error:di.detail}:di})}function ra(ii,ti){return ks(this,null,function*(){return yield Xv(ii,"PATCH",ti)})}function*Gi(...ii){for(let ti of ii)for(let ei of document.querySelectorAll(ti))ei!==null&&(yield ei)}function ka(ii){return document.getElementById(ii)}function Rd(ii,ti=0){let ei=ti,ni=document.getElementById("content-title");ni!==null&&(ei+=ni.getBoundingClientRect().bottom);let ri=ii.getBoundingClientRect().top+window.pageYOffset+ei;window.scrollTo({top:ri,behavior:"smooth"})}function Pd(ii,ti="select"){let ei=[];for(let ni of ii.querySelectorAll(ti))if(ni!==null){let ri={name:ni.name,options:[]};for(let si of ni.options)si.selected&&ri.options.push(si.value);ei=[...ei,ri]}return ei}function ko(ii,ti,ei){function ni(si){return!!(typeof ei=="string"&&si!==null&&si.matches(ei))}function ri(si){if(si!==null&&si.parentElement!==null&&!ni(si)){for(let ai of si.parentElement.querySelectorAll(ti))if(ai!==null)return ai;return ri(si.parentElement.parentElement)}return null}return ri(ii)}function jc(ii,ti,ei=null,ni=[]){let ri=document.createElement(ii);if(ti!==null)for(let si of Object.keys(ti)){let ai=si,li=ti[ai];ai in ri&&(ri[ai]=li)}ei!==null&&ei.length>0&&ri.classList.add(...ei);for(let si of ni)ri.appendChild(si);return ri}function sa(ii,ti,ei){if(typeof ii!="string")throw new TypeError("replaceAll 'input' argument must be a string");if(typeof ti!="string"&&!(ti instanceof RegExp))throw new TypeError("replaceAll 'pattern' argument must be a string or RegExp instance");switch(typeof ei){case"boolean":ei=String(ei);break;case"number":ei=String(ei);break;case"string":break;default:throw new TypeError("replaceAll 'replacement' argument must be stringifyable")}if(ti instanceof RegExp){let ni=Array.from(new Set([...ti.flags.split(""),"g"])).join("");ti=new RegExp(ti.source,ni)}else ti=new RegExp(ti,"g");return ii.replace(ti,ei)}function Jv(ii,ti){let ei=new Set;for(let ni of ti.querySelectorAll("*[name]"))ni.validity.valid?ni.classList.contains("is-invalid")&&ni.classList.remove("is-invalid"):(ei.add(ni.name),ni.classList.contains("is-invalid")||ni.classList.add("is-invalid"));if(ei.size!==0){let ni=ti.elements.namedItem(Array.from(ei)[0]);Rd(ni),ii.preventDefault()}}function Hd(){for(let ii of Gi("form")){let ti=ii.querySelectorAll("button[type=submit]");for(let ni of ti)ni.addEventListener("click",ri=>Jv(ri,ii));let ei=document.querySelector("button[data-reset-select]");ei!==null&&ei.addEventListener("click",()=>{window.location.assign(window.location.origin+window.location.pathname)})}}function Fd(){for(let ti of Gi("a.set_field_value"))if(ti!==null){let ei=function(ni){ni.preventDefault();let ri=ti.getAttribute("data"),si=document.getElementById(ti.target);si!==null&&ri!==null&&(si.value=ri)};var ii=ei;ti.addEventListener("click",ei)}}function $d(){for(let ii of[Hd,Fd])ii()}window.Collapse=io;window.Modal=Fs;window.Popover=ta;window.Toast=Bs;window.Tooltip=$s;function Zv(){for(let ii of Gi('[data-bs-toggle="tooltip"]'))new $s(ii,{container:"body"})}function ey(){for(let ii of Gi('[data-bs-toggle="modal"]'))new Fs(ii)}function ao(ii,ti,ei,ni){let ri="mdi-alert";switch(ii){case"warning":ri="mdi-alert";break;case"success":ri="mdi-check-circle";break;case"info":ri="mdi-information";break;case"danger":ri="mdi-alert";break}let si=document.createElement("div");si.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let ai=document.createElement("div");ai.setAttribute("class",`toast bg-${ii}`),ai.setAttribute("role","alert"),ai.setAttribute("aria-live","assertive"),ai.setAttribute("aria-atomic","true");let li=document.createElement("div");li.setAttribute("class",`toast-header bg-${ii} text-body`);let di=document.createElement("i");di.setAttribute("class",`mdi ${ri}`);let mi=document.createElement("strong");mi.setAttribute("class","me-auto ms-1"),mi.innerText=ti;let hi=document.createElement("button");hi.setAttribute("type","button"),hi.setAttribute("class","btn-close"),hi.setAttribute("data-bs-dismiss","toast"),hi.setAttribute("aria-label","Close");let _i=document.createElement("div");if(_i.setAttribute("class","toast-body"),li.appendChild(di),li.appendChild(mi),typeof ni!="undefined"){let Ai=document.createElement("small");Ai.setAttribute("class","text-muted"),li.appendChild(Ai)}return li.appendChild(hi),_i.innerText=ei.trim(),ai.appendChild(li),ai.appendChild(_i),si.appendChild(ai),document.body.appendChild(si),new Bs(ai)}function ty(){let{hash:ii}=location;if(ii&&ii.match(/^#tab_.+$/)){let ti=ii.replace("tab_","");for(let ei of Gi(`ul.nav.nav-tabs .nav-link[data-bs-target="${ti}"]`))new Do(ei).show()}}function iy(){let ii=document.querySelectorAll(".sidebar .accordion-item");function ti(ei){for(let ni of ii)ni!==ei?ni.classList.remove("is-open"):ni.classList.toggle("is-open")}for(let ei of ii)for(let ni of ei.querySelectorAll(".accordion-button"))ni.addEventListener("click",()=>{ti(ei)})}function ny(){for(let ii of Gi("a.image-preview")){let ti=`${Math.round(window.innerWidth/4)}px`,ei=jc("img",{src:ii.href});ei.style.maxWidth=ti;let ni=jc("div",null,null,[ei]);new ta(ii,{customClass:"image-preview-popover",trigger:"hover",html:!0,content:ni})}}function xl(){for(let ii of[Zv,ey,ty,ny,iy])ii()}function Bd(ii){let ti=ii.currentTarget,ei=document.getElementById("quicksearch_clear");Un(ei)&&(ti.value===""?ei.classList.add("invisible"):ei.classList.remove("invisible"))}function zd(){let ii=document.getElementById("export_current_view"),ti=ii==null?void 0:ii.href.split("&")[0];ii.setAttribute("href",ti)}function ry(ii){let ti=ii.currentTarget;if(zd(),ti!=null){let ei=document.getElementById("export_current_view"),ni=`q=${ti.value}`,ri=(ei==null?void 0:ei.href)+"&"+ni;ei.setAttribute("href",ri)}}function jd(){let ii=document.getElementById("quicksearch"),ti=document.getElementById("quicksearch_clear");Un(ii)&&(ii.addEventListener("keyup",Bd,{passive:!0}),ii.addEventListener("search",Bd,{passive:!0}),ii.addEventListener("change",ry,{passive:!0}),Un(ti)&&ti.addEventListener("click",()=>ks(this,null,function*(){let ei=new Event("search");ii.value="",yield new Promise(ni=>setTimeout(ni,100)),ii.dispatchEvent(ei),zd()}),{passive:!0}))}var Vc=zo(El());function Na(ii){let ti={};return ti.clear_button={html:ei=>` `},ii.hasAttribute("multiple")&&(ti.remove_button={title:"Remove"}),{plugins:ti}}function Vd(){for(let ii of Gi("select:not(.tomselected):not(.no-ts):not([size]):not(.api-select):not(.color-select)"))new Vc.default(ii,Hn(Ui({},Na(ii)),{maxOptions:void 0}))}function qd(){function ii(ti,ei){return` ${ei(ti.text)}
`}for(let ti of Gi("select.color-select:not(.tomselected)"))new Vc.default(ti,Hn(Ui({},Na(ti)),{maxOptions:void 0,render:{option:ii,item:ii}}))}var sy=zo(Ud());var Yd=(ii,ti)=>{if(Array.isArray(ii))ii.forEach(ti);else for(var ei in ii)ii.hasOwnProperty(ei)&&ti(ii[ei],ei)};var Gd=(ii,...ti)=>{var ei=oy(ti);ii=ay(ii),ii.map(ni=>{ei.map(ri=>{ni.classList.add(ri)})})};var oy=ii=>{var ti=[];return Yd(ii,ei=>{typeof ei=="string"&&(ei=ei.trim().split(/[\11\12\14\15\40]/)),Array.isArray(ei)&&(ti=ti.concat(ei))}),ti.filter(Boolean)},ay=ii=>(Array.isArray(ii)||(ii=[ii]),ii);var Kc={};hu(Kc,{exclude:()=>my,extract:()=>Yc,parse:()=>Gc,parseUrl:()=>sf,pick:()=>af,stringify:()=>rf,stringifyUrl:()=>of});var Xd="%[a-f0-9]{2}",Kd=new RegExp("("+Xd+")|([^%]+?)","gi"),Qd=new RegExp("("+Xd+")+","gi");function qc(ii,ti){try{return[decodeURIComponent(ii.join(""))]}catch(ri){}if(ii.length===1)return ii;ti=ti||1;let ei=ii.slice(0,ti),ni=ii.slice(ti);return Array.prototype.concat.call([],qc(ei),qc(ni))}function ly(ii){try{return decodeURIComponent(ii)}catch(ti){let ei=ii.match(Kd)||[];for(let ni=1;niii==null,dy=ii=>encodeURIComponent(ii).replaceAll(/[!'()*]/g,ti=>`%${ti.charCodeAt(0).toString(16).toUpperCase()}`),Uc=Symbol("encodeFragmentIdentifier");function fy(ii){switch(ii.arrayFormat){case"index":return ti=>(ei,ni)=>{let ri=ei.length;return ni===void 0||ii.skipNull&&ni===null||ii.skipEmptyString&&ni===""?ei:ni===null?[...ei,[Jn(ti,ii),"[",ri,"]"].join("")]:[...ei,[Jn(ti,ii),"[",Jn(ri,ii),"]=",Jn(ni,ii)].join("")]};case"bracket":return ti=>(ei,ni)=>ni===void 0||ii.skipNull&&ni===null||ii.skipEmptyString&&ni===""?ei:ni===null?[...ei,[Jn(ti,ii),"[]"].join("")]:[...ei,[Jn(ti,ii),"[]=",Jn(ni,ii)].join("")];case"colon-list-separator":return ti=>(ei,ni)=>ni===void 0||ii.skipNull&&ni===null||ii.skipEmptyString&&ni===""?ei:ni===null?[...ei,[Jn(ti,ii),":list="].join("")]:[...ei,[Jn(ti,ii),":list=",Jn(ni,ii)].join("")];case"comma":case"separator":case"bracket-separator":{let ti=ii.arrayFormat==="bracket-separator"?"[]=":"=";return ei=>(ni,ri)=>ri===void 0||ii.skipNull&&ri===null||ii.skipEmptyString&&ri===""?ni:(ri=ri===null?"":ri,ni.length===0?[[Jn(ei,ii),ti,Jn(ri,ii)].join("")]:[[ni,Jn(ri,ii)].join(ii.arrayFormatSeparator)])}default:return ti=>(ei,ni)=>ni===void 0||ii.skipNull&&ni===null||ii.skipEmptyString&&ni===""?ei:ni===null?[...ei,Jn(ti,ii)]:[...ei,[Jn(ti,ii),"=",Jn(ni,ii)].join("")]}}function hy(ii){let ti;switch(ii.arrayFormat){case"index":return(ei,ni,ri)=>{if(ti=/\[(\d*)]$/.exec(ei),ei=ei.replace(/\[\d*]$/,""),!ti){ri[ei]=ni;return}ri[ei]===void 0&&(ri[ei]={}),ri[ei][ti[1]]=ni};case"bracket":return(ei,ni,ri)=>{if(ti=/(\[])$/.exec(ei),ei=ei.replace(/\[]$/,""),!ti){ri[ei]=ni;return}if(ri[ei]===void 0){ri[ei]=[ni];return}ri[ei]=[...ri[ei],ni]};case"colon-list-separator":return(ei,ni,ri)=>{if(ti=/(:list)$/.exec(ei),ei=ei.replace(/:list$/,""),!ti){ri[ei]=ni;return}if(ri[ei]===void 0){ri[ei]=[ni];return}ri[ei]=[...ri[ei],ni]};case"comma":case"separator":return(ei,ni,ri)=>{let si=typeof ni=="string"&&ni.includes(ii.arrayFormatSeparator),ai=typeof ni=="string"&&!si&&js(ni,ii).includes(ii.arrayFormatSeparator);ni=ai?js(ni,ii):ni;let li=si||ai?ni.split(ii.arrayFormatSeparator).map(di=>js(di,ii)):ni===null?ni:js(ni,ii);ri[ei]=li};case"bracket-separator":return(ei,ni,ri)=>{let si=/(\[])$/.test(ei);if(ei=ei.replace(/\[]$/,""),!si){ri[ei]=ni&&js(ni,ii);return}let ai=ni===null?[]:js(ni,ii).split(ii.arrayFormatSeparator);if(ri[ei]===void 0){ri[ei]=ai;return}ri[ei]=[...ri[ei],...ai]};default:return(ei,ni,ri)=>{if(ri[ei]===void 0){ri[ei]=ni;return}ri[ei]=[...[ri[ei]].flat(),ni]}}}function ef(ii){if(typeof ii!="string"||ii.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Jn(ii,ti){return ti.encode?ti.strict?dy(ii):encodeURIComponent(ii):ii}function js(ii,ti){return ti.decode?Wc(ii):ii}function tf(ii){return Array.isArray(ii)?ii.sort():typeof ii=="object"?tf(Object.keys(ii)).sort((ti,ei)=>Number(ti)-Number(ei)).map(ti=>ii[ti]):ii}function nf(ii){let ti=ii.indexOf("#");return ti!==-1&&(ii=ii.slice(0,ti)),ii}function py(ii){let ti="",ei=ii.indexOf("#");return ei!==-1&&(ti=ii.slice(ei)),ti}function Zd(ii,ti,ei){return ei==="string"&&typeof ii=="string"?ii:typeof ei=="function"&&typeof ii=="string"?ei(ii):ti.parseBooleans&&ii!==null&&(ii.toLowerCase()==="true"||ii.toLowerCase()==="false")?ii.toLowerCase()==="true":ei==="number"&&!Number.isNaN(Number(ii))&&typeof ii=="string"&&ii.trim()!==""||ti.parseNumbers&&!Number.isNaN(Number(ii))&&typeof ii=="string"&&ii.trim()!==""?Number(ii):ii}function Yc(ii){ii=nf(ii);let ti=ii.indexOf("?");return ti===-1?"":ii.slice(ti+1)}function Gc(ii,ti){ti=Ui({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null)},ti),ef(ti.arrayFormatSeparator);let ei=hy(ti),ni=Object.create(null);if(typeof ii!="string"||(ii=ii.trim().replace(/^[?#&]/,""),!ii))return ni;for(let ri of ii.split("&")){if(ri==="")continue;let si=ti.decode?ri.replaceAll("+"," "):ri,[ai,li]=Sl(si,"=");ai===void 0&&(ai=si),li=li===void 0?null:["comma","separator","bracket-separator"].includes(ti.arrayFormat)?li:js(li,ti),ei(js(ai,ti),li,ni)}for(let[ri,si]of Object.entries(ni))if(typeof si=="object"&&si!==null&&ti.types[ri]!=="string")for(let[ai,li]of Object.entries(si)){let di=ti.types[ri]?ti.types[ri].replace("[]",""):void 0;si[ai]=Zd(li,ti,di)}else typeof si=="object"&&si!==null&&ti.types[ri]==="string"?ni[ri]=Object.values(si).join(ti.arrayFormatSeparator):ni[ri]=Zd(si,ti,ti.types[ri]);return ti.sort===!1?ni:(ti.sort===!0?Object.keys(ni).sort():Object.keys(ni).sort(ti.sort)).reduce((ri,si)=>{let ai=ni[si];return ri[si]=ai&&typeof ai=="object"&&!Array.isArray(ai)?tf(ai):ai,ri},Object.create(null))}function rf(ii,ti){if(!ii)return"";ti=Ui({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},ti),ef(ti.arrayFormatSeparator);let ei=ai=>ti.skipNull&&uy(ii[ai])||ti.skipEmptyString&&ii[ai]==="",ni=fy(ti),ri={};for(let[ai,li]of Object.entries(ii))ei(ai)||(ri[ai]=li);let si=Object.keys(ri);return ti.sort!==!1&&si.sort(ti.sort),si.map(ai=>{let li=ii[ai];return li===void 0?"":li===null?Jn(ai,ti):Array.isArray(li)?li.length===0&&ti.arrayFormat==="bracket-separator"?Jn(ai,ti)+"[]":li.reduce(ni(ai),[]).join("&"):Jn(ai,ti)+"="+Jn(li,ti)}).filter(ai=>ai.length>0).join("&")}function sf(ii,ti){var ri,si;ti=Ui({decode:!0},ti);let[ei,ni]=Sl(ii,"#");return ei===void 0&&(ei=ii),Ui({url:(si=(ri=ei==null?void 0:ei.split("?"))==null?void 0:ri[0])!=null?si:"",query:Gc(Yc(ii),ti)},ti&&ti.parseFragmentIdentifier&&ni?{fragmentIdentifier:js(ni,ti)}:{})}function of(ii,ti){ti=Ui({encode:!0,strict:!0,[Uc]:!0},ti);let ei=nf(ii.url).split("?")[0]||"",ni=Yc(ii.url),ri=Ui(Ui({},Gc(ni,{sort:!1})),ii.query),si=rf(ri,ti);si&&(si=`?${si}`);let ai=py(ii.url);if(typeof ii.fragmentIdentifier=="string"){let li=new URL(ei);li.hash=ii.fragmentIdentifier,ai=ti[Uc]?li.hash:`#${ii.fragmentIdentifier}`}return`${ei}${si}${ai}`}function af(ii,ti,ei){ei=Ui({parseFragmentIdentifier:!0,[Uc]:!1},ei);let{url:ni,query:ri,fragmentIdentifier:si}=sf(ii,ei);return of({url:ni,query:Jd(ri,ti),fragmentIdentifier:si},ei)}function my(ii,ti,ei){let ni=Array.isArray(ti)?ri=>!ti.includes(ri):(ri,si)=>!ti(ri,si);return af(ii,ni,ei)}var lf=Kc;var uf=zo(El());function cf(ii){if(Array.isArray(ii)){for(let ti of ii)if(typeof ti=="object"&&ti!==null&&"fieldName"in ti&&"queryParam"in ti)return typeof ti.fieldName=="string"&&typeof ti.queryParam=="string"}return!1}var Cl=class extends Map{queryParam(ti){let ei=this.get(ti);return typeof ei!="undefined"?ei.queryParam:null}queryValue(ti){let ei=this.get(ti);return typeof ei!="undefined"?ei.queryValue:[]}updateValue(ti,ei){let ni=this.get(ti);if(Un(ni)){let{queryParam:ri}=ni;return this.set(ti,{queryParam:ri,queryValue:ei}),!0}return!1}addFromJson(ti){if(Un(ti)){let ei=JSON.parse(ti);if(cf(ei))for(let{queryParam:ni,fieldName:ri}of ei)this.set(ri,{queryParam:ni,queryValue:[]});else throw new Error(`Data from 'data-dynamic-params' attribute is improperly formatted: '${ti}'`)}}};var Al=class extends uf.default{constructor(ei,ni){super(ei,ni);Rn(this,"nullOption",null);Rn(this,"queryParams",new Map);Rn(this,"staticParams",new Map);Rn(this,"dynamicParams",new Cl);Rn(this,"pathValues",new Map);this.api_url=this.input.getAttribute("data-url"),this.valueField=this.input.getAttribute("ts-value-field")||this.settings.valueField,this.labelField=this.input.getAttribute("ts-label-field")||this.settings.labelField,this.disabledField=this.input.getAttribute("ts-disabled-field")||this.settings.disabledField,this.descriptionField=this.input.getAttribute("ts-description-field")||"description",this.depthField=this.input.getAttribute("ts-depth-field")||"_depth",this.parentField=this.input.getAttribute("ts-parent-field")||null,this.countField=this.input.getAttribute("ts-count-field")||null;let ri=this.input.getAttribute("data-null-option");if(ri){let si=this.settings.valueField,ai=this.settings.labelField;this.nullOption={},this.nullOption[si]="null",this.nullOption[ai]=ri}this.getStaticParams();for(let[si,ai]of this.staticParams.entries())this.queryParams.set(si,ai);this.getDynamicParams();for(let si of this.dynamicParams.keys())this.updateQueryParams(si);this.getPathKeys();for(let si of this.pathValues.keys())this.updatePathValues(si);this.addEventListeners()}load(ei){let ni=this;ni.clearOptions(),ni.nullOption&&!ei&&ni.addOption(ni.nullOption);let ri=ni.getRequestUrl(ei);ri&&(Gd(ni.wrapper,ni.settings.loadingClass),ni.loading++,fetch(ri).then(si=>si.json()).then(si=>{let ai=si.results,li=[];for(let di of ai){let mi=ni.getOptionFromData(di);li.push(mi)}return li}).then(si=>{ni.loadCallback(si,[])}).catch(()=>{ni.loadCallback([],[])}))}getRequestUrl(ei){let ni=this.api_url,ri={};for(let[si,ai]of this.queryParams.entries())ri[si]=ai;for(let[si,ai]of this.pathValues.entries())for(let li of this.api_url.matchAll(new RegExp(`({{${si}}})`,"g")))if(ai)ni=sa(ni,li[1],ai.toString());else return"";return ei&&(ri.q=[ei]),ri.brief=[!0],ri.limit=[this.settings.maxOptions],lf.stringifyUrl({url:ni,query:ri})}getOptionFromData(ei){let ni={id:ei[this.valueField],display:ei[this.labelField],depth:ei[this.depthField]||null,description:ei[this.descriptionField]||null};if(ei[this.parentField]){let ri=ei[this.parentField];ni.parent=ri[this.labelField]}return ei[this.countField]&&(ni.count=ei[this.countField]),ei[this.disabledField]&&(ni.disabled=ei[this.disabledField]),ni}getStaticParams(){let ei=this.input.getAttribute("data-static-params");try{if(ei){let ni=JSON.parse(ei);if(ni)for(let{queryParam:ri,queryValue:si}of ni)Array.isArray(si)?this.staticParams.set(ri,si):this.staticParams.set(ri,[si])}}catch(ni){console.group(`Unable to determine static query parameters for select field '${this.name}'`),console.warn(ni),console.groupEnd()}}getDynamicParams(){let ei=this.input.getAttribute("data-dynamic-params");try{this.dynamicParams.addFromJson(ei)}catch(ni){console.group(`Unable to determine dynamic query parameters for select field '${this.name}'`),console.warn(ni),console.groupEnd()}}getPathKeys(){for(let ei of this.api_url.matchAll(new RegExp("{{(.+)}}","g")))this.pathValues.set(ei[1],"")}updateQueryParams(ei){let ni=document.querySelector(`[name="${ei}"]`);if(ni!==null){let ri=[];if(ni.multiple?ri=Array.from(ni.options).filter(si=>si.selected).map(si=>si.value):ni.value!==""&&(ri=[ni.value]),ri.length>0){this.dynamicParams.updateValue(ei,ri);let si=this.dynamicParams.get(ei);if(typeof si!="undefined"){let{queryParam:ai,queryValue:li}=si,di=[];if(this.staticParams.has(ai)){let mi=this.staticParams.get(ai);typeof mi!="undefined"&&(di=[...mi,...li])}else di=li;di.length>0?this.queryParams.set(ai,di):this.queryParams.delete(ai)}}else{let si=this.dynamicParams.queryParam(ei);si!==null&&this.queryParams.delete(si)}}}updatePathValues(ei){let ni=sa(ei,/^id_/i,""),ri=ka(`id_${ni}`);ri!==null&&this.api_url.includes("{{")&&this.api_url.match(new RegExp(`({{(${ei})}})`,"g"))&&(ri.value?this.pathValues.set(ei,ri.value):this.pathValues.set(ei,""))}addEventListeners(){let ei=new Set([...this.dynamicParams.keys(),...this.pathValues.keys()]);for(let ni of ei){let ri=document.querySelector(`[name="${ni}"]`);ri!==null&&ri.addEventListener("change",si=>this.handleEvent(si)),this.input.addEventListener(`netbox.select.onload.${ni}`,si=>this.handleEvent(si))}}handleEvent(ei){let ni=ei.target;this.updateQueryParams(ni.name),this.updatePathValues(ni.name),this.clear(),this.load(this.lastValue)}};var gy="id",Dl="display",vy=100;function yy(ii,ti){let ei="";return typeof ii.depth=="number"&&ii.depth>0&&(ei=`${ei}${"\u2500".repeat(ii.depth)} `),ei=`${ei}${ti(ii[Dl])}`,ii.parent&&(ei=`${ei} ${ti(ii.parent)} `),ii.count&&(ei=`${ei} ${ti(ii.count)} `),ii.description&&(ei=`${ei}${ti(ii.description)} `),ei=`${ei}
`,ei}function _y(ii,ti){return ii.parent?`${ti(ii.parent)} > ${ti(ii[Dl])}
`:`${ti(ii[Dl])}
`}function df(){for(let ii of Gi("select.api-select:not(.tomselected)"))new Al(ii,Hn(Ui({},Na(ii)),{valueField:gy,labelField:Dl,maxOptions:vy,searchField:[],preload:"focus",render:{option:yy,item:_y},shouldLoad:function(){return!0}}))}function Ol(){Vd(),df(),qd()}function ff(ii,ti){var ri;let ei=(ri=ii.parentElement)==null?void 0:ri.parentElement,ni=ii.getAttribute("data-url");Un(ni)&&ra(ni,{status:ti}).then(si=>{if(Mo(si)){ao("danger","Error",si.error).show();return}else ei.setAttribute("data-cable-status",ti)})}function hf(){for(let ii of Gi("button.mark-planned"))ii.addEventListener("click",()=>ff(ii,"planned"));for(let ii of Gi("button.mark-installed"))ii.addEventListener("click",()=>ff(ii,"connected"))}var Qc=class{set(ti,ei,ni){return ti[ei]=ni,!0}get(ti,ei){return ti[ei]}has(ti,ei){return ei in ti}},Ia=class{constructor(ti,ei){Rn(this,"handlers");Rn(this,"proxy");Rn(this,"options");Rn(this,"key","");if(this.options=ei,typeof this.options.key=="string"?this.key=this.options.key:this.key=this.generateStateKey(ti),this.options.persist){let ni=this.retrieve();ni!==null&&(ti=Ui(Ui({},ti),ni))}this.handlers=new Qc,this.proxy=new Proxy(ti,this.handlers),this.options.persist&&this.save()}generateStateKey(ti){return`netbox-${window.btoa(Object.keys(ti).join("---"))}`}get(ti){return this.handlers.get(this.proxy,ti)}set(ti,ei){this.handlers.set(this.proxy,ti,ei),this.options.persist&&this.save()}all(){return this.proxy}keys(){return Object.keys(this.proxy)}values(){return Object.values(this.proxy)}save(){let ti=JSON.stringify(this.proxy);localStorage.setItem(this.key,ti)}retrieve(){let ti=localStorage.getItem(this.key);return ti!==null?JSON.parse(ti):null}};function lo(ii,ti={}){return new Ia(ii,ti)}var Xc=lo({hidden:!1},{persist:!0,key:"netbox-object-depth"});var Jc=lo({view:"images-and-labels"},{persist:!0});var pf=lo({element:null},{persist:!1});var mf=lo({hidden:!0},{persist:!0,key:"netbox-secret"});function gf(ii,ti){ti.setAttribute("data-depth-indicators",ii?"hidden":"shown"),ti.innerText=ii?"Show Depth Indicators":"Hide Depth Indicators"}function vf(){for(let ii of Gi(".record-depth"))ii.style.display=""}function yf(){for(let ii of Gi(".record-depth"))ii.style.display="none"}function by(ii,ti){let ei=ii.get("hidden");ii.set("hidden",!ei);let ni=ii.get("hidden");ni?yf():vf(),gf(ni,ti)}function _f(){let ii=Xc.get("hidden");for(let ti of Gi("button.toggle-depth"))gf(ii,ti),ti.addEventListener("click",ei=>{by(Xc,ei.currentTarget)},!1);ii?yf():ii||vf()}function Ey(ii){let ti=Array.from(ii.options);for(let ei=1;ei
=0;ei--){let ni=ti[ei];if(ni.selected){let ri=ii.options[ei+1];ni=ii.removeChild(ni),ri=ii.replaceChild(ni,ri),ii.insertBefore(ri,ni)}}}function bf(){for(let ii of Gi("#move-option-up")){let ti=ii.getAttribute("data-target");if(ti!==null)for(let ei of Gi(`#${ti}`))ii.addEventListener("click",()=>Ey(ei))}for(let ii of Gi("#move-option-down")){let ti=ii.getAttribute("data-target");if(ti!==null)for(let ei of Gi(`#${ti}`))ii.addEventListener("click",()=>wy(ei))}}function Ef(ii,ti){return ii.replace(/[^\-.\w\s]/g,"").replace(/^[\s.]+|[\s.]+$/g,"").replace(/[-.\s]+/g,"-").toLowerCase().substring(0,ti)}function wf(){let ii=document.getElementById("id_slug"),ti=document.getElementById("reslug");if(ii===null||ti===null)return;let ei=ii.getAttribute("slug-source"),ni=document.getElementById(`id_${ei}`);if(ni===null){console.error("Unable to find field for slug field.");return}let ri=ii.getAttribute("maxlength"),si=50;ri&&(si=Number(ri)),ni.addEventListener("blur",()=>{ii.value||(ii.value=Ef(ni.value,si))}),ti.addEventListener("click",()=>{ii.value=Ef(ni.value,si)})}function xy(ii){if(!ii.currentTarget.checked)for(let ei of Gi('input[type="checkbox"].toggle',"input#select-all"))ei.checked=!1}function Ty(ii){let ti=ii.currentTarget,ei=ko(ti,"table"),ni=document.getElementById("select-all-box"),ri=document.getElementById("select-all");if(ei!==null){for(let si of ei.querySelectorAll('tr:not(.d-none) input[type="checkbox"][name="pk"]'))ti.checked?si.checked=!0:si.checked=!1;ni!==null&&(ti.checked?ni.classList.remove("d-none"):(ni.classList.add("d-none"),ri!==null&&(ri.checked=!1)))}}function xf(){for(let ii of Gi('table tr th > input[type="checkbox"].toggle'))ii.addEventListener("change",Ty);for(let ii of Gi('input[type="checkbox"][name="pk"]'))ii.addEventListener("change",xy)}function Tf(){let ii=document.querySelector('input[type="checkbox"][name="pk"]:checked'),ti=document.querySelector("div.form.form-horizontal div.btn-list");if(!ti)return;let ei=ti.classList.contains("btn-float-group-left");ii!==null&&!ei?ti.classList.add("btn-float-group-left"):ii===null&&ei&&ti.classList.remove("btn-float-group-left")}function Sf(){for(let ii of Gi('input[type="checkbox"][name="pk"]'))ii.addEventListener("change",()=>{Tf()});for(let ii of Gi('table tr th > input[type="checkbox"].toggle'))ii.addEventListener("change",()=>{Tf()})}function Af(){var ii;(ii=window.getSelection())==null||ii.removeAllRanges()}function Cf(ii,ti){ti.set("element",ii)}function Sy(ii,ti,ei){let ni=!1;for(let ri of ei){let si=ri;if(ni===!0&&(si.checked=ii.checked),ri===ti){if(ni===!0){ni=!1;return}ni=!0,si.checked=ii.checked}if(ri===ii){if(ni===!0){ni=!1;return}ni=!0}}}function Cy(ii,ti){let ei=ii.target,ni=ti.get("element");if(Cf(ei,ti),!ii.shiftKey)return;if(Af(),ni===null)return Cf(ei,ti);let ri=Gi('input[type="checkbox"][name="pk"]');Sy(ei,ni,ri)}function Df(){let ii=Gi('input[type="checkbox"][name="pk"]');for(let ti of ii)ti.addEventListener("click",ei=>{Af(),ei.stopPropagation(),Cy(ei,pf)})}function Ay(ii){let ti=ii.querySelector("button.preview-button"),ei=ii.querySelector("textarea"),ni=ii.querySelector("div.preview");if(!Un(ei.style.height)){let{height:ri}=ei.getBoundingClientRect();ei.style.height=`${ri}px`}ti.addEventListener("htmx:configRequest",ri=>{ri.detail.parameters={text:ei.value||""},ri.detail.headers["X-CSRFToken"]=window.CSRF_TOKEN,ni.style.minHeight=ei.style.height,ni.innerHTML=""})}function Of(){for(let ii of document.querySelectorAll(".markdown-widget"))Ay(ii)}function Dy(ii,ti){ti.setAttribute("data-secret-visibility",ii?"hidden":"shown"),ti.innerText=ii?"Show Secret":"Hide Secret"}function Oy(){let ii=ka("secret");if(Un(ii)){let ti=ii.getAttribute("data-secret");Un(ti)&&(ii.innerText=ti)}}function Mf(){let ii=ka("secret");if(Un(ii)){let ti=ii.getAttribute("data-secret");Un(ti)&&(ii.innerText="\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022")}}function Ly(ii,ti){ii.set("hidden",!ii.get("hidden"));let ei=ii.get("hidden");ei?Mf():Oy(),Dy(ei,ti)}function Lf(ii){Ly(mf,ii.currentTarget)}function kf(){Mf();for(let ii of Gi("button.toggle-secret"))ii.removeEventListener("click",Lf),ii.addEventListener("click",Lf)}function Ll(){for(let ii of[_f,hf,wf,xf,Df,Sf,bf,Of,kf])ii()}var Zc="netbox-color-mode";function My(ii){return ii==="dark"||ii==="light"}function ky(ii){return localStorage.setItem(Zc,ii)}function Ny(ii){var ei,ni;let ti=document.querySelector("body");ti&&ii=="dark"?ti.setAttribute("data-bs-theme","dark"):ti&&ti.setAttribute("data-bs-theme","light");for(let ri of Gi(".rack_elevation")){let si=(ni=(ei=ri.contentDocument)==null?void 0:ei.querySelector("svg"))!=null?ni:null;si!==null&&si.setAttribute("data-bs-theme",ii)}}function co(ii){ky(ii),Ny(ii)}function Iy(){let ii=localStorage.getItem(Zc);ii==="light"?co("dark"):ii==="dark"?co("light"):console.warn("Unable to determine the current color mode")}function Ry(){let ii=localStorage.getItem(Zc);if(Un(ii))return co(ii);let ti="none";for(let ei of["dark","light"])if(window.matchMedia(`(prefers-color-scheme: ${ei})`).matches){ti=ei;break}if(Un(ii)&&My(ii))return co(ii);switch(ti){case"dark":return co("dark");case"light":return co("light");case"none":return co("light");default:return co("light")}}function Py(){for(let ii of Gi("button.color-mode-toggle"))ii.addEventListener("click",Iy)}function Nf(){window.addEventListener("load",Ry);for(let ii of[Py])ii()}function Ml(){let ii=document.querySelectorAll("body > div#django-messages > div.toast");for(let ti of ii)if(ti!==null){let ei=new Bs(ti);ei.isShown()||ei.show()}}var Rf=zo(If());function kl(){for(let ii of Gi(".copy-content"))new Rf.default(ii)}var Nl=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],uo={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(ii){return typeof console!="undefined"&&console.warn(ii)},getWeek:function(ii){var ti=new Date(ii.getTime());ti.setHours(0,0,0,0),ti.setDate(ti.getDate()+3-(ti.getDay()+6)%7);var ei=new Date(ti.getFullYear(),0,4);return 1+Math.round(((ti.getTime()-ei.getTime())/864e5-3+(ei.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:" ",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:" ",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};var Il={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(ii){var ti=ii%100;if(ti>3&&ti<21)return"th";switch(ti%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Rl=Il;var Zr=function(ii,ti){return ti===void 0&&(ti=2),("000"+ii).slice(ti*-1)},cs=function(ii){return ii===!0?1:0};function tu(ii,ti){var ei;return function(){var ni=this,ri=arguments;clearTimeout(ei),ei=setTimeout(function(){return ii.apply(ni,ri)},ti)}}var Pl=function(ii){return ii instanceof Array?ii:[ii]};function es(ii,ti,ei){if(ei===!0)return ii.classList.add(ti);ii.classList.remove(ti)}function An(ii,ti,ei){var ni=window.document.createElement(ii);return ti=ti||"",ei=ei||"",ni.className=ti,ei!==void 0&&(ni.textContent=ei),ni}function Pa(ii){for(;ii.firstChild;)ii.removeChild(ii.firstChild)}function iu(ii,ti){if(ti(ii))return ii;if(ii.parentNode)return iu(ii.parentNode,ti)}function Ha(ii,ti){var ei=An("div","numInputWrapper"),ni=An("input","numInput "+ii),ri=An("span","arrowUp"),si=An("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?ni.type="number":(ni.type="text",ni.pattern="\\d*"),ti!==void 0)for(var ai in ti)ni.setAttribute(ai,ti[ai]);return ei.appendChild(ni),ei.appendChild(ri),ei.appendChild(si),ei}function us(ii){try{if(typeof ii.composedPath=="function"){var ti=ii.composedPath();return ti[0]}return ii.target}catch(ei){return ii.target}}var nu=function(){},Fa=function(ii,ti,ei){return ei.months[ti?"shorthand":"longhand"][ii]},Pf={D:nu,F:function(ii,ti,ei){ii.setMonth(ei.months.longhand.indexOf(ti))},G:function(ii,ti){ii.setHours((ii.getHours()>=12?12:0)+parseFloat(ti))},H:function(ii,ti){ii.setHours(parseFloat(ti))},J:function(ii,ti){ii.setDate(parseFloat(ti))},K:function(ii,ti,ei){ii.setHours(ii.getHours()%12+12*cs(new RegExp(ei.amPM[1],"i").test(ti)))},M:function(ii,ti,ei){ii.setMonth(ei.months.shorthand.indexOf(ti))},S:function(ii,ti){ii.setSeconds(parseFloat(ti))},U:function(ii,ti){return new Date(parseFloat(ti)*1e3)},W:function(ii,ti,ei){var ni=parseInt(ti),ri=new Date(ii.getFullYear(),0,2+(ni-1)*7,0,0,0,0);return ri.setDate(ri.getDate()-ri.getDay()+ei.firstDayOfWeek),ri},Y:function(ii,ti){ii.setFullYear(parseFloat(ti))},Z:function(ii,ti){return new Date(ti)},d:function(ii,ti){ii.setDate(parseFloat(ti))},h:function(ii,ti){ii.setHours((ii.getHours()>=12?12:0)+parseFloat(ti))},i:function(ii,ti){ii.setMinutes(parseFloat(ti))},j:function(ii,ti){ii.setDate(parseFloat(ti))},l:nu,m:function(ii,ti){ii.setMonth(parseFloat(ti)-1)},n:function(ii,ti){ii.setMonth(parseFloat(ti)-1)},s:function(ii,ti){ii.setSeconds(parseFloat(ti))},u:function(ii,ti){return new Date(parseFloat(ti))},w:nu,y:function(ii,ti){ii.setFullYear(2e3+parseFloat(ti))}},Vs={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},oa={Z:function(ii){return ii.toISOString()},D:function(ii,ti,ei){return ti.weekdays.shorthand[oa.w(ii,ti,ei)]},F:function(ii,ti,ei){return Fa(oa.n(ii,ti,ei)-1,!1,ti)},G:function(ii,ti,ei){return Zr(oa.h(ii,ti,ei))},H:function(ii){return Zr(ii.getHours())},J:function(ii,ti){return ti.ordinal!==void 0?ii.getDate()+ti.ordinal(ii.getDate()):ii.getDate()},K:function(ii,ti){return ti.amPM[cs(ii.getHours()>11)]},M:function(ii,ti){return Fa(ii.getMonth(),!0,ti)},S:function(ii){return Zr(ii.getSeconds())},U:function(ii){return ii.getTime()/1e3},W:function(ii,ti,ei){return ei.getWeek(ii)},Y:function(ii){return Zr(ii.getFullYear(),4)},d:function(ii){return Zr(ii.getDate())},h:function(ii){return ii.getHours()%12?ii.getHours()%12:12},i:function(ii){return Zr(ii.getMinutes())},j:function(ii){return ii.getDate()},l:function(ii,ti){return ti.weekdays.longhand[ii.getDay()]},m:function(ii){return Zr(ii.getMonth()+1)},n:function(ii){return ii.getMonth()+1},s:function(ii){return ii.getSeconds()},u:function(ii){return ii.getTime()},w:function(ii){return ii.getDay()},y:function(ii){return String(ii.getFullYear()).substring(2)}};var ru=function(ii){var ti=ii.config,ei=ti===void 0?uo:ti,ni=ii.l10n,ri=ni===void 0?Il:ni,si=ii.isMobile,ai=si===void 0?!1:si;return function(li,di,mi){var hi=mi||ri;return ei.formatDate!==void 0&&!ai?ei.formatDate(li,di,hi):di.split("").map(function(_i,Ei,Ai){return oa[_i]&&Ai[Ei-1]!=="\\"?oa[_i](li,hi,ei):_i!=="\\"?_i:""}).join("")}},Hl=function(ii){var ti=ii.config,ei=ti===void 0?uo:ti,ni=ii.l10n,ri=ni===void 0?Il:ni;return function(si,ai,li,di){if(!(si!==0&&!si)){var mi=di||ri,hi,_i=si;if(si instanceof Date)hi=new Date(si.getTime());else if(typeof si!="string"&&si.toFixed!==void 0)hi=new Date(si);else if(typeof si=="string"){var Ei=ai||(ei||uo).dateFormat,Ai=String(si).trim();if(Ai==="today")hi=new Date,li=!0;else if(ei&&ei.parseDate)hi=ei.parseDate(si,Ei);else if(/Z$/.test(Ai)||/GMT$/.test(Ai))hi=new Date(si);else{for(var ki=void 0,Ti=[],Fi=0,en=0,rn="";FiMath.min(ti,ei)&&ii=0?new Date:new Date(ei.config.minDate.getTime()),wi=$l(ei.config);vi.setHours(wi.hours,wi.minutes,wi.seconds,vi.getMilliseconds()),ei.selectedDates=[vi],ei.latestSelectedDateObj=vi}pi!==void 0&&pi.type!=="blur"&&On(pi);var Si=ei._input.value;_i(),Cs(),ei._input.value!==Si&&ei._debouncedChange()}function mi(pi,vi){return pi%12+12*cs(vi===ei.l10n.amPM[1])}function hi(pi){switch(pi%24){case 0:case 12:return 12;default:return pi%12}}function _i(){if(!(ei.hourElement===void 0||ei.minuteElement===void 0)){var pi=(parseInt(ei.hourElement.value.slice(-2),10)||0)%24,vi=(parseInt(ei.minuteElement.value,10)||0)%60,wi=ei.secondElement!==void 0?(parseInt(ei.secondElement.value,10)||0)%60:0;ei.amPM!==void 0&&(pi=mi(pi,ei.amPM.textContent));var Si=ei.config.minTime!==void 0||ei.config.minDate&&ei.minDateHasTime&&ei.latestSelectedDateObj&&ds(ei.latestSelectedDateObj,ei.config.minDate,!0)===0,Ri=ei.config.maxTime!==void 0||ei.config.maxDate&&ei.maxDateHasTime&&ei.latestSelectedDateObj&&ds(ei.latestSelectedDateObj,ei.config.maxDate,!0)===0;if(ei.config.maxTime!==void 0&&ei.config.minTime!==void 0&&ei.config.minTime>ei.config.maxTime){var qi=Fl(ei.config.minTime.getHours(),ei.config.minTime.getMinutes(),ei.config.minTime.getSeconds()),nn=Fl(ei.config.maxTime.getHours(),ei.config.maxTime.getMinutes(),ei.config.maxTime.getSeconds()),Xi=Fl(pi,vi,wi);if(Xi>nn&&Xi=12)]),ei.secondElement!==void 0&&(ei.secondElement.value=Zr(wi)))}function ki(pi){var vi=us(pi),wi=parseInt(vi.value)+(pi.delta||0);(wi/1e3>1||pi.key==="Enter"&&!/[^\d]/.test(wi.toString()))&&Yn(wi)}function Ti(pi,vi,wi,Si){if(vi instanceof Array)return vi.forEach(function(Ri){return Ti(pi,Ri,wi,Si)});if(pi instanceof Array)return pi.forEach(function(Ri){return Ti(Ri,vi,wi,Si)});pi.addEventListener(vi,wi,Si),ei._handlers.push({remove:function(){return pi.removeEventListener(vi,wi,Si)}})}function Fi(){wn("onChange")}function en(){if(ei.config.wrap&&["open","close","toggle","clear"].forEach(function(wi){Array.prototype.forEach.call(ei.element.querySelectorAll("[data-"+wi+"]"),function(Si){return Ti(Si,"click",ei[wi])})}),ei.isMobile){Ho();return}var pi=tu(zn,50);if(ei._debouncedChange=tu(Fi,Hy),ei.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&Ti(ei.daysContainer,"mouseover",function(wi){ei.config.mode==="range"&&Ts(us(wi))}),Ti(ei._input,"keydown",Qn),ei.calendarContainer!==void 0&&Ti(ei.calendarContainer,"keydown",Qn),!ei.config.inline&&!ei.config.static&&Ti(window,"resize",pi),window.ontouchstart!==void 0?Ti(window.document,"touchstart",Sn):Ti(window.document,"mousedown",Sn),Ti(window.document,"focus",Sn,{capture:!0}),ei.config.clickOpens===!0&&(Ti(ei._input,"focus",ei.open),Ti(ei._input,"click",ei.open)),ei.daysContainer!==void 0&&(Ti(ei.monthNav,"click",Dn),Ti(ei.monthNav,["keyup","increment"],ki),Ti(ei.daysContainer,"click",Ms)),ei.timeContainer!==void 0&&ei.minuteElement!==void 0&&ei.hourElement!==void 0){var vi=function(wi){return us(wi).select()};Ti(ei.timeContainer,["increment"],di),Ti(ei.timeContainer,"blur",di,{capture:!0}),Ti(ei.timeContainer,"click",ln),Ti([ei.hourElement,ei.minuteElement],["focus","click"],vi),ei.secondElement!==void 0&&Ti(ei.secondElement,"focus",function(){return ei.secondElement&&ei.secondElement.select()}),ei.amPM!==void 0&&Ti(ei.amPM,"click",function(wi){di(wi)})}ei.config.allowInput&&Ti(ei._input,"blur",Gn)}function rn(pi,vi){var wi=pi!==void 0?ei.parseDate(pi):ei.latestSelectedDateObj||(ei.config.minDate&&ei.config.minDate>ei.now?ei.config.minDate:ei.config.maxDate&&ei.config.maxDate1),ei.calendarContainer.appendChild(pi);var Ri=ei.config.appendTo!==void 0&&ei.config.appendTo.nodeType!==void 0;if((ei.config.inline||ei.config.static)&&(ei.calendarContainer.classList.add(ei.config.inline?"inline":"static"),ei.config.inline&&(!Ri&&ei.element.parentNode?ei.element.parentNode.insertBefore(ei.calendarContainer,ei._input.nextSibling):ei.config.appendTo!==void 0&&ei.config.appendTo.appendChild(ei.calendarContainer)),ei.config.static)){var qi=An("div","flatpickr-wrapper");ei.element.parentNode&&ei.element.parentNode.insertBefore(qi,ei.element),qi.appendChild(ei.element),ei.altInput&&qi.appendChild(ei.altInput),qi.appendChild(ei.calendarContainer)}!ei.config.static&&!ei.config.inline&&(ei.config.appendTo!==void 0?ei.config.appendTo:window.document.body).appendChild(ei.calendarContainer)}function an(pi,vi,wi,Si){var Ri=Fn(vi,!0),qi=An("span",pi,vi.getDate().toString());return qi.dateObj=vi,qi.$i=Si,qi.setAttribute("aria-label",ei.formatDate(vi,ei.config.ariaDateFormat)),pi.indexOf("hidden")===-1&&ds(vi,ei.now)===0&&(ei.todayDateElem=qi,qi.classList.add("today"),qi.setAttribute("aria-current","date")),Ri?(qi.tabIndex=-1,Ks(vi)&&(qi.classList.add("selected"),ei.selectedDateElem=qi,ei.config.mode==="range"&&(es(qi,"startRange",ei.selectedDates[0]&&ds(vi,ei.selectedDates[0],!0)===0),es(qi,"endRange",ei.selectedDates[1]&&ds(vi,ei.selectedDates[1],!0)===0),pi==="nextMonthDay"&&qi.classList.add("inRange")))):qi.classList.add("flatpickr-disabled"),ei.config.mode==="range"&&Yl(vi)&&!Ks(vi)&&qi.classList.add("inRange"),ei.weekNumbers&&ei.config.showMonths===1&&pi!=="prevMonthDay"&&Si%7===6&&ei.weekNumbers.insertAdjacentHTML("beforeend",""+ei.config.getWeek(vi)+" "),wn("onDayCreate",qi),qi}function bn(pi){pi.focus(),ei.config.mode==="range"&&Ts(pi)}function hn(pi){for(var vi=pi>0?0:ei.config.showMonths-1,wi=pi>0?ei.config.showMonths:-1,Si=vi;Si!=wi;Si+=pi)for(var Ri=ei.daysContainer.children[Si],qi=pi>0?0:Ri.children.length-1,nn=pi>0?Ri.children.length:-1,Xi=qi;Xi!=nn;Xi+=pi){var _n=Ri.children[Xi];if(_n.className.indexOf("hidden")===-1&&Fn(_n.dateObj))return _n}}function pn(pi,vi){for(var wi=pi.className.indexOf("Month")===-1?pi.dateObj.getMonth():ei.currentMonth,Si=vi>0?ei.config.showMonths:-1,Ri=vi>0?1:-1,qi=wi-ei.currentMonth;qi!=Si;qi+=Ri)for(var nn=ei.daysContainer.children[qi],Xi=wi-ei.currentMonth===qi?pi.$i+vi:vi<0?nn.children.length-1:0,_n=nn.children.length,Ki=Xi;Ki>=0&&Ki<_n&&Ki!=(vi>0?_n:-1);Ki+=Ri){var fn=nn.children[Ki];if(fn.className.indexOf("hidden")===-1&&Fn(fn.dateObj)&&Math.abs(pi.$i-Ki)>=Math.abs(vi))return bn(fn)}ei.changeMonth(Ri),gn(hn(Ri),0)}function gn(pi,vi){var wi=si(),Si=Bn(wi||document.body),Ri=pi!==void 0?pi:Si?wi:ei.selectedDateElem!==void 0&&Bn(ei.selectedDateElem)?ei.selectedDateElem:ei.todayDateElem!==void 0&&Bn(ei.todayDateElem)?ei.todayDateElem:hn(vi>0?1:-1);Ri===void 0?ei._input.focus():Si?pn(Ri,vi):bn(Ri)}function un(pi,vi){for(var wi=(new Date(pi,vi,1).getDay()-ei.l10n.firstDayOfWeek+7)%7,Si=ei.utils.getDaysInMonth((vi-1+12)%12,pi),Ri=ei.utils.getDaysInMonth(vi,pi),qi=window.document.createDocumentFragment(),nn=ei.config.showMonths>1,Xi=nn?"prevMonthDay hidden":"prevMonthDay",_n=nn?"nextMonthDay hidden":"nextMonthDay",Ki=Si+1-wi,fn=0;Ki<=Si;Ki++,fn++)qi.appendChild(an("flatpickr-day "+Xi,new Date(pi,vi-1,Ki),Ki,fn));for(Ki=1;Ki<=Ri;Ki++,fn++)qi.appendChild(an("flatpickr-day",new Date(pi,vi,Ki),Ki,fn));for(var Mn=Ri+1;Mn<=42-wi&&(ei.config.showMonths===1||fn%7!==0);Mn++,fn++)qi.appendChild(an("flatpickr-day "+_n,new Date(pi,vi+1,Mn%Ri),Mn,fn));var gs=An("div","dayContainer");return gs.appendChild(qi),gs}function vn(){if(ei.daysContainer!==void 0){Pa(ei.daysContainer),ei.weekNumbers&&Pa(ei.weekNumbers);for(var pi=document.createDocumentFragment(),vi=0;vi1||ei.config.monthSelectorType!=="dropdown")){var pi=function(Si){return ei.config.minDate!==void 0&&ei.currentYear===ei.config.minDate.getFullYear()&&Siei.config.maxDate.getMonth())};ei.monthsDropdownContainer.tabIndex=-1,ei.monthsDropdownContainer.innerHTML="";for(var vi=0;vi<12;vi++)if(pi(vi)){var wi=An("option","flatpickr-monthDropdown-month");wi.value=new Date(ei.currentYear,vi).getMonth().toString(),wi.textContent=Fa(vi,ei.config.shorthandCurrentMonth,ei.l10n),wi.tabIndex=-1,ei.currentMonth===vi&&(wi.selected=!0),ei.monthsDropdownContainer.appendChild(wi)}}}function Ni(){var pi=An("div","flatpickr-month"),vi=window.document.createDocumentFragment(),wi;ei.config.showMonths>1||ei.config.monthSelectorType==="static"?wi=An("span","cur-month"):(ei.monthsDropdownContainer=An("select","flatpickr-monthDropdown-months"),ei.monthsDropdownContainer.setAttribute("aria-label",ei.l10n.monthAriaLabel),Ti(ei.monthsDropdownContainer,"change",function(nn){var Xi=us(nn),_n=parseInt(Xi.value,10);ei.changeMonth(_n-ei.currentMonth),wn("onMonthChange")}),Tn(),wi=ei.monthsDropdownContainer);var Si=Ha("cur-year",{tabindex:"-1"}),Ri=Si.getElementsByTagName("input")[0];Ri.setAttribute("aria-label",ei.l10n.yearAriaLabel),ei.config.minDate&&Ri.setAttribute("min",ei.config.minDate.getFullYear().toString()),ei.config.maxDate&&(Ri.setAttribute("max",ei.config.maxDate.getFullYear().toString()),Ri.disabled=!!ei.config.minDate&&ei.config.minDate.getFullYear()===ei.config.maxDate.getFullYear());var qi=An("div","flatpickr-current-month");return qi.appendChild(wi),qi.appendChild(Si),vi.appendChild(qi),pi.appendChild(vi),{container:pi,yearElement:Ri,monthElement:wi}}function Hi(){Pa(ei.monthNav),ei.monthNav.appendChild(ei.prevMonthNav),ei.config.showMonths&&(ei.yearElements=[],ei.monthElements=[]);for(var pi=ei.config.showMonths;pi--;){var vi=Ni();ei.yearElements.push(vi.yearElement),ei.monthElements.push(vi.monthElement),ei.monthNav.appendChild(vi.container)}ei.monthNav.appendChild(ei.nextMonthNav)}function Pi(){return ei.monthNav=An("div","flatpickr-months"),ei.yearElements=[],ei.monthElements=[],ei.prevMonthNav=An("span","flatpickr-prev-month"),ei.prevMonthNav.innerHTML=ei.config.prevArrow,ei.nextMonthNav=An("span","flatpickr-next-month"),ei.nextMonthNav.innerHTML=ei.config.nextArrow,Hi(),Object.defineProperty(ei,"_hidePrevMonthArrow",{get:function(){return ei.__hidePrevMonthArrow},set:function(pi){ei.__hidePrevMonthArrow!==pi&&(es(ei.prevMonthNav,"flatpickr-disabled",pi),ei.__hidePrevMonthArrow=pi)}}),Object.defineProperty(ei,"_hideNextMonthArrow",{get:function(){return ei.__hideNextMonthArrow},set:function(pi){ei.__hideNextMonthArrow!==pi&&(es(ei.nextMonthNav,"flatpickr-disabled",pi),ei.__hideNextMonthArrow=pi)}}),ei.currentYearElement=ei.yearElements[0],Fo(),ei.monthNav}function $i(){ei.calendarContainer.classList.add("hasTime"),ei.config.noCalendar&&ei.calendarContainer.classList.add("noCalendar");var pi=$l(ei.config);ei.timeContainer=An("div","flatpickr-time"),ei.timeContainer.tabIndex=-1;var vi=An("span","flatpickr-time-separator",":"),wi=Ha("flatpickr-hour",{"aria-label":ei.l10n.hourAriaLabel});ei.hourElement=wi.getElementsByTagName("input")[0];var Si=Ha("flatpickr-minute",{"aria-label":ei.l10n.minuteAriaLabel});if(ei.minuteElement=Si.getElementsByTagName("input")[0],ei.hourElement.tabIndex=ei.minuteElement.tabIndex=-1,ei.hourElement.value=Zr(ei.latestSelectedDateObj?ei.latestSelectedDateObj.getHours():ei.config.time_24hr?pi.hours:hi(pi.hours)),ei.minuteElement.value=Zr(ei.latestSelectedDateObj?ei.latestSelectedDateObj.getMinutes():pi.minutes),ei.hourElement.setAttribute("step",ei.config.hourIncrement.toString()),ei.minuteElement.setAttribute("step",ei.config.minuteIncrement.toString()),ei.hourElement.setAttribute("min",ei.config.time_24hr?"0":"1"),ei.hourElement.setAttribute("max",ei.config.time_24hr?"23":"12"),ei.hourElement.setAttribute("maxlength","2"),ei.minuteElement.setAttribute("min","0"),ei.minuteElement.setAttribute("max","59"),ei.minuteElement.setAttribute("maxlength","2"),ei.timeContainer.appendChild(wi),ei.timeContainer.appendChild(vi),ei.timeContainer.appendChild(Si),ei.config.time_24hr&&ei.timeContainer.classList.add("time24hr"),ei.config.enableSeconds){ei.timeContainer.classList.add("hasSeconds");var Ri=Ha("flatpickr-second");ei.secondElement=Ri.getElementsByTagName("input")[0],ei.secondElement.value=Zr(ei.latestSelectedDateObj?ei.latestSelectedDateObj.getSeconds():pi.seconds),ei.secondElement.setAttribute("step",ei.minuteElement.getAttribute("step")),ei.secondElement.setAttribute("min","0"),ei.secondElement.setAttribute("max","59"),ei.secondElement.setAttribute("maxlength","2"),ei.timeContainer.appendChild(An("span","flatpickr-time-separator",":")),ei.timeContainer.appendChild(Ri)}return ei.config.time_24hr||(ei.amPM=An("span","flatpickr-am-pm",ei.l10n.amPM[cs((ei.latestSelectedDateObj?ei.hourElement.value:ei.config.defaultHour)>11)]),ei.amPM.title=ei.l10n.toggleTitle,ei.amPM.tabIndex=-1,ei.timeContainer.appendChild(ei.amPM)),ei.timeContainer}function mn(){ei.weekdayContainer?Pa(ei.weekdayContainer):ei.weekdayContainer=An("div","flatpickr-weekdays");for(var pi=ei.config.showMonths;pi--;){var vi=An("div","flatpickr-weekdaycontainer");ei.weekdayContainer.appendChild(vi)}return tn(),ei.weekdayContainer}function tn(){if(ei.weekdayContainer){var pi=ei.l10n.firstDayOfWeek,vi=Bf(ei.l10n.weekdays.shorthand);pi>0&&pi{var Xh=Object.create;var Aa=Object.defineProperty,Jh=Object.defineProperties,Zh=Object.getOwnPropertyDescriptor,ep=Object.getOwnPropertyDescriptors,tp=Object.getOwnPropertyNames,ou=Object.getOwnPropertySymbols,ip=Object.getPrototypeOf,su=Object.prototype.hasOwnProperty,np=Object.prototype.propertyIsEnumerable;var Fl=(ii,ei,ti)=>ei in ii?Aa(ii,ei,{enumerable:!0,configurable:!0,writable:!0,value:ti}):ii[ei]=ti,Di=(ii,ei)=>{for(var ti in ei||(ei={}))su.call(ei,ti)&&Fl(ii,ti,ei[ti]);if(ou)for(var ti of ou(ei))np.call(ei,ti)&&Fl(ii,ti,ei[ti]);return ii},sn=(ii,ei)=>Jh(ii,ep(ei));var au=(ii,ei)=>()=>(ei||ii((ei={exports:{}}).exports,ei),ei.exports),lu=(ii,ei)=>{for(var ti in ei)Aa(ii,ti,{get:ei[ti],enumerable:!0})},rp=(ii,ei,ti,ni)=>{if(ei&&typeof ei=="object"||typeof ei=="function")for(let ri of tp(ei))!su.call(ii,ri)&&ri!==ti&&Aa(ii,ri,{get:()=>ei[ri],enumerable:!(ni=Zh(ei,ri))||ni.enumerable});return ii};var cu=(ii,ei,ti)=>(ti=ii!=null?Xh(ip(ii)):{},rp(ei||!ii||!ii.__esModule?Aa(ti,"default",{value:ii,enumerable:!0}):ti,ii));var en=(ii,ei,ti)=>Fl(ii,typeof ei!="symbol"?ei+"":ei,ti);var co=(ii,ei,ti)=>new Promise((ni,ri)=>{var oi=li=>{try{ai(ti.next(li))}catch(ui){ri(ui)}},si=li=>{try{ai(ti.throw(li))}catch(ui){ri(ui)}},ai=li=>li.done?ni(li.value):Promise.resolve(li.value).then(oi,si);ai((ti=ti.apply(ii,ei)).next())});var Ld=au((exports,module)=>{(function(ii,ei){typeof define=="function"&&define.amd?define([],ei):typeof module=="object"&&module.exports?module.exports=ei():ii.htmx=ii.htmx||ei()})(typeof self!="undefined"?self:exports,function(){return function(){"use strict";var Q={onLoad:F,process:zt,on:de,off:ge,trigger:ce,ajax:Nr,find:C,findAll:f,closest:v,values:function(ii,ei){var ti=dr(ii,ei||"post");return ti.values},remove:_,addClass:z,removeClass:n,toggleClass:$,takeClass:W,defineExtension:Ur,removeExtension:Br,logAll:V,logNone:j,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:!1,scrollBehavior:"smooth",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get"],selfRequestsOnly:!1,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null},parseInterval:d,_:t,createEventSource:function(ii){return new EventSource(ii,{withCredentials:!0})},createWebSocket:function(ii){var ei=new WebSocket(ii,[]);return ei.binaryType=Q.config.wsBinaryType,ei},version:"1.9.12"},r={addTriggerHandler:Lt,bodyContains:se,canAccessLocalStorage:U,findThisElement:xe,filterValues:yr,hasAttribute:o,getAttributeValue:te,getClosestAttributeValue:ne,getClosestMatch:c,getExpressionVars:Hr,getHeaders:xr,getInputValues:dr,getInternalData:ae,getSwapSpecification:wr,getTriggerSpecs:it,getTarget:ye,makeFragment:l,mergeObjects:le,makeSettleInfo:T,oobSwap:Ee,querySelectorExt:ue,selectAndSwap:je,settleImmediately:nr,shouldCancel:ut,triggerEvent:ce,triggerErrorEvent:fe,withExtensions:R},w=["get","post","put","delete","patch"],i=w.map(function(ii){return"[hx-"+ii+"], [data-hx-"+ii+"]"}).join(", "),S=e("head"),q=e("title"),H=e("svg",!0);function e(ii,ei){return new RegExp("<"+ii+"(\\s[^>]*>|>)([\\s\\S]*?)<\\/"+ii+">",ei?"gim":"im")}function d(ii){if(ii==null)return;let ei=NaN;return ii.slice(-2)=="ms"?ei=parseFloat(ii.slice(0,-2)):ii.slice(-1)=="s"?ei=parseFloat(ii.slice(0,-1))*1e3:ii.slice(-1)=="m"?ei=parseFloat(ii.slice(0,-1))*1e3*60:ei=parseFloat(ii),isNaN(ei)?void 0:ei}function ee(ii,ei){return ii.getAttribute&&ii.getAttribute(ei)}function o(ii,ei){return ii.hasAttribute&&(ii.hasAttribute(ei)||ii.hasAttribute("data-"+ei))}function te(ii,ei){return ee(ii,ei)||ee(ii,"data-"+ei)}function u(ii){return ii.parentElement}function re(){return document}function c(ii,ei){for(;ii&&!ei(ii);)ii=u(ii);return ii||null}function L(ii,ei,ti){var ni=te(ei,ti),ri=te(ei,"hx-disinherit");return ii!==ei&&ri&&(ri==="*"||ri.split(" ").indexOf(ti)>=0)?"unset":ni}function ne(ii,ei){var ti=null;if(c(ii,function(ni){return ti=L(ii,ni,ei)}),ti!=="unset")return ti}function h(ii,ei){var ti=ii.matches||ii.matchesSelector||ii.msMatchesSelector||ii.mozMatchesSelector||ii.webkitMatchesSelector||ii.oMatchesSelector;return ti&&ti.call(ii,ei)}function A(ii){var ei=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ti=ei.exec(ii);return ti?ti[1].toLowerCase():""}function s(ii,ei){for(var ti=new DOMParser,ni=ti.parseFromString(ii,"text/html"),ri=ni.body;ei>0;)ei--,ri=ri.firstChild;return ri==null&&(ri=re().createDocumentFragment()),ri}function N(ii){return/"+ni+" ",0),oi=ri.querySelector("template").content;return Q.config.allowScriptTags?oe(oi.querySelectorAll("script"),function(si){Q.config.inlineScriptNonce&&(si.nonce=Q.config.inlineScriptNonce),si.htmxExecuted=navigator.userAgent.indexOf("Firefox")===-1}):oe(oi.querySelectorAll("script"),function(si){_(si)}),oi}switch(ti){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return s("",1);case"col":return s("",2);case"tr":return s("",2);case"td":case"th":return s("",3);case"script":case"style":return s(""+ni+"
",1);default:return s(ni,0)}}function ie(ii){ii&&ii()}function I(ii,ei){return Object.prototype.toString.call(ii)==="[object "+ei+"]"}function k(ii){return I(ii,"Function")}function P(ii){return I(ii,"Object")}function ae(ii){var ei="htmx-internal-data",ti=ii[ei];return ti||(ti=ii[ei]={}),ti}function M(ii){var ei=[];if(ii)for(var ti=0;ti=0}function se(ii){return ii.getRootNode&&ii.getRootNode()instanceof window.ShadowRoot?re().body.contains(ii.getRootNode().host):re().body.contains(ii)}function D(ii){return ii.trim().split(/\s+/)}function le(ii,ei){for(var ti in ei)ei.hasOwnProperty(ti)&&(ii[ti]=ei[ti]);return ii}function E(ii){try{return JSON.parse(ii)}catch(ei){return b(ei),null}}function U(){var ii="htmx:localStorageTest";try{return localStorage.setItem(ii,ii),localStorage.removeItem(ii),!0}catch(ei){return!1}}function B(ii){try{var ei=new URL(ii);return ei&&(ii=ei.pathname+ei.search),/^\/$/.test(ii)||(ii=ii.replace(/\/+$/,"")),ii}catch(ti){return ii}}function t(e){return Tr(re().body,function(){return eval(e)})}function F(ii){var ei=Q.on("htmx:load",function(ti){ii(ti.detail.elt)});return ei}function V(){Q.logger=function(ii,ei,ti){console&&console.log(ei,ii,ti)}}function j(){Q.logger=null}function C(ii,ei){return ei?ii.querySelector(ei):C(re(),ii)}function f(ii,ei){return ei?ii.querySelectorAll(ei):f(re(),ii)}function _(ii,ei){ii=p(ii),ei?setTimeout(function(){_(ii),ii=null},ei):ii.parentElement.removeChild(ii)}function z(ii,ei,ti){ii=p(ii),ti?setTimeout(function(){z(ii,ei),ii=null},ti):ii.classList&&ii.classList.add(ei)}function n(ii,ei,ti){ii=p(ii),ti?setTimeout(function(){n(ii,ei),ii=null},ti):ii.classList&&(ii.classList.remove(ei),ii.classList.length===0&&ii.removeAttribute("class"))}function $(ii,ei){ii=p(ii),ii.classList.toggle(ei)}function W(ii,ei){ii=p(ii),oe(ii.parentElement.children,function(ti){n(ti,ei)}),z(ii,ei)}function v(ii,ei){if(ii=p(ii),ii.closest)return ii.closest(ei);do if(ii==null||h(ii,ei))return ii;while(ii=ii&&u(ii));return null}function g(ii,ei){return ii.substring(0,ei.length)===ei}function G(ii,ei){return ii.substring(ii.length-ei.length)===ei}function J(ii){var ei=ii.trim();return g(ei,"<")&&G(ei,"/>")?ei.substring(1,ei.length-2):ei}function Z(ii,ei){return ei.indexOf("closest ")===0?[v(ii,J(ei.substr(8)))]:ei.indexOf("find ")===0?[C(ii,J(ei.substr(5)))]:ei==="next"?[ii.nextElementSibling]:ei.indexOf("next ")===0?[K(ii,J(ei.substr(5)))]:ei==="previous"?[ii.previousElementSibling]:ei.indexOf("previous ")===0?[Y(ii,J(ei.substr(9)))]:ei==="document"?[document]:ei==="window"?[window]:ei==="body"?[document.body]:re().querySelectorAll(J(ei))}var K=function(ii,ei){for(var ti=re().querySelectorAll(ei),ni=0;ni=0;ni--){var ri=ti[ni];if(ri.compareDocumentPosition(ii)===Node.DOCUMENT_POSITION_FOLLOWING)return ri}};function ue(ii,ei){return ei?Z(ii,ei)[0]:Z(re().body,ii)[0]}function p(ii){return I(ii,"String")?C(ii):ii}function ve(ii,ei,ti){return k(ei)?{target:re().body,event:ii,listener:ei}:{target:p(ii),event:ei,listener:ti}}function de(ii,ei,ti){jr(function(){var ri=ve(ii,ei,ti);ri.target.addEventListener(ri.event,ri.listener)});var ni=k(ei);return ni?ei:ti}function ge(ii,ei,ti){return jr(function(){var ni=ve(ii,ei,ti);ni.target.removeEventListener(ni.event,ni.listener)}),k(ei)?ei:ti}var pe=re().createElement("output");function me(ii,ei){var ti=ne(ii,ei);if(ti){if(ti==="this")return[xe(ii,ei)];var ni=Z(ii,ti);return ni.length===0?(b('The selector "'+ti+'" on '+ei+" returned no matches!"),[pe]):ni}}function xe(ii,ei){return c(ii,function(ti){return te(ti,ei)!=null})}function ye(ii){var ei=ne(ii,"hx-target");if(ei)return ei==="this"?xe(ii,"hx-target"):ue(ii,ei);var ti=ae(ii);return ti.boosted?re().body:ii}function be(ii){for(var ei=Q.config.attributesToSettle,ti=0;ti0?(ri=ii.substr(0,ii.indexOf(":")),ni=ii.substr(ii.indexOf(":")+1,ii.length)):ri=ii);var oi=re().querySelectorAll(ni);return oi?(oe(oi,function(si){var ai,li=ei.cloneNode(!0);ai=re().createDocumentFragment(),ai.appendChild(li),Se(ri,si)||(ai=li);var ui={shouldSwap:!0,target:si,fragment:ai};ce(si,"htmx:oobBeforeSwap",ui)&&(si=ui.target,ui.shouldSwap&&Fe(ri,si,si,ai,ti),oe(ti.elts,function(ci){ce(ci,"htmx:oobAfterSwap",ui)}))}),ei.parentNode.removeChild(ei)):(ei.parentNode.removeChild(ei),fe(re().body,"htmx:oobErrorNoTarget",{content:ei})),ii}function Ce(ii,ei,ti){var ni=ne(ii,"hx-select-oob");if(ni)for(var ri=ni.split(","),oi=0;oi0){var oi=ri.replace("'","\\'"),si=ni.tagName.replace(":","\\:"),ai=ii.querySelector(si+"[id='"+oi+"']");if(ai&&ai!==ii){var li=ni.cloneNode();we(ni,ai),ti.tasks.push(function(){we(ni,li)})}}})}function Oe(ii){return function(){n(ii,Q.config.addedClass),zt(ii),Nt(ii),qe(ii),ce(ii,"htmx:load")}}function qe(ii){var ei="[autofocus]",ti=h(ii,ei)?ii:ii.querySelector(ei);ti!=null&&ti.focus()}function a(ii,ei,ti,ni){for(Te(ii,ti,ni);ti.childNodes.length>0;){var ri=ti.firstChild;z(ri,Q.config.addedClass),ii.insertBefore(ri,ei),ri.nodeType!==Node.TEXT_NODE&&ri.nodeType!==Node.COMMENT_NODE&&ni.tasks.push(Oe(ri))}}function He(ii,ei){for(var ti=0;ti-1){var ei=ii.replace(H,""),ti=ei.match(q);if(ti)return ti[2]}}function je(ii,ei,ti,ni,ri,oi){ri.title=Ve(ni);var si=l(ni);if(si)return Ce(ti,si,ri),si=Be(ti,si,oi),Re(si),Fe(ii,ti,ei,si,ri)}function _e(ii,ei,ti){var ni=ii.getResponseHeader(ei);if(ni.indexOf("{")===0){var ri=E(ni);for(var oi in ri)if(ri.hasOwnProperty(oi)){var si=ri[oi];P(si)||(si={value:si}),ce(ti,oi,si)}}else for(var ai=ni.split(","),li=0;li0;){var si=ei[0];if(si==="]"){if(ni--,ni===0){oi===null&&(ri=ri+"true"),ei.shift(),ri+=")})";try{var ai=Tr(ii,function(){return Function(ri)()},function(){return!0});return ai.source=ri,ai}catch(li){return fe(re().body,"htmx:syntax:error",{error:li,source:ri}),null}}}else si==="["&&ni++;Qe(si,oi,ti)?ri+="(("+ti+"."+si+") ? ("+ti+"."+si+") : (window."+si+"))":ri=ri+si,oi=ei.shift()}}}function y(ii,ei){for(var ti="";ii.length>0&&!ei.test(ii[0]);)ti+=ii.shift();return ti}function tt(ii){var ei;return ii.length>0&&Ze.test(ii[0])?(ii.shift(),ei=y(ii,Ke).trim(),ii.shift()):ei=y(ii,x),ei}var rt="input, textarea, select";function nt(ii,ei,ti){var ni=[],ri=Ye(ei);do{y(ri,Je);var oi=ri.length,si=y(ri,/[,\[\s]/);if(si!=="")if(si==="every"){var ai={trigger:"every"};y(ri,Je),ai.pollInterval=d(y(ri,/[,\[\s]/)),y(ri,Je);var li=et(ii,ri,"event");li&&(ai.eventFilter=li),ni.push(ai)}else if(si.indexOf("sse:")===0)ni.push({trigger:"sse",sseEvent:si.substr(4)});else{var ui={trigger:si},li=et(ii,ri,"event");for(li&&(ui.eventFilter=li);ri.length>0&&ri[0]!==",";){y(ri,Je);var ci=ri.shift();if(ci==="changed")ui.changed=!0;else if(ci==="once")ui.once=!0;else if(ci==="consume")ui.consume=!0;else if(ci==="delay"&&ri[0]===":")ri.shift(),ui.delay=d(y(ri,x));else if(ci==="from"&&ri[0]===":"){if(ri.shift(),Ze.test(ri[0]))var di=tt(ri);else{var di=y(ri,x);if(di==="closest"||di==="find"||di==="next"||di==="previous"){ri.shift();var pi=tt(ri);pi.length>0&&(di+=" "+pi)}}ui.from=di}else ci==="target"&&ri[0]===":"?(ri.shift(),ui.target=tt(ri)):ci==="throttle"&&ri[0]===":"?(ri.shift(),ui.throttle=d(y(ri,x))):ci==="queue"&&ri[0]===":"?(ri.shift(),ui.queue=y(ri,x)):ci==="root"&&ri[0]===":"?(ri.shift(),ui[ci]=tt(ri)):ci==="threshold"&&ri[0]===":"?(ri.shift(),ui[ci]=y(ri,x)):fe(ii,"htmx:syntax:error",{token:ri.shift()})}ni.push(ui)}ri.length===oi&&fe(ii,"htmx:syntax:error",{token:ri.shift()}),y(ri,Je)}while(ri[0]===","&&ri.shift());return ti&&(ti[ei]=ni),ni}function it(ii){var ei=te(ii,"hx-trigger"),ti=[];if(ei){var ni=Q.config.triggerSpecsCache;ti=ni&&ni[ei]||nt(ii,ei,ni)}return ti.length>0?ti:h(ii,"form")?[{trigger:"submit"}]:h(ii,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:h(ii,rt)?[{trigger:"change"}]:[{trigger:"click"}]}function at(ii){ae(ii).cancelled=!0}function ot(ii,ei,ti){var ni=ae(ii);ni.timeout=setTimeout(function(){se(ii)&&ni.cancelled!==!0&&(ct(ti,ii,Wt("hx:poll:trigger",{triggerSpec:ti,target:ii}))||ei(ii),ot(ii,ei,ti))},ti.pollInterval)}function st(ii){return location.hostname===ii.hostname&&ee(ii,"href")&&ee(ii,"href").indexOf("#")!==0}function lt(ii,ei,ti){if(ii.tagName==="A"&&st(ii)&&(ii.target===""||ii.target==="_self")||ii.tagName==="FORM"){ei.boosted=!0;var ni,ri;if(ii.tagName==="A")ni="get",ri=ee(ii,"href");else{var oi=ee(ii,"method");ni=oi?oi.toLowerCase():"get",ri=ee(ii,"action")}ti.forEach(function(si){ht(ii,function(ai,li){if(v(ai,Q.config.disableSelector)){m(ai);return}he(ni,ri,ai,li)},ei,si,!0)})}}function ut(ii,ei){return!!((ii.type==="submit"||ii.type==="click")&&(ei.tagName==="FORM"||h(ei,'input[type="submit"], button')&&v(ei,"form")!==null||ei.tagName==="A"&&ei.href&&(ei.getAttribute("href")==="#"||ei.getAttribute("href").indexOf("#")!==0)))}function ft(ii,ei){return ae(ii).boosted&&ii.tagName==="A"&&ei.type==="click"&&(ei.ctrlKey||ei.metaKey)}function ct(ii,ei,ti){var ni=ii.eventFilter;if(ni)try{return ni.call(ei,ti)!==!0}catch(ri){return fe(re().body,"htmx:eventFilter:error",{error:ri,source:ni.source}),!0}return!1}function ht(ii,ei,ti,ni,ri){var oi=ae(ii),si;ni.from?si=Z(ii,ni.from):si=[ii],ni.changed&&si.forEach(function(ai){var li=ae(ai);li.lastValue=ai.value}),oe(si,function(ai){var li=function(ui){if(!se(ii)){ai.removeEventListener(ni.trigger,li);return}if(!ft(ii,ui)&&((ri||ut(ui,ii))&&ui.preventDefault(),!ct(ni,ii,ui))){var ci=ae(ui);if(ci.triggerSpec=ni,ci.handledFor==null&&(ci.handledFor=[]),ci.handledFor.indexOf(ii)<0){if(ci.handledFor.push(ii),ni.consume&&ui.stopPropagation(),ni.target&&ui.target&&!h(ui.target,ni.target))return;if(ni.once){if(oi.triggeredOnce)return;oi.triggeredOnce=!0}if(ni.changed){var di=ae(ai);if(di.lastValue===ai.value)return;di.lastValue=ai.value}if(oi.delayed&&clearTimeout(oi.delayed),oi.throttle)return;ni.throttle>0?oi.throttle||(ei(ii,ui),oi.throttle=setTimeout(function(){oi.throttle=null},ni.throttle)):ni.delay>0?oi.delayed=setTimeout(function(){ei(ii,ui)},ni.delay):(ce(ii,"htmx:trigger"),ei(ii,ui))}}};ti.listenerInfos==null&&(ti.listenerInfos=[]),ti.listenerInfos.push({trigger:ni.trigger,listener:li,on:ai}),ai.addEventListener(ni.trigger,li)})}var vt=!1,dt=null;function gt(){dt||(dt=function(){vt=!0},window.addEventListener("scroll",dt),setInterval(function(){vt&&(vt=!1,oe(re().querySelectorAll("[hx-trigger='revealed'],[data-hx-trigger='revealed']"),function(ii){pt(ii)}))},200))}function pt(ii){if(!o(ii,"data-hx-revealed")&&X(ii)){ii.setAttribute("data-hx-revealed","true");var ei=ae(ii);ei.initHash?ce(ii,"revealed"):ii.addEventListener("htmx:afterProcessNode",function(ti){ce(ii,"revealed")},{once:!0})}}function mt(ii,ei,ti){for(var ni=D(ti),ri=0;ri=0){var si=wt(ti);setTimeout(function(){xt(ii,ei,ti+1)},si)}},ri.onopen=function(oi){ti=0},ae(ii).webSocket=ri,ri.addEventListener("message",function(oi){if(!yt(ii)){var si=oi.data;R(ii,function(pi){si=pi.transformResponse(si,null,ii)});for(var ai=T(ii),li=l(si),ui=M(li.children),ci=0;ci0){ce(ii,"htmx:validation:halted",si);return}ni.send(JSON.stringify(ci)),ut(ti,ii)&&ti.preventDefault()}):fe(ii,"htmx:noWebSocketSourceError")}function wt(ii){var ei=Q.config.wsReconnectDelay;if(typeof ei=="function")return ei(ii);if(ei==="full-jitter"){var ti=Math.min(ii,6),ni=1e3*Math.pow(2,ti);return ni*Math.random()}b('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"')}function St(ii,ei,ti){for(var ni=D(ti),ri=0;ri0?setTimeout(ri,ni):ri()}function Ht(ii,ei,ti){var ni=!1;return oe(w,function(ri){if(o(ii,"hx-"+ri)){var oi=te(ii,"hx-"+ri);ni=!0,ei.path=oi,ei.verb=ri,ti.forEach(function(si){Lt(ii,si,ei,function(ai,li){if(v(ai,Q.config.disableSelector)){m(ai);return}he(ri,oi,ai,li)})})}}),ni}function Lt(ii,ei,ti,ni){if(ei.sseEvent)Rt(ii,ni,ei.sseEvent);else if(ei.trigger==="revealed")gt(),ht(ii,ni,ti,ei),pt(ii);else if(ei.trigger==="intersect"){var ri={};ei.root&&(ri.root=ue(ii,ei.root)),ei.threshold&&(ri.threshold=parseFloat(ei.threshold));var oi=new IntersectionObserver(function(si){for(var ai=0;ai0?(ti.polling=!0,ot(ii,ni,ei)):ht(ii,ni,ti,ei)}function At(ii){if(!ii.htmxExecuted&&Q.config.allowScriptTags&&(ii.type==="text/javascript"||ii.type==="module"||ii.type==="")){var ei=re().createElement("script");oe(ii.attributes,function(ni){ei.setAttribute(ni.name,ni.value)}),ei.textContent=ii.textContent,ei.async=!1,Q.config.inlineScriptNonce&&(ei.nonce=Q.config.inlineScriptNonce);var ti=ii.parentElement;try{ti.insertBefore(ei,ii)}catch(ni){b(ni)}finally{ii.parentElement&&ii.parentElement.removeChild(ii)}}}function Nt(ii){h(ii,"script")&&At(ii),oe(f(ii,"script"),function(ei){At(ei)})}function It(ii){var ei=ii.attributes;if(!ei)return!1;for(var ti=0;ti0;){var si=ni.shift(),ai=si.match(/^\s*([a-zA-Z:\-\.]+:)(.*)/);oi===0&&ai?(si.split(":"),ri=ai[1].slice(0,-1),ti[ri]=ai[2]):ti[ri]+=si,oi+=Bt(si)}for(var li in ti)Ft(ii,li,ti[li])}}function jt(ii){Ae(ii);for(var ei=0;eiQ.config.historyCacheSize;)ri.shift();for(;ri.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(ri));break}catch(ai){fe(re().body,"htmx:historyCacheError",{cause:ai,cache:ri}),ri.shift()}}}function Yt(ii){if(!U())return null;ii=B(ii);for(var ei=E(localStorage.getItem("htmx-history-cache"))||[],ti=0;ti=200&&this.status<400){ce(re().body,"htmx:historyCacheMissLoad",ti);var ni=l(this.response);ni=ni.querySelector("[hx-history-elt],[data-hx-history-elt]")||ni;var ri=Zt(),oi=T(ri),si=Ve(this.response);if(si){var ai=C("title");ai?ai.innerHTML=si:window.document.title=si}Ue(ri,ni,oi),nr(oi.tasks),Jt=ii,ce(re().body,"htmx:historyRestore",{path:ii,cacheMiss:!0,serverResponse:this.response})}else fe(re().body,"htmx:historyCacheMissLoadError",ti)},ei.send()}function ar(ii){er(),ii=ii||location.pathname+location.search;var ei=Yt(ii);if(ei){var ti=l(ei.content),ni=Zt(),ri=T(ni);Ue(ni,ti,ri),nr(ri.tasks),document.title=ei.title,setTimeout(function(){window.scrollTo(0,ei.scroll)},0),Jt=ii,ce(re().body,"htmx:historyRestore",{path:ii,item:ei})}else Q.config.refreshOnHistoryMiss?window.location.reload(!0):ir(ii)}function or(ii){var ei=me(ii,"hx-indicator");return ei==null&&(ei=[ii]),oe(ei,function(ti){var ni=ae(ti);ni.requestCount=(ni.requestCount||0)+1,ti.classList.add.call(ti.classList,Q.config.requestClass)}),ei}function sr(ii){var ei=me(ii,"hx-disabled-elt");return ei==null&&(ei=[]),oe(ei,function(ti){var ni=ae(ti);ni.requestCount=(ni.requestCount||0)+1,ti.setAttribute("disabled","")}),ei}function lr(ii,ei){oe(ii,function(ti){var ni=ae(ti);ni.requestCount=(ni.requestCount||0)-1,ni.requestCount===0&&ti.classList.remove.call(ti.classList,Q.config.requestClass)}),oe(ei,function(ti){var ni=ae(ti);ni.requestCount=(ni.requestCount||0)-1,ni.requestCount===0&&ti.removeAttribute("disabled")})}function ur(ii,ei){for(var ti=0;ti=0}function wr(ii,ei){var ti=ei||ne(ii,"hx-swap"),ni={swapStyle:ae(ii).boosted?"innerHTML":Q.config.defaultSwapStyle,swapDelay:Q.config.defaultSwapDelay,settleDelay:Q.config.defaultSettleDelay};if(Q.config.scrollIntoViewOnBoost&&ae(ii).boosted&&!br(ii)&&(ni.show="top"),ti){var ri=D(ti);if(ri.length>0)for(var oi=0;oi0?li.join(":"):null;ni.scroll=ui,ni.scrollTarget=ci}else if(si.indexOf("show:")===0){var di=si.substr(5),li=di.split(":"),pi=li.pop(),ci=li.length>0?li.join(":"):null;ni.show=pi,ni.showTarget=ci}else if(si.indexOf("focus-scroll:")===0){var yi=si.substr(13);ni.focusScroll=yi=="true"}else oi==0?ni.swapStyle=si:b("Unknown modifier in hx-swap: "+si)}}return ni}function Sr(ii){return ne(ii,"hx-encoding")==="multipart/form-data"||h(ii,"form")&&ee(ii,"enctype")==="multipart/form-data"}function Er(ii,ei,ti){var ni=null;return R(ei,function(ri){ni==null&&(ni=ri.encodeParameters(ii,ti,ei))}),ni!=null?ni:Sr(ei)?mr(ti):pr(ti)}function T(ii){return{tasks:[],elts:[ii]}}function Cr(ii,ei){var ti=ii[0],ni=ii[ii.length-1];if(ei.scroll){var ri=null;ei.scrollTarget&&(ri=ue(ti,ei.scrollTarget)),ei.scroll==="top"&&(ti||ri)&&(ri=ri||ti,ri.scrollTop=0),ei.scroll==="bottom"&&(ni||ri)&&(ri=ri||ni,ri.scrollTop=ri.scrollHeight)}if(ei.show){var ri=null;if(ei.showTarget){var oi=ei.showTarget;ei.showTarget==="window"&&(oi="body"),ri=ue(ti,oi)}ei.show==="top"&&(ti||ri)&&(ri=ri||ti,ri.scrollIntoView({block:"start",behavior:Q.config.scrollBehavior})),ei.show==="bottom"&&(ni||ri)&&(ri=ri||ni,ri.scrollIntoView({block:"end",behavior:Q.config.scrollBehavior}))}}function Rr(ii,ei,ti,ni){if(ni==null&&(ni={}),ii==null)return ni;var ri=te(ii,ei);if(ri){var oi=ri.trim(),si=ti;if(oi==="unset")return null;oi.indexOf("javascript:")===0?(oi=oi.substr(11),si=!0):oi.indexOf("js:")===0&&(oi=oi.substr(3),si=!0),oi.indexOf("{")!==0&&(oi="{"+oi+"}");var ai;si?ai=Tr(ii,function(){return Function("return ("+oi+")")()},{}):ai=E(oi);for(var li in ai)ai.hasOwnProperty(li)&&ni[li]==null&&(ni[li]=ai[li])}return Rr(u(ii),ei,ti,ni)}function Tr(ii,ei,ti){return Q.config.allowEval?ei():(fe(ii,"htmx:evalDisallowedError"),ti)}function Or(ii,ei){return Rr(ii,"hx-vars",!0,ei)}function qr(ii,ei){return Rr(ii,"hx-vals",!1,ei)}function Hr(ii){return le(Or(ii),qr(ii))}function Lr(ii,ei,ti){if(ti!==null)try{ii.setRequestHeader(ei,ti)}catch(ni){ii.setRequestHeader(ei,encodeURIComponent(ti)),ii.setRequestHeader(ei+"-URI-AutoEncoded","true")}}function Ar(ii){if(ii.responseURL&&typeof URL!="undefined")try{var ei=new URL(ii.responseURL);return ei.pathname+ei.search}catch(ti){fe(re().body,"htmx:badResponseUrl",{url:ii.responseURL})}}function O(ii,ei){return ei.test(ii.getAllResponseHeaders())}function Nr(ii,ei,ti){return ii=ii.toLowerCase(),ti?ti instanceof Element||I(ti,"String")?he(ii,ei,null,null,{targetOverride:p(ti),returnPromise:!0}):he(ii,ei,p(ti.source),ti.event,{handler:ti.handler,headers:ti.headers,values:ti.values,targetOverride:p(ti.target),swapOverride:ti.swap,select:ti.select,returnPromise:!0}):he(ii,ei,null,null,{returnPromise:!0})}function Ir(ii){for(var ei=[];ii;)ei.push(ii),ii=ii.parentElement;return ei}function kr(ii,ei,ti){var ni,ri;if(typeof URL=="function"){ri=new URL(ei,document.location.href);var oi=document.location.origin;ni=oi===ri.origin}else ri=ei,ni=g(ei,document.location.origin);return Q.config.selfRequestsOnly&&!ni?!1:ce(ii,"htmx:validateUrl",le({url:ri,sameHost:ni},ti))}function he(ii,ei,ti,ni,ri,oi){var si=null,ai=null;if(ri=ri!=null?ri:{},ri.returnPromise&&typeof Promise!="undefined")var li=new Promise(function(On,zn){si=On,ai=zn});ti==null&&(ti=re().body);var ui=ri.handler||Mr,ci=ri.select||null;if(!se(ti))return ie(si),li;var di=ri.targetOverride||ye(ti);if(di==null||di==pe)return fe(ti,"htmx:targetError",{target:te(ti,"hx-target")}),ie(ai),li;var pi=ae(ti),yi=pi.lastButtonClicked;if(yi){var gi=ee(yi,"formaction");gi!=null&&(ei=gi);var vi=ee(yi,"formmethod");vi!=null&&vi.toLowerCase()!=="dialog"&&(ii=vi)}var Ei=ne(ti,"hx-confirm");if(oi===void 0){var Si=function(On){return he(ii,ei,ti,ni,ri,!!On)},xi={target:di,elt:ti,path:ei,verb:ii,triggeringEvent:ni,etc:ri,issueRequest:Si,question:Ei};if(ce(ti,"htmx:confirm",xi)===!1)return ie(si),li}var Li=ti,Oi=ne(ti,"hx-sync"),zi=null,Vi=!1;if(Oi){var ki=Oi.split(":"),Mi=ki[0].trim();if(Mi==="this"?Li=xe(ti,"hx-sync"):Li=ue(ti,Mi),Oi=(ki[1]||"drop").trim(),pi=ae(Li),Oi==="drop"&&pi.xhr&&pi.abortable!==!0)return ie(si),li;if(Oi==="abort"){if(pi.xhr)return ie(si),li;Vi=!0}else if(Oi==="replace")ce(Li,"htmx:abort");else if(Oi.indexOf("queue")===0){var Ai=Oi.split(" ");zi=(Ai[1]||"last").trim()}}if(pi.xhr)if(pi.abortable)ce(Li,"htmx:abort");else{if(zi==null){if(ni){var qi=ae(ni);qi&&qi.triggerSpec&&qi.triggerSpec.queue&&(zi=qi.triggerSpec.queue)}zi==null&&(zi="last")}return pi.queuedRequests==null&&(pi.queuedRequests=[]),zi==="first"&&pi.queuedRequests.length===0?pi.queuedRequests.push(function(){he(ii,ei,ti,ni,ri)}):zi==="all"?pi.queuedRequests.push(function(){he(ii,ei,ti,ni,ri)}):zi==="last"&&(pi.queuedRequests=[],pi.queuedRequests.push(function(){he(ii,ei,ti,ni,ri)})),ie(si),li}var Ci=new XMLHttpRequest;pi.xhr=Ci,pi.abortable=Vi;var Qi=function(){if(pi.xhr=null,pi.abortable=!1,pi.queuedRequests!=null&&pi.queuedRequests.length>0){var On=pi.queuedRequests.shift();On()}},Ji=ne(ti,"hx-prompt");if(Ji){var gn=prompt(Ji);if(gn===null||!ce(ti,"htmx:prompt",{prompt:gn,target:di}))return ie(si),Qi(),li}if(Ei&&!oi&&!confirm(Ei))return ie(si),Qi(),li;var rn=xr(ti,di,gn);ii!=="get"&&!Sr(ti)&&(rn["Content-Type"]="application/x-www-form-urlencoded"),ri.headers&&(rn=le(rn,ri.headers));var Zi=dr(ti,ii),on=Zi.errors,Mn=Zi.values;ri.values&&(Mn=le(Mn,ri.values));var vn=Hr(ti),Yi=le(Mn,vn),Ri=yr(Yi,ti);Q.config.getCacheBusterParam&&ii==="get"&&(Ri["org.htmx.cache-buster"]=ee(di,"id")||"true"),(ei==null||ei==="")&&(ei=re().location.href);var Ii=Rr(ti,"hx-request"),Ui=ae(ti).boosted,ji=Q.config.methodsThatUseUrlParams.indexOf(ii)>=0,Pi={boosted:Ui,useUrlParams:ji,parameters:Ri,unfilteredParameters:Yi,headers:rn,target:di,verb:ii,errors:on,withCredentials:ri.credentials||Ii.credentials||Q.config.withCredentials,timeout:ri.timeout||Ii.timeout||Q.config.timeout,path:ei,triggeringEvent:ni};if(!ce(ti,"htmx:configRequest",Pi))return ie(si),Qi(),li;if(ei=Pi.path,ii=Pi.verb,rn=Pi.headers,Ri=Pi.parameters,on=Pi.errors,ji=Pi.useUrlParams,on&&on.length>0)return ce(ti,"htmx:validation:halted",Pi),ie(si),Qi(),li;var ln=ei.split("#"),kn=ln[0],yn=ln[1],Sn=ei;if(ji){Sn=kn;var $s=Object.keys(Ri).length!==0;$s&&(Sn.indexOf("?")<0?Sn+="?":Sn+="&",Sn+=pr(Ri),yn&&(Sn+="#"+yn))}if(!kr(ti,Sn,Pi))return fe(ti,"htmx:invalidPath",Pi),ie(ai),li;if(Ci.open(ii.toUpperCase(),Sn,!0),Ci.overrideMimeType("text/html"),Ci.withCredentials=Pi.withCredentials,Ci.timeout=Pi.timeout,!Ii.noHeaders){for(var ro in rn)if(rn.hasOwnProperty(ro)){var wo=rn[ro];Lr(Ci,ro,wo)}}var bn={xhr:Ci,target:di,requestConfig:Pi,etc:ri,boosted:Ui,select:ci,pathInfo:{requestPath:ei,finalRequestPath:Sn,anchor:yn}};if(Ci.onload=function(){try{var On=Ir(ti);if(bn.pathInfo.responsePath=Ar(Ci),ui(ti,bn),lr(xo,ao),ce(ti,"htmx:afterRequest",bn),ce(ti,"htmx:afterOnLoad",bn),!se(ti)){for(var zn=null;On.length>0&&zn==null;){var Gn=On.shift();se(Gn)&&(zn=Gn)}zn&&(ce(zn,"htmx:afterRequest",bn),ce(zn,"htmx:afterOnLoad",bn))}ie(si),Qi()}catch(Jn){throw fe(ti,"htmx:onLoadError",le({error:Jn},bn)),Jn}},Ci.onerror=function(){lr(xo,ao),fe(ti,"htmx:afterRequest",bn),fe(ti,"htmx:sendError",bn),ie(ai),Qi()},Ci.onabort=function(){lr(xo,ao),fe(ti,"htmx:afterRequest",bn),fe(ti,"htmx:sendAbort",bn),ie(ai),Qi()},Ci.ontimeout=function(){lr(xo,ao),fe(ti,"htmx:afterRequest",bn),fe(ti,"htmx:timeout",bn),ie(ai),Qi()},!ce(ti,"htmx:beforeRequest",bn))return ie(si),Qi(),li;var xo=or(ti),ao=sr(ti);oe(["loadstart","loadend","progress","abort"],function(On){oe([Ci,Ci.upload],function(zn){zn.addEventListener(On,function(Gn){ce(ti,"htmx:xhr:"+On,{lengthComputable:Gn.lengthComputable,loaded:Gn.loaded,total:Gn.total})})})}),ce(ti,"htmx:beforeSend",bn);var ls=ji?null:Er(Ci,ti,Ri);return Ci.send(ls),li}function Pr(ii,ei){var ti=ei.xhr,ni=null,ri=null;if(O(ti,/HX-Push:/i)?(ni=ti.getResponseHeader("HX-Push"),ri="push"):O(ti,/HX-Push-Url:/i)?(ni=ti.getResponseHeader("HX-Push-Url"),ri="push"):O(ti,/HX-Replace-Url:/i)&&(ni=ti.getResponseHeader("HX-Replace-Url"),ri="replace"),ni)return ni==="false"?{}:{type:ri,path:ni};var oi=ei.pathInfo.finalRequestPath,si=ei.pathInfo.responsePath,ai=ne(ii,"hx-push-url"),li=ne(ii,"hx-replace-url"),ui=ae(ii).boosted,ci=null,di=null;return ai?(ci="push",di=ai):li?(ci="replace",di=li):ui&&(ci="push",di=si||oi),di?di==="false"?{}:(di==="true"&&(di=si||oi),ei.pathInfo.anchor&&di.indexOf("#")===-1&&(di=di+"#"+ei.pathInfo.anchor),{type:ci,path:di}):{}}function Mr(ii,ei){var ti=ei.xhr,ni=ei.target,ri=ei.etc,oi=ei.requestConfig,si=ei.select;if(ce(ii,"htmx:beforeOnLoad",ei)){if(O(ti,/HX-Trigger:/i)&&_e(ti,"HX-Trigger",ii),O(ti,/HX-Location:/i)){er();var ai=ti.getResponseHeader("HX-Location"),li;ai.indexOf("{")===0&&(li=E(ai),ai=li.path,delete li.path),Nr("GET",ai,li).then(function(){tr(ai)});return}var ui=O(ti,/HX-Refresh:/i)&&ti.getResponseHeader("HX-Refresh")==="true";if(O(ti,/HX-Redirect:/i)){location.href=ti.getResponseHeader("HX-Redirect"),ui&&location.reload();return}if(ui){location.reload();return}O(ti,/HX-Retarget:/i)&&(ti.getResponseHeader("HX-Retarget")==="this"?ei.target=ii:ei.target=ue(ii,ti.getResponseHeader("HX-Retarget")));var ci=Pr(ii,ei),di=ti.status>=200&&ti.status<400&&ti.status!==204,pi=ti.response,yi=ti.status>=400,gi=Q.config.ignoreTitle,vi=le({shouldSwap:di,serverResponse:pi,isError:yi,ignoreTitle:gi},ei);if(ce(ni,"htmx:beforeSwap",vi)){if(ni=vi.target,pi=vi.serverResponse,yi=vi.isError,gi=vi.ignoreTitle,ei.target=ni,ei.failed=yi,ei.successful=!yi,vi.shouldSwap){ti.status===286&&at(ii),R(ii,function(Mi){pi=Mi.transformResponse(pi,ti,ii)}),ci.type&&er();var Ei=ri.swapOverride;O(ti,/HX-Reswap:/i)&&(Ei=ti.getResponseHeader("HX-Reswap"));var li=wr(ii,Ei);li.hasOwnProperty("ignoreTitle")&&(gi=li.ignoreTitle),ni.classList.add(Q.config.swappingClass);var Si=null,xi=null,Li=function(){try{var Mi=document.activeElement,Ai={};try{Ai={elt:Mi,start:Mi?Mi.selectionStart:null,end:Mi?Mi.selectionEnd:null}}catch(Zi){}var qi;si&&(qi=si),O(ti,/HX-Reselect:/i)&&(qi=ti.getResponseHeader("HX-Reselect")),ci.type&&(ce(re().body,"htmx:beforeHistoryUpdate",le({history:ci},ei)),ci.type==="push"?(tr(ci.path),ce(re().body,"htmx:pushedIntoHistory",{path:ci.path})):(rr(ci.path),ce(re().body,"htmx:replacedInHistory",{path:ci.path})));var Ci=T(ni);if(je(li.swapStyle,ni,ii,pi,Ci,qi),Ai.elt&&!se(Ai.elt)&&ee(Ai.elt,"id")){var Qi=document.getElementById(ee(Ai.elt,"id")),Ji={preventScroll:li.focusScroll!==void 0?!li.focusScroll:!Q.config.defaultFocusScroll};if(Qi){if(Ai.start&&Qi.setSelectionRange)try{Qi.setSelectionRange(Ai.start,Ai.end)}catch(Zi){}Qi.focus(Ji)}}if(ni.classList.remove(Q.config.swappingClass),oe(Ci.elts,function(Zi){Zi.classList&&Zi.classList.add(Q.config.settlingClass),ce(Zi,"htmx:afterSwap",ei)}),O(ti,/HX-Trigger-After-Swap:/i)){var gn=ii;se(ii)||(gn=re().body),_e(ti,"HX-Trigger-After-Swap",gn)}var rn=function(){if(oe(Ci.tasks,function(vn){vn.call()}),oe(Ci.elts,function(vn){vn.classList&&vn.classList.remove(Q.config.settlingClass),ce(vn,"htmx:afterSettle",ei)}),ei.pathInfo.anchor){var Zi=re().getElementById(ei.pathInfo.anchor);Zi&&Zi.scrollIntoView({block:"start",behavior:"auto"})}if(Ci.title&&!gi){var on=C("title");on?on.innerHTML=Ci.title:window.document.title=Ci.title}if(Cr(Ci.elts,li),O(ti,/HX-Trigger-After-Settle:/i)){var Mn=ii;se(ii)||(Mn=re().body),_e(ti,"HX-Trigger-After-Settle",Mn)}ie(Si)};li.settleDelay>0?setTimeout(rn,li.settleDelay):rn()}catch(Zi){throw fe(ii,"htmx:swapError",ei),ie(xi),Zi}},Oi=Q.config.globalViewTransitions;if(li.hasOwnProperty("transition")&&(Oi=li.transition),Oi&&ce(ii,"htmx:beforeTransition",ei)&&typeof Promise!="undefined"&&document.startViewTransition){var zi=new Promise(function(Mi,Ai){Si=Mi,xi=Ai}),Vi=Li;Li=function(){document.startViewTransition(function(){return Vi(),zi})}}li.swapDelay>0?setTimeout(Li,li.swapDelay):Li()}yi&&fe(ii,"htmx:responseError",le({error:"Response Status Error Code "+ti.status+" from "+ei.pathInfo.requestPath},ei))}}}var Xr={};function Dr(){return{init:function(ii){return null},onEvent:function(ii,ei){return!0},transformResponse:function(ii,ei,ti){return ii},isInlineSwap:function(ii){return!1},handleSwap:function(ii,ei,ti,ni){return!1},encodeParameters:function(ii,ei,ti){return null}}}function Ur(ii,ei){ei.init&&ei.init(r),Xr[ii]=le(Dr(),ei)}function Br(ii){delete Xr[ii]}function Fr(ii,ei,ti){if(ii==null)return ei;ei==null&&(ei=[]),ti==null&&(ti=[]);var ni=te(ii,"hx-ext");return ni&&oe(ni.split(","),function(ri){if(ri=ri.replace(/ /g,""),ri.slice(0,7)=="ignore:"){ti.push(ri.slice(7));return}if(ti.indexOf(ri)<0){var oi=Xr[ri];oi&&ei.indexOf(oi)<0&&ei.push(oi)}}),Fr(u(ii),ei,ti)}var Vr=!1;re().addEventListener("DOMContentLoaded",function(){Vr=!0});function jr(ii){Vr||re().readyState==="complete"?ii():re().addEventListener("DOMContentLoaded",ii)}function _r(){Q.config.includeIndicatorStyles!==!1&&re().head.insertAdjacentHTML("beforeend","")}function zr(){var ii=re().querySelector('meta[name="htmx-config"]');return ii?E(ii.content):null}function $r(){var ii=zr();ii&&(Q.config=le(Q.config,ii))}return jr(function(){$r(),_r();var ii=re().body;zt(ii);var ei=re().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");ii.addEventListener("htmx:abort",function(ni){var ri=ni.target,oi=ae(ri);oi&&oi.xhr&&oi.xhr.abort()});let ti=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(ni){ni.state&&ni.state.htmx?(ar(),oe(ei,function(ri){ce(ri,"htmx:restored",{document:re(),triggerEvent:ce})})):ti&&ti(ni)},setTimeout(function(){ce(ii,"htmx:load",{}),ii=null},0)}),Q}()})});var fh=au((va,Uc)=>{(function(ei,ti){typeof va=="object"&&typeof Uc=="object"?Uc.exports=ti():typeof define=="function"&&define.amd?define([],ti):typeof va=="object"?va.ClipboardJS=ti():ei.ClipboardJS=ti()})(va,function(){return function(){var ii={686:function(ni,ri,oi){"use strict";oi.d(ri,{default:function(){return vn}});var si=oi(279),ai=oi.n(si),li=oi(370),ui=oi.n(li),ci=oi(817),di=oi.n(ci);function pi(Yi){try{return document.execCommand(Yi)}catch(Ri){return!1}}var yi=function(Ri){var Ii=di()(Ri);return pi("cut"),Ii},gi=yi;function vi(Yi){var Ri=document.documentElement.getAttribute("dir")==="rtl",Ii=document.createElement("textarea");Ii.style.fontSize="12pt",Ii.style.border="0",Ii.style.padding="0",Ii.style.margin="0",Ii.style.position="absolute",Ii.style[Ri?"right":"left"]="-9999px";var Ui=window.pageYOffset||document.documentElement.scrollTop;return Ii.style.top="".concat(Ui,"px"),Ii.setAttribute("readonly",""),Ii.value=Yi,Ii}var Ei=function(Ri,Ii){var Ui=vi(Ri);Ii.container.appendChild(Ui);var ji=di()(Ui);return pi("copy"),Ui.remove(),ji},Si=function(Ri){var Ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ui="";return typeof Ri=="string"?Ui=Ei(Ri,Ii):Ri instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Ri==null?void 0:Ri.type)?Ui=Ei(Ri.value,Ii):(Ui=di()(Ri),pi("copy")),Ui},xi=Si;function Li(Yi){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Li=function(Ii){return typeof Ii}:Li=function(Ii){return Ii&&typeof Symbol=="function"&&Ii.constructor===Symbol&&Ii!==Symbol.prototype?"symbol":typeof Ii},Li(Yi)}var Oi=function(){var Ri=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ii=Ri.action,Ui=Ii===void 0?"copy":Ii,ji=Ri.container,Pi=Ri.target,ln=Ri.text;if(Ui!=="copy"&&Ui!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Pi!==void 0)if(Pi&&Li(Pi)==="object"&&Pi.nodeType===1){if(Ui==="copy"&&Pi.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ui==="cut"&&(Pi.hasAttribute("readonly")||Pi.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ln)return xi(ln,{container:ji});if(Pi)return Ui==="cut"?gi(Pi):xi(Pi,{container:ji})},zi=Oi;function Vi(Yi){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vi=function(Ii){return typeof Ii}:Vi=function(Ii){return Ii&&typeof Symbol=="function"&&Ii.constructor===Symbol&&Ii!==Symbol.prototype?"symbol":typeof Ii},Vi(Yi)}function ki(Yi,Ri){if(!(Yi instanceof Ri))throw new TypeError("Cannot call a class as a function")}function Mi(Yi,Ri){for(var Ii=0;Ii0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ji.action=="function"?ji.action:this.defaultAction,this.target=typeof ji.target=="function"?ji.target:this.defaultTarget,this.text=typeof ji.text=="function"?ji.text:this.defaultText,this.container=Vi(ji.container)==="object"?ji.container:document.body}},{key:"listenClick",value:function(ji){var Pi=this;this.listener=ui()(ji,"click",function(ln){return Pi.onClick(ln)})}},{key:"onClick",value:function(ji){var Pi=ji.delegateTarget||ji.currentTarget,ln=this.action(Pi)||"copy",kn=zi({action:ln,container:this.container,target:this.target(Pi),text:this.text(Pi)});this.emit(kn?"success":"error",{action:ln,text:kn,trigger:Pi,clearSelection:function(){Pi&&Pi.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ji){return on("action",ji)}},{key:"defaultTarget",value:function(ji){var Pi=on("target",ji);if(Pi)return document.querySelector(Pi)}},{key:"defaultText",value:function(ji){return on("text",ji)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ji){var Pi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return xi(ji,Pi)}},{key:"cut",value:function(ji){return gi(ji)}},{key:"isSupported",value:function(){var ji=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Pi=typeof ji=="string"?[ji]:ji,ln=!!document.queryCommandSupported;return Pi.forEach(function(kn){ln=ln&&!!document.queryCommandSupported(kn)}),ln}}]),Ii}(ai()),vn=Mn},828:function(ni){var ri=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var oi=Element.prototype;oi.matches=oi.matchesSelector||oi.mozMatchesSelector||oi.msMatchesSelector||oi.oMatchesSelector||oi.webkitMatchesSelector}function si(ai,li){for(;ai&&ai.nodeType!==ri;){if(typeof ai.matches=="function"&&ai.matches(li))return ai;ai=ai.parentNode}}ni.exports=si},438:function(ni,ri,oi){var si=oi(828);function ai(ci,di,pi,yi,gi){var vi=ui.apply(this,arguments);return ci.addEventListener(pi,vi,gi),{destroy:function(){ci.removeEventListener(pi,vi,gi)}}}function li(ci,di,pi,yi,gi){return typeof ci.addEventListener=="function"?ai.apply(null,arguments):typeof pi=="function"?ai.bind(null,document).apply(null,arguments):(typeof ci=="string"&&(ci=document.querySelectorAll(ci)),Array.prototype.map.call(ci,function(vi){return ai(vi,di,pi,yi,gi)}))}function ui(ci,di,pi,yi){return function(gi){gi.delegateTarget=si(gi.target,di),gi.delegateTarget&&yi.call(ci,gi)}}ni.exports=li},879:function(ni,ri){ri.node=function(oi){return oi!==void 0&&oi instanceof HTMLElement&&oi.nodeType===1},ri.nodeList=function(oi){var si=Object.prototype.toString.call(oi);return oi!==void 0&&(si==="[object NodeList]"||si==="[object HTMLCollection]")&&"length"in oi&&(oi.length===0||ri.node(oi[0]))},ri.string=function(oi){return typeof oi=="string"||oi instanceof String},ri.fn=function(oi){var si=Object.prototype.toString.call(oi);return si==="[object Function]"}},370:function(ni,ri,oi){var si=oi(879),ai=oi(438);function li(pi,yi,gi){if(!pi&&!yi&&!gi)throw new Error("Missing required arguments");if(!si.string(yi))throw new TypeError("Second argument must be a String");if(!si.fn(gi))throw new TypeError("Third argument must be a Function");if(si.node(pi))return ui(pi,yi,gi);if(si.nodeList(pi))return ci(pi,yi,gi);if(si.string(pi))return di(pi,yi,gi);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function ui(pi,yi,gi){return pi.addEventListener(yi,gi),{destroy:function(){pi.removeEventListener(yi,gi)}}}function ci(pi,yi,gi){return Array.prototype.forEach.call(pi,function(vi){vi.addEventListener(yi,gi)}),{destroy:function(){Array.prototype.forEach.call(pi,function(vi){vi.removeEventListener(yi,gi)})}}}function di(pi,yi,gi){return ai(document.body,pi,yi,gi)}ni.exports=li},817:function(ni){function ri(oi){var si;if(oi.nodeName==="SELECT")oi.focus(),si=oi.value;else if(oi.nodeName==="INPUT"||oi.nodeName==="TEXTAREA"){var ai=oi.hasAttribute("readonly");ai||oi.setAttribute("readonly",""),oi.select(),oi.setSelectionRange(0,oi.value.length),ai||oi.removeAttribute("readonly"),si=oi.value}else{oi.hasAttribute("contenteditable")&&oi.focus();var li=window.getSelection(),ui=document.createRange();ui.selectNodeContents(oi),li.removeAllRanges(),li.addRange(ui),si=li.toString()}return si}ni.exports=ri},279:function(ni){function ri(){}ri.prototype={on:function(oi,si,ai){var li=this.e||(this.e={});return(li[oi]||(li[oi]=[])).push({fn:si,ctx:ai}),this},once:function(oi,si,ai){var li=this;function ui(){li.off(oi,ui),si.apply(ai,arguments)}return ui._=si,this.on(oi,ui,ai)},emit:function(oi){var si=[].slice.call(arguments,1),ai=((this.e||(this.e={}))[oi]||[]).slice(),li=0,ui=ai.length;for(li;limu,afterRead:()=>fu,afterWrite:()=>yu,applyStyles:()=>ps,arrow:()=>Oa,auto:()=>js,basePlacements:()=>uo,beforeMain:()=>hu,beforeRead:()=>uu,beforeWrite:()=>gu,bottom:()=>_n,clippingParents:()=>$l,computeStyles:()=>gs,createPopper:()=>Js,createPopperBase:()=>Au,createPopperLite:()=>Du,detectOverflow:()=>Fn,end:()=>To,eventListeners:()=>vs,flip:()=>Na,hide:()=>Ra,left:()=>hn,main:()=>pu,modifierPhases:()=>zl,offset:()=>Ia,placements:()=>Ws,popper:()=>jo,popperGenerator:()=>Xo,popperOffsets:()=>_s,preventOverflow:()=>Ha,read:()=>du,reference:()=>Bl,right:()=>mn,start:()=>so,top:()=>dn,variationPlacements:()=>Da,viewport:()=>qs,write:()=>vu});var dn="top",_n="bottom",mn="right",hn="left",js="auto",uo=[dn,_n,mn,hn],so="start",To="end",$l="clippingParents",qs="viewport",jo="popper",Bl="reference",Da=uo.reduce(function(ii,ei){return ii.concat([ei+"-"+so,ei+"-"+To])},[]),Ws=[].concat(uo,[js]).reduce(function(ii,ei){return ii.concat([ei,ei+"-"+so,ei+"-"+To])},[]),uu="beforeRead",du="read",fu="afterRead",hu="beforeMain",pu="main",mu="afterMain",gu="beforeWrite",vu="write",yu="afterWrite",zl=[uu,du,fu,hu,pu,mu,gu,vu,yu];function An(ii){return ii?(ii.nodeName||"").toLowerCase():null}function cn(ii){if(ii==null)return window;if(ii.toString()!=="[object Window]"){var ei=ii.ownerDocument;return ei&&ei.defaultView||window}return ii}function Zn(ii){var ei=cn(ii).Element;return ii instanceof ei||ii instanceof Element}function Tn(ii){var ei=cn(ii).HTMLElement;return ii instanceof ei||ii instanceof HTMLElement}function hs(ii){if(typeof ShadowRoot=="undefined")return!1;var ei=cn(ii).ShadowRoot;return ii instanceof ei||ii instanceof ShadowRoot}function op(ii){var ei=ii.state;Object.keys(ei.elements).forEach(function(ti){var ni=ei.styles[ti]||{},ri=ei.attributes[ti]||{},oi=ei.elements[ti];!Tn(oi)||!An(oi)||(Object.assign(oi.style,ni),Object.keys(ri).forEach(function(si){var ai=ri[si];ai===!1?oi.removeAttribute(si):oi.setAttribute(si,ai===!0?"":ai)}))})}function sp(ii){var ei=ii.state,ti={popper:{position:ei.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(ei.elements.popper.style,ti.popper),ei.styles=ti,ei.elements.arrow&&Object.assign(ei.elements.arrow.style,ti.arrow),function(){Object.keys(ei.elements).forEach(function(ni){var ri=ei.elements[ni],oi=ei.attributes[ni]||{},si=Object.keys(ei.styles.hasOwnProperty(ni)?ei.styles[ni]:ti[ni]),ai=si.reduce(function(li,ui){return li[ui]="",li},{});!Tn(ri)||!An(ri)||(Object.assign(ri.style,ai),Object.keys(oi).forEach(function(li){ri.removeAttribute(li)}))})}}var ps={name:"applyStyles",enabled:!0,phase:"write",fn:op,effect:sp,requires:["computeStyles"]};function Dn(ii){return ii.split("-")[0]}var eo=Math.max,qo=Math.min,fo=Math.round;function ms(){var ii=navigator.userAgentData;return ii!=null&&ii.brands&&Array.isArray(ii.brands)?ii.brands.map(function(ei){return ei.brand+"/"+ei.version}).join(" "):navigator.userAgent}function Us(){return!/^((?!chrome|android).)*safari/i.test(ms())}function Wr(ii,ei,ti){ei===void 0&&(ei=!1),ti===void 0&&(ti=!1);var ni=ii.getBoundingClientRect(),ri=1,oi=1;ei&&Tn(ii)&&(ri=ii.offsetWidth>0&&fo(ni.width)/ii.offsetWidth||1,oi=ii.offsetHeight>0&&fo(ni.height)/ii.offsetHeight||1);var si=Zn(ii)?cn(ii):window,ai=si.visualViewport,li=!Us()&&ti,ui=(ni.left+(li&&ai?ai.offsetLeft:0))/ri,ci=(ni.top+(li&&ai?ai.offsetTop:0))/oi,di=ni.width/ri,pi=ni.height/oi;return{width:di,height:pi,top:ci,right:ui+di,bottom:ci+pi,left:ui,x:ui,y:ci}}function Wo(ii){var ei=Wr(ii),ti=ii.offsetWidth,ni=ii.offsetHeight;return Math.abs(ei.width-ti)<=1&&(ti=ei.width),Math.abs(ei.height-ni)<=1&&(ni=ei.height),{x:ii.offsetLeft,y:ii.offsetTop,width:ti,height:ni}}function Ys(ii,ei){var ti=ei.getRootNode&&ei.getRootNode();if(ii.contains(ei))return!0;if(ti&&hs(ti)){var ni=ei;do{if(ni&&ii.isSameNode(ni))return!0;ni=ni.parentNode||ni.host}while(ni)}return!1}function Pn(ii){return cn(ii).getComputedStyle(ii)}function Vl(ii){return["table","td","th"].indexOf(An(ii))>=0}function Ln(ii){return((Zn(ii)?ii.ownerDocument:ii.document)||window.document).documentElement}function ho(ii){return An(ii)==="html"?ii:ii.assignedSlot||ii.parentNode||(hs(ii)?ii.host:null)||Ln(ii)}function bu(ii){return!Tn(ii)||Pn(ii).position==="fixed"?null:ii.offsetParent}function ap(ii){var ei=/firefox/i.test(ms()),ti=/Trident/i.test(ms());if(ti&&Tn(ii)){var ni=Pn(ii);if(ni.position==="fixed")return null}var ri=ho(ii);for(hs(ri)&&(ri=ri.host);Tn(ri)&&["html","body"].indexOf(An(ri))<0;){var oi=Pn(ri);if(oi.transform!=="none"||oi.perspective!=="none"||oi.contain==="paint"||["transform","perspective"].indexOf(oi.willChange)!==-1||ei&&oi.willChange==="filter"||ei&&oi.filter&&oi.filter!=="none")return ri;ri=ri.parentNode}return null}function to(ii){for(var ei=cn(ii),ti=bu(ii);ti&&Vl(ti)&&Pn(ti).position==="static";)ti=bu(ti);return ti&&(An(ti)==="html"||An(ti)==="body"&&Pn(ti).position==="static")?ei:ti||ap(ii)||ei}function Uo(ii){return["top","bottom"].indexOf(ii)>=0?"x":"y"}function Yo(ii,ei,ti){return eo(ii,qo(ei,ti))}function _u(ii,ei,ti){var ni=Yo(ii,ei,ti);return ni>ti?ti:ni}function Gs(){return{top:0,right:0,bottom:0,left:0}}function Ks(ii){return Object.assign({},Gs(),ii)}function Qs(ii,ei){return ei.reduce(function(ti,ni){return ti[ni]=ii,ti},{})}var lp=function(ei,ti){return ei=typeof ei=="function"?ei(Object.assign({},ti.rects,{placement:ti.placement})):ei,Ks(typeof ei!="number"?ei:Qs(ei,uo))};function cp(ii){var ei,ti=ii.state,ni=ii.name,ri=ii.options,oi=ti.elements.arrow,si=ti.modifiersData.popperOffsets,ai=Dn(ti.placement),li=Uo(ai),ui=[hn,mn].indexOf(ai)>=0,ci=ui?"height":"width";if(!(!oi||!si)){var di=lp(ri.padding,ti),pi=Wo(oi),yi=li==="y"?dn:hn,gi=li==="y"?_n:mn,vi=ti.rects.reference[ci]+ti.rects.reference[li]-si[li]-ti.rects.popper[ci],Ei=si[li]-ti.rects.reference[li],Si=to(oi),xi=Si?li==="y"?Si.clientHeight||0:Si.clientWidth||0:0,Li=vi/2-Ei/2,Oi=di[yi],zi=xi-pi[ci]-di[gi],Vi=xi/2-pi[ci]/2+Li,ki=Yo(Oi,Vi,zi),Mi=li;ti.modifiersData[ni]=(ei={},ei[Mi]=ki,ei.centerOffset=ki-Vi,ei)}}function up(ii){var ei=ii.state,ti=ii.options,ni=ti.element,ri=ni===void 0?"[data-popper-arrow]":ni;ri!=null&&(typeof ri=="string"&&(ri=ei.elements.popper.querySelector(ri),!ri)||Ys(ei.elements.popper,ri)&&(ei.elements.arrow=ri))}var Oa={name:"arrow",enabled:!0,phase:"main",fn:cp,effect:up,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yr(ii){return ii.split("-")[1]}var dp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fp(ii,ei){var ti=ii.x,ni=ii.y,ri=ei.devicePixelRatio||1;return{x:fo(ti*ri)/ri||0,y:fo(ni*ri)/ri||0}}function Eu(ii){var ei,ti=ii.popper,ni=ii.popperRect,ri=ii.placement,oi=ii.variation,si=ii.offsets,ai=ii.position,li=ii.gpuAcceleration,ui=ii.adaptive,ci=ii.roundOffsets,di=ii.isFixed,pi=si.x,yi=pi===void 0?0:pi,gi=si.y,vi=gi===void 0?0:gi,Ei=typeof ci=="function"?ci({x:yi,y:vi}):{x:yi,y:vi};yi=Ei.x,vi=Ei.y;var Si=si.hasOwnProperty("x"),xi=si.hasOwnProperty("y"),Li=hn,Oi=dn,zi=window;if(ui){var Vi=to(ti),ki="clientHeight",Mi="clientWidth";if(Vi===cn(ti)&&(Vi=Ln(ti),Pn(Vi).position!=="static"&&ai==="absolute"&&(ki="scrollHeight",Mi="scrollWidth")),Vi=Vi,ri===dn||(ri===hn||ri===mn)&&oi===To){Oi=_n;var Ai=di&&Vi===zi&&zi.visualViewport?zi.visualViewport.height:Vi[ki];vi-=Ai-ni.height,vi*=li?1:-1}if(ri===hn||(ri===dn||ri===_n)&&oi===To){Li=mn;var qi=di&&Vi===zi&&zi.visualViewport?zi.visualViewport.width:Vi[Mi];yi-=qi-ni.width,yi*=li?1:-1}}var Ci=Object.assign({position:ai},ui&&dp),Qi=ci===!0?fp({x:yi,y:vi},cn(ti)):{x:yi,y:vi};if(yi=Qi.x,vi=Qi.y,li){var Ji;return Object.assign({},Ci,(Ji={},Ji[Oi]=xi?"0":"",Ji[Li]=Si?"0":"",Ji.transform=(zi.devicePixelRatio||1)<=1?"translate("+yi+"px, "+vi+"px)":"translate3d("+yi+"px, "+vi+"px, 0)",Ji))}return Object.assign({},Ci,(ei={},ei[Oi]=xi?vi+"px":"",ei[Li]=Si?yi+"px":"",ei.transform="",ei))}function hp(ii){var ei=ii.state,ti=ii.options,ni=ti.gpuAcceleration,ri=ni===void 0?!0:ni,oi=ti.adaptive,si=oi===void 0?!0:oi,ai=ti.roundOffsets,li=ai===void 0?!0:ai,ui={placement:Dn(ei.placement),variation:Yr(ei.placement),popper:ei.elements.popper,popperRect:ei.rects.popper,gpuAcceleration:ri,isFixed:ei.options.strategy==="fixed"};ei.modifiersData.popperOffsets!=null&&(ei.styles.popper=Object.assign({},ei.styles.popper,Eu(Object.assign({},ui,{offsets:ei.modifiersData.popperOffsets,position:ei.options.strategy,adaptive:si,roundOffsets:li})))),ei.modifiersData.arrow!=null&&(ei.styles.arrow=Object.assign({},ei.styles.arrow,Eu(Object.assign({},ui,{offsets:ei.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:li})))),ei.attributes.popper=Object.assign({},ei.attributes.popper,{"data-popper-placement":ei.placement})}var gs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hp,data:{}};var La={passive:!0};function pp(ii){var ei=ii.state,ti=ii.instance,ni=ii.options,ri=ni.scroll,oi=ri===void 0?!0:ri,si=ni.resize,ai=si===void 0?!0:si,li=cn(ei.elements.popper),ui=[].concat(ei.scrollParents.reference,ei.scrollParents.popper);return oi&&ui.forEach(function(ci){ci.addEventListener("scroll",ti.update,La)}),ai&&li.addEventListener("resize",ti.update,La),function(){oi&&ui.forEach(function(ci){ci.removeEventListener("scroll",ti.update,La)}),ai&&li.removeEventListener("resize",ti.update,La)}}var vs={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pp,data:{}};var mp={left:"right",right:"left",bottom:"top",top:"bottom"};function ys(ii){return ii.replace(/left|right|bottom|top/g,function(ei){return mp[ei]})}var gp={start:"end",end:"start"};function Ma(ii){return ii.replace(/start|end/g,function(ei){return gp[ei]})}function Go(ii){var ei=cn(ii),ti=ei.pageXOffset,ni=ei.pageYOffset;return{scrollLeft:ti,scrollTop:ni}}function Ko(ii){return Wr(Ln(ii)).left+Go(ii).scrollLeft}function jl(ii,ei){var ti=cn(ii),ni=Ln(ii),ri=ti.visualViewport,oi=ni.clientWidth,si=ni.clientHeight,ai=0,li=0;if(ri){oi=ri.width,si=ri.height;var ui=Us();(ui||!ui&&ei==="fixed")&&(ai=ri.offsetLeft,li=ri.offsetTop)}return{width:oi,height:si,x:ai+Ko(ii),y:li}}function ql(ii){var ei,ti=Ln(ii),ni=Go(ii),ri=(ei=ii.ownerDocument)==null?void 0:ei.body,oi=eo(ti.scrollWidth,ti.clientWidth,ri?ri.scrollWidth:0,ri?ri.clientWidth:0),si=eo(ti.scrollHeight,ti.clientHeight,ri?ri.scrollHeight:0,ri?ri.clientHeight:0),ai=-ni.scrollLeft+Ko(ii),li=-ni.scrollTop;return Pn(ri||ti).direction==="rtl"&&(ai+=eo(ti.clientWidth,ri?ri.clientWidth:0)-oi),{width:oi,height:si,x:ai,y:li}}function Qo(ii){var ei=Pn(ii),ti=ei.overflow,ni=ei.overflowX,ri=ei.overflowY;return/auto|scroll|overlay|hidden/.test(ti+ri+ni)}function ka(ii){return["html","body","#document"].indexOf(An(ii))>=0?ii.ownerDocument.body:Tn(ii)&&Qo(ii)?ii:ka(ho(ii))}function Co(ii,ei){var ti;ei===void 0&&(ei=[]);var ni=ka(ii),ri=ni===((ti=ii.ownerDocument)==null?void 0:ti.body),oi=cn(ni),si=ri?[oi].concat(oi.visualViewport||[],Qo(ni)?ni:[]):ni,ai=ei.concat(si);return ri?ai:ai.concat(Co(ho(si)))}function bs(ii){return Object.assign({},ii,{left:ii.x,top:ii.y,right:ii.x+ii.width,bottom:ii.y+ii.height})}function vp(ii,ei){var ti=Wr(ii,!1,ei==="fixed");return ti.top=ti.top+ii.clientTop,ti.left=ti.left+ii.clientLeft,ti.bottom=ti.top+ii.clientHeight,ti.right=ti.left+ii.clientWidth,ti.width=ii.clientWidth,ti.height=ii.clientHeight,ti.x=ti.left,ti.y=ti.top,ti}function wu(ii,ei,ti){return ei===qs?bs(jl(ii,ti)):Zn(ei)?vp(ei,ti):bs(ql(Ln(ii)))}function yp(ii){var ei=Co(ho(ii)),ti=["absolute","fixed"].indexOf(Pn(ii).position)>=0,ni=ti&&Tn(ii)?to(ii):ii;return Zn(ni)?ei.filter(function(ri){return Zn(ri)&&Ys(ri,ni)&&An(ri)!=="body"}):[]}function Wl(ii,ei,ti,ni){var ri=ei==="clippingParents"?yp(ii):[].concat(ei),oi=[].concat(ri,[ti]),si=oi[0],ai=oi.reduce(function(li,ui){var ci=wu(ii,ui,ni);return li.top=eo(ci.top,li.top),li.right=qo(ci.right,li.right),li.bottom=qo(ci.bottom,li.bottom),li.left=eo(ci.left,li.left),li},wu(ii,si,ni));return ai.width=ai.right-ai.left,ai.height=ai.bottom-ai.top,ai.x=ai.left,ai.y=ai.top,ai}function Xs(ii){var ei=ii.reference,ti=ii.element,ni=ii.placement,ri=ni?Dn(ni):null,oi=ni?Yr(ni):null,si=ei.x+ei.width/2-ti.width/2,ai=ei.y+ei.height/2-ti.height/2,li;switch(ri){case dn:li={x:si,y:ei.y-ti.height};break;case _n:li={x:si,y:ei.y+ei.height};break;case mn:li={x:ei.x+ei.width,y:ai};break;case hn:li={x:ei.x-ti.width,y:ai};break;default:li={x:ei.x,y:ei.y}}var ui=ri?Uo(ri):null;if(ui!=null){var ci=ui==="y"?"height":"width";switch(oi){case so:li[ui]=li[ui]-(ei[ci]/2-ti[ci]/2);break;case To:li[ui]=li[ui]+(ei[ci]/2-ti[ci]/2);break;default:}}return li}function Fn(ii,ei){ei===void 0&&(ei={});var ti=ei,ni=ti.placement,ri=ni===void 0?ii.placement:ni,oi=ti.strategy,si=oi===void 0?ii.strategy:oi,ai=ti.boundary,li=ai===void 0?$l:ai,ui=ti.rootBoundary,ci=ui===void 0?qs:ui,di=ti.elementContext,pi=di===void 0?jo:di,yi=ti.altBoundary,gi=yi===void 0?!1:yi,vi=ti.padding,Ei=vi===void 0?0:vi,Si=Ks(typeof Ei!="number"?Ei:Qs(Ei,uo)),xi=pi===jo?Bl:jo,Li=ii.rects.popper,Oi=ii.elements[gi?xi:pi],zi=Wl(Zn(Oi)?Oi:Oi.contextElement||Ln(ii.elements.popper),li,ci,si),Vi=Wr(ii.elements.reference),ki=Xs({reference:Vi,element:Li,strategy:"absolute",placement:ri}),Mi=bs(Object.assign({},Li,ki)),Ai=pi===jo?Mi:Vi,qi={top:zi.top-Ai.top+Si.top,bottom:Ai.bottom-zi.bottom+Si.bottom,left:zi.left-Ai.left+Si.left,right:Ai.right-zi.right+Si.right},Ci=ii.modifiersData.offset;if(pi===jo&&Ci){var Qi=Ci[ri];Object.keys(qi).forEach(function(Ji){var gn=[mn,_n].indexOf(Ji)>=0?1:-1,rn=[dn,_n].indexOf(Ji)>=0?"y":"x";qi[Ji]+=Qi[rn]*gn})}return qi}function Ul(ii,ei){ei===void 0&&(ei={});var ti=ei,ni=ti.placement,ri=ti.boundary,oi=ti.rootBoundary,si=ti.padding,ai=ti.flipVariations,li=ti.allowedAutoPlacements,ui=li===void 0?Ws:li,ci=Yr(ni),di=ci?ai?Da:Da.filter(function(gi){return Yr(gi)===ci}):uo,pi=di.filter(function(gi){return ui.indexOf(gi)>=0});pi.length===0&&(pi=di);var yi=pi.reduce(function(gi,vi){return gi[vi]=Fn(ii,{placement:vi,boundary:ri,rootBoundary:oi,padding:si})[Dn(vi)],gi},{});return Object.keys(yi).sort(function(gi,vi){return yi[gi]-yi[vi]})}function bp(ii){if(Dn(ii)===js)return[];var ei=ys(ii);return[Ma(ii),ei,Ma(ei)]}function _p(ii){var ei=ii.state,ti=ii.options,ni=ii.name;if(!ei.modifiersData[ni]._skip){for(var ri=ti.mainAxis,oi=ri===void 0?!0:ri,si=ti.altAxis,ai=si===void 0?!0:si,li=ti.fallbackPlacements,ui=ti.padding,ci=ti.boundary,di=ti.rootBoundary,pi=ti.altBoundary,yi=ti.flipVariations,gi=yi===void 0?!0:yi,vi=ti.allowedAutoPlacements,Ei=ei.options.placement,Si=Dn(Ei),xi=Si===Ei,Li=li||(xi||!gi?[ys(Ei)]:bp(Ei)),Oi=[Ei].concat(Li).reduce(function(ji,Pi){return ji.concat(Dn(Pi)===js?Ul(ei,{placement:Pi,boundary:ci,rootBoundary:di,padding:ui,flipVariations:gi,allowedAutoPlacements:vi}):Pi)},[]),zi=ei.rects.reference,Vi=ei.rects.popper,ki=new Map,Mi=!0,Ai=Oi[0],qi=0;qi=0,rn=gn?"width":"height",Zi=Fn(ei,{placement:Ci,boundary:ci,rootBoundary:di,altBoundary:pi,padding:ui}),on=gn?Ji?mn:hn:Ji?_n:dn;zi[rn]>Vi[rn]&&(on=ys(on));var Mn=ys(on),vn=[];if(oi&&vn.push(Zi[Qi]<=0),ai&&vn.push(Zi[on]<=0,Zi[Mn]<=0),vn.every(function(ji){return ji})){Ai=Ci,Mi=!1;break}ki.set(Ci,vn)}if(Mi)for(var Yi=gi?3:1,Ri=function(Pi){var ln=Oi.find(function(kn){var yn=ki.get(kn);if(yn)return yn.slice(0,Pi).every(function(Sn){return Sn})});if(ln)return Ai=ln,"break"},Ii=Yi;Ii>0;Ii--){var Ui=Ri(Ii);if(Ui==="break")break}ei.placement!==Ai&&(ei.modifiersData[ni]._skip=!0,ei.placement=Ai,ei.reset=!0)}}var Na={name:"flip",enabled:!0,phase:"main",fn:_p,requiresIfExists:["offset"],data:{_skip:!1}};function xu(ii,ei,ti){return ti===void 0&&(ti={x:0,y:0}),{top:ii.top-ei.height-ti.y,right:ii.right-ei.width+ti.x,bottom:ii.bottom-ei.height+ti.y,left:ii.left-ei.width-ti.x}}function Tu(ii){return[dn,mn,_n,hn].some(function(ei){return ii[ei]>=0})}function Ep(ii){var ei=ii.state,ti=ii.name,ni=ei.rects.reference,ri=ei.rects.popper,oi=ei.modifiersData.preventOverflow,si=Fn(ei,{elementContext:"reference"}),ai=Fn(ei,{altBoundary:!0}),li=xu(si,ni),ui=xu(ai,ri,oi),ci=Tu(li),di=Tu(ui);ei.modifiersData[ti]={referenceClippingOffsets:li,popperEscapeOffsets:ui,isReferenceHidden:ci,hasPopperEscaped:di},ei.attributes.popper=Object.assign({},ei.attributes.popper,{"data-popper-reference-hidden":ci,"data-popper-escaped":di})}var Ra={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ep};function wp(ii,ei,ti){var ni=Dn(ii),ri=[hn,dn].indexOf(ni)>=0?-1:1,oi=typeof ti=="function"?ti(Object.assign({},ei,{placement:ii})):ti,si=oi[0],ai=oi[1];return si=si||0,ai=(ai||0)*ri,[hn,mn].indexOf(ni)>=0?{x:ai,y:si}:{x:si,y:ai}}function xp(ii){var ei=ii.state,ti=ii.options,ni=ii.name,ri=ti.offset,oi=ri===void 0?[0,0]:ri,si=Ws.reduce(function(ci,di){return ci[di]=wp(di,ei.rects,oi),ci},{}),ai=si[ei.placement],li=ai.x,ui=ai.y;ei.modifiersData.popperOffsets!=null&&(ei.modifiersData.popperOffsets.x+=li,ei.modifiersData.popperOffsets.y+=ui),ei.modifiersData[ni]=si}var Ia={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xp};function Tp(ii){var ei=ii.state,ti=ii.name;ei.modifiersData[ti]=Xs({reference:ei.rects.reference,element:ei.rects.popper,strategy:"absolute",placement:ei.placement})}var _s={name:"popperOffsets",enabled:!0,phase:"read",fn:Tp,data:{}};function Yl(ii){return ii==="x"?"y":"x"}function Cp(ii){var ei=ii.state,ti=ii.options,ni=ii.name,ri=ti.mainAxis,oi=ri===void 0?!0:ri,si=ti.altAxis,ai=si===void 0?!1:si,li=ti.boundary,ui=ti.rootBoundary,ci=ti.altBoundary,di=ti.padding,pi=ti.tether,yi=pi===void 0?!0:pi,gi=ti.tetherOffset,vi=gi===void 0?0:gi,Ei=Fn(ei,{boundary:li,rootBoundary:ui,padding:di,altBoundary:ci}),Si=Dn(ei.placement),xi=Yr(ei.placement),Li=!xi,Oi=Uo(Si),zi=Yl(Oi),Vi=ei.modifiersData.popperOffsets,ki=ei.rects.reference,Mi=ei.rects.popper,Ai=typeof vi=="function"?vi(Object.assign({},ei.rects,{placement:ei.placement})):vi,qi=typeof Ai=="number"?{mainAxis:Ai,altAxis:Ai}:Object.assign({mainAxis:0,altAxis:0},Ai),Ci=ei.modifiersData.offset?ei.modifiersData.offset[ei.placement]:null,Qi={x:0,y:0};if(Vi){if(oi){var Ji,gn=Oi==="y"?dn:hn,rn=Oi==="y"?_n:mn,Zi=Oi==="y"?"height":"width",on=Vi[Oi],Mn=on+Ei[gn],vn=on-Ei[rn],Yi=yi?-Mi[Zi]/2:0,Ri=xi===so?ki[Zi]:Mi[Zi],Ii=xi===so?-Mi[Zi]:-ki[Zi],Ui=ei.elements.arrow,ji=yi&&Ui?Wo(Ui):{width:0,height:0},Pi=ei.modifiersData["arrow#persistent"]?ei.modifiersData["arrow#persistent"].padding:Gs(),ln=Pi[gn],kn=Pi[rn],yn=Yo(0,ki[Zi],ji[Zi]),Sn=Li?ki[Zi]/2-Yi-yn-ln-qi.mainAxis:Ri-yn-ln-qi.mainAxis,$s=Li?-ki[Zi]/2+Yi+yn+kn+qi.mainAxis:Ii+yn+kn+qi.mainAxis,ro=ei.elements.arrow&&to(ei.elements.arrow),wo=ro?Oi==="y"?ro.clientTop||0:ro.clientLeft||0:0,bn=(Ji=Ci==null?void 0:Ci[Oi])!=null?Ji:0,xo=on+Sn-bn-wo,ao=on+$s-bn,ls=Yo(yi?qo(Mn,xo):Mn,on,yi?eo(vn,ao):vn);Vi[Oi]=ls,Qi[Oi]=ls-on}if(ai){var On,zn=Oi==="x"?dn:hn,Gn=Oi==="x"?_n:mn,Jn=Vi[zi],cs=zi==="y"?"height":"width",Bs=Jn+Ei[zn],us=Jn-Ei[Gn],ds=[dn,hn].indexOf(Si)!==-1,Vo=(On=Ci==null?void 0:Ci[zi])!=null?On:0,Ta=ds?Bs:Jn-ki[cs]-Mi[cs]-Vo+qi.altAxis,zs=ds?Jn+ki[cs]+Mi[cs]-Vo-qi.altAxis:us,Ca=yi&&ds?_u(Ta,Jn,zs):Yo(yi?Ta:Bs,Jn,yi?zs:us);Vi[zi]=Ca,Qi[zi]=Ca-Jn}ei.modifiersData[ni]=Qi}}var Ha={name:"preventOverflow",enabled:!0,phase:"main",fn:Cp,requiresIfExists:["offset"]};function Gl(ii){return{scrollLeft:ii.scrollLeft,scrollTop:ii.scrollTop}}function Kl(ii){return ii===cn(ii)||!Tn(ii)?Go(ii):Gl(ii)}function Sp(ii){var ei=ii.getBoundingClientRect(),ti=fo(ei.width)/ii.offsetWidth||1,ni=fo(ei.height)/ii.offsetHeight||1;return ti!==1||ni!==1}function Ql(ii,ei,ti){ti===void 0&&(ti=!1);var ni=Tn(ei),ri=Tn(ei)&&Sp(ei),oi=Ln(ei),si=Wr(ii,ri,ti),ai={scrollLeft:0,scrollTop:0},li={x:0,y:0};return(ni||!ni&&!ti)&&((An(ei)!=="body"||Qo(oi))&&(ai=Kl(ei)),Tn(ei)?(li=Wr(ei,!0),li.x+=ei.clientLeft,li.y+=ei.clientTop):oi&&(li.x=Ko(oi))),{x:si.left+ai.scrollLeft-li.x,y:si.top+ai.scrollTop-li.y,width:si.width,height:si.height}}function Ap(ii){var ei=new Map,ti=new Set,ni=[];ii.forEach(function(oi){ei.set(oi.name,oi)});function ri(oi){ti.add(oi.name);var si=[].concat(oi.requires||[],oi.requiresIfExists||[]);si.forEach(function(ai){if(!ti.has(ai)){var li=ei.get(ai);li&&ri(li)}}),ni.push(oi)}return ii.forEach(function(oi){ti.has(oi.name)||ri(oi)}),ni}function Xl(ii){var ei=Ap(ii);return zl.reduce(function(ti,ni){return ti.concat(ei.filter(function(ri){return ri.phase===ni}))},[])}function Jl(ii){var ei;return function(){return ei||(ei=new Promise(function(ti){Promise.resolve().then(function(){ei=void 0,ti(ii())})})),ei}}function Zl(ii){var ei=ii.reduce(function(ti,ni){var ri=ti[ni.name];return ti[ni.name]=ri?Object.assign({},ri,ni,{options:Object.assign({},ri.options,ni.options),data:Object.assign({},ri.data,ni.data)}):ni,ti},{});return Object.keys(ei).map(function(ti){return ei[ti]})}var Cu={placement:"bottom",modifiers:[],strategy:"absolute"};function Su(){for(var ii=arguments.length,ei=new Array(ii),ti=0;ti(ii&&window.CSS&&window.CSS.escape&&(ii=ii.replace(/#([^\s"#']+)/g,(ei,ti)=>`#${CSS.escape(ti)}`)),ii),kp=ii=>ii==null?`${ii}`:Object.prototype.toString.call(ii).match(/\s([a-z]+)/i)[1].toLowerCase(),Np=ii=>{do ii+=Math.floor(Math.random()*Lp);while(document.getElementById(ii));return ii},Rp=ii=>{if(!ii)return 0;let{transitionDuration:ei,transitionDelay:ti}=window.getComputedStyle(ii),ni=Number.parseFloat(ei),ri=Number.parseFloat(ti);return!ni&&!ri?0:(ei=ei.split(",")[0],ti=ti.split(",")[0],(Number.parseFloat(ei)+Number.parseFloat(ti))*Mp)},rd=ii=>{ii.dispatchEvent(new Event(mc))},po=ii=>!ii||typeof ii!="object"?!1:(typeof ii.jquery!="undefined"&&(ii=ii[0]),typeof ii.nodeType!="undefined"),Ao=ii=>po(ii)?ii.jquery?ii[0]:ii:typeof ii=="string"&&ii.length>0?document.querySelector(nd(ii)):null,As=ii=>{if(!po(ii)||ii.getClientRects().length===0)return!1;let ei=getComputedStyle(ii).getPropertyValue("visibility")==="visible",ti=ii.closest("details:not([open])");if(!ti)return ei;if(ti!==ii){let ni=ii.closest("summary");if(ni&&ni.parentNode!==ti||ni===null)return!1}return ei},Do=ii=>!ii||ii.nodeType!==Node.ELEMENT_NODE||ii.classList.contains("disabled")?!0:typeof ii.disabled!="undefined"?ii.disabled:ii.hasAttribute("disabled")&&ii.getAttribute("disabled")!=="false",od=ii=>{if(!document.documentElement.attachShadow)return null;if(typeof ii.getRootNode=="function"){let ei=ii.getRootNode();return ei instanceof ShadowRoot?ei:null}return ii instanceof ShadowRoot?ii:ii.parentNode?od(ii.parentNode):null},Ua=()=>{},na=ii=>{ii.offsetHeight},sd=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,tc=[],Ip=ii=>{document.readyState==="loading"?(tc.length||document.addEventListener("DOMContentLoaded",()=>{for(let ei of tc)ei()}),tc.push(ii)):ii()},Gr=()=>document.documentElement.dir==="rtl",Qr=ii=>{Ip(()=>{let ei=sd();if(ei){let ti=ii.NAME,ni=ei.fn[ti];ei.fn[ti]=ii.jQueryInterface,ei.fn[ti].Constructor=ii,ei.fn[ti].noConflict=()=>(ei.fn[ti]=ni,ii.jQueryInterface)}})},Vn=(ii,ei=[],ti=ii)=>typeof ii=="function"?ii(...ei):ti,ad=(ii,ei,ti=!0)=>{if(!ti){Vn(ii);return}let ri=Rp(ei)+5,oi=!1,si=({target:ai})=>{ai===ei&&(oi=!0,ei.removeEventListener(mc,si),Vn(ii))};ei.addEventListener(mc,si),setTimeout(()=>{oi||rd(ei)},ri)},bc=(ii,ei,ti,ni)=>{let ri=ii.length,oi=ii.indexOf(ei);return oi===-1?!ti&&ni?ii[ri-1]:ii[0]:(oi+=ti?1:-1,ni&&(oi=(oi+ri)%ri),ii[Math.max(0,Math.min(oi,ri-1))])},Hp=/[^.]*(?=\..*)\.|.*/,Pp=/\..*/,Fp=/::\d+$/,ic={},Ou=1,ld={mouseenter:"mouseover",mouseleave:"mouseout"},$p=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function cd(ii,ei){return ei&&`${ei}::${Ou++}`||ii.uidEvent||Ou++}function ud(ii){let ei=cd(ii);return ii.uidEvent=ei,ic[ei]=ic[ei]||{},ic[ei]}function Bp(ii,ei){return function ti(ni){return _c(ni,{delegateTarget:ii}),ti.oneOff&&wi.off(ii,ni.type,ei),ei.apply(ii,[ni])}}function zp(ii,ei,ti){return function ni(ri){let oi=ii.querySelectorAll(ei);for(let{target:si}=ri;si&&si!==this;si=si.parentNode)for(let ai of oi)if(ai===si)return _c(ri,{delegateTarget:si}),ni.oneOff&&wi.off(ii,ri.type,ei,ti),ti.apply(si,[ri])}}function dd(ii,ei,ti=null){return Object.values(ii).find(ni=>ni.callable===ei&&ni.delegationSelector===ti)}function fd(ii,ei,ti){let ni=typeof ei=="string",ri=ni?ti:ei||ti,oi=hd(ii);return $p.has(oi)||(oi=ii),[ni,ri,oi]}function Lu(ii,ei,ti,ni,ri){if(typeof ei!="string"||!ii)return;let[oi,si,ai]=fd(ei,ti,ni);ei in ld&&(si=(gi=>function(vi){if(!vi.relatedTarget||vi.relatedTarget!==vi.delegateTarget&&!vi.delegateTarget.contains(vi.relatedTarget))return gi.call(this,vi)})(si));let li=ud(ii),ui=li[ai]||(li[ai]={}),ci=dd(ui,si,oi?ti:null);if(ci){ci.oneOff=ci.oneOff&&ri;return}let di=cd(si,ei.replace(Hp,"")),pi=oi?zp(ii,ti,si):Bp(ii,si);pi.delegationSelector=oi?ti:null,pi.callable=si,pi.oneOff=ri,pi.uidEvent=di,ui[di]=pi,ii.addEventListener(ai,pi,oi)}function gc(ii,ei,ti,ni,ri){let oi=dd(ei[ti],ni,ri);oi&&(ii.removeEventListener(ti,oi,!!ri),delete ei[ti][oi.uidEvent])}function Vp(ii,ei,ti,ni){let ri=ei[ti]||{};for(let[oi,si]of Object.entries(ri))oi.includes(ni)&&gc(ii,ei,ti,si.callable,si.delegationSelector)}function hd(ii){return ii=ii.replace(Pp,""),ld[ii]||ii}var wi={on(ii,ei,ti,ni){Lu(ii,ei,ti,ni,!1)},one(ii,ei,ti,ni){Lu(ii,ei,ti,ni,!0)},off(ii,ei,ti,ni){if(typeof ei!="string"||!ii)return;let[ri,oi,si]=fd(ei,ti,ni),ai=si!==ei,li=ud(ii),ui=li[si]||{},ci=ei.startsWith(".");if(typeof oi!="undefined"){if(!Object.keys(ui).length)return;gc(ii,li,si,oi,ri?ti:null);return}if(ci)for(let di of Object.keys(li))Vp(ii,li,di,ei.slice(1));for(let[di,pi]of Object.entries(ui)){let yi=di.replace(Fp,"");(!ai||ei.includes(yi))&&gc(ii,li,si,pi.callable,pi.delegationSelector)}},trigger(ii,ei,ti){if(typeof ei!="string"||!ii)return null;let ni=sd(),ri=hd(ei),oi=ei!==ri,si=null,ai=!0,li=!0,ui=!1;oi&&ni&&(si=ni.Event(ei,ti),ni(ii).trigger(si),ai=!si.isPropagationStopped(),li=!si.isImmediatePropagationStopped(),ui=si.isDefaultPrevented());let ci=_c(new Event(ei,{bubbles:ai,cancelable:!0}),ti);return ui&&ci.preventDefault(),li&&ii.dispatchEvent(ci),ci.defaultPrevented&&si&&si.preventDefault(),ci}};function _c(ii,ei={}){for(let[ti,ni]of Object.entries(ei))try{ii[ti]=ni}catch(ri){Object.defineProperty(ii,ti,{configurable:!0,get(){return ni}})}return ii}function Mu(ii){if(ii==="true")return!0;if(ii==="false")return!1;if(ii===Number(ii).toString())return Number(ii);if(ii===""||ii==="null")return null;if(typeof ii!="string")return ii;try{return JSON.parse(decodeURIComponent(ii))}catch(ei){return ii}}function nc(ii){return ii.replace(/[A-Z]/g,ei=>`-${ei.toLowerCase()}`)}var mo={setDataAttribute(ii,ei,ti){ii.setAttribute(`data-bs-${nc(ei)}`,ti)},removeDataAttribute(ii,ei){ii.removeAttribute(`data-bs-${nc(ei)}`)},getDataAttributes(ii){if(!ii)return{};let ei={},ti=Object.keys(ii.dataset).filter(ni=>ni.startsWith("bs")&&!ni.startsWith("bsConfig"));for(let ni of ti){let ri=ni.replace(/^bs/,"");ri=ri.charAt(0).toLowerCase()+ri.slice(1,ri.length),ei[ri]=Mu(ii.dataset[ni])}return ei},getDataAttribute(ii,ei){return Mu(ii.getAttribute(`data-bs-${nc(ei)}`))}},es=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(ei){return ei=this._mergeConfigObj(ei),ei=this._configAfterMerge(ei),this._typeCheckConfig(ei),ei}_configAfterMerge(ei){return ei}_mergeConfigObj(ei,ti){let ni=po(ti)?mo.getDataAttribute(ti,"config"):{};return Di(Di(Di(Di({},this.constructor.Default),typeof ni=="object"?ni:{}),po(ti)?mo.getDataAttributes(ti):{}),typeof ei=="object"?ei:{})}_typeCheckConfig(ei,ti=this.constructor.DefaultType){for(let[ni,ri]of Object.entries(ti)){let oi=ei[ni],si=po(oi)?"element":kp(oi);if(!new RegExp(ri).test(si))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${ni}" provided type "${si}" but expected type "${ri}".`)}}},jp="5.3.3",Qn=class extends es{constructor(ei,ti){super(),ei=Ao(ei),ei&&(this._element=ei,this._config=this._getConfig(ti),ec.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ec.remove(this._element,this.constructor.DATA_KEY),wi.off(this._element,this.constructor.EVENT_KEY);for(let ei of Object.getOwnPropertyNames(this))this[ei]=null}_queueCallback(ei,ti,ni=!0){ad(ei,ti,ni)}_getConfig(ei){return ei=this._mergeConfigObj(ei,this._element),ei=this._configAfterMerge(ei),this._typeCheckConfig(ei),ei}static getInstance(ei){return ec.get(Ao(ei),this.DATA_KEY)}static getOrCreateInstance(ei,ti={}){return this.getInstance(ei)||new this(ei,typeof ti=="object"?ti:null)}static get VERSION(){return jp}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(ei){return`${ei}${this.EVENT_KEY}`}},rc=ii=>{let ei=ii.getAttribute("data-bs-target");if(!ei||ei==="#"){let ti=ii.getAttribute("href");if(!ti||!ti.includes("#")&&!ti.startsWith("."))return null;ti.includes("#")&&!ti.startsWith("#")&&(ti=`#${ti.split("#")[1]}`),ei=ti&&ti!=="#"?ti.trim():null}return ei?ei.split(",").map(ti=>nd(ti)).join(","):null},Wi={find(ii,ei=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(ei,ii))},findOne(ii,ei=document.documentElement){return Element.prototype.querySelector.call(ei,ii)},children(ii,ei){return[].concat(...ii.children).filter(ti=>ti.matches(ei))},parents(ii,ei){let ti=[],ni=ii.parentNode.closest(ei);for(;ni;)ti.push(ni),ni=ni.parentNode.closest(ei);return ti},prev(ii,ei){let ti=ii.previousElementSibling;for(;ti;){if(ti.matches(ei))return[ti];ti=ti.previousElementSibling}return[]},next(ii,ei){let ti=ii.nextElementSibling;for(;ti;){if(ti.matches(ei))return[ti];ti=ti.nextElementSibling}return[]},focusableChildren(ii){let ei=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(ti=>`${ti}:not([tabindex^="-"])`).join(",");return this.find(ei,ii).filter(ti=>!Do(ti)&&As(ti))},getSelectorFromElement(ii){let ei=rc(ii);return ei&&Wi.findOne(ei)?ei:null},getElementFromSelector(ii){let ei=rc(ii);return ei?Wi.findOne(ei):null},getMultipleElementsFromSelector(ii){let ei=rc(ii);return ei?Wi.find(ei):[]}},el=(ii,ei="hide")=>{let ti=`click.dismiss${ii.EVENT_KEY}`,ni=ii.NAME;wi.on(document,ti,`[data-bs-dismiss="${ni}"]`,function(ri){if(["A","AREA"].includes(this.tagName)&&ri.preventDefault(),Do(this))return;let oi=Wi.getElementFromSelector(this)||this.closest(`.${ni}`);ii.getOrCreateInstance(oi)[ei]()})},qp="alert",Wp="bs.alert",pd=`.${Wp}`,Up=`close${pd}`,Yp=`closed${pd}`,Gp="fade",Kp="show",Ya=class ii extends Qn{static get NAME(){return qp}close(){if(wi.trigger(this._element,Up).defaultPrevented)return;this._element.classList.remove(Kp);let ti=this._element.classList.contains(Gp);this._queueCallback(()=>this._destroyElement(),this._element,ti)}_destroyElement(){this._element.remove(),wi.trigger(this._element,Yp),this.dispose()}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this);if(typeof ei=="string"){if(ti[ei]===void 0||ei.startsWith("_")||ei==="constructor")throw new TypeError(`No method named "${ei}"`);ti[ei](this)}})}};el(Ya,"close");Qr(Ya);var Qp="button",Xp="bs.button",Jp=`.${Xp}`,Zp=".data-api",em="active",ku='[data-bs-toggle="button"]',tm=`click${Jp}${Zp}`,Ga=class ii extends Qn{static get NAME(){return Qp}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(em))}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this);ei==="toggle"&&ti[ei]()})}};wi.on(document,tm,ku,ii=>{ii.preventDefault();let ei=ii.target.closest(ku);Ga.getOrCreateInstance(ei).toggle()});Qr(Ga);var im="swipe",Ds=".bs.swipe",nm=`touchstart${Ds}`,rm=`touchmove${Ds}`,om=`touchend${Ds}`,sm=`pointerdown${Ds}`,am=`pointerup${Ds}`,lm="touch",cm="pen",um="pointer-event",dm=40,fm={endCallback:null,leftCallback:null,rightCallback:null},hm={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Ka=class ii extends es{constructor(ei,ti){super(),this._element=ei,!(!ei||!ii.isSupported())&&(this._config=this._getConfig(ti),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return fm}static get DefaultType(){return hm}static get NAME(){return im}dispose(){wi.off(this._element,Ds)}_start(ei){if(!this._supportPointerEvents){this._deltaX=ei.touches[0].clientX;return}this._eventIsPointerPenTouch(ei)&&(this._deltaX=ei.clientX)}_end(ei){this._eventIsPointerPenTouch(ei)&&(this._deltaX=ei.clientX-this._deltaX),this._handleSwipe(),Vn(this._config.endCallback)}_move(ei){this._deltaX=ei.touches&&ei.touches.length>1?0:ei.touches[0].clientX-this._deltaX}_handleSwipe(){let ei=Math.abs(this._deltaX);if(ei<=dm)return;let ti=ei/this._deltaX;this._deltaX=0,ti&&Vn(ti>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(wi.on(this._element,sm,ei=>this._start(ei)),wi.on(this._element,am,ei=>this._end(ei)),this._element.classList.add(um)):(wi.on(this._element,nm,ei=>this._start(ei)),wi.on(this._element,rm,ei=>this._move(ei)),wi.on(this._element,om,ei=>this._end(ei)))}_eventIsPointerPenTouch(ei){return this._supportPointerEvents&&(ei.pointerType===cm||ei.pointerType===lm)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},pm="carousel",mm="bs.carousel",ko=`.${mm}`,md=".data-api",gm="ArrowLeft",vm="ArrowRight",ym=500,Zs="next",Es="prev",xs="left",qa="right",bm=`slide${ko}`,oc=`slid${ko}`,_m=`keydown${ko}`,Em=`mouseenter${ko}`,wm=`mouseleave${ko}`,xm=`dragstart${ko}`,Tm=`load${ko}${md}`,Cm=`click${ko}${md}`,gd="carousel",Fa="active",Sm="slide",Am="carousel-item-end",Dm="carousel-item-start",Om="carousel-item-next",Lm="carousel-item-prev",vd=".active",yd=".carousel-item",Mm=vd+yd,km=".carousel-item img",Nm=".carousel-indicators",Rm="[data-bs-slide], [data-bs-slide-to]",Im='[data-bs-ride="carousel"]',Hm={[gm]:qa,[vm]:xs},Pm={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Fm={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},ta=class ii extends Qn{constructor(ei,ti){super(ei,ti),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Wi.findOne(Nm,this._element),this._addEventListeners(),this._config.ride===gd&&this.cycle()}static get Default(){return Pm}static get DefaultType(){return Fm}static get NAME(){return pm}next(){this._slide(Zs)}nextWhenVisible(){!document.hidden&&As(this._element)&&this.next()}prev(){this._slide(Es)}pause(){this._isSliding&&rd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){wi.one(this._element,oc,()=>this.cycle());return}this.cycle()}}to(ei){let ti=this._getItems();if(ei>ti.length-1||ei<0)return;if(this._isSliding){wi.one(this._element,oc,()=>this.to(ei));return}let ni=this._getItemIndex(this._getActive());if(ni===ei)return;let ri=ei>ni?Zs:Es;this._slide(ri,ti[ei])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(ei){return ei.defaultInterval=ei.interval,ei}_addEventListeners(){this._config.keyboard&&wi.on(this._element,_m,ei=>this._keydown(ei)),this._config.pause==="hover"&&(wi.on(this._element,Em,()=>this.pause()),wi.on(this._element,wm,()=>this._maybeEnableCycle())),this._config.touch&&Ka.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let ni of Wi.find(km,this._element))wi.on(ni,xm,ri=>ri.preventDefault());let ti={leftCallback:()=>this._slide(this._directionToOrder(xs)),rightCallback:()=>this._slide(this._directionToOrder(qa)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),ym+this._config.interval))}};this._swipeHelper=new Ka(this._element,ti)}_keydown(ei){if(/input|textarea/i.test(ei.target.tagName))return;let ti=Hm[ei.key];ti&&(ei.preventDefault(),this._slide(this._directionToOrder(ti)))}_getItemIndex(ei){return this._getItems().indexOf(ei)}_setActiveIndicatorElement(ei){if(!this._indicatorsElement)return;let ti=Wi.findOne(vd,this._indicatorsElement);ti.classList.remove(Fa),ti.removeAttribute("aria-current");let ni=Wi.findOne(`[data-bs-slide-to="${ei}"]`,this._indicatorsElement);ni&&(ni.classList.add(Fa),ni.setAttribute("aria-current","true"))}_updateInterval(){let ei=this._activeElement||this._getActive();if(!ei)return;let ti=Number.parseInt(ei.getAttribute("data-bs-interval"),10);this._config.interval=ti||this._config.defaultInterval}_slide(ei,ti=null){if(this._isSliding)return;let ni=this._getActive(),ri=ei===Zs,oi=ti||bc(this._getItems(),ni,ri,this._config.wrap);if(oi===ni)return;let si=this._getItemIndex(oi),ai=yi=>wi.trigger(this._element,yi,{relatedTarget:oi,direction:this._orderToDirection(ei),from:this._getItemIndex(ni),to:si});if(ai(bm).defaultPrevented||!ni||!oi)return;let ui=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(si),this._activeElement=oi;let ci=ri?Dm:Am,di=ri?Om:Lm;oi.classList.add(di),na(oi),ni.classList.add(ci),oi.classList.add(ci);let pi=()=>{oi.classList.remove(ci,di),oi.classList.add(Fa),ni.classList.remove(Fa,di,ci),this._isSliding=!1,ai(oc)};this._queueCallback(pi,ni,this._isAnimated()),ui&&this.cycle()}_isAnimated(){return this._element.classList.contains(Sm)}_getActive(){return Wi.findOne(Mm,this._element)}_getItems(){return Wi.find(yd,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(ei){return Gr()?ei===xs?Es:Zs:ei===xs?Zs:Es}_orderToDirection(ei){return Gr()?ei===Es?xs:qa:ei===Es?qa:xs}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this,ei);if(typeof ei=="number"){ti.to(ei);return}if(typeof ei=="string"){if(ti[ei]===void 0||ei.startsWith("_")||ei==="constructor")throw new TypeError(`No method named "${ei}"`);ti[ei]()}})}};wi.on(document,Cm,Rm,function(ii){let ei=Wi.getElementFromSelector(this);if(!ei||!ei.classList.contains(gd))return;ii.preventDefault();let ti=ta.getOrCreateInstance(ei),ni=this.getAttribute("data-bs-slide-to");if(ni){ti.to(ni),ti._maybeEnableCycle();return}if(mo.getDataAttribute(this,"slide")==="next"){ti.next(),ti._maybeEnableCycle();return}ti.prev(),ti._maybeEnableCycle()});wi.on(window,Tm,()=>{let ii=Wi.find(Im);for(let ei of ii)ta.getOrCreateInstance(ei)});Qr(ta);var $m="collapse",Bm="bs.collapse",ra=`.${Bm}`,zm=".data-api",Vm=`show${ra}`,jm=`shown${ra}`,qm=`hide${ra}`,Wm=`hidden${ra}`,Um=`click${ra}${zm}`,sc="show",Cs="collapse",$a="collapsing",Ym="collapsed",Gm=`:scope .${Cs} .${Cs}`,Km="collapse-horizontal",Qm="width",Xm="height",Jm=".collapse.show, .collapse.collapsing",vc='[data-bs-toggle="collapse"]',Zm={parent:null,toggle:!0},eg={parent:"(null|element)",toggle:"boolean"},Oo=class ii extends Qn{constructor(ei,ti){super(ei,ti),this._isTransitioning=!1,this._triggerArray=[];let ni=Wi.find(vc);for(let ri of ni){let oi=Wi.getSelectorFromElement(ri),si=Wi.find(oi).filter(ai=>ai===this._element);oi!==null&&si.length&&this._triggerArray.push(ri)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Zm}static get DefaultType(){return eg}static get NAME(){return $m}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let ei=[];if(this._config.parent&&(ei=this._getFirstLevelChildren(Jm).filter(ai=>ai!==this._element).map(ai=>ii.getOrCreateInstance(ai,{toggle:!1}))),ei.length&&ei[0]._isTransitioning||wi.trigger(this._element,Vm).defaultPrevented)return;for(let ai of ei)ai.hide();let ni=this._getDimension();this._element.classList.remove(Cs),this._element.classList.add($a),this._element.style[ni]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let ri=()=>{this._isTransitioning=!1,this._element.classList.remove($a),this._element.classList.add(Cs,sc),this._element.style[ni]="",wi.trigger(this._element,jm)},si=`scroll${ni[0].toUpperCase()+ni.slice(1)}`;this._queueCallback(ri,this._element,!0),this._element.style[ni]=`${this._element[si]}px`}hide(){if(this._isTransitioning||!this._isShown()||wi.trigger(this._element,qm).defaultPrevented)return;let ti=this._getDimension();this._element.style[ti]=`${this._element.getBoundingClientRect()[ti]}px`,na(this._element),this._element.classList.add($a),this._element.classList.remove(Cs,sc);for(let ri of this._triggerArray){let oi=Wi.getElementFromSelector(ri);oi&&!this._isShown(oi)&&this._addAriaAndCollapsedClass([ri],!1)}this._isTransitioning=!0;let ni=()=>{this._isTransitioning=!1,this._element.classList.remove($a),this._element.classList.add(Cs),wi.trigger(this._element,Wm)};this._element.style[ti]="",this._queueCallback(ni,this._element,!0)}_isShown(ei=this._element){return ei.classList.contains(sc)}_configAfterMerge(ei){return ei.toggle=!!ei.toggle,ei.parent=Ao(ei.parent),ei}_getDimension(){return this._element.classList.contains(Km)?Qm:Xm}_initializeChildren(){if(!this._config.parent)return;let ei=this._getFirstLevelChildren(vc);for(let ti of ei){let ni=Wi.getElementFromSelector(ti);ni&&this._addAriaAndCollapsedClass([ti],this._isShown(ni))}}_getFirstLevelChildren(ei){let ti=Wi.find(Gm,this._config.parent);return Wi.find(ei,this._config.parent).filter(ni=>!ti.includes(ni))}_addAriaAndCollapsedClass(ei,ti){if(ei.length)for(let ni of ei)ni.classList.toggle(Ym,!ti),ni.setAttribute("aria-expanded",ti)}static jQueryInterface(ei){let ti={};return typeof ei=="string"&&/show|hide/.test(ei)&&(ti.toggle=!1),this.each(function(){let ni=ii.getOrCreateInstance(this,ti);if(typeof ei=="string"){if(typeof ni[ei]=="undefined")throw new TypeError(`No method named "${ei}"`);ni[ei]()}})}};wi.on(document,Um,vc,function(ii){(ii.target.tagName==="A"||ii.delegateTarget&&ii.delegateTarget.tagName==="A")&&ii.preventDefault();for(let ei of Wi.getMultipleElementsFromSelector(this))Oo.getOrCreateInstance(ei,{toggle:!1}).toggle()});Qr(Oo);var Nu="dropdown",tg="bs.dropdown",is=`.${tg}`,Ec=".data-api",ig="Escape",Ru="Tab",ng="ArrowUp",Iu="ArrowDown",rg=2,og=`hide${is}`,sg=`hidden${is}`,ag=`show${is}`,lg=`shown${is}`,bd=`click${is}${Ec}`,_d=`keydown${is}${Ec}`,cg=`keyup${is}${Ec}`,Ts="show",ug="dropup",dg="dropend",fg="dropstart",hg="dropup-center",pg="dropdown-center",Jo='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',mg=`${Jo}.${Ts}`,Wa=".dropdown-menu",gg=".navbar",vg=".navbar-nav",yg=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",bg=Gr()?"top-end":"top-start",_g=Gr()?"top-start":"top-end",Eg=Gr()?"bottom-end":"bottom-start",wg=Gr()?"bottom-start":"bottom-end",xg=Gr()?"left-start":"right-start",Tg=Gr()?"right-start":"left-start",Cg="top",Sg="bottom",Ag={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Dg={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},Lo=class ii extends Qn{constructor(ei,ti){super(ei,ti),this._popper=null,this._parent=this._element.parentNode,this._menu=Wi.next(this._element,Wa)[0]||Wi.prev(this._element,Wa)[0]||Wi.findOne(Wa,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ag}static get DefaultType(){return Dg}static get NAME(){return Nu}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Do(this._element)||this._isShown())return;let ei={relatedTarget:this._element};if(!wi.trigger(this._element,ag,ei).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(vg))for(let ni of[].concat(...document.body.children))wi.on(ni,"mouseover",Ua);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ts),this._element.classList.add(Ts),wi.trigger(this._element,lg,ei)}}hide(){if(Do(this._element)||!this._isShown())return;let ei={relatedTarget:this._element};this._completeHide(ei)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(ei){if(!wi.trigger(this._element,og,ei).defaultPrevented){if("ontouchstart"in document.documentElement)for(let ni of[].concat(...document.body.children))wi.off(ni,"mouseover",Ua);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ts),this._element.classList.remove(Ts),this._element.setAttribute("aria-expanded","false"),mo.removeDataAttribute(this._menu,"popper"),wi.trigger(this._element,sg,ei)}}_getConfig(ei){if(ei=super._getConfig(ei),typeof ei.reference=="object"&&!po(ei.reference)&&typeof ei.reference.getBoundingClientRect!="function")throw new TypeError(`${Nu.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return ei}_createPopper(){if(typeof Pa=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let ei=this._element;this._config.reference==="parent"?ei=this._parent:po(this._config.reference)?ei=Ao(this._config.reference):typeof this._config.reference=="object"&&(ei=this._config.reference);let ti=this._getPopperConfig();this._popper=Js(ei,this._menu,ti)}_isShown(){return this._menu.classList.contains(Ts)}_getPlacement(){let ei=this._parent;if(ei.classList.contains(dg))return xg;if(ei.classList.contains(fg))return Tg;if(ei.classList.contains(hg))return Cg;if(ei.classList.contains(pg))return Sg;let ti=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return ei.classList.contains(ug)?ti?_g:bg:ti?wg:Eg}_detectNavbar(){return this._element.closest(gg)!==null}_getOffset(){let{offset:ei}=this._config;return typeof ei=="string"?ei.split(",").map(ti=>Number.parseInt(ti,10)):typeof ei=="function"?ti=>ei(ti,this._element):ei}_getPopperConfig(){let ei={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(mo.setDataAttribute(this._menu,"popper","static"),ei.modifiers=[{name:"applyStyles",enabled:!1}]),Di(Di({},ei),Vn(this._config.popperConfig,[ei]))}_selectMenuItem({key:ei,target:ti}){let ni=Wi.find(yg,this._menu).filter(ri=>As(ri));ni.length&&bc(ni,ti,ei===Iu,!ni.includes(ti)).focus()}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this,ei);if(typeof ei=="string"){if(typeof ti[ei]=="undefined")throw new TypeError(`No method named "${ei}"`);ti[ei]()}})}static clearMenus(ei){if(ei.button===rg||ei.type==="keyup"&&ei.key!==Ru)return;let ti=Wi.find(mg);for(let ni of ti){let ri=ii.getInstance(ni);if(!ri||ri._config.autoClose===!1)continue;let oi=ei.composedPath(),si=oi.includes(ri._menu);if(oi.includes(ri._element)||ri._config.autoClose==="inside"&&!si||ri._config.autoClose==="outside"&&si||ri._menu.contains(ei.target)&&(ei.type==="keyup"&&ei.key===Ru||/input|select|option|textarea|form/i.test(ei.target.tagName)))continue;let ai={relatedTarget:ri._element};ei.type==="click"&&(ai.clickEvent=ei),ri._completeHide(ai)}}static dataApiKeydownHandler(ei){let ti=/input|textarea/i.test(ei.target.tagName),ni=ei.key===ig,ri=[ng,Iu].includes(ei.key);if(!ri&&!ni||ti&&!ni)return;ei.preventDefault();let oi=this.matches(Jo)?this:Wi.prev(this,Jo)[0]||Wi.next(this,Jo)[0]||Wi.findOne(Jo,ei.delegateTarget.parentNode),si=ii.getOrCreateInstance(oi);if(ri){ei.stopPropagation(),si.show(),si._selectMenuItem(ei);return}si._isShown()&&(ei.stopPropagation(),si.hide(),oi.focus())}};wi.on(document,_d,Jo,Lo.dataApiKeydownHandler);wi.on(document,_d,Wa,Lo.dataApiKeydownHandler);wi.on(document,bd,Lo.clearMenus);wi.on(document,cg,Lo.clearMenus);wi.on(document,bd,Jo,function(ii){ii.preventDefault(),Lo.getOrCreateInstance(this).toggle()});Qr(Lo);var Ed="backdrop",Og="fade",Hu="show",Pu=`mousedown.bs.${Ed}`,Lg={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Mg={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},Qa=class extends es{constructor(ei){super(),this._config=this._getConfig(ei),this._isAppended=!1,this._element=null}static get Default(){return Lg}static get DefaultType(){return Mg}static get NAME(){return Ed}show(ei){if(!this._config.isVisible){Vn(ei);return}this._append();let ti=this._getElement();this._config.isAnimated&&na(ti),ti.classList.add(Hu),this._emulateAnimation(()=>{Vn(ei)})}hide(ei){if(!this._config.isVisible){Vn(ei);return}this._getElement().classList.remove(Hu),this._emulateAnimation(()=>{this.dispose(),Vn(ei)})}dispose(){this._isAppended&&(wi.off(this._element,Pu),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let ei=document.createElement("div");ei.className=this._config.className,this._config.isAnimated&&ei.classList.add(Og),this._element=ei}return this._element}_configAfterMerge(ei){return ei.rootElement=Ao(ei.rootElement),ei}_append(){if(this._isAppended)return;let ei=this._getElement();this._config.rootElement.append(ei),wi.on(ei,Pu,()=>{Vn(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(ei){ad(ei,this._getElement(),this._config.isAnimated)}},kg="focustrap",Ng="bs.focustrap",Xa=`.${Ng}`,Rg=`focusin${Xa}`,Ig=`keydown.tab${Xa}`,Hg="Tab",Pg="forward",Fu="backward",Fg={autofocus:!0,trapElement:null},$g={autofocus:"boolean",trapElement:"element"},Ja=class extends es{constructor(ei){super(),this._config=this._getConfig(ei),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Fg}static get DefaultType(){return $g}static get NAME(){return kg}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),wi.off(document,Xa),wi.on(document,Rg,ei=>this._handleFocusin(ei)),wi.on(document,Ig,ei=>this._handleKeydown(ei)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,wi.off(document,Xa))}_handleFocusin(ei){let{trapElement:ti}=this._config;if(ei.target===document||ei.target===ti||ti.contains(ei.target))return;let ni=Wi.focusableChildren(ti);ni.length===0?ti.focus():this._lastTabNavDirection===Fu?ni[ni.length-1].focus():ni[0].focus()}_handleKeydown(ei){ei.key===Hg&&(this._lastTabNavDirection=ei.shiftKey?Fu:Pg)}},$u=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Bu=".sticky-top",Ba="padding-right",zu="margin-right",ia=class{constructor(){this._element=document.body}getWidth(){let ei=document.documentElement.clientWidth;return Math.abs(window.innerWidth-ei)}hide(){let ei=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ba,ti=>ti+ei),this._setElementAttributes($u,Ba,ti=>ti+ei),this._setElementAttributes(Bu,zu,ti=>ti-ei)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ba),this._resetElementAttributes($u,Ba),this._resetElementAttributes(Bu,zu)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(ei,ti,ni){let ri=this.getWidth(),oi=si=>{if(si!==this._element&&window.innerWidth>si.clientWidth+ri)return;this._saveInitialAttribute(si,ti);let ai=window.getComputedStyle(si).getPropertyValue(ti);si.style.setProperty(ti,`${ni(Number.parseFloat(ai))}px`)};this._applyManipulationCallback(ei,oi)}_saveInitialAttribute(ei,ti){let ni=ei.style.getPropertyValue(ti);ni&&mo.setDataAttribute(ei,ti,ni)}_resetElementAttributes(ei,ti){let ni=ri=>{let oi=mo.getDataAttribute(ri,ti);if(oi===null){ri.style.removeProperty(ti);return}mo.removeDataAttribute(ri,ti),ri.style.setProperty(ti,oi)};this._applyManipulationCallback(ei,ni)}_applyManipulationCallback(ei,ti){if(po(ei)){ti(ei);return}for(let ni of Wi.find(ei,this._element))ti(ni)}},Bg="modal",zg="bs.modal",Kr=`.${zg}`,Vg=".data-api",jg="Escape",qg=`hide${Kr}`,Wg=`hidePrevented${Kr}`,wd=`hidden${Kr}`,xd=`show${Kr}`,Ug=`shown${Kr}`,Yg=`resize${Kr}`,Gg=`click.dismiss${Kr}`,Kg=`mousedown.dismiss${Kr}`,Qg=`keydown.dismiss${Kr}`,Xg=`click${Kr}${Vg}`,Vu="modal-open",Jg="fade",ju="show",ac="modal-static",Zg=".modal.show",ev=".modal-dialog",tv=".modal-body",iv='[data-bs-toggle="modal"]',nv={backdrop:!0,focus:!0,keyboard:!0},rv={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},io=class ii extends Qn{constructor(ei,ti){super(ei,ti),this._dialog=Wi.findOne(ev,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ia,this._addEventListeners()}static get Default(){return nv}static get DefaultType(){return rv}static get NAME(){return Bg}toggle(ei){return this._isShown?this.hide():this.show(ei)}show(ei){this._isShown||this._isTransitioning||wi.trigger(this._element,xd,{relatedTarget:ei}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Vu),this._adjustDialog(),this._backdrop.show(()=>this._showElement(ei)))}hide(){!this._isShown||this._isTransitioning||wi.trigger(this._element,qg).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ju),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){wi.off(window,Kr),wi.off(this._dialog,Kr),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Qa({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ja({trapElement:this._element})}_showElement(ei){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;let ti=Wi.findOne(tv,this._dialog);ti&&(ti.scrollTop=0),na(this._element),this._element.classList.add(ju);let ni=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,wi.trigger(this._element,Ug,{relatedTarget:ei})};this._queueCallback(ni,this._dialog,this._isAnimated())}_addEventListeners(){wi.on(this._element,Qg,ei=>{if(ei.key===jg){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),wi.on(window,Yg,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),wi.on(this._element,Kg,ei=>{wi.one(this._element,Gg,ti=>{if(!(this._element!==ei.target||this._element!==ti.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Vu),this._resetAdjustments(),this._scrollBar.reset(),wi.trigger(this._element,wd)})}_isAnimated(){return this._element.classList.contains(Jg)}_triggerBackdropTransition(){if(wi.trigger(this._element,Wg).defaultPrevented)return;let ti=this._element.scrollHeight>document.documentElement.clientHeight,ni=this._element.style.overflowY;ni==="hidden"||this._element.classList.contains(ac)||(ti||(this._element.style.overflowY="hidden"),this._element.classList.add(ac),this._queueCallback(()=>{this._element.classList.remove(ac),this._queueCallback(()=>{this._element.style.overflowY=ni},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let ei=this._element.scrollHeight>document.documentElement.clientHeight,ti=this._scrollBar.getWidth(),ni=ti>0;if(ni&&!ei){let ri=Gr()?"paddingLeft":"paddingRight";this._element.style[ri]=`${ti}px`}if(!ni&&ei){let ri=Gr()?"paddingRight":"paddingLeft";this._element.style[ri]=`${ti}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(ei,ti){return this.each(function(){let ni=ii.getOrCreateInstance(this,ei);if(typeof ei=="string"){if(typeof ni[ei]=="undefined")throw new TypeError(`No method named "${ei}"`);ni[ei](ti)}})}};wi.on(document,Xg,iv,function(ii){let ei=Wi.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&ii.preventDefault(),wi.one(ei,xd,ri=>{ri.defaultPrevented||wi.one(ei,wd,()=>{As(this)&&this.focus()})});let ti=Wi.findOne(Zg);ti&&io.getInstance(ti).hide(),io.getOrCreateInstance(ei).toggle(this)});el(io);Qr(io);var ov="offcanvas",sv="bs.offcanvas",yo=`.${sv}`,Td=".data-api",av=`load${yo}${Td}`,lv="Escape",qu="show",Wu="showing",Uu="hiding",cv="offcanvas-backdrop",Cd=".offcanvas.show",uv=`show${yo}`,dv=`shown${yo}`,fv=`hide${yo}`,Yu=`hidePrevented${yo}`,Sd=`hidden${yo}`,hv=`resize${yo}`,pv=`click${yo}${Td}`,mv=`keydown.dismiss${yo}`,gv='[data-bs-toggle="offcanvas"]',vv={backdrop:!0,keyboard:!0,scroll:!1},yv={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},Mo=class ii extends Qn{constructor(ei,ti){super(ei,ti),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return vv}static get DefaultType(){return yv}static get NAME(){return ov}toggle(ei){return this._isShown?this.hide():this.show(ei)}show(ei){if(this._isShown||wi.trigger(this._element,uv,{relatedTarget:ei}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ia().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Wu);let ni=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(qu),this._element.classList.remove(Wu),wi.trigger(this._element,dv,{relatedTarget:ei})};this._queueCallback(ni,this._element,!0)}hide(){if(!this._isShown||wi.trigger(this._element,fv).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Uu),this._backdrop.hide();let ti=()=>{this._element.classList.remove(qu,Uu),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ia().reset(),wi.trigger(this._element,Sd)};this._queueCallback(ti,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let ei=()=>{if(this._config.backdrop==="static"){wi.trigger(this._element,Yu);return}this.hide()},ti=!!this._config.backdrop;return new Qa({className:cv,isVisible:ti,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:ti?ei:null})}_initializeFocusTrap(){return new Ja({trapElement:this._element})}_addEventListeners(){wi.on(this._element,mv,ei=>{if(ei.key===lv){if(this._config.keyboard){this.hide();return}wi.trigger(this._element,Yu)}})}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this,ei);if(typeof ei=="string"){if(ti[ei]===void 0||ei.startsWith("_")||ei==="constructor")throw new TypeError(`No method named "${ei}"`);ti[ei](this)}})}};wi.on(document,pv,gv,function(ii){let ei=Wi.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&ii.preventDefault(),Do(this))return;wi.one(ei,Sd,()=>{As(this)&&this.focus()});let ti=Wi.findOne(Cd);ti&&ti!==ei&&Mo.getInstance(ti).hide(),Mo.getOrCreateInstance(ei).toggle(this)});wi.on(window,av,()=>{for(let ii of Wi.find(Cd))Mo.getOrCreateInstance(ii).show()});wi.on(window,hv,()=>{for(let ii of Wi.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(ii).position!=="fixed"&&Mo.getOrCreateInstance(ii).hide()});el(Mo);Qr(Mo);var bv=/^aria-[\w-]*$/i,Ad={"*":["class","dir","id","lang","role",bv],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},_v=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ev=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,wv=(ii,ei)=>{let ti=ii.nodeName.toLowerCase();return ei.includes(ti)?_v.has(ti)?!!Ev.test(ii.nodeValue):!0:ei.filter(ni=>ni instanceof RegExp).some(ni=>ni.test(ti))};function xv(ii,ei,ti){if(!ii.length)return ii;if(ti&&typeof ti=="function")return ti(ii);let ri=new window.DOMParser().parseFromString(ii,"text/html"),oi=[].concat(...ri.body.querySelectorAll("*"));for(let si of oi){let ai=si.nodeName.toLowerCase();if(!Object.keys(ei).includes(ai)){si.remove();continue}let li=[].concat(...si.attributes),ui=[].concat(ei["*"]||[],ei[ai]||[]);for(let ci of li)wv(ci,ui)||si.removeAttribute(ci.nodeName)}return ri.body.innerHTML}var Tv="TemplateFactory",Cv={allowList:Ad,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Sv={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Av={entry:"(string|element|function|null)",selector:"(string|element)"},yc=class extends es{constructor(ei){super(),this._config=this._getConfig(ei)}static get Default(){return Cv}static get DefaultType(){return Sv}static get NAME(){return Tv}getContent(){return Object.values(this._config.content).map(ei=>this._resolvePossibleFunction(ei)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(ei){return this._checkContent(ei),this._config.content=Di(Di({},this._config.content),ei),this}toHtml(){let ei=document.createElement("div");ei.innerHTML=this._maybeSanitize(this._config.template);for(let[ri,oi]of Object.entries(this._config.content))this._setContent(ei,oi,ri);let ti=ei.children[0],ni=this._resolvePossibleFunction(this._config.extraClass);return ni&&ti.classList.add(...ni.split(" ")),ti}_typeCheckConfig(ei){super._typeCheckConfig(ei),this._checkContent(ei.content)}_checkContent(ei){for(let[ti,ni]of Object.entries(ei))super._typeCheckConfig({selector:ti,entry:ni},Av)}_setContent(ei,ti,ni){let ri=Wi.findOne(ni,ei);if(ri){if(ti=this._resolvePossibleFunction(ti),!ti){ri.remove();return}if(po(ti)){this._putElementInTemplate(Ao(ti),ri);return}if(this._config.html){ri.innerHTML=this._maybeSanitize(ti);return}ri.textContent=ti}}_maybeSanitize(ei){return this._config.sanitize?xv(ei,this._config.allowList,this._config.sanitizeFn):ei}_resolvePossibleFunction(ei){return Vn(ei,[this])}_putElementInTemplate(ei,ti){if(this._config.html){ti.innerHTML="",ti.append(ei);return}ti.textContent=ei.textContent}},Dv="tooltip",Ov=new Set(["sanitize","allowList","sanitizeFn"]),lc="fade",Lv="modal",za="show",Mv=".tooltip-inner",Gu=`.${Lv}`,Ku="hide.bs.modal",ea="hover",cc="focus",kv="click",Nv="manual",Rv="hide",Iv="hidden",Hv="show",Pv="shown",Fv="inserted",$v="click",Bv="focusin",zv="focusout",Vv="mouseenter",jv="mouseleave",qv={AUTO:"auto",TOP:"top",RIGHT:Gr()?"left":"right",BOTTOM:"bottom",LEFT:Gr()?"right":"left"},Wv={allowList:Ad,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Uv={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"},go=class ii extends Qn{constructor(ei,ti){if(typeof Pa=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(ei,ti),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Wv}static get DefaultType(){return Uv}static get NAME(){return Dv}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),wi.off(this._element.closest(Gu),Ku,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let ei=wi.trigger(this._element,this.constructor.eventName(Hv)),ni=(od(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(ei.defaultPrevented||!ni)return;this._disposePopper();let ri=this._getTipElement();this._element.setAttribute("aria-describedby",ri.getAttribute("id"));let{container:oi}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(oi.append(ri),wi.trigger(this._element,this.constructor.eventName(Fv))),this._popper=this._createPopper(ri),ri.classList.add(za),"ontouchstart"in document.documentElement)for(let ai of[].concat(...document.body.children))wi.on(ai,"mouseover",Ua);let si=()=>{wi.trigger(this._element,this.constructor.eventName(Pv)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(si,this.tip,this._isAnimated())}hide(){if(!this._isShown()||wi.trigger(this._element,this.constructor.eventName(Rv)).defaultPrevented)return;if(this._getTipElement().classList.remove(za),"ontouchstart"in document.documentElement)for(let ri of[].concat(...document.body.children))wi.off(ri,"mouseover",Ua);this._activeTrigger[kv]=!1,this._activeTrigger[cc]=!1,this._activeTrigger[ea]=!1,this._isHovered=null;let ni=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),wi.trigger(this._element,this.constructor.eventName(Iv)))};this._queueCallback(ni,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(ei){let ti=this._getTemplateFactory(ei).toHtml();if(!ti)return null;ti.classList.remove(lc,za),ti.classList.add(`bs-${this.constructor.NAME}-auto`);let ni=Np(this.constructor.NAME).toString();return ti.setAttribute("id",ni),this._isAnimated()&&ti.classList.add(lc),ti}setContent(ei){this._newContent=ei,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(ei){return this._templateFactory?this._templateFactory.changeContent(ei):this._templateFactory=new yc(sn(Di({},this._config),{content:ei,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[Mv]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(ei){return this.constructor.getOrCreateInstance(ei.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(lc)}_isShown(){return this.tip&&this.tip.classList.contains(za)}_createPopper(ei){let ti=Vn(this._config.placement,[this,ei,this._element]),ni=qv[ti.toUpperCase()];return Js(this._element,ei,this._getPopperConfig(ni))}_getOffset(){let{offset:ei}=this._config;return typeof ei=="string"?ei.split(",").map(ti=>Number.parseInt(ti,10)):typeof ei=="function"?ti=>ei(ti,this._element):ei}_resolvePossibleFunction(ei){return Vn(ei,[this._element])}_getPopperConfig(ei){let ti={placement:ei,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:ni=>{this._getTipElement().setAttribute("data-popper-placement",ni.state.placement)}}]};return Di(Di({},ti),Vn(this._config.popperConfig,[ti]))}_setListeners(){let ei=this._config.trigger.split(" ");for(let ti of ei)if(ti==="click")wi.on(this._element,this.constructor.eventName($v),this._config.selector,ni=>{this._initializeOnDelegatedTarget(ni).toggle()});else if(ti!==Nv){let ni=ti===ea?this.constructor.eventName(Vv):this.constructor.eventName(Bv),ri=ti===ea?this.constructor.eventName(jv):this.constructor.eventName(zv);wi.on(this._element,ni,this._config.selector,oi=>{let si=this._initializeOnDelegatedTarget(oi);si._activeTrigger[oi.type==="focusin"?cc:ea]=!0,si._enter()}),wi.on(this._element,ri,this._config.selector,oi=>{let si=this._initializeOnDelegatedTarget(oi);si._activeTrigger[oi.type==="focusout"?cc:ea]=si._element.contains(oi.relatedTarget),si._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},wi.on(this._element.closest(Gu),Ku,this._hideModalHandler)}_fixTitle(){let ei=this._element.getAttribute("title");ei&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",ei),this._element.setAttribute("data-bs-original-title",ei),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(ei,ti){clearTimeout(this._timeout),this._timeout=setTimeout(ei,ti)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(ei){let ti=mo.getDataAttributes(this._element);for(let ni of Object.keys(ti))Ov.has(ni)&&delete ti[ni];return ei=Di(Di({},ti),typeof ei=="object"&&ei?ei:{}),ei=this._mergeConfigObj(ei),ei=this._configAfterMerge(ei),this._typeCheckConfig(ei),ei}_configAfterMerge(ei){return ei.container=ei.container===!1?document.body:Ao(ei.container),typeof ei.delay=="number"&&(ei.delay={show:ei.delay,hide:ei.delay}),typeof ei.title=="number"&&(ei.title=ei.title.toString()),typeof ei.content=="number"&&(ei.content=ei.content.toString()),ei}_getDelegateConfig(){let ei={};for(let[ti,ni]of Object.entries(this._config))this.constructor.Default[ti]!==ni&&(ei[ti]=ni);return ei.selector=!1,ei.trigger="manual",ei}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this,ei);if(typeof ei=="string"){if(typeof ti[ei]=="undefined")throw new TypeError(`No method named "${ei}"`);ti[ei]()}})}};Qr(go);var Yv="popover",Gv=".popover-header",Kv=".popover-body",Qv=sn(Di({},go.Default),{content:"",offset:[0,8],placement:"right",template:'',trigger:"click"}),Xv=sn(Di({},go.DefaultType),{content:"(null|string|element|function)"}),Ss=class ii extends go{static get Default(){return Qv}static get DefaultType(){return Xv}static get NAME(){return Yv}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Gv]:this._getTitle(),[Kv]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this,ei);if(typeof ei=="string"){if(typeof ti[ei]=="undefined")throw new TypeError(`No method named "${ei}"`);ti[ei]()}})}};Qr(Ss);var Jv="scrollspy",Zv="bs.scrollspy",wc=`.${Zv}`,ey=".data-api",ty=`activate${wc}`,Qu=`click${wc}`,iy=`load${wc}${ey}`,ny="dropdown-item",ws="active",ry='[data-bs-spy="scroll"]',uc="[href]",oy=".nav, .list-group",Xu=".nav-link",sy=".nav-item",ay=".list-group-item",ly=`${Xu}, ${sy} > ${Xu}, ${ay}`,cy=".dropdown",uy=".dropdown-toggle",dy={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},fy={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},Za=class ii extends Qn{constructor(ei,ti){super(ei,ti),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return dy}static get DefaultType(){return fy}static get NAME(){return Jv}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let ei of this._observableSections.values())this._observer.observe(ei)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(ei){return ei.target=Ao(ei.target)||document.body,ei.rootMargin=ei.offset?`${ei.offset}px 0px -30%`:ei.rootMargin,typeof ei.threshold=="string"&&(ei.threshold=ei.threshold.split(",").map(ti=>Number.parseFloat(ti))),ei}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(wi.off(this._config.target,Qu),wi.on(this._config.target,Qu,uc,ei=>{let ti=this._observableSections.get(ei.target.hash);if(ti){ei.preventDefault();let ni=this._rootElement||window,ri=ti.offsetTop-this._element.offsetTop;if(ni.scrollTo){ni.scrollTo({top:ri,behavior:"smooth"});return}ni.scrollTop=ri}}))}_getNewObserver(){let ei={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(ti=>this._observerCallback(ti),ei)}_observerCallback(ei){let ti=si=>this._targetLinks.get(`#${si.target.id}`),ni=si=>{this._previousScrollData.visibleEntryTop=si.target.offsetTop,this._process(ti(si))},ri=(this._rootElement||document.documentElement).scrollTop,oi=ri>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=ri;for(let si of ei){if(!si.isIntersecting){this._activeTarget=null,this._clearActiveClass(ti(si));continue}let ai=si.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(oi&&ai){if(ni(si),!ri)return;continue}!oi&&!ai&&ni(si)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let ei=Wi.find(uc,this._config.target);for(let ti of ei){if(!ti.hash||Do(ti))continue;let ni=Wi.findOne(decodeURI(ti.hash),this._element);As(ni)&&(this._targetLinks.set(decodeURI(ti.hash),ti),this._observableSections.set(ti.hash,ni))}}_process(ei){this._activeTarget!==ei&&(this._clearActiveClass(this._config.target),this._activeTarget=ei,ei.classList.add(ws),this._activateParents(ei),wi.trigger(this._element,ty,{relatedTarget:ei}))}_activateParents(ei){if(ei.classList.contains(ny)){Wi.findOne(uy,ei.closest(cy)).classList.add(ws);return}for(let ti of Wi.parents(ei,oy))for(let ni of Wi.prev(ti,ly))ni.classList.add(ws)}_clearActiveClass(ei){ei.classList.remove(ws);let ti=Wi.find(`${uc}.${ws}`,ei);for(let ni of ti)ni.classList.remove(ws)}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this,ei);if(typeof ei=="string"){if(ti[ei]===void 0||ei.startsWith("_")||ei==="constructor")throw new TypeError(`No method named "${ei}"`);ti[ei]()}})}};wi.on(window,iy,()=>{for(let ii of Wi.find(ry))Za.getOrCreateInstance(ii)});Qr(Za);var hy="tab",py="bs.tab",ns=`.${py}`,my=`hide${ns}`,gy=`hidden${ns}`,vy=`show${ns}`,yy=`shown${ns}`,by=`click${ns}`,_y=`keydown${ns}`,Ey=`load${ns}`,wy="ArrowLeft",Ju="ArrowRight",xy="ArrowUp",Zu="ArrowDown",dc="Home",ed="End",Zo="active",td="fade",fc="show",Ty="dropdown",Dd=".dropdown-toggle",Cy=".dropdown-menu",hc=`:not(${Dd})`,Sy='.list-group, .nav, [role="tablist"]',Ay=".nav-item, .list-group-item",Dy=`.nav-link${hc}, .list-group-item${hc}, [role="tab"]${hc}`,Od='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',pc=`${Dy}, ${Od}`,Oy=`.${Zo}[data-bs-toggle="tab"], .${Zo}[data-bs-toggle="pill"], .${Zo}[data-bs-toggle="list"]`,ts=class ii extends Qn{constructor(ei){super(ei),this._parent=this._element.closest(Sy),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),wi.on(this._element,_y,ti=>this._keydown(ti)))}static get NAME(){return hy}show(){let ei=this._element;if(this._elemIsActive(ei))return;let ti=this._getActiveElem(),ni=ti?wi.trigger(ti,my,{relatedTarget:ei}):null;wi.trigger(ei,vy,{relatedTarget:ti}).defaultPrevented||ni&&ni.defaultPrevented||(this._deactivate(ti,ei),this._activate(ei,ti))}_activate(ei,ti){if(!ei)return;ei.classList.add(Zo),this._activate(Wi.getElementFromSelector(ei));let ni=()=>{if(ei.getAttribute("role")!=="tab"){ei.classList.add(fc);return}ei.removeAttribute("tabindex"),ei.setAttribute("aria-selected",!0),this._toggleDropDown(ei,!0),wi.trigger(ei,yy,{relatedTarget:ti})};this._queueCallback(ni,ei,ei.classList.contains(td))}_deactivate(ei,ti){if(!ei)return;ei.classList.remove(Zo),ei.blur(),this._deactivate(Wi.getElementFromSelector(ei));let ni=()=>{if(ei.getAttribute("role")!=="tab"){ei.classList.remove(fc);return}ei.setAttribute("aria-selected",!1),ei.setAttribute("tabindex","-1"),this._toggleDropDown(ei,!1),wi.trigger(ei,gy,{relatedTarget:ti})};this._queueCallback(ni,ei,ei.classList.contains(td))}_keydown(ei){if(![wy,Ju,xy,Zu,dc,ed].includes(ei.key))return;ei.stopPropagation(),ei.preventDefault();let ti=this._getChildren().filter(ri=>!Do(ri)),ni;if([dc,ed].includes(ei.key))ni=ti[ei.key===dc?0:ti.length-1];else{let ri=[Ju,Zu].includes(ei.key);ni=bc(ti,ei.target,ri,!0)}ni&&(ni.focus({preventScroll:!0}),ii.getOrCreateInstance(ni).show())}_getChildren(){return Wi.find(pc,this._parent)}_getActiveElem(){return this._getChildren().find(ei=>this._elemIsActive(ei))||null}_setInitialAttributes(ei,ti){this._setAttributeIfNotExists(ei,"role","tablist");for(let ni of ti)this._setInitialAttributesOnChild(ni)}_setInitialAttributesOnChild(ei){ei=this._getInnerElement(ei);let ti=this._elemIsActive(ei),ni=this._getOuterElement(ei);ei.setAttribute("aria-selected",ti),ni!==ei&&this._setAttributeIfNotExists(ni,"role","presentation"),ti||ei.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(ei,"role","tab"),this._setInitialAttributesOnTargetPanel(ei)}_setInitialAttributesOnTargetPanel(ei){let ti=Wi.getElementFromSelector(ei);ti&&(this._setAttributeIfNotExists(ti,"role","tabpanel"),ei.id&&this._setAttributeIfNotExists(ti,"aria-labelledby",`${ei.id}`))}_toggleDropDown(ei,ti){let ni=this._getOuterElement(ei);if(!ni.classList.contains(Ty))return;let ri=(oi,si)=>{let ai=Wi.findOne(oi,ni);ai&&ai.classList.toggle(si,ti)};ri(Dd,Zo),ri(Cy,fc),ni.setAttribute("aria-expanded",ti)}_setAttributeIfNotExists(ei,ti,ni){ei.hasAttribute(ti)||ei.setAttribute(ti,ni)}_elemIsActive(ei){return ei.classList.contains(Zo)}_getInnerElement(ei){return ei.matches(pc)?ei:Wi.findOne(pc,ei)}_getOuterElement(ei){return ei.closest(Ay)||ei}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this);if(typeof ei=="string"){if(ti[ei]===void 0||ei.startsWith("_")||ei==="constructor")throw new TypeError(`No method named "${ei}"`);ti[ei]()}})}};wi.on(document,by,Od,function(ii){["A","AREA"].includes(this.tagName)&&ii.preventDefault(),!Do(this)&&ts.getOrCreateInstance(this).show()});wi.on(window,Ey,()=>{for(let ii of Wi.find(Oy))ts.getOrCreateInstance(ii)});Qr(ts);var Ly="toast",My="bs.toast",No=`.${My}`,ky=`mouseover${No}`,Ny=`mouseout${No}`,Ry=`focusin${No}`,Iy=`focusout${No}`,Hy=`hide${No}`,Py=`hidden${No}`,Fy=`show${No}`,$y=`shown${No}`,By="fade",id="hide",Va="show",ja="showing",zy={animation:"boolean",autohide:"boolean",delay:"number"},Vy={animation:!0,autohide:!0,delay:5e3},vo=class ii extends Qn{constructor(ei,ti){super(ei,ti),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Vy}static get DefaultType(){return zy}static get NAME(){return Ly}show(){if(wi.trigger(this._element,Fy).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(By);let ti=()=>{this._element.classList.remove(ja),wi.trigger(this._element,$y),this._maybeScheduleHide()};this._element.classList.remove(id),na(this._element),this._element.classList.add(Va,ja),this._queueCallback(ti,this._element,this._config.animation)}hide(){if(!this.isShown()||wi.trigger(this._element,Hy).defaultPrevented)return;let ti=()=>{this._element.classList.add(id),this._element.classList.remove(ja,Va),wi.trigger(this._element,Py)};this._element.classList.add(ja),this._queueCallback(ti,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Va),super.dispose()}isShown(){return this._element.classList.contains(Va)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(ei,ti){switch(ei.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=ti;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=ti;break}}if(ti){this._clearTimeout();return}let ni=ei.relatedTarget;this._element===ni||this._element.contains(ni)||this._maybeScheduleHide()}_setListeners(){wi.on(this._element,ky,ei=>this._onInteraction(ei,!0)),wi.on(this._element,Ny,ei=>this._onInteraction(ei,!1)),wi.on(this._element,Ry,ei=>this._onInteraction(ei,!0)),wi.on(this._element,Iy,ei=>this._onInteraction(ei,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(ei){return this.each(function(){let ti=ii.getOrCreateInstance(this,ei);if(typeof ei=="string"){if(typeof ti[ei]=="undefined")throw new TypeError(`No method named "${ei}"`);ti[ei](this)}})}};el(vo);Qr(vo);var FL=cu(Ld());function xc(ii,ei){ii.split(/\s+/).forEach(ti=>{ei(ti)})}var oa=class{constructor(){this._events={}}on(ei,ti){xc(ei,ni=>{let ri=this._events[ni]||[];ri.push(ti),this._events[ni]=ri})}off(ei,ti){var ni=arguments.length;if(ni===0){this._events={};return}xc(ei,ri=>{if(ni===1){delete this._events[ri];return}let oi=this._events[ri];oi!==void 0&&(oi.splice(oi.indexOf(ti),1),this._events[ri]=oi)})}trigger(ei,...ti){var ni=this;xc(ei,ri=>{let oi=ni._events[ri];oi!==void 0&&oi.forEach(si=>{si.apply(ni,ti)})})}};function Tc(ii){return ii.plugins={},class extends ii{constructor(){super(...arguments),this.plugins={names:[],settings:{},requested:{},loaded:{}}}static define(ei,ti){ii.plugins[ei]={name:ei,fn:ti}}initializePlugins(ei){var ti,ni;let ri=this,oi=[];if(Array.isArray(ei))ei.forEach(si=>{typeof si=="string"?oi.push(si):(ri.plugins.settings[si.name]=si.options,oi.push(si.name))});else if(ei)for(ti in ei)ei.hasOwnProperty(ti)&&(ri.plugins.settings[ti]=ei[ti],oi.push(ti));for(;ni=oi.shift();)ri.require(ni)}loadPlugin(ei){var ti=this,ni=ti.plugins,ri=ii.plugins[ei];if(!ii.plugins.hasOwnProperty(ei))throw new Error('Unable to find "'+ei+'" plugin');ni.requested[ei]=!0,ni.loaded[ei]=ri.fn.apply(ti,[ti.plugins.settings[ei]||{}]),ni.names.push(ei)}require(ei){var ti=this,ni=ti.plugins;if(!ti.plugins.loaded.hasOwnProperty(ei)){if(ni.requested[ei])throw new Error('Plugin has circular dependency ("'+ei+'")');ti.loadPlugin(ei)}return ni.loaded[ei]}}}var sa=ii=>(ii=ii.filter(Boolean),ii.length<2?ii[0]||"":qy(ii)==1?"["+ii.join("")+"]":"(?:"+ii.join("|")+")"),Cc=ii=>{if(!jy(ii))return ii.join("");let ei="",ti=0,ni=()=>{ti>1&&(ei+="{"+ti+"}")};return ii.forEach((ri,oi)=>{if(ri===ii[oi-1]){ti++;return}ni(),ei+=ri,ti=1}),ni(),ei},Sc=ii=>{let ei=Array.from(ii);return sa(ei)},jy=ii=>new Set(ii).size!==ii.length,Ro=ii=>(ii+"").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu,"\\$1"),qy=ii=>ii.reduce((ei,ti)=>Math.max(ei,Wy(ti)),0),Wy=ii=>Array.from(ii).length;var Ac=ii=>{if(ii.length===1)return[[ii]];let ei=[],ti=ii.substring(1);return Ac(ti).forEach(function(ri){let oi=ri.slice(0);oi[0]=ii.charAt(0)+oi[0],ei.push(oi),oi=ri.slice(0),oi.unshift(ii.charAt(0)),ei.push(oi)}),ei};var Uy=[[0,65535]],Yy="[\u0300-\u036F\xB7\u02BE\u02BC]",tl,Rd,Gy=3,Dc={},Md={"/":"\u2044\u2215",0:"\u07C0",a:"\u2C65\u0250\u0251",aa:"\uA733",ae:"\xE6\u01FD\u01E3",ao:"\uA735",au:"\uA737",av:"\uA739\uA73B",ay:"\uA73D",b:"\u0180\u0253\u0183",c:"\uA73F\u0188\u023C\u2184",d:"\u0111\u0257\u0256\u1D05\u018C\uABB7\u0501\u0266",e:"\u025B\u01DD\u1D07\u0247",f:"\uA77C\u0192",g:"\u01E5\u0260\uA7A1\u1D79\uA77F\u0262",h:"\u0127\u2C68\u2C76\u0265",i:"\u0268\u0131",j:"\u0249\u0237",k:"\u0199\u2C6A\uA741\uA743\uA745\uA7A3",l:"\u0142\u019A\u026B\u2C61\uA749\uA747\uA781\u026D",m:"\u0271\u026F\u03FB",n:"\uA7A5\u019E\u0272\uA791\u1D0E\u043B\u0509",o:"\xF8\u01FF\u0254\u0275\uA74B\uA74D\u1D11",oe:"\u0153",oi:"\u01A3",oo:"\uA74F",ou:"\u0223",p:"\u01A5\u1D7D\uA751\uA753\uA755\u03C1",q:"\uA757\uA759\u024B",r:"\u024D\u027D\uA75B\uA7A7\uA783",s:"\xDF\u023F\uA7A9\uA785\u0282",t:"\u0167\u01AD\u0288\u2C66\uA787",th:"\xFE",tz:"\uA729",u:"\u0289",v:"\u028B\uA75F\u028C",vy:"\uA761",w:"\u2C73",y:"\u01B4\u024F\u1EFF",z:"\u01B6\u0225\u0240\u2C6C\uA763",hv:"\u0195"};for(let ii in Md){let ei=Md[ii]||"";for(let ti=0;ti{tl===void 0&&(tl=eb(ii||Uy))},kd=(ii,ei="NFKD")=>ii.normalize(ei),aa=ii=>Array.from(ii).reduce((ei,ti)=>ei+Xy(ti),""),Xy=ii=>(ii=kd(ii).toLowerCase().replace(Ky,ei=>Dc[ei]||""),kd(ii,"NFC"));function*Jy(ii){for(let[ei,ti]of ii)for(let ni=ei;ni<=ti;ni++){let ri=String.fromCharCode(ni),oi=aa(ri);oi!=ri.toLowerCase()&&(oi.length>Gy||oi.length!=0&&(yield{folded:oi,composed:ri,code_point:ni}))}}var Zy=ii=>{let ei={},ti=(ni,ri)=>{let oi=ei[ni]||new Set,si=new RegExp("^"+Sc(oi)+"$","iu");ri.match(si)||(oi.add(Ro(ri)),ei[ni]=oi)};for(let ni of Jy(ii))ti(ni.folded,ni.folded),ti(ni.folded,ni.composed);return ei},eb=ii=>{let ei=Zy(ii),ti={},ni=[];for(let oi in ei){let si=ei[oi];si&&(ti[oi]=Sc(si)),oi.length>1&&ni.push(Ro(oi))}ni.sort((oi,si)=>si.length-oi.length);let ri=sa(ni);return Rd=new RegExp("^"+ri,"u"),ti},tb=(ii,ei=1)=>{let ti=0;return ii=ii.map(ni=>(tl[ni]&&(ti+=ni.length),tl[ni]||ni)),ti>=ei?Cc(ii):""},ib=(ii,ei=1)=>(ei=Math.max(ei,ii.length-1),sa(Ac(ii).map(ti=>tb(ti,ei)))),Nd=(ii,ei=!0)=>{let ti=ii.length>1?1:0;return sa(ii.map(ni=>{let ri=[],oi=ei?ni.length():ni.length()-1;for(let si=0;si{for(let ti of ei){if(ti.start!=ii.start||ti.end!=ii.end||ti.substrs.join("")!==ii.substrs.join(""))continue;let ni=ii.parts,ri=si=>{for(let ai of ni){if(ai.start===si.start&&ai.substr===si.substr)return!1;if(!(si.length==1||ai.length==1)&&(si.startai.start||ai.startsi.start))return!0}return!1};if(!(ti.parts.filter(ri).length>0))return!0}return!1},il=class ii{constructor(){en(this,"parts");en(this,"substrs");en(this,"start");en(this,"end");this.parts=[],this.substrs=[],this.start=0,this.end=0}add(ei){ei&&(this.parts.push(ei),this.substrs.push(ei.substr),this.start=Math.min(ei.start,this.start),this.end=Math.max(ei.end,this.end))}last(){return this.parts[this.parts.length-1]}length(){return this.parts.length}clone(ei,ti){let ni=new ii,ri=JSON.parse(JSON.stringify(this.parts)),oi=ri.pop();for(let li of ri)ni.add(li);let si=ti.substr.substring(0,ei-oi.start),ai=si.length;return ni.add({start:oi.start,end:oi.start+ai,length:ai,substr:si}),ni}},Id=ii=>{Qy(),ii=aa(ii);let ei="",ti=[new il];for(let ni=0;ni0){li=li.sort((ci,di)=>ci.length()-di.length());for(let ci of li)nb(ci,ti)||ti.push(ci);continue}if(ni>0&&ui.size==1&&!ui.has("3")){ei+=Nd(ti,!1);let ci=new il,di=ti[0];di&&ci.add(di.last()),ti=[ci]}}return ei+=Nd(ti,!0),ei};var Hd=(ii,ei)=>{if(ii)return ii[ei]},Pd=(ii,ei)=>{if(ii){for(var ti,ni=ei.split(".");(ti=ni.shift())&&(ii=ii[ti]););return ii}},nl=(ii,ei,ti)=>{var ni,ri;return!ii||(ii=ii+"",ei.regex==null)||(ri=ii.search(ei.regex),ri===-1)?0:(ni=ei.string.length/ii.length,ri===0&&(ni+=.5),ni*ti)},rl=(ii,ei)=>{var ti=ii[ei];if(typeof ti=="function")return ti;ti&&!Array.isArray(ti)&&(ii[ei]=[ti])},la=(ii,ei)=>{if(Array.isArray(ii))ii.forEach(ei);else for(var ti in ii)ii.hasOwnProperty(ti)&&ei(ii[ti],ti)},Fd=(ii,ei)=>typeof ii=="number"&&typeof ei=="number"?ii>ei?1:iiei?1:ei>ii?-1:0);var ol=class{constructor(ei,ti){en(this,"items");en(this,"settings");this.items=ei,this.settings=ti||{diacritics:!0}}tokenize(ei,ti,ni){if(!ei||!ei.length)return[];let ri=[],oi=ei.split(/\s+/);var si;return ni&&(si=new RegExp("^("+Object.keys(ni).map(Ro).join("|")+"):(.*)$")),oi.forEach(ai=>{let li,ui=null,ci=null;si&&(li=ai.match(si))&&(ui=li[1],ai=li[2]),ai.length>0&&(this.settings.diacritics?ci=Id(ai)||null:ci=Ro(ai),ci&&ti&&(ci="\\b"+ci)),ri.push({string:ai,regex:ci?new RegExp(ci,"iu"):null,field:ui})}),ri}getScoreFunction(ei,ti){var ni=this.prepareSearch(ei,ti);return this._getScoreFunction(ni)}_getScoreFunction(ei){let ti=ei.tokens,ni=ti.length;if(!ni)return function(){return 0};let ri=ei.options.fields,oi=ei.weights,si=ri.length,ai=ei.getAttrFn;if(!si)return function(){return 1};let li=function(){return si===1?function(ui,ci){let di=ri[0].field;return nl(ai(ci,di),ui,oi[di]||1)}:function(ui,ci){var di=0;if(ui.field){let pi=ai(ci,ui.field);!ui.regex&&pi?di+=1/si:di+=nl(pi,ui,1)}else la(oi,(pi,yi)=>{di+=nl(ai(ci,yi),ui,pi)});return di/si}}();return ni===1?function(ui){return li(ti[0],ui)}:ei.options.conjunction==="and"?function(ui){var ci,di=0;for(let pi of ti){if(ci=li(pi,ui),ci<=0)return 0;di+=ci}return di/ni}:function(ui){var ci=0;return la(ti,di=>{ci+=li(di,ui)}),ci/ni}}getSortFunction(ei,ti){var ni=this.prepareSearch(ei,ti);return this._getSortFunction(ni)}_getSortFunction(ei){var ti,ni=[];let ri=this,oi=ei.options,si=!ei.query&&oi.sort_empty?oi.sort_empty:oi.sort;if(typeof si=="function")return si.bind(this);let ai=function(ui,ci){return ui==="$score"?ci.score:ei.getAttrFn(ri.items[ci.id],ui)};if(si)for(let ui of si)(ei.query||ui.field!=="$score")&&ni.push(ui);if(ei.query){ti=!0;for(let ui of ni)if(ui.field==="$score"){ti=!1;break}ti&&ni.unshift({field:"$score",direction:"desc"})}else ni=ni.filter(ui=>ui.field!=="$score");return ni.length?function(ui,ci){var di,pi;for(let yi of ni)if(pi=yi.field,di=(yi.direction==="desc"?-1:1)*Fd(ai(pi,ui),ai(pi,ci)),di)return di;return 0}:null}prepareSearch(ei,ti){let ni={};var ri=Object.assign({},ti);if(rl(ri,"sort"),rl(ri,"sort_empty"),ri.fields){rl(ri,"fields");let oi=[];ri.fields.forEach(si=>{typeof si=="string"&&(si={field:si,weight:1}),oi.push(si),ni[si.field]="weight"in si?si.weight:1}),ri.fields=oi}return{options:ri,query:ei.toLowerCase().trim(),tokens:this.tokenize(ei,ri.respect_word_boundaries,ni),total:0,items:[],weights:ni,getAttrFn:ri.nesting?Pd:Hd}}search(ei,ti){var ni=this,ri,oi;oi=this.prepareSearch(ei,ti),ti=oi.options,ei=oi.query;let si=ti.score||ni._getScoreFunction(oi);ei.length?la(ni.items,(li,ui)=>{ri=si(li),(ti.filter===!1||ri>0)&&oi.items.push({score:ri,id:ui})}):la(ni.items,(li,ui)=>{oi.items.push({score:1,id:ui})});let ai=ni._getSortFunction(oi);return ai&&oi.items.sort(ai),oi.total=oi.items.length,typeof ti.limit=="number"&&(oi.items=oi.items.slice(0,ti.limit)),oi}};var Xn=ii=>typeof ii=="undefined"||ii===null?null:ca(ii),ca=ii=>typeof ii=="boolean"?ii?"1":"0":ii+"",sl=ii=>(ii+"").replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),$d=(ii,ei)=>ei>0?window.setTimeout(ii,ei):(ii.call(null),null),Bd=(ii,ei)=>{var ti;return function(ni,ri){var oi=this;ti&&(oi.loading=Math.max(oi.loading-1,0),clearTimeout(ti)),ti=setTimeout(function(){ti=null,oi.loadedSearches[ni]=!0,ii.call(oi,ni,ri)},ei)}},Oc=(ii,ei,ti)=>{var ni,ri=ii.trigger,oi={};ii.trigger=function(){var si=arguments[0];if(ei.indexOf(si)!==-1)oi[si]=arguments;else return ri.apply(ii,arguments)},ti.apply(ii,[]),ii.trigger=ri;for(ni of ei)ni in oi&&ri.apply(ii,oi[ni])},zd=ii=>({start:ii.selectionStart||0,length:(ii.selectionEnd||0)-(ii.selectionStart||0)}),fn=(ii,ei=!1)=>{ii&&(ii.preventDefault(),ei&&ii.stopPropagation())},Nn=(ii,ei,ti,ni)=>{ii.addEventListener(ei,ti,ni)},Io=(ii,ei)=>{if(!ei||!ei[ii])return!1;var ti=(ei.altKey?1:0)+(ei.ctrlKey?1:0)+(ei.shiftKey?1:0)+(ei.metaKey?1:0);return ti===1},al=(ii,ei)=>{let ti=ii.getAttribute("id");return ti||(ii.setAttribute("id",ei),ei)},Lc=ii=>ii.replace(/[\\"']/g,"\\$&"),Ho=(ii,ei)=>{ei&&ii.append(ei)},En=(ii,ei)=>{if(Array.isArray(ii))ii.forEach(ei);else for(var ti in ii)ii.hasOwnProperty(ti)&&ei(ii[ti],ti)};var no=ii=>{if(ii.jquery)return ii[0];if(ii instanceof HTMLElement)return ii;if(Mc(ii)){var ei=document.createElement("template");return ei.innerHTML=ii.trim(),ei.content.firstChild}return document.querySelector(ii)},Mc=ii=>typeof ii=="string"&&ii.indexOf("<")>-1,Vd=ii=>ii.replace(/['"\\]/g,"\\$&"),ll=(ii,ei)=>{var ti=document.createEvent("HTMLEvents");ti.initEvent(ei,!0,!1),ii.dispatchEvent(ti)},ua=(ii,ei)=>{Object.assign(ii.style,ei)},jn=(ii,...ei)=>{var ti=jd(ei);ii=qd(ii),ii.map(ni=>{ti.map(ri=>{ni.classList.add(ri)})})},bo=(ii,...ei)=>{var ti=jd(ei);ii=qd(ii),ii.map(ni=>{ti.map(ri=>{ni.classList.remove(ri)})})},jd=ii=>{var ei=[];return En(ii,ti=>{typeof ti=="string"&&(ti=ti.trim().split(/[\t\n\f\r\s]/)),Array.isArray(ti)&&(ei=ei.concat(ti))}),ei.filter(Boolean)},qd=ii=>(Array.isArray(ii)||(ii=[ii]),ii),cl=(ii,ei,ti)=>{if(!(ti&&!ti.contains(ii)))for(;ii&&ii.matches;){if(ii.matches(ei))return ii;ii=ii.parentNode}},kc=(ii,ei=0)=>ei>0?ii[ii.length-1]:ii[0],Wd=ii=>Object.keys(ii).length===0,Nc=(ii,ei)=>{if(!ii)return-1;ei=ei||ii.nodeName;for(var ti=0;ii=ii.previousElementSibling;)ii.matches(ei)&&ti++;return ti},an=(ii,ei)=>{En(ei,(ti,ni)=>{ti==null?ii.removeAttribute(ni):ii.setAttribute(ni,""+ti)})},da=(ii,ei)=>{ii.parentNode&&ii.parentNode.replaceChild(ei,ii)};var Ud=(ii,ei)=>{if(ei===null)return;if(typeof ei=="string"){if(!ei.length)return;ei=new RegExp(ei,"i")}let ti=oi=>{var si=oi.data.match(ei);if(si&&oi.data.length>0){var ai=document.createElement("span");ai.className="highlight";var li=oi.splitText(si.index);li.splitText(si[0].length);var ui=li.cloneNode(!0);return ai.appendChild(ui),da(li,ai),1}return 0},ni=oi=>{oi.nodeType===1&&oi.childNodes&&!/(script|style)/i.test(oi.tagName)&&(oi.className!=="highlight"||oi.tagName!=="SPAN")&&Array.from(oi.childNodes).forEach(si=>{ri(si)})},ri=oi=>oi.nodeType===3?ti(oi):(ni(oi),0);ri(ii)},Yd=ii=>{var ei=ii.querySelectorAll("span.highlight");Array.prototype.forEach.call(ei,function(ti){var ni=ti.parentNode;ni.replaceChild(ti.firstChild,ti),ni.normalize()})};var rb=typeof navigator=="undefined"?!1:/Mac/.test(navigator.userAgent),fa=rb?"metaKey":"ctrlKey";var Rc={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:null,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,shouldOpen:null,maxOptions:50,maxItems:null,hideSelected:null,duplicates:!1,addPrecedence:!1,selectOnTab:!1,preload:null,allowEmptyOption:!1,refreshThrottle:300,loadThrottle:300,loadingClass:"loading",dataAttr:null,optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"ts-wrapper",controlClass:"ts-control",dropdownClass:"ts-dropdown",dropdownContentClass:"ts-dropdown-content",itemClass:"item",optionClass:"option",dropdownParent:null,controlInput:' ',copyClassesToDropdown:!1,placeholder:null,hidePlaceholder:null,shouldLoad:function(ii){return ii.length>0},render:{}};function ul(ii,ei){var ti=Object.assign({},Rc,ei),ni=ti.dataAttr,ri=ti.labelField,oi=ti.valueField,si=ti.disabledField,ai=ti.optgroupField,li=ti.optgroupLabelField,ui=ti.optgroupValueField,ci=ii.tagName.toLowerCase(),di=ii.getAttribute("placeholder")||ii.getAttribute("data-placeholder");if(!di&&!ti.allowEmptyOption){let vi=ii.querySelector('option[value=""]');vi&&(di=vi.textContent)}var pi={placeholder:di,options:[],optgroups:[],items:[],maxItems:null},yi=()=>{var vi,Ei=pi.options,Si={},xi=1;let Li=0;var Oi=ki=>{var Mi=Object.assign({},ki.dataset),Ai=ni&&Mi[ni];return typeof Ai=="string"&&Ai.length&&(Mi=Object.assign(Mi,JSON.parse(Ai))),Mi},zi=(ki,Mi)=>{var Ai=Xn(ki.value);if(Ai!=null&&!(!Ai&&!ti.allowEmptyOption)){if(Si.hasOwnProperty(Ai)){if(Mi){var qi=Si[Ai][ai];qi?Array.isArray(qi)?qi.push(Mi):Si[Ai][ai]=[qi,Mi]:Si[Ai][ai]=Mi}}else{var Ci=Oi(ki);Ci[ri]=Ci[ri]||ki.textContent,Ci[oi]=Ci[oi]||Ai,Ci[si]=Ci[si]||ki.disabled,Ci[ai]=Ci[ai]||Mi,Ci.$option=ki,Ci.$order=Ci.$order||++Li,Si[Ai]=Ci,Ei.push(Ci)}ki.selected&&pi.items.push(Ai)}},Vi=ki=>{var Mi,Ai;Ai=Oi(ki),Ai[li]=Ai[li]||ki.getAttribute("label")||"",Ai[ui]=Ai[ui]||xi++,Ai[si]=Ai[si]||ki.disabled,Ai.$order=Ai.$order||++Li,pi.optgroups.push(Ai),Mi=Ai[ui],En(ki.children,qi=>{zi(qi,Mi)})};pi.maxItems=ii.hasAttribute("multiple")?null:1,En(ii.children,ki=>{vi=ki.tagName.toLowerCase(),vi==="optgroup"?Vi(ki):vi==="option"&&zi(ki)})},gi=()=>{let vi=ii.getAttribute(ni);if(vi)pi.options=JSON.parse(vi),En(pi.options,Si=>{pi.items.push(Si[oi])});else{var Ei=ii.value.trim()||"";if(!ti.allowEmptyOption&&!Ei.length)return;let Si=Ei.split(ti.delimiter);En(Si,xi=>{let Li={};Li[ri]=xi,Li[oi]=xi,pi.options.push(Li)}),pi.items=Si}};return ci==="select"?yi():gi(),Object.assign({},Rc,pi,ei)}var Qd=0,Cn=class extends Tc(oa){constructor(ei,ti){super(),this.order=0,this.isOpen=!1,this.isDisabled=!1,this.isReadOnly=!1,this.isInvalid=!1,this.isValid=!0,this.isLocked=!1,this.isFocused=!1,this.isInputHidden=!1,this.isSetup=!1,this.ignoreFocus=!1,this.ignoreHover=!1,this.hasOptions=!1,this.lastValue="",this.caretPos=0,this.loading=0,this.loadedSearches={},this.activeOption=null,this.activeItems=[],this.optgroups={},this.options={},this.userOptions={},this.items=[],this.refreshTimeout=null,Qd++;var ni,ri=no(ei);if(ri.tomselect)throw new Error("Tom Select already initialized on this element");ri.tomselect=this;var oi=window.getComputedStyle&&window.getComputedStyle(ri,null);ni=oi.getPropertyValue("direction");let si=ul(ri,ti);this.settings=si,this.input=ri,this.tabIndex=ri.tabIndex||0,this.is_select_tag=ri.tagName.toLowerCase()==="select",this.rtl=/rtl/i.test(ni),this.inputId=al(ri,"tomselect-"+Qd),this.isRequired=ri.required,this.sifter=new ol(this.options,{diacritics:si.diacritics}),si.mode=si.mode||(si.maxItems===1?"single":"multi"),typeof si.hideSelected!="boolean"&&(si.hideSelected=si.mode==="multi"),typeof si.hidePlaceholder!="boolean"&&(si.hidePlaceholder=si.mode!=="multi");var ai=si.createFilter;typeof ai!="function"&&(typeof ai=="string"&&(ai=new RegExp(ai)),ai instanceof RegExp?si.createFilter=Ei=>ai.test(Ei):si.createFilter=Ei=>this.settings.duplicates||!this.options[Ei]),this.initializePlugins(si.plugins),this.setupCallbacks(),this.setupTemplates();let li=no(""),ui=no("
"),ci=this._render("dropdown"),di=no('
'),pi=this.input.getAttribute("class")||"",yi=si.mode;var gi;if(jn(li,si.wrapperClass,pi,yi),jn(ui,si.controlClass),Ho(li,ui),jn(ci,si.dropdownClass,yi),si.copyClassesToDropdown&&jn(ci,pi),jn(di,si.dropdownContentClass),Ho(ci,di),no(si.dropdownParent||li).appendChild(ci),Mc(si.controlInput)){gi=no(si.controlInput);var vi=["autocorrect","autocapitalize","autocomplete","spellcheck"];En(vi,Ei=>{ri.getAttribute(Ei)&&an(gi,{[Ei]:ri.getAttribute(Ei)})}),gi.tabIndex=-1,ui.appendChild(gi),this.focus_node=gi}else si.controlInput?(gi=no(si.controlInput),this.focus_node=gi):(gi=no("
"),this.focus_node=ui);this.wrapper=li,this.dropdown=ci,this.dropdown_content=di,this.control=ui,this.control_input=gi,this.setup()}setup(){let ei=this,ti=ei.settings,ni=ei.control_input,ri=ei.dropdown,oi=ei.dropdown_content,si=ei.wrapper,ai=ei.control,li=ei.input,ui=ei.focus_node,ci={passive:!0},di=ei.inputId+"-ts-dropdown";an(oi,{id:di}),an(ui,{role:"combobox","aria-haspopup":"listbox","aria-expanded":"false","aria-controls":di});let pi=al(ui,ei.inputId+"-ts-control"),yi="label[for='"+Vd(ei.inputId)+"']",gi=document.querySelector(yi),vi=ei.focus.bind(ei);if(gi){Nn(gi,"click",vi),an(gi,{for:pi});let xi=al(gi,ei.inputId+"-ts-label");an(ui,{"aria-labelledby":xi}),an(oi,{"aria-labelledby":xi})}if(si.style.width=li.style.width,ei.plugins.names.length){let xi="plugin-"+ei.plugins.names.join(" plugin-");jn([si,ri],xi)}(ti.maxItems===null||ti.maxItems>1)&&ei.is_select_tag&&an(li,{multiple:"multiple"}),ti.placeholder&&an(ni,{placeholder:ti.placeholder}),!ti.splitOn&&ti.delimiter&&(ti.splitOn=new RegExp("\\s*"+Ro(ti.delimiter)+"+\\s*")),ti.load&&ti.loadThrottle&&(ti.load=Bd(ti.load,ti.loadThrottle)),Nn(ri,"mousemove",()=>{ei.ignoreHover=!1}),Nn(ri,"mouseenter",xi=>{var Li=cl(xi.target,"[data-selectable]",ri);Li&&ei.onOptionHover(xi,Li)},{capture:!0}),Nn(ri,"click",xi=>{let Li=cl(xi.target,"[data-selectable]");Li&&(ei.onOptionSelect(xi,Li),fn(xi,!0))}),Nn(ai,"click",xi=>{var Li=cl(xi.target,"[data-ts-item]",ai);if(Li&&ei.onItemSelect(xi,Li)){fn(xi,!0);return}ni.value==""&&(ei.onClick(),fn(xi,!0))}),Nn(ui,"keydown",xi=>ei.onKeyDown(xi)),Nn(ni,"keypress",xi=>ei.onKeyPress(xi)),Nn(ni,"input",xi=>ei.onInput(xi)),Nn(ui,"blur",xi=>ei.onBlur(xi)),Nn(ui,"focus",xi=>ei.onFocus(xi)),Nn(ni,"paste",xi=>ei.onPaste(xi));let Ei=xi=>{let Li=xi.composedPath()[0];if(!si.contains(Li)&&!ri.contains(Li)){ei.isFocused&&ei.blur(),ei.inputState();return}Li==ni&&ei.isOpen?xi.stopPropagation():fn(xi,!0)},Si=()=>{ei.isOpen&&ei.positionDropdown()};Nn(document,"mousedown",Ei),Nn(window,"scroll",Si,ci),Nn(window,"resize",Si,ci),this._destroy=()=>{document.removeEventListener("mousedown",Ei),window.removeEventListener("scroll",Si),window.removeEventListener("resize",Si),gi&&gi.removeEventListener("click",vi)},this.revertSettings={innerHTML:li.innerHTML,tabIndex:li.tabIndex},li.tabIndex=-1,li.insertAdjacentElement("afterend",ei.wrapper),ei.sync(!1),ti.items=[],delete ti.optgroups,delete ti.options,Nn(li,"invalid",()=>{ei.isValid&&(ei.isValid=!1,ei.isInvalid=!0,ei.refreshState())}),ei.updateOriginalInput(),ei.refreshItems(),ei.close(!1),ei.inputState(),ei.isSetup=!0,li.disabled?ei.disable():li.readOnly?ei.setReadOnly(!0):ei.enable(),ei.on("change",this.onChange),jn(li,"tomselected","ts-hidden-accessible"),ei.trigger("initialize"),ti.preload===!0&&ei.preload()}setupOptions(ei=[],ti=[]){this.addOptions(ei),En(ti,ni=>{this.registerOptionGroup(ni)})}setupTemplates(){var ei=this,ti=ei.settings.labelField,ni=ei.settings.optgroupLabelField,ri={optgroup:oi=>{let si=document.createElement("div");return si.className="optgroup",si.appendChild(oi.options),si},optgroup_header:(oi,si)=>'",option:(oi,si)=>"
"+si(oi[ti])+"
",item:(oi,si)=>"
"+si(oi[ti])+"
",option_create:(oi,si)=>'
Add '+si(oi.input)+" …
",no_results:()=>'
No results found
',loading:()=>'
',not_loading:()=>{},dropdown:()=>"
"};ei.settings.render=Object.assign({},ri,ei.settings.render)}setupCallbacks(){var ei,ti,ni={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",item_select:"onItemSelect",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(ei in ni)ti=this.settings[ni[ei]],ti&&this.on(ei,ti)}sync(ei=!0){let ti=this,ni=ei?ul(ti.input,{delimiter:ti.settings.delimiter}):ti.settings;ti.setupOptions(ni.options,ni.optgroups),ti.setValue(ni.items||[],!0),ti.lastQuery=null}onClick(){var ei=this;if(ei.activeItems.length>0){ei.clearActiveItems(),ei.focus();return}ei.isFocused&&ei.isOpen?ei.blur():ei.focus()}onMouseDown(){}onChange(){ll(this.input,"input"),ll(this.input,"change")}onPaste(ei){var ti=this;if(ti.isInputHidden||ti.isLocked){fn(ei);return}ti.settings.splitOn&&setTimeout(()=>{var ni=ti.inputValue();if(ni.match(ti.settings.splitOn)){var ri=ni.trim().split(ti.settings.splitOn);En(ri,oi=>{Xn(oi)&&(this.options[oi]?ti.addItem(oi):ti.createItem(oi))})}},0)}onKeyPress(ei){var ti=this;if(ti.isLocked){fn(ei);return}var ni=String.fromCharCode(ei.keyCode||ei.which);if(ti.settings.create&&ti.settings.mode==="multi"&&ni===ti.settings.delimiter){ti.createItem(),fn(ei);return}}onKeyDown(ei){var ti=this;if(ti.ignoreHover=!0,ti.isLocked){ei.keyCode!==9&&fn(ei);return}switch(ei.keyCode){case 65:if(Io(fa,ei)&&ti.control_input.value==""){fn(ei),ti.selectAll();return}break;case 27:ti.isOpen&&(fn(ei,!0),ti.close()),ti.clearActiveItems();return;case 40:if(!ti.isOpen&&ti.hasOptions)ti.open();else if(ti.activeOption){let ni=ti.getAdjacent(ti.activeOption,1);ni&&ti.setActiveOption(ni)}fn(ei);return;case 38:if(ti.activeOption){let ni=ti.getAdjacent(ti.activeOption,-1);ni&&ti.setActiveOption(ni)}fn(ei);return;case 13:ti.canSelect(ti.activeOption)?(ti.onOptionSelect(ei,ti.activeOption),fn(ei)):ti.settings.create&&ti.createItem()?fn(ei):document.activeElement==ti.control_input&&ti.isOpen&&fn(ei);return;case 37:ti.advanceSelection(-1,ei);return;case 39:ti.advanceSelection(1,ei);return;case 9:ti.settings.selectOnTab&&(ti.canSelect(ti.activeOption)&&(ti.onOptionSelect(ei,ti.activeOption),fn(ei)),ti.settings.create&&ti.createItem()&&fn(ei));return;case 8:case 46:ti.deleteSelection(ei);return}ti.isInputHidden&&!Io(fa,ei)&&fn(ei)}onInput(ei){if(this.isLocked)return;let ti=this.inputValue();if(this.lastValue!==ti){if(this.lastValue=ti,ti==""){this._onInput();return}this.refreshTimeout&&window.clearTimeout(this.refreshTimeout),this.refreshTimeout=$d(()=>{this.refreshTimeout=null,this._onInput()},this.settings.refreshThrottle)}}_onInput(){let ei=this.lastValue;this.settings.shouldLoad.call(this,ei)&&this.load(ei),this.refreshOptions(),this.trigger("type",ei)}onOptionHover(ei,ti){this.ignoreHover||this.setActiveOption(ti,!1)}onFocus(ei){var ti=this,ni=ti.isFocused;if(ti.isDisabled||ti.isReadOnly){ti.blur(),fn(ei);return}ti.ignoreFocus||(ti.isFocused=!0,ti.settings.preload==="focus"&&ti.preload(),ni||ti.trigger("focus"),ti.activeItems.length||(ti.inputState(),ti.refreshOptions(!!ti.settings.openOnFocus)),ti.refreshState())}onBlur(ei){if(document.hasFocus()!==!1){var ti=this;if(ti.isFocused){ti.isFocused=!1,ti.ignoreFocus=!1;var ni=()=>{ti.close(),ti.setActiveItem(),ti.setCaret(ti.items.length),ti.trigger("blur")};ti.settings.create&&ti.settings.createOnBlur?ti.createItem(null,ni):ni()}}}onOptionSelect(ei,ti){var ni,ri=this;ti.parentElement&&ti.parentElement.matches("[data-disabled]")||(ti.classList.contains("create")?ri.createItem(null,()=>{ri.settings.closeAfterSelect&&ri.close()}):(ni=ti.dataset.value,typeof ni!="undefined"&&(ri.lastQuery=null,ri.addItem(ni),ri.settings.closeAfterSelect&&ri.close(),!ri.settings.hideSelected&&ei.type&&/click/.test(ei.type)&&ri.setActiveOption(ti))))}canSelect(ei){return!!(this.isOpen&&ei&&this.dropdown_content.contains(ei))}onItemSelect(ei,ti){var ni=this;return!ni.isLocked&&ni.settings.mode==="multi"?(fn(ei),ni.setActiveItem(ti,ei),!0):!1}canLoad(ei){return!(!this.settings.load||this.loadedSearches.hasOwnProperty(ei))}load(ei){let ti=this;if(!ti.canLoad(ei))return;jn(ti.wrapper,ti.settings.loadingClass),ti.loading++;let ni=ti.loadCallback.bind(ti);ti.settings.load.call(ti,ei,ni)}loadCallback(ei,ti){let ni=this;ni.loading=Math.max(ni.loading-1,0),ni.lastQuery=null,ni.clearActiveOption(),ni.setupOptions(ei,ti),ni.refreshOptions(ni.isFocused&&!ni.isInputHidden),ni.loading||bo(ni.wrapper,ni.settings.loadingClass),ni.trigger("load",ei,ti)}preload(){var ei=this.wrapper.classList;ei.contains("preloaded")||(ei.add("preloaded"),this.load(""))}setTextboxValue(ei=""){var ti=this.control_input,ni=ti.value!==ei;ni&&(ti.value=ei,ll(ti,"update"),this.lastValue=ei)}getValue(){return this.is_select_tag&&this.input.hasAttribute("multiple")?this.items:this.items.join(this.settings.delimiter)}setValue(ei,ti){var ni=ti?[]:["change"];Oc(this,ni,()=>{this.clear(ti),this.addItems(ei,ti)})}setMaxItems(ei){ei===0&&(ei=null),this.settings.maxItems=ei,this.refreshState()}setActiveItem(ei,ti){var ni=this,ri,oi,si,ai,li,ui;if(ni.settings.mode!=="single"){if(!ei){ni.clearActiveItems(),ni.isFocused&&ni.inputState();return}if(ri=ti&&ti.type.toLowerCase(),ri==="click"&&Io("shiftKey",ti)&&ni.activeItems.length){for(ui=ni.getLastActive(),si=Array.prototype.indexOf.call(ni.control.children,ui),ai=Array.prototype.indexOf.call(ni.control.children,ei),si>ai&&(li=si,si=ai,ai=li),oi=si;oi<=ai;oi++)ei=ni.control.children[oi],ni.activeItems.indexOf(ei)===-1&&ni.setActiveItemClass(ei);fn(ti)}else ri==="click"&&Io(fa,ti)||ri==="keydown"&&Io("shiftKey",ti)?ei.classList.contains("active")?ni.removeActiveItem(ei):ni.setActiveItemClass(ei):(ni.clearActiveItems(),ni.setActiveItemClass(ei));ni.inputState(),ni.isFocused||ni.focus()}}setActiveItemClass(ei){let ti=this,ni=ti.control.querySelector(".last-active");ni&&bo(ni,"last-active"),jn(ei,"active last-active"),ti.trigger("item_select",ei),ti.activeItems.indexOf(ei)==-1&&ti.activeItems.push(ei)}removeActiveItem(ei){var ti=this.activeItems.indexOf(ei);this.activeItems.splice(ti,1),bo(ei,"active")}clearActiveItems(){bo(this.activeItems,"active"),this.activeItems=[]}setActiveOption(ei,ti=!0){ei!==this.activeOption&&(this.clearActiveOption(),ei&&(this.activeOption=ei,an(this.focus_node,{"aria-activedescendant":ei.getAttribute("id")}),an(ei,{"aria-selected":"true"}),jn(ei,"active"),ti&&this.scrollToOption(ei)))}scrollToOption(ei,ti){if(!ei)return;let ni=this.dropdown_content,ri=ni.clientHeight,oi=ni.scrollTop||0,si=ei.offsetHeight,ai=ei.getBoundingClientRect().top-ni.getBoundingClientRect().top+oi;ai+si>ri+oi?this.scroll(ai-ri+si,ti):ai
{ei.setActiveItemClass(ni)}))}inputState(){var ei=this;ei.control.contains(ei.control_input)&&(an(ei.control_input,{placeholder:ei.settings.placeholder}),ei.activeItems.length>0||!ei.isFocused&&ei.settings.hidePlaceholder&&ei.items.length>0?(ei.setTextboxValue(),ei.isInputHidden=!0):(ei.settings.hidePlaceholder&&ei.items.length>0&&an(ei.control_input,{placeholder:""}),ei.isInputHidden=!1),ei.wrapper.classList.toggle("input-hidden",ei.isInputHidden))}inputValue(){return this.control_input.value.trim()}focus(){var ei=this;ei.isDisabled||ei.isReadOnly||(ei.ignoreFocus=!0,ei.control_input.offsetWidth?ei.control_input.focus():ei.focus_node.focus(),setTimeout(()=>{ei.ignoreFocus=!1,ei.onFocus()},0))}blur(){this.focus_node.blur(),this.onBlur()}getScoreFunction(ei){return this.sifter.getScoreFunction(ei,this.getSearchOptions())}getSearchOptions(){var ei=this.settings,ti=ei.sortField;return typeof ei.sortField=="string"&&(ti=[{field:ei.sortField}]),{fields:ei.searchField,conjunction:ei.searchConjunction,sort:ti,nesting:ei.nesting}}search(ei){var ti,ni,ri=this,oi=this.getSearchOptions();if(ri.settings.score&&(ni=ri.settings.score.call(ri,ei),typeof ni!="function"))throw new Error('Tom Select "score" setting must be a function that returns a function');return ei!==ri.lastQuery?(ri.lastQuery=ei,ti=ri.sifter.search(ei,Object.assign(oi,{score:ni})),ri.currentResults=ti):ti=Object.assign({},ri.currentResults),ri.settings.hideSelected&&(ti.items=ti.items.filter(si=>{let ai=Xn(si.id);return!(ai&&ri.items.indexOf(ai)!==-1)})),ti}refreshOptions(ei=!0){var ti,ni,ri,oi,si,ai,li,ui,ci,di;let pi={},yi=[];var gi=this,vi=gi.inputValue();let Ei=vi===gi.lastQuery||vi==""&&gi.lastQuery==null;var Si=gi.search(vi),xi=null,Li=gi.settings.shouldOpen||!1,Oi=gi.dropdown_content;Ei&&(xi=gi.activeOption,xi&&(ci=xi.closest("[data-group]"))),oi=Si.items.length,typeof gi.settings.maxOptions=="number"&&(oi=Math.min(oi,gi.settings.maxOptions)),oi>0&&(Li=!0);let zi=(ki,Mi)=>{let Ai=pi[ki];if(Ai!==void 0){let Ci=yi[Ai];if(Ci!==void 0)return[Ai,Ci.fragment]}let qi=document.createDocumentFragment();return Ai=yi.length,yi.push({fragment:qi,order:Mi,optgroup:ki}),[Ai,qi]};for(ti=0;ti0&&(Ci=Ci.cloneNode(!0),an(Ci,{id:Ai.$id+"-clone-"+ni,"aria-selected":null}),Ci.classList.add("ts-cloned"),bo(Ci,"active"),gi.activeOption&&gi.activeOption.dataset.value==Mi&&ci&&ci.dataset.group===si.toString()&&(xi=Ci)),rn.appendChild(Ci),si!=""&&(pi[si]=gn)}}gi.settings.lockOptgroupOrder&&yi.sort((ki,Mi)=>ki.order-Mi.order),li=document.createDocumentFragment(),En(yi,ki=>{let Mi=ki.fragment,Ai=ki.optgroup;if(!Mi||!Mi.children.length)return;let qi=gi.optgroups[Ai];if(qi!==void 0){let Ci=document.createDocumentFragment(),Qi=gi.render("optgroup_header",qi);Ho(Ci,Qi),Ho(Ci,Mi);let Ji=gi.render("optgroup",{group:qi,options:Ci});Ho(li,Ji)}else Ho(li,Mi)}),Oi.innerHTML="",Ho(Oi,li),gi.settings.highlight&&(Yd(Oi),Si.query.length&&Si.tokens.length&&En(Si.tokens,ki=>{Ud(Oi,ki.regex)}));var Vi=ki=>{let Mi=gi.render(ki,{input:vi});return Mi&&(Li=!0,Oi.insertBefore(Mi,Oi.firstChild)),Mi};if(gi.loading?Vi("loading"):gi.settings.shouldLoad.call(gi,vi)?Si.items.length===0&&Vi("no_results"):Vi("not_loading"),ui=gi.canCreate(vi),ui&&(di=Vi("option_create")),gi.hasOptions=Si.items.length>0||ui,Li){if(Si.items.length>0){if(!xi&&gi.settings.mode==="single"&&gi.items[0]!=null&&(xi=gi.getOption(gi.items[0])),!Oi.contains(xi)){let ki=0;di&&!gi.settings.addPrecedence&&(ki=1),xi=gi.selectable()[ki]}}else di&&(xi=di);ei&&!gi.isOpen&&(gi.open(),gi.scrollToOption(xi,"auto")),gi.setActiveOption(xi)}else gi.clearActiveOption(),ei&&gi.isOpen&&gi.close(!1)}selectable(){return this.dropdown_content.querySelectorAll("[data-selectable]")}addOption(ei,ti=!1){let ni=this;if(Array.isArray(ei))return ni.addOptions(ei,ti),!1;let ri=Xn(ei[ni.settings.valueField]);return ri===null||ni.options.hasOwnProperty(ri)?!1:(ei.$order=ei.$order||++ni.order,ei.$id=ni.inputId+"-opt-"+ei.$order,ni.options[ri]=ei,ni.lastQuery=null,ti&&(ni.userOptions[ri]=ti,ni.trigger("option_add",ri,ei)),ri)}addOptions(ei,ti=!1){En(ei,ni=>{this.addOption(ni,ti)})}registerOption(ei){return this.addOption(ei)}registerOptionGroup(ei){var ti=Xn(ei[this.settings.optgroupValueField]);return ti===null?!1:(ei.$order=ei.$order||++this.order,this.optgroups[ti]=ei,ti)}addOptionGroup(ei,ti){var ni;ti[this.settings.optgroupValueField]=ei,(ni=this.registerOptionGroup(ti))&&this.trigger("optgroup_add",ni,ti)}removeOptionGroup(ei){this.optgroups.hasOwnProperty(ei)&&(delete this.optgroups[ei],this.clearCache(),this.trigger("optgroup_remove",ei))}clearOptionGroups(){this.optgroups={},this.clearCache(),this.trigger("optgroup_clear")}updateOption(ei,ti){let ni=this;var ri,oi;let si=Xn(ei),ai=Xn(ti[ni.settings.valueField]);if(si===null)return;let li=ni.options[si];if(li==null)return;if(typeof ai!="string")throw new Error("Value must be set in option data");let ui=ni.getOption(si),ci=ni.getItem(si);if(ti.$order=ti.$order||li.$order,delete ni.options[si],ni.uncacheValue(ai),ni.options[ai]=ti,ui){if(ni.dropdown_content.contains(ui)){let di=ni._render("option",ti);da(ui,di),ni.activeOption===ui&&ni.setActiveOption(di)}ui.remove()}ci&&(oi=ni.items.indexOf(si),oi!==-1&&ni.items.splice(oi,1,ai),ri=ni._render("item",ti),ci.classList.contains("active")&&jn(ri,"active"),da(ci,ri)),ni.lastQuery=null}removeOption(ei,ti){let ni=this;ei=ca(ei),ni.uncacheValue(ei),delete ni.userOptions[ei],delete ni.options[ei],ni.lastQuery=null,ni.trigger("option_remove",ei),ni.removeItem(ei,ti)}clearOptions(ei){let ti=(ei||this.clearFilter).bind(this);this.loadedSearches={},this.userOptions={},this.clearCache();let ni={};En(this.options,(ri,oi)=>{ti(ri,oi)&&(ni[oi]=ri)}),this.options=this.sifter.items=ni,this.lastQuery=null,this.trigger("option_clear")}clearFilter(ei,ti){return this.items.indexOf(ti)>=0}getOption(ei,ti=!1){let ni=Xn(ei);if(ni===null)return null;let ri=this.options[ni];if(ri!=null){if(ri.$div)return ri.$div;if(ti)return this._render("option",ri)}return null}getAdjacent(ei,ti,ni="option"){var ri=this,oi;if(!ei)return null;ni=="item"?oi=ri.controlChildren():oi=ri.dropdown_content.querySelectorAll("[data-selectable]");for(let si=0;si0?oi[si+1]:oi[si-1];return null}getItem(ei){if(typeof ei=="object")return ei;var ti=Xn(ei);return ti!==null?this.control.querySelector(`[data-value="${Lc(ti)}"]`):null}addItems(ei,ti){var ni=this,ri=Array.isArray(ei)?ei:[ei];ri=ri.filter(si=>ni.items.indexOf(si)===-1);let oi=ri[ri.length-1];ri.forEach(si=>{ni.isPending=si!==oi,ni.addItem(si,ti)})}addItem(ei,ti){var ni=ti?[]:["change","dropdown_close"];Oc(this,ni,()=>{var ri,oi;let si=this,ai=si.settings.mode,li=Xn(ei);if(!(li&&si.items.indexOf(li)!==-1&&(ai==="single"&&si.close(),ai==="single"||!si.settings.duplicates))&&!(li===null||!si.options.hasOwnProperty(li))&&(ai==="single"&&si.clear(ti),!(ai==="multi"&&si.isFull()))){if(ri=si._render("item",si.options[li]),si.control.contains(ri)&&(ri=ri.cloneNode(!0)),oi=si.isFull(),si.items.splice(si.caretPos,0,li),si.insertAtCaret(ri),si.isSetup){if(!si.isPending&&si.settings.hideSelected){let ui=si.getOption(li),ci=si.getAdjacent(ui,1);ci&&si.setActiveOption(ci)}!si.isPending&&!si.settings.closeAfterSelect&&si.refreshOptions(si.isFocused&&ai!=="single"),si.settings.closeAfterSelect!=!1&&si.isFull()?si.close():si.isPending||si.positionDropdown(),si.trigger("item_add",li,ri),si.isPending||si.updateOriginalInput({silent:ti})}(!si.isPending||!oi&&si.isFull())&&(si.inputState(),si.refreshState())}})}removeItem(ei=null,ti){let ni=this;if(ei=ni.getItem(ei),!ei)return;var ri,oi;let si=ei.dataset.value;ri=Nc(ei),ei.remove(),ei.classList.contains("active")&&(oi=ni.activeItems.indexOf(ei),ni.activeItems.splice(oi,1),bo(ei,"active")),ni.items.splice(ri,1),ni.lastQuery=null,!ni.settings.persist&&ni.userOptions.hasOwnProperty(si)&&ni.removeOption(si,ti),ri{}){arguments.length===3&&(ti=arguments[2]),typeof ti!="function"&&(ti=()=>{});var ni=this,ri=ni.caretPos,oi;if(ei=ei||ni.inputValue(),!ni.canCreate(ei))return ti(),!1;ni.lock();var si=!1,ai=li=>{if(ni.unlock(),!li||typeof li!="object")return ti();var ui=Xn(li[ni.settings.valueField]);if(typeof ui!="string")return ti();ni.setTextboxValue(),ni.addOption(li,!0),ni.setCaret(ri),ni.addItem(ui),ti(li),si=!0};return typeof ni.settings.create=="function"?oi=ni.settings.create.call(this,ei,ai):oi={[ni.settings.labelField]:ei,[ni.settings.valueField]:ei},si||ai(oi),!0}refreshItems(){var ei=this;ei.lastQuery=null,ei.isSetup&&ei.addItems(ei.items),ei.updateOriginalInput(),ei.refreshState()}refreshState(){let ei=this;ei.refreshValidityState();let ti=ei.isFull(),ni=ei.isLocked;ei.wrapper.classList.toggle("rtl",ei.rtl);let ri=ei.wrapper.classList;ri.toggle("focus",ei.isFocused),ri.toggle("disabled",ei.isDisabled),ri.toggle("readonly",ei.isReadOnly),ri.toggle("required",ei.isRequired),ri.toggle("invalid",!ei.isValid),ri.toggle("locked",ni),ri.toggle("full",ti),ri.toggle("input-active",ei.isFocused&&!ei.isInputHidden),ri.toggle("dropdown-active",ei.isOpen),ri.toggle("has-options",Wd(ei.options)),ri.toggle("has-items",ei.items.length>0)}refreshValidityState(){var ei=this;ei.input.validity&&(ei.isValid=ei.input.validity.valid,ei.isInvalid=!ei.isValid)}isFull(){return this.settings.maxItems!==null&&this.items.length>=this.settings.maxItems}updateOriginalInput(ei={}){let ti=this;var ni,ri;let oi=ti.input.querySelector('option[value=""]');if(ti.is_select_tag){let li=function(ui,ci,di){return ui||(ui=no(''+sl(di)+" ")),ui!=oi&&ti.input.append(ui),si.push(ui),(ui!=oi||ai>0)&&(ui.selected=!0),ui},si=[],ai=ti.input.querySelectorAll("option:checked").length;ti.input.querySelectorAll("option:checked").forEach(ui=>{ui.selected=!1}),ti.items.length==0&&ti.settings.mode=="single"?li(oi,"",""):ti.items.forEach(ui=>{if(ni=ti.options[ui],ri=ni[ti.settings.labelField]||"",si.includes(ni.$option)){let ci=ti.input.querySelector(`option[value="${Lc(ui)}"]:not(:checked)`);li(ci,ui,ri)}else ni.$option=li(ni.$option,ui,ri)})}else ti.input.value=ti.getValue();ti.isSetup&&(ei.silent||ti.trigger("change",ti.getValue()))}open(){var ei=this;ei.isLocked||ei.isOpen||ei.settings.mode==="multi"&&ei.isFull()||(ei.isOpen=!0,an(ei.focus_node,{"aria-expanded":"true"}),ei.refreshState(),ua(ei.dropdown,{visibility:"hidden",display:"block"}),ei.positionDropdown(),ua(ei.dropdown,{visibility:"visible",display:"block"}),ei.focus(),ei.trigger("dropdown_open",ei.dropdown))}close(ei=!0){var ti=this,ni=ti.isOpen;ei&&(ti.setTextboxValue(),ti.settings.mode==="single"&&ti.items.length&&ti.inputState()),ti.isOpen=!1,an(ti.focus_node,{"aria-expanded":"false"}),ua(ti.dropdown,{display:"none"}),ti.settings.hideSelected&&ti.clearActiveOption(),ti.refreshState(),ni&&ti.trigger("dropdown_close",ti.dropdown)}positionDropdown(){if(this.settings.dropdownParent==="body"){var ei=this.control,ti=ei.getBoundingClientRect(),ni=ei.offsetHeight+ti.top+window.scrollY,ri=ti.left+window.scrollX;ua(this.dropdown,{width:ti.width+"px",top:ni+"px",left:ri+"px"})}}clear(ei){var ti=this;if(ti.items.length){var ni=ti.controlChildren();En(ni,ri=>{ti.removeItem(ri,!0)}),ti.inputState(),ei||ti.updateOriginalInput(),ti.trigger("clear")}}insertAtCaret(ei){let ti=this,ni=ti.caretPos,ri=ti.control;ri.insertBefore(ei,ri.children[ni]||null),ti.setCaret(ni+1)}deleteSelection(ei){var ti,ni,ri,oi,si=this;ti=ei&&ei.keyCode===8?-1:1,ni=zd(si.control_input);let ai=[];if(si.activeItems.length)oi=kc(si.activeItems,ti),ri=Nc(oi),ti>0&&ri++,En(si.activeItems,li=>ai.push(li));else if((si.isFocused||si.settings.mode==="single")&&si.items.length){let li=si.controlChildren(),ui;ti<0&&ni.start===0&&ni.length===0?ui=li[si.caretPos-1]:ti>0&&ni.start===si.inputValue().length&&(ui=li[si.caretPos]),ui!==void 0&&ai.push(ui)}if(!si.shouldDelete(ai,ei))return!1;for(fn(ei,!0),typeof ri!="undefined"&&si.setCaret(ri);ai.length;)si.removeItem(ai.pop());return si.inputState(),si.positionDropdown(),si.refreshOptions(!1),!0}shouldDelete(ei,ti){let ni=ei.map(ri=>ri.dataset.value);return!(!ni.length||typeof this.settings.onDelete=="function"&&this.settings.onDelete(ni,ti)===!1)}advanceSelection(ei,ti){var ni,ri,oi=this;oi.rtl&&(ei*=-1),!oi.inputValue().length&&(Io(fa,ti)||Io("shiftKey",ti)?(ni=oi.getLastActive(ei),ni?ni.classList.contains("active")?ri=oi.getAdjacent(ni,ei,"item"):ri=ni:ei>0?ri=oi.control_input.nextElementSibling:ri=oi.control_input.previousElementSibling,ri&&(ri.classList.contains("active")&&oi.removeActiveItem(ni),oi.setActiveItemClass(ri))):oi.moveCaret(ei))}moveCaret(ei){}getLastActive(ei){let ti=this.control.querySelector(".last-active");if(ti)return ti;var ni=this.control.querySelectorAll(".active");if(ni)return kc(ni,ei)}setCaret(ei){this.caretPos=this.items.length}controlChildren(){return Array.from(this.control.querySelectorAll("[data-ts-item]"))}lock(){this.setLocked(!0)}unlock(){this.setLocked(!1)}setLocked(ei=this.isReadOnly||this.isDisabled){this.isLocked=ei,this.refreshState()}disable(){this.setDisabled(!0),this.close()}enable(){this.setDisabled(!1)}setDisabled(ei){this.focus_node.tabIndex=ei?-1:this.tabIndex,this.isDisabled=ei,this.input.disabled=ei,this.control_input.disabled=ei,this.setLocked()}setReadOnly(ei){this.isReadOnly=ei,this.input.readOnly=ei,this.control_input.readOnly=ei,this.setLocked()}destroy(){var ei=this,ti=ei.revertSettings;ei.trigger("destroy"),ei.off(),ei.wrapper.remove(),ei.dropdown.remove(),ei.input.innerHTML=ti.innerHTML,ei.input.tabIndex=ti.tabIndex,bo(ei.input,"tomselected","ts-hidden-accessible"),ei._destroy(),delete ei.input.tomselect}render(ei,ti){var ni,ri;let oi=this;if(typeof this.settings.render[ei]!="function"||(ri=oi.settings.render[ei].call(this,ti,sl),!ri))return null;if(ri=no(ri),ei==="option"||ei==="option_create"?ti[oi.settings.disabledField]?an(ri,{"aria-disabled":"true"}):an(ri,{"data-selectable":""}):ei==="optgroup"&&(ni=ti.group[oi.settings.optgroupValueField],an(ri,{"data-group":ni}),ti.group[oi.settings.disabledField]&&an(ri,{"data-disabled":""})),ei==="option"||ei==="item"){let si=ca(ti[oi.settings.valueField]);an(ri,{"data-value":si}),ei==="item"?(jn(ri,oi.settings.itemClass),an(ri,{"data-ts-item":""})):(jn(ri,oi.settings.optionClass),an(ri,{role:"option",id:ti.$id}),ti.$div=ri,oi.options[si]=ti)}return ri}_render(ei,ti){let ni=this.render(ei,ti);if(ni==null)throw"HTMLElement expected";return ni}clearCache(){En(this.options,ei=>{ei.$div&&(ei.$div.remove(),delete ei.$div)})}uncacheValue(ei){let ti=this.getOption(ei);ti&&ti.remove()}canCreate(ei){return this.settings.create&&ei.length>0&&this.settings.createFilter.call(this,ei)}hook(ei,ti,ni){var ri=this,oi=ri[ti];ri[ti]=function(){var si,ai;return ei==="after"&&(si=oi.apply(ri,arguments)),ai=ni.apply(ri,arguments),ei==="instead"?ai:(ei==="before"&&(si=oi.apply(ri,arguments)),si)}}};var pb=(ii,ei,ti,ni)=>{ii.addEventListener(ei,ti,ni)};function Xd(){pb(this.input,"change",()=>{this.sync()})}var mb=ii=>typeof ii=="undefined"||ii===null?null:gb(ii),gb=ii=>typeof ii=="boolean"?ii?"1":"0":ii+"",Jd=(ii,ei=!1)=>{ii&&(ii.preventDefault(),ei&&ii.stopPropagation())},vb=ii=>{if(ii.jquery)return ii[0];if(ii instanceof HTMLElement)return ii;if(yb(ii)){var ei=document.createElement("template");return ei.innerHTML=ii.trim(),ei.content.firstChild}return document.querySelector(ii)},yb=ii=>typeof ii=="string"&&ii.indexOf("<")>-1;function Zd(ii){var ei=this,ti=ei.onOptionSelect;ei.settings.hideSelected=!1;let ni=Object.assign({className:"tomselect-checkbox",checkedClassNames:void 0,uncheckedClassNames:void 0},ii);var ri=function(ai,li){li?(ai.checked=!0,ni.uncheckedClassNames&&ai.classList.remove(...ni.uncheckedClassNames),ni.checkedClassNames&&ai.classList.add(...ni.checkedClassNames)):(ai.checked=!1,ni.checkedClassNames&&ai.classList.remove(...ni.checkedClassNames),ni.uncheckedClassNames&&ai.classList.add(...ni.uncheckedClassNames))},oi=function(ai){setTimeout(()=>{var li=ai.querySelector("input."+ni.className);li instanceof HTMLInputElement&&ri(li,ai.classList.contains("selected"))},1)};ei.hook("after","setupTemplates",()=>{var si=ei.settings.render.option;ei.settings.render.option=(ai,li)=>{var ui=vb(si.call(ei,ai,li)),ci=document.createElement("input");ni.className&&ci.classList.add(ni.className),ci.addEventListener("click",function(pi){Jd(pi)}),ci.type="checkbox";let di=mb(ai[ei.settings.valueField]);return ri(ci,!!(di&&ei.items.indexOf(di)>-1)),ui.prepend(ci),ui}}),ei.on("item_remove",si=>{var ai=ei.getOption(si);ai&&(ai.classList.remove("selected"),oi(ai))}),ei.on("item_add",si=>{var ai=ei.getOption(si);ai&&oi(ai)}),ei.hook("instead","onOptionSelect",(si,ai)=>{if(ai.classList.contains("selected")){ai.classList.remove("selected"),ei.removeItem(ai.dataset.value),ei.refreshOptions(),Jd(si,!0);return}ti.call(ei,si,ai),oi(ai)})}var bb=ii=>{if(ii.jquery)return ii[0];if(ii instanceof HTMLElement)return ii;if(_b(ii)){var ei=document.createElement("template");return ei.innerHTML=ii.trim(),ei.content.firstChild}return document.querySelector(ii)},_b=ii=>typeof ii=="string"&&ii.indexOf("<")>-1;function ef(ii){let ei=this,ti=Object.assign({className:"clear-button",title:"Clear All",html:ni=>`⨯
`},ii);ei.on("initialize",()=>{var ni=bb(ti.html(ti));ni.addEventListener("click",ri=>{ei.isLocked||(ei.clear(),ei.settings.mode==="single"&&ei.settings.allowEmptyOption&&ei.addItem(""),ri.preventDefault(),ri.stopPropagation())}),ei.control.appendChild(ni)})}var Eb=(ii,ei=!1)=>{ii&&(ii.preventDefault(),ei&&ii.stopPropagation())},Os=(ii,ei,ti,ni)=>{ii.addEventListener(ei,ti,ni)},wb=(ii,ei)=>{if(Array.isArray(ii))ii.forEach(ei);else for(var ti in ii)ii.hasOwnProperty(ti)&&ei(ii[ti],ti)},xb=ii=>{if(ii.jquery)return ii[0];if(ii instanceof HTMLElement)return ii;if(Tb(ii)){var ei=document.createElement("template");return ei.innerHTML=ii.trim(),ei.content.firstChild}return document.querySelector(ii)},Tb=ii=>typeof ii=="string"&&ii.indexOf("<")>-1,Cb=(ii,ei)=>{wb(ei,(ti,ni)=>{ti==null?ii.removeAttribute(ni):ii.setAttribute(ni,""+ti)})},Sb=(ii,ei)=>{var ti;(ti=ii.parentNode)==null||ti.insertBefore(ei,ii.nextSibling)},Ab=(ii,ei)=>{var ti;(ti=ii.parentNode)==null||ti.insertBefore(ei,ii)},Db=(ii,ei)=>{do{var ti;if(ei=(ti=ei)==null?void 0:ti.previousElementSibling,ii==ei)return!0}while(ei&&ei.previousElementSibling);return!1};function tf(){var ii=this;if(ii.settings.mode!=="multi")return;var ei=ii.lock,ti=ii.unlock;let ni=!0,ri;ii.hook("after","setupTemplates",()=>{var oi=ii.settings.render.item;ii.settings.render.item=(si,ai)=>{let li=xb(oi.call(ii,si,ai));Cb(li,{draggable:"true"});let ui=vi=>{ni||Eb(vi),vi.stopPropagation()},ci=vi=>{ri=li,setTimeout(()=>{li.classList.add("ts-dragging")},0)},di=vi=>{vi.preventDefault(),li.classList.add("ts-drag-over"),yi(li,ri)},pi=()=>{li.classList.remove("ts-drag-over")},yi=(vi,Ei)=>{Ei!==void 0&&(Db(Ei,li)?Sb(vi,Ei):Ab(vi,Ei))},gi=()=>{var vi;document.querySelectorAll(".ts-drag-over").forEach(Si=>Si.classList.remove("ts-drag-over")),(vi=ri)==null||vi.classList.remove("ts-dragging"),ri=void 0;var Ei=[];ii.control.querySelectorAll("[data-value]").forEach(Si=>{if(Si.dataset.value){let xi=Si.dataset.value;xi&&Ei.push(xi)}}),ii.setValue(Ei)};return Os(li,"mousedown",ui),Os(li,"dragstart",ci),Os(li,"dragenter",di),Os(li,"dragover",di),Os(li,"dragleave",pi),Os(li,"dragend",gi),li}}),ii.hook("instead","lock",()=>(ni=!1,ei.call(ii))),ii.hook("instead","unlock",()=>(ni=!0,ti.call(ii)))}var Ob=(ii,ei=!1)=>{ii&&(ii.preventDefault(),ei&&ii.stopPropagation())},Lb=ii=>{if(ii.jquery)return ii[0];if(ii instanceof HTMLElement)return ii;if(Mb(ii)){var ei=document.createElement("template");return ei.innerHTML=ii.trim(),ei.content.firstChild}return document.querySelector(ii)},Mb=ii=>typeof ii=="string"&&ii.indexOf("<")>-1;function nf(ii){let ei=this,ti=Object.assign({title:"Untitled",headerClass:"dropdown-header",titleRowClass:"dropdown-header-title",labelClass:"dropdown-header-label",closeClass:"dropdown-header-close",html:ni=>''},ii);ei.on("initialize",()=>{var ni=Lb(ti.html(ti)),ri=ni.querySelector("."+ti.closeClass);ri&&ri.addEventListener("click",oi=>{Ob(oi,!0),ei.close()}),ei.dropdown.insertBefore(ni,ei.dropdown.firstChild)})}var kb=(ii,ei)=>{if(Array.isArray(ii))ii.forEach(ei);else for(var ti in ii)ii.hasOwnProperty(ti)&&ei(ii[ti],ti)},Nb=(ii,...ei)=>{var ti=Rb(ei);ii=Ib(ii),ii.map(ni=>{ti.map(ri=>{ni.classList.remove(ri)})})},Rb=ii=>{var ei=[];return kb(ii,ti=>{typeof ti=="string"&&(ti=ti.trim().split(/[\t\n\f\r\s]/)),Array.isArray(ti)&&(ei=ei.concat(ti))}),ei.filter(Boolean)},Ib=ii=>(Array.isArray(ii)||(ii=[ii]),ii),Hb=(ii,ei)=>{if(!ii)return-1;ei=ei||ii.nodeName;for(var ti=0;ii=ii.previousElementSibling;)ii.matches(ei)&&ti++;return ti};function rf(){var ii=this;ii.hook("instead","setCaret",ei=>{ii.settings.mode==="single"||!ii.control.contains(ii.control_input)?ei=ii.items.length:(ei=Math.max(0,Math.min(ii.items.length,ei)),ei!=ii.caretPos&&!ii.isPending&&ii.controlChildren().forEach((ti,ni)=>{ni{if(!ii.isFocused)return;let ti=ii.getLastActive(ei);if(ti){let ni=Hb(ti);ii.setCaret(ei>0?ni+1:ni),ii.setActiveItem(),Nb(ti,"last-active")}else ii.setCaret(ii.caretPos+ei)})}var Pb=(ii,ei=!1)=>{ii&&(ii.preventDefault(),ei&&ii.stopPropagation())},Fb=(ii,ei,ti,ni)=>{ii.addEventListener(ei,ti,ni)},$b=(ii,ei)=>{if(Array.isArray(ii))ii.forEach(ei);else for(var ti in ii)ii.hasOwnProperty(ti)&&ei(ii[ti],ti)},of=ii=>{if(ii.jquery)return ii[0];if(ii instanceof HTMLElement)return ii;if(Bb(ii)){var ei=document.createElement("template");return ei.innerHTML=ii.trim(),ei.content.firstChild}return document.querySelector(ii)},Bb=ii=>typeof ii=="string"&&ii.indexOf("<")>-1,zb=(ii,...ei)=>{var ti=Vb(ei);ii=jb(ii),ii.map(ni=>{ti.map(ri=>{ni.classList.add(ri)})})},Vb=ii=>{var ei=[];return $b(ii,ti=>{typeof ti=="string"&&(ti=ti.trim().split(/[\t\n\f\r\s]/)),Array.isArray(ti)&&(ei=ei.concat(ti))}),ei.filter(Boolean)},jb=ii=>(Array.isArray(ii)||(ii=[ii]),ii);function sf(){let ii=this;ii.settings.shouldOpen=!0,ii.hook("before","setup",()=>{ii.focus_node=ii.control,zb(ii.control_input,"dropdown-input");let ei=of('');ei.append(ii.control_input),ii.dropdown.insertBefore(ei,ii.dropdown.firstChild);let ti=of('
');ti.placeholder=ii.settings.placeholder||"",ii.control.append(ti)}),ii.on("initialize",()=>{ii.control_input.addEventListener("keydown",ti=>{switch(ti.keyCode){case 27:ii.isOpen&&(Pb(ti,!0),ii.close()),ii.clearActiveItems();return;case 9:ii.focus_node.tabIndex=-1;break}return ii.onKeyDown.call(ii,ti)}),ii.on("blur",()=>{ii.focus_node.tabIndex=ii.isDisabled?-1:ii.tabIndex}),ii.on("dropdown_open",()=>{ii.control_input.focus()});let ei=ii.onBlur;ii.hook("instead","onBlur",ti=>{if(!(ti&&ti.relatedTarget==ii.control_input))return ei.call(ii)}),Fb(ii.control_input,"blur",()=>ii.onBlur()),ii.hook("before","close",()=>{ii.isOpen&&ii.focus_node.focus({preventScroll:!0})})})}var dl=(ii,ei,ti,ni)=>{ii.addEventListener(ei,ti,ni)};function af(){var ii=this;ii.on("initialize",()=>{var ei=document.createElement("span"),ti=ii.control_input;ei.style.cssText="position:absolute; top:-99999px; left:-99999px; width:auto; padding:0; white-space:pre; ",ii.wrapper.appendChild(ei);var ni=["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"];for(let oi of ni)ei.style[oi]=ti.style[oi];var ri=()=>{ei.textContent=ti.value,ti.style.width=ei.clientWidth+"px"};ri(),ii.on("update item_add item_remove",ri),dl(ti,"input",ri),dl(ti,"keyup",ri),dl(ti,"blur",ri),dl(ti,"update",ri)})}function lf(){var ii=this,ei=ii.deleteSelection;this.hook("instead","deleteSelection",ti=>ii.activeItems.length?ei.call(ii,ti):!1)}function cf(){this.hook("instead","setActiveItem",()=>{}),this.hook("instead","selectAll",()=>{})}var qb=(ii,ei,ti)=>{for(;ii&&ii.matches;){if(ii.matches(ei))return ii;ii=ii.parentNode}},Wb=(ii,ei)=>{if(!ii)return-1;ei=ei||ii.nodeName;for(var ti=0;ii=ii.previousElementSibling;)ii.matches(ei)&&ti++;return ti};function uf(){var ii=this,ei=ii.onKeyDown;ii.hook("instead","onKeyDown",ti=>{var ni,ri,oi,si;if(!ii.isOpen||!(ti.keyCode===37||ti.keyCode===39))return ei.call(ii,ti);ii.ignoreHover=!0,si=qb(ii.activeOption,"[data-group]"),ni=Wb(ii.activeOption,"[data-selectable]"),si&&(ti.keyCode===37?si=si.previousSibling:si=si.nextSibling,si&&(oi=si.querySelectorAll("[data-selectable]"),ri=oi[Math.min(oi.length-1,ni)],ri&&ii.setActiveOption(ri)))})}var Ub=ii=>(ii+"").replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),df=(ii,ei=!1)=>{ii&&(ii.preventDefault(),ei&&ii.stopPropagation())},ff=(ii,ei,ti,ni)=>{ii.addEventListener(ei,ti,ni)},hf=ii=>{if(ii.jquery)return ii[0];if(ii instanceof HTMLElement)return ii;if(Yb(ii)){var ei=document.createElement("template");return ei.innerHTML=ii.trim(),ei.content.firstChild}return document.querySelector(ii)},Yb=ii=>typeof ii=="string"&&ii.indexOf("<")>-1;function pf(ii){let ei=Object.assign({label:"×",title:"Remove",className:"remove",append:!0},ii);var ti=this;if(ei.append){var ni='
'+ei.label+" ";ti.hook("after","setupTemplates",()=>{var ri=ti.settings.render.item;ti.settings.render.item=(oi,si)=>{var ai=hf(ri.call(ti,oi,si)),li=hf(ni);return ai.appendChild(li),ff(li,"mousedown",ui=>{df(ui,!0)}),ff(li,"click",ui=>{ti.isLocked||(df(ui,!0),!ti.isLocked&&ti.shouldDelete([ai],ui)&&(ti.removeItem(ai),ti.refreshOptions(!1),ti.inputState()))}),ai}})}}function mf(ii){let ei=this,ti=Object.assign({text:ni=>ni[ei.settings.labelField]},ii);ei.on("item_remove",function(ni){if(ei.isFocused&&ei.control_input.value.trim()===""){var ri=ei.options[ni];ri&&ei.setTextboxValue(ti.text.call(ei,ri))}})}var Gb=(ii,ei)=>{if(Array.isArray(ii))ii.forEach(ei);else for(var ti in ii)ii.hasOwnProperty(ti)&&ei(ii[ti],ti)},Kb=(ii,...ei)=>{var ti=Qb(ei);ii=Xb(ii),ii.map(ni=>{ti.map(ri=>{ni.classList.add(ri)})})},Qb=ii=>{var ei=[];return Gb(ii,ti=>{typeof ti=="string"&&(ti=ti.trim().split(/[\t\n\f\r\s]/)),Array.isArray(ti)&&(ei=ei.concat(ti))}),ei.filter(Boolean)},Xb=ii=>(Array.isArray(ii)||(ii=[ii]),ii);function gf(){let ii=this,ei=ii.canLoad,ti=ii.clearActiveOption,ni=ii.loadCallback;var ri={},oi,si=!1,ai,li=[];if(ii.settings.shouldLoadMore||(ii.settings.shouldLoadMore=()=>{if(oi.clientHeight/(oi.scrollHeight-oi.scrollTop)>.9)return!0;if(ii.activeOption){var pi=ii.selectable(),yi=Array.from(pi).indexOf(ii.activeOption);if(yi>=pi.length-2)return!0}return!1}),!ii.settings.firstUrl)throw"virtual_scroll plugin requires a firstUrl() method";ii.settings.sortField=[{field:"$order"},{field:"$score"}];let ui=di=>typeof ii.settings.maxOptions=="number"&&oi.children.length>=ii.settings.maxOptions?!1:!!(di in ri&&ri[di]),ci=(di,pi)=>ii.items.indexOf(pi)>=0||li.indexOf(pi)>=0;ii.setNextUrl=(di,pi)=>{ri[di]=pi},ii.getUrl=di=>{if(di in ri){let pi=ri[di];return ri[di]=!1,pi}return ii.clearPagination(),ii.settings.firstUrl.call(ii,di)},ii.clearPagination=()=>{ri={}},ii.hook("instead","clearActiveOption",()=>{if(!si)return ti.call(ii)}),ii.hook("instead","canLoad",di=>di in ri?ui(di):ei.call(ii,di)),ii.hook("instead","loadCallback",(di,pi)=>{if(!si)ii.clearOptions(ci);else if(ai){let yi=di[0];yi!==void 0&&(ai.dataset.value=yi[ii.settings.valueField])}ni.call(ii,di,pi),si=!1}),ii.hook("after","refreshOptions",()=>{let di=ii.lastValue;var pi;ui(di)?(pi=ii.render("loading_more",{query:di}),pi&&(pi.setAttribute("data-selectable",""),ai=pi)):di in ri&&!oi.querySelector(".no-results")&&(pi=ii.render("no_more_results",{query:di})),pi&&(Kb(pi,ii.settings.optionClass),oi.append(pi))}),ii.on("initialize",()=>{li=Object.keys(ii.options),oi=ii.dropdown_content,ii.settings.render=Object.assign({},{loading_more:()=>'
Loading more results ...
',no_more_results:()=>'
No more results
'},ii.settings.render),oi.addEventListener("scroll",()=>{ii.settings.shouldLoadMore.call(ii)&&ui(ii.lastValue)&&(si||(si=!0,ii.load.call(ii,ii.lastValue)))})})}Cn.define("change_listener",Xd);Cn.define("checkbox_options",Zd);Cn.define("clear_button",ef);Cn.define("drag_drop",tf);Cn.define("dropdown_header",nf);Cn.define("caret_position",rf);Cn.define("dropdown_input",sf);Cn.define("input_autogrow",af);Cn.define("no_backspace_delete",lf);Cn.define("no_active_items",cf);Cn.define("optgroup_columns",uf);Cn.define("remove_button",pf);Cn.define("restore_on_backspace",mf);Cn.define("virtual_scroll",gf);var ha=Cn;function rs(ii){return"error"in ii}function pn(ii){let ei=["","null","undefined"];return Array.isArray(ii)?ii.length>0:typeof ii=="string"&&!ei.includes(ii)||typeof ii=="number"||typeof ii=="boolean"?!0:typeof ii=="object"&&ii!==null}function fl(ii){return typeof ii!==null&&typeof ii!="undefined"}function Jb(ii,ei,ti){return co(this,null,function*(){let ni=window.CSRF_TOKEN,ri=new Headers({"X-CSRFToken":ni}),oi;typeof ti!="undefined"&&(oi=JSON.stringify(ti),ri.set("content-type","application/json"));let si=yield fetch(ii,{method:ei,body:oi,headers:ri,credentials:"same-origin"}),ai=si.headers.get("Content-Type");if(typeof ai=="string"&&ai.includes("text"))return{error:yield si.text()};let li=yield si.json();return!si.ok&&Array.isArray(li)?{error:li.join(`
+`)}:!si.ok&&"detail"in li?{error:li.detail}:li})}function Ls(ii,ei){return co(this,null,function*(){return yield Jb(ii,"PATCH",ei)})}function*Hi(...ii){for(let ei of ii)for(let ti of document.querySelectorAll(ei))ti!==null&&(yield ti)}function pa(ii){return document.getElementById(ii)}function vf(ii,ei=0){let ti=ei,ni=document.getElementById("content-title");ni!==null&&(ti+=ni.getBoundingClientRect().bottom);let ri=ii.getBoundingClientRect().top+window.pageYOffset+ti;window.scrollTo({top:ri,behavior:"smooth"})}function yf(ii,ei="select"){let ti=[];for(let ni of ii.querySelectorAll(ei))if(ni!==null){let ri={name:ni.name,options:[]};for(let oi of ni.options)oi.selected&&ri.options.push(oi.value);ti=[...ti,ri]}return ti}function os(ii,ei,ti){function ni(oi){return!!(typeof ti=="string"&&oi!==null&&oi.matches(ti))}function ri(oi){if(oi!==null&&oi.parentElement!==null&&!ni(oi)){for(let si of oi.parentElement.querySelectorAll(ei))if(si!==null)return si;return ri(oi.parentElement.parentElement)}return null}return ri(ii)}function Ic(ii,ei,ti=null,ni=[]){let ri=document.createElement(ii);if(ei!==null)for(let oi of Object.keys(ei)){let si=oi,ai=ei[si];si in ri&&(ri[si]=ai)}ti!==null&&ti.length>0&&ri.classList.add(...ti);for(let oi of ni)ri.appendChild(oi);return ri}function Ms(ii,ei,ti){if(typeof ii!="string")throw new TypeError("replaceAll 'input' argument must be a string");if(typeof ei!="string"&&!(ei instanceof RegExp))throw new TypeError("replaceAll 'pattern' argument must be a string or RegExp instance");switch(typeof ti){case"boolean":ti=String(ti);break;case"number":ti=String(ti);break;case"string":break;default:throw new TypeError("replaceAll 'replacement' argument must be stringifyable")}if(ei instanceof RegExp){let ni=Array.from(new Set([...ei.flags.split(""),"g"])).join("");ei=new RegExp(ei.source,ni)}else ei=new RegExp(ei,"g");return ii.replace(ei,ti)}function Zb(ii,ei){let ti=new Set;for(let ni of ei.querySelectorAll("*[name]"))ni.validity.valid?ni.classList.contains("is-invalid")&&ni.classList.remove("is-invalid"):(ti.add(ni.name),ni.classList.contains("is-invalid")||ni.classList.add("is-invalid"));if(ti.size!==0){let ni=ei.elements.namedItem(Array.from(ti)[0]);vf(ni),ii.preventDefault()}}function bf(){for(let ii of Hi("form")){let ei=ii.querySelectorAll("button[type=submit]");for(let ni of ei)ni.addEventListener("click",ri=>Zb(ri,ii));let ti=document.querySelector("button[data-reset-select]");ti!==null&&ti.addEventListener("click",()=>{window.location.assign(window.location.origin+window.location.pathname)})}}function _f(){for(let ei of Hi("a.set_field_value"))if(ei!==null){let ti=function(ni){ni.preventDefault();let ri=ei.getAttribute("data"),oi=document.getElementById(ei.target);oi!==null&&ri!==null&&(oi.value=ri)};var ii=ti;ei.addEventListener("click",ti)}}function Ef(){for(let ii of[bf,_f])ii()}window.Collapse=Oo;window.Modal=io;window.Popover=Ss;window.Toast=vo;window.Tooltip=go;function e_(){for(let ii of Hi('[data-bs-toggle="tooltip"]'))new go(ii,{container:"body"})}function t_(){for(let ii of Hi('[data-bs-toggle="modal"]'))new io(ii)}function Po(ii,ei,ti,ni){let ri="mdi-alert";switch(ii){case"warning":ri="mdi-alert";break;case"success":ri="mdi-check-circle";break;case"info":ri="mdi-information";break;case"danger":ri="mdi-alert";break}let oi=document.createElement("div");oi.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let si=document.createElement("div");si.setAttribute("class",`toast bg-${ii}`),si.setAttribute("role","alert"),si.setAttribute("aria-live","assertive"),si.setAttribute("aria-atomic","true");let ai=document.createElement("div");ai.setAttribute("class",`toast-header bg-${ii} text-body`);let li=document.createElement("i");li.setAttribute("class",`mdi ${ri}`);let ui=document.createElement("strong");ui.setAttribute("class","me-auto ms-1"),ui.innerText=ei;let ci=document.createElement("button");ci.setAttribute("type","button"),ci.setAttribute("class","btn-close"),ci.setAttribute("data-bs-dismiss","toast"),ci.setAttribute("aria-label","Close");let di=document.createElement("div");if(di.setAttribute("class","toast-body"),ai.appendChild(li),ai.appendChild(ui),typeof ni!="undefined"){let yi=document.createElement("small");yi.setAttribute("class","text-muted"),ai.appendChild(yi)}return ai.appendChild(ci),di.innerText=ti.trim(),si.appendChild(ai),si.appendChild(di),oi.appendChild(si),document.body.appendChild(oi),new vo(si)}function i_(){let{hash:ii}=location;if(ii&&ii.match(/^#tab_.+$/)){let ei=ii.replace("tab_","");for(let ti of Hi(`ul.nav.nav-tabs .nav-link[data-bs-target="${ei}"]`))new ts(ti).show()}}function n_(){let ii=document.querySelectorAll(".sidebar .accordion-item");function ei(ti){for(let ni of ii)ni!==ti?ni.classList.remove("is-open"):ni.classList.toggle("is-open")}for(let ti of ii)for(let ni of ti.querySelectorAll(".accordion-button"))ni.addEventListener("click",()=>{ei(ti)})}function r_(){for(let ii of Hi("a.image-preview")){let ei=`${Math.round(window.innerWidth/4)}px`,ti=Ic("img",{src:ii.href});ti.style.maxWidth=ei;let ni=Ic("div",null,null,[ti]);new Ss(ii,{customClass:"image-preview-popover",trigger:"hover",html:!0,content:ni})}}function hl(){for(let ii of[e_,t_,i_,r_,n_])ii()}function wf(ii){let ei=ii.currentTarget,ti=document.getElementById("quicksearch_clear");pn(ti)&&(ei.value===""?ti.classList.add("invisible"):ti.classList.remove("invisible"))}function xf(){let ii=document.getElementById("export_current_view"),ei=ii==null?void 0:ii.href.split("&")[0];ii.setAttribute("href",ei)}function o_(ii){let ei=ii.currentTarget;if(xf(),ei!=null){let ti=document.getElementById("export_current_view"),ni=`q=${ei.value}`,ri=(ti==null?void 0:ti.href)+"&"+ni;ti.setAttribute("href",ri)}}function Tf(){let ii=document.getElementById("quicksearch"),ei=document.getElementById("quicksearch_clear");pn(ii)&&(ii.addEventListener("keyup",wf,{passive:!0}),ii.addEventListener("search",wf,{passive:!0}),ii.addEventListener("change",o_,{passive:!0}),pn(ei)&&ei.addEventListener("click",()=>co(this,null,function*(){let ti=new Event("search");ii.value="",yield new Promise(ni=>setTimeout(ni,100)),ii.dispatchEvent(ti),xf()}),{passive:!0}))}function ma(ii){let ei={};return ei.clear_button={html:ti=>`
`},ii.hasAttribute("multiple")&&(ei.remove_button={title:"Remove"}),{plugins:ei}}function Cf(){for(let ii of Hi("select:not(.tomselected):not(.no-ts):not([size]):not(.api-select):not(.color-select)"))new ha(ii,sn(Di({},ma(ii)),{maxOptions:void 0}))}function Sf(){function ii(ei,ti){return`
${ti(ei.text)}
`}for(let ei of Hi("select.color-select:not(.tomselected)"))new ha(ei,sn(Di({},ma(ei)),{maxOptions:void 0,render:{option:ii,item:ii}}))}var Af=(ii,ei)=>{if(Array.isArray(ii))ii.forEach(ei);else for(var ti in ii)ii.hasOwnProperty(ti)&&ei(ii[ti],ti)};var Df=(ii,...ei)=>{var ti=s_(ei);ii=a_(ii),ii.map(ni=>{ti.map(ri=>{ni.classList.add(ri)})})};var s_=ii=>{var ei=[];return Af(ii,ti=>{typeof ti=="string"&&(ti=ti.trim().split(/[\t\n\f\r\s]/)),Array.isArray(ti)&&(ei=ei.concat(ti))}),ei.filter(Boolean)},a_=ii=>(Array.isArray(ii)||(ii=[ii]),ii);var zc={};lu(zc,{exclude:()=>m_,extract:()=>$c,parse:()=>Bc,parseUrl:()=>Ff,pick:()=>Bf,stringify:()=>Pf,stringifyUrl:()=>$f});var Mf="%[a-f0-9]{2}",Of=new RegExp("("+Mf+")|([^%]+?)","gi"),Lf=new RegExp("("+Mf+")+","gi");function Hc(ii,ei){try{return[decodeURIComponent(ii.join(""))]}catch(ri){}if(ii.length===1)return ii;ei=ei||1;let ti=ii.slice(0,ei),ni=ii.slice(ei);return Array.prototype.concat.call([],Hc(ti),Hc(ni))}function l_(ii){try{return decodeURIComponent(ii)}catch(ei){let ti=ii.match(Of)||[];for(let ni=1;ni
ii==null,d_=ii=>encodeURIComponent(ii).replaceAll(/[!'()*]/g,ei=>`%${ei.charCodeAt(0).toString(16).toUpperCase()}`),Fc=Symbol("encodeFragmentIdentifier");function f_(ii){switch(ii.arrayFormat){case"index":return ei=>(ti,ni)=>{let ri=ti.length;return ni===void 0||ii.skipNull&&ni===null||ii.skipEmptyString&&ni===""?ti:ni===null?[...ti,[wn(ei,ii),"[",ri,"]"].join("")]:[...ti,[wn(ei,ii),"[",wn(ri,ii),"]=",wn(ni,ii)].join("")]};case"bracket":return ei=>(ti,ni)=>ni===void 0||ii.skipNull&&ni===null||ii.skipEmptyString&&ni===""?ti:ni===null?[...ti,[wn(ei,ii),"[]"].join("")]:[...ti,[wn(ei,ii),"[]=",wn(ni,ii)].join("")];case"colon-list-separator":return ei=>(ti,ni)=>ni===void 0||ii.skipNull&&ni===null||ii.skipEmptyString&&ni===""?ti:ni===null?[...ti,[wn(ei,ii),":list="].join("")]:[...ti,[wn(ei,ii),":list=",wn(ni,ii)].join("")];case"comma":case"separator":case"bracket-separator":{let ei=ii.arrayFormat==="bracket-separator"?"[]=":"=";return ti=>(ni,ri)=>ri===void 0||ii.skipNull&&ri===null||ii.skipEmptyString&&ri===""?ni:(ri=ri===null?"":ri,ni.length===0?[[wn(ti,ii),ei,wn(ri,ii)].join("")]:[[ni,wn(ri,ii)].join(ii.arrayFormatSeparator)])}default:return ei=>(ti,ni)=>ni===void 0||ii.skipNull&&ni===null||ii.skipEmptyString&&ni===""?ti:ni===null?[...ti,wn(ei,ii)]:[...ti,[wn(ei,ii),"=",wn(ni,ii)].join("")]}}function h_(ii){let ei;switch(ii.arrayFormat){case"index":return(ti,ni,ri)=>{if(ei=/\[(\d*)]$/.exec(ti),ti=ti.replace(/\[\d*]$/,""),!ei){ri[ti]=ni;return}ri[ti]===void 0&&(ri[ti]={}),ri[ti][ei[1]]=ni};case"bracket":return(ti,ni,ri)=>{if(ei=/(\[])$/.exec(ti),ti=ti.replace(/\[]$/,""),!ei){ri[ti]=ni;return}if(ri[ti]===void 0){ri[ti]=[ni];return}ri[ti]=[...ri[ti],ni]};case"colon-list-separator":return(ti,ni,ri)=>{if(ei=/(:list)$/.exec(ti),ti=ti.replace(/:list$/,""),!ei){ri[ti]=ni;return}if(ri[ti]===void 0){ri[ti]=[ni];return}ri[ti]=[...ri[ti],ni]};case"comma":case"separator":return(ti,ni,ri)=>{let oi=typeof ni=="string"&&ni.includes(ii.arrayFormatSeparator),si=typeof ni=="string"&&!oi&&_o(ni,ii).includes(ii.arrayFormatSeparator);ni=si?_o(ni,ii):ni;let ai=oi||si?ni.split(ii.arrayFormatSeparator).map(li=>_o(li,ii)):ni===null?ni:_o(ni,ii);ri[ti]=ai};case"bracket-separator":return(ti,ni,ri)=>{let oi=/(\[])$/.test(ti);if(ti=ti.replace(/\[]$/,""),!oi){ri[ti]=ni&&_o(ni,ii);return}let si=ni===null?[]:_o(ni,ii).split(ii.arrayFormatSeparator);if(ri[ti]===void 0){ri[ti]=si;return}ri[ti]=[...ri[ti],...si]};default:return(ti,ni,ri)=>{if(ri[ti]===void 0){ri[ti]=ni;return}ri[ti]=[...[ri[ti]].flat(),ni]}}}function Rf(ii){if(typeof ii!="string"||ii.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function wn(ii,ei){return ei.encode?ei.strict?d_(ii):encodeURIComponent(ii):ii}function _o(ii,ei){return ei.decode?Pc(ii):ii}function If(ii){return Array.isArray(ii)?ii.sort():typeof ii=="object"?If(Object.keys(ii)).sort((ei,ti)=>Number(ei)-Number(ti)).map(ei=>ii[ei]):ii}function Hf(ii){let ei=ii.indexOf("#");return ei!==-1&&(ii=ii.slice(0,ei)),ii}function p_(ii){let ei="",ti=ii.indexOf("#");return ti!==-1&&(ei=ii.slice(ti)),ei}function Nf(ii,ei,ti){return ti==="string"&&typeof ii=="string"?ii:typeof ti=="function"&&typeof ii=="string"?ti(ii):ei.parseBooleans&&ii!==null&&(ii.toLowerCase()==="true"||ii.toLowerCase()==="false")?ii.toLowerCase()==="true":ti==="number"&&!Number.isNaN(Number(ii))&&typeof ii=="string"&&ii.trim()!==""||ei.parseNumbers&&!Number.isNaN(Number(ii))&&typeof ii=="string"&&ii.trim()!==""?Number(ii):ii}function $c(ii){ii=Hf(ii);let ei=ii.indexOf("?");return ei===-1?"":ii.slice(ei+1)}function Bc(ii,ei){ei=Di({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null)},ei),Rf(ei.arrayFormatSeparator);let ti=h_(ei),ni=Object.create(null);if(typeof ii!="string"||(ii=ii.trim().replace(/^[?#&]/,""),!ii))return ni;for(let ri of ii.split("&")){if(ri==="")continue;let oi=ei.decode?ri.replaceAll("+"," "):ri,[si,ai]=pl(oi,"=");si===void 0&&(si=oi),ai=ai===void 0?null:["comma","separator","bracket-separator"].includes(ei.arrayFormat)?ai:_o(ai,ei),ti(_o(si,ei),ai,ni)}for(let[ri,oi]of Object.entries(ni))if(typeof oi=="object"&&oi!==null&&ei.types[ri]!=="string")for(let[si,ai]of Object.entries(oi)){let li=ei.types[ri]?ei.types[ri].replace("[]",""):void 0;oi[si]=Nf(ai,ei,li)}else typeof oi=="object"&&oi!==null&&ei.types[ri]==="string"?ni[ri]=Object.values(oi).join(ei.arrayFormatSeparator):ni[ri]=Nf(oi,ei,ei.types[ri]);return ei.sort===!1?ni:(ei.sort===!0?Object.keys(ni).sort():Object.keys(ni).sort(ei.sort)).reduce((ri,oi)=>{let si=ni[oi];return ri[oi]=si&&typeof si=="object"&&!Array.isArray(si)?If(si):si,ri},Object.create(null))}function Pf(ii,ei){if(!ii)return"";ei=Di({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},ei),Rf(ei.arrayFormatSeparator);let ti=si=>ei.skipNull&&u_(ii[si])||ei.skipEmptyString&&ii[si]==="",ni=f_(ei),ri={};for(let[si,ai]of Object.entries(ii))ti(si)||(ri[si]=ai);let oi=Object.keys(ri);return ei.sort!==!1&&oi.sort(ei.sort),oi.map(si=>{let ai=ii[si];return ai===void 0?"":ai===null?wn(si,ei):Array.isArray(ai)?ai.length===0&&ei.arrayFormat==="bracket-separator"?wn(si,ei)+"[]":ai.reduce(ni(si),[]).join("&"):wn(si,ei)+"="+wn(ai,ei)}).filter(si=>si.length>0).join("&")}function Ff(ii,ei){var ri,oi;ei=Di({decode:!0},ei);let[ti,ni]=pl(ii,"#");return ti===void 0&&(ti=ii),Di({url:(oi=(ri=ti==null?void 0:ti.split("?"))==null?void 0:ri[0])!=null?oi:"",query:Bc($c(ii),ei)},ei&&ei.parseFragmentIdentifier&&ni?{fragmentIdentifier:_o(ni,ei)}:{})}function $f(ii,ei){ei=Di({encode:!0,strict:!0,[Fc]:!0},ei);let ti=Hf(ii.url).split("?")[0]||"",ni=$c(ii.url),ri=Di(Di({},Bc(ni,{sort:!1})),ii.query),oi=Pf(ri,ei);oi&&(oi=`?${oi}`);let si=p_(ii.url);if(typeof ii.fragmentIdentifier=="string"){let ai=new URL(ti);ai.hash=ii.fragmentIdentifier,si=ei[Fc]?ai.hash:`#${ii.fragmentIdentifier}`}return`${ti}${oi}${si}`}function Bf(ii,ei,ti){ti=Di({parseFragmentIdentifier:!0,[Fc]:!1},ti);let{url:ni,query:ri,fragmentIdentifier:oi}=Ff(ii,ti);return $f({url:ni,query:kf(ri,ei),fragmentIdentifier:oi},ti)}function m_(ii,ei,ti){let ni=Array.isArray(ei)?ri=>!ei.includes(ri):(ri,oi)=>!ei(ri,oi);return Bf(ii,ni,ti)}var zf=zc;function Vf(ii){if(Array.isArray(ii)){for(let ei of ii)if(typeof ei=="object"&&ei!==null&&"fieldName"in ei&&"queryParam"in ei)return typeof ei.fieldName=="string"&&typeof ei.queryParam=="string"}return!1}var ml=class extends Map{queryParam(ei){let ti=this.get(ei);return typeof ti!="undefined"?ti.queryParam:null}queryValue(ei){let ti=this.get(ei);return typeof ti!="undefined"?ti.queryValue:[]}updateValue(ei,ti){let ni=this.get(ei);if(pn(ni)){let{queryParam:ri}=ni;return this.set(ei,{queryParam:ri,queryValue:ti}),!0}return!1}addFromJson(ei){if(pn(ei)){let ti=JSON.parse(ei);if(Vf(ti))for(let{queryParam:ni,fieldName:ri}of ti)this.set(ri,{queryParam:ni,queryValue:[]});else throw new Error(`Data from 'data-dynamic-params' attribute is improperly formatted: '${ei}'`)}}};var gl=class extends ha{constructor(ti,ni){super(ti,ni);en(this,"nullOption",null);en(this,"queryParams",new Map);en(this,"staticParams",new Map);en(this,"dynamicParams",new ml);en(this,"pathValues",new Map);this.api_url=this.input.getAttribute("data-url"),this.valueField=this.input.getAttribute("ts-value-field")||this.settings.valueField,this.labelField=this.input.getAttribute("ts-label-field")||this.settings.labelField,this.disabledField=this.input.getAttribute("ts-disabled-field")||this.settings.disabledField,this.descriptionField=this.input.getAttribute("ts-description-field")||"description",this.depthField=this.input.getAttribute("ts-depth-field")||"_depth",this.parentField=this.input.getAttribute("ts-parent-field")||null,this.countField=this.input.getAttribute("ts-count-field")||null;let ri=this.input.getAttribute("data-null-option");if(ri){let oi=this.settings.valueField,si=this.settings.labelField;this.nullOption={},this.nullOption[oi]="null",this.nullOption[si]=ri}this.getStaticParams();for(let[oi,si]of this.staticParams.entries())this.queryParams.set(oi,si);this.getDynamicParams();for(let oi of this.dynamicParams.keys())this.updateQueryParams(oi);this.getPathKeys();for(let oi of this.pathValues.keys())this.updatePathValues(oi);this.addEventListeners()}load(ti){let ni=this;ni.clearOptions(),ni.nullOption&&!ti&&ni.addOption(ni.nullOption);let ri=ni.getRequestUrl(ti);ri&&(Df(ni.wrapper,ni.settings.loadingClass),ni.loading++,fetch(ri).then(oi=>oi.json()).then(oi=>{let si=oi.results,ai=[];for(let li of si){let ui=ni.getOptionFromData(li);ai.push(ui)}return ai}).then(oi=>{ni.loadCallback(oi,[])}).catch(()=>{ni.loadCallback([],[])}))}getRequestUrl(ti){let ni=this.api_url,ri={};for(let[oi,si]of this.queryParams.entries())ri[oi]=si;for(let[oi,si]of this.pathValues.entries())for(let ai of this.api_url.matchAll(new RegExp(`({{${oi}}})`,"g")))if(si)ni=Ms(ni,ai[1],si.toString());else return"";return ti&&(ri.q=[ti]),ri.brief=[!0],ri.limit=[this.settings.maxOptions],zf.stringifyUrl({url:ni,query:ri})}getOptionFromData(ti){let ni={id:ti[this.valueField],display:ti[this.labelField],depth:ti[this.depthField]||null,description:ti[this.descriptionField]||null};if(ti[this.parentField]){let ri=ti[this.parentField];ni.parent=ri[this.labelField]}return ti[this.countField]&&(ni.count=ti[this.countField]),ti[this.disabledField]&&(ni.disabled=ti[this.disabledField]),ni}getStaticParams(){let ti=this.input.getAttribute("data-static-params");try{if(ti){let ni=JSON.parse(ti);if(ni)for(let{queryParam:ri,queryValue:oi}of ni)Array.isArray(oi)?this.staticParams.set(ri,oi):this.staticParams.set(ri,[oi])}}catch(ni){console.group(`Unable to determine static query parameters for select field '${this.name}'`),console.warn(ni),console.groupEnd()}}getDynamicParams(){let ti=this.input.getAttribute("data-dynamic-params");try{this.dynamicParams.addFromJson(ti)}catch(ni){console.group(`Unable to determine dynamic query parameters for select field '${this.name}'`),console.warn(ni),console.groupEnd()}}getPathKeys(){for(let ti of this.api_url.matchAll(new RegExp("{{(.+)}}","g")))this.pathValues.set(ti[1],"")}updateQueryParams(ti){let ni=document.querySelector(`[name="${ti}"]`);if(ni!==null){let ri=[];if(ni.multiple?ri=Array.from(ni.options).filter(oi=>oi.selected).map(oi=>oi.value):ni.value!==""&&(ri=[ni.value]),ri.length>0){this.dynamicParams.updateValue(ti,ri);let oi=this.dynamicParams.get(ti);if(typeof oi!="undefined"){let{queryParam:si,queryValue:ai}=oi,li=[];if(this.staticParams.has(si)){let ui=this.staticParams.get(si);typeof ui!="undefined"&&(li=[...ui,...ai])}else li=ai;li.length>0?this.queryParams.set(si,li):this.queryParams.delete(si)}}else{let oi=this.dynamicParams.queryParam(ti);oi!==null&&this.queryParams.delete(oi)}}}updatePathValues(ti){let ni=Ms(ti,/^id_/i,""),ri=pa(`id_${ni}`);ri!==null&&this.api_url.includes("{{")&&this.api_url.match(new RegExp(`({{(${ti})}})`,"g"))&&(ri.value?this.pathValues.set(ti,ri.value):this.pathValues.set(ti,""))}addEventListeners(){let ti=new Set([...this.dynamicParams.keys(),...this.pathValues.keys()]);for(let ni of ti){let ri=document.querySelector(`[name="${ni}"]`);ri!==null&&ri.addEventListener("change",oi=>this.handleEvent(oi)),this.input.addEventListener(`netbox.select.onload.${ni}`,oi=>this.handleEvent(oi))}}handleEvent(ti){let ni=ti.target;this.updateQueryParams(ni.name),this.updatePathValues(ni.name),this.clear(),this.load(this.lastValue)}};var g_="id",vl="display",v_=100;function y_(ii,ei){let ti="";return typeof ii.depth=="number"&&ii.depth>0&&(ti=`${ti}${"\u2500".repeat(ii.depth)} `),ti=`${ti}${ei(ii[vl])}`,ii.parent&&(ti=`${ti} ${ei(ii.parent)} `),ii.count&&(ti=`${ti} ${ei(ii.count)} `),ii.description&&(ti=`${ti}${ei(ii.description)} `),ti=`${ti}
`,ti}function b_(ii,ei){return ii.parent?`${ei(ii.parent)} > ${ei(ii[vl])}
`:`${ei(ii[vl])}
`}function jf(){for(let ii of Hi("select.api-select:not(.tomselected)"))new gl(ii,sn(Di({},ma(ii)),{valueField:g_,labelField:vl,maxOptions:v_,searchField:[],preload:"focus",render:{option:y_,item:b_},shouldLoad:function(){return!0}}))}function yl(){Cf(),jf(),Sf()}function qf(ii,ei){var ri;let ti=(ri=ii.parentElement)==null?void 0:ri.parentElement,ni=ii.getAttribute("data-url");pn(ni)&&Ls(ni,{status:ei}).then(oi=>{if(rs(oi)){Po("danger","Error",oi.error).show();return}else ti.setAttribute("data-cable-status",ei)})}function Wf(){for(let ii of Hi("button.mark-planned"))ii.addEventListener("click",()=>qf(ii,"planned"));for(let ii of Hi("button.mark-installed"))ii.addEventListener("click",()=>qf(ii,"connected"))}var Vc=class{set(ei,ti,ni){return ei[ti]=ni,!0}get(ei,ti){return ei[ti]}has(ei,ti){return ti in ei}},ga=class{constructor(ei,ti){en(this,"handlers");en(this,"proxy");en(this,"options");en(this,"key","");if(this.options=ti,typeof this.options.key=="string"?this.key=this.options.key:this.key=this.generateStateKey(ei),this.options.persist){let ni=this.retrieve();ni!==null&&(ei=Di(Di({},ei),ni))}this.handlers=new Vc,this.proxy=new Proxy(ei,this.handlers),this.options.persist&&this.save()}generateStateKey(ei){return`netbox-${window.btoa(Object.keys(ei).join("---"))}`}get(ei){return this.handlers.get(this.proxy,ei)}set(ei,ti){this.handlers.set(this.proxy,ei,ti),this.options.persist&&this.save()}all(){return this.proxy}keys(){return Object.keys(this.proxy)}values(){return Object.values(this.proxy)}save(){let ei=JSON.stringify(this.proxy);localStorage.setItem(this.key,ei)}retrieve(){let ei=localStorage.getItem(this.key);return ei!==null?JSON.parse(ei):null}};function Fo(ii,ei={}){return new ga(ii,ei)}var jc=Fo({hidden:!1},{persist:!0,key:"netbox-object-depth"});var qc=Fo({view:"images-and-labels"},{persist:!0});var Uf=Fo({element:null},{persist:!1});var Yf=Fo({hidden:!0},{persist:!0,key:"netbox-secret"});function Gf(ii,ei){ei.setAttribute("data-depth-indicators",ii?"hidden":"shown"),ei.innerText=ii?"Show Depth Indicators":"Hide Depth Indicators"}function Kf(){for(let ii of Hi(".record-depth"))ii.style.display=""}function Qf(){for(let ii of Hi(".record-depth"))ii.style.display="none"}function __(ii,ei){let ti=ii.get("hidden");ii.set("hidden",!ti);let ni=ii.get("hidden");ni?Qf():Kf(),Gf(ni,ei)}function Xf(){let ii=jc.get("hidden");for(let ei of Hi("button.toggle-depth"))Gf(ii,ei),ei.addEventListener("click",ti=>{__(jc,ti.currentTarget)},!1);ii?Qf():ii||Kf()}function E_(ii){let ei=Array.from(ii.options);for(let ti=1;ti
=0;ti--){let ni=ei[ti];if(ni.selected){let ri=ii.options[ti+1];ni=ii.removeChild(ni),ri=ii.replaceChild(ni,ri),ii.insertBefore(ri,ni)}}}function Jf(){for(let ii of Hi("#move-option-up")){let ei=ii.getAttribute("data-target");if(ei!==null)for(let ti of Hi(`#${ei}`))ii.addEventListener("click",()=>E_(ti))}for(let ii of Hi("#move-option-down")){let ei=ii.getAttribute("data-target");if(ei!==null)for(let ti of Hi(`#${ei}`))ii.addEventListener("click",()=>w_(ti))}}function Zf(ii,ei){return ii.replace(/[^\-.\w\s]/g,"").replace(/^[\s.]+|[\s.]+$/g,"").replace(/[-.\s]+/g,"-").toLowerCase().substring(0,ei)}function eh(){for(let ii of Hi("button#reslug")){let ei=ii.form;if(ei==null)continue;let ti=ei.querySelector("#id_slug");if(ti==null)continue;let ni=ti.getAttribute("slug-source"),ri=ei.querySelector(`#id_${ni}`),oi=ti.getAttribute("maxlength"),si=50;oi&&(si=Number(oi)),ri.addEventListener("blur",()=>{ti.value||(ti.value=Zf(ri.value,si))}),ii.addEventListener("click",()=>{ti.value=Zf(ri.value,si)})}}function x_(ii){if(!ii.currentTarget.checked)for(let ti of Hi('input[type="checkbox"].toggle',"input#select-all"))ti.checked=!1}function T_(ii){let ei=ii.currentTarget,ti=os(ei,"table"),ni=document.getElementById("select-all-box"),ri=document.getElementById("select-all");if(ti!==null){for(let oi of ti.querySelectorAll('tr:not(.d-none) input[type="checkbox"][name="pk"]'))ei.checked?oi.checked=!0:oi.checked=!1;ni!==null&&(ei.checked?ni.classList.remove("d-none"):(ni.classList.add("d-none"),ri!==null&&(ri.checked=!1)))}}function th(){for(let ii of Hi('table tr th > input[type="checkbox"].toggle'))ii.addEventListener("change",T_);for(let ii of Hi('input[type="checkbox"][name="pk"]'))ii.addEventListener("change",x_)}function ih(){let ii=document.querySelector('input[type="checkbox"][name="pk"]:checked'),ei=document.querySelector("div.form.form-horizontal div.btn-list");if(!ei)return;let ti=ei.classList.contains("btn-float-group-left");ii!==null&&!ti?ei.classList.add("btn-float-group-left"):ii===null&&ti&&ei.classList.remove("btn-float-group-left")}function nh(){for(let ii of Hi('input[type="checkbox"][name="pk"]'))ii.addEventListener("change",()=>{ih()});for(let ii of Hi('table tr th > input[type="checkbox"].toggle'))ii.addEventListener("change",()=>{ih()})}function oh(){var ii;(ii=window.getSelection())==null||ii.removeAllRanges()}function rh(ii,ei){ei.set("element",ii)}function C_(ii,ei,ti){let ni=!1;for(let ri of ti){let oi=ri;if(ni===!0&&(oi.checked=ii.checked),ri===ei){if(ni===!0){ni=!1;return}ni=!0,oi.checked=ii.checked}if(ri===ii){if(ni===!0){ni=!1;return}ni=!0}}}function S_(ii,ei){let ti=ii.target,ni=ei.get("element");if(rh(ti,ei),!ii.shiftKey)return;if(oh(),ni===null)return rh(ti,ei);let ri=Hi('input[type="checkbox"][name="pk"]');C_(ti,ni,ri)}function sh(){let ii=Hi('input[type="checkbox"][name="pk"]');for(let ei of ii)ei.addEventListener("click",ti=>{oh(),ti.stopPropagation(),S_(ti,Uf)})}function A_(ii){let ei=ii.querySelector("button.preview-button"),ti=ii.querySelector("textarea"),ni=ii.querySelector("div.preview");if(!pn(ti.style.height)){let{height:ri}=ti.getBoundingClientRect();ti.style.height=`${ri}px`}ei.addEventListener("htmx:configRequest",ri=>{ri.detail.parameters={text:ti.value||""},ri.detail.headers["X-CSRFToken"]=window.CSRF_TOKEN,ni.style.minHeight=ti.style.height,ni.innerHTML=""})}function ah(){for(let ii of document.querySelectorAll(".markdown-widget"))A_(ii)}function D_(ii,ei){ei.setAttribute("data-secret-visibility",ii?"hidden":"shown"),ei.innerText=ii?"Show Secret":"Hide Secret"}function O_(){let ii=pa("secret");if(pn(ii)){let ei=ii.getAttribute("data-secret");pn(ei)&&(ii.innerText=ei)}}function ch(){let ii=pa("secret");if(pn(ii)){let ei=ii.getAttribute("data-secret");pn(ei)&&(ii.innerText="\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022")}}function L_(ii,ei){ii.set("hidden",!ii.get("hidden"));let ti=ii.get("hidden");ti?ch():O_(),D_(ti,ei)}function lh(ii){L_(Yf,ii.currentTarget)}function uh(){ch();for(let ii of Hi("button.toggle-secret"))ii.removeEventListener("click",lh),ii.addEventListener("click",lh)}function bl(){for(let ii of[Xf,Wf,eh,th,sh,nh,Jf,ah,uh])ii()}var Wc="netbox-color-mode";function M_(ii){return ii==="dark"||ii==="light"}function k_(ii){return localStorage.setItem(Wc,ii)}function N_(ii){var ti,ni;let ei=document.querySelector("body");ei&&ii=="dark"?ei.setAttribute("data-bs-theme","dark"):ei&&ei.setAttribute("data-bs-theme","light");for(let ri of Hi(".rack_elevation")){let oi=(ni=(ti=ri.contentDocument)==null?void 0:ti.querySelector("svg"))!=null?ni:null;oi!==null&&oi.setAttribute("data-bs-theme",ii)}}function $o(ii){k_(ii),N_(ii)}function R_(){let ii=localStorage.getItem(Wc);ii==="light"?$o("dark"):ii==="dark"?$o("light"):console.warn("Unable to determine the current color mode")}function I_(){let ii=localStorage.getItem(Wc);if(pn(ii))return $o(ii);let ei="none";for(let ti of["dark","light"])if(window.matchMedia(`(prefers-color-scheme: ${ti})`).matches){ei=ti;break}if(pn(ii)&&M_(ii))return $o(ii);switch(ei){case"dark":return $o("dark");case"light":return $o("light");case"none":return $o("light");default:return $o("light")}}function H_(){for(let ii of Hi("button.color-mode-toggle"))ii.addEventListener("click",R_)}function dh(){window.addEventListener("load",I_);for(let ii of[H_])ii()}function _l(){let ii=document.querySelectorAll("body > div#django-messages > div.toast");for(let ei of ii)if(ei!==null){let ti=new vo(ei);ti.isShown()||ti.show()}}var hh=cu(fh());function El(){for(let ii of Hi(".copy-content"))new hh.default(ii)}var wl=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Bo={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(ii){return typeof console!="undefined"&&console.warn(ii)},getWeek:function(ii){var ei=new Date(ii.getTime());ei.setHours(0,0,0,0),ei.setDate(ei.getDate()+3-(ei.getDay()+6)%7);var ti=new Date(ei.getFullYear(),0,4);return 1+Math.round(((ei.getTime()-ti.getTime())/864e5-3+(ti.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:" ",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:" ",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};var xl={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(ii){var ei=ii%100;if(ei>3&&ei<21)return"th";switch(ei%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Tl=xl;var Rn=function(ii,ei){return ei===void 0&&(ei=2),("000"+ii).slice(ei*-1)},qn=function(ii){return ii===!0?1:0};function Yc(ii,ei){var ti;return function(){var ni=this,ri=arguments;clearTimeout(ti),ti=setTimeout(function(){return ii.apply(ni,ri)},ei)}}var Cl=function(ii){return ii instanceof Array?ii:[ii]};function In(ii,ei,ti){if(ti===!0)return ii.classList.add(ei);ii.classList.remove(ei)}function tn(ii,ei,ti){var ni=window.document.createElement(ii);return ei=ei||"",ti=ti||"",ni.className=ei,ti!==void 0&&(ni.textContent=ti),ni}function ya(ii){for(;ii.firstChild;)ii.removeChild(ii.firstChild)}function Gc(ii,ei){if(ei(ii))return ii;if(ii.parentNode)return Gc(ii.parentNode,ei)}function ba(ii,ei){var ti=tn("div","numInputWrapper"),ni=tn("input","numInput "+ii),ri=tn("span","arrowUp"),oi=tn("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?ni.type="number":(ni.type="text",ni.pattern="\\d*"),ei!==void 0)for(var si in ei)ni.setAttribute(si,ei[si]);return ti.appendChild(ni),ti.appendChild(ri),ti.appendChild(oi),ti}function Wn(ii){try{if(typeof ii.composedPath=="function"){var ei=ii.composedPath();return ei[0]}return ii.target}catch(ti){return ii.target}}var Kc=function(){},_a=function(ii,ei,ti){return ti.months[ei?"shorthand":"longhand"][ii]},ph={D:Kc,F:function(ii,ei,ti){ii.setMonth(ti.months.longhand.indexOf(ei))},G:function(ii,ei){ii.setHours((ii.getHours()>=12?12:0)+parseFloat(ei))},H:function(ii,ei){ii.setHours(parseFloat(ei))},J:function(ii,ei){ii.setDate(parseFloat(ei))},K:function(ii,ei,ti){ii.setHours(ii.getHours()%12+12*qn(new RegExp(ti.amPM[1],"i").test(ei)))},M:function(ii,ei,ti){ii.setMonth(ti.months.shorthand.indexOf(ei))},S:function(ii,ei){ii.setSeconds(parseFloat(ei))},U:function(ii,ei){return new Date(parseFloat(ei)*1e3)},W:function(ii,ei,ti){var ni=parseInt(ei),ri=new Date(ii.getFullYear(),0,2+(ni-1)*7,0,0,0,0);return ri.setDate(ri.getDate()-ri.getDay()+ti.firstDayOfWeek),ri},Y:function(ii,ei){ii.setFullYear(parseFloat(ei))},Z:function(ii,ei){return new Date(ei)},d:function(ii,ei){ii.setDate(parseFloat(ei))},h:function(ii,ei){ii.setHours((ii.getHours()>=12?12:0)+parseFloat(ei))},i:function(ii,ei){ii.setMinutes(parseFloat(ei))},j:function(ii,ei){ii.setDate(parseFloat(ei))},l:Kc,m:function(ii,ei){ii.setMonth(parseFloat(ei)-1)},n:function(ii,ei){ii.setMonth(parseFloat(ei)-1)},s:function(ii,ei){ii.setSeconds(parseFloat(ei))},u:function(ii,ei){return new Date(parseFloat(ei))},w:Kc,y:function(ii,ei){ii.setFullYear(2e3+parseFloat(ei))}},Eo={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},ks={Z:function(ii){return ii.toISOString()},D:function(ii,ei,ti){return ei.weekdays.shorthand[ks.w(ii,ei,ti)]},F:function(ii,ei,ti){return _a(ks.n(ii,ei,ti)-1,!1,ei)},G:function(ii,ei,ti){return Rn(ks.h(ii,ei,ti))},H:function(ii){return Rn(ii.getHours())},J:function(ii,ei){return ei.ordinal!==void 0?ii.getDate()+ei.ordinal(ii.getDate()):ii.getDate()},K:function(ii,ei){return ei.amPM[qn(ii.getHours()>11)]},M:function(ii,ei){return _a(ii.getMonth(),!0,ei)},S:function(ii){return Rn(ii.getSeconds())},U:function(ii){return ii.getTime()/1e3},W:function(ii,ei,ti){return ti.getWeek(ii)},Y:function(ii){return Rn(ii.getFullYear(),4)},d:function(ii){return Rn(ii.getDate())},h:function(ii){return ii.getHours()%12?ii.getHours()%12:12},i:function(ii){return Rn(ii.getMinutes())},j:function(ii){return ii.getDate()},l:function(ii,ei){return ei.weekdays.longhand[ii.getDay()]},m:function(ii){return Rn(ii.getMonth()+1)},n:function(ii){return ii.getMonth()+1},s:function(ii){return ii.getSeconds()},u:function(ii){return ii.getTime()},w:function(ii){return ii.getDay()},y:function(ii){return String(ii.getFullYear()).substring(2)}};var Qc=function(ii){var ei=ii.config,ti=ei===void 0?Bo:ei,ni=ii.l10n,ri=ni===void 0?xl:ni,oi=ii.isMobile,si=oi===void 0?!1:oi;return function(ai,li,ui){var ci=ui||ri;return ti.formatDate!==void 0&&!si?ti.formatDate(ai,li,ci):li.split("").map(function(di,pi,yi){return ks[di]&&yi[pi-1]!=="\\"?ks[di](ai,ci,ti):di!=="\\"?di:""}).join("")}},Sl=function(ii){var ei=ii.config,ti=ei===void 0?Bo:ei,ni=ii.l10n,ri=ni===void 0?xl:ni;return function(oi,si,ai,li){if(!(oi!==0&&!oi)){var ui=li||ri,ci,di=oi;if(oi instanceof Date)ci=new Date(oi.getTime());else if(typeof oi!="string"&&oi.toFixed!==void 0)ci=new Date(oi);else if(typeof oi=="string"){var pi=si||(ti||Bo).dateFormat,yi=String(oi).trim();if(yi==="today")ci=new Date,ai=!0;else if(ti&&ti.parseDate)ci=ti.parseDate(oi,pi);else if(/Z$/.test(yi)||/GMT$/.test(yi))ci=new Date(oi);else{for(var gi=void 0,vi=[],Ei=0,Si=0,xi="";EiMath.min(ei,ti)&&ii=0?new Date:new Date(ti.config.minDate.getTime()),mi=Dl(ti.config);hi.setHours(mi.hours,mi.minutes,mi.seconds,hi.getMilliseconds()),ti.selectedDates=[hi],ti.latestSelectedDateObj=hi}fi!==void 0&&fi.type!=="blur"&&zh(fi);var _i=ti._input.value;di(),lo(),ti._input.value!==_i&&ti._debouncedChange()}function ui(fi,hi){return fi%12+12*qn(hi===ti.l10n.amPM[1])}function ci(fi){switch(fi%24){case 0:case 12:return 12;default:return fi%12}}function di(){if(!(ti.hourElement===void 0||ti.minuteElement===void 0)){var fi=(parseInt(ti.hourElement.value.slice(-2),10)||0)%24,hi=(parseInt(ti.minuteElement.value,10)||0)%60,mi=ti.secondElement!==void 0?(parseInt(ti.secondElement.value,10)||0)%60:0;ti.amPM!==void 0&&(fi=ui(fi,ti.amPM.textContent));var _i=ti.config.minTime!==void 0||ti.config.minDate&&ti.minDateHasTime&&ti.latestSelectedDateObj&&Un(ti.latestSelectedDateObj,ti.config.minDate,!0)===0,Ti=ti.config.maxTime!==void 0||ti.config.maxDate&&ti.maxDateHasTime&&ti.latestSelectedDateObj&&Un(ti.latestSelectedDateObj,ti.config.maxDate,!0)===0;if(ti.config.maxTime!==void 0&&ti.config.minTime!==void 0&&ti.config.minTime>ti.config.maxTime){var Ni=Al(ti.config.minTime.getHours(),ti.config.minTime.getMinutes(),ti.config.minTime.getSeconds()),Ki=Al(ti.config.maxTime.getHours(),ti.config.maxTime.getMinutes(),ti.config.maxTime.getSeconds()),$i=Al(fi,hi,mi);if($i>Ki&&$i=12)]),ti.secondElement!==void 0&&(ti.secondElement.value=Rn(mi)))}function gi(fi){var hi=Wn(fi),mi=parseInt(hi.value)+(fi.delta||0);(mi/1e3>1||fi.key==="Enter"&&!/[^\d]/.test(mi.toString()))&&kn(mi)}function vi(fi,hi,mi,_i){if(hi instanceof Array)return hi.forEach(function(Ti){return vi(fi,Ti,mi,_i)});if(fi instanceof Array)return fi.forEach(function(Ti){return vi(Ti,hi,mi,_i)});fi.addEventListener(hi,mi,_i),ti._handlers.push({remove:function(){return fi.removeEventListener(hi,mi,_i)}})}function Ei(){un("onChange")}function Si(){if(ti.config.wrap&&["open","close","toggle","clear"].forEach(function(mi){Array.prototype.forEach.call(ti.element.querySelectorAll("[data-"+mi+"]"),function(_i){return vi(_i,"click",ti[mi])})}),ti.isMobile){Ph();return}var fi=Yc(bn,50);if(ti._debouncedChange=Yc(Ei,P_),ti.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&vi(ti.daysContainer,"mouseover",function(mi){ti.config.mode==="range"&&wo(Wn(mi))}),vi(ti._input,"keydown",ro),ti.calendarContainer!==void 0&&vi(ti.calendarContainer,"keydown",ro),!ti.config.inline&&!ti.config.static&&vi(window,"resize",fi),window.ontouchstart!==void 0?vi(window.document,"touchstart",ln):vi(window.document,"mousedown",ln),vi(window.document,"focus",ln,{capture:!0}),ti.config.clickOpens===!0&&(vi(ti._input,"focus",ti.open),vi(ti._input,"click",ti.open)),ti.daysContainer!==void 0&&(vi(ti.monthNav,"click",Bh),vi(ti.monthNav,["keyup","increment"],gi),vi(ti.daysContainer,"click",ds)),ti.timeContainer!==void 0&&ti.minuteElement!==void 0&&ti.hourElement!==void 0){var hi=function(mi){return Wn(mi).select()};vi(ti.timeContainer,["increment"],li),vi(ti.timeContainer,"blur",li,{capture:!0}),vi(ti.timeContainer,"click",Li),vi([ti.hourElement,ti.minuteElement],["focus","click"],hi),ti.secondElement!==void 0&&vi(ti.secondElement,"focus",function(){return ti.secondElement&&ti.secondElement.select()}),ti.amPM!==void 0&&vi(ti.amPM,"click",function(mi){li(mi)})}ti.config.allowInput&&vi(ti._input,"blur",$s)}function xi(fi,hi){var mi=fi!==void 0?ti.parseDate(fi):ti.latestSelectedDateObj||(ti.config.minDate&&ti.config.minDate>ti.now?ti.config.minDate:ti.config.maxDate&&ti.config.maxDate1),ti.calendarContainer.appendChild(fi);var Ti=ti.config.appendTo!==void 0&&ti.config.appendTo.nodeType!==void 0;if((ti.config.inline||ti.config.static)&&(ti.calendarContainer.classList.add(ti.config.inline?"inline":"static"),ti.config.inline&&(!Ti&&ti.element.parentNode?ti.element.parentNode.insertBefore(ti.calendarContainer,ti._input.nextSibling):ti.config.appendTo!==void 0&&ti.config.appendTo.appendChild(ti.calendarContainer)),ti.config.static)){var Ni=tn("div","flatpickr-wrapper");ti.element.parentNode&&ti.element.parentNode.insertBefore(Ni,ti.element),Ni.appendChild(ti.element),ti.altInput&&Ni.appendChild(ti.altInput),Ni.appendChild(ti.calendarContainer)}!ti.config.static&&!ti.config.inline&&(ti.config.appendTo!==void 0?ti.config.appendTo:window.document.body).appendChild(ti.calendarContainer)}function Vi(fi,hi,mi,_i){var Ti=yn(hi,!0),Ni=tn("span",fi,hi.getDate().toString());return Ni.dateObj=hi,Ni.$i=_i,Ni.setAttribute("aria-label",ti.formatDate(hi,ti.config.ariaDateFormat)),fi.indexOf("hidden")===-1&&Un(hi,ti.now)===0&&(ti.todayDateElem=Ni,Ni.classList.add("today"),Ni.setAttribute("aria-current","date")),Ti?(Ni.tabIndex=-1,Il(hi)&&(Ni.classList.add("selected"),ti.selectedDateElem=Ni,ti.config.mode==="range"&&(In(Ni,"startRange",ti.selectedDates[0]&&Un(hi,ti.selectedDates[0],!0)===0),In(Ni,"endRange",ti.selectedDates[1]&&Un(hi,ti.selectedDates[1],!0)===0),fi==="nextMonthDay"&&Ni.classList.add("inRange")))):Ni.classList.add("flatpickr-disabled"),ti.config.mode==="range"&&$h(hi)&&!Il(hi)&&Ni.classList.add("inRange"),ti.weekNumbers&&ti.config.showMonths===1&&fi!=="prevMonthDay"&&_i%7===6&&ti.weekNumbers.insertAdjacentHTML("beforeend",""+ti.config.getWeek(hi)+" "),un("onDayCreate",Ni),Ni}function ki(fi){fi.focus(),ti.config.mode==="range"&&wo(fi)}function Mi(fi){for(var hi=fi>0?0:ti.config.showMonths-1,mi=fi>0?ti.config.showMonths:-1,_i=hi;_i!=mi;_i+=fi)for(var Ti=ti.daysContainer.children[_i],Ni=fi>0?0:Ti.children.length-1,Ki=fi>0?Ti.children.length:-1,$i=Ni;$i!=Ki;$i+=fi){var Xi=Ti.children[$i];if(Xi.className.indexOf("hidden")===-1&&yn(Xi.dateObj))return Xi}}function Ai(fi,hi){for(var mi=fi.className.indexOf("Month")===-1?fi.dateObj.getMonth():ti.currentMonth,_i=hi>0?ti.config.showMonths:-1,Ti=hi>0?1:-1,Ni=mi-ti.currentMonth;Ni!=_i;Ni+=Ti)for(var Ki=ti.daysContainer.children[Ni],$i=mi-ti.currentMonth===Ni?fi.$i+hi:hi<0?Ki.children.length-1:0,Xi=Ki.children.length,Fi=$i;Fi>=0&&Fi0?Xi:-1);Fi+=Ti){var Gi=Ki.children[Fi];if(Gi.className.indexOf("hidden")===-1&&yn(Gi.dateObj)&&Math.abs(fi.$i-Fi)>=Math.abs(hi))return ki(Gi)}ti.changeMonth(Ti),qi(Mi(Ti),0)}function qi(fi,hi){var mi=oi(),_i=Sn(mi||document.body),Ti=fi!==void 0?fi:_i?mi:ti.selectedDateElem!==void 0&&Sn(ti.selectedDateElem)?ti.selectedDateElem:ti.todayDateElem!==void 0&&Sn(ti.todayDateElem)?ti.todayDateElem:Mi(hi>0?1:-1);Ti===void 0?ti._input.focus():_i?Ai(Ti,hi):ki(Ti)}function Ci(fi,hi){for(var mi=(new Date(fi,hi,1).getDay()-ti.l10n.firstDayOfWeek+7)%7,_i=ti.utils.getDaysInMonth((hi-1+12)%12,fi),Ti=ti.utils.getDaysInMonth(hi,fi),Ni=window.document.createDocumentFragment(),Ki=ti.config.showMonths>1,$i=Ki?"prevMonthDay hidden":"prevMonthDay",Xi=Ki?"nextMonthDay hidden":"nextMonthDay",Fi=_i+1-mi,Gi=0;Fi<=_i;Fi++,Gi++)Ni.appendChild(Vi("flatpickr-day "+$i,new Date(fi,hi-1,Fi),Fi,Gi));for(Fi=1;Fi<=Ti;Fi++,Gi++)Ni.appendChild(Vi("flatpickr-day",new Date(fi,hi,Fi),Fi,Gi));for(var nn=Ti+1;nn<=42-mi&&(ti.config.showMonths===1||Gi%7!==0);nn++,Gi++)Ni.appendChild(Vi("flatpickr-day "+Xi,new Date(fi,hi+1,nn%Ti),nn,Gi));var oo=tn("div","dayContainer");return oo.appendChild(Ni),oo}function Qi(){if(ti.daysContainer!==void 0){ya(ti.daysContainer),ti.weekNumbers&&ya(ti.weekNumbers);for(var fi=document.createDocumentFragment(),hi=0;hi1||ti.config.monthSelectorType!=="dropdown")){var fi=function(_i){return ti.config.minDate!==void 0&&ti.currentYear===ti.config.minDate.getFullYear()&&_iti.config.maxDate.getMonth())};ti.monthsDropdownContainer.tabIndex=-1,ti.monthsDropdownContainer.innerHTML="";for(var hi=0;hi<12;hi++)if(fi(hi)){var mi=tn("option","flatpickr-monthDropdown-month");mi.value=new Date(ti.currentYear,hi).getMonth().toString(),mi.textContent=_a(hi,ti.config.shorthandCurrentMonth,ti.l10n),mi.tabIndex=-1,ti.currentMonth===hi&&(mi.selected=!0),ti.monthsDropdownContainer.appendChild(mi)}}}function gn(){var fi=tn("div","flatpickr-month"),hi=window.document.createDocumentFragment(),mi;ti.config.showMonths>1||ti.config.monthSelectorType==="static"?mi=tn("span","cur-month"):(ti.monthsDropdownContainer=tn("select","flatpickr-monthDropdown-months"),ti.monthsDropdownContainer.setAttribute("aria-label",ti.l10n.monthAriaLabel),vi(ti.monthsDropdownContainer,"change",function(Ki){var $i=Wn(Ki),Xi=parseInt($i.value,10);ti.changeMonth(Xi-ti.currentMonth),un("onMonthChange")}),Ji(),mi=ti.monthsDropdownContainer);var _i=ba("cur-year",{tabindex:"-1"}),Ti=_i.getElementsByTagName("input")[0];Ti.setAttribute("aria-label",ti.l10n.yearAriaLabel),ti.config.minDate&&Ti.setAttribute("min",ti.config.minDate.getFullYear().toString()),ti.config.maxDate&&(Ti.setAttribute("max",ti.config.maxDate.getFullYear().toString()),Ti.disabled=!!ti.config.minDate&&ti.config.minDate.getFullYear()===ti.config.maxDate.getFullYear());var Ni=tn("div","flatpickr-current-month");return Ni.appendChild(mi),Ni.appendChild(_i),hi.appendChild(Ni),fi.appendChild(hi),{container:fi,yearElement:Ti,monthElement:mi}}function rn(){ya(ti.monthNav),ti.monthNav.appendChild(ti.prevMonthNav),ti.config.showMonths&&(ti.yearElements=[],ti.monthElements=[]);for(var fi=ti.config.showMonths;fi--;){var hi=gn();ti.yearElements.push(hi.yearElement),ti.monthElements.push(hi.monthElement),ti.monthNav.appendChild(hi.container)}ti.monthNav.appendChild(ti.nextMonthNav)}function Zi(){return ti.monthNav=tn("div","flatpickr-months"),ti.yearElements=[],ti.monthElements=[],ti.prevMonthNav=tn("span","flatpickr-prev-month"),ti.prevMonthNav.innerHTML=ti.config.prevArrow,ti.nextMonthNav=tn("span","flatpickr-next-month"),ti.nextMonthNav.innerHTML=ti.config.nextArrow,rn(),Object.defineProperty(ti,"_hidePrevMonthArrow",{get:function(){return ti.__hidePrevMonthArrow},set:function(fi){ti.__hidePrevMonthArrow!==fi&&(In(ti.prevMonthNav,"flatpickr-disabled",fi),ti.__hidePrevMonthArrow=fi)}}),Object.defineProperty(ti,"_hideNextMonthArrow",{get:function(){return ti.__hideNextMonthArrow},set:function(fi){ti.__hideNextMonthArrow!==fi&&(In(ti.nextMonthNav,"flatpickr-disabled",fi),ti.__hideNextMonthArrow=fi)}}),ti.currentYearElement=ti.yearElements[0],Sa(),ti.monthNav}function on(){ti.calendarContainer.classList.add("hasTime"),ti.config.noCalendar&&ti.calendarContainer.classList.add("noCalendar");var fi=Dl(ti.config);ti.timeContainer=tn("div","flatpickr-time"),ti.timeContainer.tabIndex=-1;var hi=tn("span","flatpickr-time-separator",":"),mi=ba("flatpickr-hour",{"aria-label":ti.l10n.hourAriaLabel});ti.hourElement=mi.getElementsByTagName("input")[0];var _i=ba("flatpickr-minute",{"aria-label":ti.l10n.minuteAriaLabel});if(ti.minuteElement=_i.getElementsByTagName("input")[0],ti.hourElement.tabIndex=ti.minuteElement.tabIndex=-1,ti.hourElement.value=Rn(ti.latestSelectedDateObj?ti.latestSelectedDateObj.getHours():ti.config.time_24hr?fi.hours:ci(fi.hours)),ti.minuteElement.value=Rn(ti.latestSelectedDateObj?ti.latestSelectedDateObj.getMinutes():fi.minutes),ti.hourElement.setAttribute("step",ti.config.hourIncrement.toString()),ti.minuteElement.setAttribute("step",ti.config.minuteIncrement.toString()),ti.hourElement.setAttribute("min",ti.config.time_24hr?"0":"1"),ti.hourElement.setAttribute("max",ti.config.time_24hr?"23":"12"),ti.hourElement.setAttribute("maxlength","2"),ti.minuteElement.setAttribute("min","0"),ti.minuteElement.setAttribute("max","59"),ti.minuteElement.setAttribute("maxlength","2"),ti.timeContainer.appendChild(mi),ti.timeContainer.appendChild(hi),ti.timeContainer.appendChild(_i),ti.config.time_24hr&&ti.timeContainer.classList.add("time24hr"),ti.config.enableSeconds){ti.timeContainer.classList.add("hasSeconds");var Ti=ba("flatpickr-second");ti.secondElement=Ti.getElementsByTagName("input")[0],ti.secondElement.value=Rn(ti.latestSelectedDateObj?ti.latestSelectedDateObj.getSeconds():fi.seconds),ti.secondElement.setAttribute("step",ti.minuteElement.getAttribute("step")),ti.secondElement.setAttribute("min","0"),ti.secondElement.setAttribute("max","59"),ti.secondElement.setAttribute("maxlength","2"),ti.timeContainer.appendChild(tn("span","flatpickr-time-separator",":")),ti.timeContainer.appendChild(Ti)}return ti.config.time_24hr||(ti.amPM=tn("span","flatpickr-am-pm",ti.l10n.amPM[qn((ti.latestSelectedDateObj?ti.hourElement.value:ti.config.defaultHour)>11)]),ti.amPM.title=ti.l10n.toggleTitle,ti.amPM.tabIndex=-1,ti.timeContainer.appendChild(ti.amPM)),ti.timeContainer}function Mn(){ti.weekdayContainer?ya(ti.weekdayContainer):ti.weekdayContainer=tn("div","flatpickr-weekdays");for(var fi=ti.config.showMonths;fi--;){var hi=tn("div","flatpickr-weekdaycontainer");ti.weekdayContainer.appendChild(hi)}return vn(),ti.weekdayContainer}function vn(){if(ti.weekdayContainer){var fi=ti.l10n.firstDayOfWeek,hi=yh(ti.l10n.weekdays.shorthand);fi>0&&fi