Architecture
++
Operating models, Framework and Pipeline Bundles, data flow specs, and DABs on Lakeflow SDP.
+ + + Explore architecture + +diff --git a/.gitignore b/.gitignore index e170cbd..4e7ad72 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .databricks/ -build/ +/build/ +docs/build/ dist/ __pycache__/ *.egg-info diff --git a/VERSION b/VERSION index 8c20c52..759e855 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.20.0 \ No newline at end of file +v0.21.0 diff --git a/docs/Makefile b/docs/Makefile index 21073bb..4fc15a1 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -35,7 +35,7 @@ spelling: html-multiversion: @./scripts/build_versioned_docs.sh -# Local preview build including all local branches. +# Local preview build: current branch as local-branch-preview (current stays main). html-multiversion-preview: @./scripts/build_versioned_docs.sh --preview diff --git a/docs/README.md b/docs/README.md index b8b6da4..a6ba15d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -9,7 +9,7 @@ This folder contains the Sphinx documentation source and build tooling for local - [Multiversion Implementation (No sphinx-multiversion)](#multiversion-implementation-no-sphinx-multiversion) - [What Gets Built](#what-gets-built) - [Version Selection Rules](#version-selection-rules) - - [How the Sidebar Switcher Works](#how-the-sidebar-switcher-works) + - [How the Version Dropdown Works](#how-the-version-dropdown-works) - [Purge and Rebuild Behavior](#purge-and-rebuild-behavior) - [Local Build and Testing](#local-build-and-testing) - [GitHub Pages Deployment](#github-pages-deployment) @@ -40,7 +40,7 @@ The `docs/Makefile` supports these explicit targets: - `make html-multiversion` - Builds versioned docs without `sphinx-multiversion` using `scripts/build_versioned_docs.sh`. - `make html-multiversion-preview` - - Same as above, plus local branches for preview/testing. + - Same as above, plus the current git branch as `local-branch-preview`. Catch-all behavior is enabled: @@ -59,6 +59,10 @@ Versioned docs are generated by: - `main` branch is always built and published as `current`. - Selected release tags are built from git tags. +- **Docs IA cutover at v0.21.0:** + - **`current` and tags `>= v0.21.0`** use **main's** `docs/conf.py` with that ref's `docs/source` (sphinx-immaterial / section-folder IA). + - **Tags `<= v0.20.x`** use **`v0.20.0`'s** `docs/conf.py` (RTD / flat layout) with each tag's own `docs/source`. +- **`local-branch-preview`** (optional) uses the current branch's own conf + source (pre-merge validation). - Output layout: - `docs/build/html/current/index.html` - `docs/build/html/vX.Y.Z/index.html` @@ -70,9 +74,10 @@ Versioned docs are generated by: `scripts/select_versions.py` applies these rules: 1. Identify the highest major version present in tags. -2. Include the latest patch release for the last 5 minor series in that major. -3. Include the latest available release for each of the last 3 majors. -4. De-duplicate and sort descending (newest first). +2. For major `0`, include the latest patch release for every minor from the current minor down to `0.12` (inclusive). +3. For other majors, include the latest patch release for the last 5 minor series in that major. +4. Include the latest available release for each of the last 3 majors. +5. De-duplicate and sort descending (newest first). Example ordering: @@ -82,13 +87,27 @@ Example ordering: - `v0.14.0` - `v0.13.0` - `v0.12.1` +- … through `v0.12.x` when older minors exist -### How the Sidebar Switcher Works +### How the Version Dropdown Works -- `scripts/build_versioned_docs.py` writes `versions.json` with `name`, `url`, and `is_latest`. -- `docs/conf.py` loads this manifest via `DOCS_VERSIONS_FILE`. -- `docs/_templates/versions.html` renders the version list in the RTD sidebar. -- Links target `.../index.html` explicitly to avoid directory-listing behavior in local `file://` browsing. +- `scripts/build_versioned_docs.py` writes a **superset** `versions.json` with: + - mike / sphinx-immaterial fields: `version`, `title`, `aliases` + - legacy RTD fields: `name`, `display_version`, `url`, `status`, `is_latest`, `release_date` +- RTD-era refs load the manifest at build time via `DOCS_VERSIONS_FILE` into `versions.html`. +- Immaterial refs enable `version_dropdown` and fetch the parent `../versions.json` over HTTP (`version_json` in `conf.py`). +- Use a local HTTP server to test the immaterial switcher (see below). + +### Preview builds + +```bash +make -C docs html-multiversion-preview +``` + +- Still publishes `current` from `main`. +- Also builds the **current git branch** once as `local-branch-preview` (skipped if you are on `main` or detached HEAD). +- To review a feature branch before merge, check it out, run preview, then select `local-branch-preview` in the version menu. +- Preview builds from the **working tree** (uncommitted conf/theme/source edits are included). ## Purge and Rebuild Behavior @@ -122,7 +141,7 @@ make -C docs spelling make -C docs html-multiversion ``` -1. If you need to test branch previews in the version menu: +1. If you need to preview the current branch against `main` / release tags: ```bash make -C docs html-multiversion-preview @@ -132,7 +151,7 @@ Practical rule of thumb: - Doc text/layout change only: `html` + `spelling` - Versioning/switcher/build-script change: `html` + `spelling` + `html-multiversion` -- Branch preview verification: add `html-multiversion-preview` +- Branch theme/IA preview: `html-multiversion-preview`, then select `local-branch-preview` ### Open docs @@ -145,7 +164,9 @@ cd docs/build/html python3 -m http.server 8000 ``` -Then open [http://localhost:8000](http://localhost:8000). +Then open [http://localhost:8000/current/index.html](http://localhost:8000/current/index.html) to exercise the version dropdown. + +Note: `make html` builds a single-version tree without a parent-level `versions.json`; use `html-multiversion` to test version switching. ## GitHub Pages Deployment diff --git a/docs/conf.py b/docs/conf.py index afb2892..7015d14 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -5,18 +5,27 @@ # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information -import json import os -import subprocess import sys -from datetime import datetime sys.path.append(os.path.abspath(".")) # Ensure the script is discoverable from custom_markdown_builder import CustomMarkdownTranslator +# Ensure sphinx-immaterial registers domain synopses before env init. +from sphinx.domains.python import PythonDomain +import sphinx.domains.std + +PythonDomain.initial_data.setdefault("synopses", {}) +sphinx.domains.std.StandardDomain.initial_data.setdefault("synopses", {}) +import sphinx_immaterial.apidoc.python.synopses # noqa: F401 +import sphinx_immaterial.apidoc.generic_synopses # noqa: F401 + project = 'Lakeflow Framework' copyright = '2026, Databricks' author = 'Erik Seefeld, Haille Woldegebriel' +# Site title in the header /
)."""
+ from sphinx_immaterial.mermaid_diagrams import mermaid_node
+
+ for diagram in doctree.findall(mermaid_node):
+ content = diagram.get('content', '')
+ if not content:
+ for child in diagram.children:
+ if child.tagname == 'literal_block':
+ content = child.astext()
+ break
+ if content:
+ diagram['content'] = content
+ # Drop child nodes — content lives on the node attribute. Replacing
+ # children with nodes.Text() without append() orphans text nodes that
+ # the spelling builder treats as prose (:None: br, subgraph, …).
+ diagram.children[:] = []
+
+
+def _ignore_spelling_in_nonprose(app, doctree):
+ """Skip diagram markup and raw HTML during sphinxcontrib-spelling checks."""
+ from docutils import nodes
+
+ from sphinx_immaterial.mermaid_diagrams import mermaid_node
+
+ skip_tags = {
+ 'literal_block',
+ 'raw',
+ 'fixed_text_block',
+ 'math_block',
+ mermaid_node.__name__,
}
+ for node in doctree.findall(nodes.Element):
+ classes = set(node.get('classes', []))
+ if node.tagname in skip_tags or classes.intersection(
+ {'mermaid-diagram', 'lf-mermaid-source', 'lf-arch'}
+ ):
+ for text in node.findall(nodes.Text):
+ text.spellingIgnore = True
-_docs_current_version = os.environ.get("DOCS_CURRENT_VERSION", "current")
-_docs_versions = _load_versions()
-html_context = {
- "docs_current_version": _docs_current_version,
- "docs_versions": _docs_versions,
- "docs_current_version_meta": _current_version_meta(_docs_versions, _docs_current_version),
-}
+def _embed_mermaid_source_templates(app, doctree):
+ """Persist diagram source beside the rendered host (survives pre→div swap)."""
+ import html
+
+ from docutils import nodes
+
+ from sphinx_immaterial.mermaid_diagrams import mermaid_node
+
+ for diagram in doctree.findall(mermaid_node):
+ content = diagram.get('content') or diagram.astext()
+ if not content:
+ continue
+
+ parent = diagram.parent
+ if parent is None:
+ continue
+
+ if any(
+ isinstance(child, nodes.raw)
+ and 'lf-mermaid-source' in child.astext()
+ for child in parent.children
+ ):
+ continue
+
+ template = nodes.raw(
+ '',
+ f'{html.escape(content)}',
+ format='html',
+ )
+ parent.insert(parent.children.index(diagram), template)
+
+
+def _table_column_count(table) -> int:
+ from docutils import nodes
+
+ for tgroup in table.findall(nodes.tgroup):
+ cols = tgroup.get('cols')
+ if cols:
+ return int(cols)
+ return 0
+
+
+def _is_page_metadata_table(table) -> bool:
+ """Feature-page metadata strip: 2 cols, Applies To / Configuration Scope rows."""
+ from docutils import nodes
+
+ if _table_column_count(table) != 2:
+ return False
+
+ rows = list(table.findall(nodes.row))
+ if not rows:
+ return False
+
+ entries = list(rows[0].findall(nodes.entry))
+ if not entries:
+ return False
+
+ first_cell = entries[0].astext()
+ return (
+ 'Applies To' in first_cell
+ or 'Configuration Scope' in first_cell
+ or 'Databricks Docs' in first_cell
+ )
+
+
+def _mark_content_tables(app, doctree, docname=None):
+ """Tag body list-tables for theme CSS (excludes h1 metadata strips)."""
+ from docutils import nodes
+
+ for table in doctree.findall(nodes.table):
+ if _is_page_metadata_table(table):
+ continue
+
+ classes = list(table.get('classes', []))
+ if 'lf-content-table' not in classes:
+ classes.append('lf-content-table')
+ if 'data' not in classes:
+ classes.append('data')
+
+ col_count = _table_column_count(table)
+ col_class = f'lf-table-cols-{col_count}'
+ if 2 <= col_count <= 6 and col_class not in classes:
+ classes.append(col_class)
+
+ table['classes'] = classes
+
+
+def _upgrade_mermaid_dist(app, env=None):
+ """Replace theme mermaid (11.12) with vendored 11.16 for treeView-beta support."""
+ from pathlib import Path
+ import shutil
+
+ import sphinx_immaterial
+ from sphinx.builders.html import StandaloneHTMLBuilder
+
+ if not isinstance(app.builder, StandaloneHTMLBuilder):
+ return
+
+ if env is None:
+ env = app.env
+ dst_dir = Path(app.outdir) / "_static" / "mermaid"
+ dst = dst_dir / "mermaid.min.js"
+ theme_mermaid = Path(sphinx_immaterial.__file__).parent / "bundles" / "mermaid"
+
+ needs_mermaid = getattr(env, "sphinx_immaterial_copy_mermaid_dist", False)
+ if not needs_mermaid and not dst.is_file():
+ return
+
+ # Theme copy runs on env-check-consistency (skipped on no-op incremental
+ # builds). Ensure the dist exists before overriding with the vendored build.
+ if not dst.is_file() and theme_mermaid.is_dir():
+ dst_dir.mkdir(parents=True, exist_ok=True)
+ shutil.copytree(theme_mermaid, dst_dir, dirs_exist_ok=True)
+
+ vendor = Path(_here) / "source" / "_static" / "vendor" / "mermaid.min.js"
+ if vendor.is_file():
+ dst_dir.mkdir(parents=True, exist_ok=True)
+ shutil.copy2(vendor, dst)
+
+
+def _upgrade_mermaid_dist_on_finish(app, exception):
+ if exception is not None:
+ return
+ _upgrade_mermaid_dist(app)
+
+
+def _fix_language_data_for_immaterial_search(app, exception):
+ """Sphinx 8+ emits stopwords as a Set; immaterial search expects an array."""
+ if exception is not None:
+ return
+
+ from pathlib import Path
+ import re
+
+ path = Path(app.outdir) / "_static" / "language_data.js"
+ if not path.is_file():
+ return
+
+ text = path.read_text(encoding="utf-8")
+ if "new Set(" not in text:
+ return
+
+ updated, count = re.subn(
+ r"const stopwords = new Set\((\[[\s\S]*?\])\);\s*\nwindow\.stopwords = stopwords;",
+ r"var stopwords = \1;\nwindow.stopwords = stopwords;",
+ text,
+ count=1,
+ )
+ if count:
+ path.write_text(updated, encoding="utf-8")
+
+
+def _override_mermaid_pre_class(app):
+ """Use lf-mermaid-src so sphinx-immaterial does not shadow-DOM render diagrams."""
+ from sphinx_immaterial.mermaid_diagrams import (
+ depart_mermaid_node_html,
+ mermaid_node,
+ )
+
+ def visit_mermaid_node_html_lf(self, node):
+ attributes = {'class': 'lf-mermaid-src'}
+ self.body.append(self.starttag(node, 'pre', **attributes))
+
+ app.add_node(
+ mermaid_node,
+ override=True,
+ html=(visit_mermaid_node_html_lf, depart_mermaid_node_html),
+ )
+
+
+def _patch_mermaid_pre_tags(app, exception):
+ """Ensure theme does not shadow-render our diagrams (class lf-mermaid-src)."""
+ if exception is not None:
+ return
+
+ from pathlib import Path
+
+ outdir = Path(app.outdir)
+ for html_path in outdir.rglob('*.html'):
+ text = html_path.read_text(encoding='utf-8')
+ updated = text.replace('', '')
+ if updated != text:
+ html_path.write_text(updated, encoding='utf-8')
+
def setup(app):
app.set_translator("markdown", CustomMarkdownTranslator)
- app.add_css_file('custom.css')
+
+ def _init_domain_synopses(app):
+ for domain_name in ("py", "std"):
+ domain = app.env.get_domain(domain_name)
+ if "synopses" not in domain.data:
+ domain.data["synopses"] = {}
+
+ app.connect("builder-inited", _init_domain_synopses)
+ _override_mermaid_pre_class(app)
+ app.connect("doctree-read", _flatten_mermaid_diagrams)
+ app.connect("doctree-read", _ignore_spelling_in_nonprose)
+ app.connect("doctree-read", _embed_mermaid_source_templates)
+ app.connect("doctree-read", _mark_content_tables)
+ app.connect("env-check-consistency", _upgrade_mermaid_dist, priority=1000)
+ app.connect("build-finished", _upgrade_mermaid_dist_on_finish, priority=1000)
+ app.connect("build-finished", _fix_language_data_for_immaterial_search)
+ app.connect("build-finished", _patch_mermaid_pre_tags)
+ app.connect("html-page-context", _patch_landing_nav, priority=999)
#app.add_builder(MarkdownBuilder)
diff --git a/docs/decisions/0001-bundle-src-layout.md b/docs/decisions/0001-bundle-src-layout.md
index 9aa1af0..ab17607 100644
--- a/docs/decisions/0001-bundle-src-layout.md
+++ b/docs/decisions/0001-bundle-src-layout.md
@@ -13,7 +13,7 @@ modules and lifecycle scripts. This caused:
- No separation between "code that gets installed on the cluster" and "code that spec
references by module path".
-- No clear, fork-safe area for customer customisation.
+- No clear, fork-safe area for customer customization.
- Ambiguity between `extensions/` (sys.path) and `extensions/libraries/` (a variant
that was never released to `main`).
@@ -69,6 +69,6 @@ user-facing documentation to avoid confusion with callback-registration APIs.
code. It is **not** required if libraries are sourced from PyPI, UC Volumes, or an
artifact repository.
- New bundles should place spec-referenced Python in `src/python/` and cluster-install
- artefacts in `src/libraries/` (if bundled).
+ artifacts in `src/libraries/` (if bundled).
- The `pipeline_bundle_template/` and samples are migrated to this layout in this PR.
- Existing bundles using `extensions/` continue to work until `v1.0.0` (see ADR-0002).
diff --git a/docs/decisions/0002-extensions-deprecation.md b/docs/decisions/0002-extensions-deprecation.md
index f8d4dae..a2e7074 100644
--- a/docs/decisions/0002-extensions-deprecation.md
+++ b/docs/decisions/0002-extensions-deprecation.md
@@ -22,12 +22,12 @@ The new canonical path (`src/python/`) was introduced in ADR-0001.
## Decision
-| Legacy behaviour | Released? | Action in v0.13.0 | Removed in |
+| Legacy behavior | Released? | Action in v0.13.0 | Removed in |
|-----------------|-----------|-----------------|------------|
| Flat `extensions/` on `sys.path` | Yes | Emit `DeprecationWarning` + structured log | **v1.0.0** |
| `extensions/libraries/` on `sys.path` | No | Drop immediately, no deprecation window | **v0.13.0** (this PR) |
-**One-minor deprecation window:** deprecated behaviour is removed in the first minor
+**One-minor deprecation window:** deprecated behavior is removed in the first minor
version after the deprecation warning lands — giving consumers one release cycle to
migrate before the path disappears.
diff --git a/docs/decisions/0004-mirror-to-stdout-default.md b/docs/decisions/0004-mirror-to-stdout-default.md
index 2eb3118..e0bd432 100644
--- a/docs/decisions/0004-mirror-to-stdout-default.md
+++ b/docs/decisions/0004-mirror-to-stdout-default.md
@@ -62,7 +62,7 @@ default logger is returned unchanged.
- The `lakeflowframework` `logging.Logger` instance is modified in-place when
silenced. Any code that obtained a direct `logging.getLogger("lakeflowframework")`
reference before logger resolution will stop producing output — this is the
- intended behaviour.
+ intended behavior.
- `mirror_to_stdout: false` is the breaking change relative to the previous
hard-coded stdout logger. Teams relying on plain-text stdout output and also
enabling a custom logger must set `mirror_to_stdout: true` explicitly.
diff --git a/docs/decisions/0005-syspath-registration-decoupled-from-logger.md b/docs/decisions/0005-syspath-registration-decoupled-from-logger.md
index 33ebe02..360a77e 100644
--- a/docs/decisions/0005-syspath-registration-decoupled-from-logger.md
+++ b/docs/decisions/0005-syspath-registration-decoupled-from-logger.md
@@ -1,4 +1,4 @@
-# ADR-0005: `sys.path` registration decoupled from logger initialisation
+# ADR-0005: `sys.path` registration decoupled from logger initialization
**Date:** 2026-05-17
**Status:** Accepted
diff --git a/docs/decisions/0006-local-config-sparse-overlay.md b/docs/decisions/0006-local-config-sparse-overlay.md
index d21baea..07d67da 100644
--- a/docs/decisions/0006-local-config-sparse-overlay.md
+++ b/docs/decisions/0006-local-config-sparse-overlay.md
@@ -30,7 +30,7 @@ The original framework config mechanism offered a binary choice: use
resolution like `GLOBAL_CONFIG`).
The `src/local/` fork-safe area introduced in ADR-0001 provides a natural home
-for customer customisations. Config overrides should follow the same pattern.
+for customer customizations. Config overrides should follow the same pattern.
## Decision
@@ -47,7 +47,7 @@ Override detection and deprecation warnings are the **caller's responsibility**.
active, stores the resolved root in `self._active_config_path`, and passes it
to `load_framework_config`. `self._active_config_path` is reused by
`_setup_operational_metadata` so the override detection only runs once per
- pipeline initialisation.
+ pipeline initialization.
- **`load_framework_logger_config`** independently checks
`config/override/logger.json`, emits its own `DeprecationWarning` if active,
@@ -66,7 +66,7 @@ load_framework_config(
) -> Dict
```
-Behaviour:
+Behavior:
1. When `name` is a **sequence** (e.g. `FrameworkPaths.GLOBAL_CONFIG =
("global.json", "global.yaml", "global.yml")`):
diff --git a/docs/decisions/0007-scripted-versioned-docs-and-ui-scope.md b/docs/decisions/0007-scripted-versioned-docs-and-ui-scope.md
index 13363cd..17bfe02 100644
--- a/docs/decisions/0007-scripted-versioned-docs-and-ui-scope.md
+++ b/docs/decisions/0007-scripted-versioned-docs-and-ui-scope.md
@@ -32,16 +32,21 @@ The pipeline builds:
- `main` as `current`
- selected release tags
+- optional `local-branch-preview` (current branch) with `--preview`
- `docs/build/html/versions.json`
- root redirect `docs/build/html/index.html -> current/index.html`
-### 2) Keep selector UI scope minimal and theme-aligned
+Each published version (`current` and release tags) is built with **main's**
+`docs/conf.py` + templates and that ref's `docs/source`, so the RTD version
+selector stays available on historical docs. `--preview` adds
+`local-branch-preview` using the current branch's own conf/source.
-- Keep the RTD selector at the bottom (`docs/_templates/versions.html`).
-- Keep breadcrumb version/release-date metadata (`docs/_templates/breadcrumbs.html`).
-- Do **not** keep a second custom header selector path.
+### 2) Shared superset `versions.json` + theme-native selectors
-This limits ongoing CSS/template overrides and reduces regressions from theme changes.
+- Write one `versions.json` with both mike fields (`version`, `title`, `aliases`) and legacy RTD fields (`name`, `display_version`, `url`, …).
+- RTD refs (`current` / tags, via main's conf) consume it at build time via `DOCS_VERSIONS_FILE` / `versions.html`.
+- Immaterial preview refs enable `version_dropdown` and load the same file over HTTP.
+- Do **not** use a feature-branch conf for historical tag builds — that drops the RTD selector on older tags.
### 3) Place docs tooling under `docs/scripts/`
diff --git a/docs/decisions/0008-lakeflow-framework-package.md b/docs/decisions/0008-lakeflow-framework-package.md
index 1fcb79c..2b2e0ab 100644
--- a/docs/decisions/0008-lakeflow-framework-package.md
+++ b/docs/decisions/0008-lakeflow-framework-package.md
@@ -137,7 +137,7 @@ module is added.
risk with customer code.
- Existing flat-deploy customers are unaffected: the `src/` shims preserve
backward compatibility, and `framework.sourcePath` + Workspace Files-first
- resolution (ADR-0009) means behaviour is identical to pre-v0.20.0.
+ resolution (ADR-0009) means behavior is identical to pre-v0.20.0.
- Editable installs (`pip install -e ".[contrib]"`) are supported for local
development; the `src/` layout ensures the installed package and the source
tree are the same directory.
diff --git a/docs/decisions/0009-strategy-b-workspace-files-first-resolver.md b/docs/decisions/0009-strategy-b-workspace-files-first-resolver.md
index dbd8512..71e9cdd 100644
--- a/docs/decisions/0009-strategy-b-workspace-files-first-resolver.md
+++ b/docs/decisions/0009-strategy-b-workspace-files-first-resolver.md
@@ -32,7 +32,7 @@ first when both a Workspace Files path and the wheel package data are potentiall
- `+` Simple: the wheel is always the canonical source of defaults.
- `−` **Breaking for existing flat-deploy customers.** Their defaults live in
Workspace Files; if the wheel shadow-contains a newer (or different) version of a default
- file, behaviour silently changes on upgrade.
+ file, behavior silently changes on upgrade.
- `−` Contradicts the "explicit wins" principle: a customer who set
`framework.sourcePath` explicitly expects Workspace Files to be authoritative.
@@ -91,7 +91,7 @@ similar validators.
- **Zero-change upgrade for flat-deploy customers.** Their `framework.sourcePath`
points to the deployed `src/` directory in Workspace Files; those files are
- found at step 1 and the wheel is never consulted. Behaviour is identical to
+ found at step 1 and the wheel is never consulted. Behavior is identical to
pre-v0.20.0.
- **Explicit wins.** Setting `framework.sourcePath` is a deliberate act.
Workspace Files-first honours that intent; package-first would silently override it.
@@ -108,7 +108,7 @@ similar validators.
config and schema reads; call sites that previously used
`os.path.join(framework_path, FrameworkPaths.CONFIG_PATH, name)` are
migrated to it.
-- Flat-deploy customers see **no behaviour change** on upgrade to v0.20.0.
+- Flat-deploy customers see **no behavior change** on upgrade to v0.20.0.
- Wheel-install customers get defaults from the wheel with no `framework.sourcePath`
required.
- The `src/local/config/` sparse overlay (ADR-0006) continues to work in all
diff --git a/docs/redirects/architecture.yaml b/docs/redirects/architecture.yaml
new file mode 100644
index 0000000..d7bbf4b
--- /dev/null
+++ b/docs/redirects/architecture.yaml
@@ -0,0 +1,3 @@
+redirects:
+- from: concepts.html
+ to: architecture/index.html
diff --git a/docs/redirects/build.yaml b/docs/redirects/build.yaml
new file mode 100644
index 0000000..8e1ed39
--- /dev/null
+++ b/docs/redirects/build.yaml
@@ -0,0 +1,45 @@
+redirects:
+- from: build_pipeline_bundle.html
+ to: build/index.html
+- from: build_pipeline_bundle_steps.html
+ to: build/bundle-steps.html
+- from: build_pipeline_bundle_structure.html
+ to: build/bundle-structure.html
+- from: dataflow_spec_ref_cdc.html
+ to: build/spec-reference/cdc.html
+- from: dataflow_spec_ref_data_quality.html
+ to: build/spec-reference/data-quality.html
+- from: dataflow_spec_ref_main_flows.html
+ to: build/spec-reference/flows.html
+- from: dataflow_spec_ref_main_materialized_views.html
+ to: build/spec-reference/materialized-views.html
+- from: dataflow_spec_ref_main_standard.html
+ to: build/spec-reference/standard.html
+- from: dataflow_spec_ref_source_details.html
+ to: build/spec-reference/source-details.html
+- from: dataflow_spec_ref_table_migration.html
+ to: build/spec-reference/table-migration.html
+- from: dataflow_spec_ref_target_details.html
+ to: build/spec-reference/target-details.html
+- from: dataflow_spec_reference.html
+ to: build/spec-reference/index.html
+- from: patterns.html
+ to: build/patterns/index.html
+- from: patterns_streaming_basic_1_1.html
+ to: build/patterns/basic-1-1.html
+- from: build/patterns/silver-1-1.html
+ to: build/patterns/basic-1-1.html
+- from: build/patterns/common-medallion-path.html
+ to: build/patterns/base-patterns.html
+- from: patterns_streaming_cdc_stream_from_snapshot.html
+ to: build/patterns/cdc-stream-from-snapshot.html
+- from: patterns_streaming_flow_groups.html
+ to: build/patterns/flow-groups.html
+- from: patterns_streaming_multi_source_streaming.html
+ to: build/patterns/multi-source-streaming.html
+- from: patterns_streaming_stream_static_basic.html
+ to: build/patterns/stream-static-basic.html
+- from: patterns_streaming_stream_static_streaming_dwh.html
+ to: build/patterns/stream-static-streaming-dwh.html
+- from: splitting_dataflow_spec.html
+ to: build/spec-reference/splitting-dataflow-spec.html
diff --git a/docs/redirects/contributors.yaml b/docs/redirects/contributors.yaml
new file mode 100644
index 0000000..046b187
--- /dev/null
+++ b/docs/redirects/contributors.yaml
@@ -0,0 +1,15 @@
+redirects:
+- from: contributor.html
+ to: contributors/index.html
+- from: contributor_contrib.html
+ to: contributors/contrib.html
+- from: contributor_dev_docs.html
+ to: contributors/dev-docs.html
+- from: contributor_dev_env.html
+ to: contributors/dev-env.html
+- from: contributor_dev_git.html
+ to: contributors/dev-git.html
+- from: contributor_dev_steps.html
+ to: contributors/dev-steps.html
+- from: contributor_imports.html
+ to: contributors/imports.html
diff --git a/docs/redirects/deploy.yaml b/docs/redirects/deploy.yaml
new file mode 100644
index 0000000..1bd2a48
--- /dev/null
+++ b/docs/redirects/deploy.yaml
@@ -0,0 +1,17 @@
+redirects:
+- from: deploy.html
+ to: deploy/index.html
+- from: deploy_before_you_deploy.html
+ to: deploy/before-you-deploy.html
+- from: deploy_ci_cd.html
+ to: deploy/ci-cd.html
+- from: deploy_framework.html
+ to: deploy/framework/index.html
+- from: deploy_framework_options.html
+ to: deploy/framework/options.html
+- from: deploy_local_framework.html
+ to: deploy/framework/local-framework.html
+- from: deploy_local_pipeline_bundle.html
+ to: deploy/pipeline-bundle/local.html
+- from: deploy_wheel.html
+ to: deploy/framework/wheel.html
diff --git a/docs/redirects/features.yaml b/docs/redirects/features.yaml
new file mode 100644
index 0000000..456f84d
--- /dev/null
+++ b/docs/redirects/features.yaml
@@ -0,0 +1,93 @@
+redirects:
+- from: feature_a_z.html
+ to: features/a-z.html
+- from: feature_authoring.html
+ to: features/authoring/index.html
+- from: feature_auto_complete.html
+ to: features/authoring/auto-complete.html
+- from: feature_builder_parallelization.html
+ to: features/configuration/builder-parallelization.html
+- from: feature_cdc.html
+ to: features/platform/cdc.html
+- from: feature_cdf.html
+ to: features/platform/cdf.html
+- from: feature_configuration.html
+ to: features/configuration/index.html
+- from: feature_data_quality.html
+ to: features/data-quality/index.html
+- from: feature_data_quality_expectations.html
+ to: features/data-quality/expectations.html
+- from: feature_data_quality_quarantine.html
+ to: features/data-quality/quarantine.html
+- from: feature_databricks_schema_features.html
+ to: features/platform/databricks-schema-features.html
+- from: feature_environments.html
+ to: features/environments/index.html
+- from: feature_framework_configuration.html
+ to: features/configuration/framework-configuration.html
+- from: feature_liquid_clustering.html
+ to: features/platform/liquid-clustering.html
+- from: feature_logging.html
+ to: features/configuration/logging.html
+- from: feature_logical_environment.html
+ to: features/environments/logical-environments.html
+- from: feature_mandatory_table_properties.html
+ to: features/configuration/mandatory-table-properties.html
+- from: feature_materialized_views.html
+ to: features/platform/materialized-views.html
+- from: feature_metadata.html
+ to: features/metadata/index.html
+- from: feature_migrations.html
+ to: features/migrations/index.html
+- from: feature_multi_source_streaming.html
+ to: features/platform/multi-source-streaming.html
+- from: feature_operational_metadata.html
+ to: features/configuration/operational-metadata.html
+- from: feature_platform.html
+ to: features/platform/index.html
+- from: feature_python.html
+ to: features/python/index.html
+- from: feature_python_dependency_management.html
+ to: features/python/dependency-management.html
+- from: feature_python_extensions.html
+ to: features/python/extensions.html
+- from: feature_python_functions.html
+ to: features/python/functions.html
+- from: feature_python_source.html
+ to: features/python/source.html
+- from: feature_schemas.html
+ to: features/metadata/schema-management.html
+- from: feature_secrets.html
+ to: features/configuration/secrets-management.html
+- from: feature_soft_deletes.html
+ to: features/platform/soft-deletes.html
+- from: feature_source_types.html
+ to: features/sources-targets/source-types.html
+- from: feature_sources_targets.html
+ to: features/sources-targets/index.html
+- from: feature_spark_configuration.html
+ to: features/configuration/spark-configuration.html
+- from: feature_spec_format.html
+ to: features/metadata/spec-format.html
+- from: feature_sql_source.html
+ to: features/sources-targets/sql-source.html
+- from: feature_substitutions.html
+ to: features/metadata/substitutions.html
+- from: feature_table_migration.html
+ to: features/migrations/table-migration.html
+- from: feature_target_catalog_schema.html
+ to: features/platform/target-catalog-schema.html
+- from: feature_target_types.html
+ to: features/sources-targets/target-types.html
+- from: feature_templates.html
+ to: features/metadata/templates.html
+- from: feature_ui_integration.html
+ to: features/authoring/ui-integration.html
+- from: feature_validation.html
+ to: features/metadata/validation.html
+- from: feature_versioning_dataflow_spec.html
+ to: features/environments/versioning-dataflow-specs.html
+- from: feature_versioning_framework.html
+ to: features/environments/versioning-framework.html
+- from: features.html
+ to: features/index.html
diff --git a/docs/redirects/get-started.yaml b/docs/redirects/get-started.yaml
new file mode 100644
index 0000000..26c8d6f
--- /dev/null
+++ b/docs/redirects/get-started.yaml
@@ -0,0 +1,7 @@
+redirects:
+- from: get_started.html
+ to: get-started/index.html
+- from: quick_start.html
+ to: get-started/quick-start.html
+- from: what_is_lakeflow_framework.html
+ to: get-started/what-is-lakeflow-framework.html
diff --git a/docs/redirects/legacy.yaml b/docs/redirects/legacy.yaml
new file mode 100644
index 0000000..765000a
--- /dev/null
+++ b/docs/redirects/legacy.yaml
@@ -0,0 +1,17 @@
+redirects:
+- from: deploy_framework_bundle.html
+ to: deploy/framework/index.html
+- from: deploy_framework_overview.html
+ to: deploy/framework/options.html
+- from: deploy_pipeline_bundle.html
+ to: deploy/pipeline-bundle/local.html
+- from: feature_direct_publishing_mode.html
+ to: features/platform/target-catalog-schema.html
+- from: getting_started.html
+ to: get-started/index.html
+- from: home.html
+ to: index.html
+- from: orchestration.html
+ to: build/index.html
+- from: pipeline_execution.html
+ to: build/index.html
diff --git a/docs/redirects/samples.yaml b/docs/redirects/samples.yaml
new file mode 100644
index 0000000..4e8518e
--- /dev/null
+++ b/docs/redirects/samples.yaml
@@ -0,0 +1,3 @@
+redirects:
+- from: deploy_samples.html
+ to: samples/index.html
diff --git a/docs/scripts/build_versioned_docs.py b/docs/scripts/build_versioned_docs.py
index dc57dac..2eaa43e 100755
--- a/docs/scripts/build_versioned_docs.py
+++ b/docs/scripts/build_versioned_docs.py
@@ -2,10 +2,17 @@
"""Build versioned docs without sphinx-multiversion.
Build strategy:
-- Always build `main` as the default development docs, published as `current`.
+- Always build ``main`` as ``current``.
- Build selected release tags from docs/scripts/select_versions.py.
+- **Docs IA cutover at v0.21.0:** ``current`` and tags ``>= v0.21.0`` use
+ **main's** ``docs/conf.py`` with that ref's ``docs/source`` (immaterial /
+ section-folder IA). Tags ``<= v0.20.x`` use **v0.20.0's** ``docs/conf.py``
+ (RTD / flat layout) with each tag's own ``docs/source``.
+- ``--preview`` builds the current branch as ``local-branch-preview`` using
+ **that branch's** conf + source (pre-merge IA validation).
- Write per-version output under docs/build/html//.
-- Generate docs/build/html/versions.json for the sidebar switcher.
+- Generate docs/build/html/versions.json as a **superset** manifest consumed by
+ both sphinx-immaterial (mike fields) and legacy RTD ``versions.html``.
"""
from __future__ import annotations
@@ -13,12 +20,25 @@
import argparse
import json
import os
+import re
import shutil
import subprocess
import sys
from pathlib import Path
+_SCRIPTS_DIR = Path(__file__).resolve().parent
+if str(_SCRIPTS_DIR) not in sys.path:
+ sys.path.insert(0, str(_SCRIPTS_DIR))
+
DOCS_BASEURL = "https://databricks-solutions.github.io/lakeflow_framework/"
+PREVIEW_VERSION_NAME = "local-branch-preview"
+MAIN_CONF_WORKTREE = "_conf_main"
+LEGACY_CONF_REF = "v0.20.0"
+LEGACY_CONF_WORKTREE = "_conf_legacy"
+# Tags at or above this semver use main conf; older tags use LEGACY_CONF_REF conf.
+DOCS_CONF_CUTOVER = (0, 21, 0)
+REDIRECT_VERSIONS = frozenset({"current", PREVIEW_VERSION_NAME})
+_TAG_RE = re.compile(r"^v?(\d+)\.(\d+)\.(\d+)$")
def _run(command: list[str], *, cwd: Path | None = None, env: dict[str, str] | None = None) -> None:
@@ -39,13 +59,11 @@ def _selected_tags(repo_root: Path) -> list[str]:
return json.loads(output) if output else []
-def _list_preview_branches(repo_root: Path) -> list[str]:
- raw = _run_capture(
- ["git", "for-each-ref", "--format=%(refname:short)", "refs/heads"],
- cwd=repo_root,
- )
- branches = [line.strip() for line in raw.splitlines() if line.strip()]
- return [b for b in branches if b != "main"]
+def _current_branch(repo_root: Path) -> str:
+ try:
+ return _run_capture(["git", "branch", "--show-current"], cwd=repo_root)
+ except subprocess.CalledProcessError:
+ return ""
def _safe_remove(path: Path) -> None:
@@ -53,10 +71,56 @@ def _safe_remove(path: Path) -> None:
shutil.rmtree(path)
+def _cleanup_docs_worktrees(repo_root: Path, worktrees_root: Path) -> None:
+ """Unregister git worktrees under ``worktrees_root``, then delete the dir.
+
+ ``shutil.rmtree`` alone leaves stale registrations ("missing but already
+ registered") that break the next ``git worktree add``.
+ """
+ if worktrees_root.exists():
+ for child in sorted(worktrees_root.iterdir()):
+ if not child.is_dir():
+ continue
+ subprocess.run(
+ ["git", "worktree", "remove", "--force", str(child)],
+ cwd=repo_root,
+ check=False,
+ capture_output=True,
+ )
+ shutil.rmtree(worktrees_root, ignore_errors=True)
+ subprocess.run(
+ ["git", "worktree", "prune"],
+ cwd=repo_root,
+ check=False,
+ capture_output=True,
+ )
+
+
def _normalize_name(ref: str) -> str:
return ref.replace("/", "-")
+def _parse_release_tag(tag: str) -> tuple[int, int, int] | None:
+ match = _TAG_RE.match(tag)
+ if not match:
+ return None
+ return int(match.group(1)), int(match.group(2)), int(match.group(3))
+
+
+def _conf_ref_for(version_name: str) -> str | None:
+ """Git ref for ``docs/conf.py``, or ``None`` for the working tree (preview)."""
+ if version_name == PREVIEW_VERSION_NAME:
+ return None
+ if version_name == "current":
+ return "main"
+ parsed = _parse_release_tag(version_name)
+ if parsed is None:
+ return "main"
+ if parsed >= DOCS_CONF_CUTOVER:
+ return "main"
+ return LEGACY_CONF_REF
+
+
def _release_date_for_ref(repo_root: Path, ref: str) -> str:
# ISO-style date (YYYY-MM-DD) for deterministic display in docs headers.
return _run_capture(["git", "log", "-1", "--format=%cs", ref], cwd=repo_root)
@@ -72,43 +136,174 @@ def _version_for_ref(repo_root: Path, ref: str, fallback: str) -> str:
return fallback
+def _superset_versions(links: list[dict[str, str]]) -> list[dict[str, object]]:
+ """Build a versions.json entry set readable by immaterial and legacy RTD.
+
+ Immaterial / mike fields: ``version``, ``title``, ``aliases``
+ Legacy RTD fields: ``name``, ``display_version``, ``url``, ``is_latest``,
+ ``status``, ``release_date``
+ """
+ payload: list[dict[str, object]] = []
+ for item in links:
+ name = item["name"]
+ display = item["display_version"]
+ is_current = item.get("status") == "current"
+ title = f"{display} (current)" if is_current else display
+ aliases: list[str] = ["latest"] if is_current else []
+ payload.append(
+ {
+ # mike / sphinx-immaterial
+ "version": name,
+ "title": title,
+ "aliases": aliases,
+ # legacy RTD versions.html (via conf.py _load_versions)
+ "name": name,
+ "display_version": display,
+ "url": f"{name}/index.html",
+ "is_latest": is_current,
+ "status": "current" if is_current else item.get("status", "release"),
+ "release_date": item.get("release_date", ""),
+ }
+ )
+ return payload
+
+
+def _ensure_worktree(
+ *,
+ repo_root: Path,
+ worktrees_root: Path,
+ name: str,
+ ref: str,
+) -> Path:
+ path = worktrees_root / name
+ if path.exists():
+ return path
+ try:
+ _run(["git", "worktree", "add", "--detach", str(path), ref], cwd=repo_root)
+ except subprocess.CalledProcessError:
+ # Recover from a previous run that deleted the dir without unregistering.
+ subprocess.run(
+ ["git", "worktree", "prune"],
+ cwd=repo_root,
+ check=False,
+ capture_output=True,
+ )
+ _run(
+ ["git", "worktree", "add", "--force", "--detach", str(path), ref],
+ cwd=repo_root,
+ )
+ return path
+
+
+def _sphinx_build(
+ *,
+ repo_root: Path,
+ conf_dir: Path,
+ source_dir: Path,
+ out_dir: Path,
+ version_name: str,
+ versions_file: Path,
+) -> None:
+ out_dir.mkdir(parents=True, exist_ok=True)
+ env = os.environ.copy()
+ env["DOCS_CURRENT_VERSION"] = version_name
+ # Legacy RTD conf.py loads the shared manifest at build time.
+ env["DOCS_VERSIONS_FILE"] = str(versions_file)
+ _run(
+ [
+ sys.executable,
+ "-m",
+ "sphinx",
+ "-b",
+ "html",
+ "-c",
+ str(conf_dir),
+ str(source_dir),
+ str(out_dir),
+ ],
+ cwd=repo_root,
+ env=env,
+ )
+
+
def _build_ref(
*,
repo_root: Path,
- docs_dir: Path,
worktrees_root: Path,
output_root: Path,
+ versions_file: Path,
ref: str,
version_name: str,
+ conf_ref: str | None,
) -> None:
- worktree_path = worktrees_root / _normalize_name(version_name)
- _run(["git", "worktree", "add", "--detach", str(worktree_path), ref], cwd=repo_root)
- try:
- out_dir = output_root / version_name
- out_dir.mkdir(parents=True, exist_ok=True)
- env = os.environ.copy()
- env["DOCS_CURRENT_VERSION"] = version_name
- env["DOCS_VERSIONS_FILE"] = str(output_root / "versions.json")
- _run(
- [
- "sphinx-build",
- "-b",
- "html",
- "-c",
- str(docs_dir),
- str(worktree_path / "docs" / "source"),
- str(out_dir),
- ],
- cwd=repo_root,
- env=env,
+ """Build one version folder.
+
+ ``conf_ref`` selects which git ref supplies ``docs/conf.py``:
+ ``main`` (modern IA), ``v0.20.0`` (legacy RTD), or ``None`` (working tree).
+ Source always comes from ``ref`` (except preview, which uses the working tree).
+ """
+ if conf_ref is None:
+ # Preview: pick up local conf.py / theme / source edits immediately.
+ source_wt = repo_root
+ conf_dir = repo_root / "docs"
+ conf_label = f"{ref} (working tree)"
+ else:
+ source_wt = _ensure_worktree(
+ repo_root=repo_root,
+ worktrees_root=worktrees_root,
+ name=_normalize_name(version_name),
+ ref=ref,
+ )
+ conf_worktree_name = (
+ MAIN_CONF_WORKTREE if conf_ref == "main" else LEGACY_CONF_WORKTREE
)
- finally:
- _run(["git", "worktree", "remove", "--force", str(worktree_path)], cwd=repo_root)
+ conf_wt = _ensure_worktree(
+ repo_root=repo_root,
+ worktrees_root=worktrees_root,
+ name=conf_worktree_name,
+ ref=conf_ref,
+ )
+ conf_dir = conf_wt / "docs"
+ conf_label = conf_ref
+
+ source_dir = source_wt / "docs" / "source"
+ print(
+ f"Building docs for {ref} -> {version_name} (conf={conf_label})",
+ file=sys.stderr,
+ )
+ out_dir = output_root / version_name
+ _sphinx_build(
+ repo_root=repo_root,
+ conf_dir=conf_dir,
+ source_dir=source_dir,
+ out_dir=out_dir,
+ version_name=version_name,
+ versions_file=versions_file,
+ )
+
+ if version_name in REDIRECT_VERSIONS:
+ from write_redirects import write_redirects
+
+ count = write_redirects(
+ out_dir,
+ version_name=version_name,
+ docs_dir=repo_root / "docs",
+ )
+ print(f"Wrote {count} redirect stub(s) for {version_name}", file=sys.stderr)
def main() -> None:
parser = argparse.ArgumentParser()
- parser.add_argument("--preview", action="store_true", help="Include local branches in build.")
+ parser.add_argument(
+ "--preview",
+ action="store_true",
+ help=(
+ "Also build the current git branch as ``local-branch-preview`` "
+ "using that branch's own conf/source. "
+ "``current`` uses main; tags >= v0.21.0 use main conf; "
+ f"older tags use {LEGACY_CONF_REF} conf."
+ ),
+ )
args = parser.parse_args()
docs_dir = Path(__file__).resolve().parent.parent
@@ -116,17 +311,30 @@ def main() -> None:
build_root = docs_dir / "build"
output_root = build_root / "html"
worktrees_root = build_root / ".worktrees"
+ versions_file = output_root / "versions.json"
_safe_remove(output_root)
- _safe_remove(worktrees_root)
+ _cleanup_docs_worktrees(repo_root, worktrees_root)
output_root.mkdir(parents=True, exist_ok=True)
worktrees_root.mkdir(parents=True, exist_ok=True)
tags = _selected_tags(repo_root)
- versions = [{"name": "current", "ref": "main"}] + [{"name": t, "ref": t} for t in tags]
+ versions: list[dict[str, str]] = [{"name": "current", "ref": "main"}]
+ versions.extend({"name": t, "ref": t} for t in tags)
if args.preview:
- for branch in _list_preview_branches(repo_root):
- versions.append({"name": _normalize_name(branch), "ref": branch})
+ preview_branch = _current_branch(repo_root)
+ if not preview_branch:
+ print(
+ "Warning: --preview ignored (detached HEAD; no current branch).",
+ file=sys.stderr,
+ )
+ elif preview_branch == "main":
+ print(
+ "Warning: --preview ignored (already on main; current covers it).",
+ file=sys.stderr,
+ )
+ else:
+ versions.append({"name": PREVIEW_VERSION_NAME, "ref": preview_branch})
# De-duplicate while preserving order.
deduped: list[dict[str, str]] = []
@@ -140,7 +348,11 @@ def main() -> None:
links = []
for item in deduped:
is_current = item["name"] == "current"
- display_version = _version_for_ref(repo_root, item["ref"], item["name"].lstrip("v"))
+ is_preview = item["name"] == PREVIEW_VERSION_NAME
+ if is_preview:
+ display_version = f"{PREVIEW_VERSION_NAME} ({item['ref']})"
+ else:
+ display_version = _version_for_ref(repo_root, item["ref"], item["name"].lstrip("v"))
links.append(
{
"name": item["name"],
@@ -149,6 +361,7 @@ def main() -> None:
"is_latest": is_current,
"status": "current" if is_current else "release",
"release_date": _release_date_for_ref(repo_root, item["ref"]),
+ "ref": item["ref"],
}
)
@@ -162,19 +375,30 @@ def main() -> None:
if item["name"] == "current" or item["display_version"] != current_version
]
- (output_root / "versions.json").write_text(json.dumps(links, indent=2) + "\n", encoding="utf-8")
+ versions_file.write_text(
+ json.dumps(_superset_versions(links), indent=2) + "\n",
+ encoding="utf-8",
+ )
for item in deduped:
- print(f"Building docs for {item['ref']} -> {item['name']}", file=sys.stderr)
_build_ref(
repo_root=repo_root,
- docs_dir=docs_dir,
worktrees_root=worktrees_root,
output_root=output_root,
+ versions_file=versions_file,
ref=item["ref"],
version_name=item["name"],
+ conf_ref=_conf_ref_for(item["name"]),
)
+ # Immaterial's mike client resolves version_json relative to the version
+ # folder. Copy the site-root manifest into each version dir so both
+ # ``versions.json`` and ``../versions.json`` resolve successfully.
+ for item in deduped:
+ dest = output_root / item["name"] / "versions.json"
+ if (output_root / item["name"]).is_dir():
+ shutil.copy2(versions_file, dest)
+
# Root redirect for GitHub Pages.
index_html = """
@@ -219,8 +443,13 @@ def main() -> None:
)
(output_root / "robots.txt").write_text(robots_txt, encoding="utf-8")
- _safe_remove(worktrees_root)
- _run(["git", "worktree", "prune"], cwd=repo_root)
+ from write_redirects import write_root_mirror_redirects
+
+ root_count = write_root_mirror_redirects(output_root, docs_dir=repo_root / "docs")
+ if root_count:
+ print(f"Wrote {root_count} root-level redirect mirror(s)", file=sys.stderr)
+
+ _cleanup_docs_worktrees(repo_root, worktrees_root)
if __name__ == "__main__":
diff --git a/docs/scripts/select_versions.py b/docs/scripts/select_versions.py
index 6a4ea33..03a5cd0 100755
--- a/docs/scripts/select_versions.py
+++ b/docs/scripts/select_versions.py
@@ -5,6 +5,8 @@
--------
* For the current release major (highest major present), include the latest
patch release for the last 5 minor series.
+* For major ``0``, include the latest patch for every minor from the current
+ minor down to ``0.12`` (inclusive), not capped at five minors.
* Also include the latest available release for each of the last 3 major
versions.
@@ -27,6 +29,9 @@
TAG_RE = re.compile(r"^v?(\d+)\.(\d+)\.(\d+)$")
+# For 0.x releases, publish docs back to this minor (latest patch per minor).
+MIN_MINOR_MAJOR_0 = 12
+
def _get_tags() -> list[str]:
result = subprocess.run(
@@ -75,19 +80,27 @@ def select_versions(tags: list[str]) -> list[str]:
majors_desc = sorted(best_per_major.keys(), reverse=True)
current_major = majors_desc[0]
- # Last 5 minor series for current major (latest patch in each minor).
+ # Latest patch for each selected minor in the current major.
current_major_minors = sorted(
[minor for (major, minor) in best_per_minor if major == current_major],
reverse=True,
)
- current_major_last_5 = {
- best_per_minor[(current_major, minor)][1] for minor in current_major_minors[:5]
- }
+ if current_major == 0:
+ current_major_selected = {
+ best_per_minor[(0, minor)][1]
+ for minor in current_major_minors
+ if minor >= MIN_MINOR_MAJOR_0
+ }
+ else:
+ current_major_selected = {
+ best_per_minor[(current_major, minor)][1]
+ for minor in current_major_minors[:5]
+ }
# Last 3 major versions (latest release per major).
last_3_major_latest = {best_per_major[major][2] for major in majors_desc[:3]}
- return _sort_tags_desc(current_major_last_5 | last_3_major_latest)
+ return _sort_tags_desc(current_major_selected | last_3_major_latest)
def tags_to_regex(tags: list[str]) -> str:
diff --git a/docs/scripts/write_redirects.py b/docs/scripts/write_redirects.py
new file mode 100644
index 0000000..c7c130c
--- /dev/null
+++ b/docs/scripts/write_redirects.py
@@ -0,0 +1,180 @@
+#!/usr/bin/env python3
+"""Write HTML redirect stubs from docs/redirects.yaml and docs/redirects/*.yaml."""
+
+from __future__ import annotations
+
+import argparse
+import sys
+from pathlib import Path
+
+try:
+ import yaml
+except ImportError as exc: # pragma: no cover
+ raise SystemExit("PyYAML is required: pip install pyyaml") from exc
+
+DOCS_BASEURL = "https://databricks-solutions.github.io/lakeflow_framework/"
+
+_STUB_MARKER = "docs-redirect-stub"
+
+
+def _docs_dir() -> Path:
+ return Path(__file__).resolve().parent.parent
+
+
+def load_redirects(docs_dir: Path | None = None) -> list[dict[str, str]]:
+ """Load and merge redirect entries from the central manifest."""
+ docs_dir = docs_dir or _docs_dir()
+ entries: list[dict[str, str]] = []
+
+ single = docs_dir / "redirects.yaml"
+ if single.is_file():
+ data = yaml.safe_load(single.read_text(encoding="utf-8")) or {}
+ entries.extend(data.get("redirects", []))
+
+ redirects_dir = docs_dir / "redirects"
+ if redirects_dir.is_dir():
+ for path in sorted(redirects_dir.glob("*.yaml")):
+ data = yaml.safe_load(path.read_text(encoding="utf-8")) or {}
+ entries.extend(data.get("redirects", []))
+
+ seen: set[str] = set()
+ deduped: list[dict[str, str]] = []
+ for entry in entries:
+ src = entry.get("from", "").strip()
+ dst = entry.get("to", "").strip()
+ if not src or not dst or src in seen:
+ continue
+ seen.add(src)
+ deduped.append({"from": src, "to": dst})
+ return deduped
+
+
+def _is_redirect_stub(path: Path) -> bool:
+ if not path.is_file():
+ return False
+ try:
+ return _STUB_MARKER in path.read_text(encoding="utf-8")
+ except OSError:
+ return False
+
+
+def _redirect_html(*, target: str, canonical: str) -> str:
+ return f"""
+
+
+
+
+ Page moved
+
+
+
+
+ This page has moved to {target}.
+
+
+"""
+
+
+def write_redirects(
+ version_outdir: Path,
+ *,
+ version_name: str,
+ baseurl: str = DOCS_BASEURL,
+ docs_dir: Path | None = None,
+) -> int:
+ """Write redirect stubs into a built version directory. Returns count written."""
+ version_outdir = version_outdir.resolve()
+ written = 0
+
+ for entry in load_redirects(docs_dir):
+ from_rel = entry["from"]
+ to_rel = entry["to"]
+ stub_path = version_outdir / from_rel
+ target_path = version_outdir / to_rel
+
+ if stub_path.exists() and stub_path.is_dir():
+ print(f"skip redirect (directory exists): {from_rel}", file=sys.stderr)
+ continue
+ if stub_path.exists() and not _is_redirect_stub(stub_path):
+ print(f"skip redirect (real page exists): {from_rel}", file=sys.stderr)
+ continue
+ if not target_path.exists():
+ print(f"warning: redirect target missing: {to_rel}", file=sys.stderr)
+
+ stub_path.parent.mkdir(parents=True, exist_ok=True)
+ canonical = f"{baseurl.rstrip('/')}/{version_name}/{to_rel}"
+ stub_path.write_text(
+ _redirect_html(target=to_rel, canonical=canonical),
+ encoding="utf-8",
+ )
+ written += 1
+
+ return written
+
+
+def write_root_mirror_redirects(
+ output_root: Path,
+ *,
+ version_name: str = "current",
+ baseurl: str = DOCS_BASEURL,
+ docs_dir: Path | None = None,
+) -> int:
+ """Mirror redirect stubs at site root for links that omit the version prefix."""
+ output_root = output_root.resolve()
+ version_dir = output_root / version_name
+ if not version_dir.is_dir():
+ return 0
+
+ written = 0
+ for entry in load_redirects(docs_dir):
+ from_rel = entry["from"]
+ to_rel = entry["to"]
+ stub_path = output_root / from_rel
+ target_path = version_dir / to_rel
+
+ if stub_path.exists():
+ continue
+ if not target_path.exists():
+ continue
+
+ stub_path.parent.mkdir(parents=True, exist_ok=True)
+ target_url = f"{version_name}/{to_rel}"
+ canonical = f"{baseurl.rstrip('/')}/{target_url}"
+ stub_path.write_text(
+ _redirect_html(target=target_url, canonical=canonical),
+ encoding="utf-8",
+ )
+ written += 1
+
+ return written
+
+
+def main() -> None:
+ parser = argparse.ArgumentParser(description="Write HTML redirect stubs for docs.")
+ parser.add_argument(
+ "version_outdir",
+ type=Path,
+ help="Built version directory (e.g. docs/build/html/current)",
+ )
+ parser.add_argument(
+ "--version-name",
+ default="current",
+ help="Version folder name for canonical URLs (default: current)",
+ )
+ parser.add_argument(
+ "--baseurl",
+ default=DOCS_BASEURL,
+ help="Site base URL for canonical links",
+ )
+ args = parser.parse_args()
+
+ count = write_redirects(
+ args.version_outdir,
+ version_name=args.version_name,
+ baseurl=args.baseurl,
+ )
+ print(f"Wrote {count} redirect stub(s) to {args.version_outdir}", file=sys.stderr)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/docs/source/_landing.rst b/docs/source/_landing.rst
new file mode 100644
index 0000000..29e8925
--- /dev/null
+++ b/docs/source/_landing.rst
@@ -0,0 +1,105 @@
+.. raw:: html
+
+
+ The Lakeflow Framework (LFF)
+ Metadata-driven pipelines for Databricks Lakeflow SDP
+
+ Configure once. Reuse everywhere. LFF transforms declarative metadata into production-ready
+ Lakeflow Spark Declarative Pipelines (SDP) using reusable patterns and Databricks
+ Declarative Automation Bundles (DABs).
+
+
+
+
+.. raw:: html
+
+
+ One framework. Any operating model.
+
+ Built to fit the way your organization delivers data. Whether your
+ teams operate through a centralized platform, a hybrid model, or
+ federated domain ownership, LFF adapts to your operating model.
+ Use consistent implementation patterns to build medallion pipelines,
+ domain-owned data products, or architectures tailored to your business.
+
+
+
+.. include:: _lff_architecture_diagram.rst
+
+.. container:: lf-landing-onboarding
+
+ New to LFF? Start at :doc:`/get-started/index` — product overview, Quick Start, or straight into the docs.
+
+.. raw:: html
+
+
+
+
+
+ Architecture
+
+
+ Operating models, Framework and Pipeline Bundles, data flow specs, and DABs on Lakeflow SDP.
+
+
+ Explore architecture
+
+
+
+
+
+ Samples
+
+
+ Feature samples, pattern samples, and the end-to-end TPCH reference warehouse.
+
+
+ Browse feature & pattern samples
+
+
+
+
+
+ Build
+
+
+ Bundle structure, pipeline bundle steps, data flow spec reference, and medallion patterns.
+
+
+ Author pipeline bundles & specs
+
+
+
+
+
+ Deploy
+
+
+ Deploy the Framework Bundle and Pipeline Bundles — flat DAB deploy, pip wheel, local CLI, or CI/CD.
+
+
+ Deploy framework & pipelines
+
+
+
+
+
+ Features
+
+
+ Metadata-driven specs, configuration, Python extensions, data quality, sources and targets, and platform features.
+
+
+ Browse features by category
+
+
+
diff --git a/docs/source/_lff_architecture_diagram.rst b/docs/source/_lff_architecture_diagram.rst
new file mode 100644
index 0000000..3264d9a
--- /dev/null
+++ b/docs/source/_lff_architecture_diagram.rst
@@ -0,0 +1,84 @@
+.. raw:: html
+
+
+
+
diff --git a/docs/source/_static/custom.css b/docs/source/_static/custom.css
index e2a0e8c..3c62957 100644
--- a/docs/source/_static/custom.css
+++ b/docs/source/_static/custom.css
@@ -47,51 +47,30 @@
vertical-align: baseline;
}
-.docs-breadcrumb-version-meta {
- font-size: 0.9em;
- color: #6f6f6f;
-}
-
-.docs-breadcrumb-version-meta strong {
- color: inherit;
- font-weight: 600;
-}
-
-.docs-breadcrumb-version-meta .docs-current-badge {
- margin: 0 0.45em 0 0.25em;
-}
-
/* markdown styles for raw html */
.highlight-row {
background-color: green !important;
color: white !important;
}
-/* Custom styling for sphinx-tabs */
+/* Custom styling for sphinx-tabs — layout/structure only; colours in databricks-theme.css */
.sphinx-tabs {
- margin-bottom: 1rem;
+ margin-bottom: 0.75rem;
}
.sphinx-tabs-tab {
- background-color: #f3f6f6;
- color: #404040;
- padding: 0.5rem 1rem;
- border: 1px solid #e1e4e5;
+ padding: 0.35rem 0.75rem;
border-bottom: none;
font-weight: 500;
- font-size: 0.9rem;
+ font-size: 0.75rem;
+ line-height: 1.25;
}
.sphinx-tabs-tab[aria-selected="true"] {
- background-color: #fff;
- color: #2980b9;
- border-bottom: 2px solid #2980b9;
+ margin: 0;
}
.sphinx-tabs-panel {
- background-color: #f8f8f8 !important;
- border: 1px solid #e1e4e5;
- border-top: none;
padding: 0;
margin-bottom: 0;
}
@@ -147,17 +126,3 @@
.sphinx-tabs-panel .highlight:last-child {
margin-bottom: 0;
}
-
-.sphinx-tabs-panel .highlight pre {
- padding-bottom: 12px;
-}
-
-/* Keep RTD footer versions stacked one per line. */
-.rst-versions .rst-other-versions dd {
- float: none;
- width: 100%;
-}
-
-.rst-versions .rst-other-versions dd a {
- display: block;
-}
diff --git a/docs/source/_static/databricks-theme.css b/docs/source/_static/databricks-theme.css
new file mode 100644
index 0000000..dcf43ba
--- /dev/null
+++ b/docs/source/_static/databricks-theme.css
@@ -0,0 +1,1933 @@
+/*
+ * Databricks header CTA ("Try Databricks") — bg-cta-red from databricks.com
+ * Base: #EB1600 Hover: #BD2B26 Active/light: #FF5F46
+ */
+:root,
+[data-md-color-scheme="default"] {
+ --md-primary-fg-color: #eb1600;
+ --md-primary-fg-color--light: #ff5f46;
+ --md-primary-fg-color--dark: #bd2b26;
+ --md-accent-fg-color: #1b3139;
+
+ /* sphinx-design alignment */
+ --sd-color-primary: #eb1600;
+ --sd-color-primary-highlight: #bd2b26;
+ --sd-color-primary-text: #fff;
+ --sd-color-tabs-label-active: #eb1600;
+ --sd-color-tabs-label-hover: #bd2b26;
+ --sd-color-tabs-underline-active: #eb1600;
+ --sd-color-card-border-hover: #eb1600;
+
+ /* sphinx-tabs (JSON/YAML format switchers) */
+ --lf-tabs-divider: #dce0e2;
+ --lf-tabs-border: #dce0e2;
+ --lf-tabs-inactive-bg: #f3f6f6;
+ --lf-tabs-inactive-fg: #566268;
+ --lf-tabs-active-bg: #fff;
+ --lf-tabs-active-fg: #eb1600;
+ --lf-tabs-active-indicator: #eb1600;
+
+ /* Command snippets (.lf-command-block) */
+ --lf-command-bg: #f5f5f5;
+ --lf-command-fg: #364152;
+ --lf-command-copy: #8b949e;
+ --lf-command-copy-hover-bg: rgba(255, 255, 255, 0.65);
+ --lf-command-copy-hover-fg: #57606a;
+
+ /* Feature metadata strip badges (shared with header search) */
+ --lf-badge-bg: rgba(235, 22, 0, 0.1);
+ --lf-badge-border: rgba(235, 22, 0, 0.22);
+ --lf-badge-fg: #c41200;
+}
+
+[data-md-color-scheme="slate"] {
+ --md-primary-fg-color: #eb1600;
+ --md-primary-fg-color--light: #ff5f46;
+ --md-primary-fg-color--dark: #bd2b26;
+ --md-accent-fg-color: #dce0e2;
+
+ --sd-color-primary: #eb1600;
+ --sd-color-primary-highlight: #ff5f46;
+ --sd-color-primary-text: #fff;
+ --sd-color-tabs-label-active: #ff5f46;
+ --sd-color-tabs-label-hover: #ff5f46;
+ --sd-color-tabs-underline-active: #ff5f46;
+ --sd-color-card-border-hover: #ff5f46;
+
+ --lf-tabs-divider: #3d484d;
+ --lf-tabs-border: #3d484d;
+ --lf-tabs-inactive-bg: rgba(255, 255, 255, 0.06);
+ --lf-tabs-inactive-fg: #a9b3b8;
+ --lf-tabs-active-bg: #243036;
+ --lf-tabs-active-fg: #ff5f46;
+ --lf-tabs-active-indicator: #ff5f46;
+
+ --lf-command-bg: #2a3438;
+ --lf-command-fg: #e6edf3;
+ --lf-command-copy: #8b949e;
+ --lf-command-copy-hover-bg: rgba(255, 255, 255, 0.08);
+ --lf-command-copy-hover-fg: #e6edf3;
+
+ --lf-badge-bg: rgba(255, 95, 70, 0.16);
+ --lf-badge-border: rgba(255, 95, 70, 0.28);
+ --lf-badge-fg: #ff8a75;
+}
+
+/* Landing hero — WAF-style centered light panel */
+.lf-hero {
+ margin: 0 0 2.5rem;
+ padding: 2.5rem 1.5rem 2rem;
+ text-align: center;
+ background: transparent;
+ color: var(--md-default-fg-color, #1b3139);
+}
+
+.lf-hero__title {
+ margin: 0 0 0.5rem;
+ color: #eb1600;
+ font-size: 3rem;
+ font-weight: 700;
+ line-height: 1.15;
+ letter-spacing: -0.02em;
+}
+
+/* Beat sphinx-immaterial .md-typeset h1 (light gray, 2em) */
+.md-typeset .lf-hero h1.lf-hero__title {
+ margin: 0 0 0.5rem;
+ color: #eb1600;
+ font-size: 3rem;
+ font-weight: 700;
+ line-height: 1.15;
+ letter-spacing: -0.02em;
+}
+
+/* Hero subtitle — same colour as lead; larger semibold type */
+.md-typeset .lf-hero p.lf-hero__subtitle,
+.md-typeset .lf-landing-blurb p.lf-hero__subtitle {
+ max-width: 46rem;
+ margin: 0 auto 1.25rem;
+ color: var(--md-default-fg-color, #1b3139);
+ font-family: var(--md-text-font, "Roboto"), sans-serif;
+ font-size: 1.75rem;
+ font-weight: 600;
+ line-height: 1.35;
+ letter-spacing: -0.015em;
+ opacity: 0.92;
+}
+
+.md-typeset .lf-hero p.lf-hero__lead,
+.md-typeset .lf-landing-blurb p.lf-hero__lead {
+ max-width: 46rem;
+ margin: 0 auto 1.75rem;
+ font-size: 1.05rem;
+ line-height: 1.65;
+ color: var(--md-default-fg-color, #1b3139);
+ opacity: 0.92;
+}
+
+.lf-landing-blurb {
+ max-width: 46rem;
+ margin: 0 auto 1.5rem;
+ text-align: center;
+}
+
+/*
+ * LFF architecture diagram — inline SVG themed for Material light/slate.
+ * Accents stay; surfaces and text follow the docs color scheme.
+ */
+.lf-arch {
+ --lf-arch-fg: #1b3139;
+ --lf-arch-muted: #445861;
+ --lf-arch-card-bg: #ffffff;
+ --lf-arch-fw: #2b7bb9;
+ --lf-arch-fw-header: #e6f2f8;
+ --lf-arch-fw-panel: #f3f9fc;
+ /* Pipeline Bundle — former DABS green */
+ --lf-arch-pl: #3d9a5f;
+ --lf-arch-pl-header: #e8f5ec;
+ --lf-arch-pl-panel: #f2faf5;
+ /* DABS Foundation — Option 1 (CTA red) in light mode */
+ --lf-arch-dabs: #eb1600;
+ --lf-arch-dabs-bg: rgba(235, 22, 0, 0.16);
+ --lf-arch-dabs-border: #eb1600;
+
+ display: block;
+ max-width: 46rem;
+ margin: 0 auto 1.75rem;
+ text-align: center;
+}
+
+[data-md-color-scheme="slate"] .lf-arch {
+ --lf-arch-fg: #e8eef0;
+ --lf-arch-muted: #b0bec3;
+ --lf-arch-card-bg: #1e2629;
+ --lf-arch-fw: #5dade2;
+ --lf-arch-fw-header: rgba(93, 173, 226, 0.22);
+ --lf-arch-fw-panel: rgba(93, 173, 226, 0.1);
+ --lf-arch-pl: #6fcf97;
+ --lf-arch-pl-header: rgba(111, 207, 151, 0.22);
+ --lf-arch-pl-panel: rgba(111, 207, 151, 0.1);
+ /* DABS — Option 4 (slate bump) */
+ --lf-arch-dabs: #eb1600;
+ --lf-arch-dabs-bg: rgba(235, 22, 0, 0.2);
+ --lf-arch-dabs-border: #ff5f46;
+}
+
+.lf-arch__svg {
+ display: block;
+ width: 100%;
+ max-width: 840px;
+ height: auto;
+ margin: 0 auto;
+}
+
+.lf-arch__caption {
+ margin: 0.5rem 0 0;
+ font-size: 0.78rem;
+ color: var(--lf-arch-muted);
+}
+
+.lf-arch__title,
+.lf-arch__card-title {
+ font-family: var(--md-text-font, "Roboto"), sans-serif;
+ font-weight: 700;
+ fill: var(--lf-arch-fg);
+}
+
+.lf-arch__card-sub {
+ font-family: var(--md-text-font, "Roboto"), sans-serif;
+ font-weight: 400;
+ fill: var(--lf-arch-muted);
+}
+
+.lf-arch__panel--fw {
+ fill: var(--lf-arch-fw-panel);
+ stroke: none;
+}
+
+.lf-arch__panel--pl {
+ fill: var(--lf-arch-pl-panel);
+ stroke: none;
+}
+
+.lf-arch__panel--dabs {
+ fill: var(--lf-arch-dabs-bg);
+ stroke: none;
+}
+
+/* Outer frames drawn last so header fills never cover the border */
+.lf-arch__frame {
+ fill: none;
+ stroke-width: 2.75;
+ pointer-events: none;
+}
+
+.lf-arch__frame--fw {
+ stroke: var(--lf-arch-fw);
+}
+
+.lf-arch__frame--pl {
+ stroke: var(--lf-arch-pl);
+}
+
+.lf-arch__frame--dabs {
+ stroke: var(--lf-arch-dabs-border, var(--lf-arch-dabs));
+}
+
+.lf-arch__header--fw {
+ fill: var(--lf-arch-fw-header);
+}
+
+.lf-arch__header--pl {
+ fill: var(--lf-arch-pl-header);
+}
+
+.lf-arch__card {
+ fill: var(--lf-arch-card-bg);
+ stroke-width: 2;
+}
+
+.lf-arch__card--fw {
+ stroke: var(--lf-arch-fw);
+}
+
+.lf-arch__card--pl {
+ stroke: var(--lf-arch-pl);
+}
+
+.lf-arch__arrow-line {
+ stroke: var(--lf-arch-fw);
+ stroke-width: 2.5;
+}
+
+.lf-arch__arrow-head {
+ fill: var(--lf-arch-fw);
+ stroke: none;
+}
+
+.lf-arch__icon--fw {
+ stroke: var(--lf-arch-fw);
+ color: var(--lf-arch-fw);
+ fill: none;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+}
+
+.lf-arch__icon--pl {
+ stroke: var(--lf-arch-pl);
+ color: var(--lf-arch-pl);
+ fill: none;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+}
+
+.lf-arch__icon--dabs {
+ stroke: var(--lf-arch-dabs);
+ color: var(--lf-arch-dabs);
+ fill: none;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+}
+
+.lf-arch__icon--layers {
+ stroke-width: 2.4;
+}
+
+.lf-arch__icon--package {
+ stroke-width: 2;
+}
+
+.lf-arch__icon--window,
+.lf-arch__icon--flow,
+.lf-arch__icon--doc {
+ stroke-width: 2;
+}
+
+.lf-arch__icon--gear {
+ stroke-width: 1.85;
+}
+
+.lf-arch__icon-dot {
+ fill: currentColor;
+ stroke: none;
+}
+
+.lf-arch__icon--databricks {
+ fill: var(--lf-arch-dabs);
+ stroke: none;
+}
+
+/* Secondary blurb below hero, above feature cards */
+.md-typeset section:has(> .lf-hero) > p,
+.md-typeset .lf-hero + p {
+ max-width: 46rem;
+ margin: 0 auto 2rem;
+ text-align: center;
+ font-size: 1.05rem;
+ line-height: 1.65;
+ color: var(--md-default-fg-color, #1b3139);
+}
+
+/* Onboarding line — directly above home cards, left-aligned */
+.md-typeset section:has(> .lf-hero) .lf-landing-onboarding,
+.md-typeset .lf-landing-onboarding {
+ max-width: none;
+ margin: 0 0 1.75rem;
+ padding: 0;
+ text-align: left;
+ font-size: 1.05rem;
+ line-height: 1.65;
+ color: var(--md-default-fg-color, #1b3139);
+}
+
+.md-typeset .lf-landing-onboarding > p {
+ margin: 0;
+ max-width: none;
+ text-align: left;
+}
+
+/* Home — Why LFF (positioning) between hero blurb and capability cards */
+.md-typeset section:has(> .lf-hero) > h2,
+.md-typeset .lf-hero ~ h2 {
+ max-width: 46rem;
+ margin: 0 auto 1rem;
+ text-align: center;
+ font-size: 1.5rem;
+}
+
+.md-typeset section:has(> .lf-hero) > h2 ~ p,
+.md-typeset .lf-hero ~ h2 ~ p {
+ max-width: 46rem;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.md-typeset section:has(> .lf-hero) > h2 ~ ul,
+.md-typeset .lf-hero ~ h2 ~ ul {
+ max-width: 46rem;
+ margin: 1rem auto 2rem;
+}
+
+/* Landing page — full-width content column (no sidebar gutter) */
+body:has(.lf-hero) .md-main__inner {
+ display: block;
+ margin-top: 0.75rem;
+}
+
+body:has(.lf-hero) .md-main__inner .md-sidebar[hidden] {
+ display: none !important;
+}
+
+body:has(.lf-hero) .md-content {
+ width: 100%;
+ max-width: none;
+}
+
+body:has(.lf-hero) .md-content__inner {
+ max-width: none;
+ margin: 0 auto;
+ padding: 0 clamp(0.75rem, 2vw, 1.5rem) 2rem;
+}
+
+.lf-feature-grid {
+ display: grid;
+ grid-template-columns: repeat(1, minmax(0, 1fr));
+ gap: 1rem;
+ margin: 0 0 2rem;
+}
+
+/* Features hub category cards — slightly denser than home marketing cards */
+.lf-hub-grid {
+ margin-top: 1.25rem;
+}
+
+.lf-hub-grid .lf-feature-card {
+ padding: 1.25rem;
+}
+
+.lf-hub-grid .lf-feature-card__body {
+ font-size: 0.9rem;
+ line-height: 1.55;
+}
+
+@media (min-width: 48em) {
+ .lf-feature-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+}
+
+@media (min-width: 64em) {
+ .lf-feature-grid {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ }
+}
+
+.lf-feature-card {
+ display: flex;
+ flex-direction: column;
+ margin: 0;
+ padding: 1.5rem;
+ background: #fff;
+ border: 1px solid #e5e5e5;
+ border-top: 3px solid #eb1600;
+ border-radius: 0;
+ box-shadow: none;
+}
+
+.lf-feature-card__header {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ margin: 0 0 0.75rem;
+}
+
+.lf-feature-card__icon {
+ width: 1.25rem;
+ height: 1.25rem;
+ flex-shrink: 0;
+ color: #1b3139;
+}
+
+.lf-feature-card__title {
+ margin: 0;
+ color: #1b3139;
+ font-size: 1rem;
+ font-weight: 700;
+ line-height: 1.35;
+}
+
+.md-typeset .lf-feature-card h3.lf-feature-card__title {
+ margin: 0;
+ color: #1b3139;
+ font-size: 1rem;
+ font-weight: 700;
+ line-height: 1.35;
+}
+
+.lf-feature-card__divider {
+ width: 100%;
+ height: 0;
+ margin: 0 0 1rem;
+ border: none;
+ border-top: 1px solid #e5e5e5;
+}
+
+.lf-feature-card__body {
+ flex: 1;
+ margin: 0 0 1.25rem;
+ color: var(--md-default-fg-color, #1b3139);
+ font-size: 0.95rem;
+ line-height: 1.65;
+}
+
+.md-typeset .lf-feature-card p.lf-feature-card__body {
+ margin: 0 0 1.25rem;
+ font-size: 0.95rem;
+ line-height: 1.65;
+}
+
+.lf-feature-card__link {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ margin-top: auto;
+ color: #eb1600;
+ font-size: 0.9rem;
+ font-weight: 500;
+ text-decoration: none;
+}
+
+.lf-feature-card__link:hover {
+ color: #bd2b26;
+ text-decoration: none;
+}
+
+.lf-feature-card__link-icon {
+ width: 1rem;
+ height: 1rem;
+ flex-shrink: 0;
+}
+
+[data-md-color-scheme="slate"] .lf-feature-card {
+ background: var(--md-default-bg-color, #1e2128);
+ border-color: #3a3f4b;
+ border-top-color: #eb1600;
+}
+
+[data-md-color-scheme="slate"] .lf-feature-card__icon,
+[data-md-color-scheme="slate"] .lf-feature-card__title,
+[data-md-color-scheme="slate"] .md-typeset .lf-feature-card h3.lf-feature-card__title {
+ color: #dce0e2;
+}
+
+[data-md-color-scheme="slate"] .lf-feature-card__divider {
+ border-top-color: #3a3f4b;
+}
+
+.lf-hero-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.75rem;
+ margin-top: 0;
+ justify-content: center;
+}
+
+.lf-hero-actions .lf-hero-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.4rem;
+}
+
+.lf-hero-actions .lf-btn-icon {
+ width: 1.1em;
+ height: 1.1em;
+ flex-shrink: 0;
+}
+
+.lf-hero-actions .lf-btn-icon--after {
+ margin-left: 0.15rem;
+}
+
+.lf-hero-actions .lf-btn-icon--before {
+ margin-right: 0.05rem;
+}
+
+.lf-hero-actions .md-button--primary {
+ background-color: #eb1600;
+ border-color: #eb1600;
+ color: #fff;
+}
+
+.lf-hero-actions .md-button--primary:hover {
+ background-color: #bd2b26;
+ border-color: #bd2b26;
+}
+
+.lf-hero-actions .md-button--secondary {
+ background-color: #fff;
+ border: 1px solid #eb1600;
+ color: #eb1600;
+}
+
+.lf-hero-actions .md-button--secondary:hover {
+ background-color: rgba(235, 22, 0, 0.06);
+ border-color: #bd2b26;
+ color: #bd2b26;
+}
+
+/* Hide duplicate RST section title when landing hero is present */
+.md-typeset section:has(> .lf-hero) > h1,
+.md-content__inner > h1:first-child:has(+ .document .lf-hero),
+.md-content__inner > h1:first-child:has(+ .lf-hero),
+.md-typeset > h1:first-child:has(+ .lf-hero) {
+ display: none;
+}
+
+.md-header {
+ background-color: #eb1600;
+}
+.md-header .md-header__title,
+.md-header .md-header__ellipsis,
+.md-header .md-header__button,
+.md-header .md-icon {
+ color: #fff;
+}
+
+.md-header .md-header__button.md-logo img {
+ height: 1.75rem;
+ width: auto;
+}
+
+.md-header .md-header__button.md-logo svg {
+ display: none;
+}
+
+/*
+ * Header scroll behaviour (toc.follow): keep "Lakeflow Framework" and the
+ * version selector visible. Theme default hides the first .md-header__topic
+ * (where .md-version is injected) when md-header__title--active is set.
+ */
+.md-header__title,
+.md-header__ellipsis,
+.md-header__topic {
+ overflow: visible;
+}
+
+.md-header__title--active .md-header__topic {
+ opacity: 1;
+ pointer-events: auto;
+ transform: none;
+ z-index: 0;
+}
+
+.md-header__title--active .md-header__topic + .md-header__topic {
+ opacity: 0;
+ pointer-events: none;
+ transform: translateX(1.25rem);
+ z-index: -1;
+}
+
+.md-header__title--active .md-version {
+ opacity: 1;
+ pointer-events: auto;
+ visibility: visible;
+}
+
+.md-header__source,
+.md-source,
+.md-source__repository,
+.md-source__fact,
+.md-source__fact--version {
+ color: rgba(255, 255, 255, 0.92) !important;
+}
+
+.md-source__icon,
+.md-source__icon svg {
+ color: #fff !important;
+ fill: currentColor !important;
+}
+
+.md-tabs {
+ background-color: #eb1600;
+ color: #fff;
+}
+
+.md-tabs__list {
+ align-items: center;
+ margin: 0 0 0 0.2rem;
+ padding: 0;
+}
+
+.md-tabs__item {
+ display: flex;
+ align-items: center;
+ height: 2.4rem;
+ padding-left: 0.6rem;
+ padding-right: 0.6rem;
+}
+
+.md-tabs__link {
+ display: flex;
+ align-items: center;
+ height: 100%;
+ margin-top: 0;
+ padding: 0;
+ font-size: 0.7rem;
+ font-weight: 400;
+ line-height: 1.2;
+ box-sizing: border-box;
+}
+
+.md-tabs__link span {
+ display: inline-block;
+ line-height: 1.2;
+ vertical-align: middle;
+}
+
+/* Nav tabs — WAF-style: active bright white, inactive muted */
+.md-tabs__link {
+ color: rgba(255, 255, 255, 0.62) !important;
+ font-weight: 400;
+ opacity: 1 !important;
+ transition: color 0.15s ease;
+}
+
+.md-tabs__link:hover,
+.md-tabs__link:focus {
+ color: rgba(255, 255, 255, 0.82) !important;
+}
+
+.md-tabs__link:visited {
+ color: rgba(255, 255, 255, 0.62) !important;
+}
+
+.md-tabs__item--active .md-tabs__link,
+.md-tabs__link--active {
+ color: #fff !important;
+ font-weight: 400;
+ opacity: 1 !important;
+}
+
+.md-tabs__item--active .md-tabs__link:hover,
+.md-tabs__item--active .md-tabs__link:focus,
+.md-tabs__item--active .md-tabs__link:visited {
+ color: #fff !important;
+}
+
+/* Search dialog — badge-tint input on red header; results use page colors */
+.md-search[data-md-component="search"] .md-search__input {
+ color: var(--md-default-fg-color, #1b3139);
+ background-color: var(--lf-badge-bg);
+ border: 1px solid var(--lf-badge-border);
+}
+
+.md-search[data-md-component="search"] .md-search__input::placeholder {
+ color: rgba(255, 255, 255, 0.72);
+}
+
+.md-search[data-md-component="search"] .md-search__icon {
+ color: rgba(255, 255, 255, 0.85);
+}
+
+.md-search[data-md-component="search"] .md-search-result__meta,
+.md-search[data-md-component="search"] .md-search-result__item {
+ color: var(--md-default-fg-color, #1b3139);
+}
+
+[data-md-color-scheme="slate"] .md-search[data-md-component="search"] .md-search__input {
+ color: #fff;
+ background-color: var(--lf-badge-bg);
+ border-color: var(--lf-badge-border);
+}
+
+[data-md-color-scheme="slate"] .md-search[data-md-component="search"] .md-search__input::placeholder,
+[data-md-color-scheme="slate"] .md-search[data-md-component="search"] .md-search__icon {
+ color: rgba(255, 255, 255, 0.72);
+}
+[data-md-color-scheme="slate"] .md-search[data-md-component="search"] .md-search-result__meta,
+[data-md-color-scheme="slate"] .md-search[data-md-component="search"] .md-search-result__item {
+ color: var(--md-default-fg-color--lighter, #b0bec5);
+}
+
+/* Primary sidebar — WAF-style: grey links, red active, generous row padding */
+.md-nav--primary .md-nav__link[href] {
+ color: var(--md-default-fg-color, #1b3139);
+}
+
+.md-nav--primary .md-nav__link[href]:visited {
+ color: var(--md-default-fg-color, #1b3139);
+}
+
+.md-nav--primary .md-nav__item .md-nav__link--active,
+.md-nav--primary .md-nav__item--active > .md-nav__link.md-nav__link--active {
+ color: var(--md-primary-fg-color, #eb1600);
+}
+
+.md-nav--primary .md-nav__item .md-nav__link--active:visited,
+.md-nav--primary .md-nav__item--active > .md-nav__link.md-nav__link--active:visited {
+ color: var(--md-primary-fg-color, #eb1600);
+}
+
+.md-nav--primary .md-nav__link[href]:hover,
+.md-nav--primary .md-nav__link[href]:focus-visible {
+ color: var(--md-primary-fg-color, #eb1600);
+}
+
+.md-nav--primary .md-nav__title {
+ color: var(--md-default-fg-color, #1b3139);
+ font-weight: 700;
+}
+
+.md-nav--primary .md-nav__link {
+ margin-top: 0;
+ padding: 0.35rem 0.75rem;
+ scroll-snap-align: none;
+}
+
+.md-nav--primary .md-nav__link > .md-nav__link {
+ padding: 0;
+}
+
+/*
+ * Sidebar scroll — use one scroll container (scrollwrap), not nested nav lists.
+ * Lifted tabs pin nested section nav to a 1fr grid row, which clips long lists
+ * (e.g. Features) before the scrollbar reaches the last items.
+ *
+ * Only unlock the level-1 section shell — do NOT force every nested .md-nav to
+ * display:block/height:auto (that leaves collapsed siblings taking vertical
+ * space → large empty gaps between items like Tables & Quality).
+ */
+.md-nav--primary .md-nav__title ~ .md-nav__list {
+ overflow: visible;
+ scroll-snap-type: none;
+ flex: none;
+}
+
+@media screen and (min-width: 76.25em) {
+ .md-header--lifted ~ .md-container .md-sidebar--primary .md-sidebar__scrollwrap {
+ max-height: calc(100vh - 4.8rem - 1rem);
+ margin: 0.5rem 0 1rem;
+ overflow-y: auto;
+ overscroll-behavior: contain;
+ }
+
+ .md-sidebar--primary .md-sidebar__inner {
+ padding-bottom: 2rem;
+ }
+
+ .md-nav--lifted.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav,
+ .md-nav--lifted .md-nav[data-md-level="1"] {
+ position: static;
+ height: auto;
+ display: block;
+ grid-template-rows: none;
+ }
+}
+
+/*
+ * Global primary nav: active-path only, no expand/collapse toggles.
+ *
+ * Nested children show only when an ancestor has .md-nav__item--active.
+ * Do not clip overflow on the active path — the theme draws the red edge as
+ * .md-nav__link--in-viewport::before outside the link (right: 100% + .3rem).
+ */
+.md-nav--primary .md-nav__item--nested > .md-nav__container > label.md-nav__link {
+ display: none !important;
+}
+
+.md-nav--primary .md-nav__item--nested > .md-nav__container > .md-nav__link[href] {
+ width: 100%;
+ margin-right: 0;
+}
+
+/* Hub pages with an in-page TOC render label[for=__toc] + link (no container).
+ * Hide the toggle label so the section title appears once (same as container hubs). */
+.md-nav--primary .md-nav__item--nested > label.md-nav__link[for] {
+ display: none !important;
+}
+
+.md-nav--primary .md-nav__item--nested .md-nav__icon {
+ display: none !important;
+}
+
+.md-nav--primary .md-nav__item--nested > .md-nav__toggle {
+ display: none !important;
+}
+
+.md-nav--primary .md-nav__item:not(.md-nav__item--active) > .md-nav {
+ display: none !important;
+ height: 0 !important;
+ max-height: 0 !important;
+ overflow: hidden !important;
+ visibility: hidden;
+}
+
+.md-nav--primary .md-nav__item--active > .md-nav {
+ display: block !important;
+ height: auto !important;
+ max-height: none !important;
+ overflow: visible !important;
+ visibility: visible !important;
+}
+
+/*
+ * Red edge is theme .md-nav__link--in-viewport::before (in-page scroll spy).
+ * Do not draw it on top-level section/nav links (cross-page hrefs) — only on
+ * in-page TOC anchors (#overview, #configuration, …).
+ */
+.md-nav--primary .md-nav__link--in-viewport:not([href^="#"])::before {
+ content: none !important;
+ display: none !important;
+ width: 0 !important;
+ background: none !important;
+}
+
+/*
+ * Content tables (Option A) — RST list-tables tagged lf-content-table in conf.py.
+ * h1 metadata strips (no thead) are excluded by the build hook.
+ */
+.md-typeset table.lf-content-table {
+ display: table !important;
+ width: 100% !important;
+ max-width: 100% !important;
+ margin: 0 0 1.25rem 0 !important;
+ margin-left: 0 !important;
+ margin-right: auto !important;
+ border-collapse: collapse;
+ table-layout: fixed;
+ font-size: 0.78rem;
+ line-height: 1.5;
+ border: 1px solid rgba(27, 49, 57, 0.12);
+ border-radius: 0.2rem;
+ background-color: var(--md-default-bg-color);
+ overflow-x: auto;
+}
+
+.md-typeset table.lf-content-table > thead > tr > th {
+ background-color: #f4f6f8;
+ color: var(--md-default-fg-color, #1b3139);
+ font-weight: 700;
+ text-align: left;
+ vertical-align: top;
+ padding: 0.55rem 0.85rem;
+ border-bottom: 1px solid rgba(27, 49, 57, 0.14);
+ white-space: normal;
+ word-break: normal;
+}
+
+/* Pattern sample tables from raw HTML (flat tr/th/td, no thead/tbody). */
+.md-typeset table.lf-content-table > tr:first-child > th {
+ background-color: #f4f6f8;
+ color: var(--md-default-fg-color, #1b3139);
+ font-weight: 700;
+ text-align: left;
+ vertical-align: top;
+ padding: 0.55rem 0.85rem;
+ border-bottom: 1px solid rgba(27, 49, 57, 0.14);
+ white-space: normal;
+ word-break: normal;
+}
+
+.md-typeset table.lf-content-table > tbody > tr > td {
+ text-align: left;
+ vertical-align: top;
+ padding: 0.5rem 0.85rem;
+ border-top: 1px solid rgba(27, 49, 57, 0.1);
+ white-space: normal;
+ word-break: normal;
+ overflow-wrap: break-word;
+}
+
+.md-typeset table.lf-content-table > tr:not(:first-child) > td {
+ text-align: left;
+ vertical-align: top;
+ padding: 0.5rem 0.85rem;
+ border-top: 1px solid rgba(27, 49, 57, 0.1);
+ white-space: normal;
+ word-break: normal;
+ overflow-wrap: break-word;
+}
+
+.md-typeset table.lf-content-table > tbody > tr:hover,
+.md-typeset table.lf-content-table > tr:not(:first-child):hover > td {
+ background-color: rgba(27, 49, 57, 0.03);
+}
+
+/* Parameter-style 5-column tables */
+.md-typeset table.lf-table-cols-5 > thead > tr > :nth-child(1),
+.md-typeset table.lf-table-cols-5 > tbody > tr > :nth-child(1) {
+ width: 22%;
+}
+
+.md-typeset table.lf-table-cols-5 > thead > tr > :nth-child(2),
+.md-typeset table.lf-table-cols-5 > tbody > tr > :nth-child(2) {
+ width: 9%;
+}
+
+.md-typeset table.lf-table-cols-5 > thead > tr > :nth-child(3),
+.md-typeset table.lf-table-cols-5 > tbody > tr > :nth-child(3) {
+ width: 9%;
+}
+
+.md-typeset table.lf-table-cols-5 > thead > tr > :nth-child(4),
+.md-typeset table.lf-table-cols-5 > tbody > tr > :nth-child(4) {
+ width: 14%;
+}
+
+.md-typeset table.lf-table-cols-5 > thead > tr > :nth-child(5),
+.md-typeset table.lf-table-cols-5 > tbody > tr > :nth-child(5) {
+ width: 46%;
+}
+
+/* Sphinx basic.css sets span.pre { white-space: nowrap } — force wrap in tables */
+.md-typeset table.lf-content-table > tbody > tr > :nth-child(1) {
+ overflow-wrap: anywhere;
+ word-break: break-word;
+}
+
+.md-typeset table.lf-content-table > tbody > tr > :nth-child(1) p,
+.md-typeset table.lf-content-table > tbody > tr > :nth-child(1) code,
+.md-typeset table.lf-content-table > tbody > tr > :nth-child(1) span.pre {
+ white-space: normal !important;
+ word-break: break-word;
+ overflow-wrap: anywhere;
+}
+
+.md-typeset table.lf-table-cols-5 > thead > tr > :nth-child(2),
+.md-typeset table.lf-table-cols-5 > tbody > tr > :nth-child(2),
+.md-typeset table.lf-table-cols-5 > thead > tr > :nth-child(3),
+.md-typeset table.lf-table-cols-5 > tbody > tr > :nth-child(3) {
+ white-space: nowrap;
+}
+
+.md-typeset table.lf-table-cols-4 > thead > tr > :nth-child(1),
+.md-typeset table.lf-table-cols-4 > tbody > tr > :nth-child(1) {
+ width: 16%;
+}
+
+.md-typeset table.lf-table-cols-4 > thead > tr > :nth-child(2),
+.md-typeset table.lf-table-cols-4 > tbody > tr > :nth-child(2) {
+ width: 14%;
+}
+
+.md-typeset table.lf-table-cols-4 > thead > tr > :nth-child(3),
+.md-typeset table.lf-table-cols-4 > tbody > tr > :nth-child(3) {
+ width: 14%;
+}
+
+.md-typeset table.lf-table-cols-4 > thead > tr > :nth-child(4),
+.md-typeset table.lf-table-cols-4 > tbody > tr > :nth-child(4) {
+ width: 56%;
+}
+
+.md-typeset table.lf-table-cols-3 > thead > tr > :nth-child(1),
+.md-typeset table.lf-table-cols-3 > tbody > tr > :nth-child(1) {
+ width: 20%;
+}
+
+.md-typeset table.lf-table-cols-3 > thead > tr > :nth-child(2),
+.md-typeset table.lf-table-cols-3 > tbody > tr > :nth-child(2) {
+ width: 18%;
+}
+
+.md-typeset table.lf-table-cols-3 > thead > tr > :nth-child(3),
+.md-typeset table.lf-table-cols-3 > tbody > tr > :nth-child(3) {
+ width: 62%;
+}
+
+.md-typeset table.lf-table-cols-2 > thead > tr > :nth-child(1),
+.md-typeset table.lf-table-cols-2 > tbody > tr > :nth-child(1) {
+ width: 28%;
+}
+
+.md-typeset table.lf-table-cols-2 > thead > tr > :nth-child(2),
+.md-typeset table.lf-table-cols-2 > tbody > tr > :nth-child(2) {
+ width: 72%;
+}
+
+.md-typeset table.lf-content-table td p {
+ margin: 0 0 0.35em 0;
+}
+
+.md-typeset table.lf-content-table td p:last-child {
+ margin-bottom: 0;
+}
+
+.md-typeset table.lf-content-table td ul,
+.md-typeset table.lf-content-table td ol {
+ margin: 0.25em 0 0;
+ padding-left: 1.2em;
+}
+
+.md-typeset table.lf-content-table td li {
+ margin: 0;
+ padding: 0;
+}
+
+.md-typeset table.lf-content-table td li p {
+ margin: 0;
+ padding: 0.1em 0;
+}
+
+.md-typeset table.lf-content-table tr.highlight-row td,
+.md-typeset .highlight-cell {
+ background-color: green !important;
+ color: white !important;
+}
+
+[data-md-color-scheme="slate"] .md-typeset table.lf-content-table {
+ border-color: rgba(255, 255, 255, 0.12);
+}
+
+[data-md-color-scheme="slate"] .md-typeset table.lf-content-table > thead > tr > th {
+ background-color: rgba(255, 255, 255, 0.06);
+}
+
+[data-md-color-scheme="slate"] .md-typeset table.lf-content-table > tr:first-child > th {
+ background-color: rgba(255, 255, 255, 0.06);
+}
+
+[data-md-color-scheme="slate"] .md-typeset table.lf-content-table > tbody > tr > td {
+ border-top-color: rgba(255, 255, 255, 0.1);
+}
+
+[data-md-color-scheme="slate"] .md-typeset table.lf-content-table > tr:not(:first-child) > td {
+ border-top-color: rgba(255, 255, 255, 0.1);
+}
+
+/*
+ * Feature metadata table (Applies To / Configuration Scope / Databricks Docs).
+ * Minimal definition rows + soft brand badges (Databricks red tint, square corners).
+ */
+.md-typeset section > h1 + table.docutils {
+ display: table;
+ width: fit-content;
+ max-width: 100%;
+ margin: 0 0 1.35rem 0;
+ border-collapse: separate;
+ border-spacing: 0;
+ font-size: 0.72rem;
+ line-height: 1.45;
+ background: none;
+ border: none;
+ border-radius: 0;
+ border-bottom: 1px solid rgba(27, 49, 57, 0.12);
+ padding-bottom: 0.75rem;
+ overflow: visible;
+}
+
+.md-typeset section > h1 + table.docutils td {
+ text-align: left !important;
+ vertical-align: top;
+ padding: 0.45rem 0;
+ border: none;
+ background: transparent;
+}
+
+.md-typeset section > h1 + table.docutils tr + tr td {
+ border-top: 1px solid rgba(27, 49, 57, 0.1);
+}
+
+.md-typeset section > h1 + table.docutils td:first-child {
+ width: 1%;
+ white-space: nowrap;
+ color: var(--md-default-fg-color--light, #526770);
+ font-weight: 500;
+ border-right: none;
+ padding-right: 1.5rem;
+ vertical-align: top;
+}
+
+.md-typeset section > h1 + table.docutils td p {
+ margin: 0;
+ text-align: left;
+}
+
+.md-typeset section > h1 + table.docutils td ul {
+ margin: 0;
+ padding-left: 1.15em;
+}
+
+.md-typeset section > h1 + table.docutils td li {
+ margin: 0;
+ padding: 0;
+}
+
+.md-typeset section > h1 + table.docutils td li p {
+ margin: 0;
+ padding: 0.05em 0;
+}
+
+[data-md-color-scheme="slate"] .md-typeset section > h1 + table.docutils {
+ border-bottom-color: rgba(255, 255, 255, 0.12);
+}
+
+[data-md-color-scheme="slate"] .md-typeset section > h1 + table.docutils tr + tr td {
+ border-top-color: rgba(255, 255, 255, 0.1);
+}
+
+/* Soft brand badges — overrides solid Bootstrap info/success; RST :bdg-* unchanged */
+.md-typeset .sd-badge.sd-bg-info,
+.md-typeset .sd-badge.sd-bg-success {
+ background-color: var(--lf-badge-bg) !important;
+ color: var(--lf-badge-fg) !important;
+ border: 1px solid var(--lf-badge-border);
+ border-radius: 0.15rem;
+ font-weight: 600;
+ padding: 0.28em 0.55em;
+}
+
+[data-md-color-scheme="slate"] .md-typeset .sd-badge.sd-bg-info,
+[data-md-color-scheme="slate"] .md-typeset .sd-badge.sd-bg-success {
+ background-color: var(--lf-badge-bg) !important;
+ color: var(--lf-badge-fg) !important;
+ border-color: var(--lf-badge-border);
+}
+
+/* Fenced / highlighted code blocks - Cursor editor panel */
+.md-typeset div[class*="highlight-"].notranslate {
+ display: block;
+ width: 100%;
+ margin: 0.75em 0;
+ border-radius: 0.375rem;
+ overflow: hidden;
+ background-color: #1a1a1a;
+}
+
+.md-typeset div[class*="highlight-"].notranslate .highlight {
+ background-color: #1a1a1a !important;
+ margin: 0;
+}
+
+/* Beat pygments.css default white background */
+.md-typeset div[class*="highlight-"] .highlight {
+ background: #1a1a1a !important;
+}
+
+.md-typeset div[class*="highlight-"] .highlight,
+.md-typeset div[class*="highlight-"] .highlighttable,
+.md-typeset .highlighttable .code {
+ --lf-code-font-size: 0.62rem;
+ --md-code-bg-color: #1a1a1a;
+ --md-code-fg-color: #d4d4d4;
+ --md-code-hl-keyword-color: #9cdcfe;
+ --md-code-hl-string-color: #ce5cce;
+ --md-code-hl-number-color: #b5cea8;
+ --md-code-hl-special-color: #ce5cce;
+ --md-code-hl-function-color: #dcdcaa;
+ --md-code-hl-constant-color: #d4d4d4;
+ --md-code-hl-name-color: #d4d4d4;
+ --md-code-hl-operator-color: #d4d4d4;
+ --md-code-hl-punctuation-color: #ffd700;
+ --md-code-hl-comment-color: #6a9955;
+ --md-code-hl-generic-color: #858585;
+ --md-code-hl-variable-color: #9cdcfe;
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
+ font-size: var(--lf-code-font-size);
+ line-height: 1.35;
+ background-color: #1a1a1a !important;
+}
+
+.md-typeset .highlight .highlighttable {
+ display: flow-root;
+ width: 100%;
+ margin: 0;
+ border: none;
+ border-radius: 0;
+ background-color: #1a1a1a;
+}
+
+.md-typeset .highlight .highlighttable tbody,
+.md-typeset .highlight .highlighttable tr {
+ display: flex;
+ flex-direction: row;
+ width: 100%;
+}
+
+.md-typeset .highlight .highlighttable td {
+ display: block;
+ padding: 0;
+ border: none;
+ vertical-align: top;
+}
+
+.md-typeset .highlight .highlighttable td.linenos {
+ flex: 0 0 auto;
+ min-width: 2.75em;
+ background-color: #1a1a1a;
+ border-right: 1px solid #2d2d2d;
+ padding: 0.5em 0.55em 0.5em 0.65em;
+ user-select: none;
+ text-align: right;
+}
+
+.md-typeset .highlight .highlighttable td.linenos pre,
+.md-typeset .highlight .highlighttable td.linenos .linenodiv pre {
+ margin: 0;
+ padding: 0;
+ background: transparent;
+ color: #6e7681;
+ font-size: var(--lf-code-font-size, 0.62rem);
+ line-height: 1.35;
+ font-family: inherit;
+}
+
+.md-typeset .highlight .highlighttable td.linenos .normal {
+ color: #6e7681;
+}
+
+.md-typeset .highlight .highlighttable td.code {
+ flex: 1 1 auto;
+ min-width: 0;
+ overflow-x: auto;
+}
+
+.md-typeset .highlight .highlighttable td.code pre {
+ margin: 0;
+ padding: 0.5em 0.75em;
+ background: transparent;
+ color: #d4d4d4;
+ font-size: var(--lf-code-font-size, 0.62rem);
+ line-height: 1.35;
+ font-family: inherit;
+}
+
+.md-typeset div[class*="highlight-"] pre,
+.md-typeset div[class*="highlight-"] .highlight pre {
+ margin: 0;
+ padding: 0.5em 0.75em;
+ font-size: var(--lf-code-font-size, 0.62rem);
+ line-height: 1.35;
+ background-color: #1a1a1a;
+ color: #d4d4d4;
+ font-family: inherit;
+}
+
+.md-typeset div[class*="highlight-"] pre span,
+.md-typeset .highlighttable td.code pre span {
+ font-size: inherit;
+ line-height: inherit;
+ font-family: inherit;
+}
+
+.md-typeset pre > code {
+ font-size: inherit;
+ padding: 0.5em 0.75em;
+ background-color: transparent;
+ color: inherit;
+ font-family: inherit;
+}
+
+.md-typeset div[class*="highlight-"] [data-linenos]:before {
+ color: #6e7681 !important;
+ box-shadow: inset -1px 0 #2d2d2d !important;
+ background-color: #1a1a1a !important;
+ font-size: var(--lf-code-font-size, 0.62rem);
+}
+
+.md-typeset div[class*="highlight-"] .highlight .nt,
+.md-typeset .highlighttable .highlight .nt {
+ color: #9cdcfe;
+}
+
+.md-typeset div[class*="highlight-"] .highlight .s2,
+.md-typeset div[class*="highlight-"] .highlight .s1,
+.md-typeset div[class*="highlight-"] .highlight .ss,
+.md-typeset .highlighttable .highlight .s2,
+.md-typeset .highlighttable .highlight .s1,
+.md-typeset .highlighttable .highlight .ss {
+ color: #ce5cce;
+}
+
+.md-typeset div[class*="highlight-"] .highlight .kc,
+.md-typeset .highlighttable .highlight .kc {
+ color: #d4d4d4;
+}
+
+.md-typeset div[class*="highlight-"] .highlight .mi,
+.md-typeset div[class*="highlight-"] .highlight .mf,
+.md-typeset .highlighttable .highlight .mi,
+.md-typeset .highlighttable .highlight .mf {
+ color: #b5cea8;
+}
+
+.md-typeset div[class*="highlight-"] .highlight .p,
+.md-typeset .highlighttable .highlight .p {
+ color: #ffd700;
+}
+
+.md-typeset div[class*="highlight-"] .highlight .w,
+.md-typeset .highlighttable .highlight .w {
+ color: transparent;
+}
+
+.md-typeset .highlight span.filename {
+ font-size: 0.62rem;
+ background-color: #252526;
+ color: #cccccc;
+ border-bottom-color: #2d2d2d;
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
+}
+
+/*
+ * Command snippets (Quick Start) — WAF / MkDocs Material-style light panels.
+ * Scoped via .lf-command-block on the code block (explicit in RST/MD):
+ * RST: .. code-block:: console
+ * :class: lf-command-block
+ * MyST: ```{code-block} console
+ * :class: lf-command-block
+ * Dark Cursor panels stay default elsewhere.
+ */
+.md-typeset div.lf-command-block[class*="highlight-"].notranslate {
+ display: block;
+ width: 100%;
+ margin: 0.35em 0 0.5em;
+ padding: 0;
+ border: none;
+ border-radius: 0.2rem;
+ overflow: hidden;
+ background-color: var(--lf-command-bg);
+ box-shadow: none;
+}
+
+.md-typeset ol li div.lf-command-block[class*="highlight-"].notranslate,
+.md-typeset ul li div.lf-command-block[class*="highlight-"].notranslate {
+ margin-top: 0.25em;
+}
+
+.md-typeset div.lf-command-block[class*="highlight-"].notranslate .highlight,
+.md-typeset div.lf-command-block .highlighttable,
+.md-typeset div.lf-command-block .highlighttable .code {
+ --lf-command-font-size: 0.75rem;
+ --md-code-bg-color: var(--lf-command-bg);
+ --md-code-fg-color: var(--lf-command-fg);
+ background-color: var(--lf-command-bg) !important;
+ font-family: var(--md-code-font, "Roboto Mono"), ui-monospace, SFMono-Regular, Menlo, Monaco,
+ Consolas, monospace;
+ font-size: var(--lf-command-font-size);
+ line-height: 1.4;
+}
+
+.md-typeset div.lf-command-block .highlight .highlighttable {
+ display: block;
+ width: 100%;
+ margin: 0;
+ border: none;
+ border-radius: 0;
+ background-color: var(--lf-command-bg);
+}
+
+.md-typeset div.lf-command-block .highlight .highlighttable tbody,
+.md-typeset div.lf-command-block .highlight .highlighttable tr {
+ display: block;
+ width: 100%;
+}
+
+.md-typeset div.lf-command-block .highlight .highlighttable td.linenos {
+ display: none !important;
+}
+
+.md-typeset div.lf-command-block .highlight .highlighttable td.code {
+ display: block;
+ width: 100%;
+ overflow-x: auto;
+}
+
+.md-typeset div.lf-command-block pre,
+.md-typeset div.lf-command-block .highlight pre,
+.md-typeset div.lf-command-block .highlight .go,
+.md-typeset div.lf-command-block .highlight span {
+ margin: 0;
+ padding: 0;
+ background: transparent !important;
+ color: var(--lf-command-fg) !important;
+ font-size: var(--lf-command-font-size, 0.75rem);
+ line-height: 1.4;
+ font-family: inherit;
+ font-weight: 400;
+ white-space: pre;
+}
+
+.md-typeset div.lf-command-block pre,
+.md-typeset div.lf-command-block .highlight pre {
+ padding: 0.55em 0.75em;
+}
+
+.md-typeset div.lf-command-block .highlight {
+ position: relative;
+ margin: 0;
+ background: var(--lf-command-bg) !important;
+ border: none;
+ box-shadow: none;
+}
+
+/* One copy control — hide immaterial duplicate on command snippets */
+.md-typeset div.lf-command-block .md-clipboard {
+ display: none !important;
+}
+
+/* Copy button — WAF-style: borderless icon, always visible */
+.md-typeset div.lf-command-block .highlight button.copybtn {
+ opacity: 0.65;
+ top: 0.3em;
+ right: 0.3em;
+ width: 1.5em;
+ height: 1.5em;
+ padding: 0;
+ border: none;
+ border-radius: 0.2rem;
+ background-color: transparent;
+ color: var(--lf-command-copy);
+ box-shadow: none;
+ transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
+}
+
+.md-typeset div.lf-command-block .highlight:hover button.copybtn {
+ opacity: 0.85;
+}
+
+.md-typeset div.lf-command-block .highlight button.copybtn:hover {
+ opacity: 1;
+ background-color: var(--lf-command-copy-hover-bg);
+ color: var(--lf-command-copy-hover-fg);
+}
+
+.md-typeset div.lf-command-block .highlight button.copybtn.success {
+ opacity: 1;
+ background-color: transparent;
+ border: none;
+ color: var(--md-primary-fg-color, #eb1600);
+}
+
+/* Task lists — WAF-style prerequisite checkboxes (Quick Start) */
+.md-typeset ul.contains-task-list {
+ margin-left: 0;
+ padding-left: 0;
+ list-style: none;
+}
+
+.md-typeset .task-list-item {
+ margin-left: 0;
+ padding-left: 0;
+ list-style-type: none;
+}
+
+.md-typeset .task-list-item-checkbox {
+ accent-color: var(--md-primary-fg-color, #eb1600);
+ margin-right: 0.5rem;
+ vertical-align: middle;
+}
+
+/* Sphinx-tabs — compact sizing + Databricks colour scheme */
+.md-typeset .sphinx-tabs {
+ margin-bottom: 0.75rem;
+}
+
+.md-typeset [role="tablist"] {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.125rem;
+ align-items: flex-end;
+ border-bottom: 1px solid var(--lf-tabs-divider);
+}
+
+.md-typeset .sphinx-tabs-tab {
+ font-size: 0.75rem;
+ line-height: 1.25;
+ padding: 0.35rem 0.75rem;
+ border-radius: 4px 4px 0 0;
+ color: var(--lf-tabs-inactive-fg);
+ background-color: var(--lf-tabs-inactive-bg);
+ border: 1px solid var(--lf-tabs-border);
+ border-bottom: none;
+ font-weight: 500;
+ transition: color 0.15s ease, background-color 0.15s ease;
+}
+
+.md-typeset .sphinx-tabs-tab:hover {
+ color: var(--md-primary-fg-color--dark, #bd2b26);
+}
+
+.md-typeset .sphinx-tabs-tab[aria-selected="true"] {
+ margin: 0;
+ color: var(--lf-tabs-active-fg);
+ background-color: var(--lf-tabs-active-bg);
+ border-color: var(--lf-tabs-border);
+ border-bottom: 2px solid var(--lf-tabs-active-indicator);
+ font-weight: 600;
+}
+
+.md-typeset .sphinx-tabs-tab:focus-visible {
+ outline: 2px solid var(--md-primary-fg-color);
+ outline-offset: 1px;
+ z-index: 1;
+}
+
+.md-typeset .sphinx-tabs-panel {
+ padding: 0;
+ margin: 0;
+ border: 1px solid var(--lf-tabs-border);
+ border-top: none;
+ border-radius: 0 0 4px 4px;
+ background: #1a1a1a;
+ overflow: hidden;
+}
+
+.md-typeset .sphinx-tabs-panel.code-tab {
+ padding: 0;
+}
+
+/* Code blocks inside tabs — flush with panel, no outer gutter */
+.md-typeset .sphinx-tabs-panel div[class*="highlight-"].notranslate {
+ margin: 0;
+ border-radius: 0;
+ width: 100%;
+}
+
+.md-typeset .sphinx-tabs-panel div[class*="highlight-"].notranslate .highlight,
+.md-typeset .sphinx-tabs-panel .highlighttable {
+ border-radius: 0;
+}
+
+/*
+ * Version selector: open on click/focus, not hover.
+ *
+ * With navigation.tabs.sticky the tab bar is rendered inside .md-header as a
+ * sibling of .md-header__inner. Theme CSS sets .md-tabs { z-index: 3 } while
+ * the inner bar stays at auto, so the dropdown list paints behind tab labels.
+ */
+.md-header--lifted:has(.md-version:focus-within) .md-header__inner {
+ position: relative;
+ z-index: 4;
+}
+
+.md-header .md-version {
+ position: relative;
+}
+
+.md-header .md-version__list {
+ z-index: 1;
+}
+
+.md-header .md-version:hover .md-version__list {
+ max-height: 0;
+ opacity: 0;
+ animation: none;
+}
+
+.md-header .md-version:focus-within .md-version__list {
+ max-height: 18rem;
+ opacity: 1;
+ overflow: auto;
+ animation: none;
+}
+
+/* Dropdown links — beat theme accent + browser :visited purple in dark mode */
+.md-header .md-version__link {
+ color: var(--md-default-fg-color);
+}
+
+.md-header .md-version__link:visited {
+ color: var(--md-default-fg-color);
+}
+
+.md-header .md-version__link:hover,
+.md-header .md-version__link:focus {
+ color: var(--md-primary-fg-color, #eb1600);
+ background-color: var(--md-default-fg-color--lightest);
+}
+
+.md-header .md-version__link:visited:hover,
+.md-header .md-version__link:visited:focus {
+ color: var(--md-primary-fg-color, #eb1600);
+}
+
+[data-md-color-scheme="slate"] .md-header .md-version__link:hover,
+[data-md-color-scheme="slate"] .md-header .md-version__link:focus,
+[data-md-color-scheme="slate"] .md-header .md-version__link:visited:hover,
+[data-md-color-scheme="slate"] .md-header .md-version__link:visited:focus {
+ color: var(--md-primary-fg-color--light, #ff5f46);
+}
+
+/* Mermaid — lf-arch palette (matches home-page architecture diagram) */
+.md-typeset .mermaid-diagram,
+.lf-mermaid,
+.lf-mermaid-shell,
+.lf-mermaid-dialog__canvas {
+ --lf-mermaid-fg: #1b3139;
+ --lf-mermaid-muted: #445861;
+ --lf-mermaid-card-bg: #ffffff;
+ --lf-mermaid-fw: #2b7bb9;
+ --lf-mermaid-fw-header: #e6f2f8;
+ --lf-mermaid-fw-panel: #f3f9fc;
+ --lf-mermaid-edge: var(--lf-mermaid-fw);
+}
+
+[data-md-color-scheme="slate"] .md-typeset .mermaid-diagram,
+[data-md-color-scheme="slate"] .lf-mermaid,
+[data-md-color-scheme="slate"] .lf-mermaid-shell,
+[data-md-color-scheme="slate"] .lf-mermaid-dialog__canvas {
+ --lf-mermaid-fg: #e8eef0;
+ --lf-mermaid-muted: #b0bec3;
+ --lf-mermaid-card-bg: #1e2629;
+ --lf-mermaid-fw: #5dade2;
+ --lf-mermaid-fw-header: rgba(93, 173, 226, 0.22);
+ --lf-mermaid-fw-panel: rgba(93, 173, 226, 0.1);
+ --lf-mermaid-edge: var(--lf-mermaid-fw);
+}
+
+/* Hide raw source until our renderer produces the SVG */
+.md-typeset .mermaid-diagram > pre.lf-mermaid-src,
+.md-typeset .mermaid-diagram > pre.mermaid {
+ overflow: hidden;
+ visibility: hidden;
+ height: 0;
+ margin: 0;
+ padding: 0;
+ border: 0;
+}
+
+.md-typeset .mermaid-diagram:has(> pre.lf-mermaid-src):not(:has(> .lf-mermaid-rendered)),
+.md-typeset .mermaid-diagram:has(> pre.mermaid):not(:has(> div.mermaid)):not(:has(> .lf-mermaid-rendered)) {
+ min-height: 4rem;
+ margin: 1rem 0 1.25rem;
+ border: 2px solid var(--lf-mermaid-fw, #2b7bb9);
+ border-radius: 12px;
+ background: var(--lf-mermaid-fw-panel, #f3f9fc);
+}
+
+.md-typeset .mermaid-diagram:has(> pre.lf-mermaid-src):not(:has(> .lf-mermaid-rendered))::before,
+.md-typeset .mermaid-diagram:has(> pre.mermaid):not(:has(> div.mermaid)):not(:has(> .lf-mermaid-rendered))::before {
+ content: "Loading diagram…";
+ display: block;
+ padding: 1rem 1.1rem;
+ color: var(--lf-mermaid-muted, rgba(27, 49, 57, 0.55));
+ font-size: 0.82rem;
+}
+
+.md-typeset .mermaid-diagram > .lf-mermaid-rendered,
+.md-typeset .mermaid-diagram > div.mermaid {
+ display: block;
+ min-width: min(100%, 48rem);
+}
+
+.md-typeset .lf-mermaid-rendered svg.lf-mermaid-svg {
+ display: block;
+ max-width: none;
+ height: auto;
+ margin: 0 auto;
+}
+
+/* lf-arch SVG shapes — document stylesheet (inherits CSS vars from .mermaid-diagram) */
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .node rect,
+.lf-mermaid svg.lf-mermaid-svg .node rect,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .node polygon,
+.lf-mermaid svg.lf-mermaid-svg .node polygon,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .node path,
+.lf-mermaid svg.lf-mermaid-svg .node path,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .node circle,
+.lf-mermaid svg.lf-mermaid-svg .node circle,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .node ellipse,
+.lf-mermaid svg.lf-mermaid-svg .node ellipse {
+ fill: var(--lf-mermaid-card-bg) !important;
+ stroke: var(--lf-mermaid-fw) !important;
+ stroke-width: 2px !important;
+}
+
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .edgePath .path,
+.lf-mermaid svg.lf-mermaid-svg .edgePath .path,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .flowchart-link,
+.lf-mermaid svg.lf-mermaid-svg .flowchart-link {
+ stroke: var(--lf-mermaid-edge) !important;
+ stroke-width: 2px !important;
+}
+
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .edgePath .arrowheadPath,
+.lf-mermaid svg.lf-mermaid-svg .edgePath .arrowheadPath,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg marker path,
+.lf-mermaid svg.lf-mermaid-svg marker path,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg marker polygon,
+.lf-mermaid svg.lf-mermaid-svg marker polygon {
+ fill: var(--lf-mermaid-edge) !important;
+ stroke: none !important;
+}
+
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .cluster rect,
+.lf-mermaid svg.lf-mermaid-svg .cluster rect {
+ fill: var(--lf-mermaid-fw-panel) !important;
+ stroke: var(--lf-mermaid-fw) !important;
+ stroke-width: 2.75px !important;
+}
+
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .label,
+.lf-mermaid svg.lf-mermaid-svg .label,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .nodeLabel,
+.lf-mermaid svg.lf-mermaid-svg .nodeLabel,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .label div,
+.lf-mermaid svg.lf-mermaid-svg .label div,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .nodeLabel p,
+.lf-mermaid svg.lf-mermaid-svg .nodeLabel p {
+ color: var(--lf-mermaid-fg) !important;
+ fill: var(--lf-mermaid-fg) !important;
+}
+
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .edgeLabel,
+.lf-mermaid svg.lf-mermaid-svg .edgeLabel,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .edgeLabel p,
+.lf-mermaid svg.lf-mermaid-svg .edgeLabel p {
+ color: var(--lf-mermaid-muted) !important;
+ fill: var(--lf-mermaid-muted) !important;
+}
+
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .cluster-label,
+.lf-mermaid svg.lf-mermaid-svg .cluster-label,
+.md-typeset .mermaid-diagram svg.lf-mermaid-svg .cluster .label span,
+.lf-mermaid svg.lf-mermaid-svg .cluster .label span {
+ color: var(--lf-mermaid-fg) !important;
+ fill: var(--lf-mermaid-fg) !important;
+ font-weight: 700 !important;
+}
+
+/* Mermaid — scrollable inline + click-to-expand modal */
+.md-typeset .lf-mermaid-shell {
+ margin: 1rem 0 1.25rem;
+ border: 2px solid var(--lf-mermaid-fw);
+ border-radius: 12px;
+ background: var(--lf-mermaid-fw-panel);
+ overflow: auto;
+ max-width: 100%;
+ cursor: zoom-in;
+}
+
+.md-typeset .lf-mermaid-shell .lf-mermaid-rendered,
+.md-typeset .lf-mermaid-shell .mermaid {
+ display: block;
+ min-width: min(100%, 48rem);
+ padding: 0.75rem 1rem 0.25rem;
+}
+
+.md-typeset .lf-mermaid-shell .lf-mermaid-rendered svg,
+.md-typeset .lf-mermaid-shell .mermaid svg {
+ display: block;
+ max-width: none;
+ height: auto;
+ margin: 0 auto;
+}
+
+.md-typeset .lf-mermaid-hint {
+ margin: 0;
+ padding: 0.45rem 0.85rem;
+ border-top: 1px solid rgba(27, 49, 57, 0.1);
+ color: rgba(27, 49, 57, 0.62);
+ font-size: 0.72rem;
+ line-height: 1.35;
+ cursor: default;
+}
+
+.lf-mermaid-dialog {
+ width: min(96vw, 72rem);
+ max-width: 96vw;
+ max-height: 92vh;
+ padding: 0;
+ border: 1px solid rgba(27, 49, 57, 0.18);
+ border-radius: 10px;
+ box-shadow: 0 18px 48px rgba(27, 49, 57, 0.22);
+}
+
+.lf-mermaid-dialog::backdrop {
+ background: rgba(15, 23, 28, 0.55);
+}
+
+.lf-mermaid-dialog__header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 0.75rem;
+ padding: 0.65rem 0.85rem;
+ border-bottom: 1px solid rgba(27, 49, 57, 0.12);
+ background: rgba(27, 49, 57, 0.03);
+}
+
+.lf-mermaid-dialog__title {
+ font-size: 0.82rem;
+ font-weight: 600;
+ color: var(--md-default-fg-color, #1b3139);
+}
+
+.lf-mermaid-dialog__tools {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.35rem;
+}
+
+.lf-mermaid-dialog__btn {
+ border: 1px solid rgba(27, 49, 57, 0.18);
+ border-radius: 6px;
+ background: #fff;
+ color: var(--md-default-fg-color, #1b3139);
+ font-size: 0.78rem;
+ line-height: 1;
+ padding: 0.35rem 0.55rem;
+ cursor: pointer;
+}
+
+.lf-mermaid-dialog__btn:hover {
+ background: rgba(27, 49, 57, 0.05);
+}
+
+.lf-mermaid-dialog__stage {
+ overflow: hidden;
+ height: min(68vh, 44rem);
+ background: #fff;
+ touch-action: none;
+}
+
+.lf-mermaid-dialog__stage--dragging {
+ cursor: grabbing;
+}
+
+.lf-mermaid-dialog__canvas {
+ transform-origin: top left;
+ padding: 1rem;
+ cursor: grab;
+}
+
+.lf-mermaid-dialog__loading {
+ margin: 0;
+ padding: 1.5rem;
+ color: rgba(27, 49, 57, 0.62);
+ font-size: 0.82rem;
+}
+
+.lf-mermaid-dialog__hint {
+ margin: 0;
+ padding: 0.45rem 0.85rem 0.65rem;
+ color: rgba(27, 49, 57, 0.62);
+ font-size: 0.72rem;
+}
+
+[data-md-color-scheme="slate"] .md-typeset .mermaid-diagram:has(> pre.lf-mermaid-src):not(:has(> .lf-mermaid-rendered)),
+[data-md-color-scheme="slate"] .md-typeset .mermaid-diagram:has(> pre.mermaid):not(:has(> div.mermaid)):not(:has(> .lf-mermaid-rendered)) {
+ border-color: var(--lf-mermaid-fw);
+ background: var(--lf-mermaid-fw-panel);
+}
+
+[data-md-color-scheme="slate"] .md-typeset .lf-mermaid-shell {
+ border-color: var(--lf-mermaid-fw);
+ background: var(--lf-mermaid-fw-panel);
+}
+
+[data-md-color-scheme="slate"] .md-typeset .lf-mermaid-hint,
+[data-md-color-scheme="slate"] .lf-mermaid-dialog__hint {
+ color: rgba(255, 255, 255, 0.62);
+}
+
+[data-md-color-scheme="slate"] .lf-mermaid-dialog__btn {
+ background: rgba(255, 255, 255, 0.06);
+ border-color: rgba(255, 255, 255, 0.18);
+ color: var(--md-default-fg-color, #fff);
+}
+
+[data-md-color-scheme="slate"] .lf-mermaid-dialog__stage {
+ background: var(--md-default-bg-color, #1b3139);
+}
diff --git a/docs/source/_static/lff-logo.png b/docs/source/_static/lff-logo.png
new file mode 100644
index 0000000..04c064b
Binary files /dev/null and b/docs/source/_static/lff-logo.png differ
diff --git a/docs/source/_static/mermaid-zoom.js b/docs/source/_static/mermaid-zoom.js
new file mode 100644
index 0000000..6e79b91
--- /dev/null
+++ b/docs/source/_static/mermaid-zoom.js
@@ -0,0 +1,562 @@
+/**
+ * Lakeflow Mermaid: lf-arch styling, inline render (no shadow DOM), click-to-expand modal.
+ *
+ * Diagram source lives in a sibling (build time).
+ * Pre tags use class lf-mermaid-src so sphinx-immaterial does not intercept them.
+ */
+(function () {
+ "use strict";
+
+ const ENHANCED_ATTR = "data-lf-mermaid-enhanced";
+ const RENDERED_ATTR = "data-lf-mermaid-rendered";
+ const PENDING_ATTR = "data-lf-mermaid-pending";
+ const RENDERING_ATTR = "data-lf-mermaid-rendering";
+
+ let mermaidReadyPromise = null;
+ let renderCounter = 0;
+ let activeColorScheme = null;
+
+ const LF_MERMAID_THEME_CSS =
+ ".lf-mermaid-svg .node circle,.lf-mermaid-svg .node ellipse,.lf-mermaid-svg .node path," +
+ ".lf-mermaid-svg .node polygon,.lf-mermaid-svg .node rect{" +
+ "fill:var(--lf-mermaid-card-bg)!important;stroke:var(--lf-mermaid-fw)!important;" +
+ "stroke-width:2px!important;rx:8px;ry:8px}" +
+ ".lf-mermaid-svg .label,.lf-mermaid-svg .label span,.lf-mermaid-svg .nodeLabel," +
+ ".lf-mermaid-svg .nodeLabel p,.lf-mermaid-svg .label div{color:var(--lf-mermaid-fg)!important;" +
+ "fill:var(--lf-mermaid-fg)!important;font-family:var(--md-text-font,'Roboto'),sans-serif}" +
+ ".lf-mermaid-svg .label div .edgeLabel{color:var(--lf-mermaid-muted)!important;" +
+ "fill:var(--lf-mermaid-muted)!important;font-size:0.82em}" +
+ ".lf-mermaid-svg .edgeLabel,.lf-mermaid-svg .edgeLabel p{" +
+ "fill:var(--lf-mermaid-card-bg)!important;color:var(--lf-mermaid-muted)!important;" +
+ "background-color:var(--lf-mermaid-card-bg)!important}" +
+ ".lf-mermaid-svg .edgeLabel rect{fill:var(--lf-mermaid-card-bg)!important;stroke:none!important}" +
+ ".lf-mermaid-svg .edgePath .path,.lf-mermaid-svg .flowchart-link{" +
+ "stroke:var(--lf-mermaid-edge)!important;stroke-width:2px!important}" +
+ ".lf-mermaid-svg .edgePath .arrowheadPath,.lf-mermaid-svg marker path," +
+ ".lf-mermaid-svg marker polygon{fill:var(--lf-mermaid-edge)!important;stroke:none!important}" +
+ ".lf-mermaid-svg .cluster rect{" +
+ "fill:var(--lf-mermaid-fw-panel)!important;stroke:var(--lf-mermaid-fw)!important;" +
+ "stroke-width:2.75px!important;rx:12px;ry:12px}" +
+ ".lf-mermaid-svg .cluster-label,.lf-mermaid-svg .cluster-label span," +
+ ".lf-mermaid-svg .cluster .label text,.lf-mermaid-svg .cluster .label span{" +
+ "fill:var(--lf-mermaid-fg)!important;color:var(--lf-mermaid-fg)!important;" +
+ "font-weight:700!important;font-family:var(--md-text-font,'Roboto'),sans-serif}";
+
+ function getColorScheme() {
+ const scheme = document.body.getAttribute("data-md-color-scheme");
+ return scheme === "slate" ? "slate" : "default";
+ }
+
+ function getMermaidSource(container) {
+ const template = container.querySelector("template.lf-mermaid-source");
+ if (template) {
+ return template.content.textContent.trim();
+ }
+ const pre = container.querySelector("pre.lf-mermaid-src, pre.mermaid");
+ if (pre) {
+ return pre.textContent.trim();
+ }
+ return (container.dataset.lfMermaidSource || "").trim();
+ }
+
+ function getMermaidScriptUrl() {
+ const configEl = document.getElementById("__config");
+ let basePath = ".";
+ if (configEl) {
+ try {
+ basePath = JSON.parse(configEl.textContent).base || ".";
+ } catch (_err) {
+ /* ignore */
+ }
+ }
+ const normalized = basePath.endsWith("/") ? basePath : basePath + "/";
+ return new URL(normalized + "_static/mermaid/mermaid.min.js", window.location.href).href;
+ }
+
+ function loadMermaidScript() {
+ return new Promise(function (resolve, reject) {
+ if (typeof window.mermaid !== "undefined") {
+ resolve();
+ return;
+ }
+ const existing = document.querySelector('script[data-lf-mermaid-loader="true"]');
+ if (existing) {
+ existing.addEventListener("load", function () { resolve(); }, { once: true });
+ existing.addEventListener("error", reject, { once: true });
+ return;
+ }
+ const script = document.createElement("script");
+ script.src = getMermaidScriptUrl();
+ script.async = true;
+ script.setAttribute("data-lf-mermaid-loader", "true");
+ script.onload = function () { resolve(); };
+ script.onerror = reject;
+ document.head.appendChild(script);
+ });
+ }
+
+ function getMermaidThemeVariables(scheme) {
+ if (scheme === "slate") {
+ return {
+ background: "transparent",
+ primaryColor: "#1e2629",
+ primaryBorderColor: "#5dade2",
+ primaryTextColor: "#e8eef0",
+ secondaryColor: "rgba(93, 173, 226, 0.1)",
+ tertiaryColor: "rgba(93, 173, 226, 0.22)",
+ lineColor: "#5dade2",
+ textColor: "#e8eef0",
+ mainBkg: "#1e2629",
+ nodeBorder: "#5dade2",
+ clusterBkg: "rgba(93, 173, 226, 0.1)",
+ clusterBorder: "#5dade2",
+ titleColor: "#e8eef0",
+ edgeLabelBackground: "#1e2629",
+ fontFamily: "Roboto, sans-serif",
+ };
+ }
+ return {
+ background: "transparent",
+ primaryColor: "#ffffff",
+ primaryBorderColor: "#2b7bb9",
+ primaryTextColor: "#1b3139",
+ secondaryColor: "#f3f9fc",
+ tertiaryColor: "#e6f2f8",
+ lineColor: "#2b7bb9",
+ textColor: "#1b3139",
+ mainBkg: "#ffffff",
+ nodeBorder: "#2b7bb9",
+ clusterBkg: "#f3f9fc",
+ clusterBorder: "#2b7bb9",
+ titleColor: "#1b3139",
+ edgeLabelBackground: "#ffffff",
+ fontFamily: "Roboto, sans-serif",
+ };
+ }
+
+ function ensureMermaidReady() {
+ const scheme = getColorScheme();
+ if (!mermaidReadyPromise || activeColorScheme !== scheme) {
+ activeColorScheme = scheme;
+ mermaidReadyPromise = loadMermaidScript().then(function () {
+ window.mermaid.initialize({
+ startOnLoad: false,
+ securityLevel: "loose",
+ theme: "base",
+ themeVariables: getMermaidThemeVariables(scheme),
+ themeCSS: LF_MERMAID_THEME_CSS,
+ flowchart: {
+ htmlLabels: true,
+ curve: "basis",
+ padding: 16,
+ nodeSpacing: 42,
+ rankSpacing: 52,
+ },
+ });
+ return window.mermaid;
+ });
+ }
+ return mermaidReadyPromise;
+ }
+
+ function resetMermaidReady() {
+ mermaidReadyPromise = null;
+ }
+
+ function retagMermaidSources() {
+ document.querySelectorAll(".mermaid-diagram > pre.mermaid").forEach(function (pre) {
+ pre.classList.remove("mermaid");
+ pre.classList.add("lf-mermaid-src");
+ });
+ }
+
+ function stripInlinePresentation(svg) {
+ svg.querySelectorAll(
+ ".node rect, .node polygon, .node path, .cluster rect, .edgePath .path, .flowchart-link"
+ ).forEach(function (el) {
+ el.removeAttribute("style");
+ });
+ }
+
+ function applyLfArchClasses(svg) {
+ if (!svg) {
+ return;
+ }
+ svg.classList.add("lf-mermaid-svg");
+ stripInlinePresentation(svg);
+
+ svg.querySelectorAll("g.cluster").forEach(function (cluster) {
+ cluster.classList.add("lf-mermaid-cluster--fw");
+ });
+
+ svg.querySelectorAll("g.node").forEach(function (node) {
+ node.classList.add("lf-mermaid-node--fw");
+ });
+ }
+
+ function renderStyledDiagram(mermaid, source) {
+ const renderId = "lf-mermaid-" + (++renderCounter);
+ return mermaid.render(renderId, source).then(function (result) {
+ const host = document.createElement("div");
+ host.className = "lf-mermaid-rendered";
+ host.innerHTML = result.svg;
+ const svg = host.querySelector("svg");
+ applyLfArchClasses(svg);
+ if (typeof result.bindFunctions === "function") {
+ result.bindFunctions(host);
+ }
+ return host;
+ });
+ }
+
+ function isRendered(container) {
+ return !!container.querySelector(".lf-mermaid-rendered, div.mermaid");
+ }
+
+ function renderInline(container) {
+ if (container.getAttribute(RENDERING_ATTR) === "true") {
+ return Promise.resolve(false);
+ }
+ if (isRendered(container)) {
+ return Promise.resolve(true);
+ }
+
+ const source = getMermaidSource(container);
+ const pre = container.querySelector("pre.lf-mermaid-src, pre.mermaid");
+ if (!source || !pre) {
+ return Promise.resolve(false);
+ }
+
+ container.setAttribute(RENDERING_ATTR, "true");
+ container.removeAttribute(PENDING_ATTR);
+
+ return ensureMermaidReady()
+ .then(function (mermaid) {
+ return renderStyledDiagram(mermaid, source);
+ })
+ .then(function (host) {
+ container.classList.add("lf-mermaid");
+ pre.replaceWith(host);
+ container.setAttribute(RENDERED_ATTR, "true");
+ container.dataset.lfMermaidSource = source;
+ return true;
+ })
+ .catch(function (err) {
+ container.removeAttribute(PENDING_ATTR);
+ if (typeof console !== "undefined" && console.warn) {
+ console.warn("Lakeflow Mermaid: render failed", err);
+ }
+ return false;
+ })
+ .finally(function () {
+ container.removeAttribute(RENDERING_ATTR);
+ });
+ }
+
+ function ensureDialog() {
+ let dialog = document.getElementById("lf-mermaid-dialog");
+ if (dialog) {
+ return dialog;
+ }
+
+ dialog = document.createElement("dialog");
+ dialog.id = "lf-mermaid-dialog";
+ dialog.className = "lf-mermaid-dialog";
+ dialog.innerHTML =
+ '' +
+ 'Diagram' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ "" +
+ '' +
+ '' +
+ "" +
+ 'Scroll or pinch to zoom · drag to pan · Esc to close
';
+
+ document.body.appendChild(dialog);
+ return dialog;
+ }
+
+ function enhanceContainer(container) {
+ if (container.getAttribute(ENHANCED_ATTR) === "true") {
+ return false;
+ }
+
+ const source = getMermaidSource(container);
+ if (!source || !isRendered(container)) {
+ container.setAttribute(PENDING_ATTR, "true");
+ return false;
+ }
+
+ container.removeAttribute(PENDING_ATTR);
+ container.dataset.lfMermaidSource = source;
+
+ if (container.closest(".lf-mermaid-shell")) {
+ container.setAttribute(ENHANCED_ATTR, "true");
+ return true;
+ }
+
+ const shell = document.createElement("div");
+ shell.className = "lf-mermaid-shell lf-mermaid";
+
+ const parent = container.parentNode;
+ parent.insertBefore(shell, container);
+ shell.appendChild(container);
+
+ const hint = document.createElement("p");
+ hint.className = "lf-mermaid-hint";
+ hint.textContent = "Click diagram to expand · scroll to zoom · drag to pan";
+ shell.appendChild(hint);
+
+ shell.addEventListener("click", function (event) {
+ if (event.target.closest(".lf-mermaid-hint")) {
+ return;
+ }
+ openDialog(container);
+ });
+
+ container.setAttribute(ENHANCED_ATTR, "true");
+ return true;
+ }
+
+ function openDialog(container) {
+ const source = getMermaidSource(container);
+ if (!source) {
+ return;
+ }
+
+ const dialog = ensureDialog();
+ const canvas = dialog.querySelector(".lf-mermaid-dialog__canvas");
+ const stage = dialog.querySelector(".lf-mermaid-dialog__stage");
+ if (!canvas || !stage) {
+ return;
+ }
+
+ canvas.innerHTML = 'Loading diagram…
';
+
+ let scale = 1;
+ let panX = 0;
+ let panY = 0;
+ let dragging = false;
+ let lastX = 0;
+ let lastY = 0;
+
+ function applyTransform() {
+ canvas.style.transform = "translate(" + panX + "px, " + panY + "px) scale(" + scale + ")";
+ }
+
+ function resetView() {
+ scale = 1;
+ panX = 0;
+ panY = 0;
+ applyTransform();
+ }
+
+ function zoomBy(delta) {
+ scale = Math.min(4, Math.max(0.35, scale + delta));
+ applyTransform();
+ }
+
+ function onWheel(event) {
+ event.preventDefault();
+ zoomBy(event.deltaY < 0 ? 0.12 : -0.12);
+ }
+
+ function onPointerDown(event) {
+ if (event.button !== 0) {
+ return;
+ }
+ dragging = true;
+ lastX = event.clientX;
+ lastY = event.clientY;
+ stage.setPointerCapture(event.pointerId);
+ stage.classList.add("lf-mermaid-dialog__stage--dragging");
+ }
+
+ function onPointerMove(event) {
+ if (!dragging) {
+ return;
+ }
+ panX += event.clientX - lastX;
+ panY += event.clientY - lastY;
+ lastX = event.clientX;
+ lastY = event.clientY;
+ applyTransform();
+ }
+
+ function onPointerUp(event) {
+ dragging = false;
+ stage.classList.remove("lf-mermaid-dialog__stage--dragging");
+ try {
+ stage.releasePointerCapture(event.pointerId);
+ } catch (_err) {
+ /* ignore */
+ }
+ }
+
+ function onDialogClick(event) {
+ const action = event.target.closest("[data-zoom]");
+ if (!action) {
+ return;
+ }
+ const mode = action.getAttribute("data-zoom");
+ if (mode === "in") {
+ zoomBy(0.2);
+ } else if (mode === "out") {
+ zoomBy(-0.2);
+ } else if (mode === "reset") {
+ resetView();
+ }
+ }
+
+ function onClose() {
+ stage.removeEventListener("wheel", onWheel);
+ stage.removeEventListener("pointerdown", onPointerDown);
+ stage.removeEventListener("pointermove", onPointerMove);
+ stage.removeEventListener("pointerup", onPointerUp);
+ stage.removeEventListener("pointercancel", onPointerUp);
+ dialog.removeEventListener("click", onDialogClick);
+ dialog.removeEventListener("close", onClose);
+ canvas.innerHTML = "";
+ }
+
+ stage.addEventListener("wheel", onWheel, { passive: false });
+ stage.addEventListener("pointerdown", onPointerDown);
+ stage.addEventListener("pointermove", onPointerMove);
+ stage.addEventListener("pointerup", onPointerUp);
+ stage.addEventListener("pointercancel", onPointerUp);
+ dialog.addEventListener("click", onDialogClick);
+ dialog.addEventListener("close", onClose);
+
+ dialog.querySelector(".lf-mermaid-dialog__close").onclick = function () {
+ dialog.close();
+ };
+
+ if (typeof dialog.showModal === "function") {
+ dialog.showModal();
+ } else {
+ dialog.setAttribute("open", "open");
+ }
+
+ ensureMermaidReady()
+ .then(function (mermaid) {
+ return renderStyledDiagram(mermaid, source);
+ })
+ .then(function (host) {
+ canvas.innerHTML = "";
+ canvas.appendChild(host);
+ resetView();
+ })
+ .catch(function () {
+ canvas.innerHTML = 'Could not render diagram.
';
+ });
+ }
+
+ function rerenderAll() {
+ const hasRendered = document.querySelector(".lf-mermaid-rendered");
+ resetMermaidReady();
+ if (!hasRendered) {
+ scan();
+ return;
+ }
+ document.querySelectorAll(".md-typeset .mermaid-diagram").forEach(function (container) {
+ const source = getMermaidSource(container);
+ const rendered = container.querySelector(".lf-mermaid-rendered");
+ if (!source || !rendered) {
+ return;
+ }
+ ensureMermaidReady()
+ .then(function (mermaid) {
+ return renderStyledDiagram(mermaid, source);
+ })
+ .then(function (host) {
+ rendered.replaceWith(host);
+ })
+ .catch(function () {
+ /* keep existing render on failure */
+ });
+ });
+ }
+
+ function processContainer(container) {
+ return renderInline(container).then(function (rendered) {
+ if (rendered || isRendered(container)) {
+ enhanceContainer(container);
+ }
+ return rendered;
+ });
+ }
+
+ function scan() {
+ const containers = Array.from(document.querySelectorAll(".md-typeset .mermaid-diagram"));
+ let pending = false;
+
+ containers.forEach(function (container) {
+ if (container.getAttribute(ENHANCED_ATTR) === "true" && isRendered(container)) {
+ return;
+ }
+ if (container.getAttribute(RENDERING_ATTR) === "true") {
+ pending = true;
+ return;
+ }
+ if (!isRendered(container) && getMermaidSource(container)) {
+ pending = true;
+ processContainer(container);
+ } else if (isRendered(container)) {
+ enhanceContainer(container);
+ }
+ });
+
+ return pending;
+ }
+
+ function boot() {
+ retagMermaidSources();
+
+ let attempts = 0;
+ const maxAttempts = 120;
+
+ function tick() {
+ const pending = scan();
+ attempts += 1;
+ if (pending && attempts < maxAttempts) {
+ window.setTimeout(tick, 250);
+ }
+ }
+
+ tick();
+
+ const observer = new MutationObserver(function () {
+ retagMermaidSources();
+ scan();
+ });
+ observer.observe(document.body, { childList: true, subtree: true });
+
+ const main = document.querySelector(".md-content__inner");
+ if (main) {
+ observer.observe(main, { childList: true, subtree: true });
+ }
+
+ const schemeObserver = new MutationObserver(function () {
+ const scheme = getColorScheme();
+ if (scheme !== activeColorScheme) {
+ rerenderAll();
+ }
+ });
+ schemeObserver.observe(document.body, {
+ attributes: true,
+ attributeFilter: ["data-md-color-scheme"],
+ });
+ }
+
+ retagMermaidSources();
+
+ if (document.readyState === "loading") {
+ document.addEventListener("DOMContentLoaded", boot);
+ } else {
+ boot();
+ }
+})();
diff --git a/docs/source/_static/vendor/mermaid.min.js b/docs/source/_static/vendor/mermaid.min.js
new file mode 100644
index 0000000..055db5c
--- /dev/null
+++ b/docs/source/_static/vendor/mermaid.min.js
@@ -0,0 +1,3587 @@
+"use strict";var __esbuild_esm_mermaid_nm;(__esbuild_esm_mermaid_nm||={}).mermaid=(()=>{var ize=Object.create;var Ox=Object.defineProperty;var aze=Object.getOwnPropertyDescriptor;var sze=Object.getOwnPropertyNames;var oze=Object.getPrototypeOf,lze=Object.prototype.hasOwnProperty;var o=(e,t)=>Ox(e,"name",{value:t,configurable:!0});var F=(e,t)=>()=>(e&&(t=e(e=0)),t);var Io=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ir=(e,t)=>{for(var r in t)Ox(e,r,{get:t[r],enumerable:!0})},BX=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sze(t))!lze.call(e,i)&&i!==r&&Ox(e,i,{get:()=>t[i],enumerable:!(n=aze(t,i))||n.enumerable});return e};var Xs=(e,t,r)=>(r=e!=null?ize(oze(e)):{},BX(t||!e||!e.__esModule?Ox(r,"default",{value:e,enumerable:!0}):r,e)),cze=e=>BX(Ox({},"__esModule",{value:!0}),e);var uze,z0,ID,$X,gk=F(()=>{"use strict";uze=Object.freeze({left:0,top:0,width:16,height:16}),z0=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ID=Object.freeze({...uze,...z0}),$X=Object.freeze({...ID,body:"",hidden:!1})});var hze,FX,zX=F(()=>{"use strict";gk();hze=Object.freeze({width:null,height:null}),FX=Object.freeze({...hze,...z0})});var MD,yk,GX=F(()=>{"use strict";MD=o((e,t,r,n="")=>{let i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let l=i.pop(),u=i.pop(),h={provider:i.length>0?i[0]:n,prefix:u,name:l};return t&&!yk(h)?null:h}let a=i[0],s=a.split("-");if(s.length>1){let l={provider:n,prefix:s.shift(),name:s.join("-")};return t&&!yk(l)?null:l}if(r&&n===""){let l={provider:n,prefix:"",name:a};return t&&!yk(l,r)?null:l}return null},"stringToIcon"),yk=o((e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,"validateIconName")});function VX(e,t){let r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);let n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}var WX=F(()=>{"use strict";o(VX,"mergeIconTransformations")});function ND(e,t){let r=VX(e,t);for(let n in $X)n in z0?n in e&&!(n in r)&&(r[n]=z0[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}var qX=F(()=>{"use strict";gk();WX();o(ND,"mergeIconData")});function HX(e,t){let r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function a(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;let l=n[s]&&n[s].parent,u=l&&a(l);u&&(i[s]=[l].concat(u))}return i[s]}return o(a,"resolve"),(t||Object.keys(r).concat(Object.keys(n))).forEach(a),i}var UX=F(()=>{"use strict";o(HX,"getIconsTree")});function YX(e,t,r){let n=e.icons,i=e.aliases||Object.create(null),a={};function s(l){a=ND(n[l]||i[l],a)}return o(s,"parse"),s(t),r.forEach(s),ND(e,a)}function PD(e,t){if(e.icons[t])return YX(e,t,[]);let r=HX(e,[t])[t];return r?YX(e,t,r):null}var jX=F(()=>{"use strict";qX();UX();o(YX,"internalGetIconData");o(PD,"getIconData")});function OD(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;let n=e.split(dze);if(n===null||!n.length)return e;let i=[],a=n.shift(),s=fze.test(a);for(;;){if(s){let l=parseFloat(a);isNaN(l)?i.push(a):i.push(Math.ceil(l*t*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");s=!s}}var dze,fze,XX=F(()=>{"use strict";dze=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fze=/^-?[0-9.]*[0-9]+[0-9.]*$/g;o(OD,"calculateSize")});function pze(e,t="defs"){let r="",n=e.indexOf("<"+t);for(;n>=0;){let i=e.indexOf(">",n),a=e.indexOf(""+t);if(i===-1||a===-1)break;let s=e.indexOf(">",a);if(s===-1)break;r+=e.slice(i+1,a).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function mze(e,t){return e?""+e+" "+t:t}function KX(e,t,r){let n=pze(e);return mze(n.defs,t+n.content+r)}var ZX=F(()=>{"use strict";o(pze,"splitSVGDefs");o(mze,"mergeDefsAndContent");o(KX,"wrapSVGContent")});function BD(e,t){let r={...ID,...e},n={...FX,...t},i={left:r.left,top:r.top,width:r.width,height:r.height},a=r.body;[r,n].forEach(y=>{let v=[],x=y.hFlip,b=y.vFlip,T=y.rotate;x?b?T+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):b&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let k;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:k=i.height/2+i.top,v.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:k=i.width/2+i.left,v.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}T%2===1&&(i.left!==i.top&&(k=i.left,i.left=i.top,i.top=k),i.width!==i.height&&(k=i.width,i.width=i.height,i.height=k)),v.length&&(a=KX(a,''," "))});let s=n.width,l=n.height,u=i.width,h=i.height,d,f;s===null?(f=l===null?"1em":l==="auto"?h:l,d=OD(f,u/h)):(d=s==="auto"?u:s,f=l===null?OD(d,h/u):l==="auto"?h:l);let p={},m=o((y,v)=>{gze(v)||(p[y]=v.toString())},"setAttr");m("width",d),m("height",f);let g=[i.left,i.top,u,h];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:a}}var gze,QX=F(()=>{"use strict";gk();zX();XX();ZX();gze=o(e=>e==="unset"||e==="undefined"||e==="none","isUnsetKeyword");o(BD,"iconToSVG")});function $D(e,t=vze){let r=[],n;for(;n=yze.exec(e);)r.push(n[1]);if(!r.length)return e;let i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{let s=typeof t=="function"?t(a):t+(xze++).toString(),l=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}var yze,vze,xze,JX=F(()=>{"use strict";yze=/\sid="(\S+)"/g,vze="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),xze=0;o($D,"replaceIDs")});function FD(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let n in t)r+=" "+n+'="'+t[n]+'"';return'"}var eK=F(()=>{"use strict";o(FD,"iconToHTML")});var tK=F(()=>{"use strict";GX();jX();QX();JX();eK()});var zD,Yn,G0=F(()=>{"use strict";zD=o((e,t,{depth:r=2,clobber:n=!1}={})=>{let i={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>zD(e,a,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&t[a]!==null&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=zD(e[a],t[a],{depth:r-1,clobber:n})):(n||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),Yn=zD});var vk=Io((GD,VD)=>{"use strict";(function(e,t){typeof GD=="object"&&typeof VD<"u"?VD.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(GD,(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",a="minute",s="hour",l="day",u="week",h="month",d="quarter",f="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:o(function(_){var A=["th","st","nd","rd"],M=_%100;return"["+_+(A[(M-20)%10]||A[M]||A[0])+"]"},"ordinal")},x=o(function(_,A,M){var D=String(_);return!D||D.length>=A?_:""+Array(A+1-D.length).join(M)+_},"m"),b={s:x,z:o(function(_){var A=-_.utcOffset(),M=Math.abs(A),D=Math.floor(M/60),P=M%60;return(A<=0?"+":"-")+x(D,2,"0")+":"+x(P,2,"0")},"z"),m:o(function _(A,M){if(A.date()1)return _(O[0])}else{var $=A.name;k[$]=A,P=$}return!D&&P&&(T=P),P||!D&&T},"t"),R=o(function(_,A){if(w(_))return _.clone();var M=typeof A=="object"?A:{};return M.date=_,M.args=arguments,new N(M)},"O"),L=b;L.l=S,L.i=w,L.w=function(_,A){return R(_,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var N=(function(){function _(M){this.$L=S(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[C]=!0}o(_,"M");var A=_.prototype;return A.parse=function(M){this.$d=(function(D){var P=D.date,B=D.utc;if(P===null)return new Date(NaN);if(L.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var O=P.match(g);if(O){var $=O[2]-1||0,V=(O[7]||"0").substring(0,3);return B?new Date(Date.UTC(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,V)):new Date(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,V)}}return new Date(P)})(M),this.init()},A.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},A.$utils=function(){return L},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(M,D){var P=R(M);return this.startOf(D)<=P&&P<=this.endOf(D)},A.isAfter=function(M,D){return R(M){"use strict";rK=Xs(vk(),1),Zu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Z={trace:o((...e)=>{},"trace"),debug:o((...e)=>{},"debug"),info:o((...e)=>{},"info"),warn:o((...e)=>{},"warn"),error:o((...e)=>{},"error"),fatal:o((...e)=>{},"fatal")},Bx=o(function(e="fatal"){let t=Zu.fatal;typeof e=="string"?e.toLowerCase()in Zu&&(t=Zu[e]):typeof e=="number"&&(t=e),Z.trace=()=>{},Z.debug=()=>{},Z.info=()=>{},Z.warn=()=>{},Z.error=()=>{},Z.fatal=()=>{},t<=Zu.fatal&&(Z.fatal=console.error?console.error.bind(console,il("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",il("FATAL"))),t<=Zu.error&&(Z.error=console.error?console.error.bind(console,il("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",il("ERROR"))),t<=Zu.warn&&(Z.warn=console.warn?console.warn.bind(console,il("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",il("WARN"))),t<=Zu.info&&(Z.info=console.info?console.info.bind(console,il("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",il("INFO"))),t<=Zu.debug&&(Z.debug=console.debug?console.debug.bind(console,il("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",il("DEBUG"))),t<=Zu.trace&&(Z.trace=console.debug?console.debug.bind(console,il("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",il("TRACE")))},"setLogLevel"),il=o(e=>`%c${(0,rK.default)().format("ss.SSS")} : ${e} : `,"format")});var xk,nK,iK=F(()=>{"use strict";xk={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:o(e=>e>=255?255:e<0?0:e,"r"),g:o(e=>e>=255?255:e<0?0:e,"g"),b:o(e=>e>=255?255:e<0?0:e,"b"),h:o(e=>e%360,"h"),s:o(e=>e>=100?100:e<0?0:e,"s"),l:o(e=>e>=100?100:e<0?0:e,"l"),a:o(e=>e>=1?1:e<0?0:e,"a")},toLinear:o(e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},"toLinear"),hue2rgb:o((e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?e+(t-e)*6*r:r<.5?t:r<.6666666666666666?e+(t-e)*(.6666666666666666-r)*6:e),"hue2rgb"),hsl2rgb:o(({h:e,s:t,l:r},n)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;let i=r<.5?r*(1+t):r+t-r*t,a=2*r-i;switch(n){case"r":return xk.hue2rgb(a,i,e+.3333333333333333)*255;case"g":return xk.hue2rgb(a,i,e)*255;case"b":return xk.hue2rgb(a,i,e-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:o(({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;let i=Math.max(e,t,r),a=Math.min(e,t,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;let l=i-a,u=s>.5?l/(2-i-a):l/(i+a);if(n==="s")return u*100;switch(i){case e:return((t-r)/l+(t{"use strict";bze={clamp:o((e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),"clamp"),round:o(e=>Math.round(e*1e10)/1e10,"round")},aK=bze});var Tze,oK,lK=F(()=>{"use strict";Tze={dec2hex:o(e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`},"dec2hex")},oK=Tze});var Cze,lr,Nc=F(()=>{"use strict";iK();sK();lK();Cze={channel:nK,lang:aK,unit:oK},lr=Cze});var Qu,ta,$x=F(()=>{"use strict";Nc();Qu={};for(let e=0;e<=255;e++)Qu[e]=lr.unit.dec2hex(e);ta={ALL:0,RGB:1,HSL:2}});var WD,cK,uK=F(()=>{"use strict";$x();WD=class{static{o(this,"Type")}constructor(){this.type=ta.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=ta.ALL}is(t){return this.type===t}},cK=WD});var qD,hK,dK=F(()=>{"use strict";Nc();uK();$x();qD=class{static{o(this,"Channels")}constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new cK}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=ta.ALL,this}_ensureHSL(){let t=this.data,{h:r,s:n,l:i}=t;r===void 0&&(t.h=lr.channel.rgb2hsl(t,"h")),n===void 0&&(t.s=lr.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=lr.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r,g:n,b:i}=t;r===void 0&&(t.r=lr.channel.hsl2rgb(t,"r")),n===void 0&&(t.g=lr.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=lr.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,r=t.r;return!this.type.is(ta.HSL)&&r!==void 0?r:(this._ensureHSL(),lr.channel.hsl2rgb(t,"r"))}get g(){let t=this.data,r=t.g;return!this.type.is(ta.HSL)&&r!==void 0?r:(this._ensureHSL(),lr.channel.hsl2rgb(t,"g"))}get b(){let t=this.data,r=t.b;return!this.type.is(ta.HSL)&&r!==void 0?r:(this._ensureHSL(),lr.channel.hsl2rgb(t,"b"))}get h(){let t=this.data,r=t.h;return!this.type.is(ta.RGB)&&r!==void 0?r:(this._ensureRGB(),lr.channel.rgb2hsl(t,"h"))}get s(){let t=this.data,r=t.s;return!this.type.is(ta.RGB)&&r!==void 0?r:(this._ensureRGB(),lr.channel.rgb2hsl(t,"s"))}get l(){let t=this.data,r=t.l;return!this.type.is(ta.RGB)&&r!==void 0?r:(this._ensureRGB(),lr.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ta.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ta.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ta.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ta.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ta.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ta.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}},hK=qD});var wze,Td,Fx=F(()=>{"use strict";dK();wze=new hK({r:0,g:0,b:0,a:0},"transparent"),Td=wze});var fK,Bp,HD=F(()=>{"use strict";Fx();$x();fK={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:o(e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(fK.re);if(!t)return;let r=t[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,l=s?1:17,u=s?8:4,h=a?0:-1,d=s?255:15;return Td.set({r:(n>>u*(h+3)&d)*l,g:(n>>u*(h+2)&d)*l,b:(n>>u*(h+1)&d)*l,a:a?(n&d)*l/255:1},e)},"parse"),stringify:o(e=>{let{r:t,g:r,b:n,a:i}=e;return i<1?`#${Qu[Math.round(t)]}${Qu[Math.round(r)]}${Qu[Math.round(n)]}${Qu[Math.round(i*255)]}`:`#${Qu[Math.round(t)]}${Qu[Math.round(r)]}${Qu[Math.round(n)]}`},"stringify")},Bp=fK});var bk,zx,pK=F(()=>{"use strict";Nc();Fx();bk={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:o(e=>{let t=e.match(bk.hueRe);if(t){let[,r,n]=t;switch(n){case"grad":return lr.channel.clamp.h(parseFloat(r)*.9);case"rad":return lr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return lr.channel.clamp.h(parseFloat(r)*360)}}return lr.channel.clamp.h(parseFloat(e))},"_hue2deg"),parse:o(e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let r=e.match(bk.re);if(!r)return;let[,n,i,a,s,l]=r;return Td.set({h:bk._hue2deg(n),s:lr.channel.clamp.s(parseFloat(i)),l:lr.channel.clamp.l(parseFloat(a)),a:s?lr.channel.clamp.a(l?parseFloat(s)/100:parseFloat(s)):1},e)},"parse"),stringify:o(e=>{let{h:t,s:r,l:n,a:i}=e;return i<1?`hsla(${lr.lang.round(t)}, ${lr.lang.round(r)}%, ${lr.lang.round(n)}%, ${i})`:`hsl(${lr.lang.round(t)}, ${lr.lang.round(r)}%, ${lr.lang.round(n)}%)`},"stringify")},zx=bk});var Tk,UD,mK=F(()=>{"use strict";HD();Tk={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:o(e=>{e=e.toLowerCase();let t=Tk.colors[e];if(t)return Bp.parse(t)},"parse"),stringify:o(e=>{let t=Bp.stringify(e);for(let r in Tk.colors)if(Tk.colors[r]===t)return r},"stringify")},UD=Tk});var gK,Gx,yK=F(()=>{"use strict";Nc();Fx();gK={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:o(e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let r=e.match(gK.re);if(!r)return;let[,n,i,a,s,l,u,h,d]=r;return Td.set({r:lr.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:lr.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:lr.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:h?lr.channel.clamp.a(d?parseFloat(h)/100:parseFloat(h)):1},e)},"parse"),stringify:o(e=>{let{r:t,g:r,b:n,a:i}=e;return i<1?`rgba(${lr.lang.round(t)}, ${lr.lang.round(r)}, ${lr.lang.round(n)}, ${lr.lang.round(i)})`:`rgb(${lr.lang.round(t)}, ${lr.lang.round(r)}, ${lr.lang.round(n)})`},"stringify")},Gx=gK});var kze,ra,Ju=F(()=>{"use strict";HD();pK();mK();yK();$x();kze={format:{keyword:UD,hex:Bp,rgb:Gx,rgba:Gx,hsl:zx,hsla:zx},parse:o(e=>{if(typeof e!="string")return e;let t=Bp.parse(e)||Gx.parse(e)||zx.parse(e)||UD.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},"parse"),stringify:o(e=>!e.changed&&e.color?e.color:e.type.is(ta.HSL)||e.data.r===void 0?zx.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Gx.stringify(e):Bp.stringify(e),"stringify")},ra=kze});var Sze,Ck,YD=F(()=>{"use strict";Nc();Ju();Sze=o((e,t)=>{let r=ra.parse(e);for(let n in t)r[n]=lr.channel.clamp[n](t[n]);return ra.stringify(r)},"change"),Ck=Sze});var Eze,Oi,jD=F(()=>{"use strict";Nc();Fx();Ju();YD();Eze=o((e,t,r=0,n=1)=>{if(typeof e!="number")return Ck(e,{a:t});let i=Td.set({r:lr.channel.clamp.r(e),g:lr.channel.clamp.g(t),b:lr.channel.clamp.b(r),a:lr.channel.clamp.a(n)});return ra.stringify(i)},"rgba"),Oi=Eze});var Aze,$p,vK=F(()=>{"use strict";Nc();Ju();Aze=o((e,t)=>lr.lang.round(ra.parse(e)[t]),"channel"),$p=Aze});var Rze,xK,bK=F(()=>{"use strict";Nc();Ju();Rze=o(e=>{let{r:t,g:r,b:n}=ra.parse(e),i=.2126*lr.channel.toLinear(t)+.7152*lr.channel.toLinear(r)+.0722*lr.channel.toLinear(n);return lr.lang.round(i)},"luminance"),xK=Rze});var _ze,TK,CK=F(()=>{"use strict";bK();_ze=o(e=>xK(e)>=.5,"isLight"),TK=_ze});var Lze,Tn,wK=F(()=>{"use strict";CK();Lze=o(e=>!TK(e),"isDark"),Tn=Lze});var Dze,V0,wk=F(()=>{"use strict";Nc();Ju();Dze=o((e,t,r)=>{let n=ra.parse(e),i=n[t],a=lr.channel.clamp[t](i+r);return i!==a&&(n[t]=a),ra.stringify(n)},"adjustChannel"),V0=Dze});var Ize,Qe,kK=F(()=>{"use strict";wk();Ize=o((e,t)=>V0(e,"l",t),"lighten"),Qe=Ize});var Mze,Je,SK=F(()=>{"use strict";wk();Mze=o((e,t)=>V0(e,"l",-t),"darken"),Je=Mze});var Nze,kk,EK=F(()=>{"use strict";wk();Nze=o((e,t)=>V0(e,"a",-t),"transparentize"),kk=Nze});var Pze,de,AK=F(()=>{"use strict";Ju();YD();Pze=o((e,t)=>{let r=ra.parse(e),n={};for(let i in t)t[i]&&(n[i]=r[i]+t[i]);return Ck(e,n)},"adjust"),de=Pze});var Oze,RK,_K=F(()=>{"use strict";Ju();jD();Oze=o((e,t,r=50)=>{let{r:n,g:i,b:a,a:s}=ra.parse(e),{r:l,g:u,b:h,a:d}=ra.parse(t),f=r/100,p=f*2-1,m=s-d,y=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,v=1-y,x=n*y+l*v,b=i*y+u*v,T=a*y+h*v,k=s*f+d*(1-f);return Oi(x,b,T,k)},"mix"),RK=Oze});var Bze,Ye,LK=F(()=>{"use strict";Ju();_K();Bze=o((e,t=100)=>{let r=ra.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,RK(r,e,t)},"invert"),Ye=Bze});var DK=F(()=>{"use strict";jD();vK();wK();kK();SK();EK();AK();LK()});var zi=F(()=>{"use strict";DK()});var Gi,Vi,Fl=F(()=>{"use strict";Gi="#ffffff",Vi="#f2f2f2"});var ar,al=F(()=>{"use strict";zi();ar=o((e,t)=>t?de(e,{s:-40,l:10}):de(e,{s:-40,l:-10}),"mkBorder")});var KD,IK,MK=F(()=>{"use strict";zi();Fl();al();KD=class{static{o(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ar(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ar(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ye(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ye(this.tertiaryColor),this.lineColor=this.lineColor||Ye(this.background),this.arrowheadColor=this.arrowheadColor||Ye(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Je(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Je(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ye(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Qe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Je(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Je(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Qe(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Qe(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},IK=o(e=>{let t=new KD;return t.calculate(e),t},"getThemeVariables")});var ZD,NK,PK=F(()=>{"use strict";zi();al();ZD=class{static{o(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Qe(this.primaryColor,16),this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=Ye(this.background),this.secondaryBorderColor=ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ar(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.tertiaryColor),this.lineColor=Ye(this.background),this.textColor=Ye(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Qe(Ye("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Oi(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=Je("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Je(this.sectionBkgColor,10),this.taskBorderColor=Oi(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Oi(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Qe(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Je(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=Qe(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Qe(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=Qe(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=Ye(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=de(this.primaryColor,{h:64}),this.fillType3=de(this.secondaryColor,{h:64}),this.fillType4=de(this.primaryColor,{h:-64}),this.fillType5=de(this.secondaryColor,{h:-64}),this.fillType6=de(this.primaryColor,{h:128}),this.fillType7=de(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330});for(let t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},NK=o(e=>{let t=new ZD;return t.calculate(e),t},"getThemeVariables")});var QD,ma,Pc=F(()=>{"use strict";zi();al();Fl();QD=class{static{o(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=de(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ar(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.tertiaryColor),this.lineColor=Ye(this.background),this.textColor=Ye(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=ar(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Oi(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Je(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Je(this.tertiaryColor,40);for(let t=0;t{this[n]==="calculated"&&(this[n]=void 0)}),typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},ma=o(e=>{let t=new QD;return t.calculate(e),t},"getThemeVariables")});var JD,OK,BK=F(()=>{"use strict";zi();Fl();al();JD=class{static{o(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Qe("#cde498",10),this.primaryBorderColor=ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ar(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.primaryColor),this.lineColor=Ye(this.background),this.textColor=Ye(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=Je(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Je(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Je(this.tertiaryColor,40);for(let t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},OK=o(e=>{let t=new JD;return t.calculate(e),t},"getThemeVariables")});var e7,$K,FK=F(()=>{"use strict";zi();al();Fl();e7=class{static{o(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Qe(this.contrast,55),this.background="#ffffff",this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ar(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.tertiaryColor),this.lineColor=Ye(this.background),this.textColor=Ye(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||Qe(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=Qe(this.contrast,55),this.border2=this.contrast,this.actorBorder=Qe(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},$K=o(e=>{let t=new e7;return t.calculate(e),t},"getThemeVariables")});var t7,zK,GK=F(()=>{"use strict";zi();al();Fl();t7=class{static{o(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=ar(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ar(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ar(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ye(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ye(this.tertiaryColor),this.lineColor=this.lineColor||Ye(this.background),this.arrowheadColor=this.arrowheadColor||Ye(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Je(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Je(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ye(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",r="#E9E9F1",n=de(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Qe(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||de(t,{h:30}),this.cScale4=this.cScale4||de(t,{h:60}),this.cScale5=this.cScale5||de(t,{h:90}),this.cScale6=this.cScale6||de(t,{h:120}),this.cScale7=this.cScale7||de(t,{h:150}),this.cScale8=this.cScale8||de(t,{h:210,l:150}),this.cScale9=this.cScale9||de(t,{h:270}),this.cScale10=this.cScale10||de(t,{h:300}),this.cScale11=this.cScale11||de(t,{h:330}),this.darkMode)for(let a=0;a{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},zK=o(e=>{let t=new t7;return t.calculate(e),t},"getThemeVariables")});var r7,VK,WK=F(()=>{"use strict";zi();al();Fl();r7=class{static{o(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Qe(this.primaryColor,16),this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=Ye(this.background),this.secondaryBorderColor=ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ar(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Qe(Ye("#323D47"),10),this.border1="#ccc",this.border2=Oi(255,255,255,.25),this.arrowheadColor=Ye(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ar(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ar(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ye(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ye(this.tertiaryColor),this.lineColor=this.lineColor||Ye(this.background),this.arrowheadColor=this.arrowheadColor||Ye(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Je(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Je(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ye(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Qe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},VK=o(e=>{let t=new r7;return t.calculate(e),t},"getThemeVariables")});var n7,qK,HK=F(()=>{"use strict";zi();al();Fl();n7=class{static{o(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ar("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ar(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ar(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ye(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ye(this.tertiaryColor),this.lineColor=this.lineColor||Ye(this.background),this.arrowheadColor=this.arrowheadColor||Ye(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Je(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Je(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ye(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",r="#E9E9F1",n=de(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Qe(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let a=0;a{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},qK=o(e=>{let t=new n7;return t.calculate(e),t},"getThemeVariables")});var i7,UK,YK=F(()=>{"use strict";zi();al();Fl();i7=class{static{o(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Qe(this.primaryColor,16),this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=Ye(this.background),this.secondaryBorderColor=ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ar(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Qe(Ye("#323D47"),10),this.border1="#ccc",this.border2=Oi(255,255,255,.25),this.arrowheadColor=Ye(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ar(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ar(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ye(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ye(this.tertiaryColor),this.lineColor=this.lineColor||Ye(this.background),this.arrowheadColor=this.arrowheadColor||Ye(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Je(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Je(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ye(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Qe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},UK=o(e=>{let t=new i7;return t.calculate(e),t},"getThemeVariables")});var a7,jK,XK=F(()=>{"use strict";zi();al();Fl();a7=class{static{o(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ar(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ar(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ar(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ye(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ye(this.tertiaryColor),this.lineColor=this.lineColor||Ye(this.background),this.arrowheadColor=this.arrowheadColor||Ye(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Je(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Je(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ye(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",r="#E9E9F1",n=de(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Qe(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let a=0;a{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},jK=o(e=>{let t=new a7;return t.calculate(e),t},"getThemeVariables")});var s7,KK,ZK=F(()=>{"use strict";zi();al();Fl();s7=class{static{o(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Qe(this.primaryColor,16),this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=Ye(this.background),this.secondaryBorderColor=ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ar(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Qe(Ye("#323D47"),10),this.border1="#ccc",this.border2=Oi(255,255,255,.25),this.arrowheadColor=Ye(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ar(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ar(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ar(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ar(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ye(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ye(this.tertiaryColor),this.lineColor=this.lineColor||Ye(this.background),this.arrowheadColor=this.arrowheadColor||Ye(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Je(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Je(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ye(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Qe(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let r=0;r{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},KK=o(e=>{let t=new s7;return t.calculate(e),t},"getThemeVariables")});var sl,Sk=F(()=>{"use strict";MK();PK();Pc();BK();FK();GK();WK();HK();YK();XK();ZK();sl={base:{getThemeVariables:IK},dark:{getThemeVariables:NK},default:{getThemeVariables:ma},forest:{getThemeVariables:OK},neutral:{getThemeVariables:$K},neo:{getThemeVariables:zK},"neo-dark":{getThemeVariables:VK},redux:{getThemeVariables:qK},"redux-dark":{getThemeVariables:UK},"redux-color":{getThemeVariables:jK},"redux-dark-color":{getThemeVariables:KK}}});var ga,QK=F(()=>{"use strict";ga={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1}});var JK,eZ,tZ,cr,Wi=F(()=>{"use strict";Sk();QK();JK={...ga,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:sl.default.getThemeVariables(),sequence:{...ga.sequence,messageFont:o(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:o(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:o(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...ga.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ga.c4,useWidth:void 0,personFont:o(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...ga.flowchart,inheritDir:!1},external_personFont:o(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:o(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:o(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:o(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:o(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:o(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:o(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:o(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:o(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:o(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:o(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:o(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:o(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:o(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:o(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:o(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:o(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:o(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:o(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:o(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:o(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ga.pie,useWidth:984},xyChart:{...ga.xyChart,useWidth:void 0},requirement:{...ga.requirement,useWidth:void 0},packet:{...ga.packet},eventmodeling:{...ga.eventmodeling},treeView:{...ga.treeView,useWidth:void 0},radar:{...ga.radar},railroad:{...ga.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...ga.ishikawa},sankey:{...ga.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...ga.venn},cynefin:{...ga.cynefin}},eZ=o((e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...eZ(e[n],"")]:[...r,t+n],[]),"keyify"),tZ=new Set(eZ(JK,"")),cr=JK});var $ze,Fze,W0,o7,Ek=F(()=>{"use strict";Wi();vt();$ze={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Fze=o((e,t)=>{for(let r of Object.keys(e)){let n=e[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof n!="string"||!t.test(n))&&(Z.debug("sanitize deleting dictionary entry:",r,n),delete e[r])}},"sanitizeDictionaryConfig"),W0=o(e=>{if(Z.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>W0(t));return}for(let t of Object.keys(e)){if(Z.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!tZ.has(t)||e[t]==null){Z.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){let n=$ze[t];n?Fze(e[t],n):(Z.debug("sanitizing object",t),W0(e[t]));continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let n of r)t.includes(n)&&(Z.debug("sanitizing css option",t),e[t]=o7(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}Z.debug("After sanitization",e)}},"sanitizeDirective"),o7=o(e=>{let t=0,r=0;for(let n of e){if(t{"use strict";G0();vt();Sk();Wi();Ek();Cd=Object.freeze(cr),ya=o(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Ks=Yn({},Cd),Fp=[],Vx=Yn({},Cd),Rk=o((e,t)=>{let r=Yn({},e),n={};for(let i of t)aZ(i),n=Yn(n,i);if(r=Yn(r,n),n.theme&&n.theme in sl){let i=Yn({},Ak),a=Yn(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in sl&&(r.themeVariables=sl[r.theme].getThemeVariables(a))}return Vx=r,lZ(Vx),Vx},"updateCurrentConfig"),l7=o(e=>(Ks=Yn({},Cd),Ks=Yn(Ks,e),e.theme&&sl[e.theme]&&(Ks.themeVariables=sl[e.theme].getThemeVariables(e.themeVariables)),Rk(Ks,Fp),Ks),"setSiteConfig"),nZ=o(e=>{Ak=Yn({},e)},"saveConfigFromInitialize"),iZ=o(e=>(Ks=Yn(Ks,e),Rk(Ks,Fp),Ks),"updateSiteConfig"),c7=o(()=>Yn({},Ks),"getSiteConfig"),_k=o(e=>(lZ(e),Yn(Vx,e),_t()),"setConfig"),_t=o(()=>Yn({},Vx),"getConfig"),aZ=o(e=>{e&&(["secure",...Ks.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Z.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&aZ(e[t])}))},"sanitize"),sZ=o(e=>{W0(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Fp.push(e),Rk(Ks,Fp)},"addDirective"),Wx=o((e=Ks)=>{Fp=[],Rk(e,Fp)},"reset"),zze={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},rZ={},oZ=o(e=>{rZ[e]||(Z.warn(zze[e]),rZ[e]=!0)},"issueWarning"),lZ=o(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&oZ("LAZY_LOAD_DEPRECATED")},"checkConfig"),Lk=o(()=>{let e={};Ak&&(e=Yn(e,Ak));for(let t of Fp)e=Yn(e,t);return e},"getUserDefinedConfig"),Gr=o(e=>(e.flowchart?.htmlLabels!=null&&oZ("FLOWCHART_HTML_LABELS_DEPRECATED"),ya(e.htmlLabels??e.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels")});function bs(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Ik;cZ&&cZ(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){let a=r(i);a!==i&&(Gze(t)||(t[n]=a),i=a)}e[i]=!0}return e}function Xze(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:sGe(),t=o(Tt=>bZ(Tt),"DOMPurify");if(t.version="3.4.0",t.removed=[],!e||!e.document||e.document.nodeType!==jx.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:h,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=e,g=u.prototype,y=Yx(g,"cloneNode"),v=Yx(g,"remove"),x=Yx(g,"nextSibling"),b=Yx(g,"childNodes"),T=Yx(g,"parentNode");if(typeof s=="function"){let Tt=r.createElement("template");Tt.content&&Tt.content.ownerDocument&&(r=Tt.content.ownerDocument)}let k,C="",{implementation:w,createNodeIterator:S,createDocumentFragment:R,getElementsByTagName:L}=r,{importNode:N}=n,I=gZ();t.isSupported=typeof yZ=="function"&&typeof T=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:_,ERB_EXPR:A,TMPLIT_EXPR:M,DATA_ATTR:D,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:$}=mZ,{IS_ALLOWED_URI:V}=mZ,G=null,z=Zr({},[...hZ,...d7,...f7,...p7,...dZ]),W=null,H=Zr({},[...fZ,...m7,...pZ,...Dk]),j=Object.seal(Xx(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Q=null,U=null,oe=Object.seal(Xx(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),te=!0,le=!0,ie=!1,ae=!0,Re=!1,be=!0,Pe=!1,Ge=!1,Oe=!1,ue=!1,ye=!1,ke=!1,ce=!0,re=!1,J="user-content-",se=!0,ge=!1,Te={},we=null,Me=Zr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ve=null,ne=Zr({},["audio","video","img","source","image","track"]),q=null,he=Zr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),X="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",K="http://www.w3.org/1999/xhtml",qe=K,_e=!1,Be=null,Ne=Zr({},[X,fe,K],u7),He=Zr({},["mi","mo","mn","ms","mtext"]),$e=Zr({},["annotation-xml"]),Xe=Zr({},["title","style","font","a","script"]),Fe=null,Ke=["application/xhtml+xml","text/html"],xe="text/html",mt=null,Le=null,ft=r.createElement("form"),wt=o(function(De){return De instanceof RegExp||De instanceof Function},"isRegexOrFunction"),zt=o(function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Le&&Le===De)){if((!De||typeof De!="object")&&(De={}),De=Oc(De),Fe=Ke.indexOf(De.PARSER_MEDIA_TYPE)===-1?xe:De.PARSER_MEDIA_TYPE,mt=Fe==="application/xhtml+xml"?u7:Ik,G=zl(De,"ALLOWED_TAGS")?Zr({},De.ALLOWED_TAGS,mt):z,W=zl(De,"ALLOWED_ATTR")?Zr({},De.ALLOWED_ATTR,mt):H,Be=zl(De,"ALLOWED_NAMESPACES")?Zr({},De.ALLOWED_NAMESPACES,u7):Ne,q=zl(De,"ADD_URI_SAFE_ATTR")?Zr(Oc(he),De.ADD_URI_SAFE_ATTR,mt):he,ve=zl(De,"ADD_DATA_URI_TAGS")?Zr(Oc(ne),De.ADD_DATA_URI_TAGS,mt):ne,we=zl(De,"FORBID_CONTENTS")?Zr({},De.FORBID_CONTENTS,mt):Me,Q=zl(De,"FORBID_TAGS")?Zr({},De.FORBID_TAGS,mt):Oc({}),U=zl(De,"FORBID_ATTR")?Zr({},De.FORBID_ATTR,mt):Oc({}),Te=zl(De,"USE_PROFILES")?De.USE_PROFILES:!1,te=De.ALLOW_ARIA_ATTR!==!1,le=De.ALLOW_DATA_ATTR!==!1,ie=De.ALLOW_UNKNOWN_PROTOCOLS||!1,ae=De.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=De.SAFE_FOR_TEMPLATES||!1,be=De.SAFE_FOR_XML!==!1,Pe=De.WHOLE_DOCUMENT||!1,ue=De.RETURN_DOM||!1,ye=De.RETURN_DOM_FRAGMENT||!1,ke=De.RETURN_TRUSTED_TYPE||!1,Oe=De.FORCE_BODY||!1,ce=De.SANITIZE_DOM!==!1,re=De.SANITIZE_NAMED_PROPS||!1,se=De.KEEP_CONTENT!==!1,ge=De.IN_PLACE||!1,V=De.ALLOWED_URI_REGEXP||vZ,qe=De.NAMESPACE||K,He=De.MATHML_TEXT_INTEGRATION_POINTS||He,$e=De.HTML_INTEGRATION_POINTS||$e,j=De.CUSTOM_ELEMENT_HANDLING||Xx(null),De.CUSTOM_ELEMENT_HANDLING&&wt(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=De.CUSTOM_ELEMENT_HANDLING.tagNameCheck),De.CUSTOM_ELEMENT_HANDLING&&wt(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),De.CUSTOM_ELEMENT_HANDLING&&typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(le=!1),ye&&(ue=!0),Te&&(G=Zr({},dZ),W=Xx(null),Te.html===!0&&(Zr(G,hZ),Zr(W,fZ)),Te.svg===!0&&(Zr(G,d7),Zr(W,m7),Zr(W,Dk)),Te.svgFilters===!0&&(Zr(G,f7),Zr(W,m7),Zr(W,Dk)),Te.mathMl===!0&&(Zr(G,p7),Zr(W,pZ),Zr(W,Dk))),oe.tagCheck=null,oe.attributeCheck=null,De.ADD_TAGS&&(typeof De.ADD_TAGS=="function"?oe.tagCheck=De.ADD_TAGS:(G===z&&(G=Oc(G)),Zr(G,De.ADD_TAGS,mt))),De.ADD_ATTR&&(typeof De.ADD_ATTR=="function"?oe.attributeCheck=De.ADD_ATTR:(W===H&&(W=Oc(W)),Zr(W,De.ADD_ATTR,mt))),De.ADD_URI_SAFE_ATTR&&Zr(q,De.ADD_URI_SAFE_ATTR,mt),De.FORBID_CONTENTS&&(we===Me&&(we=Oc(we)),Zr(we,De.FORBID_CONTENTS,mt)),De.ADD_FORBID_CONTENTS&&(we===Me&&(we=Oc(we)),Zr(we,De.ADD_FORBID_CONTENTS,mt)),se&&(G["#text"]=!0),Pe&&Zr(G,["html","head","body"]),G.table&&(Zr(G,["tbody"]),delete Q.tbody),De.TRUSTED_TYPES_POLICY){if(typeof De.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ux('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof De.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ux('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=De.TRUSTED_TYPES_POLICY,C=k.createHTML("")}else k===void 0&&(k=oGe(m,i)),k!==null&&typeof C=="string"&&(C=k.createHTML(""));xs&&xs(De),Le=De}},"_parseConfig"),St=Zr({},[...d7,...f7,...Kze]),At=Zr({},[...p7,...Zze]),bt=o(function(De){let it=T(De);(!it||!it.tagName)&&(it={namespaceURI:qe,tagName:"template"});let We=Ik(De.tagName),rt=Ik(it.tagName);return Be[De.namespaceURI]?De.namespaceURI===fe?it.namespaceURI===K?We==="svg":it.namespaceURI===X?We==="svg"&&(rt==="annotation-xml"||He[rt]):!!St[We]:De.namespaceURI===X?it.namespaceURI===K?We==="math":it.namespaceURI===fe?We==="math"&&$e[rt]:!!At[We]:De.namespaceURI===K?it.namespaceURI===fe&&!$e[rt]||it.namespaceURI===X&&!He[rt]?!1:!At[We]&&(Xe[We]||!St[We]):!!(Fe==="application/xhtml+xml"&&Be[De.namespaceURI]):!1},"_checkValidNamespace"),me=o(function(De){Hx(t.removed,{element:De});try{T(De).removeChild(De)}catch{v(De)}},"_forceRemove"),lt=o(function(De,it){try{Hx(t.removed,{attribute:it.getAttributeNode(De),from:it})}catch{Hx(t.removed,{attribute:null,from:it})}if(it.removeAttribute(De),De==="is")if(ue||ye)try{me(it)}catch{}else try{it.setAttribute(De,"")}catch{}},"_removeAttribute"),gt=o(function(De){let it=null,We=null;if(Oe)De=" "+De;else{let Yt=h7(De,/^[\r\n\t ]+/);We=Yt&&Yt[0]}Fe==="application/xhtml+xml"&&qe===K&&(De=''+De+"");let rt=k?k.createHTML(De):De;if(qe===K)try{it=new p().parseFromString(rt,Fe)}catch{}if(!it||!it.documentElement){it=w.createDocument(qe,"template",null);try{it.documentElement.innerHTML=_e?C:rt}catch{}}let yt=it.body||it.documentElement;return De&&We&&yt.insertBefore(r.createTextNode(We),yt.childNodes[0]||null),qe===K?L.call(it,Pe?"html":"body")[0]:Pe?it.documentElement:yt},"_initDocument"),Ze=o(function(De){return S.call(De.ownerDocument||De,De,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),Ee=o(function(De){return De instanceof f&&(typeof De.nodeName!="string"||typeof De.textContent!="string"||typeof De.removeChild!="function"||!(De.attributes instanceof d)||typeof De.removeAttribute!="function"||typeof De.setAttribute!="function"||typeof De.namespaceURI!="string"||typeof De.insertBefore!="function"||typeof De.hasChildNodes!="function")},"_isClobbered"),tt=o(function(De){return typeof l=="function"&&De instanceof l},"_isNode");function at(Tt,De,it){qx(Tt,We=>{We.call(t,De,it,Le)})}o(at,"_executeHooks");let ot=o(function(De){let it=null;if(at(I.beforeSanitizeElements,De,null),Ee(De))return me(De),!0;let We=mt(De.nodeName);if(at(I.uponSanitizeElement,De,{tagName:We,allowedTags:G}),be&&De.hasChildNodes()&&!tt(De.firstElementChild)&&vs(/<[/\w!]/g,De.innerHTML)&&vs(/<[/\w!]/g,De.textContent)||be&&De.namespaceURI===K&&We==="style"&&tt(De.firstElementChild)||De.nodeType===jx.progressingInstruction||be&&De.nodeType===jx.comment&&vs(/<[/\w]/g,De.data))return me(De),!0;if(Q[We]||!(oe.tagCheck instanceof Function&&oe.tagCheck(We))&&!G[We]){if(!Q[We]&&Bt(We)&&(j.tagNameCheck instanceof RegExp&&vs(j.tagNameCheck,We)||j.tagNameCheck instanceof Function&&j.tagNameCheck(We)))return!1;if(se&&!we[We]){let rt=T(De)||De.parentNode,yt=b(De)||De.childNodes;if(yt&&rt){let Yt=yt.length;for(let Ht=Yt-1;Ht>=0;--Ht){let pr=y(yt[Ht],!0);pr.__removalCount=(De.__removalCount||0)+1,rt.insertBefore(pr,x(De))}}}return me(De),!0}return De instanceof u&&!bt(De)||(We==="noscript"||We==="noembed"||We==="noframes")&&vs(/<\/no(script|embed|frames)/i,De.innerHTML)?(me(De),!0):(Re&&De.nodeType===jx.text&&(it=De.textContent,qx([_,A,M],rt=>{it=q0(it,rt," ")}),De.textContent!==it&&(Hx(t.removed,{element:De.cloneNode()}),De.textContent=it)),at(I.afterSanitizeElements,De,null),!1)},"_sanitizeElements"),Wt=o(function(De,it,We){if(U[it]||ce&&(it==="id"||it==="name")&&(We in r||We in ft))return!1;if(!(le&&!U[it]&&vs(D,it))){if(!(te&&vs(P,it))){if(!(oe.attributeCheck instanceof Function&&oe.attributeCheck(it,De))){if(!W[it]||U[it]){if(!(Bt(De)&&(j.tagNameCheck instanceof RegExp&&vs(j.tagNameCheck,De)||j.tagNameCheck instanceof Function&&j.tagNameCheck(De))&&(j.attributeNameCheck instanceof RegExp&&vs(j.attributeNameCheck,it)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(it,De))||it==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&vs(j.tagNameCheck,We)||j.tagNameCheck instanceof Function&&j.tagNameCheck(We))))return!1}else if(!q[it]){if(!vs(V,q0(We,O,""))){if(!((it==="src"||it==="xlink:href"||it==="href")&&De!=="script"&&Uze(We,"data:")===0&&ve[De])){if(!(ie&&!vs(B,q0(We,O,"")))){if(We)return!1}}}}}}}return!0},"_isValidAttribute"),Bt=o(function(De){return De!=="annotation-xml"&&h7(De,$)},"_isBasicCustomElement"),qt=o(function(De){at(I.beforeSanitizeAttributes,De,null);let{attributes:it}=De;if(!it||Ee(De))return;let We={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0},rt=it.length;for(;rt--;){let yt=it[rt],{name:Yt,namespaceURI:Ht,value:pr}=yt,Hr=mt(Yt),Er=pr,kt=Yt==="value"?Er:Yze(Er);if(We.attrName=Hr,We.attrValue=kt,We.keepAttr=!0,We.forceKeepAttr=void 0,at(I.uponSanitizeAttribute,De,We),kt=We.attrValue,re&&(Hr==="id"||Hr==="name")&&(lt(Yt,De),kt=J+kt),be&&vs(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,kt)){lt(Yt,De);continue}if(Hr==="attributename"&&h7(kt,"href")){lt(Yt,De);continue}if(We.forceKeepAttr)continue;if(!We.keepAttr){lt(Yt,De);continue}if(!ae&&vs(/\/>/i,kt)){lt(Yt,De);continue}Re&&qx([_,A,M],Ot=>{kt=q0(kt,Ot," ")});let Ct=mt(De.nodeName);if(!Wt(Ct,Hr,kt)){lt(Yt,De);continue}if(k&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Ht)switch(m.getAttributeType(Ct,Hr)){case"TrustedHTML":{kt=k.createHTML(kt);break}case"TrustedScriptURL":{kt=k.createScriptURL(kt);break}}if(kt!==Er)try{Ht?De.setAttributeNS(Ht,Yt,kt):De.setAttribute(Yt,kt),Ee(De)?me(De):uZ(t.removed)}catch{lt(Yt,De)}}at(I.afterSanitizeAttributes,De,null)},"_sanitizeAttributes"),vr=o(function(De){let it=null,We=Ze(De);for(at(I.beforeSanitizeShadowDOM,De,null);it=We.nextNode();)at(I.uponSanitizeShadowNode,it,null),ot(it),qt(it),it.content instanceof a&&vr(it.content);at(I.afterSanitizeShadowDOM,De,null)},"_sanitizeShadowDOM");return t.sanitize=function(Tt){let De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=null,We=null,rt=null,yt=null;if(_e=!Tt,_e&&(Tt=""),typeof Tt!="string"&&!tt(Tt))if(typeof Tt.toString=="function"){if(Tt=Tt.toString(),typeof Tt!="string")throw Ux("dirty is not a string, aborting")}else throw Ux("toString is not a function");if(!t.isSupported)return Tt;if(Ge||zt(De),t.removed=[],typeof Tt=="string"&&(ge=!1),ge){if(Tt.nodeName){let pr=mt(Tt.nodeName);if(!G[pr]||Q[pr])throw Ux("root node is forbidden and cannot be sanitized in-place")}}else if(Tt instanceof l)it=gt(""),We=it.ownerDocument.importNode(Tt,!0),We.nodeType===jx.element&&We.nodeName==="BODY"||We.nodeName==="HTML"?it=We:it.appendChild(We);else{if(!ue&&!Re&&!Pe&&Tt.indexOf("<")===-1)return k&&ke?k.createHTML(Tt):Tt;if(it=gt(Tt),!it)return ue?null:ke?C:""}it&&Oe&&me(it.firstChild);let Yt=Ze(ge?Tt:it);for(;rt=Yt.nextNode();)ot(rt),qt(rt),rt.content instanceof a&&vr(rt.content);if(ge)return Tt;if(ue){if(Re){it.normalize();let pr=it.innerHTML;qx([_,A,M],Hr=>{pr=q0(pr,Hr," ")}),it.innerHTML=pr}if(ye)for(yt=R.call(it.ownerDocument);it.firstChild;)yt.appendChild(it.firstChild);else yt=it;return(W.shadowroot||W.shadowrootmode)&&(yt=N.call(n,yt,!0)),yt}let Ht=Pe?it.outerHTML:it.innerHTML;return Pe&&G["!doctype"]&&it.ownerDocument&&it.ownerDocument.doctype&&it.ownerDocument.doctype.name&&vs(xZ,it.ownerDocument.doctype.name)&&(Ht="
+`+Ht),Re&&qx([_,A,M],pr=>{Ht=q0(Ht,pr," ")}),k&&ke?k.createHTML(Ht):Ht},t.setConfig=function(){let Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zt(Tt),Ge=!0},t.clearConfig=function(){Le=null,Ge=!1},t.isValidAttribute=function(Tt,De,it){Le||zt({});let We=mt(Tt),rt=mt(De);return Wt(We,rt,it)},t.addHook=function(Tt,De){typeof De=="function"&&Hx(I[Tt],De)},t.removeHook=function(Tt,De){if(De!==void 0){let it=qze(I[Tt],De);return it===-1?void 0:Hze(I[Tt],it,1)[0]}return uZ(I[Tt])},t.removeHooks=function(Tt){I[Tt]=[]},t.removeAllHooks=function(){I=gZ()},t}var yZ,cZ,Gze,Vze,Wze,xs,ol,Xx,g7,y7,qx,qze,uZ,Hx,Hze,Ik,u7,h7,q0,Uze,Yze,zl,vs,Ux,hZ,d7,f7,Kze,p7,Zze,dZ,fZ,m7,pZ,Dk,Qze,Jze,eGe,tGe,rGe,vZ,nGe,iGe,xZ,aGe,mZ,jx,sGe,oGe,gZ,Zs,H0=F(()=>{"use strict";({entries:yZ,setPrototypeOf:cZ,isFrozen:Gze,getPrototypeOf:Vze,getOwnPropertyDescriptor:Wze}=Object),{freeze:xs,seal:ol,create:Xx}=Object,{apply:g7,construct:y7}=typeof Reflect<"u"&&Reflect;xs||(xs=o(function(t){return t},"freeze"));ol||(ol=o(function(t){return t},"seal"));g7||(g7=o(function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a1?r-1:0),i=1;i/gm),eGe=ol(/\$\{[\w\W]*/gm),tGe=ol(/^data-[\-\w.\u00B7-\uFFFF]+$/),rGe=ol(/^aria-[\-\w]+$/),vZ=ol(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nGe=ol(/^(?:\w+script|data):/i),iGe=ol(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xZ=ol(/^html$/i),aGe=ol(/^[a-z][.\w]*(-[.\w]+)+$/i),mZ=Object.freeze({__proto__:null,ARIA_ATTR:rGe,ATTR_WHITESPACE:iGe,CUSTOM_ELEMENT:aGe,DATA_ATTR:tGe,DOCTYPE_NAME:xZ,ERB_EXPR:Jze,IS_ALLOWED_URI:vZ,IS_SCRIPT_OR_DATA:nGe,MUSTACHE_EXPR:Qze,TMPLIT_EXPR:eGe}),jx={element:1,text:3,progressingInstruction:7,comment:8,document:9},sGe=o(function(){return typeof window>"u"?null:window},"getGlobal"),oGe=o(function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null,i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));let a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},"_createTrustedTypesPolicy"),gZ=o(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},"_createHooksMap");o(bZ,"createDOMPurify");Zs=bZ()});var KQ={};ir(KQ,{ParseError:()=>Pt,SETTINGS_SCHEMA:()=>Uk,__defineFunction:()=>Ut,__defineMacro:()=>Ce,__defineSymbol:()=>Y,__domTree:()=>XQ,__parse:()=>HQ,__renderToDomTree:()=>fS,__renderToHTMLTree:()=>YQ,__setFontMetrics:()=>tQ,default:()=>GVe,render:()=>o8,renderToString:()=>qQ,version:()=>jQ});function fGe(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}function bGe(e){for(var t=0;t=i[0]&&e<=i[1])return r.name}return null}function KZ(e){for(var t=0;t=Hk[t]&&e<=Hk[t+1])return!0;return!1}function NGe(e){if(e instanceof ws)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function PGe(e){if(e instanceof Ad)return e;throw new Error("Expected span but got "+String(e)+".")}function tQ(e,t){Fc[e]=t}function X7(e,t,r){if(!Fc[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=Fc[t][n];if(!i&&e[0]in CZ&&(n=CZ[e[0]].charCodeAt(0),i=Fc[t][n]),!i&&r==="text"&&KZ(n)&&(i=Fc[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function BGe(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!v7[t]){var r=v7[t]={cssEmPerMu:Mk.quad[t]/18};for(var n in Mk)Mk.hasOwnProperty(n)&&(r[n]=Mk[n][t])}return v7[t]}function Y(e,t,r,n,i,a){ui[e][i]={font:t,group:r,replace:n},a&&n&&(ui[e][n]=ui[e][i])}function Ut(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,l={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u0&&(a.push(zk(s,t)),s=[]),a.push(n[l]));s.length>0&&a.push(zk(s,t));var h;r?(h=zk(ia(r,t,!0),t),h.classes=["tag"],a.push(h)):i&&a.push(i);var d=Mt(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),h){var f=h.children[0];f.style.height=$t(d.height+d.depth),d.depth&&(f.style.verticalAlign=$t(-d.depth))}return d}function cQ(e){return new Sd(e)}function T7(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Ei&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Ei&&r.text===","}else return!1}function EZ(e,t,r,n,i){var a=Po(e,r),s;a.length===1&&a[0]instanceof Nt&&QGe.has(a[0].type)?s=a[0]:s=new Nt("mrow",a);var l=new Nt("annotation",[new Ei(t)]);l.setAttribute("encoding","application/x-tex");var u=new Nt("semantics",[s,l]),h=new Nt("math",[u]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Mt([d],[h])}function Ur(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function sS(e){var t=oS(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function oS(e){return e&&(e.type==="atom"||FGe.hasOwnProperty(e.type))?e:null}function pQ(e,t){var r=ia(e.body,t,!0);return Mt([e.mclass],r,t)}function mQ(e,t){var r,n=Po(e.body,t);return e.mclass==="minner"?r=new Nt("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new Nt("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new Nt("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}function cVe(e,t,r){var n=oVe[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),l=r.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,l]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function uVe(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Pt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;aAV".includes(h))for(var f=0;f<2;f++){for(var p=!0,m=u+1;mAV=|." after @',s[u]);var g=cVe(h,d,e),y={type:"styling",body:[g],mode:"math",style:"display"};n.push(y),l=_Z()}a%2===0?n.push(l):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var v=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}function cS(e,t){var r=oS(e);if(r&&TVe.has(r.text))return r;throw r?new Pt("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Pt("Invalid delimiter type '"+e.type+"'",e)}function IZ(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function Gc(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,l={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u1||!d)&&y.pop(),x.length{"use strict";Pt=class e extends Error{static{o(this,"ParseError")}constructor(t,r){var n="KaTeX parse error: "+t,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var l=s.lexer.input;i=s.start,a=s.end,i===l.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=l.slice(i,a).replace(/[^]/g,"$&\u0332"),h;i>15?h="\u2026"+l.slice(i-15,i):h=l.slice(0,i);var d;a+15e.replace(lGe,"-$1").toLowerCase(),"hyphenate"),cGe={"&":"&",">":">","<":"<",'"':""","'":"'"},uGe=/[&><"']/g,es=o(e=>String(e).replace(uGe,t=>cGe[t]),"escape"),qk=o(e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?qk(e.body[0]):e:e.type==="font"?qk(e.body):e,"getBaseElem"),hGe=new Set(["mathord","textord","atom"]),ih=o(e=>hGe.has(qk(e).type),"isCharacterBox"),dGe=o(e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|*58|*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},"protocolFromUrl"),Uk={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:o(e=>"#"+e,"cliProcessor")},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:o((e,t)=>(t.push(e),t),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:o(e=>Math.max(0,e),"processor"),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:o(e=>Math.max(0,e),"processor"),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:o(e=>Math.max(0,e),"processor"),cli:"-e, --max-expand ",cliProcessor:o(e=>e==="Infinity"?1/0:parseInt(e),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}};o(fGe,"getDefaultValue");eb=class{static{o(this,"Settings")}constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(Uk)){var n=Uk[r],i=t[r];this[r]=i!==void 0?n.processor?n.processor(i):i:fGe(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Pt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=dGe(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}},Bc=class{static{o(this,"Style")}constructor(t,r,n){this.id=t,this.size=r,this.cramped=n}sup(){return $c[pGe[this.id]]}sub(){return $c[mGe[this.id]]}fracNum(){return $c[gGe[this.id]]}fracDen(){return $c[yGe[this.id]]}cramp(){return $c[vGe[this.id]]}text(){return $c[xGe[this.id]]}isTight(){return this.size>=2}},j7=0,Yk=1,Y0=2,nh=3,tb=4,ll=5,j0=6,Cs=7,$c=[new Bc(j7,0,!1),new Bc(Yk,0,!0),new Bc(Y0,1,!1),new Bc(nh,1,!0),new Bc(tb,2,!1),new Bc(ll,2,!0),new Bc(j0,3,!1),new Bc(Cs,3,!0)],pGe=[tb,ll,tb,ll,j0,Cs,j0,Cs],mGe=[ll,ll,ll,ll,Cs,Cs,Cs,Cs],gGe=[Y0,nh,tb,ll,j0,Cs,j0,Cs],yGe=[nh,nh,ll,ll,Cs,Cs,Cs,Cs],vGe=[Yk,Yk,nh,nh,ll,ll,Cs,Cs],xGe=[j7,Yk,Y0,nh,Y0,nh,Y0,nh],Fr={DISPLAY:$c[j7],TEXT:$c[Y0],SCRIPT:$c[tb],SCRIPTSCRIPT:$c[j0]},I7=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];o(bGe,"scriptFromCodepoint");Hk=[];I7.forEach(e=>e.blocks.forEach(t=>Hk.push(...t)));o(KZ,"supportedCodepoint");na=o(e=>e+" "+e,"doubleBrushStroke"),U0=80,TGe=o(function(t,r){return"M95,"+(622+t+r)+`
+c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
+c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
+c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
+s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
+c69,-144,104.5,-217.7,106.5,-221
+l`+t/2.075+" -"+t+`
+c5.3,-9.3,12,-14,20,-14
+H400000v`+(40+t)+`H845.2724
+s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
+c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
+M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},"sqrtMain"),CGe=o(function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
+c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
+c340,-704.7,510.7,-1060.3,512,-1067
+l`+t/2.084+" -"+t+`
+c4.7,-7.3,11,-11,19,-11
+H40000v`+(40+t)+`H1012.3
+s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
+c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
+s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
+c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
+M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},"sqrtSize1"),wGe=o(function(t,r){return"M983 "+(10+t+r)+`
+l`+t/3.13+" -"+t+`
+c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
+H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
+s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
+c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
+c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
+c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
+c53.7,-170.3,84.5,-266.8,92.5,-289.5z
+M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},"sqrtSize2"),kGe=o(function(t,r){return"M424,"+(2398+t+r)+`
+c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
+c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
+s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
+s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
+l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
+v`+(40+t)+`H1014.6
+s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
+c-2,6,-10,9,-24,9
+c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
+h400000v`+(40+t)+"h-400000z"},"sqrtSize3"),SGe=o(function(t,r){return"M473,"+(2713+t+r)+`
+c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
+c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
+s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
+c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
+c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
+s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
+606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},"sqrtSize4"),EGe=o(function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},"phasePath"),AGe=o(function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
+H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
+h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
+c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
+219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},"sqrtTall"),RGe=o(function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=TGe(r,U0);break;case"sqrtSize1":i=CGe(r,U0);break;case"sqrtSize2":i=wGe(r,U0);break;case"sqrtSize3":i=kGe(r,U0);break;case"sqrtSize4":i=SGe(r,U0);break;case"sqrtTall":i=AGe(r,U0,n)}return i},"sqrtPath"),_Ge=o(function(t,r){switch(t){case"\u239C":return na("M291 0 H417 V"+r+" H291z");case"\u2223":return na("M145 0 H188 V"+r+" H145z");case"\u2225":return na("M145 0 H188 V"+r+" H145z")+na("M367 0 H410 V"+r+" H367z");case"\u239F":return na("M457 0 H583 V"+r+" H457z");case"\u23A2":return na("M319 0 H403 V"+r+" H319z");case"\u23A5":return na("M263 0 H347 V"+r+" H263z");case"\u23AA":return na("M384 0 H504 V"+r+" H384z");case"\u23D0":return na("M312 0 H355 V"+r+" H312z");case"\u2016":return na("M257 0 H300 V"+r+" H257z")+na("M478 0 H521 V"+r+" H478z");default:return""}},"innerPath"),TZ={doubleleftarrow:`M262 157
+l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
+ 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
+ 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
+c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
+ 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
+-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
+-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
+m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
+-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
+ 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
+-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
+-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
+-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
+c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
+-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
+ 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
+-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
+c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
+ 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
+ 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
+-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
+ 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
+ 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
+-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
+H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
+ 435 0h399565z`,leftgroupunder:`M400000 262
+H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
+-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
+-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
+-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
+ 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
+-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
+-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
+m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
+ 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
+-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
+ 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
+-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
+v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
+-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
+-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:na("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:na("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:na("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:na("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
+-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
+c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:na("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
+c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
+-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
+ 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
+c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
+ 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
+-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
+-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
+m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
+60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
+-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
+m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
+c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
+-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
+m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
+85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
+-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
+m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
+c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
+-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
+ 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
+ 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
+-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
+-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
+-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
+s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
+c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
+-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
+ 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
+ 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
+-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
+-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
+ 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
+-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
+ 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
+m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
+ 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
+-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
+-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
+ 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
+ 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
+-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
+m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
+ 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
+-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:na("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:na("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:na("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
+-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
+-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
+ 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
+-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
+-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
+-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
+ 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
+c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
+ 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
+-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
+ 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
+-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
+ 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
+-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
+-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
+c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
+ 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
+-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
+-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
+ -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
+3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
+10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
+-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
+-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
+H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
+c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
+c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
+-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
+-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
+-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
+-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
+-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
+-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
+-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
+c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
+c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
+s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
+121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
+s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
+c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
+M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
+-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
+13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
+-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
+-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
+-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
+151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
+c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
+c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
+c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
+c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
+M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
+c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
+-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
+c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
+M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
+c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
+1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
+-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
+M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
+c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
+-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
+c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
+M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},LGe=o(function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
+H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
+M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
+c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
+c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
+c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
+c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
+M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
+c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
+c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
+MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
+MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
+M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
+M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
+c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
+-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
+949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
+c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
+-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
+l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
+-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
+63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
+c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
+c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
+c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
+c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
+c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
+l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
+-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim"),Sd=class{static{o(this,"DocumentFragment")}constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;rr.toText(),"toText");return this.children.map(t).join("")}},M7={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},DGe={ex:!0,em:!0,mu:!0},ZZ=o(function(t){return typeof t!="string"&&(t=t.unit),t in M7||t in DGe||t==="ex"},"validUnit"),xi=o(function(t,r){var n;if(t.unit in M7)n=M7[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new Pt("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},"calculateSize"),$t=o(function(t){return+t.toFixed(4)+"em"},"makeEm"),Ed=o(function(t){return t.filter(r=>r).join(" ")},"createClass"),QZ=o(function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},"initNode"),JZ=o(function(t){var r=document.createElement(t);r.className=Ed(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,eQ=o(function(t){var r="<"+t;this.classes.length&&(r+=' class="'+es(Ed(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=Y7(i)+":"+this.style[i]+";";n&&(r+=' style="'+es(n)+'"');for(var a of Object.keys(this.attributes)){if(IGe.test(a))throw new Pt("Invalid attribute name '"+a+"'");r+=" "+a+'="'+es(this.attributes[a])+'"'}r+=">";for(var s=0;s",r},"toMarkup"),Ad=class{static{o(this,"Span")}constructor(t,r,n,i){QZ.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return JZ.call(this,"span")}toMarkup(){return eQ.call(this,"span")}},X0=class{static{o(this,"Anchor")}constructor(t,r,n,i){QZ.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return JZ.call(this,"a")}toMarkup(){return eQ.call(this,"a")}},N7=class{static{o(this,"Img")}constructor(t,r,n){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='
",t}},MGe={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},ws=class{static{o(this,"SymbolNode")}constructor(t,r,n,i,a,s,l,u){this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=s||0,this.classes=l||[],this.style=u||{},this.maxFontSize=0;var h=bGe(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=MGe[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=$t(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Ed(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="0&&(n+="margin-right:"+$t(this.italic)+";");for(var i of Object.keys(this.style))n+=Y7(i)+":"+this.style[i]+";";n&&(t=!0,r+=' style="'+es(n)+'"');var a=es(this.text);return t?(r+=">",r+=a,r+="",r):a}},Gl=class{static{o(this,"SvgNode")}constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i";for(var n=0;n",t}},zc=class{static{o(this,"PathNode")}constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",TZ[this.pathName]),r}toMarkup(){return this.alternate?' ':' '}},rb=class{static{o(this,"LineNode")}constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t=" ",t}};o(NGe,"assertSymbolDomNode");o(PGe,"assertSpan");OGe=o(e=>e instanceof Ad||e instanceof X0||e instanceof Sd,"hasHtmlDomChildren"),Fc={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Mk={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},CZ={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};o(tQ,"setFontMetrics");o(X7,"getCharacterMetrics");v7={};o(BGe,"getGlobalMetrics");$Ge={bin:1,close:1,inner:1,open:1,punct:1,rel:1},FGe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ui={math:{},text:{}};o(Y,"defineSymbol");ee="math",Lt="text",pe="main",ze="ams",hi="accent-token",jt="bin",ks="close",Q0="inner",xr="mathord",Hi="op-token",No="open",ib="punct",Ve="rel",ah="spacing",Ue="textord";Y(ee,pe,Ve,"\u2261","\\equiv",!0);Y(ee,pe,Ve,"\u227A","\\prec",!0);Y(ee,pe,Ve,"\u227B","\\succ",!0);Y(ee,pe,Ve,"\u223C","\\sim",!0);Y(ee,pe,Ve,"\u22A5","\\perp");Y(ee,pe,Ve,"\u2AAF","\\preceq",!0);Y(ee,pe,Ve,"\u2AB0","\\succeq",!0);Y(ee,pe,Ve,"\u2243","\\simeq",!0);Y(ee,pe,Ve,"\u2223","\\mid",!0);Y(ee,pe,Ve,"\u226A","\\ll",!0);Y(ee,pe,Ve,"\u226B","\\gg",!0);Y(ee,pe,Ve,"\u224D","\\asymp",!0);Y(ee,pe,Ve,"\u2225","\\parallel");Y(ee,pe,Ve,"\u22C8","\\bowtie",!0);Y(ee,pe,Ve,"\u2323","\\smile",!0);Y(ee,pe,Ve,"\u2291","\\sqsubseteq",!0);Y(ee,pe,Ve,"\u2292","\\sqsupseteq",!0);Y(ee,pe,Ve,"\u2250","\\doteq",!0);Y(ee,pe,Ve,"\u2322","\\frown",!0);Y(ee,pe,Ve,"\u220B","\\ni",!0);Y(ee,pe,Ve,"\u221D","\\propto",!0);Y(ee,pe,Ve,"\u22A2","\\vdash",!0);Y(ee,pe,Ve,"\u22A3","\\dashv",!0);Y(ee,pe,Ve,"\u220B","\\owns");Y(ee,pe,ib,".","\\ldotp");Y(ee,pe,ib,"\u22C5","\\cdotp");Y(ee,pe,ib,"\u22C5","\xB7");Y(Lt,pe,Ue,"\u22C5","\xB7");Y(ee,pe,Ue,"#","\\#");Y(Lt,pe,Ue,"#","\\#");Y(ee,pe,Ue,"&","\\&");Y(Lt,pe,Ue,"&","\\&");Y(ee,pe,Ue,"\u2135","\\aleph",!0);Y(ee,pe,Ue,"\u2200","\\forall",!0);Y(ee,pe,Ue,"\u210F","\\hbar",!0);Y(ee,pe,Ue,"\u2203","\\exists",!0);Y(ee,pe,Ue,"\u2207","\\nabla",!0);Y(ee,pe,Ue,"\u266D","\\flat",!0);Y(ee,pe,Ue,"\u2113","\\ell",!0);Y(ee,pe,Ue,"\u266E","\\natural",!0);Y(ee,pe,Ue,"\u2663","\\clubsuit",!0);Y(ee,pe,Ue,"\u2118","\\wp",!0);Y(ee,pe,Ue,"\u266F","\\sharp",!0);Y(ee,pe,Ue,"\u2662","\\diamondsuit",!0);Y(ee,pe,Ue,"\u211C","\\Re",!0);Y(ee,pe,Ue,"\u2661","\\heartsuit",!0);Y(ee,pe,Ue,"\u2111","\\Im",!0);Y(ee,pe,Ue,"\u2660","\\spadesuit",!0);Y(ee,pe,Ue,"\xA7","\\S",!0);Y(Lt,pe,Ue,"\xA7","\\S");Y(ee,pe,Ue,"\xB6","\\P",!0);Y(Lt,pe,Ue,"\xB6","\\P");Y(ee,pe,Ue,"\u2020","\\dag");Y(Lt,pe,Ue,"\u2020","\\dag");Y(Lt,pe,Ue,"\u2020","\\textdagger");Y(ee,pe,Ue,"\u2021","\\ddag");Y(Lt,pe,Ue,"\u2021","\\ddag");Y(Lt,pe,Ue,"\u2021","\\textdaggerdbl");Y(ee,pe,ks,"\u23B1","\\rmoustache",!0);Y(ee,pe,No,"\u23B0","\\lmoustache",!0);Y(ee,pe,ks,"\u27EF","\\rgroup",!0);Y(ee,pe,No,"\u27EE","\\lgroup",!0);Y(ee,pe,jt,"\u2213","\\mp",!0);Y(ee,pe,jt,"\u2296","\\ominus",!0);Y(ee,pe,jt,"\u228E","\\uplus",!0);Y(ee,pe,jt,"\u2293","\\sqcap",!0);Y(ee,pe,jt,"\u2217","\\ast");Y(ee,pe,jt,"\u2294","\\sqcup",!0);Y(ee,pe,jt,"\u25EF","\\bigcirc",!0);Y(ee,pe,jt,"\u2219","\\bullet",!0);Y(ee,pe,jt,"\u2021","\\ddagger");Y(ee,pe,jt,"\u2240","\\wr",!0);Y(ee,pe,jt,"\u2A3F","\\amalg");Y(ee,pe,jt,"&","\\And");Y(ee,pe,Ve,"\u27F5","\\longleftarrow",!0);Y(ee,pe,Ve,"\u21D0","\\Leftarrow",!0);Y(ee,pe,Ve,"\u27F8","\\Longleftarrow",!0);Y(ee,pe,Ve,"\u27F6","\\longrightarrow",!0);Y(ee,pe,Ve,"\u21D2","\\Rightarrow",!0);Y(ee,pe,Ve,"\u27F9","\\Longrightarrow",!0);Y(ee,pe,Ve,"\u2194","\\leftrightarrow",!0);Y(ee,pe,Ve,"\u27F7","\\longleftrightarrow",!0);Y(ee,pe,Ve,"\u21D4","\\Leftrightarrow",!0);Y(ee,pe,Ve,"\u27FA","\\Longleftrightarrow",!0);Y(ee,pe,Ve,"\u21A6","\\mapsto",!0);Y(ee,pe,Ve,"\u27FC","\\longmapsto",!0);Y(ee,pe,Ve,"\u2197","\\nearrow",!0);Y(ee,pe,Ve,"\u21A9","\\hookleftarrow",!0);Y(ee,pe,Ve,"\u21AA","\\hookrightarrow",!0);Y(ee,pe,Ve,"\u2198","\\searrow",!0);Y(ee,pe,Ve,"\u21BC","\\leftharpoonup",!0);Y(ee,pe,Ve,"\u21C0","\\rightharpoonup",!0);Y(ee,pe,Ve,"\u2199","\\swarrow",!0);Y(ee,pe,Ve,"\u21BD","\\leftharpoondown",!0);Y(ee,pe,Ve,"\u21C1","\\rightharpoondown",!0);Y(ee,pe,Ve,"\u2196","\\nwarrow",!0);Y(ee,pe,Ve,"\u21CC","\\rightleftharpoons",!0);Y(ee,ze,Ve,"\u226E","\\nless",!0);Y(ee,ze,Ve,"\uE010","\\@nleqslant");Y(ee,ze,Ve,"\uE011","\\@nleqq");Y(ee,ze,Ve,"\u2A87","\\lneq",!0);Y(ee,ze,Ve,"\u2268","\\lneqq",!0);Y(ee,ze,Ve,"\uE00C","\\@lvertneqq");Y(ee,ze,Ve,"\u22E6","\\lnsim",!0);Y(ee,ze,Ve,"\u2A89","\\lnapprox",!0);Y(ee,ze,Ve,"\u2280","\\nprec",!0);Y(ee,ze,Ve,"\u22E0","\\npreceq",!0);Y(ee,ze,Ve,"\u22E8","\\precnsim",!0);Y(ee,ze,Ve,"\u2AB9","\\precnapprox",!0);Y(ee,ze,Ve,"\u2241","\\nsim",!0);Y(ee,ze,Ve,"\uE006","\\@nshortmid");Y(ee,ze,Ve,"\u2224","\\nmid",!0);Y(ee,ze,Ve,"\u22AC","\\nvdash",!0);Y(ee,ze,Ve,"\u22AD","\\nvDash",!0);Y(ee,ze,Ve,"\u22EA","\\ntriangleleft");Y(ee,ze,Ve,"\u22EC","\\ntrianglelefteq",!0);Y(ee,ze,Ve,"\u228A","\\subsetneq",!0);Y(ee,ze,Ve,"\uE01A","\\@varsubsetneq");Y(ee,ze,Ve,"\u2ACB","\\subsetneqq",!0);Y(ee,ze,Ve,"\uE017","\\@varsubsetneqq");Y(ee,ze,Ve,"\u226F","\\ngtr",!0);Y(ee,ze,Ve,"\uE00F","\\@ngeqslant");Y(ee,ze,Ve,"\uE00E","\\@ngeqq");Y(ee,ze,Ve,"\u2A88","\\gneq",!0);Y(ee,ze,Ve,"\u2269","\\gneqq",!0);Y(ee,ze,Ve,"\uE00D","\\@gvertneqq");Y(ee,ze,Ve,"\u22E7","\\gnsim",!0);Y(ee,ze,Ve,"\u2A8A","\\gnapprox",!0);Y(ee,ze,Ve,"\u2281","\\nsucc",!0);Y(ee,ze,Ve,"\u22E1","\\nsucceq",!0);Y(ee,ze,Ve,"\u22E9","\\succnsim",!0);Y(ee,ze,Ve,"\u2ABA","\\succnapprox",!0);Y(ee,ze,Ve,"\u2246","\\ncong",!0);Y(ee,ze,Ve,"\uE007","\\@nshortparallel");Y(ee,ze,Ve,"\u2226","\\nparallel",!0);Y(ee,ze,Ve,"\u22AF","\\nVDash",!0);Y(ee,ze,Ve,"\u22EB","\\ntriangleright");Y(ee,ze,Ve,"\u22ED","\\ntrianglerighteq",!0);Y(ee,ze,Ve,"\uE018","\\@nsupseteqq");Y(ee,ze,Ve,"\u228B","\\supsetneq",!0);Y(ee,ze,Ve,"\uE01B","\\@varsupsetneq");Y(ee,ze,Ve,"\u2ACC","\\supsetneqq",!0);Y(ee,ze,Ve,"\uE019","\\@varsupsetneqq");Y(ee,ze,Ve,"\u22AE","\\nVdash",!0);Y(ee,ze,Ve,"\u2AB5","\\precneqq",!0);Y(ee,ze,Ve,"\u2AB6","\\succneqq",!0);Y(ee,ze,Ve,"\uE016","\\@nsubseteqq");Y(ee,ze,jt,"\u22B4","\\unlhd");Y(ee,ze,jt,"\u22B5","\\unrhd");Y(ee,ze,Ve,"\u219A","\\nleftarrow",!0);Y(ee,ze,Ve,"\u219B","\\nrightarrow",!0);Y(ee,ze,Ve,"\u21CD","\\nLeftarrow",!0);Y(ee,ze,Ve,"\u21CF","\\nRightarrow",!0);Y(ee,ze,Ve,"\u21AE","\\nleftrightarrow",!0);Y(ee,ze,Ve,"\u21CE","\\nLeftrightarrow",!0);Y(ee,ze,Ve,"\u25B3","\\vartriangle");Y(ee,ze,Ue,"\u210F","\\hslash");Y(ee,ze,Ue,"\u25BD","\\triangledown");Y(ee,ze,Ue,"\u25CA","\\lozenge");Y(ee,ze,Ue,"\u24C8","\\circledS");Y(ee,ze,Ue,"\xAE","\\circledR");Y(Lt,ze,Ue,"\xAE","\\circledR");Y(ee,ze,Ue,"\u2221","\\measuredangle",!0);Y(ee,ze,Ue,"\u2204","\\nexists");Y(ee,ze,Ue,"\u2127","\\mho");Y(ee,ze,Ue,"\u2132","\\Finv",!0);Y(ee,ze,Ue,"\u2141","\\Game",!0);Y(ee,ze,Ue,"\u2035","\\backprime");Y(ee,ze,Ue,"\u25B2","\\blacktriangle");Y(ee,ze,Ue,"\u25BC","\\blacktriangledown");Y(ee,ze,Ue,"\u25A0","\\blacksquare");Y(ee,ze,Ue,"\u29EB","\\blacklozenge");Y(ee,ze,Ue,"\u2605","\\bigstar");Y(ee,ze,Ue,"\u2222","\\sphericalangle",!0);Y(ee,ze,Ue,"\u2201","\\complement",!0);Y(ee,ze,Ue,"\xF0","\\eth",!0);Y(Lt,pe,Ue,"\xF0","\xF0");Y(ee,ze,Ue,"\u2571","\\diagup");Y(ee,ze,Ue,"\u2572","\\diagdown");Y(ee,ze,Ue,"\u25A1","\\square");Y(ee,ze,Ue,"\u25A1","\\Box");Y(ee,ze,Ue,"\u25CA","\\Diamond");Y(ee,ze,Ue,"\xA5","\\yen",!0);Y(Lt,ze,Ue,"\xA5","\\yen",!0);Y(ee,ze,Ue,"\u2713","\\checkmark",!0);Y(Lt,ze,Ue,"\u2713","\\checkmark");Y(ee,ze,Ue,"\u2136","\\beth",!0);Y(ee,ze,Ue,"\u2138","\\daleth",!0);Y(ee,ze,Ue,"\u2137","\\gimel",!0);Y(ee,ze,Ue,"\u03DD","\\digamma",!0);Y(ee,ze,Ue,"\u03F0","\\varkappa");Y(ee,ze,No,"\u250C","\\@ulcorner",!0);Y(ee,ze,ks,"\u2510","\\@urcorner",!0);Y(ee,ze,No,"\u2514","\\@llcorner",!0);Y(ee,ze,ks,"\u2518","\\@lrcorner",!0);Y(ee,ze,Ve,"\u2266","\\leqq",!0);Y(ee,ze,Ve,"\u2A7D","\\leqslant",!0);Y(ee,ze,Ve,"\u2A95","\\eqslantless",!0);Y(ee,ze,Ve,"\u2272","\\lesssim",!0);Y(ee,ze,Ve,"\u2A85","\\lessapprox",!0);Y(ee,ze,Ve,"\u224A","\\approxeq",!0);Y(ee,ze,jt,"\u22D6","\\lessdot");Y(ee,ze,Ve,"\u22D8","\\lll",!0);Y(ee,ze,Ve,"\u2276","\\lessgtr",!0);Y(ee,ze,Ve,"\u22DA","\\lesseqgtr",!0);Y(ee,ze,Ve,"\u2A8B","\\lesseqqgtr",!0);Y(ee,ze,Ve,"\u2251","\\doteqdot");Y(ee,ze,Ve,"\u2253","\\risingdotseq",!0);Y(ee,ze,Ve,"\u2252","\\fallingdotseq",!0);Y(ee,ze,Ve,"\u223D","\\backsim",!0);Y(ee,ze,Ve,"\u22CD","\\backsimeq",!0);Y(ee,ze,Ve,"\u2AC5","\\subseteqq",!0);Y(ee,ze,Ve,"\u22D0","\\Subset",!0);Y(ee,ze,Ve,"\u228F","\\sqsubset",!0);Y(ee,ze,Ve,"\u227C","\\preccurlyeq",!0);Y(ee,ze,Ve,"\u22DE","\\curlyeqprec",!0);Y(ee,ze,Ve,"\u227E","\\precsim",!0);Y(ee,ze,Ve,"\u2AB7","\\precapprox",!0);Y(ee,ze,Ve,"\u22B2","\\vartriangleleft");Y(ee,ze,Ve,"\u22B4","\\trianglelefteq");Y(ee,ze,Ve,"\u22A8","\\vDash",!0);Y(ee,ze,Ve,"\u22AA","\\Vvdash",!0);Y(ee,ze,Ve,"\u2323","\\smallsmile");Y(ee,ze,Ve,"\u2322","\\smallfrown");Y(ee,ze,Ve,"\u224F","\\bumpeq",!0);Y(ee,ze,Ve,"\u224E","\\Bumpeq",!0);Y(ee,ze,Ve,"\u2267","\\geqq",!0);Y(ee,ze,Ve,"\u2A7E","\\geqslant",!0);Y(ee,ze,Ve,"\u2A96","\\eqslantgtr",!0);Y(ee,ze,Ve,"\u2273","\\gtrsim",!0);Y(ee,ze,Ve,"\u2A86","\\gtrapprox",!0);Y(ee,ze,jt,"\u22D7","\\gtrdot");Y(ee,ze,Ve,"\u22D9","\\ggg",!0);Y(ee,ze,Ve,"\u2277","\\gtrless",!0);Y(ee,ze,Ve,"\u22DB","\\gtreqless",!0);Y(ee,ze,Ve,"\u2A8C","\\gtreqqless",!0);Y(ee,ze,Ve,"\u2256","\\eqcirc",!0);Y(ee,ze,Ve,"\u2257","\\circeq",!0);Y(ee,ze,Ve,"\u225C","\\triangleq",!0);Y(ee,ze,Ve,"\u223C","\\thicksim");Y(ee,ze,Ve,"\u2248","\\thickapprox");Y(ee,ze,Ve,"\u2AC6","\\supseteqq",!0);Y(ee,ze,Ve,"\u22D1","\\Supset",!0);Y(ee,ze,Ve,"\u2290","\\sqsupset",!0);Y(ee,ze,Ve,"\u227D","\\succcurlyeq",!0);Y(ee,ze,Ve,"\u22DF","\\curlyeqsucc",!0);Y(ee,ze,Ve,"\u227F","\\succsim",!0);Y(ee,ze,Ve,"\u2AB8","\\succapprox",!0);Y(ee,ze,Ve,"\u22B3","\\vartriangleright");Y(ee,ze,Ve,"\u22B5","\\trianglerighteq");Y(ee,ze,Ve,"\u22A9","\\Vdash",!0);Y(ee,ze,Ve,"\u2223","\\shortmid");Y(ee,ze,Ve,"\u2225","\\shortparallel");Y(ee,ze,Ve,"\u226C","\\between",!0);Y(ee,ze,Ve,"\u22D4","\\pitchfork",!0);Y(ee,ze,Ve,"\u221D","\\varpropto");Y(ee,ze,Ve,"\u25C0","\\blacktriangleleft");Y(ee,ze,Ve,"\u2234","\\therefore",!0);Y(ee,ze,Ve,"\u220D","\\backepsilon");Y(ee,ze,Ve,"\u25B6","\\blacktriangleright");Y(ee,ze,Ve,"\u2235","\\because",!0);Y(ee,ze,Ve,"\u22D8","\\llless");Y(ee,ze,Ve,"\u22D9","\\gggtr");Y(ee,ze,jt,"\u22B2","\\lhd");Y(ee,ze,jt,"\u22B3","\\rhd");Y(ee,ze,Ve,"\u2242","\\eqsim",!0);Y(ee,pe,Ve,"\u22C8","\\Join");Y(ee,ze,Ve,"\u2251","\\Doteq",!0);Y(ee,ze,jt,"\u2214","\\dotplus",!0);Y(ee,ze,jt,"\u2216","\\smallsetminus");Y(ee,ze,jt,"\u22D2","\\Cap",!0);Y(ee,ze,jt,"\u22D3","\\Cup",!0);Y(ee,ze,jt,"\u2A5E","\\doublebarwedge",!0);Y(ee,ze,jt,"\u229F","\\boxminus",!0);Y(ee,ze,jt,"\u229E","\\boxplus",!0);Y(ee,ze,jt,"\u22C7","\\divideontimes",!0);Y(ee,ze,jt,"\u22C9","\\ltimes",!0);Y(ee,ze,jt,"\u22CA","\\rtimes",!0);Y(ee,ze,jt,"\u22CB","\\leftthreetimes",!0);Y(ee,ze,jt,"\u22CC","\\rightthreetimes",!0);Y(ee,ze,jt,"\u22CF","\\curlywedge",!0);Y(ee,ze,jt,"\u22CE","\\curlyvee",!0);Y(ee,ze,jt,"\u229D","\\circleddash",!0);Y(ee,ze,jt,"\u229B","\\circledast",!0);Y(ee,ze,jt,"\u22C5","\\centerdot");Y(ee,ze,jt,"\u22BA","\\intercal",!0);Y(ee,ze,jt,"\u22D2","\\doublecap");Y(ee,ze,jt,"\u22D3","\\doublecup");Y(ee,ze,jt,"\u22A0","\\boxtimes",!0);Y(ee,ze,Ve,"\u21E2","\\dashrightarrow",!0);Y(ee,ze,Ve,"\u21E0","\\dashleftarrow",!0);Y(ee,ze,Ve,"\u21C7","\\leftleftarrows",!0);Y(ee,ze,Ve,"\u21C6","\\leftrightarrows",!0);Y(ee,ze,Ve,"\u21DA","\\Lleftarrow",!0);Y(ee,ze,Ve,"\u219E","\\twoheadleftarrow",!0);Y(ee,ze,Ve,"\u21A2","\\leftarrowtail",!0);Y(ee,ze,Ve,"\u21AB","\\looparrowleft",!0);Y(ee,ze,Ve,"\u21CB","\\leftrightharpoons",!0);Y(ee,ze,Ve,"\u21B6","\\curvearrowleft",!0);Y(ee,ze,Ve,"\u21BA","\\circlearrowleft",!0);Y(ee,ze,Ve,"\u21B0","\\Lsh",!0);Y(ee,ze,Ve,"\u21C8","\\upuparrows",!0);Y(ee,ze,Ve,"\u21BF","\\upharpoonleft",!0);Y(ee,ze,Ve,"\u21C3","\\downharpoonleft",!0);Y(ee,pe,Ve,"\u22B6","\\origof",!0);Y(ee,pe,Ve,"\u22B7","\\imageof",!0);Y(ee,ze,Ve,"\u22B8","\\multimap",!0);Y(ee,ze,Ve,"\u21AD","\\leftrightsquigarrow",!0);Y(ee,ze,Ve,"\u21C9","\\rightrightarrows",!0);Y(ee,ze,Ve,"\u21C4","\\rightleftarrows",!0);Y(ee,ze,Ve,"\u21A0","\\twoheadrightarrow",!0);Y(ee,ze,Ve,"\u21A3","\\rightarrowtail",!0);Y(ee,ze,Ve,"\u21AC","\\looparrowright",!0);Y(ee,ze,Ve,"\u21B7","\\curvearrowright",!0);Y(ee,ze,Ve,"\u21BB","\\circlearrowright",!0);Y(ee,ze,Ve,"\u21B1","\\Rsh",!0);Y(ee,ze,Ve,"\u21CA","\\downdownarrows",!0);Y(ee,ze,Ve,"\u21BE","\\upharpoonright",!0);Y(ee,ze,Ve,"\u21C2","\\downharpoonright",!0);Y(ee,ze,Ve,"\u21DD","\\rightsquigarrow",!0);Y(ee,ze,Ve,"\u21DD","\\leadsto");Y(ee,ze,Ve,"\u21DB","\\Rrightarrow",!0);Y(ee,ze,Ve,"\u21BE","\\restriction");Y(ee,pe,Ue,"\u2018","`");Y(ee,pe,Ue,"$","\\$");Y(Lt,pe,Ue,"$","\\$");Y(Lt,pe,Ue,"$","\\textdollar");Y(ee,pe,Ue,"%","\\%");Y(Lt,pe,Ue,"%","\\%");Y(ee,pe,Ue,"_","\\_");Y(Lt,pe,Ue,"_","\\_");Y(Lt,pe,Ue,"_","\\textunderscore");Y(ee,pe,Ue,"\u2220","\\angle",!0);Y(ee,pe,Ue,"\u221E","\\infty",!0);Y(ee,pe,Ue,"\u2032","\\prime");Y(ee,pe,Ue,"\u25B3","\\triangle");Y(ee,pe,Ue,"\u0393","\\Gamma",!0);Y(ee,pe,Ue,"\u0394","\\Delta",!0);Y(ee,pe,Ue,"\u0398","\\Theta",!0);Y(ee,pe,Ue,"\u039B","\\Lambda",!0);Y(ee,pe,Ue,"\u039E","\\Xi",!0);Y(ee,pe,Ue,"\u03A0","\\Pi",!0);Y(ee,pe,Ue,"\u03A3","\\Sigma",!0);Y(ee,pe,Ue,"\u03A5","\\Upsilon",!0);Y(ee,pe,Ue,"\u03A6","\\Phi",!0);Y(ee,pe,Ue,"\u03A8","\\Psi",!0);Y(ee,pe,Ue,"\u03A9","\\Omega",!0);Y(ee,pe,Ue,"A","\u0391");Y(ee,pe,Ue,"B","\u0392");Y(ee,pe,Ue,"E","\u0395");Y(ee,pe,Ue,"Z","\u0396");Y(ee,pe,Ue,"H","\u0397");Y(ee,pe,Ue,"I","\u0399");Y(ee,pe,Ue,"K","\u039A");Y(ee,pe,Ue,"M","\u039C");Y(ee,pe,Ue,"N","\u039D");Y(ee,pe,Ue,"O","\u039F");Y(ee,pe,Ue,"P","\u03A1");Y(ee,pe,Ue,"T","\u03A4");Y(ee,pe,Ue,"X","\u03A7");Y(ee,pe,Ue,"\xAC","\\neg",!0);Y(ee,pe,Ue,"\xAC","\\lnot");Y(ee,pe,Ue,"\u22A4","\\top");Y(ee,pe,Ue,"\u22A5","\\bot");Y(ee,pe,Ue,"\u2205","\\emptyset");Y(ee,ze,Ue,"\u2205","\\varnothing");Y(ee,pe,xr,"\u03B1","\\alpha",!0);Y(ee,pe,xr,"\u03B2","\\beta",!0);Y(ee,pe,xr,"\u03B3","\\gamma",!0);Y(ee,pe,xr,"\u03B4","\\delta",!0);Y(ee,pe,xr,"\u03F5","\\epsilon",!0);Y(ee,pe,xr,"\u03B6","\\zeta",!0);Y(ee,pe,xr,"\u03B7","\\eta",!0);Y(ee,pe,xr,"\u03B8","\\theta",!0);Y(ee,pe,xr,"\u03B9","\\iota",!0);Y(ee,pe,xr,"\u03BA","\\kappa",!0);Y(ee,pe,xr,"\u03BB","\\lambda",!0);Y(ee,pe,xr,"\u03BC","\\mu",!0);Y(ee,pe,xr,"\u03BD","\\nu",!0);Y(ee,pe,xr,"\u03BE","\\xi",!0);Y(ee,pe,xr,"\u03BF","\\omicron",!0);Y(ee,pe,xr,"\u03C0","\\pi",!0);Y(ee,pe,xr,"\u03C1","\\rho",!0);Y(ee,pe,xr,"\u03C3","\\sigma",!0);Y(ee,pe,xr,"\u03C4","\\tau",!0);Y(ee,pe,xr,"\u03C5","\\upsilon",!0);Y(ee,pe,xr,"\u03D5","\\phi",!0);Y(ee,pe,xr,"\u03C7","\\chi",!0);Y(ee,pe,xr,"\u03C8","\\psi",!0);Y(ee,pe,xr,"\u03C9","\\omega",!0);Y(ee,pe,xr,"\u03B5","\\varepsilon",!0);Y(ee,pe,xr,"\u03D1","\\vartheta",!0);Y(ee,pe,xr,"\u03D6","\\varpi",!0);Y(ee,pe,xr,"\u03F1","\\varrho",!0);Y(ee,pe,xr,"\u03C2","\\varsigma",!0);Y(ee,pe,xr,"\u03C6","\\varphi",!0);Y(ee,pe,jt,"\u2217","*",!0);Y(ee,pe,jt,"+","+");Y(ee,pe,jt,"\u2212","-",!0);Y(ee,pe,jt,"\u22C5","\\cdot",!0);Y(ee,pe,jt,"\u2218","\\circ",!0);Y(ee,pe,jt,"\xF7","\\div",!0);Y(ee,pe,jt,"\xB1","\\pm",!0);Y(ee,pe,jt,"\xD7","\\times",!0);Y(ee,pe,jt,"\u2229","\\cap",!0);Y(ee,pe,jt,"\u222A","\\cup",!0);Y(ee,pe,jt,"\u2216","\\setminus",!0);Y(ee,pe,jt,"\u2227","\\land");Y(ee,pe,jt,"\u2228","\\lor");Y(ee,pe,jt,"\u2227","\\wedge",!0);Y(ee,pe,jt,"\u2228","\\vee",!0);Y(ee,pe,Ue,"\u221A","\\surd");Y(ee,pe,No,"\u27E8","\\langle",!0);Y(ee,pe,No,"\u2223","\\lvert");Y(ee,pe,No,"\u2225","\\lVert");Y(ee,pe,ks,"?","?");Y(ee,pe,ks,"!","!");Y(ee,pe,ks,"\u27E9","\\rangle",!0);Y(ee,pe,ks,"\u2223","\\rvert");Y(ee,pe,ks,"\u2225","\\rVert");Y(ee,pe,Ve,"=","=");Y(ee,pe,Ve,":",":");Y(ee,pe,Ve,"\u2248","\\approx",!0);Y(ee,pe,Ve,"\u2245","\\cong",!0);Y(ee,pe,Ve,"\u2265","\\ge");Y(ee,pe,Ve,"\u2265","\\geq",!0);Y(ee,pe,Ve,"\u2190","\\gets");Y(ee,pe,Ve,">","\\gt",!0);Y(ee,pe,Ve,"\u2208","\\in",!0);Y(ee,pe,Ve,"\uE020","\\@not");Y(ee,pe,Ve,"\u2282","\\subset",!0);Y(ee,pe,Ve,"\u2283","\\supset",!0);Y(ee,pe,Ve,"\u2286","\\subseteq",!0);Y(ee,pe,Ve,"\u2287","\\supseteq",!0);Y(ee,ze,Ve,"\u2288","\\nsubseteq",!0);Y(ee,ze,Ve,"\u2289","\\nsupseteq",!0);Y(ee,pe,Ve,"\u22A8","\\models");Y(ee,pe,Ve,"\u2190","\\leftarrow",!0);Y(ee,pe,Ve,"\u2264","\\le");Y(ee,pe,Ve,"\u2264","\\leq",!0);Y(ee,pe,Ve,"<","\\lt",!0);Y(ee,pe,Ve,"\u2192","\\rightarrow",!0);Y(ee,pe,Ve,"\u2192","\\to");Y(ee,ze,Ve,"\u2271","\\ngeq",!0);Y(ee,ze,Ve,"\u2270","\\nleq",!0);Y(ee,pe,ah,"\xA0","\\ ");Y(ee,pe,ah,"\xA0","\\space");Y(ee,pe,ah,"\xA0","\\nobreakspace");Y(Lt,pe,ah,"\xA0","\\ ");Y(Lt,pe,ah,"\xA0"," ");Y(Lt,pe,ah,"\xA0","\\space");Y(Lt,pe,ah,"\xA0","\\nobreakspace");Y(ee,pe,ah,null,"\\nobreak");Y(ee,pe,ah,null,"\\allowbreak");Y(ee,pe,ib,",",",");Y(ee,pe,ib,";",";");Y(ee,ze,jt,"\u22BC","\\barwedge",!0);Y(ee,ze,jt,"\u22BB","\\veebar",!0);Y(ee,pe,jt,"\u2299","\\odot",!0);Y(ee,pe,jt,"\u2295","\\oplus",!0);Y(ee,pe,jt,"\u2297","\\otimes",!0);Y(ee,pe,Ue,"\u2202","\\partial",!0);Y(ee,pe,jt,"\u2298","\\oslash",!0);Y(ee,ze,jt,"\u229A","\\circledcirc",!0);Y(ee,ze,jt,"\u22A1","\\boxdot",!0);Y(ee,pe,jt,"\u25B3","\\bigtriangleup");Y(ee,pe,jt,"\u25BD","\\bigtriangledown");Y(ee,pe,jt,"\u2020","\\dagger");Y(ee,pe,jt,"\u22C4","\\diamond");Y(ee,pe,jt,"\u22C6","\\star");Y(ee,pe,jt,"\u25C3","\\triangleleft");Y(ee,pe,jt,"\u25B9","\\triangleright");Y(ee,pe,No,"{","\\{");Y(Lt,pe,Ue,"{","\\{");Y(Lt,pe,Ue,"{","\\textbraceleft");Y(ee,pe,ks,"}","\\}");Y(Lt,pe,Ue,"}","\\}");Y(Lt,pe,Ue,"}","\\textbraceright");Y(ee,pe,No,"{","\\lbrace");Y(ee,pe,ks,"}","\\rbrace");Y(ee,pe,No,"[","\\lbrack",!0);Y(Lt,pe,Ue,"[","\\lbrack",!0);Y(ee,pe,ks,"]","\\rbrack",!0);Y(Lt,pe,Ue,"]","\\rbrack",!0);Y(ee,pe,No,"(","\\lparen",!0);Y(ee,pe,ks,")","\\rparen",!0);Y(Lt,pe,Ue,"<","\\textless",!0);Y(Lt,pe,Ue,">","\\textgreater",!0);Y(ee,pe,No,"\u230A","\\lfloor",!0);Y(ee,pe,ks,"\u230B","\\rfloor",!0);Y(ee,pe,No,"\u2308","\\lceil",!0);Y(ee,pe,ks,"\u2309","\\rceil",!0);Y(ee,pe,Ue,"\\","\\backslash");Y(ee,pe,Ue,"\u2223","|");Y(ee,pe,Ue,"\u2223","\\vert");Y(Lt,pe,Ue,"|","\\textbar",!0);Y(ee,pe,Ue,"\u2225","\\|");Y(ee,pe,Ue,"\u2225","\\Vert");Y(Lt,pe,Ue,"\u2225","\\textbardbl");Y(Lt,pe,Ue,"~","\\textasciitilde");Y(Lt,pe,Ue,"\\","\\textbackslash");Y(Lt,pe,Ue,"^","\\textasciicircum");Y(ee,pe,Ve,"\u2191","\\uparrow",!0);Y(ee,pe,Ve,"\u21D1","\\Uparrow",!0);Y(ee,pe,Ve,"\u2193","\\downarrow",!0);Y(ee,pe,Ve,"\u21D3","\\Downarrow",!0);Y(ee,pe,Ve,"\u2195","\\updownarrow",!0);Y(ee,pe,Ve,"\u21D5","\\Updownarrow",!0);Y(ee,pe,Hi,"\u2210","\\coprod");Y(ee,pe,Hi,"\u22C1","\\bigvee");Y(ee,pe,Hi,"\u22C0","\\bigwedge");Y(ee,pe,Hi,"\u2A04","\\biguplus");Y(ee,pe,Hi,"\u22C2","\\bigcap");Y(ee,pe,Hi,"\u22C3","\\bigcup");Y(ee,pe,Hi,"\u222B","\\int");Y(ee,pe,Hi,"\u222B","\\intop");Y(ee,pe,Hi,"\u222C","\\iint");Y(ee,pe,Hi,"\u222D","\\iiint");Y(ee,pe,Hi,"\u220F","\\prod");Y(ee,pe,Hi,"\u2211","\\sum");Y(ee,pe,Hi,"\u2A02","\\bigotimes");Y(ee,pe,Hi,"\u2A01","\\bigoplus");Y(ee,pe,Hi,"\u2A00","\\bigodot");Y(ee,pe,Hi,"\u222E","\\oint");Y(ee,pe,Hi,"\u222F","\\oiint");Y(ee,pe,Hi,"\u2230","\\oiiint");Y(ee,pe,Hi,"\u2A06","\\bigsqcup");Y(ee,pe,Hi,"\u222B","\\smallint");Y(Lt,pe,Q0,"\u2026","\\textellipsis");Y(ee,pe,Q0,"\u2026","\\mathellipsis");Y(Lt,pe,Q0,"\u2026","\\ldots",!0);Y(ee,pe,Q0,"\u2026","\\ldots",!0);Y(ee,pe,Q0,"\u22EF","\\@cdots",!0);Y(ee,pe,Q0,"\u22F1","\\ddots",!0);Y(ee,pe,Ue,"\u22EE","\\varvdots");Y(Lt,pe,Ue,"\u22EE","\\varvdots");Y(ee,pe,hi,"\u02CA","\\acute");Y(ee,pe,hi,"\u02CB","\\grave");Y(ee,pe,hi,"\xA8","\\ddot");Y(ee,pe,hi,"~","\\tilde");Y(ee,pe,hi,"\u02C9","\\bar");Y(ee,pe,hi,"\u02D8","\\breve");Y(ee,pe,hi,"\u02C7","\\check");Y(ee,pe,hi,"^","\\hat");Y(ee,pe,hi,"\u20D7","\\vec");Y(ee,pe,hi,"\u02D9","\\dot");Y(ee,pe,hi,"\u02DA","\\mathring");Y(ee,pe,xr,"\uE131","\\@imath");Y(ee,pe,xr,"\uE237","\\@jmath");Y(ee,pe,Ue,"\u0131","\u0131");Y(ee,pe,Ue,"\u0237","\u0237");Y(Lt,pe,Ue,"\u0131","\\i",!0);Y(Lt,pe,Ue,"\u0237","\\j",!0);Y(Lt,pe,Ue,"\xDF","\\ss",!0);Y(Lt,pe,Ue,"\xE6","\\ae",!0);Y(Lt,pe,Ue,"\u0153","\\oe",!0);Y(Lt,pe,Ue,"\xF8","\\o",!0);Y(Lt,pe,Ue,"\xC6","\\AE",!0);Y(Lt,pe,Ue,"\u0152","\\OE",!0);Y(Lt,pe,Ue,"\xD8","\\O",!0);Y(Lt,pe,hi,"\u02CA","\\'");Y(Lt,pe,hi,"\u02CB","\\`");Y(Lt,pe,hi,"\u02C6","\\^");Y(Lt,pe,hi,"\u02DC","\\~");Y(Lt,pe,hi,"\u02C9","\\=");Y(Lt,pe,hi,"\u02D8","\\u");Y(Lt,pe,hi,"\u02D9","\\.");Y(Lt,pe,hi,"\xB8","\\c");Y(Lt,pe,hi,"\u02DA","\\r");Y(Lt,pe,hi,"\u02C7","\\v");Y(Lt,pe,hi,"\xA8",'\\"');Y(Lt,pe,hi,"\u02DD","\\H");Y(Lt,pe,hi,"\u25EF","\\textcircled");rQ={"--":!0,"---":!0,"``":!0,"''":!0};Y(Lt,pe,Ue,"\u2013","--",!0);Y(Lt,pe,Ue,"\u2013","\\textendash");Y(Lt,pe,Ue,"\u2014","---",!0);Y(Lt,pe,Ue,"\u2014","\\textemdash");Y(Lt,pe,Ue,"\u2018","`",!0);Y(Lt,pe,Ue,"\u2018","\\textquoteleft");Y(Lt,pe,Ue,"\u2019","'",!0);Y(Lt,pe,Ue,"\u2019","\\textquoteright");Y(Lt,pe,Ue,"\u201C","``",!0);Y(Lt,pe,Ue,"\u201C","\\textquotedblleft");Y(Lt,pe,Ue,"\u201D","''",!0);Y(Lt,pe,Ue,"\u201D","\\textquotedblright");Y(ee,pe,Ue,"\xB0","\\degree",!0);Y(Lt,pe,Ue,"\xB0","\\degree");Y(Lt,pe,Ue,"\xB0","\\textdegree",!0);Y(ee,pe,Ue,"\xA3","\\pounds");Y(ee,pe,Ue,"\xA3","\\mathsterling",!0);Y(Lt,pe,Ue,"\xA3","\\pounds");Y(Lt,pe,Ue,"\xA3","\\textsterling",!0);Y(ee,ze,Ue,"\u2720","\\maltese");Y(Lt,ze,Ue,"\u2720","\\maltese");wZ='0123456789/@."';for(Nk=0;Nk{var r=e.charCodeAt(0),n=e.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=t==="math"?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[$k[s][2],$k[s][a]]}else if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[SZ[l][2],SZ[l][a]]}else{if(i===120485||i===120486)return[$k[0][2],$k[0][a]];if(1204860)return Ts(a,h,i,r,s.concat(d));if(u){var f,p;if(u==="boldsymbol"){var m=GGe(a,i,r,s,n);f=m.fontName,p=[m.fontClass]}else l?(f=O7[u].fontName,p=[u]):(f=Fk(u,r.fontWeight,r.fontShape),p=[u,r.fontWeight,r.fontShape]);if(rS(a,f,i).metrics)return Ts(a,f,i,r,s.concat(p));if(rQ.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var g=[],y=0;y{if(Ed(e.classes)!==Ed(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},"canCombine"),nQ=o(e=>{for(var t=0;tr&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},"sizeElementFromChildren"),Mt=o(function(t,r,n,i){var a=new Ad(t,r,n,i);return Z7(a),a},"makeSpan"),Rd=o((e,t,r,n)=>new Ad(e,t,r,n),"makeSvgSpan"),K0=o(function(t,r,n){var i=Mt([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=$t(i.height),i.maxFontSize=1,i},"makeLineSpan"),WGe=o(function(t,r,n,i){var a=new X0(t,r,n,i);return Z7(a),a},"makeAnchor"),sh=o(function(t){var r=new Sd(t);return Z7(r),r},"makeFragment"),Z0=o(function(t,r){return t instanceof Sd?Mt([],[t],r):t},"wrapFragment"),qGe=o(function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s{var r=Mt(["mspace"],[],t),n=xi(e,t);return r.style.marginRight=$t(n),r},"makeGlue"),Fk=o(function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},"retrieveTextFontName"),O7={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},aQ={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sQ=o(function(t,r){var[n,i,a]=aQ[t],s=new zc(n),l=new Gl([s],{width:$t(i),height:$t(a),style:"width:"+$t(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=Rd(["overlay"],[l],r);return u.height=a,u.style.height=$t(a),u.style.width=$t(i),u},"staticSvg"),yi={number:3,unit:"mu"},zp={number:4,unit:"mu"},rh={number:5,unit:"mu"},HGe={mord:{mop:yi,mbin:zp,mrel:rh,minner:yi},mop:{mord:yi,mop:yi,mrel:rh,minner:yi},mbin:{mord:zp,mop:zp,mopen:zp,minner:zp},mrel:{mord:rh,mop:rh,mopen:rh,minner:rh},mopen:{},mclose:{mop:yi,mbin:zp,mrel:rh,minner:yi},mpunct:{mord:yi,mop:yi,mrel:rh,mopen:yi,mclose:yi,mpunct:yi,minner:yi},minner:{mord:yi,mop:yi,mbin:zp,mrel:rh,mopen:yi,mpunct:yi,minner:yi}},UGe={mord:{mop:yi},mop:{mord:yi,mop:yi},mbin:{},mrel:{},mopen:{},mclose:{mop:yi},mpunct:{},minner:{mop:yi}},oQ={},Xk={},Kk={};o(Ut,"defineFunction");o(Gp,"defineFunctionBuilders");Zk=o(function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},"normalizeArgument"),qi=o(function(t){return t.type==="ordgroup"?t.body:[t]},"ordargument"),YGe=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),jGe=new Set(["rightmost","mrel","mclose","mpunct"]),XGe={display:Fr.DISPLAY,text:Fr.TEXT,script:Fr.SCRIPT,scriptscript:Fr.SCRIPTSCRIPT},KGe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ia=o(function(t,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s{var v=y.classes[0],x=g.classes[0];v==="mbin"&&jGe.has(x)?y.classes[0]="mord":x==="mbin"&&YGe.has(v)&&(g.classes[0]="mord")},{node:f},p,m),B7(a,(g,y)=>{var v,x,b=F7(y),T=F7(g),k=b&&T?g.hasClass("mtight")?(v=UGe[b])==null?void 0:v[T]:(x=HGe[b])==null?void 0:x[T]:null;if(k)return iQ(k,h)},{node:f},p,m),a},"buildExpression"),B7=o(function(t,r,n,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(f+1,0,p),s++})(s)}i&&t.pop()},"traverseNonSpaceNodes"),lQ=o(function(t){return t instanceof Sd||t instanceof X0||t instanceof Ad&&t.hasClass("enclosing")?t:null},"checkPartialGroup"),$7=o(function(t,r){var n=lQ(t);if(n){var i=n.children;if(i.length){if(r==="right")return $7(i[i.length-1],"right");if(r==="left")return $7(i[0],"left")}}return t},"getOutermostNode"),F7=o(function(t,r){if(!t)return null;r&&(t=$7(t,r));var n=t.classes[0];return KGe[n]||null},"getTypeOfDomTree"),nb=o(function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Mt(r.concat(n))},"makeNullDelimiter"),wn=o(function(t,r,n){if(!t)return Mt();if(Xk[t.type]){var i=Xk[t.type](t,r);if(n&&r.size!==n.size){i=Mt(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Pt("Got group of unknown type: '"+t.type+"'")},"buildGroup");o(zk,"buildHTMLUnbreakable");o(z7,"buildHTML");o(cQ,"newDocumentFragment");Nt=class{static{o(this,"MathNode")}constructor(t,r,n){this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Ed(this.classes));for(var n=0;n0&&(t+=' class ="'+es(Ed(this.classes))+'"'),t+=">";for(var n=0;n",t}toText(){return this.children.map(t=>t.toText()).join("")}},Ei=class{static{o(this,"TextNode")}constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return es(this.toText())}toText(){return this.text}},Qk=class{static{o(this,"SpaceNode")}constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character="\u200A":t>=.1666&&t<=.1667?this.character="\u2009":t>=.2222&&t<=.2223?this.character="\u2005":t>=.2777&&t<=.2778?this.character="\u2005\u200A":t>=-.05556&&t<=-.05555?this.character="\u200A\u2063":t>=-.1667&&t<=-.1666?this.character="\u2009\u2063":t>=-.2223&&t<=-.2222?this.character="\u205F\u2063":t>=-.2778&&t<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",$t(this.width)),t}toMarkup(){return this.character?""+this.character+" ":' '}toText(){return this.character?this.character:" "}},ZGe=new Set(["\\imath","\\jmath"]),QGe=new Set(["mrow","mtable"]),cl=o(function(t,r,n){return ui[r][t]&&ui[r][t].replace&&t.charCodeAt(0)!==55349&&!(rQ.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=ui[r][t].replace),new Ei(t)},"makeText"),Q7=o(function(t){return t.length===1?t[0]:new Nt("mrow",t)},"makeRow"),J7=o(function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(ZGe.has(a))return null;if(ui[i][a]){var s=ui[i][a].replace;s&&(a=s)}var l=O7[n].fontName;return X7(a,l,i)?O7[n].variant:null},"getVariant");o(T7,"isNumberPunctuation");Po=o(function(t,r,n){if(t.length===1){var i=Wn(t[0],r);return n&&i instanceof Nt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,l=0;l=1&&(s.type==="mn"||T7(s))){var h=u.children[0];h instanceof Nt&&h.type==="mn"&&(h.children=[...s.children,...h.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof Ei&&d.text==="\u0338"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var f=u.children[0];f instanceof Ei&&f.text.length>0&&(f.text=f.text.slice(0,1)+"\u0338"+f.text.slice(1),a.pop())}}}a.push(u),s=u}return a},"buildExpression"),_d=o(function(t,r,n){return Q7(Po(t,r,n))},"buildExpressionRow"),Wn=o(function(t,r){if(!t)return new Nt("mrow");if(Kk[t.type]){var n=Kk[t.type](t,r);return n}else throw new Pt("Got group of unknown type: '"+t.type+"'")},"buildGroup");o(EZ,"buildMathML");JGe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],AZ=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],RZ=o(function(t,r){return r.size<2?t:JGe[t-1][r.size-1]},"sizeAtStyle"),Jk=class e{static{o(this,"Options")}constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=AZ[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new e(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:RZ(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:AZ[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=RZ(e.BASESIZE,t);return this.size===r&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=BGe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Jk.BASESIZE=6;uQ=o(function(t){return new Jk({style:t.displayMode?Fr.DISPLAY:Fr.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},"optionsFromSettings"),hQ=o(function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Mt(n,[t])}return t},"displayWrap"),eVe=o(function(t,r,n){var i=uQ(n),a;if(n.output==="mathml")return EZ(t,r,i,n.displayMode,!0);if(n.output==="html"){var s=z7(t,i);a=Mt(["katex"],[s])}else{var l=EZ(t,r,i,n.displayMode,!1),u=z7(t,i);a=Mt(["katex"],[l,u])}return hQ(a,n)},"buildTree"),tVe=o(function(t,r,n){var i=uQ(n),a=z7(t,i),s=Mt(["katex"],[a]);return hQ(s,n)},"buildHTMLTree"),rVe={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},iS=o(function(t){var r=new Nt("mo",[new Ei(rVe[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},"stretchyMathML"),nVe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},iVe=new Set(["widehat","widecheck","widetilde","utilde"]),aS=o(function(t,r){function n(){var l=4e5,u=t.label.slice(1);if(iVe.has(u)){var h=t,d=h.base.type==="ordgroup"?h.base.body.length:1,f,p,m;if(d>5)u==="widehat"||u==="widecheck"?(f=420,l=2364,m=.42,p=u+"4"):(f=312,l=2340,m=.34,p="tilde4");else{var g=[1,1,2,2,3,3][d];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][g],f=[0,239,300,360,420][g],m=[0,.24,.3,.3,.36,.42][g],p=u+g):(l=[0,600,1033,2339,2340][g],f=[0,260,286,306,312][g],m=[0,.26,.286,.3,.306,.34][g],p="tilde"+g)}var y=new zc(p),v=new Gl([y],{width:"100%",height:$t(m),viewBox:"0 0 "+l+" "+f,preserveAspectRatio:"none"});return{span:Rd([],[v],r),minWidth:0,height:m}}else{var x=[],b=nVe[u],[T,k,C]=b,w=C/1e3,S=T.length,R,L;if(S===1){var N=b[3];R=["hide-tail"],L=[N]}else if(S===2)R=["halfarrow-left","halfarrow-right"],L=["xMinYMin","xMaxYMin"];else if(S===3)R=["brace-left","brace-center","brace-right"],L=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
+ `+S+" children.");for(var I=0;I0&&(i.style.minWidth=$t(a)),i},"stretchySvg"),aVe=o(function(t,r,n,i,a){var s,l=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Mt(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new rb({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new rb({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new Gl(h,{width:"100%",height:$t(l)});s=Rd([],[d],a)}return s.height=l,s.style.height=$t(l),s},"stretchyEnclose");o(Ur,"assertNodeType");o(sS,"assertSymbolNodeType");o(oS,"checkSymbolNodeType");dQ=o(e=>{if(e instanceof ws)return e;if(OGe(e)&&e.children.length===1)return dQ(e.children[0])},"getBaseSymbol"),e8=o((e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=Ur(e.base,"accent"),r=n.base,e.base=r,i=PGe(wn(e,t)),e.base=n):(n=Ur(e,"accent"),r=n.base);var a=wn(r,t.havingCrampedStyle()),s=n.isShifty&&ih(r),l=0;if(s){var u,h;l=(u=(h=dQ(a))==null?void 0:h.skew)!=null?u:0}var d=n.label==="\\c",f=d?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(n.isStretchy)p=aS(n,t),p=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+$t(2*l)+")",marginLeft:$t(2*l)}:void 0}]});else{var m,g;n.label==="\\vec"?(m=sQ("vec",t),g=aQ.vec[1]):(m=nS({type:"textord",mode:n.mode,text:n.label},t,"textord"),m=NGe(m),m.italic=0,g=m.width,d&&(f+=m.depth)),p=Mt(["accent-body"],[m]);var y=n.label==="\\textcircled";y&&(p.classes.push("accent-full"),f=a.height);var v=l;y||(v-=g/2),p.style.left=$t(v),n.label==="\\textcircled"&&(p.style.top=".2em"),p=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:p}]})}var x=Mt(["mord","accent"],[p],t);return i?(i.children[0]=x,i.height=Math.max(x.height,i.height),i.classes[0]="mord",i):x},"htmlBuilder$a"),fQ=o((e,t)=>{var r=e.isStretchy?iS(e.label):new Nt("mo",[cl(e.label,e.mode)]),n=new Nt("mover",[Wn(e.base,t),r]);return n.setAttribute("accent","true"),n},"mathmlBuilder$9"),sVe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ut({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:o((e,t)=>{var r=Zk(t[0]),n=!sVe.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},"handler"),htmlBuilder:e8,mathmlBuilder:fQ});Ut({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:o((e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},"handler"),htmlBuilder:e8,mathmlBuilder:fQ});Ut({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},"handler"),htmlBuilder:o((e,t)=>{var r=wn(e.base,t),n=aS(e,t),i=e.label==="\\utilde"?.12:0,a=Cn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Mt(["mord","accentunder"],[a],t)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=iS(e.label),n=new Nt("munder",[Wn(e.base,t),r]);return n.setAttribute("accentunder","true"),n},"mathmlBuilder")});Gk=o(e=>{var t=new Nt("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t},"paddedNode");Ut({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=Z0(wn(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(n=t.havingStyle(r.sub()),s=Z0(wn(e.below,n,t),t),s.classes.push(a+"-arrow-pad"));var l=aS(e,t),u=-t.fontMetrics().axisHeight+.5*l.height,h=-t.fontMetrics().axisHeight-.5*l.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(h-=i.depth);var d;if(s){var f=-t.fontMetrics().axisHeight+s.height+.5*l.height+.111;d=Cn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:l,shift:u},{type:"elem",elem:s,shift:f}]})}else d=Cn({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:l,shift:u}]});return d.children[0].children[0].children[1].classes.push("svg-align"),Mt(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var r=iS(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=Gk(Wn(e.body,t));if(e.below){var a=Gk(Wn(e.below,t));n=new Nt("munderover",[r,a,i])}else n=new Nt("mover",[r,i])}else if(e.below){var s=Gk(Wn(e.below,t));n=new Nt("munder",[r,s])}else n=Gk(),n=new Nt("mover",[r,n]);return n}});o(pQ,"htmlBuilder$9");o(mQ,"mathmlBuilder$8");Ut({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:qi(i),isCharacterBox:ih(i)}},htmlBuilder:pQ,mathmlBuilder:mQ});lS=o(e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"},"binrelClass");Ut({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:lS(t[0]),body:qi(t[1]),isCharacterBox:ih(t[1])}}});Ut({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],s;n!=="\\stackrel"?s=lS(i):s="mrel";var l={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:qi(i)},u={type:"supsub",mode:a.mode,base:l,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[u],isCharacterBox:ih(u)}},htmlBuilder:pQ,mathmlBuilder:mQ});Ut({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:lS(t[0]),body:qi(t[0])}},htmlBuilder(e,t){var r=ia(e.body,t,!0),n=Mt([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Po(e.body,t),n=new Nt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});oVe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},_Z=o(()=>({type:"styling",body:[],mode:"math",style:"display"}),"newCell"),LZ=o(e=>e.type==="textord"&&e.text==="@","isStartOfArrow"),lVe=o((e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t,"isLabelEnd");o(cVe,"cdArrow");o(uVe,"parseCD");Ut({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Z0(wn(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=$t(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new Nt("mrow",[Wn(e.label,t)]);return r=new Nt("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Nt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Ut({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Z0(wn(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new Nt("mrow",[Wn(e.fragment,t)])}});Ut({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Ur(t[0],"ordgroup"),i=n.body,a="",s=0;s=1114111)throw new Pt("\\@char with invalid code point "+a);return u<=65535?h=String.fromCharCode(u):(u-=65536,h=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});gQ=o((e,t)=>{var r=ia(e.body,t.withColor(e.color),!1);return sh(r)},"htmlBuilder$8"),yQ=o((e,t)=>{var r=Po(e.body,t.withColor(e.color)),n=new Nt("mstyle",r);return n.setAttribute("mathcolor",e.color),n},"mathmlBuilder$7");Ut({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Ur(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:qi(i)}},htmlBuilder:gQ,mathmlBuilder:yQ});Ut({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=Ur(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:gQ,mathmlBuilder:yQ});Ut({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&Ur(i,"size").value}},htmlBuilder(e,t){var r=Mt(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=$t(xi(e.size,t)))),r},mathmlBuilder(e,t){var r=new Nt("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",$t(xi(e.size,t)))),r}});G7={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},vQ=o(e=>{var t=e.text;if(/^(?:[\\{}$^_]|EOF)$/.test(t))throw new Pt("Expected a control sequence",e);return t},"checkControlSequence"),hVe=o(e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},"getRHS"),xQ=o((e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)},"letCommand");Ut({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(G7[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=G7[n.text]),Ur(t.parseFunction(),"internal");throw new Pt("Invalid token after macro prefix",n)}});Ut({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$^_]|EOF)$/.test(i))throw new Pt("Expected a control sequence",n);for(var a=0,s,l=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),l[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Pt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new Pt('Argument number "'+n.text+'" out of order');a++,l.push([])}else{if(n.text==="EOF")throw new Pt("Expected a macro definition");l[a].push(n.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(r==="\\edef"||r==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:l},r===G7[r]),{type:"internal",mode:t.mode}}});Ut({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=vQ(t.gullet.popToken());t.gullet.consumeSpaces();var i=hVe(t);return xQ(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ut({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=vQ(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return xQ(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});Qx=o(function(t,r,n){var i=ui.math[t]&&ui.math[t].replace,a=X7(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},"getMetrics"),t8=o(function(t,r,n,i){var a=n.havingBaseStyle(r),s=Mt(i.concat(a.sizingClasses(n)),[t],n),l=a.sizeMultiplier/n.sizeMultiplier;return s.height*=l,s.depth*=l,s.maxFontSize=a.sizeMultiplier,s},"styleWrap"),bQ=o(function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=$t(a),t.height-=a,t.depth+=a},"centerSpan"),dVe=o(function(t,r,n,i,a,s){var l=Ts(t,"Main-Regular",a,i),u=t8(l,r,i,s);return n&&bQ(u,i,r),u},"makeSmallDelim"),fVe=o(function(t,r,n,i){return Ts(t,"Size"+r+"-Regular",n,i)},"mathrmSize"),TQ=o(function(t,r,n,i,a,s){var l=fVe(t,r,a,i),u=t8(Mt(["delimsizing","size"+r],[l],i),Fr.TEXT,i,s);return n&&bQ(u,i,Fr.TEXT),u},"makeLargeDelim"),C7=o(function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Mt(["delimsizinginner",i],[Mt([],[Ts(t,r,n)])]);return{type:"elem",elem:a}},"makeGlyphSpan"),w7=o(function(t,r,n){var i=Fc["Size4-Regular"][t.charCodeAt(0)]?Fc["Size4-Regular"][t.charCodeAt(0)][4]:Fc["Size1-Regular"][t.charCodeAt(0)][4],a=new zc("inner",_Ge(t,Math.round(1e3*r))),s=new Gl([a],{width:$t(i),height:$t(r),style:"width:"+$t(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),l=Rd([],[s],n);return l.height=r,l.style.height=$t(r),l.style.width=$t(i),{type:"elem",elem:l}},"makeInner"),V7=.008,Vk={type:"kern",size:-1*V7},pVe=new Set(["|","\\lvert","\\rvert","\\vert"]),mVe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),CQ=o(function(t,r,n,i,a,s){var l,u,h,d,f="",p=0;l=h=d=t,u=null;var m="Size1-Regular";t==="\\uparrow"?h=d="\u23D0":t==="\\Uparrow"?h=d="\u2016":t==="\\downarrow"?l=h="\u23D0":t==="\\Downarrow"?l=h="\u2016":t==="\\updownarrow"?(l="\\uparrow",h="\u23D0",d="\\downarrow"):t==="\\Updownarrow"?(l="\\Uparrow",h="\u2016",d="\\Downarrow"):pVe.has(t)?(h="\u2223",f="vert",p=333):mVe.has(t)?(h="\u2225",f="doublevert",p=556):t==="["||t==="\\lbrack"?(l="\u23A1",h="\u23A2",d="\u23A3",m="Size4-Regular",f="lbrack",p=667):t==="]"||t==="\\rbrack"?(l="\u23A4",h="\u23A5",d="\u23A6",m="Size4-Regular",f="rbrack",p=667):t==="\\lfloor"||t==="\u230A"?(h=l="\u23A2",d="\u23A3",m="Size4-Regular",f="lfloor",p=667):t==="\\lceil"||t==="\u2308"?(l="\u23A1",h=d="\u23A2",m="Size4-Regular",f="lceil",p=667):t==="\\rfloor"||t==="\u230B"?(h=l="\u23A5",d="\u23A6",m="Size4-Regular",f="rfloor",p=667):t==="\\rceil"||t==="\u2309"?(l="\u23A4",h=d="\u23A5",m="Size4-Regular",f="rceil",p=667):t==="("||t==="\\lparen"?(l="\u239B",h="\u239C",d="\u239D",m="Size4-Regular",f="lparen",p=875):t===")"||t==="\\rparen"?(l="\u239E",h="\u239F",d="\u23A0",m="Size4-Regular",f="rparen",p=875):t==="\\{"||t==="\\lbrace"?(l="\u23A7",u="\u23A8",d="\u23A9",h="\u23AA",m="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(l="\u23AB",u="\u23AC",d="\u23AD",h="\u23AA",m="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(l="\u23A7",d="\u23A9",h="\u23AA",m="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(l="\u23AB",d="\u23AD",h="\u23AA",m="Size4-Regular"):t==="\\lmoustache"||t==="\u23B0"?(l="\u23A7",d="\u23AD",h="\u23AA",m="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(l="\u23AB",d="\u23A9",h="\u23AA",m="Size4-Regular");var g=Qx(l,m,a),y=g.height+g.depth,v=Qx(h,m,a),x=v.height+v.depth,b=Qx(d,m,a),T=b.height+b.depth,k=0,C=1;if(u!==null){var w=Qx(u,m,a);k=w.height+w.depth,C=2}var S=y+T+k,R=Math.max(0,Math.ceil((r-S)/(C*x))),L=S+R*C*x,N=i.fontMetrics().axisHeight;n&&(N*=i.sizeMultiplier);var I=L/2-N,_=[];if(f.length>0){var A=L-y-T,M=Math.round(L*1e3),D=LGe(f,Math.round(A*1e3)),P=new zc(f,D),B=$t(p/1e3),O=$t(M/1e3),$=new Gl([P],{width:B,height:O,viewBox:"0 0 "+p+" "+M}),V=Rd([],[$],i);V.height=M/1e3,V.style.width=B,V.style.height=O,_.push({type:"elem",elem:V})}else{if(_.push(C7(d,m,a)),_.push(Vk),u===null){var G=L-y-T+2*V7;_.push(w7(h,G,i))}else{var z=(L-y-T-k)/2+2*V7;_.push(w7(h,z,i)),_.push(Vk),_.push(C7(u,m,a)),_.push(Vk),_.push(w7(h,z,i))}_.push(Vk),_.push(C7(l,m,a))}var W=i.havingBaseStyle(Fr.TEXT),H=Cn({positionType:"bottom",positionData:I,children:_});return t8(Mt(["delimsizing","mult"],[H],W),Fr.TEXT,i,s)},"makeStackedDelim"),k7=80,S7=.08,E7=o(function(t,r,n,i,a){var s=RGe(t,i,n),l=new zc(t,s),u=new Gl([l],{width:"400em",height:$t(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Rd(["hide-tail"],[u],a)},"sqrtSvg"),gVe=o(function(t,r){var n=r.havingBaseSizing(),i=AQ("\\surd",t*n.sizeMultiplier,EQ,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),l,u=0,h=0,d=0,f;return i.type==="small"?(d=1e3+1e3*s+k7,t<1?a=1:t<1.4&&(a=.7),u=(1+s+S7)/a,h=(1+s)/a,l=E7("sqrtMain",u,d,s,r),l.style.minWidth="0.853em",f=.833/a):i.type==="large"?(d=(1e3+k7)*Jx[i.size],h=(Jx[i.size]+s)/a,u=(Jx[i.size]+s+S7)/a,l=E7("sqrtSize"+i.size,u,d,s,r),l.style.minWidth="1.02em",f=1/a):(u=t+s+S7,h=t+s,d=Math.floor(1e3*t+s)+k7,l=E7("sqrtTall",u,d,s,r),l.style.minWidth="0.742em",f=1.056),l.height=h,l.style.height=$t(u),{span:l,advanceWidth:f,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},"makeSqrtImage"),wQ=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),yVe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),kQ=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Jx=[0,1.2,1.8,2.4,3],SQ=o(function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),wQ.has(t)||kQ.has(t))return TQ(t,r,!1,n,i,a);if(yVe.has(t))return CQ(t,Jx[r],!1,n,i,a);throw new Pt("Illegal delimiter: '"+t+"'")},"makeSizedDelim"),vVe=[{type:"small",style:Fr.SCRIPTSCRIPT},{type:"small",style:Fr.SCRIPT},{type:"small",style:Fr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],xVe=[{type:"small",style:Fr.SCRIPTSCRIPT},{type:"small",style:Fr.SCRIPT},{type:"small",style:Fr.TEXT},{type:"stack"}],EQ=[{type:"small",style:Fr.SCRIPTSCRIPT},{type:"small",style:Fr.SCRIPT},{type:"small",style:Fr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],bVe=o(function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},"delimTypeToFont"),AQ=o(function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;sr)return l}return n[n.length-1]},"traverseSequence"),W7=o(function(t,r,n,i,a,s){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var l;kQ.has(t)?l=vVe:wQ.has(t)?l=EQ:l=xVe;var u=AQ(t,r,l,i);return u.type==="small"?dVe(t,u.style,n,i,a,s):u.type==="large"?TQ(t,u.size,n,i,a,s):CQ(t,r,n,i,a,s)},"makeCustomSizedDelim"),A7=o(function(t,r,n,i,a,s){var l=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,h=5/i.fontMetrics().ptPerEm,d=Math.max(r-l,n+l),f=Math.max(d/500*u,2*d-h);return W7(t,f,!0,i,a,s)},"makeLeftRightDelim"),DZ={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},TVe=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);o(cS,"checkDelimiter");Ut({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:o((e,t)=>{var r=cS(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:DZ[e.funcName].size,mclass:DZ[e.funcName].mclass,delim:r.text}},"handler"),htmlBuilder:o((e,t)=>e.delim==="."?Mt([e.mclass]):SQ(e.delim,e.size,t,e.mode,[e.mclass]),"htmlBuilder"),mathmlBuilder:o(e=>{var t=[];e.delim!=="."&&t.push(cl(e.delim,e.mode));var r=new Nt("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=$t(Jx[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r},"mathmlBuilder")});o(IZ,"assertParsed");Ut({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:o((e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Pt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:cS(t[0],e).text,color:r}},"handler")});Ut({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:o((e,t)=>{var r=cS(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Ur(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},"handler"),htmlBuilder:o((e,t)=>{IZ(e);for(var r=ia(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s{IZ(e);var r=Po(e.body,t);if(e.left!=="."){var n=new Nt("mo",[cl(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new Nt("mo",[cl(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return Q7(r)},"mathmlBuilder")});Ut({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:o((e,t)=>{var r=cS(t[0],e);if(!e.parser.leftrightDepth)throw new Pt("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},"handler"),htmlBuilder:o((e,t)=>{var r;if(e.delim===".")r=nb(t,[]);else{r=SQ(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?cl("|","text"):cl(e.delim,e.mode),n=new Nt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n},"mathmlBuilder")});uS=o((e,t)=>{var r=Z0(wn(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,s=0,l=ih(e.body);if(n==="sout")a=Mt(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var u=xi({number:.6,unit:"pt"},t),h=xi({number:.35,unit:"ex"},t),d=t.havingBaseSizing();i=i/d.sizeMultiplier;var f=r.height+r.depth+u+h;r.style.paddingLeft=$t(f/2+u);var p=Math.floor(1e3*f*i),m=EGe(p),g=new Gl([new zc("phase",m)],{width:"400em",height:$t(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=Rd(["hide-tail"],[g],t),a.style.height=$t(f),s=r.depth+u+h}else{/cancel/.test(n)?l||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,v=0,x=0;/box/.test(n)?(x=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(n==="colorbox"?0:x),v=y):n==="angl"?(x=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*x,v=Math.max(0,.25-r.depth)):(y=l?.2:0,v=y),a=aVe(r,n,y,v,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=$t(x)):n==="angl"&&x!==.049&&(a.style.borderTopWidth=$t(x),a.style.borderRightWidth=$t(x)),s=r.depth+v,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var b;if(e.backgroundColor)b=Cn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var T=/cancel|phase/.test(n)?["svg-align"]:[];b=Cn({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:T}]})}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!l?Mt(["mord","cancel-lap"],[b],t):Mt(["mord"],[b],t)},"htmlBuilder$7"),hS=o((e,t)=>{var r=0,n=new Nt(e.label.includes("colorbox")?"mpadded":"menclose",[Wn(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+$t(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n},"mathmlBuilder$6");Ut({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=Ur(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:uS,mathmlBuilder:hS});Ut({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=Ur(t[0],"color-token").color,s=Ur(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:l}},htmlBuilder:uS,mathmlBuilder:hS});Ut({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});Ut({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:uS,mathmlBuilder:hS});Ut({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:uS,mathmlBuilder:hS});Ut({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});RQ={};o(Gc,"defineEnvironment");_Q={};o(Ce,"defineMacro");Qs=class e{static{o(this,"SourceLocation")}constructor(t,r,n){this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new e(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}},Mo=class e{static{o(this,"Token")}constructor(t,r){this.text=t,this.loc=r}range(t,r){return new e(r,Qs.range(this,t))}};o(MZ,"getHLines");dS=o(e=>{var t=e.parser.settings;if(!t.displayMode)throw new Pt("{"+e.envName+"} can be used only in display mode.")},"validateAmsEnvironmentContext"),CVe=new Set(["gather","gather*"]);o(r8,"getAutoTag");o(Ld,"parseArray");o(n8,"dCellStyle");Vc=o(function(t,r){var n,i,a=t.body.length,s=t.hLinesBeforeRow,l=0,u=new Array(a),h=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),f=1/r.fontMetrics().ptPerEm,p=5*f;if(t.colSeparationType&&t.colSeparationType==="small"){var m=r.havingStyle(Fr.SCRIPT).sizeMultiplier;p=.2778*(m/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?xi({number:3,unit:"ex"},r):12*f,y=3*f,v=t.arraystretch*g,x=.7*v,b=.3*v,T=0;function k(Me){for(var ve=0;ve0&&(T+=.25),h.push({pos:T,isDashed:Me[ve]})}for(o(k,"setHLinePos"),k(s[0]),n=0;n0&&(I+=b,SMe))for(n=0;n=l)){var te=void 0;if(i>0||t.hskipBeforeAndAfter){var le,ie;te=(le=(ie=W)==null?void 0:ie.pregap)!=null?le:p,te!==0&&(D=Mt(["arraycolsep"],[]),D.style.width=$t(te),M.push(D))}var ae=[];for(n=0;n0){for(var ce=K0("hline",r,d),re=K0("hdashline",r,d),J=[{type:"elem",elem:ke,shift:0}];h.length>0;){var se=h.pop(),ge=se.pos-_;se.isDashed?J.push({type:"elem",elem:re,shift:ge}):J.push({type:"elem",elem:ce,shift:ge})}ke=Cn({positionType:"individualShift",children:J})}if(B.length===0)return Mt(["mord"],[ke],r);var Te=Cn({positionType:"individualShift",children:B}),we=Mt(["tag"],[Te],r);return sh([ke,we])},"htmlBuilder"),wVe={c:"center ",l:"left ",r:"right "},Wc=o(function(t,r){for(var n=[],i=new Nt("mtd",[],["mtr-glue"]),a=new Nt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=t.cols,y="",v=!1,x=0,b=g.length;g[0].type==="separator"&&(p+="top ",x=1),g[g.length-1].type==="separator"&&(p+="bottom ",b-=1);for(var T=x;T0?"left ":"",p+=L[L.length-1].length>0?"right ":"";for(var N=1;N0&&m&&(v=1),n[g]={type:"align",align:y,pregap:v,postgap:0}}return s.colSeparationType=m?"align":"alignat",s},"alignedHandler");Gc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=oS(t[0]),n=r?[t[0]]:Ur(t[0],"ordgroup").body,i=n.map(function(s){var l=sS(s),u=l.text;if("lcr".includes(u))return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new Pt("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Ld(e.parser,a,n8(e.envName))},htmlBuilder:Vc,mathmlBuilder:Wc});Gc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new Pt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Ld(e.parser,n,n8(e.envName)),s=Math.max(0,...a.body.map(l=>l.length));return a.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Vc,mathmlBuilder:Wc});Gc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Ld(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Vc,mathmlBuilder:Wc});Gc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=oS(t[0]),n=r?[t[0]]:Ur(t[0],"ordgroup").body,i=n.map(function(l){var u=sS(l),h=u.text;if("lc".includes(h))return{type:"align",align:h};throw new Pt("Unknown column alignment: "+h,l)});if(i.length>1)throw new Pt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=Ld(e.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new Pt("{subarray} can contain only one column");return s},htmlBuilder:Vc,mathmlBuilder:Wc});Gc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Ld(e.parser,t,n8(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Vc,mathmlBuilder:Wc});Gc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:LQ,htmlBuilder:Vc,mathmlBuilder:Wc});Gc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){CVe.has(e.envName)&&dS(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:r8(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ld(e.parser,t,"display")},htmlBuilder:Vc,mathmlBuilder:Wc});Gc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:LQ,htmlBuilder:Vc,mathmlBuilder:Wc});Gc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){dS(e);var t={autoTag:r8(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ld(e.parser,t,"display")},htmlBuilder:Vc,mathmlBuilder:Wc});Gc({type:"array",names:["CD"],props:{numArgs:0},handler(e){return dS(e),uVe(e.parser)},htmlBuilder:Vc,mathmlBuilder:Wc});Ce("\\nonumber","\\gdef\\@eqnsw{0}");Ce("\\notag","\\nonumber");Ut({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Pt(e.funcName+" valid only within array environment")}});NZ=RQ;Ut({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new Pt("Invalid environment name",i);for(var a="",s=0;s{var r=e.font,n=t.withFont(r);return wn(e.body,n)},"htmlBuilder$5"),IQ=o((e,t)=>{var r=e.font,n=t.withFont(r);return Wn(e.body,n)},"mathmlBuilder$4"),PZ={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ut({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=Zk(t[0]),a=n;return a in PZ&&(a=PZ[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},"handler"),htmlBuilder:DQ,mathmlBuilder:IQ});Ut({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:o((e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:lS(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:ih(n)}},"handler")});Ut({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:o((e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,s=r.parseExpression(!0,i),l="math"+n.slice(1);return{type:"font",mode:a,font:l,body:{type:"ordgroup",mode:r.mode,body:s}}},"handler"),htmlBuilder:DQ,mathmlBuilder:IQ});kVe=o((e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var s=wn(e.numer,a,t);if(e.continued){var l=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?g=3*p:g=7*p,y=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,g=p):(m=t.fontMetrics().num3,g=3*p),y=t.fontMetrics().denom2);var v;if(d){var b=t.fontMetrics().axisHeight;m-s.depth-(b+.5*f){var r=new Nt("mfrac",[Wn(e.numer,t),Wn(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=xi(e.barSize,t);r.setAttribute("linethickness",$t(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Nt("mo",[new Ei(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),e.rightDelim!=null){var s=new Nt("mo",[new Ei(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return Q7(i)}return r},"mathmlBuilder$3"),MQ=o((e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r},"wrapWithStyle");Ut({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],s,l=null,u=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,l="(",u=")";break;case"\\\\bracefrac":s=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,l="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}var h=n==="\\cfrac",d=null;return h||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),MQ({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:h,hasBarLine:s,leftDelim:l,rightDelim:u,barSize:null},d)},"handler"),htmlBuilder:kVe,mathmlBuilder:SVe});Ut({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});OZ=["display","text","script","scriptscript"],BZ=o(function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r},"delimFromValue");Ut({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=Zk(t[0]),s=a.type==="atom"&&a.family==="open"?BZ(a.text):null,l=Zk(t[1]),u=l.type==="atom"&&l.family==="close"?BZ(l.text):null,h=Ur(t[2],"size"),d,f=null;h.isBlank?d=!0:(f=h.value,d=f.number>0);var p=null,m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var g=Ur(m.body[0],"textord");p=OZ[Number(g.text)]}}else m=Ur(m,"textord"),p=OZ[Number(m.text)];return MQ({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:s,rightDelim:u},p)}});Ut({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ur(t[0],"size").value,token:i}}});Ut({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=Ur(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=t[2],l=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:l,barSize:a,leftDelim:null,rightDelim:null}},"handler")});NQ=o((e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?wn(e.sup,t.havingStyle(r.sup()),t):wn(e.sub,t.havingStyle(r.sub()),t),i=Ur(e.base,"horizBrace")):i=Ur(e,"horizBrace");var a=wn(i.base,t.havingBaseStyle(Fr.DISPLAY)),s=aS(i,t),l;if(i.isOver?(l=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]}),l.children[0].children[0].children[1].classes.push("svg-align")):(l=Cn({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]}),l.children[0].children[0].children[0].classes.push("svg-align")),n){var u=Mt(["minner",i.isOver?"mover":"munder"],[l],t);i.isOver?l=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]}):l=Cn({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]})}return Mt(["minner",i.isOver?"mover":"munder"],[l],t)},"htmlBuilder$3"),EVe=o((e,t)=>{var r=iS(e.label);return new Nt(e.isOver?"mover":"munder",[Wn(e.base,t),r])},"mathmlBuilder$2");Ut({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:NQ,mathmlBuilder:EVe});Ut({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e,n=t[1],i=Ur(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:qi(n)}:r.formatUnsupportedCmd("\\href")},"handler"),htmlBuilder:o((e,t)=>{var r=ia(e.body,t,!1);return WGe(e.href,[],r,t)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=_d(e.body,t);return r instanceof Nt||(r=new Nt("mrow",[r])),r.setAttribute("href",e.href),r},"mathmlBuilder")});Ut({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e,n=Ur(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=e,a=Ur(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(n){case"\\htmlClass":u.class=a,l={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,l={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,l={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var h=a.split(","),d=0;d{var r=ia(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Mt(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},"htmlBuilder"),mathmlBuilder:o((e,t)=>_d(e.body,t),"mathmlBuilder")});Ut({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:qi(t[0]),mathml:qi(t[1])}},"handler"),htmlBuilder:o((e,t)=>{var r=ia(e.html,t,!1);return sh(r)},"htmlBuilder"),mathmlBuilder:o((e,t)=>_d(e.mathml,t),"mathmlBuilder")});R7=o(function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new Pt("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!ZZ(n))throw new Pt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n},"sizeData");Ut({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:o((e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(r[0])for(var u=Ur(r[0],"raw").string,h=u.split(","),d=0;d{var r=xi(e.height,t),n=0;e.totalheight.number>0&&(n=xi(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=xi(e.width,t));var a={height:$t(r+n)};i>0&&(a.width=$t(i)),n>0&&(a.verticalAlign=$t(-n));var s=new N7(e.src,e.alt,a);return s.height=r,s.depth=n,s},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=new Nt("mglyph",[]);r.setAttribute("alt",e.alt);var n=xi(e.height,t),i=0;if(e.totalheight.number>0&&(i=xi(e.totalheight,t)-n,r.setAttribute("valign",$t(-i))),r.setAttribute("height",$t(n+i)),e.width.number>0){var a=xi(e.width,t);r.setAttribute("width",$t(a))}return r.setAttribute("src",e.src),r},"mathmlBuilder")});Ut({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=Ur(t[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return iQ(e.dimension,t)},mathmlBuilder(e,t){var r=xi(e.dimension,t);return new Qk(r)}});Ut({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},"handler"),htmlBuilder:o((e,t)=>{var r;e.alignment==="clap"?(r=Mt([],[wn(e.body,t)]),r=Mt(["inner"],[r],t)):r=Mt(["inner"],[wn(e.body,t)]);var n=Mt(["fix"],[]),i=Mt([e.alignment],[r,n],t),a=Mt(["strut"]);return a.style.height=$t(i.height+i.depth),i.depth&&(a.style.verticalAlign=$t(-i.depth)),i.children.unshift(a),i=Mt(["thinbox"],[i],t),Mt(["mord","vbox"],[i],t)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=new Nt("mpadded",[Wn(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r},"mathmlBuilder")});Ut({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}});Ut({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Pt("Mismatched "+e.funcName)}});$Z=o((e,t)=>{switch(t.style.size){case Fr.DISPLAY.size:return e.display;case Fr.TEXT.size:return e.text;case Fr.SCRIPT.size:return e.script;case Fr.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},"chooseMathStyle");Ut({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:o((e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:qi(t[0]),text:qi(t[1]),script:qi(t[2]),scriptscript:qi(t[3])}},"handler"),htmlBuilder:o((e,t)=>{var r=$Z(e,t),n=ia(r,t,!1);return sh(n)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=$Z(e,t);return _d(r,t)},"mathmlBuilder")});PQ=o((e,t,r,n,i,a,s)=>{e=Mt([],[e]);var l=r&&ih(r),u,h;if(t){var d=wn(t,n.havingStyle(i.sup()),n);h={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var f=wn(r,n.havingStyle(i.sub()),n);u={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-f.height)}}var p;if(h&&u){var m=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;p=Cn({positionType:"bottom",positionData:m,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:$t(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:$t(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(u){var g=e.height-s;p=Cn({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:$t(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]})}else if(h){var y=e.depth+s;p=Cn({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:$t(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var v=[p];if(u&&a!==0&&!l){var x=Mt(["mspace"],[],n);x.style.marginRight=$t(a),v.unshift(x)}return Mt(["mop","op-limits"],v,n)},"assembleSupSub"),OQ=new Set(["\\smallint"]),J0=o((e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=Ur(e.base,"op"),i=!0):a=Ur(e,"op");var s=t.style,l=!1;s.size===Fr.DISPLAY.size&&a.symbol&&!OQ.has(a.name)&&(l=!0);var u;if(a.symbol){var h=l?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),u=Ts(a.name,h,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),d.length>0){var f=u.italic,p=sQ(d+"Size"+(l?"2":"1"),t);u=Cn({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:l?.08:0}]}),a.name="\\"+d,u.classes.unshift("mop"),u.italic=f}}else if(a.body){var m=ia(a.body,t,!0);m.length===1&&m[0]instanceof ws?(u=m[0],u.classes[0]="mop"):u=Mt(["mop"],m,t)}else{for(var g=[],y=1;y{var r;if(e.symbol)r=new Nt("mo",[cl(e.name,e.mode)]),OQ.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Nt("mo",Po(e.body,t));else{r=new Nt("mi",[new Ei(e.name.slice(1))]);var n=new Nt("mo",[cl("\u2061","text")]);e.parentIsSupSub?r=new Nt("mrow",[r,n]):r=cQ([r,n])}return r},"mathmlBuilder$1"),AVe={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Ut({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=AVe[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},"handler"),htmlBuilder:J0,mathmlBuilder:ab});Ut({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:o((e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:qi(n)}},"handler"),htmlBuilder:J0,mathmlBuilder:ab});RVe={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Ut({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:J0,mathmlBuilder:ab});Ut({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:J0,mathmlBuilder:ab});Ut({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=RVe[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:J0,mathmlBuilder:ab});BQ=o((e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=Ur(e.base,"operatorname"),i=!0):a=Ur(e,"operatorname");var s;if(a.body.length>0){for(var l=a.body.map(f=>{var p="text"in f?f.text:void 0;return typeof p=="string"?{type:"textord",mode:f.mode,text:p}:f}),u=ia(l,t.withFont("mathrm"),!0),h=0;h{for(var r=Po(e.body,t.withFont("mathrm")),n=!0,i=0;id.toText()).join("");r=[new Ei(l)]}var u=new Nt("mi",r);u.setAttribute("mathvariant","normal");var h=new Nt("mo",[cl("\u2061","text")]);return e.parentIsSupSub?new Nt("mrow",[u,h]):cQ([u,h])},"mathmlBuilder");Ut({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:o((e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:qi(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},"handler"),htmlBuilder:BQ,mathmlBuilder:_Ve});Ce("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Gp({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?sh(ia(e.body,t,!1)):Mt(["mord"],ia(e.body,t,!0),t)},mathmlBuilder(e,t){return _d(e.body,t,!0)}});Ut({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=wn(e.body,t.havingCrampedStyle()),n=K0("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Mt(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new Nt("mo",[new Ei("\u203E")]);r.setAttribute("stretchy","true");var n=new Nt("mover",[Wn(e.body,t),r]);return n.setAttribute("accent","true"),n}});Ut({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:qi(n)}},"handler"),htmlBuilder:o((e,t)=>{var r=ia(e.body,t.withPhantom(),!1);return sh(r)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=Po(e.body,t);return new Nt("mphantom",r)},"mathmlBuilder")});Ce("\\hphantom","\\smash{\\phantom{#1}}");Ut({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:o((e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},"handler"),htmlBuilder:o((e,t)=>{var r=Mt(["inner"],[wn(e.body,t.withPhantom())]),n=Mt(["fix"],[]);return Mt(["mord","rlap"],[r,n],t)},"htmlBuilder"),mathmlBuilder:o((e,t)=>{var r=Po(qi(e.body),t),n=new Nt("mphantom",r),i=new Nt("mpadded",[n]);return i.setAttribute("width","0px"),i},"mathmlBuilder")});Ut({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Ur(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=wn(e.body,t),n=xi(e.dy,t);return Cn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Nt("mpadded",[Wn(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});Ut({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ut({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=Ur(t[0],"size"),s=Ur(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Ur(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var r=Mt(["mord","rule"],[],t),n=xi(e.width,t),i=xi(e.height,t),a=e.shift?xi(e.shift,t):0;return r.style.borderRightWidth=$t(n),r.style.borderTopWidth=$t(i),r.style.bottom=$t(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=xi(e.width,t),n=xi(e.height,t),i=e.shift?xi(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Nt("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",$t(r)),s.setAttribute("height",$t(n));var l=new Nt("mpadded",[s]);return i>=0?l.setAttribute("height",$t(i)):(l.setAttribute("height",$t(i)),l.setAttribute("depth",$t(-i))),l.setAttribute("voffset",$t(i)),l}});o($Q,"sizingGroup");FZ=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],LVe=o((e,t)=>{var r=t.havingSize(e.size);return $Q(e.body,r,t)},"htmlBuilder");Ut({type:"sizing",names:FZ,props:{numArgs:0,allowedInText:!0},handler:o((e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:FZ.indexOf(n)+1,body:a}},"handler"),htmlBuilder:LVe,mathmlBuilder:o((e,t)=>{var r=t.havingSize(e.size),n=Po(e.body,r),i=new Nt("mstyle",n);return i.setAttribute("mathsize",$t(r.sizeMultiplier)),i},"mathmlBuilder")});Ut({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:o((e,t,r)=>{var{parser:n}=e,i=!1,a=!1,s=r[0]&&Ur(r[0],"ordgroup");if(s)for(var l="",u=0;u{var r=Mt([],[wn(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return Mt(["mord","smash"],[r],t);if(r.children)for(var n=0;n{var r=new Nt("mpadded",[Wn(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r},"mathmlBuilder")});Ut({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=wn(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Z0(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.idr.height+r.depth+s&&(s=(s+f-r.height-r.depth)/2);var p=u.height-r.height-s-h;r.style.paddingLeft=$t(d);var m=Cn({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+p)},{type:"elem",elem:u},{type:"kern",size:h}]});if(e.index){var g=t.havingStyle(Fr.SCRIPTSCRIPT),y=wn(e.index,g,t),v=.6*(m.height-m.depth),x=Cn({positionType:"shift",positionData:-v,children:[{type:"elem",elem:y}]}),b=Mt(["root"],[x]);return Mt(["mord","sqrt"],[b,m],t)}else return Mt(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new Nt("mroot",[Wn(r,t),Wn(n,t)]):new Nt("msqrt",[Wn(r,t)])}});zZ={display:Fr.DISPLAY,text:Fr.TEXT,script:Fr.SCRIPT,scriptscript:Fr.SCRIPTSCRIPT};Ut({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var r=zZ[e.style],n=t.havingStyle(r).withFont("");return $Q(e.body,n,t)},mathmlBuilder(e,t){var r=zZ[e.style],n=t.havingStyle(r),i=Po(e.body,n),a=new Nt("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=s[e.style];return a.setAttribute("scriptlevel",l[0]),a.setAttribute("displaystyle",l[1]),a}});DVe=o(function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===Fr.DISPLAY.size||n.alwaysHandleSupSub);return i?J0:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===Fr.DISPLAY.size||n.limits);return a?BQ:null}else{if(n.type==="accent")return ih(n.base)?e8:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?NQ:null}else return null}else return null},"htmlBuilderDelegate");Gp({type:"supsub",htmlBuilder(e,t){var r=DVe(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,s=wn(n,t),l,u,h=t.fontMetrics(),d=0,f=0,p=n&&ih(n);if(i){var m=t.havingStyle(t.style.sup());l=wn(i,m,t),p||(d=s.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var g=t.havingStyle(t.style.sub());u=wn(a,g,t),p||(f=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var y;t.style===Fr.DISPLAY?y=h.sup1:t.style.cramped?y=h.sup3:y=h.sup2;var v=t.sizeMultiplier,x=$t(.5/h.ptPerEm/v),b=null;if(u){var T=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof ws||T)&&(b=$t(-s.italic))}var k;if(l&&u){d=Math.max(d,y,l.depth+.25*h.xHeight),f=Math.max(f,h.sub2);var C=h.defaultRuleThickness,w=4*C;if(d-l.depth-(u.height-f)0&&(d+=S,f-=S)}var R=[{type:"elem",elem:u,shift:f,marginRight:x,marginLeft:b},{type:"elem",elem:l,shift:-d,marginRight:x}];k=Cn({positionType:"individualShift",children:R})}else if(u){f=Math.max(f,h.sub1,u.height-.8*h.xHeight);var L=[{type:"elem",elem:u,marginLeft:b,marginRight:x}];k=Cn({positionType:"shift",positionData:f,children:L})}else if(l)d=Math.max(d,y,l.depth+.25*h.xHeight),k=Cn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:l,marginRight:x}]});else throw new Error("supsub must have either sup or sub.");var N=F7(s,"right")||"mord";return Mt([N],[s,Mt(["msupsub"],[k])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Wn(e.base,t)];e.sub&&a.push(Wn(e.sub,t)),e.sup&&a.push(Wn(e.sup,t));var s;if(r)s=n?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===Fr.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===Fr.DISPLAY||h.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===Fr.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===Fr.DISPLAY)?s="munder":s="msub"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Fr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Fr.DISPLAY)?s="mover":s="msup"}return new Nt(s,a)}});Gp({type:"atom",htmlBuilder(e,t){return K7(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new Nt("mo",[cl(e.text,e.mode)]);if(e.family==="bin"){var n=J7(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});FQ={mi:"italic",mn:"normal",mtext:"normal"};Gp({type:"mathord",htmlBuilder(e,t){return nS(e,t,"mathord")},mathmlBuilder(e,t){var r=new Nt("mi",[cl(e.text,e.mode,t)]),n=J7(e,t)||"italic";return n!==FQ[r.type]&&r.setAttribute("mathvariant",n),r}});Gp({type:"textord",htmlBuilder(e,t){return nS(e,t,"textord")},mathmlBuilder(e,t){var r=cl(e.text,e.mode,t),n=J7(e,t)||"normal",i;return e.mode==="text"?i=new Nt("mtext",[r]):/[0-9]/.test(e.text)?i=new Nt("mn",[r]):e.text==="\\prime"?i=new Nt("mo",[r]):i=new Nt("mi",[r]),n!==FQ[i.type]&&i.setAttribute("mathvariant",n),i}});_7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},L7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Gp({type:"spacing",htmlBuilder(e,t){if(L7.hasOwnProperty(e.text)){var r=L7[e.text].className||"";if(e.mode==="text"){var n=nS(e,t,"textord");return n.classes.push(r),n}else return Mt(["mspace",r],[K7(e.text,e.mode,t)],t)}else{if(_7.hasOwnProperty(e.text))return Mt(["mspace",_7[e.text]],[],t);throw new Pt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(L7.hasOwnProperty(e.text))r=new Nt("mtext",[new Ei("\xA0")]);else{if(_7.hasOwnProperty(e.text))return new Nt("mspace");throw new Pt('Unknown type of space "'+e.text+'"')}return r}});GZ=o(()=>{var e=new Nt("mtd",[]);return e.setAttribute("width","50%"),e},"pad");Gp({type:"tag",mathmlBuilder(e,t){var r=new Nt("mtable",[new Nt("mtr",[GZ(),new Nt("mtd",[_d(e.body,t)]),GZ(),new Nt("mtd",[_d(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});VZ={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},WZ={"\\textbf":"textbf","\\textmd":"textmd"},IVe={"\\textit":"textit","\\textup":"textup"},qZ=o((e,t)=>{var r=e.font;if(r){if(VZ[r])return t.withTextFontFamily(VZ[r]);if(WZ[r])return t.withTextFontWeight(WZ[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(IVe[r])},"optionsWithFont");Ut({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:qi(i),font:n}},htmlBuilder(e,t){var r=qZ(e,t),n=ia(e.body,r,!0);return Mt(["mord","text"],n,r)},mathmlBuilder(e,t){var r=qZ(e,t);return _d(e.body,r)}});Ut({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=wn(e.body,t),n=K0("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Cn({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Mt(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new Nt("mo",[new Ei("\u203E")]);r.setAttribute("stretchy","true");var n=new Nt("munder",[Wn(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});Ut({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=wn(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Cn({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Nt("mpadded",[Wn(e.body,t)],["vcenter"]);return new Nt("mrow",[r])}});Ut({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Pt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=HZ(e),n=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"\u2423":"\xA0"),"makeVerb"),kd=oQ,zQ=`[ \r
+ ]`,MVe="\\\\[a-zA-Z@]+",NVe="\\\\[^\uD800-\uDFFF]",PVe="("+MVe+")"+zQ+"*",OVe=`\\\\(
+|[ \r ]+
+?)[ \r ]*`,q7="[\u0300-\u036F]",BVe=new RegExp(q7+"+$"),$Ve="("+zQ+"+)|"+(OVe+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(q7+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(q7+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+PVe)+("|"+NVe+")"),eS=class{static{o(this,"Lexer")}constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp($Ve,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Mo("EOF",new Qs(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new Pt("Unexpected character: '"+t[r]+"'",new Mo(t[r],new Qs(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
+`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Mo(i,new Qs(this,r,this.tokenRegex.lastIndex))}},H7=class{static{o(this,"Namespace")}constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Pt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}},FVe=_Q;Ce("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});Ce("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});Ce("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});Ce("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});Ce("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});Ce("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Ce("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});UZ={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Ce("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Pt("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=UZ[t.text],n==null||n>=r)throw new Pt("Invalid base-"+r+" digit "+t.text);for(var i;(i=UZ[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new Pt("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new Pt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new Pt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var l=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)u+=h.text,h=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new Pt("Invalid number of arguments: "+u);l=parseInt(u),i=e.consumeArg().tokens}return s&&n||e.macros.set(a,{tokens:i,numArgs:l}),""},"newcommand");Ce("\\newcommand",e=>i8(e,!1,!0,!1));Ce("\\renewcommand",e=>i8(e,!0,!1,!1));Ce("\\providecommand",e=>i8(e,!0,!0,!0));Ce("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});Ce("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});Ce("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),kd[r],ui.math[r],ui.text[r]),""});Ce("\\bgroup","{");Ce("\\egroup","}");Ce("~","\\nobreakspace");Ce("\\lq","`");Ce("\\rq","'");Ce("\\aa","\\r a");Ce("\\AA","\\r A");Ce("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");Ce("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Ce("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");Ce("\u212C","\\mathscr{B}");Ce("\u2130","\\mathscr{E}");Ce("\u2131","\\mathscr{F}");Ce("\u210B","\\mathscr{H}");Ce("\u2110","\\mathscr{I}");Ce("\u2112","\\mathscr{L}");Ce("\u2133","\\mathscr{M}");Ce("\u211B","\\mathscr{R}");Ce("\u212D","\\mathfrak{C}");Ce("\u210C","\\mathfrak{H}");Ce("\u2128","\\mathfrak{Z}");Ce("\\Bbbk","\\Bbb{k}");Ce("\\llap","\\mathllap{\\textrm{#1}}");Ce("\\rlap","\\mathrlap{\\textrm{#1}}");Ce("\\clap","\\mathclap{\\textrm{#1}}");Ce("\\mathstrut","\\vphantom{(}");Ce("\\underbar","\\underline{\\text{#1}}");Ce("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Ce("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");Ce("\\ne","\\neq");Ce("\u2260","\\neq");Ce("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");Ce("\u2209","\\notin");Ce("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");Ce("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");Ce("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");Ce("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");Ce("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");Ce("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");Ce("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");Ce("\u27C2","\\perp");Ce("\u203C","\\mathclose{!\\mkern-0.8mu!}");Ce("\u220C","\\notni");Ce("\u231C","\\ulcorner");Ce("\u231D","\\urcorner");Ce("\u231E","\\llcorner");Ce("\u231F","\\lrcorner");Ce("\xA9","\\copyright");Ce("\xAE","\\textregistered");Ce("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Ce("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Ce("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Ce("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Ce("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Ce("\u22EE","\\vdots");Ce("\\varGamma","\\mathit{\\Gamma}");Ce("\\varDelta","\\mathit{\\Delta}");Ce("\\varTheta","\\mathit{\\Theta}");Ce("\\varLambda","\\mathit{\\Lambda}");Ce("\\varXi","\\mathit{\\Xi}");Ce("\\varPi","\\mathit{\\Pi}");Ce("\\varSigma","\\mathit{\\Sigma}");Ce("\\varUpsilon","\\mathit{\\Upsilon}");Ce("\\varPhi","\\mathit{\\Phi}");Ce("\\varPsi","\\mathit{\\Psi}");Ce("\\varOmega","\\mathit{\\Omega}");Ce("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Ce("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Ce("\\boxed","\\fbox{$\\displaystyle{#1}$}");Ce("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Ce("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Ce("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Ce("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Ce("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");YZ={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},zVe=new Set(["bin","rel"]);Ce("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in YZ?t=YZ[r]:(r.slice(0,4)==="\\not"||r in ui.math&&zVe.has(ui.math[r].group))&&(t="\\dotsb"),t});a8={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Ce("\\dotso",function(e){var t=e.future().text;return t in a8?"\\ldots\\,":"\\ldots"});Ce("\\dotsc",function(e){var t=e.future().text;return t in a8&&t!==","?"\\ldots\\,":"\\ldots"});Ce("\\cdots",function(e){var t=e.future().text;return t in a8?"\\@cdots\\,":"\\@cdots"});Ce("\\dotsb","\\cdots");Ce("\\dotsm","\\cdots");Ce("\\dotsi","\\!\\cdots");Ce("\\dotsx","\\ldots\\,");Ce("\\DOTSI","\\relax");Ce("\\DOTSB","\\relax");Ce("\\DOTSX","\\relax");Ce("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Ce("\\,","\\tmspace+{3mu}{.1667em}");Ce("\\thinspace","\\,");Ce("\\>","\\mskip{4mu}");Ce("\\:","\\tmspace+{4mu}{.2222em}");Ce("\\medspace","\\:");Ce("\\;","\\tmspace+{5mu}{.2777em}");Ce("\\thickspace","\\;");Ce("\\!","\\tmspace-{3mu}{.1667em}");Ce("\\negthinspace","\\!");Ce("\\negmedspace","\\tmspace-{4mu}{.2222em}");Ce("\\negthickspace","\\tmspace-{5mu}{.277em}");Ce("\\enspace","\\kern.5em ");Ce("\\enskip","\\hskip.5em\\relax");Ce("\\quad","\\hskip1em\\relax");Ce("\\qquad","\\hskip2em\\relax");Ce("\\tag","\\@ifstar\\tag@literal\\tag@paren");Ce("\\tag@paren","\\tag@literal{({#1})}");Ce("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Pt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Ce("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Ce("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Ce("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Ce("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Ce("\\newline","\\\\\\relax");Ce("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");GQ=$t(Fc["Main-Regular"][84][1]-.7*Fc["Main-Regular"][65][1]);Ce("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+GQ+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Ce("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+GQ+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Ce("\\hspace","\\@ifstar\\@hspacer\\@hspace");Ce("\\@hspace","\\hskip #1\\relax");Ce("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Ce("\\ordinarycolon",":");Ce("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Ce("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Ce("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Ce("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Ce("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Ce("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Ce("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Ce("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Ce("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Ce("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Ce("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Ce("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Ce("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Ce("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Ce("\u2237","\\dblcolon");Ce("\u2239","\\eqcolon");Ce("\u2254","\\coloneqq");Ce("\u2255","\\eqqcolon");Ce("\u2A74","\\Coloneqq");Ce("\\ratio","\\vcentcolon");Ce("\\coloncolon","\\dblcolon");Ce("\\colonequals","\\coloneqq");Ce("\\coloncolonequals","\\Coloneqq");Ce("\\equalscolon","\\eqqcolon");Ce("\\equalscoloncolon","\\Eqqcolon");Ce("\\colonminus","\\coloneq");Ce("\\coloncolonminus","\\Coloneq");Ce("\\minuscolon","\\eqcolon");Ce("\\minuscoloncolon","\\Eqcolon");Ce("\\coloncolonapprox","\\Colonapprox");Ce("\\coloncolonsim","\\Colonsim");Ce("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ce("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ce("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ce("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ce("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");Ce("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Ce("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Ce("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Ce("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Ce("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Ce("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Ce("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Ce("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Ce("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");Ce("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");Ce("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");Ce("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");Ce("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");Ce("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");Ce("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");Ce("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");Ce("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");Ce("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");Ce("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");Ce("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");Ce("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");Ce("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");Ce("\\imath","\\html@mathml{\\@imath}{\u0131}");Ce("\\jmath","\\html@mathml{\\@jmath}{\u0237}");Ce("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");Ce("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");Ce("\u27E6","\\llbracket");Ce("\u27E7","\\rrbracket");Ce("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");Ce("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");Ce("\u2983","\\lBrace");Ce("\u2984","\\rBrace");Ce("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");Ce("\u29B5","\\minuso");Ce("\\darr","\\downarrow");Ce("\\dArr","\\Downarrow");Ce("\\Darr","\\Downarrow");Ce("\\lang","\\langle");Ce("\\rang","\\rangle");Ce("\\uarr","\\uparrow");Ce("\\uArr","\\Uparrow");Ce("\\Uarr","\\Uparrow");Ce("\\N","\\mathbb{N}");Ce("\\R","\\mathbb{R}");Ce("\\Z","\\mathbb{Z}");Ce("\\alef","\\aleph");Ce("\\alefsym","\\aleph");Ce("\\Alpha","\\mathrm{A}");Ce("\\Beta","\\mathrm{B}");Ce("\\bull","\\bullet");Ce("\\Chi","\\mathrm{X}");Ce("\\clubs","\\clubsuit");Ce("\\cnums","\\mathbb{C}");Ce("\\Complex","\\mathbb{C}");Ce("\\Dagger","\\ddagger");Ce("\\diamonds","\\diamondsuit");Ce("\\empty","\\emptyset");Ce("\\Epsilon","\\mathrm{E}");Ce("\\Eta","\\mathrm{H}");Ce("\\exist","\\exists");Ce("\\harr","\\leftrightarrow");Ce("\\hArr","\\Leftrightarrow");Ce("\\Harr","\\Leftrightarrow");Ce("\\hearts","\\heartsuit");Ce("\\image","\\Im");Ce("\\infin","\\infty");Ce("\\Iota","\\mathrm{I}");Ce("\\isin","\\in");Ce("\\Kappa","\\mathrm{K}");Ce("\\larr","\\leftarrow");Ce("\\lArr","\\Leftarrow");Ce("\\Larr","\\Leftarrow");Ce("\\lrarr","\\leftrightarrow");Ce("\\lrArr","\\Leftrightarrow");Ce("\\Lrarr","\\Leftrightarrow");Ce("\\Mu","\\mathrm{M}");Ce("\\natnums","\\mathbb{N}");Ce("\\Nu","\\mathrm{N}");Ce("\\Omicron","\\mathrm{O}");Ce("\\plusmn","\\pm");Ce("\\rarr","\\rightarrow");Ce("\\rArr","\\Rightarrow");Ce("\\Rarr","\\Rightarrow");Ce("\\real","\\Re");Ce("\\reals","\\mathbb{R}");Ce("\\Reals","\\mathbb{R}");Ce("\\Rho","\\mathrm{P}");Ce("\\sdot","\\cdot");Ce("\\sect","\\S");Ce("\\spades","\\spadesuit");Ce("\\sub","\\subset");Ce("\\sube","\\subseteq");Ce("\\supe","\\supseteq");Ce("\\Tau","\\mathrm{T}");Ce("\\thetasym","\\vartheta");Ce("\\weierp","\\wp");Ce("\\Zeta","\\mathrm{Z}");Ce("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Ce("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Ce("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Ce("\\bra","\\mathinner{\\langle{#1}|}");Ce("\\ket","\\mathinner{|{#1}\\rangle}");Ce("\\braket","\\mathinner{\\langle{#1}\\rangle}");Ce("\\Bra","\\left\\langle#1\\right|");Ce("\\Ket","\\left|#1\\right\\rangle");VQ=o(e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),l=t.macros.get("\\|");t.macros.beginGroup();var u=o(f=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",l));var m=f;if(!f&&i.length){var g=p.future();g.text==="|"&&(p.popToken(),m=!0)}return{tokens:m?i:n,numArgs:0}},"midMacro");t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var h=t.consumeArg().tokens,d=t.expandTokens([...a,...h,...r]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},"braketHelper");Ce("\\bra@ket",VQ(!1));Ce("\\bra@set",VQ(!0));Ce("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Ce("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Ce("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Ce("\\angln","{\\angl n}");Ce("\\blue","\\textcolor{##6495ed}{#1}");Ce("\\orange","\\textcolor{##ffa500}{#1}");Ce("\\pink","\\textcolor{##ff00af}{#1}");Ce("\\red","\\textcolor{##df0030}{#1}");Ce("\\green","\\textcolor{##28ae7b}{#1}");Ce("\\gray","\\textcolor{gray}{#1}");Ce("\\purple","\\textcolor{##9d38bd}{#1}");Ce("\\blueA","\\textcolor{##ccfaff}{#1}");Ce("\\blueB","\\textcolor{##80f6ff}{#1}");Ce("\\blueC","\\textcolor{##63d9ea}{#1}");Ce("\\blueD","\\textcolor{##11accd}{#1}");Ce("\\blueE","\\textcolor{##0c7f99}{#1}");Ce("\\tealA","\\textcolor{##94fff5}{#1}");Ce("\\tealB","\\textcolor{##26edd5}{#1}");Ce("\\tealC","\\textcolor{##01d1c1}{#1}");Ce("\\tealD","\\textcolor{##01a995}{#1}");Ce("\\tealE","\\textcolor{##208170}{#1}");Ce("\\greenA","\\textcolor{##b6ffb0}{#1}");Ce("\\greenB","\\textcolor{##8af281}{#1}");Ce("\\greenC","\\textcolor{##74cf70}{#1}");Ce("\\greenD","\\textcolor{##1fab54}{#1}");Ce("\\greenE","\\textcolor{##0d923f}{#1}");Ce("\\goldA","\\textcolor{##ffd0a9}{#1}");Ce("\\goldB","\\textcolor{##ffbb71}{#1}");Ce("\\goldC","\\textcolor{##ff9c39}{#1}");Ce("\\goldD","\\textcolor{##e07d10}{#1}");Ce("\\goldE","\\textcolor{##a75a05}{#1}");Ce("\\redA","\\textcolor{##fca9a9}{#1}");Ce("\\redB","\\textcolor{##ff8482}{#1}");Ce("\\redC","\\textcolor{##f9685d}{#1}");Ce("\\redD","\\textcolor{##e84d39}{#1}");Ce("\\redE","\\textcolor{##bc2612}{#1}");Ce("\\maroonA","\\textcolor{##ffbde0}{#1}");Ce("\\maroonB","\\textcolor{##ff92c6}{#1}");Ce("\\maroonC","\\textcolor{##ed5fa6}{#1}");Ce("\\maroonD","\\textcolor{##ca337c}{#1}");Ce("\\maroonE","\\textcolor{##9e034e}{#1}");Ce("\\purpleA","\\textcolor{##ddd7ff}{#1}");Ce("\\purpleB","\\textcolor{##c6b9fc}{#1}");Ce("\\purpleC","\\textcolor{##aa87ff}{#1}");Ce("\\purpleD","\\textcolor{##7854ab}{#1}");Ce("\\purpleE","\\textcolor{##543b78}{#1}");Ce("\\mintA","\\textcolor{##f5f9e8}{#1}");Ce("\\mintB","\\textcolor{##edf2df}{#1}");Ce("\\mintC","\\textcolor{##e0e5cc}{#1}");Ce("\\grayA","\\textcolor{##f6f7f7}{#1}");Ce("\\grayB","\\textcolor{##f0f1f2}{#1}");Ce("\\grayC","\\textcolor{##e3e5e6}{#1}");Ce("\\grayD","\\textcolor{##d6d8da}{#1}");Ce("\\grayE","\\textcolor{##babec2}{#1}");Ce("\\grayF","\\textcolor{##888d93}{#1}");Ce("\\grayG","\\textcolor{##626569}{#1}");Ce("\\grayH","\\textcolor{##3b3e40}{#1}");Ce("\\grayI","\\textcolor{##21242c}{#1}");Ce("\\kaBlue","\\textcolor{##314453}{#1}");Ce("\\kaGreen","\\textcolor{##71B307}{#1}");WQ={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},U7=class{static{o(this,"MacroExpander")}constructor(t,r,n){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new H7(FVe,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new eS(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Mo("EOF",n.loc)),this.pushTokens(i),new Mo("",Qs.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,l=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Pt("Extra }",a)}else if(a.text==="EOF")throw new Pt("Unexpected end of input in a macro argument, expected '"+(t&&n?t[l]:"}")+"'",a);if(t&&n)if((s===0||s===1&&t[l]==="{")&&a.text===t[l]){if(++l,l===t.length){r.splice(-l,l);break}}else l=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Pt("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new Pt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new Pt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var l=a.length-1;l>=0;--l){var u=a[l];if(u.text==="#"){if(l===0)throw new Pt("Incomplete placeholder at end of macro body",u);if(u=a[--l],u.text==="#")a.splice(l+1,1);else if(/^[1-9]$/.test(u.text))a.splice(l,2,...s[+u.text-1]);else throw new Pt("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Mo(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var l=new eS(i,this.settings),u=[],h=l.lex();h.text!=="EOF";)u.push(h),h=l.lex();u.reverse();var d={tokens:u,numArgs:a};return d}return i}isDefined(t){return this.macros.has(t)||kd.hasOwnProperty(t)||ui.math.hasOwnProperty(t)||ui.text.hasOwnProperty(t)||WQ.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:kd.hasOwnProperty(t)&&!kd[t].primitive}},jZ=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Wk=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),D7={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},XZ={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},tS=class e{static{o(this,"Parser")}constructor(t,r){this.mode="math",this.gullet=new U7(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new Pt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Mo("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||r&&i.text===r||t&&kd[i.text]&&kd[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i=128)this.settings.strict&&(KZ(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:Qs.range(t),text:r};else return null;if(this.consume(),a)for(var f=0;f{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Zs.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}var Vp,VVe,WVe,eJ,QQ,mr,HVe,UVe,YVe,jVe,tJ,Wp,XVe,KVe,qc,l8,ZVe,QVe,JQ,pS,ni,qp,JVe,ey,xt,Vr=F(()=>{"use strict";H0();ur();Vp=/
/gi,VVe=o(e=>e?tJ(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),WVe=(()=>{let e=!1;return()=>{e||(qVe(),e=!0)}})();o(qVe,"setupDompurifyHooks");eJ=o(e=>(WVe(),Zs.sanitize(e)),"removeScript"),QQ=o((e,t)=>{if(Gr(t)){let r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=eJ(e):r!=="loose"&&(e=tJ(e),e=e.replace(/ /g,">"),e=e.replace(/=/g,"="),e=jVe(e))}return e},"sanitizeMore"),mr=o((e,t)=>e&&(t.dompurifyConfig?e=Zs.sanitize(QQ(e,t),t.dompurifyConfig).toString():e=Zs.sanitize(QQ(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),HVe=o((e,t)=>typeof e=="string"?mr(e,t):e.flat().map(r=>mr(r,t)),"sanitizeTextOrArray"),UVe=o(e=>Vp.test(e),"hasBreaks"),YVe=o(e=>e.split(Vp),"splitBreaks"),jVe=o(e=>e.replace(/#br#/g,"
"),"placeholderToBreak"),tJ=o(e=>e.replace(Vp,"#br#"),"breakToPlaceholder"),Wp=o(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),XVe=o(function(...e){let t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),KVe=o(function(...e){let t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),qc=o(function(e){let t=e.split(/(,)/),r=[];for(let n=0;n0&&n+1Math.max(0,e.split(t).length-1),"countOccurrence"),ZVe=o((e,t)=>{let r=l8(e,"~"),n=l8(t,"~");return r===1&&n===1},"shouldCombineSets"),QVe=o(e=>{let t=l8(e,"~"),r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);let n=[...e],i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),JQ=o(()=>window.MathMLElement!==void 0,"isMathMLSupported"),pS=/\$\$(.*?)\$\$/g,ni=o(e=>(e.match(pS)?.length??0)>0,"hasKatex"),qp=o(async(e,t)=>{let r=document.createElement("div");r.innerHTML=await ey(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),JVe=o(async(e,t)=>{if(!ni(e))return e;if(!(JQ()||t.legacyMathML||t.forceLegacyMathML))return e.replace(pS,"MathML is unsupported in this environment.");{let{default:r}=await Promise.resolve().then(()=>(ZQ(),KQ)),n=t.forceLegacyMathML||!JQ()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Vp).map(i=>ni(i)?`${i}`:`${i}`).join("").replace(pS,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(//g,""))}return e.replace(pS,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),ey=o(async(e,t)=>mr(await JVe(e,t),t),"renderKatexSanitized"),xt={getRows:VVe,sanitizeText:mr,sanitizeTextOrArray:HVe,hasBreaks:UVe,splitBreaks:YVe,lineBreakRegex:Vp,removeScript:eJ,getUrl:Wp,evaluate:ya,getMax:XVe,getMin:KVe}});var u8,c8,rJ,ty,nJ,iJ,ts,Vl=F(()=>{"use strict";tK();ur();Vr();vt();u8={body:'? ',height:80,width:80},c8=new Map,rJ=new Map,ty=o(e=>{for(let t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Z.debug("Registering icon pack:",t.name),"loader"in t)rJ.set(t.name,t.loader);else if("icons"in t)c8.set(t.name,t.icons);else throw Z.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),nJ=o(async(e,t)=>{let r=MD(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);let n=r.prefix||t;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let i=c8.get(n);if(!i){let s=rJ.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await s(),prefix:n},c8.set(n,i)}catch(l){throw Z.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}let a=PD(i,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),iJ=o(async e=>{try{return await nJ(e),!0}catch{return!1}},"isIconAvailable"),ts=o(async(e,t,r)=>{let n;try{n=await nJ(e,t?.fallbackPrefix)}catch(s){Z.error(s),n=u8}let i=BD(n,t),a=FD($D(i.body),{...i.attributes,...r});return mr(a,_t())},"getIconSVG")});function mS(e){for(var t=[],r=1;r{"use strict";o(mS,"dedent")});var gS,Hp,aJ,yS=F(()=>{"use strict";gS=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,Hp=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,aJ=/\s*%%.*\n/gm});var ry,d8=F(()=>{"use strict";ry=class extends Error{static{o(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}}});var oh,ny,sb,f8,sJ,Up=F(()=>{"use strict";vt();yS();d8();oh={},ny=o(function(e,t){e=e.replace(gS,"").replace(Hp,"").replace(aJ,`
+`);for(let[r,{detector:n}]of Object.entries(oh))if(n(e,t))return r;throw new ry(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),sb=o((...e)=>{for(let{id:t,detector:r,loader:n}of e)f8(t,r,n)},"registerLazyLoadedDiagrams"),f8=o((e,t,r)=>{oh[e]&&Z.warn(`Detector with key ${e} already exists. Overwriting.`),oh[e]={detector:t,loader:r},Z.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),sJ=o(e=>oh[e].loader,"getDiagramLoader")});var ob,oJ,p8=F(()=>{"use strict";ob=(function(){var e=o(function(J,se,ge,Te){for(ge=ge||{},Te=J.length;Te--;ge[J[Te]]=se);return ge},"o"),t=[1,24],r=[1,25],n=[1,26],i=[1,27],a=[1,28],s=[1,63],l=[1,64],u=[1,65],h=[1,66],d=[1,67],f=[1,68],p=[1,69],m=[1,29],g=[1,30],y=[1,31],v=[1,32],x=[1,33],b=[1,34],T=[1,35],k=[1,36],C=[1,37],w=[1,38],S=[1,39],R=[1,40],L=[1,41],N=[1,42],I=[1,43],_=[1,44],A=[1,45],M=[1,46],D=[1,47],P=[1,48],B=[1,50],O=[1,51],$=[1,52],V=[1,53],G=[1,54],z=[1,55],W=[1,56],H=[1,57],j=[1,58],Q=[1,59],U=[1,60],oe=[14,42],te=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],le=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ie=[1,82],ae=[1,83],Re=[1,84],be=[1,85],Pe=[12,14,42],Ge=[12,14,33,42],Oe=[12,14,33,42,76,77,79,80],ue=[12,33],ye=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ke={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:o(function(se,ge,Te,we,Me,ve,ne){var q=ve.length-1;switch(Me){case 3:we.setDirection("TB");break;case 4:we.setDirection("BT");break;case 5:we.setDirection("RL");break;case 6:we.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:we.setC4Type(ve[q-3]);break;case 19:we.setTitle(ve[q].substring(6)),this.$=ve[q].substring(6);break;case 20:we.setAccDescription(ve[q].substring(15)),this.$=ve[q].substring(15);break;case 21:this.$=ve[q].trim(),we.setTitle(this.$);break;case 22:case 23:this.$=ve[q].trim(),we.setAccDescription(this.$);break;case 28:ve[q].splice(2,0,"ENTERPRISE"),we.addPersonOrSystemBoundary(...ve[q]),this.$=ve[q];break;case 29:ve[q].splice(2,0,"SYSTEM"),we.addPersonOrSystemBoundary(...ve[q]),this.$=ve[q];break;case 30:we.addPersonOrSystemBoundary(...ve[q]),this.$=ve[q];break;case 31:ve[q].splice(2,0,"CONTAINER"),we.addContainerBoundary(...ve[q]),this.$=ve[q];break;case 32:we.addDeploymentNode("node",...ve[q]),this.$=ve[q];break;case 33:we.addDeploymentNode("nodeL",...ve[q]),this.$=ve[q];break;case 34:we.addDeploymentNode("nodeR",...ve[q]),this.$=ve[q];break;case 35:we.popBoundaryParseStack();break;case 39:we.addPersonOrSystem("person",...ve[q]),this.$=ve[q];break;case 40:we.addPersonOrSystem("external_person",...ve[q]),this.$=ve[q];break;case 41:we.addPersonOrSystem("system",...ve[q]),this.$=ve[q];break;case 42:we.addPersonOrSystem("system_db",...ve[q]),this.$=ve[q];break;case 43:we.addPersonOrSystem("system_queue",...ve[q]),this.$=ve[q];break;case 44:we.addPersonOrSystem("external_system",...ve[q]),this.$=ve[q];break;case 45:we.addPersonOrSystem("external_system_db",...ve[q]),this.$=ve[q];break;case 46:we.addPersonOrSystem("external_system_queue",...ve[q]),this.$=ve[q];break;case 47:we.addContainer("container",...ve[q]),this.$=ve[q];break;case 48:we.addContainer("container_db",...ve[q]),this.$=ve[q];break;case 49:we.addContainer("container_queue",...ve[q]),this.$=ve[q];break;case 50:we.addContainer("external_container",...ve[q]),this.$=ve[q];break;case 51:we.addContainer("external_container_db",...ve[q]),this.$=ve[q];break;case 52:we.addContainer("external_container_queue",...ve[q]),this.$=ve[q];break;case 53:we.addComponent("component",...ve[q]),this.$=ve[q];break;case 54:we.addComponent("component_db",...ve[q]),this.$=ve[q];break;case 55:we.addComponent("component_queue",...ve[q]),this.$=ve[q];break;case 56:we.addComponent("external_component",...ve[q]),this.$=ve[q];break;case 57:we.addComponent("external_component_db",...ve[q]),this.$=ve[q];break;case 58:we.addComponent("external_component_queue",...ve[q]),this.$=ve[q];break;case 60:we.addRel("rel",...ve[q]),this.$=ve[q];break;case 61:we.addRel("birel",...ve[q]),this.$=ve[q];break;case 62:we.addRel("rel_u",...ve[q]),this.$=ve[q];break;case 63:we.addRel("rel_d",...ve[q]),this.$=ve[q];break;case 64:we.addRel("rel_l",...ve[q]),this.$=ve[q];break;case 65:we.addRel("rel_r",...ve[q]),this.$=ve[q];break;case 66:we.addRel("rel_b",...ve[q]),this.$=ve[q];break;case 67:ve[q].splice(0,1),we.addRel("rel",...ve[q]),this.$=ve[q];break;case 68:we.updateElStyle("update_el_style",...ve[q]),this.$=ve[q];break;case 69:we.updateRelStyle("update_rel_style",...ve[q]),this.$=ve[q];break;case 70:we.updateLayoutConfig("update_layout_config",...ve[q]),this.$=ve[q];break;case 71:this.$=[ve[q]];break;case 72:ve[q].unshift(ve[q-1]),this.$=ve[q];break;case 73:case 75:this.$=ve[q].trim();break;case 74:let he={};he[ve[q-1].trim()]=ve[q].trim(),this.$=he;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:T,51:k,52:C,53:w,54:S,55:R,56:L,57:N,58:I,59:_,60:A,61:M,62:D,63:P,64:B,65:O,66:$,67:V,68:G,69:z,70:W,71:H,72:j,73:Q,74:U},{13:70,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:T,51:k,52:C,53:w,54:S,55:R,56:L,57:N,58:I,59:_,60:A,61:M,62:D,63:P,64:B,65:O,66:$,67:V,68:G,69:z,70:W,71:H,72:j,73:Q,74:U},{13:71,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:T,51:k,52:C,53:w,54:S,55:R,56:L,57:N,58:I,59:_,60:A,61:M,62:D,63:P,64:B,65:O,66:$,67:V,68:G,69:z,70:W,71:H,72:j,73:Q,74:U},{13:72,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:T,51:k,52:C,53:w,54:S,55:R,56:L,57:N,58:I,59:_,60:A,61:M,62:D,63:P,64:B,65:O,66:$,67:V,68:G,69:z,70:W,71:H,72:j,73:Q,74:U},{13:73,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:T,51:k,52:C,53:w,54:S,55:R,56:L,57:N,58:I,59:_,60:A,61:M,62:D,63:P,64:B,65:O,66:$,67:V,68:G,69:z,70:W,71:H,72:j,73:Q,74:U},{14:[1,74]},e(oe,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:l,37:u,38:h,39:d,40:f,41:p,44:m,45:g,46:y,47:v,48:x,49:b,50:T,51:k,52:C,53:w,54:S,55:R,56:L,57:N,58:I,59:_,60:A,61:M,62:D,63:P,64:B,65:O,66:$,67:V,68:G,69:z,70:W,71:H,72:j,73:Q,74:U}),e(oe,[2,14]),e(te,[2,16],{12:[1,76]}),e(oe,[2,36],{12:[1,77]}),e(le,[2,19]),e(le,[2,20]),{25:[1,78]},{27:[1,79]},e(le,[2,23]),{35:80,75:81,76:ie,77:ae,79:Re,80:be},{35:86,75:81,76:ie,77:ae,79:Re,80:be},{35:87,75:81,76:ie,77:ae,79:Re,80:be},{35:88,75:81,76:ie,77:ae,79:Re,80:be},{35:89,75:81,76:ie,77:ae,79:Re,80:be},{35:90,75:81,76:ie,77:ae,79:Re,80:be},{35:91,75:81,76:ie,77:ae,79:Re,80:be},{35:92,75:81,76:ie,77:ae,79:Re,80:be},{35:93,75:81,76:ie,77:ae,79:Re,80:be},{35:94,75:81,76:ie,77:ae,79:Re,80:be},{35:95,75:81,76:ie,77:ae,79:Re,80:be},{35:96,75:81,76:ie,77:ae,79:Re,80:be},{35:97,75:81,76:ie,77:ae,79:Re,80:be},{35:98,75:81,76:ie,77:ae,79:Re,80:be},{35:99,75:81,76:ie,77:ae,79:Re,80:be},{35:100,75:81,76:ie,77:ae,79:Re,80:be},{35:101,75:81,76:ie,77:ae,79:Re,80:be},{35:102,75:81,76:ie,77:ae,79:Re,80:be},{35:103,75:81,76:ie,77:ae,79:Re,80:be},{35:104,75:81,76:ie,77:ae,79:Re,80:be},e(Pe,[2,59]),{35:105,75:81,76:ie,77:ae,79:Re,80:be},{35:106,75:81,76:ie,77:ae,79:Re,80:be},{35:107,75:81,76:ie,77:ae,79:Re,80:be},{35:108,75:81,76:ie,77:ae,79:Re,80:be},{35:109,75:81,76:ie,77:ae,79:Re,80:be},{35:110,75:81,76:ie,77:ae,79:Re,80:be},{35:111,75:81,76:ie,77:ae,79:Re,80:be},{35:112,75:81,76:ie,77:ae,79:Re,80:be},{35:113,75:81,76:ie,77:ae,79:Re,80:be},{35:114,75:81,76:ie,77:ae,79:Re,80:be},{35:115,75:81,76:ie,77:ae,79:Re,80:be},{20:116,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:T,51:k,52:C,53:w,54:S,55:R,56:L,57:N,58:I,59:_,60:A,61:M,62:D,63:P,64:B,65:O,66:$,67:V,68:G,69:z,70:W,71:H,72:j,73:Q,74:U},{12:[1,118],33:[1,117]},{35:119,75:81,76:ie,77:ae,79:Re,80:be},{35:120,75:81,76:ie,77:ae,79:Re,80:be},{35:121,75:81,76:ie,77:ae,79:Re,80:be},{35:122,75:81,76:ie,77:ae,79:Re,80:be},{35:123,75:81,76:ie,77:ae,79:Re,80:be},{35:124,75:81,76:ie,77:ae,79:Re,80:be},{35:125,75:81,76:ie,77:ae,79:Re,80:be},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(oe,[2,15]),e(te,[2,17],{21:22,19:130,22:t,23:r,24:n,26:i,28:a}),e(oe,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:n,26:i,28:a,34:s,36:l,37:u,38:h,39:d,40:f,41:p,44:m,45:g,46:y,47:v,48:x,49:b,50:T,51:k,52:C,53:w,54:S,55:R,56:L,57:N,58:I,59:_,60:A,61:M,62:D,63:P,64:B,65:O,66:$,67:V,68:G,69:z,70:W,71:H,72:j,73:Q,74:U}),e(le,[2,21]),e(le,[2,22]),e(Pe,[2,39]),e(Ge,[2,71],{75:81,35:132,76:ie,77:ae,79:Re,80:be}),e(Oe,[2,73]),{78:[1,133]},e(Oe,[2,75]),e(Oe,[2,76]),e(Pe,[2,40]),e(Pe,[2,41]),e(Pe,[2,42]),e(Pe,[2,43]),e(Pe,[2,44]),e(Pe,[2,45]),e(Pe,[2,46]),e(Pe,[2,47]),e(Pe,[2,48]),e(Pe,[2,49]),e(Pe,[2,50]),e(Pe,[2,51]),e(Pe,[2,52]),e(Pe,[2,53]),e(Pe,[2,54]),e(Pe,[2,55]),e(Pe,[2,56]),e(Pe,[2,57]),e(Pe,[2,58]),e(Pe,[2,60]),e(Pe,[2,61]),e(Pe,[2,62]),e(Pe,[2,63]),e(Pe,[2,64]),e(Pe,[2,65]),e(Pe,[2,66]),e(Pe,[2,67]),e(Pe,[2,68]),e(Pe,[2,69]),e(Pe,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(ue,[2,28]),e(ue,[2,29]),e(ue,[2,30]),e(ue,[2,31]),e(ue,[2,32]),e(ue,[2,33]),e(ue,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(te,[2,18]),e(oe,[2,38]),e(Ge,[2,72]),e(Oe,[2,74]),e(Pe,[2,24]),e(Pe,[2,35]),e(ye,[2,25]),e(ye,[2,26],{12:[1,138]}),e(ye,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:o(function(se,ge){if(ge.recoverable)this.trace(se);else{var Te=new Error(se);throw Te.hash=ge,Te}},"parseError"),parse:o(function(se){var ge=this,Te=[0],we=[],Me=[null],ve=[],ne=this.table,q="",he=0,X=0,fe=0,K=2,qe=1,_e=ve.slice.call(arguments,1),Be=Object.create(this.lexer),Ne={yy:{}};for(var He in this.yy)Object.prototype.hasOwnProperty.call(this.yy,He)&&(Ne.yy[He]=this.yy[He]);Be.setInput(se,Ne.yy),Ne.yy.lexer=Be,Ne.yy.parser=this,typeof Be.yylloc>"u"&&(Be.yylloc={});var $e=Be.yylloc;ve.push($e);var Xe=Be.options&&Be.options.ranges;typeof Ne.yy.parseError=="function"?this.parseError=Ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Fe(Ze){Te.length=Te.length-2*Ze,Me.length=Me.length-Ze,ve.length=ve.length-Ze}o(Fe,"popStack");function Ke(){var Ze;return Ze=we.pop()||Be.lex()||qe,typeof Ze!="number"&&(Ze instanceof Array&&(we=Ze,Ze=we.pop()),Ze=ge.symbols_[Ze]||Ze),Ze}o(Ke,"lex");for(var xe,mt,Le,ft,wt,zt,St={},At,bt,me,lt;;){if(Le=Te[Te.length-1],this.defaultActions[Le]?ft=this.defaultActions[Le]:((xe===null||typeof xe>"u")&&(xe=Ke()),ft=ne[Le]&&ne[Le][xe]),typeof ft>"u"||!ft.length||!ft[0]){var gt="";lt=[];for(At in ne[Le])this.terminals_[At]&&At>K&<.push("'"+this.terminals_[At]+"'");Be.showPosition?gt="Parse error on line "+(he+1)+`:
+`+Be.showPosition()+`
+Expecting `+lt.join(", ")+", got '"+(this.terminals_[xe]||xe)+"'":gt="Parse error on line "+(he+1)+": Unexpected "+(xe==qe?"end of input":"'"+(this.terminals_[xe]||xe)+"'"),this.parseError(gt,{text:Be.match,token:this.terminals_[xe]||xe,line:Be.yylineno,loc:$e,expected:lt})}if(ft[0]instanceof Array&&ft.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Le+", token: "+xe);switch(ft[0]){case 1:Te.push(xe),Me.push(Be.yytext),ve.push(Be.yylloc),Te.push(ft[1]),xe=null,mt?(xe=mt,mt=null):(X=Be.yyleng,q=Be.yytext,he=Be.yylineno,$e=Be.yylloc,fe>0&&fe--);break;case 2:if(bt=this.productions_[ft[1]][1],St.$=Me[Me.length-bt],St._$={first_line:ve[ve.length-(bt||1)].first_line,last_line:ve[ve.length-1].last_line,first_column:ve[ve.length-(bt||1)].first_column,last_column:ve[ve.length-1].last_column},Xe&&(St._$.range=[ve[ve.length-(bt||1)].range[0],ve[ve.length-1].range[1]]),zt=this.performAction.apply(St,[q,X,he,Ne.yy,ft[1],Me,ve].concat(_e)),typeof zt<"u")return zt;bt&&(Te=Te.slice(0,-1*bt*2),Me=Me.slice(0,-1*bt),ve=ve.slice(0,-1*bt)),Te.push(this.productions_[ft[1]][0]),Me.push(St.$),ve.push(St._$),me=ne[Te[Te.length-2]][Te[Te.length-1]],Te.push(me);break;case 3:return!0}}return!0},"parse")},ce=(function(){var J={EOF:1,parseError:o(function(ge,Te){if(this.yy.parser)this.yy.parser.parseError(ge,Te);else throw new Error(ge)},"parseError"),setInput:o(function(se,ge){return this.yy=ge||this.yy||{},this._input=se,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var se=this._input[0];this.yytext+=se,this.yyleng++,this.offset++,this.match+=se,this.matched+=se;var ge=se.match(/(?:\r\n?|\n).*/g);return ge?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),se},"input"),unput:o(function(se){var ge=se.length,Te=se.split(/(?:\r\n?|\n)/g);this._input=se+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ge),this.offset-=ge;var we=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Te.length-1&&(this.yylineno-=Te.length-1);var Me=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Te?(Te.length===we.length?this.yylloc.first_column:0)+we[we.length-Te.length].length-Te[0].length:this.yylloc.first_column-ge},this.options.ranges&&(this.yylloc.range=[Me[0],Me[0]+this.yyleng-ge]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
+`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(se){this.unput(this.match.slice(se))},"less"),pastInput:o(function(){var se=this.matched.substr(0,this.matched.length-this.match.length);return(se.length>20?"...":"")+se.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var se=this.match;return se.length<20&&(se+=this._input.substr(0,20-se.length)),(se.substr(0,20)+(se.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var se=this.pastInput(),ge=new Array(se.length+1).join("-");return se+this.upcomingInput()+`
+`+ge+"^"},"showPosition"),test_match:o(function(se,ge){var Te,we,Me;if(this.options.backtrack_lexer&&(Me={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Me.yylloc.range=this.yylloc.range.slice(0))),we=se[0].match(/(?:\r\n?|\n).*/g),we&&(this.yylineno+=we.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:we?we[we.length-1].length-we[we.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+se[0].length},this.yytext+=se[0],this.match+=se[0],this.matches=se,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(se[0].length),this.matched+=se[0],Te=this.performAction.call(this,this.yy,this,ge,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Te)return Te;if(this._backtrack){for(var ve in Me)this[ve]=Me[ve];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var se,ge,Te,we;this._more||(this.yytext="",this.match="");for(var Me=this._currentRules(),ve=0;vege[0].length)){if(ge=Te,we=ve,this.options.backtrack_lexer){if(se=this.test_match(Te,Me[ve]),se!==!1)return se;if(this._backtrack){ge=!1;continue}else return!1}else if(!this.options.flex)break}return ge?(se=this.test_match(ge,Me[we]),se!==!1?se:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
+`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var ge=this.next();return ge||this.lex()},"lex"),begin:o(function(ge){this.conditionStack.push(ge)},"begin"),popState:o(function(){var ge=this.conditionStack.length-1;return ge>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(ge){return ge=this.conditionStack.length-1-Math.abs(ge||0),ge>=0?this.conditionStack[ge]:"INITIAL"},"topState"),pushState:o(function(ge){this.begin(ge)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(ge,Te,we,Me){var ve=Me;switch(we){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return J})();ke.lexer=ce;function re(){this.yy={}}return o(re,"Parser"),re.prototype=ke,ke.Parser=re,new re})();ob.parser=ob;oJ=ob});var eWe,tWe,Wr,ul,$n=F(()=>{"use strict";vt();eWe=o(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),tWe=o(function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),Wr=o(function(e,t,r,n){let i=tWe(t,r,n);eWe(e,i)},"configureSvgSize"),ul=o(function(e,t,r,n){let i=t.node().getBBox(),a=i.width,s=i.height;Z.info(`SVG bounds: ${a}x${s}`,i);let l=0,u=0;Z.info(`Graph bounds: ${l}x${u}`,e),l=a+r*2,u=s+r*2,Z.info(`Calculated bounds: ${l}x${u}`),Wr(t,u,l,n);let h=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;t.attr("viewBox",h)},"setupGraphViewbox")});function m8(e){return[...e.cssRules].map(t=>t.cssText).join(`
+`)}var vS,rWe,lJ,cJ,g8=F(()=>{"use strict";vt();vS={};o(m8,"cssStyleSheetToString");rWe=o((e,t,r,n)=>{let i="";return e in vS&&vS[e]?i=vS[e]({...r,svgId:n}):Z.warn(`No theme found for ${e}`),` & {
+ font-family: ${r.fontFamily};
+ font-size: ${r.fontSize};
+ fill: ${r.textColor}
+ }
+ @keyframes edge-animation-frame {
+ from {
+ stroke-dashoffset: 0;
+ }
+ }
+ @keyframes dash {
+ to {
+ stroke-dashoffset: 0;
+ }
+ }
+ & .edge-animation-slow {
+ stroke-dasharray: 9,5 !important;
+ stroke-dashoffset: 900;
+ animation: dash 50s linear infinite;
+ stroke-linecap: round;
+ }
+ & .edge-animation-fast {
+ stroke-dasharray: 9,5 !important;
+ stroke-dashoffset: 900;
+ animation: dash 20s linear infinite;
+ stroke-linecap: round;
+ }
+ /* Classes common for multiple diagrams */
+
+ & .error-icon {
+ fill: ${r.errorBkgColor};
+ }
+ & .error-text {
+ fill: ${r.errorTextColor};
+ stroke: ${r.errorTextColor};
+ }
+
+ & .edge-thickness-normal {
+ stroke-width: ${r.strokeWidth??1}px;
+ }
+ & .edge-thickness-thick {
+ stroke-width: 3.5px
+ }
+ & .edge-pattern-solid {
+ stroke-dasharray: 0;
+ }
+ & .edge-thickness-invisible {
+ stroke-width: 0;
+ fill: none;
+ }
+ & .edge-pattern-dashed{
+ stroke-dasharray: 3;
+ }
+ .edge-pattern-dotted {
+ stroke-dasharray: 2;
+ }
+
+ & .marker {
+ fill: ${r.lineColor};
+ stroke: ${r.lineColor};
+ }
+ & .marker.cross {
+ stroke: ${r.lineColor};
+ }
+
+ & svg {
+ font-family: ${r.fontFamily};
+ font-size: ${r.fontSize};
+ }
+ & p {
+ margin: 0
+ }
+
+ ${i}
+ .node .neo-node {
+ stroke: ${r.nodeBorder};
+ }
+
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
+ stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
+ }
+ [data-look="neo"].swimlane.cluster rect {
+ filter: none;
+ }
+
+
+ [data-look="neo"].node path {
+ stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
+ stroke-width: ${r.strokeWidth??1}px;
+ }
+
+ [data-look="neo"].node .outer-path {
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
+ }
+
+ [data-look="neo"].node .neo-line path {
+ stroke: ${r.nodeBorder};
+ filter: none;
+ }
+
+ [data-look="neo"].node circle{
+ stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
+ }
+
+ [data-look="neo"].node circle .state-start{
+ fill: #000000;
+ }
+
+ [data-look="neo"].icon-shape .icon {
+ fill: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
+ }
+
+ [data-look="neo"].icon-shape .icon-neo path {
+ stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
+ }
+
+ ${t}
+`},"getStyles"),lJ=o((e,t)=>{t!==void 0&&(vS[e]=t)},"addStylesForDiagram"),cJ=rWe});var lb={};ir(lb,{clear:()=>yr,getAccDescription:()=>_r,getAccTitle:()=>Ar,getDiagramTitle:()=>Lr,setAccDescription:()=>Rr,setAccTitle:()=>kr,setDiagramTitle:()=>Or});var y8,v8,x8,b8,yr,kr,Ar,Rr,_r,Or,Lr,Nn=F(()=>{"use strict";Vr();ur();y8="",v8="",x8="",b8=o(e=>mr(e,_t()),"sanitizeText"),yr=o(()=>{y8="",x8="",v8=""},"clear"),kr=o(e=>{y8=b8(e).replace(/^\s+/g,"")},"setAccTitle"),Ar=o(()=>y8,"getAccTitle"),Rr=o(e=>{x8=b8(e).replace(/\n\s+/g,`
+`)},"setAccDescription"),_r=o(()=>x8,"getAccDescription"),Or=o(e=>{v8=b8(e)},"setDiagramTitle"),Lr=o(()=>v8,"getDiagramTitle")});var uJ,nWe,Ae,cb,bS,ub,hb,iWe,xS,Yp,db,T8,Xt=F(()=>{"use strict";Up();vt();ur();Vr();$n();g8();Nn();uJ=Z,nWe=Bx,Ae=_t,cb=_k,bS=Cd,ub=o(e=>mr(e,Ae()),"sanitizeText"),hb=ul,iWe=o(()=>lb,"getCommonDb"),xS={},Yp=o((e,t,r)=>{xS[e]&&uJ.warn(`Diagram with id ${e} already registered. Overwriting.`),xS[e]=t,r&&f8(e,r),lJ(e,t.styles),t.injectUtils?.(uJ,nWe,Ae,ub,hb,iWe(),()=>{})},"registerDiagram"),db=o(e=>{if(e in xS)return xS[e];throw new T8(e)},"getDiagram"),T8=class extends Error{static{o(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}});var ql,Dd,Ss,Wl,Hc,fb,C8,w8,TS,CS,hJ,aWe,sWe,oWe,lWe,cWe,uWe,hWe,dWe,fWe,pWe,mWe,gWe,yWe,vWe,xWe,bWe,TWe,dJ,CWe,wWe,fJ,kWe,SWe,EWe,AWe,Id,RWe,_We,LWe,DWe,IWe,pb,k8=F(()=>{"use strict";Xt();Vr();Nn();ql=[],Dd=[""],Ss="global",Wl="",Hc=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],fb=[],C8="",w8=!1,TS=4,CS=2,aWe=o(function(){return hJ},"getC4Type"),sWe=o(function(e){hJ=mr(e,Ae())},"setC4Type"),oWe=o(function(e,t,r,n,i,a,s,l,u){if(e==null||t===void 0||t===null||r===void 0||r===null||n===void 0||n===null)return;let h={},d=fb.find(f=>f.from===t&&f.to===r);if(d?h=d:fb.push(h),h.type=e,h.from=t,h.to=r,h.label={text:n},i==null)h.techn={text:""};else if(typeof i=="object"){let[f,p]=Object.entries(i)[0];h[f]={text:p}}else h.techn={text:i};if(a==null)h.descr={text:""};else if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]={text:p}}else h.descr={text:a};if(typeof s=="object"){let[f,p]=Object.entries(s)[0];h[f]=p}else h.sprite=s;if(typeof l=="object"){let[f,p]=Object.entries(l)[0];h[f]=p}else h.tags=l;if(typeof u=="object"){let[f,p]=Object.entries(u)[0];h[f]=p}else h.link=u;h.wrap=Id()},"addRel"),lWe=o(function(e,t,r,n,i,a,s){if(t===null||r===null)return;let l={},u=ql.find(h=>h.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,ql.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.descr={text:""};else if(typeof n=="object"){let[h,d]=Object.entries(n)[0];l[h]={text:d}}else l.descr={text:n};if(typeof i=="object"){let[h,d]=Object.entries(i)[0];l[h]=d}else l.sprite=i;if(typeof a=="object"){let[h,d]=Object.entries(a)[0];l[h]=d}else l.tags=a;if(typeof s=="object"){let[h,d]=Object.entries(s)[0];l[h]=d}else l.link=s;l.typeC4Shape={text:e},l.parentBoundary=Ss,l.wrap=Id()},"addPersonOrSystem"),cWe=o(function(e,t,r,n,i,a,s,l){if(t===null||r===null)return;let u={},h=ql.find(d=>d.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,ql.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];u[d]={text:f}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[d,f]=Object.entries(i)[0];u[d]={text:f}}else u.descr={text:i};if(typeof a=="object"){let[d,f]=Object.entries(a)[0];u[d]=f}else u.sprite=a;if(typeof s=="object"){let[d,f]=Object.entries(s)[0];u[d]=f}else u.tags=s;if(typeof l=="object"){let[d,f]=Object.entries(l)[0];u[d]=f}else u.link=l;u.wrap=Id(),u.typeC4Shape={text:e},u.parentBoundary=Ss},"addContainer"),uWe=o(function(e,t,r,n,i,a,s,l){if(t===null||r===null)return;let u={},h=ql.find(d=>d.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,ql.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];u[d]={text:f}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[d,f]=Object.entries(i)[0];u[d]={text:f}}else u.descr={text:i};if(typeof a=="object"){let[d,f]=Object.entries(a)[0];u[d]=f}else u.sprite=a;if(typeof s=="object"){let[d,f]=Object.entries(s)[0];u[d]=f}else u.tags=s;if(typeof l=="object"){let[d,f]=Object.entries(l)[0];u[d]=f}else u.link=l;u.wrap=Id(),u.typeC4Shape={text:e},u.parentBoundary=Ss},"addComponent"),hWe=o(function(e,t,r,n,i){if(e===null||t===null)return;let a={},s=Hc.find(l=>l.alias===e);if(s&&e===s.alias?a=s:(a.alias=e,Hc.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"system"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];a[l]=u}else a.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];a[l]=u}else a.link=i;a.parentBoundary=Ss,a.wrap=Id(),Wl=Ss,Ss=e,Dd.push(Wl)},"addPersonOrSystemBoundary"),dWe=o(function(e,t,r,n,i){if(e===null||t===null)return;let a={},s=Hc.find(l=>l.alias===e);if(s&&e===s.alias?a=s:(a.alias=e,Hc.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"container"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];a[l]=u}else a.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];a[l]=u}else a.link=i;a.parentBoundary=Ss,a.wrap=Id(),Wl=Ss,Ss=e,Dd.push(Wl)},"addContainerBoundary"),fWe=o(function(e,t,r,n,i,a,s,l){if(t===null||r===null)return;let u={},h=Hc.find(d=>d.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,Hc.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.type={text:"node"};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];u[d]={text:f}}else u.type={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[d,f]=Object.entries(i)[0];u[d]={text:f}}else u.descr={text:i};if(typeof s=="object"){let[d,f]=Object.entries(s)[0];u[d]=f}else u.tags=s;if(typeof l=="object"){let[d,f]=Object.entries(l)[0];u[d]=f}else u.link=l;u.nodeType=e,u.parentBoundary=Ss,u.wrap=Id(),Wl=Ss,Ss=t,Dd.push(Wl)},"addDeploymentNode"),pWe=o(function(){Ss=Wl,Dd.pop(),Wl=Dd.pop(),Dd.push(Wl)},"popBoundaryParseStack"),mWe=o(function(e,t,r,n,i,a,s,l,u,h,d){let f=ql.find(p=>p.alias===t);if(!(f===void 0&&(f=Hc.find(p=>p.alias===t),f===void 0))){if(r!=null)if(typeof r=="object"){let[p,m]=Object.entries(r)[0];f[p]=m}else f.bgColor=r;if(n!=null)if(typeof n=="object"){let[p,m]=Object.entries(n)[0];f[p]=m}else f.fontColor=n;if(i!=null)if(typeof i=="object"){let[p,m]=Object.entries(i)[0];f[p]=m}else f.borderColor=i;if(a!=null)if(typeof a=="object"){let[p,m]=Object.entries(a)[0];f[p]=m}else f.shadowing=a;if(s!=null)if(typeof s=="object"){let[p,m]=Object.entries(s)[0];f[p]=m}else f.shape=s;if(l!=null)if(typeof l=="object"){let[p,m]=Object.entries(l)[0];f[p]=m}else f.sprite=l;if(u!=null)if(typeof u=="object"){let[p,m]=Object.entries(u)[0];f[p]=m}else f.techn=u;if(h!=null)if(typeof h=="object"){let[p,m]=Object.entries(h)[0];f[p]=m}else f.legendText=h;if(d!=null)if(typeof d=="object"){let[p,m]=Object.entries(d)[0];f[p]=m}else f.legendSprite=d}},"updateElStyle"),gWe=o(function(e,t,r,n,i,a,s){let l=fb.find(u=>u.from===t&&u.to===r);if(l!==void 0){if(n!=null)if(typeof n=="object"){let[u,h]=Object.entries(n)[0];l[u]=h}else l.textColor=n;if(i!=null)if(typeof i=="object"){let[u,h]=Object.entries(i)[0];l[u]=h}else l.lineColor=i;if(a!=null)if(typeof a=="object"){let[u,h]=Object.entries(a)[0];l[u]=parseInt(h)}else l.offsetX=parseInt(a);if(s!=null)if(typeof s=="object"){let[u,h]=Object.entries(s)[0];l[u]=parseInt(h)}else l.offsetY=parseInt(s)}},"updateRelStyle"),yWe=o(function(e,t,r){let n=TS,i=CS;if(typeof t=="object"){let a=Object.values(t)[0];n=parseInt(a)}else n=parseInt(t);if(typeof r=="object"){let a=Object.values(r)[0];i=parseInt(a)}else i=parseInt(r);n>=1&&(TS=n),i>=1&&(CS=i)},"updateLayoutConfig"),vWe=o(function(){return TS},"getC4ShapeInRow"),xWe=o(function(){return CS},"getC4BoundaryInRow"),bWe=o(function(){return Ss},"getCurrentBoundaryParse"),TWe=o(function(){return Wl},"getParentBoundaryParse"),dJ=o(function(e){return e==null?ql:ql.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),CWe=o(function(e){return ql.find(t=>t.alias===e)},"getC4Shape"),wWe=o(function(e){return Object.keys(dJ(e))},"getC4ShapeKeys"),fJ=o(function(e){return e==null?Hc:Hc.filter(t=>t.parentBoundary===e)},"getBoundaries"),kWe=fJ,SWe=o(function(){return fb},"getRels"),EWe=o(function(){return C8},"getTitle"),AWe=o(function(e){w8=e},"setWrap"),Id=o(function(){return w8},"autoWrap"),RWe=o(function(){ql=[],Hc=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Wl="",Ss="global",Dd=[""],fb=[],Dd=[""],C8="",w8=!1,TS=4,CS=2},"clear"),_We={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},LWe={FILLED:0,OPEN:1},DWe={LEFTOF:0,RIGHTOF:1,OVER:2},IWe=o(function(e){C8=mr(e,Ae())},"setTitle"),pb={addPersonOrSystem:lWe,addPersonOrSystemBoundary:hWe,addContainer:cWe,addContainerBoundary:dWe,addComponent:uWe,addDeploymentNode:fWe,popBoundaryParseStack:pWe,addRel:oWe,updateElStyle:mWe,updateRelStyle:gWe,updateLayoutConfig:yWe,autoWrap:Id,setWrap:AWe,getC4ShapeArray:dJ,getC4Shape:CWe,getC4ShapeKeys:wWe,getBoundaries:fJ,getBoundarys:kWe,getCurrentBoundaryParse:bWe,getParentBoundaryParse:TWe,getRels:SWe,getTitle:EWe,getC4Type:aWe,getC4ShapeInRow:vWe,getC4BoundaryInRow:xWe,setAccTitle:kr,getAccTitle:Ar,getAccDescription:_r,setAccDescription:Rr,getConfig:o(()=>Ae().c4,"getConfig"),clear:RWe,LINETYPE:_We,ARROWTYPE:LWe,PLACEMENT:DWe,setTitle:IWe,setC4Type:sWe}});function jp(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}var S8=F(()=>{"use strict";o(jp,"ascending")});function E8(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}var pJ=F(()=>{"use strict";o(E8,"descending")});function Xp(e){let t,r,n;e.length!==2?(t=jp,r=o((l,u)=>jp(e(l),u),"compare2"),n=o((l,u)=>e(l)-u,"delta")):(t=e===jp||e===E8?e:MWe,r=e,n=e);function i(l,u,h=0,d=l.length){if(h>>1;r(l[f],u)<0?h=f+1:d=f}while(h>>1;r(l[f],u)<=0?h=f+1:d=f}while(hh&&n(l[f-1],u)>-n(l[f],u)?f-1:f}return o(s,"center"),{left:i,center:s,right:a}}function MWe(){return 0}var A8=F(()=>{"use strict";S8();pJ();o(Xp,"bisector");o(MWe,"zero")});function R8(e){return e===null?NaN:+e}var mJ=F(()=>{"use strict";o(R8,"number")});var gJ,yJ,NWe,PWe,_8,vJ=F(()=>{"use strict";S8();A8();mJ();gJ=Xp(jp),yJ=gJ.right,NWe=gJ.left,PWe=Xp(R8).center,_8=yJ});function xJ({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function OWe({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function BWe({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function $We(e){return e!==null&&typeof e=="object"?e.valueOf():e}var iy,bJ=F(()=>{"use strict";iy=class extends Map{static{o(this,"InternMap")}constructor(t,r=$We){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,i]of t)this.set(n,i)}get(t){return super.get(xJ(this,t))}has(t){return super.has(xJ(this,t))}set(t,r){return super.set(OWe(this,t),r)}delete(t){return super.delete(BWe(this,t))}};o(xJ,"intern_get");o(OWe,"intern_set");o(BWe,"intern_delete");o($We,"keyof")});function wS(e,t,r){let n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=FWe?10:a>=zWe?5:a>=GWe?2:1,l,u,h;return i<0?(h=Math.pow(10,-i)/s,l=Math.round(e*h),u=Math.round(t*h),l/ht&&--u,h=-h):(h=Math.pow(10,i)*s,l=Math.round(e/h),u=Math.round(t/h),l*ht&&--u),u0))return[];if(e===t)return[e];let n=t=i))return[];let l=a-i+1,u=new Array(l);if(n)if(s<0)for(let h=0;h{"use strict";FWe=Math.sqrt(50),zWe=Math.sqrt(10),GWe=Math.sqrt(2);o(wS,"tickSpec");o(kS,"ticks");o(mb,"tickIncrement");o(ay,"tickStep")});function SS(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}var CJ=F(()=>{"use strict";o(SS,"max")});function ES(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}var wJ=F(()=>{"use strict";o(ES,"min")});function AS(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n{"use strict";o(AS,"range")});var Md=F(()=>{"use strict";vJ();A8();CJ();wJ();kJ();TJ();bJ()});function L8(e){return e}var SJ=F(()=>{"use strict";o(L8,"default")});function VWe(e){return"translate("+e+",0)"}function WWe(e){return"translate(0,"+e+")"}function qWe(e){return t=>+e(t)}function HWe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function UWe(){return!this.__axis}function AJ(e,t){var r=[],n=null,i=null,a=6,s=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=e===_S||e===RS?-1:1,d=e===RS||e===D8?"x":"y",f=e===_S||e===I8?VWe:WWe;function p(m){var g=n??(t.ticks?t.ticks.apply(t,r):t.domain()),y=i??(t.tickFormat?t.tickFormat.apply(t,r):L8),v=Math.max(a,0)+l,x=t.range(),b=+x[0]+u,T=+x[x.length-1]+u,k=(t.bandwidth?HWe:qWe)(t.copy(),u),C=m.selection?m.selection():m,w=C.selectAll(".domain").data([null]),S=C.selectAll(".tick").data(g,t).order(),R=S.exit(),L=S.enter().append("g").attr("class","tick"),N=S.select("line"),I=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(L),N=N.merge(L.append("line").attr("stroke","currentColor").attr(d+"2",h*a)),I=I.merge(L.append("text").attr("fill","currentColor").attr(d,h*v).attr("dy",e===_S?"0em":e===I8?"0.71em":"0.32em")),m!==C&&(w=w.transition(m),S=S.transition(m),N=N.transition(m),I=I.transition(m),R=R.transition(m).attr("opacity",EJ).attr("transform",function(_){return isFinite(_=k(_))?f(_+u):this.getAttribute("transform")}),L.attr("opacity",EJ).attr("transform",function(_){var A=this.parentNode.__axis;return f((A&&isFinite(A=A(_))?A:k(_))+u)})),R.remove(),w.attr("d",e===RS||e===D8?s?"M"+h*s+","+b+"H"+u+"V"+T+"H"+h*s:"M"+u+","+b+"V"+T:s?"M"+b+","+h*s+"V"+u+"H"+T+"V"+h*s:"M"+b+","+u+"H"+T),S.attr("opacity",1).attr("transform",function(_){return f(k(_)+u)}),N.attr(d+"2",h*a),I.attr(d,h*v).text(y),C.filter(UWe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===D8?"start":e===RS?"end":"middle"),C.each(function(){this.__axis=k})}return o(p,"axis"),p.scale=function(m){return arguments.length?(t=m,p):t},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),p):n&&n.slice()},p.tickFormat=function(m){return arguments.length?(i=m,p):i},p.tickSize=function(m){return arguments.length?(a=s=+m,p):a},p.tickSizeInner=function(m){return arguments.length?(a=+m,p):a},p.tickSizeOuter=function(m){return arguments.length?(s=+m,p):s},p.tickPadding=function(m){return arguments.length?(l=+m,p):l},p.offset=function(m){return arguments.length?(u=+m,p):u},p}function M8(e){return AJ(_S,e)}function N8(e){return AJ(I8,e)}var _S,D8,I8,RS,EJ,RJ=F(()=>{"use strict";SJ();_S=1,D8=2,I8=3,RS=4,EJ=1e-6;o(VWe,"translateX");o(WWe,"translateY");o(qWe,"number");o(HWe,"center");o(UWe,"entering");o(AJ,"axis");o(M8,"axisTop");o(N8,"axisBottom")});var _J=F(()=>{"use strict";RJ()});function DJ(){for(var e=0,t=arguments.length,r={},n;e=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}function XWe(e,t){for(var r=0,n=e.length,i;r{"use strict";YWe={value:o(()=>{},"value")};o(DJ,"dispatch");o(LS,"Dispatch");o(jWe,"parseTypenames");LS.prototype=DJ.prototype={constructor:LS,on:o(function(e,t){var r=this._,n=jWe(e+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a0)for(var r=new Array(i),n=0,i,a;n{"use strict";IJ()});var DS,B8,$8=F(()=>{"use strict";DS="http://www.w3.org/1999/xhtml",B8={svg:"http://www.w3.org/2000/svg",xhtml:DS,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function Uc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),B8.hasOwnProperty(t)?{space:B8[t],local:e}:e}var IS=F(()=>{"use strict";$8();o(Uc,"default")});function KWe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===DS&&t.documentElement.namespaceURI===DS?t.createElement(e):t.createElementNS(r,e)}}function ZWe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function gb(e){var t=Uc(e);return(t.local?ZWe:KWe)(t)}var F8=F(()=>{"use strict";IS();$8();o(KWe,"creatorInherit");o(ZWe,"creatorFixed");o(gb,"default")});function QWe(){}function Nd(e){return e==null?QWe:function(){return this.querySelector(e)}}var MS=F(()=>{"use strict";o(QWe,"none");o(Nd,"default")});function z8(e){typeof e!="function"&&(e=Nd(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";Hl();MS();o(z8,"default")});function G8(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var NJ=F(()=>{"use strict";o(G8,"array")});function JWe(){return[]}function sy(e){return e==null?JWe:function(){return this.querySelectorAll(e)}}var V8=F(()=>{"use strict";o(JWe,"empty");o(sy,"default")});function eqe(e){return function(){return G8(e.apply(this,arguments))}}function W8(e){typeof e=="function"?e=eqe(e):e=sy(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a{"use strict";Hl();NJ();V8();o(eqe,"arrayAll");o(W8,"default")});function oy(e){return function(){return this.matches(e)}}function NS(e){return function(t){return t.matches(e)}}var yb=F(()=>{"use strict";o(oy,"default");o(NS,"childMatcher")});function rqe(e){return function(){return tqe.call(this.children,e)}}function nqe(){return this.firstElementChild}function q8(e){return this.select(e==null?nqe:rqe(typeof e=="function"?e:NS(e)))}var tqe,OJ=F(()=>{"use strict";yb();tqe=Array.prototype.find;o(rqe,"childFind");o(nqe,"childFirst");o(q8,"default")});function aqe(){return Array.from(this.children)}function sqe(e){return function(){return iqe.call(this.children,e)}}function H8(e){return this.selectAll(e==null?aqe:sqe(typeof e=="function"?e:NS(e)))}var iqe,BJ=F(()=>{"use strict";yb();iqe=Array.prototype.filter;o(aqe,"children");o(sqe,"childrenFilter");o(H8,"default")});function U8(e){typeof e!="function"&&(e=oy(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";Hl();yb();o(U8,"default")});function vb(e){return new Array(e.length)}var Y8=F(()=>{"use strict";o(vb,"default")});function j8(){return new Ai(this._enter||this._groups.map(vb),this._parents)}function xb(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var X8=F(()=>{"use strict";Y8();Hl();o(j8,"default");o(xb,"EnterNode");xb.prototype={constructor:xb,appendChild:o(function(e){return this._parent.insertBefore(e,this._next)},"appendChild"),insertBefore:o(function(e,t){return this._parent.insertBefore(e,t)},"insertBefore"),querySelector:o(function(e){return this._parent.querySelector(e)},"querySelector"),querySelectorAll:o(function(e){return this._parent.querySelectorAll(e)},"querySelectorAll")}});function K8(e){return function(){return e}}var FJ=F(()=>{"use strict";o(K8,"default")});function oqe(e,t,r,n,i,a){for(var s=0,l,u=t.length,h=a.length;s=T&&(T=b+1);!(C=v[T])&&++T{"use strict";Hl();X8();FJ();o(oqe,"bindIndex");o(lqe,"bindKey");o(cqe,"datum");o(Z8,"default");o(uqe,"arraylike")});function Q8(){return new Ai(this._exit||this._groups.map(vb),this._parents)}var GJ=F(()=>{"use strict";Y8();Hl();o(Q8,"default")});function J8(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}var VJ=F(()=>{"use strict";o(J8,"default")});function eI(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,s=Math.min(i,a),l=new Array(i),u=0;u{"use strict";Hl();o(eI,"default")});function tI(){for(var e=this._groups,t=-1,r=e.length;++t=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}var qJ=F(()=>{"use strict";o(tI,"default")});function rI(e){e||(e=hqe);function t(f,p){return f&&p?e(f.__data__,p.__data__):!f-!p}o(t,"compareNode");for(var r=this._groups,n=r.length,i=new Array(n),a=0;at?1:e>=t?0:NaN}var HJ=F(()=>{"use strict";Hl();o(rI,"default");o(hqe,"ascending")});function nI(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var UJ=F(()=>{"use strict";o(nI,"default")});function iI(){return Array.from(this)}var YJ=F(()=>{"use strict";o(iI,"default")});function aI(){for(var e=this._groups,t=0,r=e.length;t{"use strict";o(aI,"default")});function sI(){let e=0;for(let t of this)++e;return e}var XJ=F(()=>{"use strict";o(sI,"default")});function oI(){return!this.node()}var KJ=F(()=>{"use strict";o(oI,"default")});function lI(e){for(var t=this._groups,r=0,n=t.length;r{"use strict";o(lI,"default")});function dqe(e){return function(){this.removeAttribute(e)}}function fqe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pqe(e,t){return function(){this.setAttribute(e,t)}}function mqe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function gqe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function yqe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function cI(e,t){var r=Uc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?fqe:dqe:typeof t=="function"?r.local?yqe:gqe:r.local?mqe:pqe)(r,t))}var QJ=F(()=>{"use strict";IS();o(dqe,"attrRemove");o(fqe,"attrRemoveNS");o(pqe,"attrConstant");o(mqe,"attrConstantNS");o(gqe,"attrFunction");o(yqe,"attrFunctionNS");o(cI,"default")});function bb(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var uI=F(()=>{"use strict";o(bb,"default")});function vqe(e){return function(){this.style.removeProperty(e)}}function xqe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function bqe(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function hI(e,t,r){return arguments.length>1?this.each((t==null?vqe:typeof t=="function"?bqe:xqe)(e,t,r??"")):Pd(this.node(),e)}function Pd(e,t){return e.style.getPropertyValue(t)||bb(e).getComputedStyle(e,null).getPropertyValue(t)}var dI=F(()=>{"use strict";uI();o(vqe,"styleRemove");o(xqe,"styleConstant");o(bqe,"styleFunction");o(hI,"default");o(Pd,"styleValue")});function Tqe(e){return function(){delete this[e]}}function Cqe(e,t){return function(){this[e]=t}}function wqe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function fI(e,t){return arguments.length>1?this.each((t==null?Tqe:typeof t=="function"?wqe:Cqe)(e,t)):this.node()[e]}var JJ=F(()=>{"use strict";o(Tqe,"propertyRemove");o(Cqe,"propertyConstant");o(wqe,"propertyFunction");o(fI,"default")});function eee(e){return e.trim().split(/^|\s+/)}function pI(e){return e.classList||new tee(e)}function tee(e){this._node=e,this._names=eee(e.getAttribute("class")||"")}function ree(e,t){for(var r=pI(e),n=-1,i=t.length;++n{"use strict";o(eee,"classArray");o(pI,"classList");o(tee,"ClassList");tee.prototype={add:o(function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:o(function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:o(function(e){return this._names.indexOf(e)>=0},"contains")};o(ree,"classedAdd");o(nee,"classedRemove");o(kqe,"classedTrue");o(Sqe,"classedFalse");o(Eqe,"classedFunction");o(mI,"default")});function Aqe(){this.textContent=""}function Rqe(e){return function(){this.textContent=e}}function _qe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function gI(e){return arguments.length?this.each(e==null?Aqe:(typeof e=="function"?_qe:Rqe)(e)):this.node().textContent}var aee=F(()=>{"use strict";o(Aqe,"textRemove");o(Rqe,"textConstant");o(_qe,"textFunction");o(gI,"default")});function Lqe(){this.innerHTML=""}function Dqe(e){return function(){this.innerHTML=e}}function Iqe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function yI(e){return arguments.length?this.each(e==null?Lqe:(typeof e=="function"?Iqe:Dqe)(e)):this.node().innerHTML}var see=F(()=>{"use strict";o(Lqe,"htmlRemove");o(Dqe,"htmlConstant");o(Iqe,"htmlFunction");o(yI,"default")});function Mqe(){this.nextSibling&&this.parentNode.appendChild(this)}function vI(){return this.each(Mqe)}var oee=F(()=>{"use strict";o(Mqe,"raise");o(vI,"default")});function Nqe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xI(){return this.each(Nqe)}var lee=F(()=>{"use strict";o(Nqe,"lower");o(xI,"default")});function bI(e){var t=typeof e=="function"?e:gb(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var cee=F(()=>{"use strict";F8();o(bI,"default")});function Pqe(){return null}function TI(e,t){var r=typeof e=="function"?e:gb(e),n=t==null?Pqe:typeof t=="function"?t:Nd(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}var uee=F(()=>{"use strict";F8();MS();o(Pqe,"constantNull");o(TI,"default")});function Oqe(){var e=this.parentNode;e&&e.removeChild(this)}function CI(){return this.each(Oqe)}var hee=F(()=>{"use strict";o(Oqe,"remove");o(CI,"default")});function Bqe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function $qe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wI(e){return this.select(e?$qe:Bqe)}var dee=F(()=>{"use strict";o(Bqe,"selection_cloneShallow");o($qe,"selection_cloneDeep");o(wI,"default")});function kI(e){return arguments.length?this.property("__data__",e):this.node().__data__}var fee=F(()=>{"use strict";o(kI,"default")});function Fqe(e){return function(t){e.call(this,t,this.__data__)}}function zqe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function Gqe(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r{"use strict";o(Fqe,"contextListener");o(zqe,"parseTypenames");o(Gqe,"onRemove");o(Vqe,"onAdd");o(SI,"default")});function mee(e,t,r){var n=bb(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Wqe(e,t){return function(){return mee(this,e,t)}}function qqe(e,t){return function(){return mee(this,e,t.apply(this,arguments))}}function EI(e,t){return this.each((typeof t=="function"?qqe:Wqe)(e,t))}var gee=F(()=>{"use strict";uI();o(mee,"dispatchEvent");o(Wqe,"dispatchConstant");o(qqe,"dispatchFunction");o(EI,"default")});function*AI(){for(var e=this._groups,t=0,r=e.length;t{"use strict";o(AI,"default")});function Ai(e,t){this._groups=e,this._parents=t}function vee(){return new Ai([[document.documentElement]],RI)}function Hqe(){return this}var RI,lh,Hl=F(()=>{"use strict";MJ();PJ();OJ();BJ();$J();zJ();X8();GJ();VJ();WJ();qJ();HJ();UJ();YJ();jJ();XJ();KJ();ZJ();QJ();dI();JJ();iee();aee();see();oee();lee();cee();uee();hee();dee();fee();pee();gee();yee();RI=[null];o(Ai,"Selection");o(vee,"selection");o(Hqe,"selection_selection");Ai.prototype=vee.prototype={constructor:Ai,select:z8,selectAll:W8,selectChild:q8,selectChildren:H8,filter:U8,data:Z8,enter:j8,exit:Q8,join:J8,merge:eI,selection:Hqe,order:tI,sort:rI,call:nI,nodes:iI,node:aI,size:sI,empty:oI,each:lI,attr:cI,style:hI,property:fI,classed:mI,text:gI,html:yI,raise:vI,lower:xI,append:bI,insert:TI,remove:CI,clone:wI,datum:kI,on:SI,dispatch:EI,[Symbol.iterator]:AI};lh=vee});function et(e){return typeof e=="string"?new Ai([[document.querySelector(e)]],[document.documentElement]):new Ai([[e]],RI)}var xee=F(()=>{"use strict";Hl();o(et,"default")});var Ul=F(()=>{"use strict";yb();IS();xee();Hl();MS();V8();dI()});var bee=F(()=>{"use strict"});function Od(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ly(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}var _I=F(()=>{"use strict";o(Od,"default");o(ly,"extend")});function Bd(){}function Cee(){return this.rgb().formatHex()}function Jqe(){return this.rgb().formatHex8()}function eHe(){return _ee(this).formatHsl()}function wee(){return this.rgb().formatRgb()}function jl(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Uqe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?kee(t):r===3?new Oa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?PS(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?PS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Yqe.exec(e))?new Oa(t[1],t[2],t[3],1):(t=jqe.exec(e))?new Oa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Xqe.exec(e))?PS(t[1],t[2],t[3],t[4]):(t=Kqe.exec(e))?PS(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zqe.exec(e))?Aee(t[1],t[2]/100,t[3]/100,1):(t=Qqe.exec(e))?Aee(t[1],t[2]/100,t[3]/100,t[4]):Tee.hasOwnProperty(e)?kee(Tee[e]):e==="transparent"?new Oa(NaN,NaN,NaN,0):null}function kee(e){return new Oa(e>>16&255,e>>8&255,e&255,1)}function PS(e,t,r,n){return n<=0&&(e=t=r=NaN),new Oa(e,t,r,n)}function DI(e){return e instanceof Bd||(e=jl(e)),e?(e=e.rgb(),new Oa(e.r,e.g,e.b,e.opacity)):new Oa}function uy(e,t,r,n){return arguments.length===1?DI(e):new Oa(e,t,r,n??1)}function Oa(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function See(){return`#${Kp(this.r)}${Kp(this.g)}${Kp(this.b)}`}function tHe(){return`#${Kp(this.r)}${Kp(this.g)}${Kp(this.b)}${Kp((isNaN(this.opacity)?1:this.opacity)*255)}`}function Eee(){let e=$S(this.opacity);return`${e===1?"rgb(":"rgba("}${Zp(this.r)}, ${Zp(this.g)}, ${Zp(this.b)}${e===1?")":`, ${e})`}`}function $S(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kp(e){return e=Zp(e),(e<16?"0":"")+e.toString(16)}function Aee(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Yl(e,t,r,n)}function _ee(e){if(e instanceof Yl)return new Yl(e.h,e.s,e.l,e.opacity);if(e instanceof Bd||(e=jl(e)),!e)return new Yl;if(e instanceof Yl)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,l=a-i,u=(a+i)/2;return l?(t===a?s=(r-n)/l+(r0&&u<1?0:s,new Yl(s,l,u,e.opacity)}function Lee(e,t,r,n){return arguments.length===1?_ee(e):new Yl(e,t,r,n??1)}function Yl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ree(e){return e=(e||0)%360,e<0?e+360:e}function OS(e){return Math.max(0,Math.min(1,e||0))}function LI(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var Tb,BS,cy,Cb,Yc,Uqe,Yqe,jqe,Xqe,Kqe,Zqe,Qqe,Tee,II=F(()=>{"use strict";_I();o(Bd,"Color");Tb=.7,BS=1/Tb,cy="\\s*([+-]?\\d+)\\s*",Cb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Uqe=/^#([0-9a-f]{3,8})$/,Yqe=new RegExp(`^rgb\\(${cy},${cy},${cy}\\)$`),jqe=new RegExp(`^rgb\\(${Yc},${Yc},${Yc}\\)$`),Xqe=new RegExp(`^rgba\\(${cy},${cy},${cy},${Cb}\\)$`),Kqe=new RegExp(`^rgba\\(${Yc},${Yc},${Yc},${Cb}\\)$`),Zqe=new RegExp(`^hsl\\(${Cb},${Yc},${Yc}\\)$`),Qqe=new RegExp(`^hsla\\(${Cb},${Yc},${Yc},${Cb}\\)$`),Tee={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Od(Bd,jl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Cee,formatHex:Cee,formatHex8:Jqe,formatHsl:eHe,formatRgb:wee,toString:wee});o(Cee,"color_formatHex");o(Jqe,"color_formatHex8");o(eHe,"color_formatHsl");o(wee,"color_formatRgb");o(jl,"color");o(kee,"rgbn");o(PS,"rgba");o(DI,"rgbConvert");o(uy,"rgb");o(Oa,"Rgb");Od(Oa,uy,ly(Bd,{brighter(e){return e=e==null?BS:Math.pow(BS,e),new Oa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tb:Math.pow(Tb,e),new Oa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Oa(Zp(this.r),Zp(this.g),Zp(this.b),$S(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:See,formatHex:See,formatHex8:tHe,formatRgb:Eee,toString:Eee}));o(See,"rgb_formatHex");o(tHe,"rgb_formatHex8");o(Eee,"rgb_formatRgb");o($S,"clampa");o(Zp,"clampi");o(Kp,"hex");o(Aee,"hsla");o(_ee,"hslConvert");o(Lee,"hsl");o(Yl,"Hsl");Od(Yl,Lee,ly(Bd,{brighter(e){return e=e==null?BS:Math.pow(BS,e),new Yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tb:Math.pow(Tb,e),new Yl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Oa(LI(e>=240?e-240:e+120,i,n),LI(e,i,n),LI(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Yl(Ree(this.h),OS(this.s),OS(this.l),$S(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=$S(this.opacity);return`${e===1?"hsl(":"hsla("}${Ree(this.h)}, ${OS(this.s)*100}%, ${OS(this.l)*100}%${e===1?")":`, ${e})`}`}}));o(Ree,"clamph");o(OS,"clampt");o(LI,"hsl2rgb")});var Dee,Iee,Mee=F(()=>{"use strict";Dee=Math.PI/180,Iee=180/Math.PI});function Fee(e){if(e instanceof jc)return new jc(e.l,e.a,e.b,e.opacity);if(e instanceof ch)return zee(e);e instanceof Oa||(e=DI(e));var t=OI(e.r),r=OI(e.g),n=OI(e.b),i=MI((.2225045*t+.7168786*r+.0606169*n)/Pee),a,s;return t===r&&r===n?a=s=i:(a=MI((.4360747*t+.3850649*r+.1430804*n)/Nee),s=MI((.0139322*t+.0971045*r+.7141733*n)/Oee)),new jc(116*i-16,500*(a-i),200*(i-s),e.opacity)}function BI(e,t,r,n){return arguments.length===1?Fee(e):new jc(e,t,r,n??1)}function jc(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function MI(e){return e>rHe?Math.pow(e,1/3):e/$ee+Bee}function NI(e){return e>hy?e*e*e:$ee*(e-Bee)}function PI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function OI(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nHe(e){if(e instanceof ch)return new ch(e.h,e.c,e.l,e.opacity);if(e instanceof jc||(e=Fee(e)),e.a===0&&e.b===0)return new ch(NaN,0{"use strict";_I();II();Mee();FS=18,Nee=.96422,Pee=1,Oee=.82521,Bee=4/29,hy=6/29,$ee=3*hy*hy,rHe=hy*hy*hy;o(Fee,"labConvert");o(BI,"lab");o(jc,"Lab");Od(jc,BI,ly(Bd,{brighter(e){return new jc(this.l+FS*(e??1),this.a,this.b,this.opacity)},darker(e){return new jc(this.l-FS*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=Nee*NI(t),e=Pee*NI(e),r=Oee*NI(r),new Oa(PI(3.1338561*t-1.6168667*e-.4906146*r),PI(-.9787684*t+1.9161415*e+.033454*r),PI(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));o(MI,"xyz2lab");o(NI,"lab2xyz");o(PI,"lrgb2rgb");o(OI,"rgb2lrgb");o(nHe,"hclConvert");o(wb,"hcl");o(ch,"Hcl");o(zee,"hcl2lab");Od(ch,wb,ly(Bd,{brighter(e){return new ch(this.h,this.c,this.l+FS*(e??1),this.opacity)},darker(e){return new ch(this.h,this.c,this.l-FS*(e??1),this.opacity)},rgb(){return zee(this).rgb()}}))});var dy=F(()=>{"use strict";II();Gee()});function $I(e,t,r,n,i){var a=e*e,s=a*e;return((1-3*e+3*a-s)*t+(4-6*a+3*s)*r+(1+3*e+3*a-3*s)*n+s*i)/6}function FI(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],s=n>0?e[n-1]:2*i-a,l=n{"use strict";o($I,"basis");o(FI,"default")});function GI(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],s=e[(n+1)%t],l=e[(n+2)%t];return $I((r-n/t)*t,i,a,s,l)}}var Vee=F(()=>{"use strict";zI();o(GI,"default")});var fy,VI=F(()=>{"use strict";fy=o(e=>()=>e,"default")});function Wee(e,t){return function(r){return e+r*t}}function iHe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function qee(e,t){var r=t-e;return r?Wee(e,r>180||r<-180?r-360*Math.round(r/360):r):fy(isNaN(e)?t:e)}function Hee(e){return(e=+e)==1?uh:function(t,r){return r-t?iHe(t,r,e):fy(isNaN(t)?r:t)}}function uh(e,t){var r=t-e;return r?Wee(e,r):fy(isNaN(e)?t:e)}var WI=F(()=>{"use strict";VI();o(Wee,"linear");o(iHe,"exponential");o(qee,"hue");o(Hee,"gamma");o(uh,"nogamma")});function Uee(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),s,l;for(s=0;s{"use strict";dy();zI();Vee();WI();Qp=o((function e(t){var r=Hee(t);function n(i,a){var s=r((i=uy(i)).r,(a=uy(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),h=uh(i.opacity,a.opacity);return function(d){return i.r=s(d),i.g=l(d),i.b=u(d),i.opacity=h(d),i+""}}return o(n,"rgb"),n.gamma=e,n}),"rgbGamma")(1);o(Uee,"rgbSpline");aHe=Uee(FI),sHe=Uee(GI)});function HI(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{"use strict";o(HI,"default");o(Yee,"isNumberArray")});function Xee(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s{"use strict";zS();o(Xee,"genericArray")});function UI(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var Zee=F(()=>{"use strict";o(UI,"default")});function va(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var kb=F(()=>{"use strict";o(va,"default")});function YI(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=$d(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Qee=F(()=>{"use strict";zS();o(YI,"default")});function oHe(e){return function(){return e}}function lHe(e){return function(t){return e(t)+""}}function py(e,t){var r=XI.lastIndex=jI.lastIndex=0,n,i,a,s=-1,l=[],u=[];for(e=e+"",t=t+"";(n=XI.exec(e))&&(i=jI.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[s]?l[s]+=a:l[++s]=a),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,u.push({i:s,x:va(n,i)})),r=jI.lastIndex;return r{"use strict";kb();XI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jI=new RegExp(XI.source,"g");o(oHe,"zero");o(lHe,"one");o(py,"default")});function $d(e,t){var r=typeof t,n;return t==null||r==="boolean"?fy(t):(r==="number"?va:r==="string"?(n=jl(t))?(t=n,Qp):py:t instanceof jl?Qp:t instanceof Date?UI:Yee(t)?HI:Array.isArray(t)?Xee:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?YI:va)(e,t)}var zS=F(()=>{"use strict";dy();qI();Kee();Zee();kb();Qee();KI();VI();jee();o($d,"default")});function GS(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Jee=F(()=>{"use strict";o(GS,"default")});function WS(e,t,r,n,i,a){var s,l,u;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),e*n{"use strict";ete=180/Math.PI,VS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};o(WS,"default")});function rte(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?VS:WS(t.a,t.b,t.c,t.d,t.e,t.f)}function nte(e){return e==null?VS:(qS||(qS=document.createElementNS("http://www.w3.org/2000/svg","g")),qS.setAttribute("transform",e),(e=qS.transform.baseVal.consolidate())?(e=e.matrix,WS(e.a,e.b,e.c,e.d,e.e,e.f)):VS)}var qS,ite=F(()=>{"use strict";tte();o(rte,"parseCss");o(nte,"parseSvg")});function ate(e,t,r,n){function i(h){return h.length?h.pop()+" ":""}o(i,"pop");function a(h,d,f,p,m,g){if(h!==f||d!==p){var y=m.push("translate(",null,t,null,r);g.push({i:y-4,x:va(h,f)},{i:y-2,x:va(d,p)})}else(f||p)&&m.push("translate("+f+t+p+r)}o(a,"translate");function s(h,d,f,p){h!==d?(h-d>180?d+=360:d-h>180&&(h+=360),p.push({i:f.push(i(f)+"rotate(",null,n)-2,x:va(h,d)})):d&&f.push(i(f)+"rotate("+d+n)}o(s,"rotate");function l(h,d,f,p){h!==d?p.push({i:f.push(i(f)+"skewX(",null,n)-2,x:va(h,d)}):d&&f.push(i(f)+"skewX("+d+n)}o(l,"skewX");function u(h,d,f,p,m,g){if(h!==f||d!==p){var y=m.push(i(m)+"scale(",null,",",null,")");g.push({i:y-4,x:va(h,f)},{i:y-2,x:va(d,p)})}else(f!==1||p!==1)&&m.push(i(m)+"scale("+f+","+p+")")}return o(u,"scale"),function(h,d){var f=[],p=[];return h=e(h),d=e(d),a(h.translateX,h.translateY,d.translateX,d.translateY,f,p),s(h.rotate,d.rotate,f,p),l(h.skewX,d.skewX,f,p),u(h.scaleX,h.scaleY,d.scaleX,d.scaleY,f,p),h=d=null,function(m){for(var g=-1,y=p.length,v;++g{"use strict";kb();ite();o(ate,"interpolateTransform");ZI=ate(rte,"px, ","px)","deg)"),QI=ate(nte,", ",")",")")});function ote(e){return function(t,r){var n=e((t=wb(t)).h,(r=wb(r)).h),i=uh(t.c,r.c),a=uh(t.l,r.l),s=uh(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=s(l),t+""}}}var JI,cHe,lte=F(()=>{"use strict";dy();WI();o(ote,"hcl");JI=ote(qee),cHe=ote(uh)});var my=F(()=>{"use strict";zS();kb();Jee();KI();ste();qI();lte()});function Lb(){return Jp||(hte(uHe),Jp=Rb.now()+YS)}function uHe(){Jp=0}function _b(){this._call=this._time=this._next=null}function jS(e,t,r){var n=new _b;return n.restart(e,t,r),n}function dte(){Lb(),++gy;for(var e=HS,t;e;)(t=Jp-e._time)>=0&&e._call.call(void 0,t),e=e._next;--gy}function cte(){Jp=(US=Rb.now())+YS,gy=Eb=0;try{dte()}finally{gy=0,dHe(),Jp=0}}function hHe(){var e=Rb.now(),t=e-US;t>ute&&(YS-=t,US=e)}function dHe(){for(var e,t=HS,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:HS=r);Ab=e,eM(n)}function eM(e){if(!gy){Eb&&(Eb=clearTimeout(Eb));var t=e-Jp;t>24?(e<1/0&&(Eb=setTimeout(cte,e-Rb.now()-YS)),Sb&&(Sb=clearInterval(Sb))):(Sb||(US=Rb.now(),Sb=setInterval(hHe,ute)),gy=1,hte(cte))}}var gy,Eb,Sb,ute,HS,Ab,US,Jp,YS,Rb,hte,tM=F(()=>{"use strict";gy=0,Eb=0,Sb=0,ute=1e3,US=0,Jp=0,YS=0,Rb=typeof performance=="object"&&performance.now?performance:Date,hte=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};o(Lb,"now");o(uHe,"clearNow");o(_b,"Timer");_b.prototype=jS.prototype={constructor:_b,restart:o(function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Lb():+r)+(t==null?0:+t),!this._next&&Ab!==this&&(Ab?Ab._next=this:HS=this,Ab=this),this._call=e,this._time=r,eM()},"restart"),stop:o(function(){this._call&&(this._call=null,this._time=1/0,eM())},"stop")};o(jS,"timer");o(dte,"timerFlush");o(cte,"wake");o(hHe,"poke");o(dHe,"nap");o(eM,"sleep")});function Db(e,t,r){var n=new _b;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var fte=F(()=>{"use strict";tM();o(Db,"default")});var XS=F(()=>{"use strict";tM();fte()});function hh(e,t,r,n,i,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;mHe(e,r,{name:t,index:n,group:i,on:fHe,tween:pHe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:gte})}function Mb(e,t){var r=aa(e,t);if(r.state>gte)throw new Error("too late; already scheduled");return r}function Ba(e,t){var r=aa(e,t);if(r.state>KS)throw new Error("too late; already running");return r}function aa(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function mHe(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=jS(a,0,r.time);function a(h){r.state=pte,r.timer.restart(s,r.delay,r.time),r.delay<=h&&s(h-r.delay)}o(a,"schedule");function s(h){var d,f,p,m;if(r.state!==pte)return u();for(d in n)if(m=n[d],m.name===r.name){if(m.state===KS)return Db(s);m.state===mte?(m.state=Ib,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete n[d]):+d{"use strict";O8();XS();fHe=P8("start","end","cancel","interrupt"),pHe=[],gte=0,pte=1,ZS=2,KS=3,mte=4,QS=5,Ib=6;o(hh,"default");o(Mb,"init");o(Ba,"set");o(aa,"get");o(mHe,"create")});function Nb(e,t){var r=e.__transition,n,i,a=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((n=r[s]).name!==t){a=!1;continue}i=n.state>ZS&&n.state{"use strict";Js();o(Nb,"default")});function rM(e){return this.each(function(){Nb(this,e)})}var vte=F(()=>{"use strict";yte();o(rM,"default")});function gHe(e,t){var r,n;return function(){var i=Ba(this,e),a=i.tween;if(a!==r){n=r=a;for(var s=0,l=n.length;s{"use strict";Js();o(gHe,"tweenRemove");o(yHe,"tweenFunction");o(nM,"default");o(yy,"tweenValue")});function Ob(e,t){var r;return(typeof t=="number"?va:t instanceof jl?Qp:(r=jl(t))?(t=r,Qp):py)(e,t)}var iM=F(()=>{"use strict";dy();my();o(Ob,"default")});function vHe(e){return function(){this.removeAttribute(e)}}function xHe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bHe(e,t,r){var n,i=r+"",a;return function(){var s=this.getAttribute(e);return s===i?null:s===n?a:a=t(n=s,r)}}function THe(e,t,r){var n,i=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===n?a:a=t(n=s,r)}}function CHe(e,t,r){var n,i,a;return function(){var s,l=r(this),u;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),u=l+"",s===u?null:s===n&&u===i?a:(i=u,a=t(n=s,l)))}}function wHe(e,t,r){var n,i,a;return function(){var s,l=r(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),u=l+"",s===u?null:s===n&&u===i?a:(i=u,a=t(n=s,l)))}}function aM(e,t){var r=Uc(e),n=r==="transform"?QI:Ob;return this.attrTween(e,typeof t=="function"?(r.local?wHe:CHe)(r,n,yy(this,"attr."+e,t)):t==null?(r.local?xHe:vHe)(r):(r.local?THe:bHe)(r,n,t))}var xte=F(()=>{"use strict";my();Ul();Pb();iM();o(vHe,"attrRemove");o(xHe,"attrRemoveNS");o(bHe,"attrConstant");o(THe,"attrConstantNS");o(CHe,"attrFunction");o(wHe,"attrFunctionNS");o(aM,"default")});function kHe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function SHe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function EHe(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&SHe(e,a)),r}return o(i,"tween"),i._value=t,i}function AHe(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&kHe(e,a)),r}return o(i,"tween"),i._value=t,i}function sM(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=Uc(e);return this.tween(r,(n.local?EHe:AHe)(n,t))}var bte=F(()=>{"use strict";Ul();o(kHe,"attrInterpolate");o(SHe,"attrInterpolateNS");o(EHe,"attrTweenNS");o(AHe,"attrTween");o(sM,"default")});function RHe(e,t){return function(){Mb(this,e).delay=+t.apply(this,arguments)}}function _He(e,t){return t=+t,function(){Mb(this,e).delay=t}}function oM(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?RHe:_He)(t,e)):aa(this.node(),t).delay}var Tte=F(()=>{"use strict";Js();o(RHe,"delayFunction");o(_He,"delayConstant");o(oM,"default")});function LHe(e,t){return function(){Ba(this,e).duration=+t.apply(this,arguments)}}function DHe(e,t){return t=+t,function(){Ba(this,e).duration=t}}function lM(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?LHe:DHe)(t,e)):aa(this.node(),t).duration}var Cte=F(()=>{"use strict";Js();o(LHe,"durationFunction");o(DHe,"durationConstant");o(lM,"default")});function IHe(e,t){if(typeof t!="function")throw new Error;return function(){Ba(this,e).ease=t}}function cM(e){var t=this._id;return arguments.length?this.each(IHe(t,e)):aa(this.node(),t).ease}var wte=F(()=>{"use strict";Js();o(IHe,"easeConstant");o(cM,"default")});function MHe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Ba(this,e).ease=r}}function uM(e){if(typeof e!="function")throw new Error;return this.each(MHe(this._id,e))}var kte=F(()=>{"use strict";Js();o(MHe,"easeVarying");o(uM,"default")});function hM(e){typeof e!="function"&&(e=oy(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";Ul();em();o(hM,"default")});function dM(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),s=new Array(n),l=0;l{"use strict";em();o(dM,"default")});function NHe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function PHe(e,t,r){var n,i,a=NHe(t)?Mb:Ba;return function(){var s=a(this,e),l=s.on;l!==n&&(i=(n=l).copy()).on(t,r),s.on=i}}function fM(e,t){var r=this._id;return arguments.length<2?aa(this.node(),r).on.on(e):this.each(PHe(r,e,t))}var Ate=F(()=>{"use strict";Js();o(NHe,"start");o(PHe,"onFunction");o(fM,"default")});function OHe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function pM(){return this.on("end.remove",OHe(this._id))}var Rte=F(()=>{"use strict";o(OHe,"removeFunction");o(pM,"default")});function mM(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Nd(e));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s{"use strict";Ul();em();Js();o(mM,"default")});function gM(e){var t=this._name,r=this._id;typeof e!="function"&&(e=sy(e));for(var n=this._groups,i=n.length,a=[],s=[],l=0;l{"use strict";Ul();em();Js();o(gM,"default")});function yM(){return new BHe(this._groups,this._parents)}var BHe,Dte=F(()=>{"use strict";Ul();BHe=lh.prototype.constructor;o(yM,"default")});function $He(e,t){var r,n,i;return function(){var a=Pd(this,e),s=(this.style.removeProperty(e),Pd(this,e));return a===s?null:a===r&&s===n?i:i=t(r=a,n=s)}}function Ite(e){return function(){this.style.removeProperty(e)}}function FHe(e,t,r){var n,i=r+"",a;return function(){var s=Pd(this,e);return s===i?null:s===n?a:a=t(n=s,r)}}function zHe(e,t,r){var n,i,a;return function(){var s=Pd(this,e),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),Pd(this,e))),s===u?null:s===n&&u===i?a:(i=u,a=t(n=s,l))}}function GHe(e,t){var r,n,i,a="style."+t,s="end."+a,l;return function(){var u=Ba(this,e),h=u.on,d=u.value[a]==null?l||(l=Ite(t)):void 0;(h!==r||i!==d)&&(n=(r=h).copy()).on(s,i=d),u.on=n}}function vM(e,t,r){var n=(e+="")=="transform"?ZI:Ob;return t==null?this.styleTween(e,$He(e,n)).on("end.style."+e,Ite(e)):typeof t=="function"?this.styleTween(e,zHe(e,n,yy(this,"style."+e,t))).each(GHe(this._id,e)):this.styleTween(e,FHe(e,n,t),r).on("end.style."+e,null)}var Mte=F(()=>{"use strict";my();Ul();Js();Pb();iM();o($He,"styleNull");o(Ite,"styleRemove");o(FHe,"styleConstant");o(zHe,"styleFunction");o(GHe,"styleMaybeRemove");o(vM,"default")});function VHe(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function WHe(e,t,r){var n,i;function a(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&VHe(e,s,r)),n}return o(a,"tween"),a._value=t,a}function xM(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,WHe(e,t,r??""))}var Nte=F(()=>{"use strict";o(VHe,"styleInterpolate");o(WHe,"styleTween");o(xM,"default")});function qHe(e){return function(){this.textContent=e}}function HHe(e){return function(){var t=e(this);this.textContent=t??""}}function bM(e){return this.tween("text",typeof e=="function"?HHe(yy(this,"text",e)):qHe(e==null?"":e+""))}var Pte=F(()=>{"use strict";Pb();o(qHe,"textConstant");o(HHe,"textFunction");o(bM,"default")});function UHe(e){return function(t){this.textContent=e.call(this,t)}}function YHe(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&UHe(i)),t}return o(n,"tween"),n._value=e,n}function TM(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,YHe(e))}var Ote=F(()=>{"use strict";o(UHe,"textInterpolate");o(YHe,"textTween");o(TM,"default")});function CM(){for(var e=this._name,t=this._id,r=JS(),n=this._groups,i=n.length,a=0;a{"use strict";em();Js();o(CM,"default")});function wM(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,s){var l={value:s},u={value:o(function(){--i===0&&a()},"value")};r.each(function(){var h=Ba(this,n),d=h.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),h.on=t}),i===0&&a()})}var $te=F(()=>{"use strict";Js();o(wM,"default")});function Es(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function Fte(e){return lh().transition(e)}function JS(){return++jHe}var jHe,dh,em=F(()=>{"use strict";Ul();xte();bte();Tte();Cte();wte();kte();Ste();Ete();Ate();Rte();_te();Lte();Dte();Mte();Nte();Pte();Ote();Bte();Pb();$te();jHe=0;o(Es,"Transition");o(Fte,"transition");o(JS,"newId");dh=lh.prototype;Es.prototype=Fte.prototype={constructor:Es,select:mM,selectAll:gM,selectChild:dh.selectChild,selectChildren:dh.selectChildren,filter:hM,merge:dM,selection:yM,transition:CM,call:dh.call,nodes:dh.nodes,node:dh.node,size:dh.size,empty:dh.empty,each:dh.each,on:fM,attr:aM,attrTween:sM,style:vM,styleTween:xM,text:bM,textTween:TM,remove:pM,tween:nM,delay:oM,duration:lM,ease:cM,easeVarying:uM,end:wM,[Symbol.iterator]:dh[Symbol.iterator]}});function eE(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var zte=F(()=>{"use strict";o(eE,"cubicInOut")});var kM=F(()=>{"use strict";zte()});function KHe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function SM(e){var t,r;e instanceof Es?(t=e._id,e=e._name):(t=JS(),(r=XHe).time=Lb(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a{"use strict";em();Js();kM();XS();XHe={time:null,delay:0,duration:250,ease:eE};o(KHe,"inherit");o(SM,"default")});var Vte=F(()=>{"use strict";Ul();vte();Gte();lh.prototype.interrupt=rM;lh.prototype.transition=SM});var tE=F(()=>{"use strict";Vte()});var Wte=F(()=>{"use strict"});var qte=F(()=>{"use strict"});var Hte=F(()=>{"use strict"});function Ute(e){return[+e[0],+e[1]]}function ZHe(e){return[Ute(e[0]),Ute(e[1])]}function EM(e){return{type:e}}var mjt,gjt,yjt,vjt,xjt,bjt,Yte=F(()=>{"use strict";tE();Wte();qte();Hte();({abs:mjt,max:gjt,min:yjt}=Math);o(Ute,"number1");o(ZHe,"number2");vjt={name:"x",handles:["w","e"].map(EM),input:o(function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},"input"),output:o(function(e){return e&&[e[0][0],e[1][0]]},"output")},xjt={name:"y",handles:["n","s"].map(EM),input:o(function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},"input"),output:o(function(e){return e&&[e[0][1],e[1][1]]},"output")},bjt={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(EM),input:o(function(e){return e==null?null:ZHe(e)},"input"),output:o(function(e){return e},"output")};o(EM,"type")});var jte=F(()=>{"use strict";Yte()});function Xte(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Xte;let r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i{"use strict";AM=Math.PI,RM=2*AM,tm=1e-6,QHe=RM-tm;o(Xte,"append");o(JHe,"appendRound");rm=class{static{o(this,"Path")}constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Xte:JHe(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,s){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,u=n-t,h=i-r,d=s-t,f=l-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>tm)if(!(Math.abs(f*u-h*d)>tm)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-s,g=i-l,y=u*u+h*h,v=m*m+g*g,x=Math.sqrt(y),b=Math.sqrt(p),T=a*Math.tan((AM-Math.acos((y+p-v)/(2*x*b)))/2),k=T/b,C=T/x;Math.abs(k-1)>tm&&this._append`L${t+k*d},${r+k*f}`,this._append`A${a},${a},0,0,${+(f*m>d*g)},${this._x1=t+C*u},${this._y1=r+C*h}`}}arc(t,r,n,i,a,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),h=t+l,d=r+u,f=1^s,p=s?i-a:a-i;this._x1===null?this._append`M${h},${d}`:(Math.abs(this._x1-h)>tm||Math.abs(this._y1-d)>tm)&&this._append`L${h},${d}`,n&&(p<0&&(p=p%RM+RM),p>QHe?this._append`A${n},${n},0,1,${f},${t-l},${r-u}A${n},${n},0,1,${f},${this._x1=h},${this._y1=d}`:p>tm&&this._append`A${n},${n},0,${+(p>=AM)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};o(Kte,"path");Kte.prototype=rm.prototype});var _M=F(()=>{"use strict";Zte()});var Qte=F(()=>{"use strict"});var Jte=F(()=>{"use strict"});var ere=F(()=>{"use strict"});var tre=F(()=>{"use strict"});var rre=F(()=>{"use strict"});var nre=F(()=>{"use strict"});var ire=F(()=>{"use strict"});function LM(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function nm(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}var Bb=F(()=>{"use strict";o(LM,"default");o(nm,"formatDecimalParts")});function Xl(e){return e=nm(Math.abs(e)),e?e[1]:NaN}var $b=F(()=>{"use strict";Bb();o(Xl,"default")});function DM(e,t){return function(r,n){for(var i=r.length,a=[],s=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[s=(s+1)%e.length];return a.reverse().join(t)}}var are=F(()=>{"use strict";o(DM,"default")});function IM(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var sre=F(()=>{"use strict";o(IM,"default")});function Fd(e){if(!(t=eUe.exec(e)))throw new Error("invalid format: "+e);var t;return new rE({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function rE(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}var eUe,MM=F(()=>{"use strict";eUe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;o(Fd,"formatSpecifier");Fd.prototype=rE.prototype;o(rE,"FormatSpecifier");rE.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function NM(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var ore=F(()=>{"use strict";o(NM,"default")});function OM(e,t){var r=nm(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(PM=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+nm(e,Math.max(0,t+a-1))[0]}var PM,BM=F(()=>{"use strict";Bb();o(OM,"default")});function nE(e,t){var r=nm(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var lre=F(()=>{"use strict";Bb();o(nE,"default")});var $M,cre=F(()=>{"use strict";Bb();BM();lre();$M={"%":o((e,t)=>(e*100).toFixed(t),"%"),b:o(e=>Math.round(e).toString(2),"b"),c:o(e=>e+"","c"),d:LM,e:o((e,t)=>e.toExponential(t),"e"),f:o((e,t)=>e.toFixed(t),"f"),g:o((e,t)=>e.toPrecision(t),"g"),o:o(e=>Math.round(e).toString(8),"o"),p:o((e,t)=>nE(e*100,t),"p"),r:nE,s:OM,X:o(e=>Math.round(e).toString(16).toUpperCase(),"X"),x:o(e=>Math.round(e).toString(16),"x")}});function iE(e){return e}var ure=F(()=>{"use strict";o(iE,"default")});function FM(e){var t=e.grouping===void 0||e.thousands===void 0?iE:DM(hre.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?iE:IM(hre.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function h(f){f=Fd(f);var p=f.fill,m=f.align,g=f.sign,y=f.symbol,v=f.zero,x=f.width,b=f.comma,T=f.precision,k=f.trim,C=f.type;C==="n"?(b=!0,C="g"):$M[C]||(T===void 0&&(T=12),k=!0,C="g"),(v||p==="0"&&m==="=")&&(v=!0,p="0",m="=");var w=y==="$"?r:y==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",S=y==="$"?n:/[%p]/.test(C)?s:"",R=$M[C],L=/[defgprs%]/.test(C);T=T===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function N(I){var _=w,A=S,M,D,P;if(C==="c")A=R(I)+A,I="";else{I=+I;var B=I<0||1/I<0;if(I=isNaN(I)?u:R(Math.abs(I),T),k&&(I=NM(I)),B&&+I==0&&g!=="+"&&(B=!1),_=(B?g==="("?g:l:g==="-"||g==="("?"":g)+_,A=(C==="s"?dre[8+PM/3]:"")+A+(B&&g==="("?")":""),L){for(M=-1,D=I.length;++MP||P>57){A=(P===46?i+I.slice(M+1):I.slice(M))+A,I=I.slice(0,M);break}}}b&&!v&&(I=t(I,1/0));var O=_.length+I.length+A.length,$=O>1)+_+I+A+$.slice(O);break;default:I=$+_+I+A;break}return a(I)}return o(N,"format"),N.toString=function(){return f+""},N}o(h,"newFormat");function d(f,p){var m=h((f=Fd(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Xl(p)/3)))*3,y=Math.pow(10,-g),v=dre[8+g/3];return function(x){return m(y*x)+v}}return o(d,"formatPrefix"),{format:h,formatPrefix:d}}var hre,dre,fre=F(()=>{"use strict";$b();are();sre();MM();ore();cre();BM();ure();hre=Array.prototype.map,dre=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];o(FM,"default")});function zM(e){return aE=FM(e),Xc=aE.format,sE=aE.formatPrefix,aE}var aE,Xc,sE,pre=F(()=>{"use strict";fre();zM({thousands:",",grouping:[3],currency:["$",""]});o(zM,"defaultLocale")});function oE(e){return Math.max(0,-Xl(Math.abs(e)))}var mre=F(()=>{"use strict";$b();o(oE,"default")});function lE(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xl(t)/3)))*3-Xl(Math.abs(e)))}var gre=F(()=>{"use strict";$b();o(lE,"default")});function cE(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xl(t)-Xl(e))+1}var yre=F(()=>{"use strict";$b();o(cE,"default")});var GM=F(()=>{"use strict";pre();MM();mre();gre();yre()});var vre=F(()=>{"use strict"});function tUe(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function VM(){return this.eachAfter(tUe)}var xre=F(()=>{"use strict";o(tUe,"count");o(VM,"default")});function WM(e,t){let r=-1;for(let n of this)e.call(t,n,++r,this);return this}var bre=F(()=>{"use strict";o(WM,"default")});function qM(e,t){for(var r=this,n=[r],i,a,s=-1;r=n.pop();)if(e.call(t,r,++s,this),i=r.children)for(a=i.length-1;a>=0;--a)n.push(i[a]);return this}var Tre=F(()=>{"use strict";o(qM,"default")});function HM(e,t){for(var r=this,n=[r],i=[],a,s,l,u=-1;r=n.pop();)if(i.push(r),a=r.children)for(s=0,l=a.length;s{"use strict";o(HM,"default")});function UM(e,t){let r=-1;for(let n of this)if(e.call(t,n,++r,this))return n}var wre=F(()=>{"use strict";o(UM,"default")});function YM(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}var kre=F(()=>{"use strict";o(YM,"default")});function jM(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}var Sre=F(()=>{"use strict";o(jM,"default")});function XM(e){for(var t=this,r=rUe(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function rUe(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}var Ere=F(()=>{"use strict";o(XM,"default");o(rUe,"leastCommonAncestor")});function KM(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}var Are=F(()=>{"use strict";o(KM,"default")});function ZM(){return Array.from(this)}var Rre=F(()=>{"use strict";o(ZM,"default")});function QM(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}var _re=F(()=>{"use strict";o(QM,"default")});function JM(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}var Lre=F(()=>{"use strict";o(JM,"default")});function*eN(){var e=this,t,r=[e],n,i,a;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,n=e.children)for(i=0,a=n.length;i{"use strict";o(eN,"default")});function vy(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=aUe)):t===void 0&&(t=iUe);for(var r=new Fb(e),n,i=[r],a,s,l,u;n=i.pop();)if((s=t(n.data))&&(u=(s=Array.from(s)).length))for(n.children=s,l=u-1;l>=0;--l)i.push(a=s[l]=new Fb(s[l])),a.parent=n,a.depth=n.depth+1;return r.eachBefore(oUe)}function nUe(){return vy(this).eachBefore(sUe)}function iUe(e){return e.children}function aUe(e){return Array.isArray(e)?e[1]:null}function sUe(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function oUe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Fb(e){this.data=e,this.depth=this.height=0,this.parent=null}var Ire=F(()=>{"use strict";xre();bre();Tre();Cre();wre();kre();Sre();Ere();Are();Rre();_re();Lre();Dre();o(vy,"hierarchy");o(nUe,"node_copy");o(iUe,"objectChildren");o(aUe,"mapChildren");o(sUe,"copyData");o(oUe,"computeHeight");o(Fb,"Node");Fb.prototype=vy.prototype={constructor:Fb,count:VM,each:WM,eachAfter:HM,eachBefore:qM,find:UM,sum:YM,sort:jM,path:XM,ancestors:KM,descendants:ZM,leaves:QM,links:JM,copy:nUe,[Symbol.iterator]:eN}});function Mre(e){if(typeof e!="function")throw new Error;return e}var Nre=F(()=>{"use strict";o(Mre,"required")});function xy(){return 0}function im(e){return function(){return e}}var Pre=F(()=>{"use strict";o(xy,"constantZero");o(im,"default")});function tN(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}var Ore=F(()=>{"use strict";o(tN,"default")});function rN(e,t,r,n,i){for(var a=e.children,s,l=-1,u=a.length,h=e.value&&(n-t)/e.value;++l{"use strict";o(rN,"default")});function nN(e,t,r,n,i){for(var a=e.children,s,l=-1,u=a.length,h=e.value&&(i-r)/e.value;++l{"use strict";o(nN,"default")});function cUe(e,t,r,n,i,a){for(var s=[],l=t.children,u,h,d=0,f=0,p=l.length,m,g,y=t.value,v,x,b,T,k,C,w;db&&(b=h),w=v*v*C,T=Math.max(b/w,w/x),T>k){v-=h;break}k=T}s.push(u={value:v,dice:m{"use strict";Bre();$re();lUe=(1+Math.sqrt(5))/2;o(cUe,"squarifyRatio");Fre=o((function e(t){function r(n,i,a,s,l){cUe(t,n,i,a,s,l)}return o(r,"squarify"),r.ratio=function(n){return e((n=+n)>1?n:1)},r}),"custom")(lUe)});function uE(){var e=Fre,t=!1,r=1,n=1,i=[0],a=xy,s=xy,l=xy,u=xy,h=xy;function d(p){return p.x0=p.y0=0,p.x1=r,p.y1=n,p.eachBefore(f),i=[0],t&&p.eachBefore(tN),p}o(d,"treemap");function f(p){var m=i[p.depth],g=p.x0+m,y=p.y0+m,v=p.x1-m,x=p.y1-m;v{"use strict";Ore();zre();Nre();Pre();o(uE,"default")});var Vre=F(()=>{"use strict";Ire();Gre()});var Wre=F(()=>{"use strict"});var qre=F(()=>{"use strict"});function zd(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var zb=F(()=>{"use strict";o(zd,"initRange")});function Oo(){var e=new iy,t=[],r=[],n=iN;function i(a){let s=e.get(a);if(s===void 0){if(n!==iN)return n;e.set(a,s=t.push(a)-1)}return r[s%r.length]}return o(i,"scale"),i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new iy;for(let s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Oo(t,r).unknown(n)},zd.apply(i,arguments),i}var iN,aN=F(()=>{"use strict";Md();zb();iN=Symbol("implicit");o(Oo,"ordinal")});function by(){var e=Oo().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,s,l=!1,u=0,h=0,d=.5;delete e.unknown;function f(){var p=t().length,m=i{"use strict";Md();zb();aN();o(by,"band")});function sN(e){return function(){return e}}var Ure=F(()=>{"use strict";o(sN,"constants")});function oN(e){return+e}var Yre=F(()=>{"use strict";o(oN,"number")});function Ty(e){return e}function lN(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:sN(isNaN(t)?NaN:.5)}function uUe(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function hUe(e,t,r){var n=e[0],i=e[1],a=t[0],s=t[1];return i2?dUe:hUe,u=h=null,f}o(d,"rescale");function f(p){return p==null||isNaN(p=+p)?a:(u||(u=l(e.map(n),t,r)))(n(s(p)))}return o(f,"scale"),f.invert=function(p){return s(i((h||(h=l(t,e.map(n),va)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,oN),d()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),d()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),r=GS,d()},f.clamp=function(p){return arguments.length?(s=p?!0:Ty,d()):s!==Ty},f.interpolate=function(p){return arguments.length?(r=p,d()):r},f.unknown=function(p){return arguments.length?(a=p,f):a},function(p,m){return n=p,i=m,d()}}function Gb(){return fUe()(Ty,Ty)}var jre,cN=F(()=>{"use strict";Md();my();Ure();Yre();jre=[0,1];o(Ty,"identity");o(lN,"normalize");o(uUe,"clamper");o(hUe,"bimap");o(dUe,"polymap");o(hE,"copy");o(fUe,"transformer");o(Gb,"continuous")});function uN(e,t,r,n){var i=ay(e,t,r),a;switch(n=Fd(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=lE(i,s))&&(n.precision=a),sE(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=cE(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=oE(i))&&(n.precision=a-(n.type==="%")*2);break}}return Xc(n)}var Xre=F(()=>{"use strict";Md();GM();o(uN,"tickFormat")});function pUe(e){var t=e.domain;return e.ticks=function(r){var n=t();return kS(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return uN(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,s=n[i],l=n[a],u,h,d=10;for(l0;){if(h=mb(s,l,r),h===u)return n[i]=s,n[a]=l,t(n);if(h>0)s=Math.floor(s/h)*h,l=Math.ceil(l/h)*h;else if(h<0)s=Math.ceil(s*h)/h,l=Math.floor(l*h)/h;else break;u=h}return e},e}function Kl(){var e=Gb();return e.copy=function(){return hE(e,Kl())},zd.apply(e,arguments),pUe(e)}var Kre=F(()=>{"use strict";Md();cN();zb();Xre();o(pUe,"linearish");o(Kl,"linear")});function hN(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],s;return a{"use strict";o(hN,"nice")});function qn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o(i,"interval"),i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{let s=i(a),l=i.ceil(a);return a-s(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,l)=>{let u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let h;do u.push(h=new Date(+a)),t(a,l),e(a);while(hqn(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!a(s););else for(;--l>=0;)for(;t(s,1),!a(s););}),r&&(i.count=(a,s)=>(dN.setTime(+a),fN.setTime(+s),e(dN),e(fN),Math.floor(r(dN,fN))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}var dN,fN,fh=F(()=>{"use strict";dN=new Date,fN=new Date;o(qn,"timeInterval")});var Kc,Qre,pN=F(()=>{"use strict";fh();Kc=qn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Kc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Kc);Qre=Kc.range});var Bo,Jre,mN=F(()=>{"use strict";fh();Bo=qn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),Jre=Bo.range});var ph,mUe,dE,gUe,gN=F(()=>{"use strict";fh();ph=qn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),mUe=ph.range,dE=qn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),gUe=dE.range});var mh,yUe,fE,vUe,yN=F(()=>{"use strict";fh();mh=qn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),yUe=mh.range,fE=qn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),vUe=fE.range});var hl,xUe,Wb,bUe,pE,TUe,vN=F(()=>{"use strict";fh();hl=qn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),xUe=hl.range,Wb=qn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),bUe=Wb.range,pE=qn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),TUe=pE.range});function om(e){return qn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}function lm(e){return qn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var Zl,Gd,mE,gE,Qc,yE,vE,tne,CUe,wUe,kUe,SUe,EUe,AUe,cm,Cy,rne,nne,Vd,ine,ane,sne,RUe,_Ue,LUe,DUe,IUe,MUe,xN=F(()=>{"use strict";fh();o(om,"timeWeekday");Zl=om(0),Gd=om(1),mE=om(2),gE=om(3),Qc=om(4),yE=om(5),vE=om(6),tne=Zl.range,CUe=Gd.range,wUe=mE.range,kUe=gE.range,SUe=Qc.range,EUe=yE.range,AUe=vE.range;o(lm,"utcWeekday");cm=lm(0),Cy=lm(1),rne=lm(2),nne=lm(3),Vd=lm(4),ine=lm(5),ane=lm(6),sne=cm.range,RUe=Cy.range,_Ue=rne.range,LUe=nne.range,DUe=Vd.range,IUe=ine.range,MUe=ane.range});var gh,NUe,xE,PUe,bN=F(()=>{"use strict";fh();gh=qn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),NUe=gh.range,xE=qn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),PUe=xE.range});var $o,OUe,Ql,BUe,TN=F(()=>{"use strict";fh();$o=qn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());$o.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});OUe=$o.range,Ql=qn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ql.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});BUe=Ql.range});function lne(e,t,r,n,i,a){let s=[[Bo,1,1e3],[Bo,5,5*1e3],[Bo,15,15*1e3],[Bo,30,30*1e3],[a,1,6e4],[a,5,5*6e4],[a,15,15*6e4],[a,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function l(h,d,f){let p=dv).right(s,p);if(m===s.length)return e.every(ay(h/31536e6,d/31536e6,f));if(m===0)return Kc.every(Math.max(ay(h,d,f),1));let[g,y]=s[p/s[m-1][2]{"use strict";Md();pN();mN();gN();yN();vN();xN();bN();TN();o(lne,"ticker");[FUe,zUe]=lne(Ql,xE,cm,pE,fE,dE),[CN,wN]=lne($o,gh,Zl,hl,mh,ph)});var bE=F(()=>{"use strict";pN();mN();gN();yN();vN();xN();bN();TN();cne()});function kN(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function SN(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qb(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function EN(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,s=e.shortDays,l=e.months,u=e.shortMonths,h=Hb(i),d=Ub(i),f=Hb(a),p=Ub(a),m=Hb(s),g=Ub(s),y=Hb(l),v=Ub(l),x=Hb(u),b=Ub(u),T={a:B,A:O,b:$,B:V,c:null,d:mne,e:mne,f:cYe,g:xYe,G:TYe,H:sYe,I:oYe,j:lYe,L:bne,m:uYe,M:hYe,p:G,q:z,Q:vne,s:xne,S:dYe,u:fYe,U:pYe,V:mYe,w:gYe,W:yYe,x:null,X:null,y:vYe,Y:bYe,Z:CYe,"%":yne},k={a:W,A:H,b:j,B:Q,c:null,d:gne,e:gne,f:EYe,g:OYe,G:$Ye,H:wYe,I:kYe,j:SYe,L:Cne,m:AYe,M:RYe,p:U,q:oe,Q:vne,s:xne,S:_Ye,u:LYe,U:DYe,V:IYe,w:MYe,W:NYe,x:null,X:null,y:PYe,Y:BYe,Z:FYe,"%":yne},C={a:N,A:I,b:_,B:A,c:M,d:fne,e:fne,f:rYe,g:dne,G:hne,H:pne,I:pne,j:QUe,L:tYe,m:ZUe,M:JUe,p:L,q:KUe,Q:iYe,s:aYe,S:eYe,u:HUe,U:UUe,V:YUe,w:qUe,W:jUe,x:D,X:P,y:dne,Y:hne,Z:XUe,"%":nYe};T.x=w(r,T),T.X=w(n,T),T.c=w(t,T),k.x=w(r,k),k.X=w(n,k),k.c=w(t,k);function w(te,le){return function(ie){var ae=[],Re=-1,be=0,Pe=te.length,Ge,Oe,ue;for(ie instanceof Date||(ie=new Date(+ie));++Re53)return null;"w"in ae||(ae.w=1),"Z"in ae?(be=SN(qb(ae.y,0,1)),Pe=be.getUTCDay(),be=Pe>4||Pe===0?Cy.ceil(be):Cy(be),be=Wb.offset(be,(ae.V-1)*7),ae.y=be.getUTCFullYear(),ae.m=be.getUTCMonth(),ae.d=be.getUTCDate()+(ae.w+6)%7):(be=kN(qb(ae.y,0,1)),Pe=be.getDay(),be=Pe>4||Pe===0?Gd.ceil(be):Gd(be),be=hl.offset(be,(ae.V-1)*7),ae.y=be.getFullYear(),ae.m=be.getMonth(),ae.d=be.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),Pe="Z"in ae?SN(qb(ae.y,0,1)).getUTCDay():kN(qb(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(Pe+5)%7:ae.w+ae.U*7-(Pe+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,SN(ae)):kN(ae)}}o(S,"newParse");function R(te,le,ie,ae){for(var Re=0,be=le.length,Pe=ie.length,Ge,Oe;Re=Pe)return-1;if(Ge=le.charCodeAt(Re++),Ge===37){if(Ge=le.charAt(Re++),Oe=C[Ge in une?le.charAt(Re++):Ge],!Oe||(ae=Oe(te,ie,ae))<0)return-1}else if(Ge!=ie.charCodeAt(ae++))return-1}return ae}o(R,"parseSpecifier");function L(te,le,ie){var ae=h.exec(le.slice(ie));return ae?(te.p=d.get(ae[0].toLowerCase()),ie+ae[0].length):-1}o(L,"parsePeriod");function N(te,le,ie){var ae=m.exec(le.slice(ie));return ae?(te.w=g.get(ae[0].toLowerCase()),ie+ae[0].length):-1}o(N,"parseShortWeekday");function I(te,le,ie){var ae=f.exec(le.slice(ie));return ae?(te.w=p.get(ae[0].toLowerCase()),ie+ae[0].length):-1}o(I,"parseWeekday");function _(te,le,ie){var ae=x.exec(le.slice(ie));return ae?(te.m=b.get(ae[0].toLowerCase()),ie+ae[0].length):-1}o(_,"parseShortMonth");function A(te,le,ie){var ae=y.exec(le.slice(ie));return ae?(te.m=v.get(ae[0].toLowerCase()),ie+ae[0].length):-1}o(A,"parseMonth");function M(te,le,ie){return R(te,t,le,ie)}o(M,"parseLocaleDateTime");function D(te,le,ie){return R(te,r,le,ie)}o(D,"parseLocaleDate");function P(te,le,ie){return R(te,n,le,ie)}o(P,"parseLocaleTime");function B(te){return s[te.getDay()]}o(B,"formatShortWeekday");function O(te){return a[te.getDay()]}o(O,"formatWeekday");function $(te){return u[te.getMonth()]}o($,"formatShortMonth");function V(te){return l[te.getMonth()]}o(V,"formatMonth");function G(te){return i[+(te.getHours()>=12)]}o(G,"formatPeriod");function z(te){return 1+~~(te.getMonth()/3)}o(z,"formatQuarter");function W(te){return s[te.getUTCDay()]}o(W,"formatUTCShortWeekday");function H(te){return a[te.getUTCDay()]}o(H,"formatUTCWeekday");function j(te){return u[te.getUTCMonth()]}o(j,"formatUTCShortMonth");function Q(te){return l[te.getUTCMonth()]}o(Q,"formatUTCMonth");function U(te){return i[+(te.getUTCHours()>=12)]}o(U,"formatUTCPeriod");function oe(te){return 1+~~(te.getUTCMonth()/3)}return o(oe,"formatUTCQuarter"),{format:o(function(te){var le=w(te+="",T);return le.toString=function(){return te},le},"format"),parse:o(function(te){var le=S(te+="",!1);return le.toString=function(){return te},le},"parse"),utcFormat:o(function(te){var le=w(te+="",k);return le.toString=function(){return te},le},"utcFormat"),utcParse:o(function(te){var le=S(te+="",!0);return le.toString=function(){return te},le},"utcParse")}}function pn(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function qUe(e,t,r){var n=xa.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function HUe(e,t,r){var n=xa.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function UUe(e,t,r){var n=xa.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function YUe(e,t,r){var n=xa.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function jUe(e,t,r){var n=xa.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function hne(e,t,r){var n=xa.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function dne(e,t,r){var n=xa.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function XUe(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function KUe(e,t,r){var n=xa.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function ZUe(e,t,r){var n=xa.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function fne(e,t,r){var n=xa.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function QUe(e,t,r){var n=xa.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function pne(e,t,r){var n=xa.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function JUe(e,t,r){var n=xa.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function eYe(e,t,r){var n=xa.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function tYe(e,t,r){var n=xa.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function rYe(e,t,r){var n=xa.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nYe(e,t,r){var n=GUe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function iYe(e,t,r){var n=xa.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function aYe(e,t,r){var n=xa.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function mne(e,t){return pn(e.getDate(),t,2)}function sYe(e,t){return pn(e.getHours(),t,2)}function oYe(e,t){return pn(e.getHours()%12||12,t,2)}function lYe(e,t){return pn(1+hl.count($o(e),e),t,3)}function bne(e,t){return pn(e.getMilliseconds(),t,3)}function cYe(e,t){return bne(e,t)+"000"}function uYe(e,t){return pn(e.getMonth()+1,t,2)}function hYe(e,t){return pn(e.getMinutes(),t,2)}function dYe(e,t){return pn(e.getSeconds(),t,2)}function fYe(e){var t=e.getDay();return t===0?7:t}function pYe(e,t){return pn(Zl.count($o(e)-1,e),t,2)}function Tne(e){var t=e.getDay();return t>=4||t===0?Qc(e):Qc.ceil(e)}function mYe(e,t){return e=Tne(e),pn(Qc.count($o(e),e)+($o(e).getDay()===4),t,2)}function gYe(e){return e.getDay()}function yYe(e,t){return pn(Gd.count($o(e)-1,e),t,2)}function vYe(e,t){return pn(e.getFullYear()%100,t,2)}function xYe(e,t){return e=Tne(e),pn(e.getFullYear()%100,t,2)}function bYe(e,t){return pn(e.getFullYear()%1e4,t,4)}function TYe(e,t){var r=e.getDay();return e=r>=4||r===0?Qc(e):Qc.ceil(e),pn(e.getFullYear()%1e4,t,4)}function CYe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pn(t/60|0,"0",2)+pn(t%60,"0",2)}function gne(e,t){return pn(e.getUTCDate(),t,2)}function wYe(e,t){return pn(e.getUTCHours(),t,2)}function kYe(e,t){return pn(e.getUTCHours()%12||12,t,2)}function SYe(e,t){return pn(1+Wb.count(Ql(e),e),t,3)}function Cne(e,t){return pn(e.getUTCMilliseconds(),t,3)}function EYe(e,t){return Cne(e,t)+"000"}function AYe(e,t){return pn(e.getUTCMonth()+1,t,2)}function RYe(e,t){return pn(e.getUTCMinutes(),t,2)}function _Ye(e,t){return pn(e.getUTCSeconds(),t,2)}function LYe(e){var t=e.getUTCDay();return t===0?7:t}function DYe(e,t){return pn(cm.count(Ql(e)-1,e),t,2)}function wne(e){var t=e.getUTCDay();return t>=4||t===0?Vd(e):Vd.ceil(e)}function IYe(e,t){return e=wne(e),pn(Vd.count(Ql(e),e)+(Ql(e).getUTCDay()===4),t,2)}function MYe(e){return e.getUTCDay()}function NYe(e,t){return pn(Cy.count(Ql(e)-1,e),t,2)}function PYe(e,t){return pn(e.getUTCFullYear()%100,t,2)}function OYe(e,t){return e=wne(e),pn(e.getUTCFullYear()%100,t,2)}function BYe(e,t){return pn(e.getUTCFullYear()%1e4,t,4)}function $Ye(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Vd(e):Vd.ceil(e),pn(e.getUTCFullYear()%1e4,t,4)}function FYe(){return"+0000"}function yne(){return"%"}function vne(e){return+e}function xne(e){return Math.floor(+e/1e3)}var une,xa,GUe,VUe,kne=F(()=>{"use strict";bE();o(kN,"localDate");o(SN,"utcDate");o(qb,"newDate");o(EN,"formatLocale");une={"-":"",_:" ",0:"0"},xa=/^\s*\d+/,GUe=/^%/,VUe=/[\\^$*+?|[\]().{}]/g;o(pn,"pad");o(WUe,"requote");o(Hb,"formatRe");o(Ub,"formatLookup");o(qUe,"parseWeekdayNumberSunday");o(HUe,"parseWeekdayNumberMonday");o(UUe,"parseWeekNumberSunday");o(YUe,"parseWeekNumberISO");o(jUe,"parseWeekNumberMonday");o(hne,"parseFullYear");o(dne,"parseYear");o(XUe,"parseZone");o(KUe,"parseQuarter");o(ZUe,"parseMonthNumber");o(fne,"parseDayOfMonth");o(QUe,"parseDayOfYear");o(pne,"parseHour24");o(JUe,"parseMinutes");o(eYe,"parseSeconds");o(tYe,"parseMilliseconds");o(rYe,"parseMicroseconds");o(nYe,"parseLiteralPercent");o(iYe,"parseUnixTimestamp");o(aYe,"parseUnixTimestampSeconds");o(mne,"formatDayOfMonth");o(sYe,"formatHour24");o(oYe,"formatHour12");o(lYe,"formatDayOfYear");o(bne,"formatMilliseconds");o(cYe,"formatMicroseconds");o(uYe,"formatMonthNumber");o(hYe,"formatMinutes");o(dYe,"formatSeconds");o(fYe,"formatWeekdayNumberMonday");o(pYe,"formatWeekNumberSunday");o(Tne,"dISO");o(mYe,"formatWeekNumberISO");o(gYe,"formatWeekdayNumberSunday");o(yYe,"formatWeekNumberMonday");o(vYe,"formatYear");o(xYe,"formatYearISO");o(bYe,"formatFullYear");o(TYe,"formatFullYearISO");o(CYe,"formatZone");o(gne,"formatUTCDayOfMonth");o(wYe,"formatUTCHour24");o(kYe,"formatUTCHour12");o(SYe,"formatUTCDayOfYear");o(Cne,"formatUTCMilliseconds");o(EYe,"formatUTCMicroseconds");o(AYe,"formatUTCMonthNumber");o(RYe,"formatUTCMinutes");o(_Ye,"formatUTCSeconds");o(LYe,"formatUTCWeekdayNumberMonday");o(DYe,"formatUTCWeekNumberSunday");o(wne,"UTCdISO");o(IYe,"formatUTCWeekNumberISO");o(MYe,"formatUTCWeekdayNumberSunday");o(NYe,"formatUTCWeekNumberMonday");o(PYe,"formatUTCYear");o(OYe,"formatUTCYearISO");o(BYe,"formatUTCFullYear");o($Ye,"formatUTCFullYearISO");o(FYe,"formatUTCZone");o(yne,"formatLiteralPercent");o(vne,"formatUnixTimestamp");o(xne,"formatUnixTimestampSeconds")});function AN(e){return wy=EN(e),um=wy.format,Sne=wy.parse,Ene=wy.utcFormat,Ane=wy.utcParse,wy}var wy,um,Sne,Ene,Ane,Rne=F(()=>{"use strict";kne();AN({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});o(AN,"defaultLocale")});var RN=F(()=>{"use strict";Rne()});function zYe(e){return new Date(e)}function GYe(e){return e instanceof Date?+e:+new Date(+e)}function _ne(e,t,r,n,i,a,s,l,u,h){var d=Gb(),f=d.invert,p=d.domain,m=h(".%L"),g=h(":%S"),y=h("%I:%M"),v=h("%I %p"),x=h("%a %d"),b=h("%b %d"),T=h("%B"),k=h("%Y");function C(w){return(u(w){"use strict";bE();RN();cN();zb();Zre();o(zYe,"date");o(GYe,"number");o(_ne,"calendar");o(TE,"time")});var Dne=F(()=>{"use strict";Hre();Kre();aN();Lne()});function _N(e){for(var t=e.length/6|0,r=new Array(t),n=0;n{"use strict";o(_N,"default")});var LN,Mne=F(()=>{"use strict";Ine();LN=_N("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var Nne=F(()=>{"use strict";Mne()});function ii(e){return o(function(){return e},"constant")}var CE=F(()=>{"use strict";o(ii,"default")});function One(e){return e>1?0:e<-1?ky:Math.acos(e)}function IN(e){return e>=1?Yb:e<=-1?-Yb:Math.asin(e)}var DN,$a,Wd,Pne,wE,Jl,hm,ba,ky,Yb,Sy,kE=F(()=>{"use strict";DN=Math.abs,$a=Math.atan2,Wd=Math.cos,Pne=Math.max,wE=Math.min,Jl=Math.sin,hm=Math.sqrt,ba=1e-12,ky=Math.PI,Yb=ky/2,Sy=2*ky;o(One,"acos");o(IN,"asin")});function SE(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new rm(t)}var MN=F(()=>{"use strict";_M();o(SE,"withPath")});function VYe(e){return e.innerRadius}function WYe(e){return e.outerRadius}function qYe(e){return e.startAngle}function HYe(e){return e.endAngle}function UYe(e){return e&&e.padAngle}function YYe(e,t,r,n,i,a,s,l){var u=r-e,h=n-t,d=s-i,f=l-a,p=f*u-d*h;if(!(p*pM*M+D*D&&(R=N,L=I),{cx:R,cy:L,x01:-d,y01:-f,x11:R*(i/C-1),y11:L*(i/C-1)}}function ec(){var e=VYe,t=WYe,r=ii(0),n=null,i=qYe,a=HYe,s=UYe,l=null,u=SE(h);function h(){var d,f,p=+e.apply(this,arguments),m=+t.apply(this,arguments),g=i.apply(this,arguments)-Yb,y=a.apply(this,arguments)-Yb,v=DN(y-g),x=y>g;if(l||(l=d=u()),mba))l.moveTo(0,0);else if(v>Sy-ba)l.moveTo(m*Wd(g),m*Jl(g)),l.arc(0,0,m,g,y,!x),p>ba&&(l.moveTo(p*Wd(y),p*Jl(y)),l.arc(0,0,p,y,g,x));else{var b=g,T=y,k=g,C=y,w=v,S=v,R=s.apply(this,arguments)/2,L=R>ba&&(n?+n.apply(this,arguments):hm(p*p+m*m)),N=wE(DN(m-p)/2,+r.apply(this,arguments)),I=N,_=N,A,M;if(L>ba){var D=IN(L/p*Jl(R)),P=IN(L/m*Jl(R));(w-=D*2)>ba?(D*=x?1:-1,k+=D,C-=D):(w=0,k=C=(g+y)/2),(S-=P*2)>ba?(P*=x?1:-1,b+=P,T-=P):(S=0,b=T=(g+y)/2)}var B=m*Wd(b),O=m*Jl(b),$=p*Wd(C),V=p*Jl(C);if(N>ba){var G=m*Wd(T),z=m*Jl(T),W=p*Wd(k),H=p*Jl(k),j;if(vba?_>ba?(A=EE(W,H,B,O,m,_,x),M=EE(G,z,$,V,m,_,x),l.moveTo(A.cx+A.x01,A.cy+A.y01),_ba)||!(w>ba)?l.lineTo($,V):I>ba?(A=EE($,V,G,z,p,-I,x),M=EE(B,O,W,H,p,-I,x),l.lineTo(A.cx+A.x01,A.cy+A.y01),I{"use strict";CE();kE();MN();o(VYe,"arcInnerRadius");o(WYe,"arcOuterRadius");o(qYe,"arcStartAngle");o(HYe,"arcEndAngle");o(UYe,"arcPadAngle");o(YYe,"intersect");o(EE,"cornerTangents");o(ec,"default")});function jb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}var iJt,NN=F(()=>{"use strict";iJt=Array.prototype.slice;o(jb,"default")});function $ne(e){this._context=e}function Jc(e){return new $ne(e)}var PN=F(()=>{"use strict";o($ne,"Linear");$ne.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}},"point")};o(Jc,"default")});function Fne(e){return e[0]}function zne(e){return e[1]}var Gne=F(()=>{"use strict";o(Fne,"x");o(zne,"y")});function tc(e,t){var r=ii(!0),n=null,i=Jc,a=null,s=SE(l);e=typeof e=="function"?e:e===void 0?Fne:ii(e),t=typeof t=="function"?t:t===void 0?zne:ii(t);function l(u){var h,d=(u=jb(u)).length,f,p=!1,m;for(n==null&&(a=i(m=s())),h=0;h<=d;++h)!(h{"use strict";NN();CE();PN();MN();Gne();o(tc,"default")});function ON(e,t){return te?1:t>=e?0:NaN}var Wne=F(()=>{"use strict";o(ON,"default")});function BN(e){return e}var qne=F(()=>{"use strict";o(BN,"default")});function AE(){var e=BN,t=ON,r=null,n=ii(0),i=ii(Sy),a=ii(0);function s(l){var u,h=(l=jb(l)).length,d,f,p=0,m=new Array(h),g=new Array(h),y=+n.apply(this,arguments),v=Math.min(Sy,Math.max(-Sy,i.apply(this,arguments)-y)),x,b=Math.min(Math.abs(v)/h,a.apply(this,arguments)),T=b*(v<0?-1:1),k;for(u=0;u0&&(p+=k);for(t!=null?m.sort(function(C,w){return t(g[C],g[w])}):r!=null&&m.sort(function(C,w){return r(l[C],l[w])}),u=0,f=p?(v-h*T)/p:0;u0?k*f:0)+T,g[d]={data:l[d],index:u,value:k,startAngle:y,endAngle:x,padAngle:b};return g}return o(s,"pie"),s.value=function(l){return arguments.length?(e=typeof l=="function"?l:ii(+l),s):e},s.sortValues=function(l){return arguments.length?(t=l,r=null,s):t},s.sort=function(l){return arguments.length?(r=l,t=null,s):r},s.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:ii(+l),s):n},s.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ii(+l),s):i},s.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ii(+l),s):a},s}var Hne=F(()=>{"use strict";NN();CE();Wne();qne();kE();o(AE,"default")});function Xb(e){return new RE(e,!0)}function Kb(e){return new RE(e,!1)}var RE,Une=F(()=>{"use strict";RE=class{static{o(this,"Bump")}constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};o(Xb,"bumpX");o(Kb,"bumpY")});function Fo(){}var Zb=F(()=>{"use strict";o(Fo,"default")});function Ey(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Qb(e){this._context=e}function rc(e){return new Qb(e)}var Jb=F(()=>{"use strict";o(Ey,"point");o(Qb,"Basis");Qb.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 3:Ey(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};o(rc,"default")});function Yne(e){this._context=e}function _E(e){return new Yne(e)}var jne=F(()=>{"use strict";Zb();Jb();o(Yne,"BasisClosed");Yne.prototype={areaStart:Fo,areaEnd:Fo,lineStart:o(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};o(_E,"default")});function Xne(e){this._context=e}function LE(e){return new Xne(e)}var Kne=F(()=>{"use strict";Jb();o(Xne,"BasisOpen");Xne.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};o(LE,"default")});function Zne(e,t){this._basis=new Qb(e),this._beta=t}var $N,Qne=F(()=>{"use strict";Jb();o(Zne,"Bundle");Zne.prototype={lineStart:o(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:o(function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],i=t[0],a=e[r]-n,s=t[r]-i,l=-1,u;++l<=r;)u=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(n+u*a),this._beta*t[l]+(1-this._beta)*(i+u*s));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:o(function(e,t){this._x.push(+e),this._y.push(+t)},"point")};$N=o((function e(t){function r(n){return t===1?new Qb(n):new Zne(n,t)}return o(r,"bundle"),r.beta=function(n){return e(+n)},r}),"custom")(.85)});function Ay(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function DE(e,t){this._context=e,this._k=(1-t)/6}var e2,t2=F(()=>{"use strict";o(Ay,"point");o(DE,"Cardinal");DE.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ay(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ay(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};e2=o((function e(t){function r(n){return new DE(n,t)}return o(r,"cardinal"),r.tension=function(n){return e(+n)},r}),"custom")(0)});function IE(e,t){this._context=e,this._k=(1-t)/6}var FN,zN=F(()=>{"use strict";Zb();t2();o(IE,"CardinalClosed");IE.prototype={areaStart:Fo,areaEnd:Fo,lineStart:o(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ay(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};FN=o((function e(t){function r(n){return new IE(n,t)}return o(r,"cardinal"),r.tension=function(n){return e(+n)},r}),"custom")(0)});function ME(e,t){this._context=e,this._k=(1-t)/6}var GN,VN=F(()=>{"use strict";t2();o(ME,"CardinalOpen");ME.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ay(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};GN=o((function e(t){function r(n){return new ME(n,t)}return o(r,"cardinal"),r.tension=function(n){return e(+n)},r}),"custom")(0)});function r2(e,t,r){var n=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>ba){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>ba){var h=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*h+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*h+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(n,i,a,s,e._x2,e._y2)}function Jne(e,t){this._context=e,this._alpha=t}var n2,NE=F(()=>{"use strict";kE();t2();o(r2,"point");o(Jne,"CatmullRom");Jne.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:r2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};n2=o((function e(t){function r(n){return t?new Jne(n,t):new DE(n,0)}return o(r,"catmullRom"),r.alpha=function(n){return e(+n)},r}),"custom")(.5)});function eie(e,t){this._context=e,this._alpha=t}var WN,tie=F(()=>{"use strict";zN();Zb();NE();o(eie,"CatmullRomClosed");eie.prototype={areaStart:Fo,areaEnd:Fo,lineStart:o(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:o(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:r2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};WN=o((function e(t){function r(n){return t?new eie(n,t):new IE(n,0)}return o(r,"catmullRom"),r.alpha=function(n){return e(+n)},r}),"custom")(.5)});function rie(e,t){this._context=e,this._alpha=t}var qN,nie=F(()=>{"use strict";VN();NE();o(rie,"CatmullRomOpen");rie.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:r2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};qN=o((function e(t){function r(n){return t?new rie(n,t):new ME(n,0)}return o(r,"catmullRom"),r.alpha=function(n){return e(+n)},r}),"custom")(.5)});function iie(e){this._context=e}function PE(e){return new iie(e)}var aie=F(()=>{"use strict";Zb();o(iie,"LinearClosed");iie.prototype={areaStart:Fo,areaEnd:Fo,lineStart:o(function(){this._point=0},"lineStart"),lineEnd:o(function(){this._point&&this._context.closePath()},"lineEnd"),point:o(function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))},"point")};o(PE,"default")});function sie(e){return e<0?-1:1}function oie(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),l=(a*i+s*n)/(n+i);return(sie(a)+sie(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function lie(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function HN(e,t,r){var n=e._x0,i=e._y0,a=e._x1,s=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,s-l*r,a,s)}function OE(e){this._context=e}function cie(e){this._context=new uie(e)}function uie(e){this._context=e}function i2(e){return new OE(e)}function a2(e){return new cie(e)}var hie=F(()=>{"use strict";o(sie,"sign");o(oie,"slope3");o(lie,"slope2");o(HN,"point");o(OE,"MonotoneX");OE.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:HN(this,this._t0,lie(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,HN(this,lie(this,r=oie(this,e,t)),r);break;default:HN(this,this._t0,r=oie(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}},"point")};o(cie,"MonotoneY");(cie.prototype=Object.create(OE.prototype)).point=function(e,t){OE.prototype.point.call(this,t,e)};o(uie,"ReflectContext");uie.prototype={moveTo:o(function(e,t){this._context.moveTo(t,e)},"moveTo"),closePath:o(function(){this._context.closePath()},"closePath"),lineTo:o(function(e,t){this._context.lineTo(t,e)},"lineTo"),bezierCurveTo:o(function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)},"bezierCurveTo")};o(i2,"monotoneX");o(a2,"monotoneY")});function fie(e){this._context=e}function die(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t{"use strict";o(fie,"Natural");fie.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:o(function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=die(e),i=die(t),a=0,s=1;s{"use strict";o(BE,"Step");BE.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:o(function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:o(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t},"point")};o(_y,"default");o(s2,"stepBefore");o(o2,"stepAfter")});var gie=F(()=>{"use strict";Bne();Vne();Hne();jne();Kne();Jb();Une();Qne();zN();VN();t2();tie();nie();NE();aie();PN();hie();pie();mie()});var yie=F(()=>{"use strict"});var vie=F(()=>{"use strict"});function qd(e,t,r){this.k=e,this.x=t,this.y=r}function YN(e){for(;!e.__zoom;)if(!(e=e.parentNode))return UN;return e.__zoom}var UN,jN=F(()=>{"use strict";o(qd,"Transform");qd.prototype={constructor:qd,scale:o(function(e){return e===1?this:new qd(this.k*e,this.x,this.y)},"scale"),translate:o(function(e,t){return e===0&t===0?this:new qd(this.k,this.x+this.k*e,this.y+this.k*t)},"translate"),apply:o(function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},"apply"),applyX:o(function(e){return e*this.k+this.x},"applyX"),applyY:o(function(e){return e*this.k+this.y},"applyY"),invert:o(function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},"invert"),invertX:o(function(e){return(e-this.x)/this.k},"invertX"),invertY:o(function(e){return(e-this.y)/this.k},"invertY"),rescaleX:o(function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},"rescaleX"),rescaleY:o(function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},"rescaleY"),toString:o(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};UN=new qd(1,0,0);YN.prototype=qd.prototype;o(YN,"transform")});var xie=F(()=>{"use strict"});var bie=F(()=>{"use strict";tE();yie();vie();jN();xie()});var Tie=F(()=>{"use strict";bie();jN()});var $r=F(()=>{"use strict";Md();_J();jte();Qte();dy();Jte();ere();O8();bee();tre();kM();rre();ire();GM();vre();Vre();my();_M();Wre();nre();qre();Dne();Nne();Ul();gie();bE();RN();XS();tE();Tie()});var Cie=Io(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.BLANK_URL=Ta.relativeFirstCharacters=Ta.whitespaceEscapeCharsRegex=Ta.urlSchemeRegex=Ta.ctrlCharactersRegex=Ta.htmlCtrlEntityRegex=Ta.htmlEntitiesRegex=Ta.invalidProtocolRegex=void 0;Ta.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Ta.htmlEntitiesRegex=/(\w+)(^\w|;)?/g;Ta.htmlCtrlEntityRegex=/&(newline|tab);/gi;Ta.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Ta.urlSchemeRegex=/^.+(:|:)/gim;Ta.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Ta.relativeFirstCharacters=[".","/"];Ta.BLANK_URL="about:blank"});var Ly=Io(XN=>{"use strict";Object.defineProperty(XN,"__esModule",{value:!0});XN.sanitizeUrl=ZYe;var rs=Cie();function jYe(e){return rs.relativeFirstCharacters.indexOf(e[0])>-1}o(jYe,"isRelativeUrlWithoutProtocol");function XYe(e){var t=e.replace(rs.ctrlCharactersRegex,"");return t.replace(rs.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}o(XYe,"decodeHtmlCharacters");function KYe(e){return URL.canParse(e)}o(KYe,"isValidUrl");function wie(e){try{return decodeURIComponent(e)}catch{return e}}o(wie,"decodeURI");function ZYe(e){if(!e)return rs.BLANK_URL;var t,r=wie(e.trim());do r=XYe(r).replace(rs.htmlCtrlEntityRegex,"").replace(rs.ctrlCharactersRegex,"").replace(rs.whitespaceEscapeCharsRegex,"").trim(),r=wie(r),t=r.match(rs.ctrlCharactersRegex)||r.match(rs.htmlEntitiesRegex)||r.match(rs.htmlCtrlEntityRegex)||r.match(rs.whitespaceEscapeCharsRegex);while(t&&t.length>0);var n=r;if(!n)return rs.BLANK_URL;if(jYe(n))return n;var i=n.trimStart(),a=i.match(rs.urlSchemeRegex);if(!a)return n;var s=a[0].toLowerCase().trim();if(rs.invalidProtocolRegex.test(s))return rs.BLANK_URL;var l=i.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return l;if(s==="http:"||s==="https:"){if(!KYe(l))return rs.BLANK_URL;var u=new URL(l);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return l}o(ZYe,"sanitizeUrl")});var KN,dm,$E,kie,FE,zE,Fa,l2,Dy,Hd=F(()=>{"use strict";KN=Xs(Ly(),1);$r();Vr();dm=o((e,t)=>{let r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),t.attrs!==void 0)for(let n in t.attrs)r.attr(n,t.attrs[n]);return t.class&&r.attr("class",t.class),r},"drawRect"),$E=o((e,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};dm(e,r).lower()},"drawBackgroundRect"),kie=o((e,t)=>{let r=t.text.replace(Vp," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),t.class&&n.attr("class",t.class);let i=n.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(r),n},"drawText"),FE=o((e,t,r,n)=>{let i=e.append("image");i.attr("x",t),i.attr("y",r);let a=(0,KN.sanitizeUrl)(n);i.attr("xlink:href",a)},"drawImage"),zE=o((e,t,r,n)=>{let i=e.append("use");i.attr("x",t),i.attr("y",r);let a=(0,KN.sanitizeUrl)(n);i.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),Fa=o(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),l2=o(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),Dy=o(()=>{let e=et(".mermaidTooltip");return e.empty()&&(e=et("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),e},"createTooltip")});var Sie,ZN,Eie,QYe,JYe,eje,tje,rje,nje,ije,aje,sje,oje,lje,yh,nc,Aie=F(()=>{"use strict";Vr();Hd();Sie=Xs(Ly(),1),ZN=o(function(e,t){return dm(e,t)},"drawRect"),Eie=o(function(e,t,r,n,i,a){let s=e.append("image");s.attr("width",t),s.attr("height",r),s.attr("x",n),s.attr("y",i);let l=a.startsWith("data:image/png;base64")?a:(0,Sie.sanitizeUrl)(a);s.attr("xlink:href",l)},"drawImage"),QYe=o((e,t,r,n)=>{let i=e.append("g"),a=0;for(let s of t){let l=s.textColor?s.textColor:"#444444",u=s.lineColor?s.lineColor:"#444444",h=s.offsetX?parseInt(s.offsetX):0,d=s.offsetY?parseInt(s.offsetY):0,f="";if(a===0){let m=i.append("line");m.attr("x1",s.startPoint.x),m.attr("y1",s.startPoint.y),m.attr("x2",s.endPoint.x),m.attr("y2",s.endPoint.y),m.attr("stroke-width","1"),m.attr("stroke",u),m.style("fill","none"),s.type!=="rel_b"&&m.attr("marker-end","url("+f+"#"+n+"-arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&m.attr("marker-start","url("+f+"#"+n+"-arrowend)"),a=-1}else{let m=i.append("path");m.attr("fill","none").attr("stroke-width","1").attr("stroke",u).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",s.startPoint.x).replaceAll("starty",s.startPoint.y).replaceAll("controlx",s.startPoint.x+(s.endPoint.x-s.startPoint.x)/2-(s.endPoint.x-s.startPoint.x)/4).replaceAll("controly",s.startPoint.y+(s.endPoint.y-s.startPoint.y)/2).replaceAll("stopx",s.endPoint.x).replaceAll("stopy",s.endPoint.y)),s.type!=="rel_b"&&m.attr("marker-end","url("+f+"#"+n+"-arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&m.attr("marker-start","url("+f+"#"+n+"-arrowend)")}let p=r.messageFont();yh(r)(s.label.text,i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+h,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+d,s.label.width,s.label.height,{fill:l},p),s.techn&&s.techn.text!==""&&(p=r.messageFont(),yh(r)("["+s.techn.text+"]",i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+h,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+r.messageFontSize+5+d,Math.max(s.label.width,s.techn.width),s.techn.height,{fill:l,"font-style":"italic"},p))}},"drawRels"),JYe=o(function(e,t,r){let n=e.append("g"),i=t.bgColor?t.bgColor:"none",a=t.borderColor?t.borderColor:"#444444",s=t.fontColor?t.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(l={"stroke-width":1});let u={x:t.x,y:t.y,fill:i,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:l};ZN(n,u);let h=r.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,yh(r)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=r.boundaryFont(),h.fontColor=s,yh(r)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=r.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,yh(r)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},"drawBoundary"),eje=o(function(e,t,r){let n=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],a=t.fontColor?t.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}let l=e.append("g");l.attr("class","person-man");let u=Fa();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":u.x=t.x,u.y=t.y,u.fill=n,u.width=t.width,u.height=t.height,u.stroke=i,u.rx=2.5,u.ry=2.5,u.attrs={"stroke-width":.5},ZN(l,u);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let h=lje(r,t.typeC4Shape.text);switch(l.append("text").attr("fill",a).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":Eie(l,48,48,t.x+t.width/2-24,t.y+t.image.Y,s);break}let d=r[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=a,yh(r)(t.label.text,l,t.x,t.y+t.label.Y,t.width,t.height,{fill:a},d),d=r[t.typeC4Shape.text+"Font"](),d.fontColor=a,t.techn&&t.techn?.text!==""?yh(r)(t.techn.text,l,t.x,t.y+t.techn.Y,t.width,t.height,{fill:a,"font-style":"italic"},d):t.type&&t.type.text!==""&&yh(r)(t.type.text,l,t.x,t.y+t.type.Y,t.width,t.height,{fill:a,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=r.personFont(),d.fontColor=a,yh(r)(t.descr.text,l,t.x,t.y+t.descr.Y,t.width,t.height,{fill:a},d)),t.height},"drawC4Shape"),tje=o(function(e,t){e.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),rje=o(function(e,t){e.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),nje=o(function(e,t){e.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),ije=o(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),aje=o(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),sje=o(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),oje=o(function(e,t){let n=e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),lje=o((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),yh=(function(){function e(i,a,s,l,u,h,d){let f=a.append("text").attr("x",s+u/2).attr("y",l+h/2+5).style("text-anchor","middle").text(i);n(f,d)}o(e,"byText");function t(i,a,s,l,u,h,d,f){let{fontSize:p,fontFamily:m,fontWeight:g}=f,y=i.split(xt.lineBreakRegex);for(let v=0;v=0}var _ie=F(()=>{"use strict";o(Rie,"isLength")});function VE(e){return e!=null&&typeof e!="function"&&Rie(e.length)}var QN=F(()=>{"use strict";_ie();o(VE,"isArrayLike")});function Lie(e){return e==="__proto__"}var Die=F(()=>{"use strict";o(Lie,"isUnsafeProperty")});function Ud(e){return e==null||typeof e!="object"&&typeof e!="function"}var c2=F(()=>{"use strict";o(Ud,"isPrimitive")});function WE(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var JN=F(()=>{"use strict";o(WE,"getSymbols")});function vh(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var u2=F(()=>{"use strict";o(vh,"getTag")});var h2,Yd,fm,pm,mm,d2,f2,p2,m2,qE,g2,Iy,y2,HE,UE,YE,jE,XE,KE,ZE,QE,JE,e4=F(()=>{"use strict";h2="[object RegExp]",Yd="[object String]",fm="[object Number]",pm="[object Boolean]",mm="[object Arguments]",d2="[object Symbol]",f2="[object Date]",p2="[object Map]",m2="[object Set]",qE="[object Array]",g2="[object ArrayBuffer]",Iy="[object Object]",y2="[object DataView]",HE="[object Uint8Array]",UE="[object Uint8ClampedArray]",YE="[object Uint16Array]",jE="[object Uint32Array]",XE="[object Int8Array]",KE="[object Int16Array]",ZE="[object Int32Array]",QE="[object Float32Array]",JE="[object Float64Array]"});function My(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var t4=F(()=>{"use strict";o(My,"isTypedArray")});function Iie(e,t){return Ny(e,void 0,e,new Map,t)}function Ny(e,t,r,n=new Map,i=void 0){let a=i?.(e,t,r,n);if(a!==void 0)return a;if(Ud(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let s=new Array(e.length);n.set(e,s);for(let l=0;l{"use strict";JN();u2();e4();c2();t4();o(Iie,"cloneDeepWith");o(Ny,"cloneDeepWithImpl");o(dl,"copyProperties");o(cje,"isCloneableObject")});function Nie(e,t){return Iie(e,(r,n,i,a)=>{let s=t?.(r,n,i,a);if(s!==void 0)return s;if(typeof e=="object"){if(vh(e)===Iy&&typeof e.constructor!="function"){let l={};return a.set(e,l),dl(l,e,i,a),l}switch(Object.prototype.toString.call(e)){case fm:case Yd:case pm:{let l=new e.constructor(e?.valueOf());return dl(l,e),l}case mm:{let l={};return dl(l,e),l.length=e.length,l[Symbol.iterator]=e[Symbol.iterator],l}default:return}}})}var Pie=F(()=>{"use strict";Mie();u2();e4();o(Nie,"cloneDeepWith")});function eP(e){return Nie(e)}var Oie=F(()=>{"use strict";Pie();o(eP,"cloneDeep")});function v2(e){return e!==null&&typeof e=="object"&&vh(e)==="[object Arguments]"}var tP=F(()=>{"use strict";u2();o(v2,"isArguments")});function x2(e){return typeof e=="object"&&e!==null}var rP=F(()=>{"use strict";o(x2,"isObjectLike")});function Bie(e){return x2(e)&&VE(e)}var $ie=F(()=>{"use strict";QN();rP();o(Bie,"isArrayLikeObject")});function Fie(e){return Array.isArray(e)}var zie=F(()=>{"use strict";o(Fie,"isArray")});function gm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let r=o(function(...i){let a=t?t.apply(this,i):i[0],s=r.cache;if(s.has(a))return s.get(a);let l=e.apply(this,i);return r.cache=s.set(a,l)||s,l},"memoized"),n=gm.Cache||Map;return r.cache=new n,r}var Gie=F(()=>{"use strict";o(gm,"memoize");gm.Cache=Map});function Vie(){}var Wie=F(()=>{"use strict";o(Vie,"noop")});function qie(e){let t=e?.constructor,r=typeof t=="function"?t.prototype:Object.prototype;return e===r}var Hie=F(()=>{"use strict";o(qie,"isPrototype")});function jd(e){return My(e)}var r4=F(()=>{"use strict";t4();o(jd,"isTypedArray")});function iP(e){if(Ud(e))return e;let t=vh(e);if(!uje(e))return{};if(Fie(e)){let n=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(n.index=e.index,n.input=e.input),n}if(jd(e)){let n=e,i=n.constructor;return new i(n.buffer,n.byteOffset,n.length)}if(t===g2)return new ArrayBuffer(e.byteLength);if(t===y2){let n=e,i=n.buffer,a=n.byteOffset,s=n.byteLength,l=new ArrayBuffer(s),u=new Uint8Array(i,a,s);return new Uint8Array(l).set(u),new DataView(l)}if(t===pm||t===fm||t===Yd){let n=e.constructor,i=new n(e.valueOf());return t===Yd?dje(i,e):nP(i,e),i}if(t===f2)return new Date(Number(e));if(t===h2){let n=e,i=new RegExp(n.source,n.flags);return i.lastIndex=n.lastIndex,i}if(t===d2)return Object(Symbol.prototype.valueOf.call(e));if(t===p2){let n=e,i=new Map;return n.forEach((a,s)=>{i.set(s,a)}),i}if(t===m2){let n=e,i=new Set;return n.forEach(a=>{i.add(a)}),i}if(t===mm){let n=e,i={};return nP(i,n),i.length=n.length,i[Symbol.iterator]=n[Symbol.iterator],i}let r={};return fje(r,e),nP(r,e),hje(r,e),r}function uje(e){switch(vh(e)){case mm:case qE:case g2:case y2:case pm:case f2:case QE:case JE:case XE:case KE:case ZE:case p2:case fm:case Iy:case h2:case m2:case Yd:case d2:case HE:case UE:case YE:case jE:return!0;default:return!1}}function nP(e,t){for(let r in t)Object.hasOwn(t,r)&&(e[r]=t[r])}function hje(e,t){let r=Object.getOwnPropertySymbols(t);for(let n=0;n=r)&&(e[n]=t[n])}function fje(e,t){let r=Object.getPrototypeOf(t);r!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,r)}var Uie=F(()=>{"use strict";c2();u2();e4();zie();r4();o(iP,"clone");o(uje,"isCloneableObject");o(nP,"copyOwnProperties");o(hje,"copySymbolProperties");o(dje,"cloneStringObjectProperties");o(fje,"copyPrototype")});function n4(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var Yie=F(()=>{"use strict";o(n4,"isPlainObject")});function jie(e){if(Ud(e))return e;if(Array.isArray(e)||My(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n;return e instanceof AggregateError?n=new r(e.errors,e.message,{cause:e.cause}):n=new r(e.message,{cause:e.cause}),n.stack=e.stack,Object.assign(n,e),n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}var Xie=F(()=>{"use strict";c2();t4();o(jie,"clone")});function Kie(e,...t){let r=t.slice(0,-1),n=t[t.length-1],i=e;for(let a=0;a{"use strict";Oie();Die();Xie();c2();JN();tP();$ie();rP();Yie();r4();o(Kie,"mergeWith");o(i4,"mergeWithDeep")});function aP(e,...t){return Kie(e,...t,Vie)}var Qie=F(()=>{"use strict";Zie();Wie();o(aP,"merge")});function a4(e){if(e==null)return!0;if(VE(e))return typeof e.splice!="function"&&typeof e!="string"&&(typeof Buffer>"u"||!Buffer.isBuffer(e))&&!jd(e)&&!v2(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return qie(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var Jie=F(()=>{"use strict";tP();QN();r4();Hie();o(a4,"isEmpty")});var s4=F(()=>{"use strict";Gie();Uie();Qie();Jie()});function lP(e,t){if(!e)return t;let r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return pje[r]??t}function vje(e,t){let r=e.trim();if(r)return t.securityLevel!=="loose"?(0,rae.sanitizeUrl)(r):r}function aae(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function bje(e){let t,r=0;e.forEach(i=>{r+=aae(i,t),t=i});let n=r/2;return cP(e,n)}function Tje(e){return e.length===1?e[0]:bje(e)}function wje(e,t,r){let n=structuredClone(r);Z.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();let i=25+e,a=cP(n,i),s=10+e*.5,l=Math.atan2(n[0].y-a.y,n[0].x-a.x),u={x:0,y:0};return t==="start_left"?(u.x=Math.sin(l+Math.PI)*s+(n[0].x+a.x)/2,u.y=-Math.cos(l+Math.PI)*s+(n[0].y+a.y)/2):t==="end_right"?(u.x=Math.sin(l-Math.PI)*s+(n[0].x+a.x)/2-5,u.y=-Math.cos(l-Math.PI)*s+(n[0].y+a.y)/2-5):t==="end_left"?(u.x=Math.sin(l)*s+(n[0].x+a.x)/2-5,u.y=-Math.cos(l)*s+(n[0].y+a.y)/2-5):(u.x=Math.sin(l)*s+(n[0].x+a.x)/2,u.y=-Math.cos(l)*s+(n[0].y+a.y)/2),u}function uP(e){let t="",r="";for(let n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}function kje(e){let t="",r="0123456789abcdef",n=r.length;for(let i=0;iMath.round(parseFloat(a)).toString());return i.includes(r.toString())||i.includes(n.toString())}var rae,oP,pje,mje,gje,nae,iae,yje,xje,eae,cP,Cje,tae,hP,dP,Sje,Eje,ym,Aje,b2,sP,o4,Rje,_je,As,Zt,sae,Rs,eu,Qt=F(()=>{"use strict";rae=Xs(Ly(),1);$r();Vr();Ek();vt();Up();G0();s4();yS();oP="\u200B",pje={curveBasis:rc,curveBasisClosed:_E,curveBasisOpen:LE,curveBumpX:Xb,curveBumpY:Kb,curveBundle:$N,curveCardinalClosed:FN,curveCardinalOpen:GN,curveCardinal:e2,curveCatmullRomClosed:WN,curveCatmullRomOpen:qN,curveCatmullRom:n2,curveLinear:Jc,curveLinearClosed:PE,curveMonotoneX:i2,curveMonotoneY:a2,curveNatural:Ry,curveStep:_y,curveStepAfter:o2,curveStepBefore:s2},mje=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,gje=o(function(e,t){let r=nae(e,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let s=r.map(l=>l.args);W0(s),n=Yn(n,[...s])}else n=r.args;if(!n)return;let i=ny(e,t),a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),nae=o(function(e,t=null){try{let r=new RegExp(`[%]{2}(?![{]${mje.source})(?=[}][%]{2}).*
+`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),Z.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let n,i=[];for(;(n=Hp.exec(e))!==null;)if(n.index===Hp.lastIndex&&Hp.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let a=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:s})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(r){return Z.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),iae=o(function(e){return e.replace(Hp,"")},"removeDirectives"),yje=o(function(e,t){for(let[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray");o(lP,"interpolateToCurve");o(vje,"formatUrl");xje=o((e,...t)=>{let r=e.split("."),n=r.length-1,i=r[n],a=window;for(let s=0;s{let r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),cP=o((e,t)=>{let r,n=t;for(let i of e){if(r){let a=aae(i,r);if(a===0)return r;if(a=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:eae((1-s)*r.x+s*i.x,5),y:eae((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Cje=o((e,t,r)=>{Z.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let i=cP(t,25),a=e?10:5,s=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(s)*a+(t[0].x+i.x)/2,l.y=-Math.cos(s)*a+(t[0].y+i.y)/2,l},"calcCardinalityPosition");o(wje,"calcTerminalLabelPosition");o(uP,"getStylesFromArray");tae=0,hP=o(()=>(tae++,"id-"+Math.random().toString(36).substr(2,12)+"-"+tae),"generateId");o(kje,"makeRandomHex");dP=o(e=>kje(e.length),"random"),Sje=o(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Eje=o(function(e,t){let r=t.text.replace(xt.lineBreakRegex," "),[,n]=As(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",n),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);let a=i.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),i},"drawSimpleText"),ym=gm((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),xt.lineBreakRegex.test(e)))return e;let n=e.split(" ").filter(Boolean),i=[],a="";return n.forEach((s,l)=>{let u=Ca(`${s} `,r),h=Ca(a,r);if(u>t){let{hyphenatedStrings:p,remainingWord:m}=Aje(s,t,"-",r);i.push(a,...p),a=m}else h+u>=t?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");l+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Aje=gm((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...e],a=[],s="";return i.forEach((l,u)=>{let h=`${s}${l}`;if(Ca(h,n)>=t){let f=u+1,p=i.length===f,m=`${h}${r}`;a.push(p?h:m),s=""}else s=h}),{hyphenatedStrings:a,remainingWord:s}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);o(l4,"calculateTextHeight");o(Ca,"calculateTextWidth");b2=gm((e,t)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=As(r),s=["sans-serif",n],l=e.split(xt.lineBreakRegex),u=[],h=et("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let d=h.append("svg");for(let p of s){let m=0,g={width:0,height:0,lineHeight:0};for(let y of l){let v=Sje();v.text=y||oP;let x=Eje(d,v).style("font-size",a).style("font-weight",i).style("font-family",p),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),m=Math.round(b.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeight,m))}u.push(g)}d.remove();let f=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),sP=class{constructor(t=!1,r){this.count=0;this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{o(this,"InitIDGenerator")}},Rje=o(function(e){return o4=o4||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),o4.innerHTML=e,unescape(o4.textContent)},"entityDecode");o(fP,"isDetailedError");_je=o((e,t,r,n)=>{if(!n)return;let i=e.node()?.getBBox();i&&e.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),As=o(e=>{if(typeof e=="number")return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");o(qr,"cleanAndMerge");Zt={assignWithDepth:Yn,wrapLabel:ym,calculateTextHeight:l4,calculateTextWidth:Ca,calculateTextDimensions:b2,cleanAndMerge:qr,detectInit:gje,detectDirective:nae,isSubstringInArray:yje,interpolateToCurve:lP,calcLabelPosition:Tje,calcCardinalityPosition:Cje,calcTerminalLabelPosition:wje,formatUrl:vje,getStylesFromArray:uP,generateId:hP,random:dP,runFunc:xje,entityDecode:Rje,insertTitle:_je,isLabelCoordinateInPath:Lje,parseFontSize:As,InitIDGenerator:sP},sae=o(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){let n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"\uFB02\xB0\xB0"+n+"\xB6\xDF":"\uFB02\xB0"+n+"\xB6\xDF"}),t},"encodeEntities"),Rs=o(function(e){return e.replace(/fl°°/g,"").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),eu=o((e,t,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${e}_${t}_${r}${i?`_${i}`:""}`,"getEdgeId");o(kn,"handleUndefinedAttr");o(Lje,"isLabelCoordinateInPath")});function ic(e,t,r,n,i){if(!t[e].width)if(r)t[e].text=ym(t[e].text,i,n),t[e].textLines=t[e].text.split(xt.lineBreakRegex).length,t[e].width=i,t[e].height=l4(t[e].text,n);else{let a=t[e].text.split(xt.lineBreakRegex);t[e].textLines=a.length;let s=0;t[e].height=0,t[e].width=0;for(let l of a)t[e].width=Math.max(Ca(l,n),t[e].width),s=l4(l,n),t[e].height=t[e].height+s}}function hae(e,t,r,n,i){let a=new d4(i);a.data.widthLimit=r.data.widthLimit/Math.min(pP,n.length);for(let[s,l]of n.entries()){let u=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=u,u=l.image.Y+l.image.height);let h=l.wrap&&sr.wrap,d=c4(sr);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",ic("label",l,h,d,a.data.widthLimit),l.label.Y=u+8,u=l.label.Y+l.label.height,l.type&&l.type.text!==""){l.type.text="["+l.type.text+"]";let g=c4(sr);ic("type",l,h,g,a.data.widthLimit),l.type.Y=u+5,u=l.type.Y+l.type.height}if(l.descr&&l.descr.text!==""){let g=c4(sr);g.fontSize=g.fontSize-2,ic("descr",l,h,g,a.data.widthLimit),l.descr.Y=u+20,u=l.descr.Y+l.descr.height}if(s==0||s%pP===0){let g=r.data.startx+sr.diagramMarginX,y=r.data.stopy+sr.diagramMarginY+u;a.setData(g,g,y,y)}else{let g=a.data.stopx!==a.data.startx?a.data.stopx+sr.diagramMarginX:a.data.startx,y=a.data.starty;a.setData(g,g,y,y)}a.name=l.alias;let f=i.db.getC4ShapeArray(l.alias),p=i.db.getC4ShapeKeys(l.alias);p.length>0&&uae(a,e,f,p),t=l.alias;let m=i.db.getBoundaries(t);m.length>0&&hae(e,t,a,m,i),l.alias!=="global"&&cae(e,l,a),r.data.stopy=Math.max(a.data.stopy+sr.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+sr.c4ShapeMargin,r.data.stopx),u4=Math.max(u4,r.data.stopx),h4=Math.max(h4,r.data.stopy)}}var u4,h4,lae,pP,sr,d4,mP,T2,c4,Dje,cae,uae,eo,oae,Ije,Mje,Nje,gP,dae=F(()=>{"use strict";$r();Aie();vt();p8();Vr();k8();Xt();G0();Qt();$n();u4=0,h4=0,lae=4,pP=2;ob.yy=pb;sr={},d4=class{static{o(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,mP(t.db.getConfig())}setData(t,r,n,i){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(t,r,n,i){t[r]===void 0?t[r]=n:t[r]=i(n,t[r])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,n=r+t.width,i=this.nextData.starty+t.margin*2,a=i+t.height;(r>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>lae)&&(r=this.nextData.startx+t.margin+sr.nextLinePaddingX,i=this.nextData.stopy+t.margin*2,this.nextData.stopx=n=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=i+t.height,this.nextData.cnt=1),t.x=r,t.y=i,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},mP(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},mP=o(function(e){Yn(sr,e),e.fontFamily&&(sr.personFontFamily=sr.systemFontFamily=sr.messageFontFamily=e.fontFamily),e.fontSize&&(sr.personFontSize=sr.systemFontSize=sr.messageFontSize=e.fontSize),e.fontWeight&&(sr.personFontWeight=sr.systemFontWeight=sr.messageFontWeight=e.fontWeight)},"setConf"),T2=o((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),c4=o(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),Dje=o(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");o(ic,"calcC4ShapeTextWH");cae=o(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=sr.c4ShapeMargin-35;let n=t.wrap&&sr.wrap,i=c4(sr);i.fontSize=i.fontSize+2,i.fontWeight="bold";let a=Ca(t.label.text,i);ic("label",t,n,i,a),nc.drawBoundary(e,t,sr)},"drawBoundary"),uae=o(function(e,t,r,n){let i=0;for(let a of n){i=0;let s=r[a],l=T2(sr,s.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,s.typeC4Shape.width=Ca("\xAB"+s.typeC4Shape.text+"\xBB",l),s.typeC4Shape.height=l.fontSize+2,s.typeC4Shape.Y=sr.c4ShapePadding,i=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let u=s.wrap&&sr.wrap,h=sr.width-sr.c4ShapePadding*2,d=T2(sr,s.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",ic("label",s,u,d,h),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let m=T2(sr,s.typeC4Shape.text);ic("type",s,u,m,h),s.type.Y=i+5,i=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let m=T2(sr,s.techn.text);ic("techn",s,u,m,h),s.techn.Y=i+5,i=s.techn.Y+s.techn.height}let f=i,p=s.label.width;if(s.descr&&s.descr.text!==""){let m=T2(sr,s.typeC4Shape.text);ic("descr",s,u,m,h),s.descr.Y=i+20,i=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),f=i-s.descr.textLines*5}p=p+sr.c4ShapePadding,s.width=Math.max(s.width||sr.width,p,sr.width),s.height=Math.max(s.height||sr.height,f,sr.height),s.margin=s.margin||sr.c4ShapeMargin,e.insert(s),nc.drawC4Shape(t,s,sr)}e.bumpLastMargin(sr.c4ShapeMargin)},"drawC4ShapeArray"),eo=class{static{o(this,"Point")}constructor(t,r){this.x=t,this.y=r}},oae=o(function(e,t){let r=e.x,n=e.y,i=t.x,a=t.y,s=r+e.width/2,l=n+e.height/2,u=Math.abs(r-i),h=Math.abs(n-a),d=h/u,f=e.height/e.width,p=null;return n==a&&ri?p=new eo(r,l):r==i&&na&&(p=new eo(s,n)),r>i&&n=d?p=new eo(r,l+d*e.width/2):p=new eo(s-u/h*e.height/2,n+e.height):r=d?p=new eo(r+e.width,l+d*e.width/2):p=new eo(s+u/h*e.height/2,n+e.height):ra?f>=d?p=new eo(r+e.width,l-d*e.width/2):p=new eo(s+e.height/2*u/h,n):r>i&&n>a&&(f>=d?p=new eo(r,l-e.width/2*d):p=new eo(s-e.height/2*u/h,n)),p},"getIntersectPoint"),Ije=o(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let n=oae(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let i=oae(t,r);return{startPoint:n,endPoint:i}},"getIntersectPoints"),Mje=o(function(e,t,r,n,i){let a=0;for(let s of t){a=a+1;let l=s.wrap&&sr.wrap,u=Dje(sr);n.db.getC4Type()==="C4Dynamic"&&(s.label.text=a+": "+s.label.text);let d=Ca(s.label.text,u);ic("label",s,l,u,d),s.techn&&s.techn.text!==""&&(d=Ca(s.techn.text,u),ic("techn",s,l,u,d)),s.descr&&s.descr.text!==""&&(d=Ca(s.descr.text,u),ic("descr",s,l,u,d));let f=r(s.from),p=r(s.to),m=Ije(f,p);s.startPoint=m.startPoint,s.endPoint=m.endPoint}nc.drawRels(e,t,sr,i)},"drawRels");o(hae,"drawInsideBoundary");Nje=o(function(e,t,r,n){sr=Ae().c4;let i=Ae().securityLevel,a;i==="sandbox"&&(a=et("#i"+t));let s=i==="sandbox"?et(a.nodes()[0].contentDocument.body):et("body"),l=n.db;n.db.setWrap(sr.wrap),lae=l.getC4ShapeInRow(),pP=l.getC4BoundaryInRow(),Z.debug(`C:${JSON.stringify(sr,null,2)}`);let u=i==="sandbox"?s.select(`[id="${t}"]`):et(`[id="${t}"]`);nc.insertComputerIcon(u,t),nc.insertDatabaseIcon(u,t),nc.insertClockIcon(u,t);let h=new d4(n);h.setData(sr.diagramMarginX,sr.diagramMarginX,sr.diagramMarginY,sr.diagramMarginY),h.data.widthLimit=screen.availWidth,u4=sr.diagramMarginX,h4=sr.diagramMarginY;let d=n.db.getTitle(),f=n.db.getBoundaries("");hae(u,"",h,f,n),nc.insertArrowHead(u,t),nc.insertArrowEnd(u,t),nc.insertArrowCrossHead(u,t),nc.insertArrowFilledHead(u,t),Mje(u,n.db.getRels(),n.db.getC4Shape,n,t),h.data.stopx=u4,h.data.stopy=h4;let p=h.data,g=p.stopy-p.starty+2*sr.diagramMarginY,v=p.stopx-p.startx+2*sr.diagramMarginX;d&&u.append("text").text(d).attr("x",(p.stopx-p.startx)/2-4*sr.diagramMarginX).attr("y",p.starty+sr.diagramMarginY),Wr(u,g,v,sr.useMaxWidth);let x=d?60:0;u.attr("viewBox",p.startx-sr.diagramMarginX+" -"+(sr.diagramMarginY+x)+" "+v+" "+(g+x)),Z.debug("models:",p)},"draw"),gP={drawPersonOrSystemArray:uae,drawBoundary:cae,setConf:mP,draw:Nje}});var Pje,fae,pae=F(()=>{"use strict";Pje=o(e=>`.person {
+ stroke: ${e.personBorder};
+ fill: ${e.personBkg};
+ }
+`,"getStyles"),fae=Pje});var mae={};ir(mae,{diagram:()=>Oje});var Oje,gae=F(()=>{"use strict";p8();k8();dae();pae();Oje={parser:oJ,db:pb,renderer:gP,styles:fae,init:o(({c4:e,wrap:t})=>{gP.setConf(e),pb.setWrap(t)},"init")}});function Mae(e){return typeof e>"u"||e===null}function zje(e){return typeof e=="object"&&e!==null}function Gje(e){return Array.isArray(e)?e:Mae(e)?[]:[e]}function Vje(e,t){var r,n,i,a;if(t)for(a=Object.keys(t),r=0,n=a.length;rl&&(a=" ... ",t=n-l+a.length),r-n>l&&(s=" ...",r=n+l-s.length),{str:a+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+a.length}}function vP(e,t){return sa.repeat(" ",t-e.length)+e}function Zje(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],a,s=-1;a=r.exec(e.buffer);)i.push(a.index),n.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var l="",u,h,d=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)h=yP(e.buffer,n[s-u],i[s-u],e.position-(n[s]-n[s-u]),f),l=sa.repeat(" ",t.indent)+vP((e.line-u+1).toString(),d)+" | "+h.str+`
+`+l;for(h=yP(e.buffer,n[s],i[s],e.position,f),l+=sa.repeat(" ",t.indent)+vP((e.line+1).toString(),d)+" | "+h.str+`
+`,l+=sa.repeat("-",t.indent+d+3+h.pos)+`^
+`,u=1;u<=t.linesAfter&&!(s+u>=i.length);u++)h=yP(e.buffer,n[s+u],i[s+u],e.position-(n[s]-n[s+u]),f),l+=sa.repeat(" ",t.indent)+vP((e.line+u+1).toString(),d)+" | "+h.str+`
+`;return l.replace(/\n$/,"")}function tXe(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function rXe(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Jje.indexOf(r)===-1)throw new to('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=tXe(t.styleAliases||null),eXe.indexOf(this.kind)===-1)throw new to('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function vae(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(a,s){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(i=s)}),r[i]=n}),r}function nXe(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}function RXe(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(sa.isNegativeZero(e))return"-0.0";return r=e.toString(10),AXe.test(r)?r.replace("e",".e"):r}function _Xe(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||sa.isNegativeZero(e))}function IXe(e){return e===null?!1:Oae.exec(e)!==null||Bae.exec(e)!==null}function MXe(e){var t,r,n,i,a,s,l,u=0,h=null,d,f,p;if(t=Oae.exec(e),t===null&&(t=Bae.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(a=+t[4],s=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(d=+t[10],f=+(t[11]||0),h=(d*60+f)*6e4,t[9]==="-"&&(h=-h)),p=new Date(Date.UTC(r,n,i,a,s,l,u)),h&&p.setTime(p.getTime()-h),p}function NXe(e){return e.toISOString()}function OXe(e){return e==="<<"||e===null}function $Xe(e){if(e===null)return!1;var t,r,n=0,i=e.length,a=SP;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8===0}function FXe(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,a=SP,s=0,l=[];for(t=0;t>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|a.indexOf(n.charAt(t));return r=i%4*6,r===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):r===18?(l.push(s>>10&255),l.push(s>>2&255)):r===12&&l.push(s>>4&255),new Uint8Array(l)}function zXe(e){var t="",r=0,n,i,a=e.length,s=SP;for(n=0;n>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=a%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function GXe(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}function HXe(e){if(e===null)return!0;var t=[],r,n,i,a,s,l=e;for(r=0,n=l.length;r>10)+55296,(e-65536&1023)+56320)}function Wae(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}function uKe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$ae,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Uae(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Qje(r),new to(t,r)}function dr(e,t){throw Uae(e,t)}function m4(e,t){e.onWarning&&e.onWarning.call(null,Uae(e,t))}function Xd(e,t,r,n){var i,a,s,l;if(t1&&(e.result+=sa.repeat(`
+`,t-1))}function hKe(e,t,r){var n,i,a,s,l,u,h,d,f=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),ro(m)||Oy(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),ro(i)||r&&Oy(i)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,l=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),ro(i)||r&&Oy(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),ro(n))break}else{if(e.position===e.lineStart&&v4(e)||r&&Oy(m))break;if(tu(m))if(u=e.line,h=e.lineStart,d=e.lineIndent,Ui(e,!1,-1),e.lineIndent>=t){l=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=h,e.lineIndent=d;break}}l&&(Xd(e,a,s,!1),AP(e,e.line-u),a=s=e.position,l=!1),xm(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Xd(e,a,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function dKe(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Xd(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else tu(r)?(Xd(e,n,i,!0),AP(e,Ui(e,!1,t)),n=i=e.position):e.position===e.lineStart&&v4(e)?dr(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);dr(e,"unexpected end of the stream within a single quoted scalar")}function fKe(e,t){var r,n,i,a,s,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return Xd(e,r,e.position,!0),e.position++,!0;if(l===92){if(Xd(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),tu(l))Ui(e,!1,t);else if(l<256&&qae[l])e.result+=Hae[l],e.position++;else if((s=oKe(l))>0){for(i=s,a=0;i>0;i--)l=e.input.charCodeAt(++e.position),(s=sKe(l))>=0?a=(a<<4)+s:dr(e,"expected hexadecimal character");e.result+=cKe(a),e.position++}else dr(e,"unknown escape sequence");r=n=e.position}else tu(l)?(Xd(e,r,n,!0),AP(e,Ui(e,!1,t)),r=n=e.position):e.position===e.lineStart&&v4(e)?dr(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}dr(e,"unexpected end of the stream within a double quoted scalar")}function pKe(e,t){var r=!0,n,i,a,s=e.tag,l,u=e.anchor,h,d,f,p,m,g=Object.create(null),y,v,x,b;if(b=e.input.charCodeAt(e.position),b===91)d=93,m=!1,l=[];else if(b===123)d=125,m=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),b=e.input.charCodeAt(++e.position);b!==0;){if(Ui(e,!0,t),b=e.input.charCodeAt(e.position),b===d)return e.position++,e.tag=s,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=l,!0;r?b===44&&dr(e,"expected the node content, but found ','"):dr(e,"missed comma between flow collection entries"),v=y=x=null,f=p=!1,b===63&&(h=e.input.charCodeAt(e.position+1),ro(h)&&(f=p=!0,e.position++,Ui(e,!0,t))),n=e.line,i=e.lineStart,a=e.position,$y(e,t,f4,!1,!0),v=e.tag,y=e.result,Ui(e,!0,t),b=e.input.charCodeAt(e.position),(p||e.line===n)&&b===58&&(f=!0,b=e.input.charCodeAt(++e.position),Ui(e,!0,t),$y(e,t,f4,!1,!0),x=e.result),m?By(e,l,g,v,y,x,n,i,a):f?l.push(By(e,null,g,v,y,x,n,i,a)):l.push(y),Ui(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}dr(e,"unexpected end of the stream within a flow collection")}function mKe(e,t){var r,n,i=xP,a=!1,s=!1,l=t,u=0,h=!1,d,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)xP===i?i=f===43?xae:rKe:dr(e,"repeat of a chomping mode identifier");else if((d=lKe(f))>=0)d===0?dr(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?dr(e,"repeat of an indentation width identifier"):(l=t+d-1,s=!0);else break;if(xm(f)){do f=e.input.charCodeAt(++e.position);while(xm(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!tu(f)&&f!==0)}for(;f!==0;){for(EP(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndentl&&(l=e.lineIndent),tu(f)){u++;continue}if(e.lineIndentt)&&u!==0)dr(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(v&&(s=e.line,l=e.lineStart,u=e.position),$y(e,t,p4,!0,i)&&(v?g=e.result:y=e.result),v||(By(e,f,p,m,g,y,s,l,u),m=g=y=null),Ui(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&b!==0)dr(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f"),e.result!==null&&g.kind!==e.kind&&dr(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):dr(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}function bKe(e){var t=e.position,r,n,i,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(Ui(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!ro(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&dr(e,"directive name must not be less than one character in length");s!==0;){for(;xm(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!tu(s));break}if(tu(s))break;for(r=e.position;s!==0&&!ro(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&EP(e),Kd.call(Cae,n)?Cae[n](e,n,i):m4(e,'unknown document directive "'+n+'"')}if(Ui(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ui(e,!0,-1)):a&&dr(e,"directives end mark is expected"),$y(e,e.lineIndent-1,p4,!1,!0),Ui(e,!0,-1),e.checkLineBreaks&&iKe.test(e.input.slice(t,e.position))&&m4(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&v4(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ui(e,!0,-1));return}if(e.position"u"&&(r=t,t=null);var n=Yae(e,r);if(typeof t!="function")return n;for(var i=0,a=n.length;i=55296&&r<=56319&&t+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function rse(e){var t=/^\n* /;return t.test(e)}function KKe(e,t,r,n,i,a,s,l){var u,h=0,d=null,f=!1,p=!1,m=n!==-1,g=-1,y=jKe(C2(e,0))&&XKe(C2(e,e.length-1));if(t||s)for(u=0;u=65536?u+=2:u++){if(h=C2(e,u),!E2(h))return Py;y=y&&Aae(h,d,l),d=h}else{for(u=0;u=65536?u+=2:u++){if(h=C2(e,u),h===k2)f=!0,m&&(p=p||u-g-1>n&&e[g+1]!==" ",g=u);else if(!E2(h))return Py;y=y&&Aae(h,d,l),d=h}p=p||m&&u-g-1>n&&e[g+1]!==" "}return!f&&!p?y&&!s&&!i(e)?nse:a===S2?Py:wP:r>9&&rse(e)?Py:s?a===S2?Py:wP:p?ase:ise}function ZKe(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===S2?'""':"''";if(!e.noCompatMode&&(GKe.indexOf(t)!==-1||VKe.test(t)))return e.quotingType===S2?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),l=n||e.flowLevel>-1&&r>=e.flowLevel;function u(h){return YKe(e,h)}switch(o(u,"testAmbiguity"),KKe(t,l,e.indent,s,u,e.quotingType,e.forceQuotes&&!n,i)){case nse:return t;case wP:return"'"+t.replace(/'/g,"''")+"'";case ise:return"|"+Rae(t,e.indent)+_ae(Sae(t,a));case ase:return">"+Rae(t,e.indent)+_ae(Sae(QKe(t,s),a));case Py:return'"'+JKe(t)+'"';default:throw new to("impossible error: invalid scalar style")}})()}function Rae(e,t){var r=rse(e)?String(t):"",n=e[e.length-1]===`
+`,i=n&&(e[e.length-2]===`
+`||e===`
+`),a=i?"+":n?"":"-";return r+a+`
+`}function _ae(e){return e[e.length-1]===`
+`?e.slice(0,-1):e}function QKe(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var h=e.indexOf(`
+`);return h=h!==-1?h:e.length,r.lastIndex=h,Lae(e.slice(0,h),t)})(),i=e[0]===`
+`||e[0]===" ",a,s;s=r.exec(e);){var l=s[1],u=s[2];a=u[0]===" ",n+=l+(!i&&!a&&u!==""?`
+`:"")+Lae(u,t),i=a}return n}function Lae(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,a,s=0,l=0,u="";n=r.exec(e);)l=n.index,l-i>t&&(a=s>i?s:l,u+=`
+`+e.slice(i,a),i=a+1),s=l;return u+=`
+`,e.length-i>t&&s>i?u+=e.slice(i,s)+`
+`+e.slice(s+1):u+=e.slice(i),u.slice(1)}function JKe(e){for(var t="",r=0,n,i=0;i=65536?i+=2:i++)r=C2(e,i),n=is[r],!n&&E2(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||qKe(r);return t}function eZe(e,t,r){var n="",i=e.tag,a,s,l;for(a=0,s=r.length;a"u"&&xh(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Dae(e,t,r,n){var i="",a=e.tag,s,l,u;for(s=0,l=r.length;s"u"&&xh(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=CP(e,t)),e.dump&&k2===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function tZe(e,t,r){var n="",i=e.tag,a=Object.keys(r),s,l,u,h,d;for(s=0,l=a.length;s1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),xh(e,t,h,!1,!1)&&(d+=e.dump,n+=d));e.tag=i,e.dump="{"+n+"}"}function rZe(e,t,r,n){var i="",a=e.tag,s=Object.keys(r),l,u,h,d,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new to("sortKeys must be a boolean or a function");for(l=0,u=s.length;l1024,f&&(e.dump&&k2===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=CP(e,t)),xh(e,t+1,d,!0,f)&&(e.dump&&k2===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=a,e.dump=i||"{}"}function Iae(e,t,r){var n,i,a,s,l,u;for(i=r?e.explicitTypes:e.implicitTypes,a=0,s=i.length;a tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function xh(e,t,r,n,i,a,s){e.tag=null,e.dump=r,Iae(e,r,!1)||Iae(e,r,!0);var l=Xae.call(e.dump),u=n,h;n&&(n=e.flowLevel<0||e.flowLevel>t);var d=l==="[object Object]"||l==="[object Array]",f,p;if(d&&(f=e.duplicates.indexOf(r),p=f!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l==="[object Object]")n&&Object.keys(e.dump).length!==0?(rZe(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(tZe(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Dae(e,t-1,e.dump,i):Dae(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(eZe(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&ZKe(e,e.dump,t,a,u);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new to("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}function nZe(e,t){var r=[],n=[],i,a;for(kP(e,r,n),i=0,a=n.length;i{"use strict";o(Mae,"isNothing");o(zje,"isObject");o(Gje,"toArray");o(Vje,"extend");o(Wje,"repeat");o(qje,"isNegativeZero");Hje=Mae,Uje=zje,Yje=Gje,jje=Wje,Xje=qje,Kje=Vje,sa={isNothing:Hje,isObject:Uje,toArray:Yje,repeat:jje,isNegativeZero:Xje,extend:Kje};o(Nae,"formatError");o(w2,"YAMLException$1");w2.prototype=Object.create(Error.prototype);w2.prototype.constructor=w2;w2.prototype.toString=o(function(t){return this.name+": "+Nae(this,t)},"toString");to=w2;o(yP,"getLine");o(vP,"padStart");o(Zje,"makeSnippet");Qje=Zje,Jje=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],eXe=["scalar","sequence","mapping"];o(tXe,"compileStyleAliases");o(rXe,"Type$1");ns=rXe;o(vae,"compileList");o(nXe,"compileMap");o(bP,"Schema$1");bP.prototype.extend=o(function(t){var r=[],n=[];if(t instanceof ns)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new to("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof ns))throw new to("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new to("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new to("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof ns))throw new to("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(bP.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=vae(i,"implicit"),i.compiledExplicit=vae(i,"explicit"),i.compiledTypeMap=nXe(i.compiledImplicit,i.compiledExplicit),i},"extend");iXe=bP,aXe=new ns("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")}),sXe=new ns("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")}),oXe=new ns("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")}),lXe=new iXe({explicit:[aXe,sXe,oXe]});o(cXe,"resolveYamlNull");o(uXe,"constructYamlNull");o(hXe,"isNull");dXe=new ns("tag:yaml.org,2002:null",{kind:"scalar",resolve:cXe,construct:uXe,predicate:hXe,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"});o(fXe,"resolveYamlBoolean");o(pXe,"constructYamlBoolean");o(mXe,"isBoolean");gXe=new ns("tag:yaml.org,2002:bool",{kind:"scalar",resolve:fXe,construct:pXe,predicate:mXe,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});o(yXe,"isHexCode");o(vXe,"isOctCode");o(xXe,"isDecCode");o(bXe,"resolveYamlInteger");o(TXe,"constructYamlInteger");o(CXe,"isInteger");wXe=new ns("tag:yaml.org,2002:int",{kind:"scalar",resolve:bXe,construct:TXe,predicate:CXe,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),kXe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");o(SXe,"resolveYamlFloat");o(EXe,"constructYamlFloat");AXe=/^[-+]?[0-9]+e/;o(RXe,"representYamlFloat");o(_Xe,"isFloat");LXe=new ns("tag:yaml.org,2002:float",{kind:"scalar",resolve:SXe,construct:EXe,predicate:_Xe,represent:RXe,defaultStyle:"lowercase"}),Pae=lXe.extend({implicit:[dXe,gXe,wXe,LXe]}),DXe=Pae,Oae=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Bae=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");o(IXe,"resolveYamlTimestamp");o(MXe,"constructYamlTimestamp");o(NXe,"representYamlTimestamp");PXe=new ns("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:IXe,construct:MXe,instanceOf:Date,represent:NXe});o(OXe,"resolveYamlMerge");BXe=new ns("tag:yaml.org,2002:merge",{kind:"scalar",resolve:OXe}),SP=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
+\r`;o($Xe,"resolveYamlBinary");o(FXe,"constructYamlBinary");o(zXe,"representYamlBinary");o(GXe,"isBinary");VXe=new ns("tag:yaml.org,2002:binary",{kind:"scalar",resolve:$Xe,construct:FXe,predicate:GXe,represent:zXe}),WXe=Object.prototype.hasOwnProperty,qXe=Object.prototype.toString;o(HXe,"resolveYamlOmap");o(UXe,"constructYamlOmap");YXe=new ns("tag:yaml.org,2002:omap",{kind:"sequence",resolve:HXe,construct:UXe}),jXe=Object.prototype.toString;o(XXe,"resolveYamlPairs");o(KXe,"constructYamlPairs");ZXe=new ns("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:XXe,construct:KXe}),QXe=Object.prototype.hasOwnProperty;o(JXe,"resolveYamlSet");o(eKe,"constructYamlSet");tKe=new ns("tag:yaml.org,2002:set",{kind:"mapping",resolve:JXe,construct:eKe}),$ae=DXe.extend({implicit:[PXe,BXe],explicit:[VXe,YXe,ZXe,tKe]}),Kd=Object.prototype.hasOwnProperty,f4=1,Fae=2,zae=3,p4=4,xP=1,rKe=2,xae=3,nKe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,iKe=/[\x85\u2028\u2029]/,aKe=/[,\[\]\{\}]/,Gae=/^(?:!|!!|![a-z\-]+!)$/i,Vae=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;o(bae,"_class");o(tu,"is_EOL");o(xm,"is_WHITE_SPACE");o(ro,"is_WS_OR_EOL");o(Oy,"is_FLOW_INDICATOR");o(sKe,"fromHexCode");o(oKe,"escapedHexLen");o(lKe,"fromDecimalCode");o(Tae,"simpleEscapeSequence");o(cKe,"charFromCodepoint");o(Wae,"setProperty");qae=new Array(256),Hae=new Array(256);for(vm=0;vm<256;vm++)qae[vm]=Tae(vm)?1:0,Hae[vm]=Tae(vm);o(uKe,"State$1");o(Uae,"generateError");o(dr,"throwError");o(m4,"throwWarning");Cae={YAML:o(function(t,r,n){var i,a,s;t.version!==null&&dr(t,"duplication of %YAML directive"),n.length!==1&&dr(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&dr(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&dr(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&m4(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,a;n.length!==2&&dr(t,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],Gae.test(i)||dr(t,"ill-formed tag handle (first argument) of the TAG directive"),Kd.call(t.tagMap,i)&&dr(t,'there is a previously declared suffix for "'+i+'" tag handle'),Vae.test(a)||dr(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{dr(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a},"handleTagDirective")};o(Xd,"captureSegment");o(wae,"mergeMappings");o(By,"storeMappingPair");o(EP,"readLineBreak");o(Ui,"skipSeparationSpace");o(v4,"testDocumentSeparator");o(AP,"writeFoldedLines");o(hKe,"readPlainScalar");o(dKe,"readSingleQuotedScalar");o(fKe,"readDoubleQuotedScalar");o(pKe,"readFlowCollection");o(mKe,"readBlockScalar");o(kae,"readBlockSequence");o(gKe,"readBlockMapping");o(yKe,"readTagProperty");o(vKe,"readAnchorProperty");o(xKe,"readAlias");o($y,"composeNode");o(bKe,"readDocument");o(Yae,"loadDocuments");o(TKe,"loadAll$1");o(CKe,"load$1");wKe=TKe,kKe=CKe,jae={loadAll:wKe,load:kKe},Xae=Object.prototype.toString,Kae=Object.prototype.hasOwnProperty,RP=65279,SKe=9,k2=10,EKe=13,AKe=32,RKe=33,_Ke=34,TP=35,LKe=37,DKe=38,IKe=39,MKe=42,Zae=44,NKe=45,g4=58,PKe=61,OKe=62,BKe=63,$Ke=64,Qae=91,Jae=93,FKe=96,ese=123,zKe=124,tse=125,is={};is[0]="\\0";is[7]="\\a";is[8]="\\b";is[9]="\\t";is[10]="\\n";is[11]="\\v";is[12]="\\f";is[13]="\\r";is[27]="\\e";is[34]='\\"';is[92]="\\\\";is[133]="\\N";is[160]="\\_";is[8232]="\\L";is[8233]="\\P";GKe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],VKe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;o(WKe,"compileStyleMap");o(qKe,"encodeHex");HKe=1,S2=2;o(UKe,"State");o(Sae,"indentString");o(CP,"generateNextLine");o(YKe,"testImplicitResolving");o(y4,"isWhitespace");o(E2,"isPrintable");o(Eae,"isNsCharOrWhitespace");o(Aae,"isPlainSafe");o(jKe,"isPlainSafeFirst");o(XKe,"isPlainSafeLast");o(C2,"codePointAt");o(rse,"needIndentIndicator");nse=1,wP=2,ise=3,ase=4,Py=5;o(KKe,"chooseScalarStyle");o(ZKe,"writeScalar");o(Rae,"blockHeader");o(_ae,"dropEndingNewline");o(QKe,"foldString");o(Lae,"foldLine");o(JKe,"escapeString");o(eZe,"writeFlowSequence");o(Dae,"writeBlockSequence");o(tZe,"writeFlowMapping");o(rZe,"writeBlockMapping");o(Iae,"detectType");o(xh,"writeNode");o(nZe,"getDuplicateReferences");o(kP,"inspectNode");o(iZe,"dump$1");aZe=iZe,sZe={dump:aZe};o(_P,"renamed");Zd=Pae,Qd=jae.load,hir=jae.loadAll,dir=sZe.dump,fir=_P("safeLoad","load"),pir=_P("safeLoadAll","loadAll"),mir=_P("safeDump","dump")});function MP(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function hse(e){Tm=e}function _n(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:o((i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(_s.caret,"$1"),r=r.replace(i,s),n},"replace"),getRegex:o(()=>new RegExp(r,t),"getRegex")};return n}function ru(e,t){if(t){if(_s.escapeTest.test(e))return e.replace(_s.escapeReplace,ose)}else if(_s.escapeTestNoEncode.test(e))return e.replace(_s.escapeReplaceNoEncode,ose);return e}function lse(e){try{e=encodeURI(e).replace(_s.percentDecode,"%")}catch{return null}return e}function cse(e,t){let r=e.replace(_s.findPipe,(a,s,l)=>{let u=!1,h=s;for(;--h>=0&&l[h]==="\\";)u=!u;return u?"|":" |"}),n=r.split(_s.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length0?-2:-1}function use(e,t,r,n,i){let a=t.href,s=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,u}function GZe(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
+`).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[l]=s;return l.length>=i.length?a.slice(i.length):a}).join(`
+`)}function Sn(e,t){return bm.parse(e,t)}var Tm,D2,_s,oZe,lZe,cZe,I2,uZe,NP,dse,fse,hZe,PP,dZe,OP,fZe,pZe,k4,BP,mZe,pse,gZe,$P,sse,yZe,vZe,xZe,bZe,mse,TZe,S4,FP,gse,CZe,yse,wZe,kZe,SZe,vse,EZe,AZe,xse,RZe,_Ze,LZe,DZe,IZe,MZe,NZe,T4,PZe,bse,Tse,OZe,zP,BZe,LP,$Ze,b4,R2,FZe,ose,C4,bh,w4,GP,Th,L2,VZe,bm,yir,vir,xir,bir,Tir,Cir,wir,Cse=F(()=>{"use strict";o(MP,"L");Tm=MP();o(hse,"G");D2={exec:o(()=>null,"exec")};o(_n,"h");_s={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:o(e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:o(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:o(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:o(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:o(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),"headingBeginRegex"),htmlBeginRegex:o(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},oZe=/^(?:[ \t]*(?:\n|$))+/,lZe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,cZe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I2=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,uZe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,NP=/(?:[*+-]|\d{1,9}[.)])/,dse=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,fse=_n(dse).replace(/bull/g,NP).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),hZe=_n(dse).replace(/bull/g,NP).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),PP=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,dZe=/^[^\n]+/,OP=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,fZe=_n(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",OP).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),pZe=_n(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,NP).getRegex(),k4="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",BP=/|$))/,mZe=_n("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",BP).replace("tag",k4).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pse=_n(PP).replace("hr",I2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k4).getRegex(),gZe=_n(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",pse).getRegex(),$P={blockquote:gZe,code:lZe,def:fZe,fences:cZe,heading:uZe,hr:I2,html:mZe,lheading:fse,list:pZe,newline:oZe,paragraph:pse,table:D2,text:dZe},sse=_n("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k4).getRegex(),yZe={...$P,lheading:hZe,table:sse,paragraph:_n(PP).replace("hr",I2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",sse).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k4).getRegex()},vZe={...$P,html:_n(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",BP).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:D2,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_n(PP).replace("hr",I2).replace("heading",` *#{1,6} *[^
+]`).replace("lheading",fse).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},xZe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,bZe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mse=/^( {2,}|\\)\n(?!\s*$)/,TZe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,vse=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,EZe=_n(vse,"u").replace(/punct/g,S4).getRegex(),AZe=_n(vse,"u").replace(/punct/g,yse).getRegex(),xse="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",RZe=_n(xse,"gu").replace(/notPunctSpace/g,gse).replace(/punctSpace/g,FP).replace(/punct/g,S4).getRegex(),_Ze=_n(xse,"gu").replace(/notPunctSpace/g,kZe).replace(/punctSpace/g,wZe).replace(/punct/g,yse).getRegex(),LZe=_n("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gse).replace(/punctSpace/g,FP).replace(/punct/g,S4).getRegex(),DZe=_n(/\\(punct)/,"gu").replace(/punct/g,S4).getRegex(),IZe=_n(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),MZe=_n(BP).replace("(?:-->|$)","-->").getRegex(),NZe=_n("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",MZe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),T4=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,PZe=_n(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",T4).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bse=_n(/^!?\[(label)\]\[(ref)\]/).replace("label",T4).replace("ref",OP).getRegex(),Tse=_n(/^!?\[(ref)\](?:\[\])?/).replace("ref",OP).getRegex(),OZe=_n("reflink|nolink(?!\\()","g").replace("reflink",bse).replace("nolink",Tse).getRegex(),zP={_backpedal:D2,anyPunctuation:DZe,autolink:IZe,blockSkip:SZe,br:mse,code:bZe,del:D2,emStrongLDelim:EZe,emStrongRDelimAst:RZe,emStrongRDelimUnd:LZe,escape:xZe,link:PZe,nolink:Tse,punctuation:CZe,reflink:bse,reflinkSearch:OZe,tag:NZe,text:TZe,url:D2},BZe={...zP,link:_n(/^!?\[(label)\]\((.*?)\)/).replace("label",T4).getRegex(),reflink:_n(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",T4).getRegex()},LP={...zP,emStrongRDelimAst:_Ze,emStrongLDelim:AZe,url:_n(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},ose=o(e=>FZe[e],"ke");o(ru,"w");o(lse,"J");o(cse,"V");o(_2,"z");o(zZe,"ge");o(use,"fe");o(GZe,"Je");C4=class{static{o(this,"y")}options;rules;lexer;constructor(e){this.options=e||Tm}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:_2(r,`
+`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=GZe(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=_2(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:_2(t[0],`
+`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=_2(t[0],`
+`).split(`
+`),n="",i="",a=[];for(;r.length>0;){let s=!1,l=[],u;for(u=0;u1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),s=!1;for(;e;){let u=!1,h="",d="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let f=t[2].split(`
+`,1)[0].replace(this.rules.other.listReplaceTabs,x=>" ".repeat(3*x.length)),p=e.split(`
+`,1)[0],m=!f.trim(),g=0;if(this.options.pedantic?(g=2,d=f.trimStart()):m?g=t[1].length+1:(g=t[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,d=f.slice(g),g+=t[1].length),m&&this.rules.other.blankLine.test(p)&&(h+=p+`
+`,e=e.substring(p.length+1),u=!0),!u){let x=this.rules.other.nextBulletRegex(g),b=this.rules.other.hrRegex(g),T=this.rules.other.fencesBeginRegex(g),k=this.rules.other.headingBeginRegex(g),C=this.rules.other.htmlBeginRegex(g);for(;e;){let w=e.split(`
+`,1)[0],S;if(p=w,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),S=p):S=p.replace(this.rules.other.tabCharGlobal," "),T.test(p)||k.test(p)||C.test(p)||x.test(p)||b.test(p))break;if(S.search(this.rules.other.nonSpaceChar)>=g||!p.trim())d+=`
+`+S.slice(g);else{if(m||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(f)||k.test(f)||b.test(f))break;d+=`
+`+p}!m&&!p.trim()&&(m=!0),h+=w+`
+`,e=e.substring(w.length+1),f=S.slice(g)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0));let y=null,v;this.options.gfm&&(y=this.rules.other.listIsTask.exec(d),y&&(v=y[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:h,task:!!y,checked:v,loose:!1,text:d,tokens:[]}),i.raw+=h}let l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;uf.type==="space"),d=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));i.loose=d}if(i.loose)for(let u=0;u({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
+`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=_2(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=zZe(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(n);a&&(n=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),use(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[n.toLowerCase()];if(!i){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return use(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,a,s,l=i,u=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(n=h.exec(t))!=null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(s=[...a].length,n[3]||n[4]){l+=s;continue}else if((n[5]||n[6])&&i%3&&!((i+s)%3)){u+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+u);let d=[...n[0]][0].length,f=e.slice(0,i+n.index+d+s);if(Math.min(i,s)%2){let m=f.slice(1,-1);return{type:"em",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,n;if(t[2]==="@")r=t[0],n="mailto:"+r;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);r=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},bh=class DP{static{o(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Tm,this.options.tokenizer=this.options.tokenizer||new C4,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:_s,block:b4.normal,inline:R2.normal};this.options.pedantic?(r.block=b4.pedantic,r.inline=R2.pedantic):this.options.gfm&&(r.block=b4.gfm,this.options.breaks?r.inline=R2.breaks:r.inline=R2.gfm),this.tokenizer.rules=r}static get rules(){return{block:b4,inline:R2}}static lex(t,r){return new DP(r).lex(t)}static lexInline(t,r){return new DP(r).inlineTokens(t)}lex(t){t=t.replace(_s.carriageReturn,`
+`),this.blockTokens(t,this.tokens);for(let r=0;r(i=s.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let s=r.at(-1);i.raw.length===1&&s!==void 0?s.raw+=`
+`:r.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
+`)?"":`
+`)+i.raw,s.text+=`
+`+i.text,this.inlineQueue.at(-1).src=s.text):r.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
+`)?"":`
+`)+i.raw,s.text+=`
+`+i.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},r.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),r.push(i);continue}let a=t;if(this.options.extensions?.startBlock){let s=1/0,l=t.slice(1),u;this.options.extensions.startBlock.forEach(h=>{u=h.call({lexer:this},l),typeof u=="number"&&u>=0&&(s=Math.min(s,u))}),s<1/0&&s>=0&&(a=t.substring(0,s+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let s=r.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
+`)?"":`
+`)+i.raw,s.text+=`
+`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(i),n=a.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let s=r.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
+`)?"":`
+`)+i.raw,s.text+=`
+`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(i);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n=t,i=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,s="";for(;t;){a||(s=""),a=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,n,s)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let u=t;if(this.options.extensions?.startInline){let h=1/0,d=t.slice(1),f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(u=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(u)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(s=l.raw.slice(-1)),a=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},w4=class{static{o(this,"P")}options;parser;constructor(e){this.options=e||Tm}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(_s.notSpaceStart)?.[0],i=e.replace(_s.endingNewline,"")+`
+`;return n?''+(r?i:ru(i,!0))+`
+`:""+(r?i:ru(i,!0))+`
+`}blockquote({tokens:e}){return`
+${this.parser.parse(e)}
+`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)}
+`}hr(e){return`
+`}list(e){let t=e.ordered,r=e.start,n="";for(let s=0;s
+`+n+""+i+`>
+`}listitem(e){let t="";if(e.task){let r=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+ru(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`${t}
+`}checkbox({checked:e}){return"'}paragraph({tokens:e}){return`${this.parser.parseInline(e)}
+`}table(e){let t="",r="";for(let i=0;i${n}`),`
+
+`+t+`
+`+n+`
+`}tablerow({text:e}){return`
+${e}
+`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`${r}>
+`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${ru(e,!0)}`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=lse(e);if(i===null)return n;e=i;let a='"+n+"",a}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=lse(e);if(i===null)return ru(r);e=i;let a=`
",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ru(e.text)}},GP=class{static{o(this,"$")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Th=class IP{static{o(this,"l")}options;renderer;textRenderer;constructor(t){this.options=t||Tm,this.options.renderer=this.options.renderer||new w4,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new GP}static parse(t,r){return new IP(r).parse(t)}static parseInline(t,r){return new IP(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i{let s=i[a].flat(1/0);r=r.concat(this.walkTokens(s,t))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=t.renderers[i.name];a?t.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),r.renderer){let i=this.defaults.renderer||new w4(this.defaults);for(let a in r.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,l=r.renderer[s],u=i[s];i[s]=(...h)=>{let d=l.apply(i,h);return d===!1&&(d=u.apply(i,h)),d||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new C4(this.defaults);for(let a in r.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,l=r.tokenizer[s],u=i[s];i[s]=(...h)=>{let d=l.apply(i,h);return d===!1&&(d=u.apply(i,h)),d}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new L2;for(let a in r.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,l=r.hooks[s],u=i[s];L2.passThroughHooks.has(a)?i[s]=h=>{if(this.defaults.async&&L2.passThroughHooksRespectAsync.has(a))return Promise.resolve(l.call(i,h)).then(f=>u.call(i,f));let d=l.call(i,h);return u.call(i,d)}:i[s]=(...h)=>{let d=l.apply(i,h);return d===!1&&(d=u.apply(i,h)),d}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,a=r.walkTokens;n.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),i&&(l=l.concat(i.call(this,s))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return bh.lex(e,t??this.defaults)}parser(e,t){return Th.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&n.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let s=i.hooks?i.hooks.provideLexer():e?bh.lex:bh.lexInline,l=i.hooks?i.hooks.provideParser():e?Th.parse:Th.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(u=>s(u,i)).then(u=>i.hooks?i.hooks.processAllTokens(u):u).then(u=>i.walkTokens?Promise.all(this.walkTokens(u,i.walkTokens)).then(()=>u):u).then(u=>l(u,i)).then(u=>i.hooks?i.hooks.postprocess(u):u).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let u=s(t,i);i.hooks&&(u=i.hooks.processAllTokens(u)),i.walkTokens&&this.walkTokens(u,i.walkTokens);let h=l(u,i);return i.hooks&&(h=i.hooks.postprocess(h)),h}catch(u){return a(u)}}}onError(e,t){return r=>{if(r.message+=`
+Please report this to https://github.com/markedjs/marked.`,e){let n="An error occurred:
"+ru(r.message+"",!0)+"
";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},bm=new VZe;o(Sn,"d");Sn.options=Sn.setOptions=function(e){return bm.setOptions(e),Sn.defaults=bm.defaults,hse(Sn.defaults),Sn};Sn.getDefaults=MP;Sn.defaults=Tm;Sn.use=function(...e){return bm.use(...e),Sn.defaults=bm.defaults,hse(Sn.defaults),Sn};Sn.walkTokens=function(e,t){return bm.walkTokens(e,t)};Sn.parseInline=bm.parseInline;Sn.Parser=Th;Sn.parser=Th.parse;Sn.Renderer=w4;Sn.TextRenderer=GP;Sn.Lexer=bh;Sn.lexer=bh.lex;Sn.Tokenizer=C4;Sn.Hooks=L2;Sn.parse=Sn;yir=Sn.options,vir=Sn.setOptions,xir=Sn.use,bir=Sn.walkTokens,Tir=Sn.parseInline,Cir=Th.parse,wir=bh.lex});function WZe(e,{markdownAutoWrap:t}){let n=e.replace(/
/g,`
+`).replace(/\n{2,}/g,`
+`);return mS(n)}function wse(e){return e.split(/\\n|\n|
/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}function kse(e,t={}){let r=WZe(e,t),n=Sn.lexer(r),i=[[]],a=0;function s(l,u="normal"){l.type==="text"?l.text.split(`
+`).forEach((d,f)=>{f!==0&&(a++,i.push([])),d.split(" ").forEach(p=>{p=p.replace(/'/g,"'"),p&&i[a].push({content:p,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{s(h,l.type)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}return o(s,"processNode"),n.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(u=>{s(u)}):l.type==="html"?i[a].push({content:l.text,type:"normal"}):i[a].push({content:l.raw,type:"normal"})}),i}function Sse(e){return e?`${e.replace(/\\n|\n/g,"
")}
`:""}function Ese(e,{markdownAutoWrap:t}={}){let r=Sn.lexer(e);function n(i){return i.type==="text"?t===!1?i.text.replace(/\n */g,"
").replace(/ /g," "):i.text.replace(/\n */g,"
"):i.type==="strong"?`${i.tokens?.map(n).join("")}`:i.type==="em"?`${i.tokens?.map(n).join("")}`:i.type==="paragraph"?`${i.tokens?.map(n).join("")}
`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:(Z.warn(`Unsupported markdown: ${i.type}`),i.raw)}return o(n,"output"),r.map(n).join("")}var Ase=F(()=>{"use strict";Cse();h8();vt();o(WZe,"preprocessMarkdown");o(wse,"nonMarkdownToLines");o(kse,"markdownToLines");o(Sse,"nonMarkdownToHTML");o(Ese,"markdownToHTML")});function qZe(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}function HZe(e,t){let r=qZe(t.content);return Rse(e,[],r,t.type)}function Rse(e,t,r,n){if(r.length===0)return[{content:t.join(""),type:n},{content:"",type:n}];let[i,...a]=r,s=[...t,i];return e([{content:s.join(""),type:n}])?Rse(e,s,a,n):(t.length===0&&i&&(t.push(i),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}])}function _se(e,t){if(e.some(({content:r})=>r.includes(`
+`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return VP(e,t)}function VP(e,t,r=[],n=[]){if(e.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";e[0].content===" "&&(i=" ",e.shift());let a=e.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(a),t(s))return VP(e,t,r,s);if(n.length>0)r.push(n),e.unshift(a);else if(a.content){let[l,u]=HZe(t,a);r.push([l]),u.content&&e.unshift(u)}return VP(e,t,r)}var Lse=F(()=>{"use strict";o(qZe,"splitTextToChars");o(HZe,"splitWordToFitWidth");o(Rse,"splitWordToFitWidthRecursion");o(_se,"splitLineToFitWidth");o(VP,"splitLineToFitWidthRecursion")});function Dse(e,t){t&&e.attr("style",t)}async function UZe(e,t,r,n,i=!1,a=_t()){let s=e.append("foreignObject");s.attr("width",`${Math.min(10*r,Ise)}px`),s.attr("height",`${Math.min(10*r,Ise)}px`);let l=s.append("xhtml:div"),u=ni(t.label)?await ey(t.label.replace(xt.lineBreakRegex,`
+`),a):mr(t.label,a),h=t.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(u),Dse(d,t.labelStyle),d.attr("class",`${h} ${n}`),Dse(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&l.attr("class","labelBkg");let f=l.node().getBoundingClientRect();return f.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),f=l.node().getBoundingClientRect()),s.node()}function WP(e,t,r,n=!1){let i=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return n&&i.attr("text-anchor","middle"),i}function YZe(e,t,r){let n=e.append("text"),i=WP(n,1,t);qP(i,r);let a=i.node().getComputedTextLength();return n.remove(),a}function Nse(e,t,r){let n=e.append("text"),i=WP(n,1,t);qP(i,[{content:r,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}function jZe(e,t,r,n=!1,i=!1){let s=t.append("g"),l=s.insert("rect").attr("class","background").attr("style","stroke: none"),u=s.append("text").attr("y","-10.1");i&&u.attr("text-anchor","middle");let h=0;for(let d of r){let f=o(m=>YZe(s,1.1,m)<=e,"checkWidth"),p=f(d)?[d]:_se(d,f);for(let m of p){let g=WP(u,h,1.1,i);qP(g,m),h++}}if(n){let d=u.node().getBBox(),f=2;return l.attr("x",d.x-f).attr("y",d.y-f).attr("width",d.width+2*f).attr("height",d.height+2*f),s.node()}else return u.node()}function Mse(e){let t=/&(amp|lt|gt);/g;return e.replace(t,(r,n)=>{switch(n){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}function qP(e,t){e.text(""),t.forEach((r,n)=>{let i=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(Mse(r.content)):i.text(" "+Mse(r.content))})}async function XZe(e,t={}){let r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(i,a,s)=>(r.push((async()=>{let l=`${a}:${s}`;return await iJ(l)?await ts(l,void 0,{class:"label-icon"}):``})()),i));let n=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}var Ise,Pn,Ls=F(()=>{"use strict";$r();Vr();vt();Ase();Qt();Vl();Lse();ur();o(Dse,"applyStyle");Ise=16384;o(UZe,"addHtmlSpan");o(WP,"createTspan");o(YZe,"computeWidthOfText");o(Nse,"computeDimensionOfText");o(jZe,"createFormattedText");o(Mse,"decodeHTMLEntities");o(qP,"updateTextContentAndStyles");o(XZe,"replaceIconSubstring");Pn=o(async(e,t="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,markdown:s=!0,isNode:l=!0,width:u=200,addSvgBackground:h=!1}={},d)=>{if(Z.debug("XYZ createText",t,r,n,i,a,l,"addSvgBackground: ",h),a){let f=s?Ese(t,d):Sse(t),p=await XZe(Rs(f),d),m=t.replace(/\\\\/g,"\\"),g={isNode:l,label:ni(t)?m:p,labelStyle:r.replace("fill:","color:")};return await UZe(e,g,u,i,h,d)}else{let f=Rs(t.replace(/
/g,"
")),p=s?kse(f.replace("
","
"),d):wse(f),m=jZe(u,e,p,t?h:!1,!l);if(l){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");et(m).attr("style",g)}else{let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");et(m).select("rect").attr("style",g.replace(/background:/g,"fill:"));let y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");et(m).select("text").attr("style",y)}return n?et(m).selectAll("tspan.text-outer-tspan").classed("title-row",!0):et(m).selectAll("tspan.text-outer-tspan").classed("row",!0),m}},"createText")});async function E4(e,t){let r=e.getElementsByTagName("img");if(!r||r.length===0)return;let n=t.replace(/
]*>/g,"").trim()==="";await Promise.all([...r].map(i=>new Promise(a=>{function s(){if(i.style.display="flex",i.style.flexDirection="column",n){let l=Ae().fontSize?Ae().fontSize:window.getComputedStyle(document.body).fontSize,u=5,[h=cr.fontSize]=As(l),d=h*u+"px";i.style.minWidth=d,i.style.maxWidth=d}else i.style.width="100%";a(i)}o(s,"setupImage"),setTimeout(()=>{i.complete&&s()}),i.addEventListener("error",s),i.addEventListener("load",s)})))}var HP=F(()=>{"use strict";Xt();Wi();Qt();o(E4,"configureLabelImages")});function or(e){let t=e.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}function fl(e,t,r,n,i,a){let s=[],u=r-e,h=n-t,d=u/a,f=2*Math.PI/d,p=t+h/2;for(let m=0;m<=50;m++){let g=m/50,y=e+g*u,v=p+i*Math.sin(f*(y-e));s.push({x:y,y:v})}return s}function Cm(e,t,r,n,i,a){let s=[],l=i*Math.PI/180,d=(a*Math.PI/180-l)/(n-1);for(let f=0;fu.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),n=t.map(u=>u.getAttribute("d")).filter(u=>u!==null).join(" ");r.setAttribute("d",n);let i=t.find(u=>u.getAttribute("fill")!=="none"),a=t.find(u=>u.getAttribute("stroke")!=="none"),s=o((u,h)=>u?.getAttribute(h)??void 0,"getAttr");if(i){let u={fill:s(i,"fill"),"fill-opacity":s(i,"fill-opacity")??"1"};Object.entries(u).forEach(([h,d])=>{d&&r.setAttribute(h,d)})}if(a){let u={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(u).forEach(([h,d])=>{d&&r.setAttribute(h,d)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(r),l}var It,A4,pt,Dt,Kt=F(()=>{"use strict";Ls();Xt();ur();$r();Vr();Qt();HP();It=o(async(e,t,r)=>{let n,i=t.useHtmlLabels||ya(Ae()?.htmlLabels);r?n=r:n="node default";let a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=a.insert("g").attr("class","label").attr("style",kn(t.labelStyle)),l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];let u=!!t.icon||!!t.img,h=t.labelType==="markdown",d=await Pn(s,mr(Rs(l),Ae()),{useHtmlLabels:i,width:t.width||Ae().flowchart?.wrappingWidth,classes:h?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:u,markdown:h},Ae()),f=d.getBBox(),p=(t?.padding??0)/2;if(i){let m=d.children[0],g=et(d);await E4(m,l),f=m.getBoundingClientRect(),g.attr("width",f.width),g.attr("height",f.height)}return i?s.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):s.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:f,halfPadding:p,label:s}},"labelHelper"),A4=o(async(e,t,r)=>{let n=r.useHtmlLabels??Gr(Ae()),i=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Pn(i,mr(Rs(t),Ae()),{useHtmlLabels:n,width:r.width||Ae()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),s=a.getBBox(),l=r.padding/2;if(Gr(Ae())){let u=a.children[0],h=et(a);s=u.getBoundingClientRect(),h.attr("width",s.width),h.attr("height",s.height)}return n?i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):i.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:e,bbox:s,halfPadding:l,label:i}},"insertLabel"),pt=o((e,t)=>{let r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),Dt=o((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");o(or,"createPathFromPoints");o(fl,"generateFullSineWavePoints");o(Cm,"generateCirclePoints");o(UP,"mergePaths")});function KZe(e,t){return e.intersect(t)}var Pse,Ose=F(()=>{"use strict";o(KZe,"intersectNode");Pse=KZe});function ZZe(e,t,r,n){var i=e.x,a=e.y,s=i-n.x,l=a-n.y,u=Math.sqrt(t*t*l*l+r*r*s*s),h=Math.abs(t*r*s/u);n.x{"use strict";o(ZZe,"intersectEllipse");R4=ZZe});function QZe(e,t,r){return R4(e,t,t,r)}var Bse,$se=F(()=>{"use strict";YP();o(QZe,"intersectCircle");Bse=QZe});function JZe(e,t,r,n){{let i=t.y-e.y,a=e.x-t.x,s=t.x*e.y-e.x*t.y,l=i*r.x+a*r.y+s,u=i*n.x+a*n.y+s,h=1e-6;if(l!==0&&u!==0&&Fse(l,u))return;let d=n.y-r.y,f=r.x-n.x,p=n.x*r.y-r.x*n.y,m=d*e.x+f*e.y+p,g=d*t.x+f*t.y+p;if(Math.abs(m)0}var zse,Gse=F(()=>{"use strict";o(JZe,"intersectLine");o(Fse,"sameSign");zse=JZe});function eQe(e,t,r){let n=e.x,i=e.y,a=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),l=Math.min(l,d.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));let u=n-e.width/2-s,h=i-e.height/2-l;for(let d=0;d1&&a.sort(function(d,f){let p=d.x-r.x,m=d.y-r.y,g=Math.sqrt(p*p+m*m),y=f.x-r.x,v=f.y-r.y,x=Math.sqrt(y*y+v*v);return g{"use strict";Gse();o(eQe,"intersectPolygon");Vse=eQe});var tQe,nu,_4=F(()=>{"use strict";tQe=o((e,t)=>{var r=e.x,n=e.y,i=t.x-r,a=t.y-n,s=e.width/2,l=e.height/2,u,h;return Math.abs(a)*s>Math.abs(i)*l?(a<0&&(l=-l),u=a===0?0:l*i/a,h=l):(i<0&&(s=-s),u=s,h=i===0?0:s*a/i),{x:r+u,y:n+h}},"intersectRect"),nu=tQe});var ht,nr=F(()=>{"use strict";Ose();$se();YP();Wse();_4();ht={node:Pse,circle:Bse,ellipse:R4,polygon:Vse,rect:nu}});var qse,iu,rQe,M2,ct,dt,nQe,Jt=F(()=>{"use strict";Xt();qse=o(e=>{let{handDrawnSeed:t}=Ae();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),iu=o(e=>{let t=rQe([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),rQe=o(e=>{let t=new Map;return e.forEach(r=>{let[n,i]=r.split(":");t.set(n.trim(),i?.trim())}),t},"styles2Map"),M2=o(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),ct=o(e=>{let{stylesArray:t}=iu(e),r=[],n=[],i=[],a=[];return t.forEach(s=>{let l=s[0];M2(l)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),l.includes("stroke")&&i.push(s.join(":")+" !important"),l==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:a}},"styles2String"),dt=o((e,t)=>{let{themeVariables:r,handDrawnSeed:n}=Ae(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:s}=iu(e);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||i,seed:n,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:nQe(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),nQe=o(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let i=isNaN(t[0])?0:t[0];return[i,i]}let r=isNaN(t[0])?0:t[0],n=isNaN(t[1])?0:t[1];return[r,n]},"getStrokeDashArray")});function jP(e,t,r){if(e&&e.length){let[n,i]=t,a=Math.PI/180*r,s=Math.cos(a),l=Math.sin(a);for(let u of e){let[h,d]=u;u[0]=(h-n)*s-(d-i)*l+n,u[1]=(h-n)*l+(d-i)*s+i}}}function iQe(e,t){return e[0]===t[0]&&e[1]===t[1]}function aQe(e,t,r,n=1){let i=r,a=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(i)for(let h of s)jP(h,l,i);let u=(function(h,d,f){let p=[];for(let b of h){let T=[...b];iQe(T[0],T[T.length-1])||T.push([T[0][0],T[0][1]]),T.length>2&&p.push(T)}let m=[];d=Math.max(d,.1);let g=[];for(let b of p)for(let T=0;Tb.yminT.ymin?1:b.xT.x?1:b.ymax===T.ymax?0:(b.ymax-T.ymax)/Math.abs(b.ymax-T.ymax))),!g.length)return m;let y=[],v=g[0].ymin,x=0;for(;y.length||g.length;){if(g.length){let b=-1;for(let T=0;Tv);T++)b=T;g.splice(0,b+1).forEach((T=>{y.push({s:v,edge:T})}))}if(y=y.filter((b=>!(b.edge.ymax<=v))),y.sort(((b,T)=>b.edge.x===T.edge.x?0:(b.edge.x-T.edge.x)/Math.abs(b.edge.x-T.edge.x))),(f!==1||x%d==0)&&y.length>1)for(let b=0;b=y.length)break;let k=y[b].edge,C=y[T].edge;m.push([[Math.round(k.x),v],[Math.round(C.x),v]])}v+=f,y.forEach((b=>{b.edge.x=b.edge.x+f*b.edge.islope})),x++}return m})(s,a,n);if(i){for(let h of s)jP(h,l,-i);(function(h,d,f){let p=[];h.forEach((m=>p.push(...m))),jP(p,d,f)})(u,l,-i)}return u}function B2(e,t){var r;let n=t.hachureAngle+90,i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=i),aQe(e,i,n,a||1)}function $4(e){let t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}function KP(e,t){return e.type===t}function uO(e){let t=[],r=(function(s){let l=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:sQe,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:XP,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return l[l.length]={type:Hse,text:""},l})(e),n="BOD",i=0,a=r[i];for(;!KP(a,Hse);){let s=0,l=[];if(n==="BOD"){if(a.text!=="M"&&a.text!=="m")return uO("M0,0"+e);i++,s=L4[a.text],n=a.text}else KP(a,XP)?s=L4[n]:(i++,s=L4[a.text],n=a.text);if(!(i+sd%2?h+r:h+t));a.push({key:"C",data:u}),t=u[4],r=u[5];break}case"Q":a.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{let u=l.map(((h,d)=>d%2?h+r:h+t));a.push({key:"Q",data:u}),t=u[2],r=u[3];break}case"A":a.push({key:"A",data:[...l]}),t=l[5],r=l[6];break;case"a":t+=l[5],r+=l[6],a.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,r]});break;case"H":a.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...l]}),t=l[2],r=l[3];break;case"s":{let u=l.map(((h,d)=>d%2?h+r:h+t));a.push({key:"S",data:u}),t=u[2],r=u[3];break}case"T":a.push({key:"T",data:[...l]}),t=l[0],r=l[1];break;case"t":t+=l[0],r+=l[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=n,r=i}return a}function eoe(e){let t=[],r="",n=0,i=0,a=0,s=0,l=0,u=0;for(let{key:h,data:d}of e){switch(h){case"M":t.push({key:"M",data:[...d]}),[n,i]=d,[a,s]=d;break;case"C":t.push({key:"C",data:[...d]}),n=d[4],i=d[5],l=d[2],u=d[3];break;case"L":t.push({key:"L",data:[...d]}),[n,i]=d;break;case"H":n=d[0],t.push({key:"L",data:[n,i]});break;case"V":i=d[0],t.push({key:"L",data:[n,i]});break;case"S":{let f=0,p=0;r==="C"||r==="S"?(f=n+(n-l),p=i+(i-u)):(f=n,p=i),t.push({key:"C",data:[f,p,...d]}),l=d[0],u=d[1],n=d[2],i=d[3];break}case"T":{let[f,p]=d,m=0,g=0;r==="Q"||r==="T"?(m=n+(n-l),g=i+(i-u)):(m=n,g=i);let y=n+2*(m-n)/3,v=i+2*(g-i)/3,x=f+2*(m-f)/3,b=p+2*(g-p)/3;t.push({key:"C",data:[y,v,x,b,f,p]}),l=m,u=g,n=f,i=p;break}case"Q":{let[f,p,m,g]=d,y=n+2*(f-n)/3,v=i+2*(p-i)/3,x=m+2*(f-m)/3,b=g+2*(p-g)/3;t.push({key:"C",data:[y,v,x,b,m,g]}),l=f,u=p,n=m,i=g;break}case"A":{let f=Math.abs(d[0]),p=Math.abs(d[1]),m=d[2],g=d[3],y=d[4],v=d[5],x=d[6];f===0||p===0?(t.push({key:"C",data:[n,i,v,x,v,x]}),n=v,i=x):(n!==v||i!==x)&&(toe(n,i,v,x,f,p,m,g,y).forEach((function(b){t.push({key:"C",data:b})})),n=v,i=x);break}case"Z":t.push({key:"Z",data:[]}),n=a,i=s}r=h}return t}function N2(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function toe(e,t,r,n,i,a,s,l,u,h){let d=(f=s,Math.PI*f/180);var f;let p=[],m=0,g=0,y=0,v=0;if(h)[m,g,y,v]=h;else{[e,t]=N2(e,t,-d),[r,n]=N2(r,n,-d);let A=(e-r)/2,M=(t-n)/2,D=A*A/(i*i)+M*M/(a*a);D>1&&(D=Math.sqrt(D),i*=D,a*=D);let P=i*i,B=a*a,O=P*B-P*M*M-B*A*A,$=P*M*M+B*A*A,V=(l===u?-1:1)*Math.sqrt(Math.abs(O/$));y=V*i*M/a+(e+r)/2,v=V*-a*A/i+(t+n)/2,m=Math.asin(parseFloat(((t-v)/a).toFixed(9))),g=Math.asin(parseFloat(((n-v)/a).toFixed(9))),eg&&(m-=2*Math.PI),!u&&g>m&&(g-=2*Math.PI)}let x=g-m;if(Math.abs(x)>120*Math.PI/180){let A=g,M=r,D=n;g=u&&g>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=toe(r=y+i*Math.cos(g),n=v+a*Math.sin(g),M,D,i,a,s,0,u,[g,A,y,v])}x=g-m;let b=Math.cos(m),T=Math.sin(m),k=Math.cos(g),C=Math.sin(g),w=Math.tan(x/4),S=4/3*i*w,R=4/3*a*w,L=[e,t],N=[e+S*T,t-R*b],I=[r+S*C,n-R*k],_=[r,n];if(N[0]=2*L[0]-N[0],N[1]=2*L[1]-N[1],h)return[N,I,_].concat(p);{p=[N,I,_].concat(p);let A=[];for(let M=0;M2){let i=[];for(let a=0;a2*Math.PI&&(m=0,g=2*Math.PI);let y=2*Math.PI/u.curveStepCount,v=Math.min(y/2,(g-m)/2),x=Zse(v,h,d,f,p,m,g,1,u);if(!u.disableMultiStroke){let b=Zse(v,h,d,f,p,m,g,1.5,u);x.push(...b)}return s&&(l?x.push(...Jd(h,d,h+f*Math.cos(m),d+p*Math.sin(m),u),...Jd(h,d,h+f*Math.cos(g),d+p*Math.sin(g),u)):x.push({op:"lineTo",data:[h,d]},{op:"lineTo",data:[h+f*Math.cos(m),d+p*Math.sin(m)]})),{type:"path",ops:x}}function jse(e,t){let r=eoe(Jse(uO(e))),n=[],i=[0,0],a=[0,0];for(let{key:s,data:l}of r)switch(s){case"M":a=[l[0],l[1]],i=[l[0],l[1]];break;case"L":n.push(...Jd(a[0],a[1],l[0],l[1],t)),a=[l[0],l[1]];break;case"C":{let[u,h,d,f,p,m]=l;n.push(...cQe(u,h,d,f,p,m,a,t)),a=[p,m];break}case"Z":n.push(...Jd(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:"path",ops:n}}function ZP(e,t){let r=[];for(let n of e)if(n.length){let i=t.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+Cr(i,t),n[0][1]+Cr(i,t)]});for(let s=1;s500?.4:-.0016668*u+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>l&&(d=u/10);let f=d/2,p=.2+.2*ioe(i),m=i.bowing*i.maxRandomnessOffset*(n-t)/200,g=i.bowing*i.maxRandomnessOffset*(e-r)/200;m=Cr(m,i,h),g=Cr(g,i,h);let y=[],v=o(()=>Cr(f,i,h),"M"),x=o(()=>Cr(d,i,h),"k"),b=i.preserveVertices;return a&&(s?y.push({op:"move",data:[e+(b?0:v()),t+(b?0:v())]}):y.push({op:"move",data:[e+(b?0:Cr(d,i,h)),t+(b?0:Cr(d,i,h))]})),s?y.push({op:"bcurveTo",data:[m+e+(r-e)*p+v(),g+t+(n-t)*p+v(),m+e+2*(r-e)*p+v(),g+t+2*(n-t)*p+v(),r+(b?0:v()),n+(b?0:v())]}):y.push({op:"bcurveTo",data:[m+e+(r-e)*p+x(),g+t+(n-t)*p+x(),m+e+2*(r-e)*p+x(),g+t+2*(n-t)*p+x(),r+(b?0:x()),n+(b?0:x())]}),y}function D4(e,t,r){if(!e.length)return[];let n=[];n.push([e[0][0]+Cr(t,r),e[0][1]+Cr(t,r)]),n.push([e[0][0]+Cr(t,r),e[0][1]+Cr(t,r)]);for(let i=1;i3){let a=[],s=1-r.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+21&&i.push(l)):i.push(l),i.push(e[t+3])}else{let u=e[t+0],h=e[t+1],d=e[t+2],f=e[t+3],p=wm(u,h,.5),m=wm(h,d,.5),g=wm(d,f,.5),y=wm(p,m,.5),v=wm(m,g,.5),x=wm(y,v,.5);oO([u,p,y,x],0,r,i),oO([x,v,g,f],0,r,i)}var a,s;return i}function hQe(e,t){return B4(e,0,e.length,t)}function B4(e,t,r,n,i){let a=i||[],s=e[t],l=e[r-1],u=0,h=1;for(let d=t+1;du&&(u=f,h=d)}return Math.sqrt(u)>n?(B4(e,t,h+1,n,a),B4(e,h,r,n,a)):(a.length||a.push(s),a.push(l)),a}function QP(e,t=.15,r){let n=[],i=(e.length-1)/3;for(let a=0;a0?B4(n,0,n.length,r):n}var O2,JP,eO,tO,rO,nO,no,iO,sQe,XP,Hse,L4,oQe,zo,zy,lO,I4,cO,ut,tr=F(()=>{"use strict";o(jP,"t");o(iQe,"e");o(aQe,"s");o(B2,"n");O2=class{static{o(this,"o")}constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){let n=B2(t,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(t,r){let n=[];for(let i of t)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}};o($4,"a");JP=class extends O2{static{o(this,"h")}fillPolygons(t,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let i=B2(t,Object.assign({},r,{hachureGap:n})),a=Math.PI/180*r.hachureAngle,s=[],l=.5*n*Math.cos(a),u=.5*n*Math.sin(a);for(let[h,d]of i)$4([h,d])&&s.push([[h[0]-l,h[1]+u],[...d]],[[h[0]+l,h[1]-u],[...d]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}},eO=class extends O2{static{o(this,"r")}fillPolygons(t,r){let n=this._fillPolygons(t,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,i);return n.ops=n.ops.concat(a.ops),n}},tO=class{static{o(this,"i")}constructor(t){this.helper=t}fillPolygons(t,r){let n=B2(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(t,r){let n=[],i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);let s=i/4;for(let l of t){let u=$4(l),h=u/i,d=Math.ceil(h)-1,f=u-d*i,p=(l[0][0]+l[1][0])/2-i/4,m=Math.min(l[0][1],l[1][1]);for(let g=0;g{let l=$4(s),u=Math.floor(l/(n+i)),h=(l+i-u*(n+i))/2,d=s[0],f=s[1];d[0]>f[0]&&(d=s[1],f=s[0]);let p=Math.atan((f[1]-d[1])/(f[0]-d[0]));for(let m=0;m{let s=$4(a),l=Math.round(s/(2*r)),u=a[0],h=a[1];u[0]>h[0]&&(u=a[1],h=a[0]);let d=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let f=0;f2*Math.PI&&(S=0,R=2*Math.PI);let L=(R-S)/b.curveStepCount,N=[];for(let I=S;I<=R;I+=L)N.push([T+C*Math.cos(I),k+w*Math.sin(I)]);return N.push([T+C*Math.cos(R),k+w*Math.sin(R)]),N.push([T,k]),Fy([N],b)})(t,r,n,i,a,s,h));return h.stroke!==zo&&d.push(f),this._d("arc",d,h)}curve(t,r){let n=this._o(r),i=[],a=Use(t,n);if(n.fill&&n.fill!==zo)if(n.fillStyle==="solid"){let s=Use(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{let s=[],l=t;if(l.length){let u=typeof l[0][0]=="number"?[l]:l;for(let h of u)h.length<3?s.push(...h):h.length===3?s.push(...QP(Qse([h[0],h[0],h[1],h[2]]),10,(1+n.roughness)/2)):s.push(...QP(Qse(h),10,(1+n.roughness)/2))}s.length&&i.push(Fy([s],n))}return n.stroke!==zo&&i.push(a),this._d("curve",i,n)}polygon(t,r){let n=this._o(r),i=[],a=M4(t,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(ZP([t],n)):i.push(Fy([t],n))),n.stroke!==zo&&i.push(a),this._d("polygon",i,n)}path(t,r){let n=this._o(r),i=[];if(!t)return this._d("path",i,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=n.fill&&n.fill!=="transparent"&&n.fill!==zo,s=n.stroke!==zo,l=!!(n.simplification&&n.simplification<1),u=(function(d,f,p){let m=eoe(Jse(uO(d))),g=[],y=[],v=[0,0],x=[],b=o(()=>{x.length>=4&&y.push(...QP(x,f)),x=[]},"i"),T=o(()=>{b(),y.length&&(g.push(y),y=[])},"c");for(let{key:C,data:w}of m)switch(C){case"M":T(),v=[w[0],w[1]],y.push(v);break;case"L":b(),y.push([w[0],w[1]]);break;case"C":if(!x.length){let S=y.length?y[y.length-1]:v;x.push([S[0],S[1]])}x.push([w[0],w[1]]),x.push([w[2],w[3]]),x.push([w[4],w[5]]);break;case"Z":b(),y.push([v[0],v[1]])}if(T(),!p)return g;let k=[];for(let C of g){let w=hQe(C,p);w.length&&k.push(w)}return k})(t,1,l?4-4*(n.simplification||1):(1+n.roughness)/2),h=jse(t,n);if(a)if(n.fillStyle==="solid")if(u.length===1){let d=jse(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else i.push(ZP(u,n));else i.push(Fy(u,n));return s&&(l?u.forEach((d=>{i.push(M4(d,!1,n))})):i.push(h)),this._d("path",i,n)}opsToPath(t,r){let n="";for(let i of t.ops){let a=typeof r=="number"&&r>=0?i.data.map((s=>+s.toFixed(r))):i.data;switch(i.op){case"move":n+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":n+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":n+=`L${a[0]} ${a[1]} `}}return n.trim()}toPaths(t){let r=t.sets||[],n=t.options||this.defaultOptions,i=[];for(let a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:zo};break;case"fillPath":s={d:this.opsToPath(a),stroke:zo,strokeWidth:0,fill:n.fill||zo};break;case"fillSketch":s=this.fillSketch(a,n)}s&&i.push(s)}return i}fillSketch(t,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||zo,strokeWidth:n,fill:zo}}_mergedShape(t){return t.filter(((r,n)=>n===0||r.op!=="move"))}},lO=class{static{o(this,"st")}constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new zy(r)}draw(t){let r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(let s of r)switch(s.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,s,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";let l=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,a,l),i.restore();break}case"fillSketch":this.fillSketch(i,s,n)}}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=i,this._drawToContext(t,r,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,n,i="nonzero"){t.beginPath();for(let a of r.ops){let s=typeof n=="number"&&n>=0?a.data.map((l=>+l.toFixed(n))):a.data;switch(a.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}r.type==="fillPath"?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,n,i,a){let s=this.gen.line(t,r,n,i,a);return this.draw(s),s}rectangle(t,r,n,i,a){let s=this.gen.rectangle(t,r,n,i,a);return this.draw(s),s}ellipse(t,r,n,i,a){let s=this.gen.ellipse(t,r,n,i,a);return this.draw(s),s}circle(t,r,n,i){let a=this.gen.circle(t,r,n,i);return this.draw(a),a}linearPath(t,r){let n=this.gen.linearPath(t,r);return this.draw(n),n}polygon(t,r){let n=this.gen.polygon(t,r);return this.draw(n),n}arc(t,r,n,i,a,s,l=!1,u){let h=this.gen.arc(t,r,n,i,a,s,l,u);return this.draw(h),h}curve(t,r){let n=this.gen.curve(t,r);return this.draw(n),n}path(t,r){let n=this.gen.path(t,r);return this.draw(n),n}},I4="http://www.w3.org/2000/svg",cO=class{static{o(this,"ot")}constructor(t,r){this.svg=t,this.gen=new zy(r)}draw(t){let r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(I4,"g"),s=t.options.fixedDecimalPlaceDigits;for(let l of r){let u=null;switch(l.type){case"path":u=i.createElementNS(I4,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke",n.stroke),u.setAttribute("stroke-width",n.strokeWidth+""),u.setAttribute("fill","none"),n.strokeLineDash&&u.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":u=i.createElementNS(I4,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",n.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(i,l,n)}u&&a.appendChild(u)}return a}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);let a=t.createElementNS(I4,"path");return a.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),a.setAttribute("stroke",n.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),n.fillLineDash&&a.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,n,i,a){let s=this.gen.line(t,r,n,i,a);return this.draw(s)}rectangle(t,r,n,i,a){let s=this.gen.rectangle(t,r,n,i,a);return this.draw(s)}ellipse(t,r,n,i,a){let s=this.gen.ellipse(t,r,n,i,a);return this.draw(s)}circle(t,r,n,i){let a=this.gen.circle(t,r,n,i);return this.draw(a)}linearPath(t,r){let n=this.gen.linearPath(t,r);return this.draw(n)}polygon(t,r){let n=this.gen.polygon(t,r);return this.draw(n)}arc(t,r,n,i,a,s,l=!1,u){let h=this.gen.arc(t,r,n,i,a,s,l,u);return this.draw(h)}curve(t,r){let n=this.gen.curve(t,r);return this.draw(n)}path(t,r){let n=this.gen.path(t,r);return this.draw(n)}},ut={canvas:o((e,t)=>new lO(e,t),"canvas"),svg:o((e,t)=>new cO(e,t),"svg"),generator:o(e=>new zy(e),"generator"),newSeed:o(()=>zy.newSeed(),"newSeed")}});function aoe(e,t){let{labelStyles:r}=ct(t);t.labelStyle=r;let n=Dt(t),i=n;n||(i="anchor");let a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=1,{cssStyles:l}=t,u=ut.svg(a),h=dt(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);let d=u.circle(0,0,s*2,h),f=a.insert(()=>d,":first-child");return f.attr("class","anchor").attr("style",kn(l)),pt(t,f),t.intersect=function(p){return Z.info("Circle intersect",t,s,p),ht.circle(t,s,p)},a}var soe=F(()=>{"use strict";vt();Kt();nr();Jt();tr();Qt();o(aoe,"anchor")});function ooe(e,t,r,n,i,a,s){let u=(e+r)/2,h=(t+n)/2,d=Math.atan2(n-t,r-e),f=(r-e)/2,p=(n-t)/2,m=f/i,g=p/a,y=Math.sqrt(m**2+g**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");let v=Math.sqrt(1-y**2),x=u+v*a*Math.sin(d)*(s?-1:1),b=h-v*i*Math.cos(d)*(s?-1:1),T=Math.atan2((t-b)/a,(e-x)/i),C=Math.atan2((n-b)/a,(r-x)/i)-T;s&&C<0&&(C+=2*Math.PI),!s&&C>0&&(C-=2*Math.PI);let w=[];for(let S=0;S<20;S++){let R=S/19,L=T+R*C,N=x+i*Math.cos(L),I=b+a*Math.sin(L);w.push({x:N,y:I})}return w}function dQe(e,t,r){let[n,i]=[t,r].sort((a,s)=>s-a);return i*(1-Math.sqrt(1-(e/n/2)**2))}async function loe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?12:i,l=o(L=>L+s,"calcTotalHeight"),u=o(L=>{let N=L/2;return[N/(2.5+L/50),N]},"calcEllipseRadius"),{shapeSvg:h,bbox:d}=await It(e,t,Dt(t)),f=l(t?.height?t?.height:d.height),[p,m]=u(f),g=dQe(f,p,m),v=(t?.width?t?.width:d.width)+a*2+g-g,x=f,{cssStyles:b}=t,T=[{x:v/2,y:-x/2},{x:-v/2,y:-x/2},...ooe(-v/2,-x/2,-v/2,x/2,p,m,!1),{x:v/2,y:x/2},...ooe(v/2,x/2,v/2,-x/2,p,m,!0)],k=ut.svg(h),C=dt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let w=or(T),S=k.path(w,C),R=h.insert(()=>S,":first-child");return R.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",b),n&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",n),R.attr("transform",`translate(${p/2}, 0)`),pt(t,R),t.intersect=function(L){return ht.polygon(t,T,L)},h}var coe=F(()=>{"use strict";Kt();nr();Jt();tr();o(ooe,"generateArcPoints");o(dQe,"calculateArcSagitta");o(loe,"bowTieRect")});function as(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}var Ch=F(()=>{"use strict";o(as,"insertPolygonShape")});async function uoe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?28:i,s=t.look==="neo"?24:i,{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=(t?.width??u.width)+(t.look==="neo"?a*2:a+F4),d=(t?.height??u.height)+(t.look==="neo"?s*2:s),f=0,p=h,m=-d,g=0,y=[{x:f+F4,y:m},{x:p,y:m},{x:p,y:g},{x:f,y:g},{x:f,y:m+F4},{x:f+F4,y:m}],v,{cssStyles:x}=t;if(t.look==="handDrawn"){let b=ut.svg(l),T=dt(t,{}),k=or(y),C=b.path(k,T);v=l.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${d/2})`),x&&v.attr("style",x)}else v=as(l,h,d,y);return n&&v.attr("style",n),pt(t,v),t.intersect=function(b){return ht.polygon(t,y,b)},l}var F4,hoe=F(()=>{"use strict";Kt();nr();Jt();tr();Ch();Kt();F4=12;o(uoe,"card")});function doe(e,t){let{nodeStyles:r}=ct(t);t.label="";let n=e.insert("g").attr("class",Dt(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=ut.svg(n),u=dt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=or(s),d=l.path(h,u),f=n.insert(()=>d,":first-child");return i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),r&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(p){return ht.polygon(t,s,p)},n}var foe=F(()=>{"use strict";nr();tr();Jt();Kt();o(doe,"choice")});async function z4(e,t,r){let{labelStyles:n,nodeStyles:i}=ct(t);t.labelStyle=n;let{shapeSvg:a,bbox:s,halfPadding:l}=await It(e,t,Dt(t)),u=16,h=r?.padding??l,d=t.look==="neo"?s.width/2+u*2:s.width/2+h,f,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=ut.svg(a),g=dt(t,{}),y=m.circle(0,0,d*2,g);f=a.insert(()=>y,":first-child"),f.attr("class","basic label-container").attr("style",kn(p))}else f=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0);return pt(t,f),t.calcIntersect=function(m,g){let y=m.width/2;return ht.circle(m,y,g)},t.intersect=function(m){return Z.info("Circle intersect",t,d,m),ht.circle(t,d,m)},a}var hO=F(()=>{"use strict";tr();vt();Qt();nr();Jt();Kt();o(z4,"circle")});function fQe(e){let t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=e*2,i={x:n/2*t,y:n/2*r},a={x:-(n/2)*t,y:n/2*r},s={x:-(n/2)*t,y:-(n/2)*r},l={x:n/2*t,y:-(n/2)*r};return`M ${a.x},${a.y} L ${l.x},${l.y}
+ M ${i.x},${i.y} L ${s.x},${s.y}`}function poe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r,t.label="";let i=e.insert("g").attr("class",Dt(t)).attr("id",t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:s}=t,l=ut.svg(i),u=dt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=l.circle(0,0,a*2,u),d=fQe(a),f=l.path(d,u),p=i.insert(()=>h,":first-child");return p.insert(()=>f),p.attr("class","outer-path"),s&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),pt(t,p),t.intersect=function(m){return Z.info("crossedCircle intersect",t,{radius:a,point:m}),ht.circle(t,a,m)},i}var moe=F(()=>{"use strict";vt();Kt();Jt();tr();nr();o(fQe,"createLine");o(poe,"crossedCircle")});function ef(e,t,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,d=(a*Math.PI/180-l)/(n-1);for(let f=0;fC,":first-child").attr("stroke-opacity",0),w.insert(()=>T,":first-child"),w.attr("class","text"),p&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(${f}, 0)`),s.attr("transform",`translate(${-h/2+f-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),pt(t,w),t.intersect=function(S){return ht.polygon(t,g,S)},i}var yoe=F(()=>{"use strict";Kt();nr();Jt();tr();o(ef,"generateCirclePoints");o(goe,"curlyBraceLeft")});function tf(e,t,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,d=(a*Math.PI/180-l)/(n-1);for(let f=0;fC,":first-child").attr("stroke-opacity",0),w.insert(()=>T,":first-child"),w.attr("class","text"),p&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(${-f}, 0)`),s.attr("transform",`translate(${-h/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),pt(t,w),t.intersect=function(S){return ht.polygon(t,g,S)},i}var xoe=F(()=>{"use strict";Kt();nr();Jt();tr();o(tf,"generateCirclePoints");o(voe,"curlyBraceRight")});function ss(e,t,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,d=(a*Math.PI/180-l)/(n-1);for(let f=0;fL,":first-child").attr("stroke-opacity",0),N.insert(()=>k,":first-child"),N.insert(()=>S,":first-child"),N.attr("class","text"),p&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",n),N.attr("transform",`translate(${f-f/4}, 0)`),s.attr("transform",`translate(${-h/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),pt(t,N),t.intersect=function(I){return ht.polygon(t,y,I)},i}var Toe=F(()=>{"use strict";Kt();nr();Jt();tr();o(ss,"generateCirclePoints");o(boe,"curlyBraces")});async function Coe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?12:i,l=20,u=5,{shapeSvg:h,bbox:d}=await It(e,t,Dt(t)),f=Math.max(l,(d.width+a*2)*1.25,t?.width??0),p=Math.max(u,d.height+s*2,t?.height??0),m=p/2,{cssStyles:g}=t,y=ut.svg(h),v=dt(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let x=f,b=p,T=x-m,k=b/4,C=[{x:T,y:0},{x:k,y:0},{x:0,y:b/2},{x:k,y:b},{x:T,y:b},...Cm(-T,-b/2,m,50,270,90)],w=or(C),S=y.path(w,v),R=h.insert(()=>S,":first-child");return R.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&R.selectChildren("path").attr("style",g),n&&t.look!=="handDrawn"&&R.selectChildren("path").attr("style",n),R.attr("transform",`translate(${-f/2}, ${-p/2})`),pt(t,R),t.intersect=function(L){return ht.polygon(t,C,L)},h}var woe=F(()=>{"use strict";Kt();nr();Jt();tr();o(Coe,"curvedTrapezoid")});async function Eoe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?24:i,s=t.look==="neo"?24:i;if(t.width||t.height){let v=t.width??0;t.width=(t.width??0)-s,t.widthC,":first-child"),g=l.insert(()=>k,":first-child"),g.attr("class","basic label-container"),y&&g.attr("style",y)}else{let v=pQe(0,0,d,m,f,p);g=l.insert("path",":first-child").attr("d",v).attr("class","basic label-container outer-path").attr("style",kn(y)).attr("style",n)}return g.attr("label-offset-y",p),g.attr("transform",`translate(${-d/2}, ${-(m/2+p)})`),pt(t,g),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(t.padding??0)/1.5-(u.y-(u.top??0))})`),t.intersect=function(v){let x=ht.rect(t,v),b=x.x-(t.x??0);if(f!=0&&(Math.abs(b)<(t.width??0)/2||Math.abs(b)==(t.width??0)/2&&Math.abs(x.y-(t.y??0))>(t.height??0)/2-p)){let T=p*p*(1-b*b/(f*f));T>0&&(T=Math.sqrt(T)),T=p-T,v.y-(t.y??0)>0&&(T=-T),x.y+=T}return x},l}var pQe,mQe,gQe,koe,Soe,Aoe=F(()=>{"use strict";Kt();nr();Jt();tr();Qt();pQe=o((e,t,r,n,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),mQe=o((e,t,r,n,i,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),gQe=o((e,t,r,n,i,a)=>[`M${e-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),koe=8,Soe=8;o(Eoe,"cylinder")});var io,km=F(()=>{"use strict";io=o((e,t,r,n,i)=>["M",e+i,t,"H",e+r-i,"A",i,i,0,0,1,e+r,t+i,"V",t+n-i,"A",i,i,0,0,1,e+r-i,t+n,"H",e+i,"A",i,i,0,0,1,e,t+n-i,"V",t+i,"A",i,i,0,0,1,e+i,t,"Z"].join(" "),"createRoundedRectPathD")});async function ac(e,t,r){let{labelStyles:n,nodeStyles:i}=ct(t);t.labelStyle=n;let{shapeSvg:a,bbox:s}=await It(e,t,Dt(t)),l=Math.max(s.width+r.labelPaddingX*2,t?.width||0),u=Math.max(s.height+r.labelPaddingY*2,t?.height||0),h=-l/2,d=-u/2,f,{rx:p,ry:m}=t,{cssStyles:g}=t;if(r?.rx&&r.ry&&(p=r.rx,m=r.ry),t.look==="handDrawn"){let y=ut.svg(a),v=dt(t,{}),x=p||m?y.path(io(h,d,l,u,p||0),v):y.rectangle(h,d,l,u,v);f=a.insert(()=>x,":first-child"),f.attr("class","basic label-container").attr("style",kn(g))}else f=a.insert("rect",":first-child"),f.attr("class","basic label-container").attr("style",i).attr("rx",kn(p)).attr("ry",kn(m)).attr("x",h).attr("y",d).attr("width",l).attr("height",u);return pt(t,f),t.calcIntersect=function(y,v){return ht.rect(y,v)},t.intersect=function(y){return ht.rect(t,y)},a}var Sm=F(()=>{"use strict";Kt();nr();km();Jt();tr();Qt();o(ac,"drawRect")});async function Roe(e,t){let{cssClasses:r,labelPaddingX:n,labelPaddingY:i,padding:a,width:s,height:l}=t,u={rx:0,ry:0,classes:r??"",labelPaddingX:n??(a??0)*2,labelPaddingY:i??a??0},h=await ac(e,t,u);if(t.look==="handDrawn"){let m=ut.svg(h),g=dt(t,{}),y=h.select(".basic.label-container > path:nth-child(2)"),v=y.node();if(!v)return h;let x=null;if(v instanceof SVGGraphicsElement)x=v.getBBox();else return h;return h.insert(()=>m.line(x.x,x.y,x.x+x.width,x.y,g),".basic.label-container g.label"),h.insert(()=>m.line(x.x,x.y+x.height,x.x+x.width,x.y+x.height,g),".basic.label-container g.label"),y.remove(),h}let d=h.select(".basic.label-container"),f=(Number(d.attr("width"))||s)??0,p=(Number(d.attr("height"))||l)??0;return f>0&&p>0&&d.attr("stroke-dasharray",`${f} ${p}`),h}var _oe=F(()=>{"use strict";Sm();Jt();tr();o(Roe,"datastore")});async function Loe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?16:t.padding??0,{shapeSvg:s,bbox:l,label:u}=await It(e,t,Dt(t)),h=l.width+i,d=l.height+a,f=d*.2,p=-h/2,m=-d/2-f/2,{cssStyles:g}=t,y=ut.svg(s),v=dt(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let x=[{x:p,y:m+f},{x:-p,y:m+f},{x:-p,y:-m},{x:p,y:-m},{x:p,y:m},{x:-p,y:m},{x:-p,y:m+f}],b=y.polygon(x.map(k=>[k.x,k.y]),v),T=s.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",n),u.attr("transform",`translate(${p+(t.padding??0)/2-(l.x-(l.left??0))}, ${m+f+(t.padding??0)/2-(l.y-(l.top??0))})`),pt(t,T),t.intersect=function(k){return ht.rect(t,k)},s}var Doe=F(()=>{"use strict";Kt();nr();Jt();tr();o(Loe,"dividedRectangle")});async function Ioe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t),i=t.look==="neo"?12:5;t.labelStyle=r;let a=t.padding??0,s=t.look==="neo"?16:a,{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=(t?.width?t?.width/2:u.width/2)+(s??0),d=h-i,f,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=ut.svg(l),g=dt(t,{roughness:.2,strokeWidth:2.5}),y=dt(t,{roughness:.2,strokeWidth:1.5}),v=m.circle(0,0,h*2,g),x=m.circle(0,0,d*2,y);f=l.insert("g",":first-child"),f.attr("class",kn(t.cssClasses)).attr("style",kn(p)),f.node()?.appendChild(v),f.node()?.appendChild(x)}else{f=l.insert("g",":first-child");let m=f.insert("circle",":first-child"),g=f.insert("circle");f.attr("class","basic label-container").attr("style",n),m.attr("class","outer-circle").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",n).attr("r",d).attr("cx",0).attr("cy",0)}return pt(t,f),t.intersect=function(m){return Z.info("DoubleCircle intersect",t,h,m),ht.circle(t,h,m)},l}var Moe=F(()=>{"use strict";vt();Kt();nr();Jt();tr();Qt();o(Ioe,"doublecircle")});function Noe(e,t,{config:{themeVariables:r}}){let{labelStyles:n,nodeStyles:i}=ct(t);t.label="",t.labelStyle=n;let a=e.insert("g").attr("class",Dt(t)).attr("id",t.domId??t.id),s=7,{cssStyles:l}=t,u=ut.svg(a),{nodeBorder:h}=r,d=dt(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(d.roughness=0);let f=u.circle(0,0,s*2,d),p=a.insert(()=>f,":first-child");return p.selectAll("path").attr("style",`fill: ${h} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",l),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),pt(t,p),t.intersect=function(m){return Z.info("filledCircle intersect",t,{radius:s,point:m}),ht.circle(t,s,m)},a}var Poe=F(()=>{"use strict";tr();vt();nr();Jt();Kt();o(Noe,"filledCircle")});async function $oe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?i*2:i;(t.width||t.height)&&(t.height=t?.height??0,t.heightx,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return m&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",m),n&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),t.width=h,t.height=d,pt(t,b),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-d/2+(t.padding??0)/2+(l.y-(l.top??0))})`),t.intersect=function(T){return Z.info("Triangle intersect",t,p,T),ht.polygon(t,p,T)},s}var Ooe,Boe,Foe=F(()=>{"use strict";vt();Kt();nr();Jt();tr();Kt();Ooe=10,Boe=10;o($oe,"flippedTriangle")});function zoe(e,t,{dir:r,config:{state:n,themeVariables:i}}){let{nodeStyles:a}=ct(t);t.label="";let s=e.insert("g").attr("class",Dt(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,u=Math.max(70,t?.width??0),h=Math.max(10,t?.height??0);r==="LR"&&(u=Math.max(10,t?.width??0),h=Math.max(70,t?.height??0));let d=-1*u/2,f=-1*h/2,p=ut.svg(s),m=dt(t,{stroke:i.lineColor,fill:i.lineColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=p.rectangle(d,f,u,h,m),y=s.insert(()=>g,":first-child");l&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",l),a&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",a),pt(t,y);let v=n?.padding??0;return t.width&&t.height&&(t.width+=v/2||0,t.height+=v/2||0),t.intersect=function(x){return ht.rect(t,x)},s}var Goe=F(()=>{"use strict";tr();nr();Jt();Kt();o(zoe,"forkJoin")});async function Voe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=15,a=10,s=t.look==="neo"?16:t.padding??0,l=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-l*2,t.heightb,":first-child");return T.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",m),n&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",n),pt(t,T),t.intersect=function(k){return Z.info("Pill intersect",t,{radius:p,point:k}),ht.polygon(t,v,k)},u}var Woe=F(()=>{"use strict";vt();Kt();nr();Jt();tr();o(Voe,"halfRoundedRectangle")});async function qoe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t),i=t.look==="neo"?3.5:4;t.labelStyle=r;let a=t.padding??0,s=70,l=32,u=t.look==="neo"?s:a,h=t.look==="neo"?l:a;if(t.width||t.height){let T=(t.height??0)/i;t.width=(t?.width??0)-2*T-h,t.height=(t.height??0)-u}let{shapeSvg:d,bbox:f}=await It(e,t,Dt(t)),p=(t?.height?t?.height:f.height)+u,m=p/i,g=(t?.width?t?.width:f.width)+2*m+h,y=[{x:m,y:0},{x:g-m,y:0},{x:g,y:-p/2},{x:g-m,y:-p},{x:m,y:-p},{x:0,y:-p/2}],v,{cssStyles:x}=t;if(t.look==="handDrawn"){let b=ut.svg(d),T=dt(t,{}),k=yQe(0,0,g,p,m),C=b.path(k,T);v=d.insert(()=>C,":first-child").attr("transform",`translate(${-g/2}, ${p/2})`),x&&v.attr("style",x)}else v=as(d,g,p,y);return n&&v.attr("style",n),t.width=g,t.height=p,pt(t,v),t.intersect=function(b){return ht.polygon(t,y,b)},d}var yQe,Hoe=F(()=>{"use strict";Kt();nr();Jt();tr();Ch();yQe=o((e,t,r,n,i)=>[`M${e+i},${t}`,`L${e+r-i},${t}`,`L${e+r},${t-n/2}`,`L${e+r-i},${t-n}`,`L${e+i},${t-n}`,`L${e},${t-n/2}`,"Z"].join(" "),"createHexagonPathD");o(qoe,"hexagon")});async function Uoe(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.label="",t.labelStyle=r;let{shapeSvg:i}=await It(e,t,Dt(t)),a=Math.max(30,t?.width??0),s=Math.max(30,t?.height??0),{cssStyles:l}=t,u=ut.svg(i),h=dt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let d=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],f=or(d),p=u.path(f,h),m=i.insert(()=>p,":first-child");return m.attr("class","basic label-container outer-path"),l&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",l),n&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),m.attr("transform",`translate(${-a/2}, ${-s/2})`),pt(t,m),t.intersect=function(g){return Z.info("Pill intersect",t,{points:d}),ht.polygon(t,d,g)},i}var Yoe=F(()=>{"use strict";vt();Kt();nr();Jt();tr();o(Uoe,"hourglass")});async function joe(e,t,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=ct(t);t.labelStyle=i;let a=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:d,label:f}=await It(e,t,"icon-shape default"),p=t.pos==="t",m=l,g=l,{nodeBorder:y}=r,{stylesMap:v}=iu(t),x=-g/2,b=-m/2,T=t.label?8:0,k=ut.svg(h),C=dt(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let w=k.rectangle(x,b,g,m,C),S=Math.max(g,d.width),R=m+d.height+T,L=k.rectangle(-S/2,-R/2,S,R,{...C,fill:"transparent",stroke:"none"}),N=h.insert(()=>w,":first-child"),I=h.insert(()=>L);if(t.icon){let _=h.append("g");_.html(`${await ts(t.icon,{height:l,width:l,fallbackPrefix:""})} `);let A=_.node().getBBox(),M=A.width,D=A.height,P=A.x,B=A.y;_.attr("transform",`translate(${-M/2-P},${p?d.height/2+T/2-D/2-B:-d.height/2-T/2-D/2-B})`),_.attr("style",`color: ${v.get("stroke")??y};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-R/2:R/2-d.height})`),N.attr("transform",`translate(0,${p?d.height/2+T/2:-d.height/2-T/2})`),pt(t,I),t.intersect=function(_){if(Z.info("iconSquare intersect",t,_),!t.label)return ht.rect(t,_);let A=t.x??0,M=t.y??0,D=t.height??0,P=[];return p?P=[{x:A-d.width/2,y:M-D/2},{x:A+d.width/2,y:M-D/2},{x:A+d.width/2,y:M-D/2+d.height+T},{x:A+g/2,y:M-D/2+d.height+T},{x:A+g/2,y:M+D/2},{x:A-g/2,y:M+D/2},{x:A-g/2,y:M-D/2+d.height+T},{x:A-d.width/2,y:M-D/2+d.height+T}]:P=[{x:A-g/2,y:M-D/2},{x:A+g/2,y:M-D/2},{x:A+g/2,y:M-D/2+m},{x:A+d.width/2,y:M-D/2+m},{x:A+d.width/2/2,y:M+D/2},{x:A-d.width/2,y:M+D/2},{x:A-d.width/2,y:M-D/2+m},{x:A-g/2,y:M-D/2+m}],ht.polygon(t,P,_)},h}var Xoe=F(()=>{"use strict";tr();vt();Vl();nr();Jt();Kt();o(joe,"icon")});async function Koe(e,t,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=ct(t);t.labelStyle=i;let a=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:d,label:f}=await It(e,t,"icon-shape default"),p=20,m=t.label?8:0,g=t.pos==="t",{nodeBorder:y,mainBkg:v}=r,{stylesMap:x}=iu(t),b=ut.svg(h),T=dt(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let k=x.get("fill");T.stroke=k??v;let C=h.append("g");t.icon&&C.html(`${await ts(t.icon,{height:l,width:l,fallbackPrefix:""})} `);let w=C.node().getBBox(),S=w.width,R=w.height,L=w.x,N=w.y,I=Math.max(S,R)*Math.SQRT2+p*2,_=b.circle(0,0,I,T),A=Math.max(I,d.width),M=I+d.height+m,D=b.rectangle(-A/2,-M/2,A,M,{...T,fill:"transparent",stroke:"none"}),P=h.insert(()=>_,":first-child"),B=h.insert(()=>D);return C.attr("transform",`translate(${-S/2-L},${g?d.height/2+m/2-R/2-N:-d.height/2-m/2-R/2-N})`),C.attr("style",`color: ${x.get("stroke")??y};`),f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-M/2:M/2-d.height})`),P.attr("transform",`translate(0,${g?d.height/2+m/2:-d.height/2-m/2})`),pt(t,B),t.intersect=function(O){return Z.info("iconSquare intersect",t,O),ht.rect(t,O)},h}var Zoe=F(()=>{"use strict";tr();vt();Vl();nr();Jt();Kt();o(Koe,"iconCircle")});async function Qoe(e,t,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=ct(t);t.labelStyle=i;let a=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:d,halfPadding:f,label:p}=await It(e,t,"icon-shape default"),m=t.pos==="t",g=l+f*2,y=l+f*2,{nodeBorder:v,mainBkg:x}=r,{stylesMap:b}=iu(t),T=-y/2,k=-g/2,C=t.label?8:0,w=ut.svg(h),S=dt(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let R=b.get("fill");S.stroke=R??x;let L=w.path(io(T,k,y,g,5),S),N=Math.max(y,d.width),I=g+d.height+C,_=w.rectangle(-N/2,-I/2,N,I,{...S,fill:"transparent",stroke:"none"}),A=h.insert(()=>L,":first-child").attr("class","icon-shape2"),M=h.insert(()=>_);if(t.icon){let D=h.append("g");D.html(`${await ts(t.icon,{height:l,width:l,fallbackPrefix:""})} `);let P=D.node().getBBox(),B=P.width,O=P.height,$=P.x,V=P.y;D.attr("transform",`translate(${-B/2-$},${m?d.height/2+C/2-O/2-V:-d.height/2-C/2-O/2-V})`),D.attr("style",`color: ${b.get("stroke")??v};`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-I/2:I/2-d.height})`),A.attr("transform",`translate(0,${m?d.height/2+C/2:-d.height/2-C/2})`),pt(t,M),t.intersect=function(D){if(Z.info("iconSquare intersect",t,D),!t.label)return ht.rect(t,D);let P=t.x??0,B=t.y??0,O=t.height??0,$=[];return m?$=[{x:P-d.width/2,y:B-O/2},{x:P+d.width/2,y:B-O/2},{x:P+d.width/2,y:B-O/2+d.height+C},{x:P+y/2,y:B-O/2+d.height+C},{x:P+y/2,y:B+O/2},{x:P-y/2,y:B+O/2},{x:P-y/2,y:B-O/2+d.height+C},{x:P-d.width/2,y:B-O/2+d.height+C}]:$=[{x:P-y/2,y:B-O/2},{x:P+y/2,y:B-O/2},{x:P+y/2,y:B-O/2+g},{x:P+d.width/2,y:B-O/2+g},{x:P+d.width/2/2,y:B+O/2},{x:P-d.width/2,y:B+O/2},{x:P-d.width/2,y:B-O/2+g},{x:P-y/2,y:B-O/2+g}],ht.polygon(t,$,D)},h}var Joe=F(()=>{"use strict";tr();vt();Vl();nr();Jt();km();Kt();o(Qoe,"iconRounded")});async function ele(e,t,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=ct(t);t.labelStyle=i;let a=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:d,halfPadding:f,label:p}=await It(e,t,"icon-shape default"),m=t.pos==="t",g=l+f*2,y=l+f*2,{nodeBorder:v,mainBkg:x}=r,{stylesMap:b}=iu(t),T=-y/2,k=-g/2,C=t.label?8:0,w=ut.svg(h),S=dt(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let R=b.get("fill");S.stroke=R??x;let L=w.path(io(T,k,y,g,.1),S),N=Math.max(y,d.width),I=g+d.height+C,_=w.rectangle(-N/2,-I/2,N,I,{...S,fill:"transparent",stroke:"none"}),A=h.insert(()=>L,":first-child"),M=h.insert(()=>_);if(t.icon){let D=h.append("g");D.html(`${await ts(t.icon,{height:l,width:l,fallbackPrefix:""})} `);let P=D.node().getBBox(),B=P.width,O=P.height,$=P.x,V=P.y;D.attr("transform",`translate(${-B/2-$},${m?d.height/2+C/2-O/2-V:-d.height/2-C/2-O/2-V})`),D.attr("style",`color: ${b.get("stroke")??v};`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-I/2:I/2-d.height})`),A.attr("transform",`translate(0,${m?d.height/2+C/2:-d.height/2-C/2})`),pt(t,M),t.intersect=function(D){if(Z.info("iconSquare intersect",t,D),!t.label)return ht.rect(t,D);let P=t.x??0,B=t.y??0,O=t.height??0,$=[];return m?$=[{x:P-d.width/2,y:B-O/2},{x:P+d.width/2,y:B-O/2},{x:P+d.width/2,y:B-O/2+d.height+C},{x:P+y/2,y:B-O/2+d.height+C},{x:P+y/2,y:B+O/2},{x:P-y/2,y:B+O/2},{x:P-y/2,y:B-O/2+d.height+C},{x:P-d.width/2,y:B-O/2+d.height+C}]:$=[{x:P-y/2,y:B-O/2},{x:P+y/2,y:B-O/2},{x:P+y/2,y:B-O/2+g},{x:P+d.width/2,y:B-O/2+g},{x:P+d.width/2/2,y:B+O/2},{x:P-d.width/2,y:B+O/2},{x:P-d.width/2,y:B-O/2+g},{x:P-y/2,y:B-O/2+g}],ht.polygon(t,$,D)},h}var tle=F(()=>{"use strict";tr();vt();Vl();nr();km();Jt();Kt();o(ele,"iconSquare")});async function rle(e,t,{config:{flowchart:r}}){let n=new Image;n.src=t?.img??"",await n.decode();let i=Number(n.naturalWidth.toString().replace("px","")),a=Number(n.naturalHeight.toString().replace("px",""));t.imageAspectRatio=i/a;let{labelStyles:s}=ct(t);t.labelStyle=s;let l=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;let u=Math.max(t.label?l??0:0,t?.assetWidth??i),h=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:u,d=t.constraint==="on"?h/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(h,l??0);let{shapeSvg:f,bbox:p,label:m}=await It(e,t,"image-shape default"),g=t.pos==="t",y=-h/2,v=-d/2,x=t.label?8:0,b=ut.svg(f),T=dt(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let k=b.rectangle(y,v,h,d,T),C=Math.max(h,p.width),w=d+p.height+x,S=b.rectangle(-C/2,-w/2,C,w,{...T,fill:"none",stroke:"none"}),R=f.insert(()=>k,":first-child"),L=f.insert(()=>S);if(t.img){let N=f.append("image");N.attr("href",t.img),N.attr("width",h),N.attr("height",d),N.attr("preserveAspectRatio","none"),N.attr("transform",`translate(${-h/2},${g?w/2-d:-w/2})`)}return m.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${g?-d/2-p.height/2-x/2:d/2-p.height/2+x/2})`),R.attr("transform",`translate(0,${g?p.height/2+x/2:-p.height/2-x/2})`),pt(t,L),t.intersect=function(N){if(Z.info("iconSquare intersect",t,N),!t.label)return ht.rect(t,N);let I=t.x??0,_=t.y??0,A=t.height??0,M=[];return g?M=[{x:I-p.width/2,y:_-A/2},{x:I+p.width/2,y:_-A/2},{x:I+p.width/2,y:_-A/2+p.height+x},{x:I+h/2,y:_-A/2+p.height+x},{x:I+h/2,y:_+A/2},{x:I-h/2,y:_+A/2},{x:I-h/2,y:_-A/2+p.height+x},{x:I-p.width/2,y:_-A/2+p.height+x}]:M=[{x:I-h/2,y:_-A/2},{x:I+h/2,y:_-A/2},{x:I+h/2,y:_-A/2+d},{x:I+p.width/2,y:_-A/2+d},{x:I+p.width/2/2,y:_+A/2},{x:I-p.width/2,y:_+A/2},{x:I-p.width/2,y:_-A/2+d},{x:I-h/2,y:_-A/2+d}],ht.polygon(t,M,N)},f}var nle=F(()=>{"use strict";tr();vt();nr();Jt();Kt();o(rle,"imageSquare")});async function ile(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=i,s=t.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=Math.max(u.width+(s??0)*2,t?.width??0),d=Math.max(u.height+(a??0)*2,t?.height??0),f=[{x:0,y:0},{x:h,y:0},{x:h+3*d/6,y:-d},{x:-3*d/6,y:-d}],p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=ut.svg(l),y=dt(t,{}),v=or(f),x=g.path(v,y);p=l.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${d/2})`),m&&p.attr("style",m)}else p=as(l,h,d,f);return n&&p.attr("style",n),t.width=h,t.height=d,pt(t,p),t.intersect=function(g){return ht.polygon(t,f,g)},l}var ale=F(()=>{"use strict";Kt();nr();Jt();tr();Ch();o(ile,"inv_trapezoid")});async function sle(e,t){let{shapeSvg:r,bbox:n,label:i}=await It(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),pt(t,a),t.intersect=function(u){return ht.rect(t,u)},r}var ole=F(()=>{"use strict";Sm();Kt();nr();o(sle,"labelRect")});async function lle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=i,s=t.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=(t?.height??u.height)+a,d=(t?.width??u.width)+s,f=[{x:0,y:0},{x:d+3*h/6,y:0},{x:d,y:-h},{x:-(3*h)/6,y:-h}],p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=ut.svg(l),y=dt(t,{}),v=or(f),x=g.path(v,y);p=l.insert(()=>x,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),m&&p.attr("style",m)}else p=as(l,d,h,f);return n&&p.attr("style",n),t.width=d,t.height=h,pt(t,p),t.intersect=function(g){return ht.polygon(t,f,g)},l}var cle=F(()=>{"use strict";Kt();nr();Jt();tr();Ch();o(lle,"lean_left")});async function ule(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=i,s=t.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=(t?.height??u.height)+a,d=(t?.width??u.width)+s,f=[{x:-3*h/6,y:0},{x:d,y:0},{x:d+3*h/6,y:-h},{x:0,y:-h}],p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=ut.svg(l),y=dt(t,{}),v=or(f),x=g.path(v,y);p=l.insert(()=>x,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),m&&p.attr("style",m)}else p=as(l,d,h,f);return n&&p.attr("style",n),t.width=d,t.height=h,pt(t,p),t.intersect=function(g){return ht.polygon(t,f,g)},l}var hle=F(()=>{"use strict";Kt();nr();Jt();tr();Ch();o(ule,"lean_right")});function dle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.label="",t.labelStyle=r;let i=e.insert("g").attr("class",Dt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,s=Math.max(35,t?.width??0),l=Math.max(35,t?.height??0),u=7,h=[{x:s,y:0},{x:0,y:l+u/2},{x:s-2*u,y:l+u/2},{x:0,y:2*l},{x:s,y:l-u/2},{x:2*u,y:l-u/2}],d=ut.svg(i),f=dt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let p=or(h),m=d.path(p,f),g=i.insert(()=>m,":first-child");return g.attr("class","outer-path"),a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),n&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${s/2},${-l})`),pt(t,g),t.intersect=function(y){return Z.info("lightningBolt intersect",t,y),ht.polygon(t,h,y)},i}var fle=F(()=>{"use strict";vt();Kt();Jt();tr();nr();Kt();o(dle,"lightningBolt")});async function gle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?24:i;if(t.width||t.height){let x=t.width??0;t.width=(t.width??0)-a,t.widthw,":first-child").attr("class","line"),y=l.insert(()=>C,":first-child"),y.attr("class","basic label-container"),v&&y.attr("style",v)}else{let x=vQe(0,0,d,m,f,p,g);y=l.insert("path",":first-child").attr("d",x).attr("class","basic label-container outer-path").attr("style",kn(v)).attr("style",n)}return y.attr("label-offset-y",p),y.attr("transform",`translate(${-d/2}, ${-(m/2+p)})`),pt(t,y),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+p-(u.y-(u.top??0))})`),t.intersect=function(x){let b=ht.rect(t,x),T=b.x-(t.x??0);if(f!=0&&(Math.abs(T)<(t.width??0)/2||Math.abs(T)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-p)){let k=p*p*(1-T*T/(f*f));k>0&&(k=Math.sqrt(k)),k=p-k,x.y-(t.y??0)>0&&(k=-k),b.y+=k}return b},l}var vQe,xQe,bQe,ple,mle,yle=F(()=>{"use strict";Kt();nr();Jt();tr();Qt();vQe=o((e,t,r,n,i,a,s)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),xQe=o((e,t,r,n,i,a,s)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),bQe=o((e,t,r,n,i,a)=>[`M${e-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),ple=10,mle=10;o(gle,"linedCylinder")});async function vle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?12:i;if(t.width||t.height){let k=t.width;t.width=(k??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-s*2,t.height<10&&(t.height=10)}let{shapeSvg:l,bbox:u,label:h}=await It(e,t,Dt(t)),d=(t?.width?t?.width:u.width)+(a??0)*2,f=(t?.height?t?.height:u.height)+(s??0)*2,p=t.look==="neo"?f/4:f/8,m=f+p,{cssStyles:g}=t,y=ut.svg(l),v=dt(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let x=[{x:-d/2-d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:m/2},...fl(-d/2-d/2*.1,m/2,d/2+d/2*.1,m/2,p,.8),{x:d/2+d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:-m/2},{x:-d/2,y:-m/2},{x:-d/2,y:m/2*1.1},{x:-d/2,y:-m/2}],b=y.polygon(x.map(k=>[k.x,k.y]),v),T=l.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",n),T.attr("transform",`translate(0,${-p/2})`),h.attr("transform",`translate(${-d/2+(t.padding??0)+d/2*.1/2-(u.x-(u.left??0))},${-f/2+(t.padding??0)-p/2-(u.y-(u.top??0))})`),pt(t,T),t.intersect=function(k){return ht.polygon(t,x,k)},l}var xle=F(()=>{"use strict";Kt();nr();tr();Jt();o(vle,"linedWaveEdgedRect")});async function ble(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?12:i,l=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*l,10),t.height=Math.max((t?.height??0)-s*2-2*l,10));let{shapeSvg:u,bbox:h,label:d}=await It(e,t,Dt(t)),f=(t?.width?t?.width:h.width)+a*2+2*l,p=(t?.height?t?.height:h.height)+s*2+2*l,m=f-2*l,g=p-2*l,y=-m/2,v=-g/2,{cssStyles:x}=t,b=ut.svg(u),T=dt(t,{}),k=[{x:y-l,y:v+l},{x:y-l,y:v+g+l},{x:y+m-l,y:v+g+l},{x:y+m-l,y:v+g},{x:y+m,y:v+g},{x:y+m,y:v+g-l},{x:y+m+l,y:v+g-l},{x:y+m+l,y:v-l},{x:y+l,y:v-l},{x:y+l,y:v},{x:y,y:v},{x:y,y:v+l}],C=[{x:y,y:v+l},{x:y+m-l,y:v+l},{x:y+m-l,y:v+g},{x:y+m,y:v+g},{x:y+m,y:v},{x:y,y:v}];t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let w=or(k),S=b.path(w,T),R=or(C),L=b.path(R,T);t.look!=="handDrawn"&&(S=UP(S),L=UP(L));let N=u.insert("g",":first-child");return N.insert(()=>S),N.insert(()=>L),N.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",x),n&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",n),d.attr("transform",`translate(${-(h.width/2)-l-(h.x-(h.left??0))}, ${-(h.height/2)+l-(h.y-(h.top??0))})`),pt(t,N),t.intersect=function(I){return ht.polygon(t,k,I)},u}var Tle=F(()=>{"use strict";Kt();Jt();tr();nr();o(ble,"multiRect")});async function Cle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await It(e,t,Dt(t)),l=t.padding??0,u=t.look==="neo"?16:l,h=t.look==="neo"?12:l,d=!0;(t.width||t.height)&&(d=!1,t.width=(t?.width??0)-u*2,t.height=(t?.height??0)-h*3);let f=Math.max(a.width,t?.width??0)+u*2,p=Math.max(a.height,t?.height??0)+h*3,m=t.look==="neo"?p/4:p/8,g=p+(d?m/2:-m/2),y=-f/2,v=-g/2,x=10,{cssStyles:b}=t,T=fl(y-x,v+g+x,y+f-x,v+g+x,m,.8),k=T?.[T.length-1],C=[{x:y-x,y:v+x},{x:y-x,y:v+g+x},...T,{x:y+f-x,y:k.y-x},{x:y+f,y:k.y-x},{x:y+f,y:k.y-2*x},{x:y+f+x,y:k.y-2*x},{x:y+f+x,y:v-x},{x:y+x,y:v-x},{x:y+x,y:v},{x:y,y:v},{x:y,y:v+x}],w=[{x:y,y:v+x},{x:y+f-x,y:v+x},{x:y+f-x,y:k.y-x},{x:y+f,y:k.y-x},{x:y+f,y:v},{x:y,y:v}],S=ut.svg(i),R=dt(t,{});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");let L=or(C),N=S.path(L,R),I=or(w),_=S.path(I,R),A=i.insert(()=>N,":first-child");return A.insert(()=>_),A.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",b),n&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",n),A.attr("transform",`translate(0,${-m/2})`),s.attr("transform",`translate(${-(a.width/2)-x-(a.x-(a.left??0))}, ${-(a.height/2)+x-m/2-(a.y-(a.top??0))})`),pt(t,A),t.intersect=function(M){return ht.polygon(t,C,M)},i}var wle=F(()=>{"use strict";Kt();nr();tr();Jt();o(Cle,"multiWaveEdgedRectangle")});async function kle(e,t,{config:{themeVariables:r}}){let{labelStyles:n,nodeStyles:i}=ct(t);t.labelStyle=n,t.useHtmlLabels||Gr(_t())||(t.centerLabel=!0);let{shapeSvg:s,bbox:l,label:u}=await It(e,t,Dt(t)),h=Math.max(l.width+(t.padding??0)*2,t?.width??0),d=Math.max(l.height+(t.padding??0)*2,t?.height??0),f=-h/2,p=-d/2,{cssStyles:m}=t,g=ut.svg(s),y=dt(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=g.rectangle(f,p,h,d,y),x=s.insert(()=>v,":first-child");return x.attr("class","basic label-container outer-path"),u.attr("class","label noteLabel"),m&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),pt(t,x),t.intersect=function(b){return ht.rect(t,b)},s}var Sle=F(()=>{"use strict";tr();nr();Jt();Kt();ur();ur();o(kle,"note")});async function Ele(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await It(e,t,Dt(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),u=s+l,h=.5,d=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],f,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=ut.svg(i),g=dt(t,{}),y=TQe(0,0,u),v=m.path(y,g);f=i.insert(()=>v,":first-child").attr("transform",`translate(${-u/2+h}, ${u/2})`),p&&f.attr("style",p)}else f=as(i,u,u,d),f.attr("transform",`translate(${-u/2+h}, ${u/2})`);return n&&f.attr("style",n),pt(t,f),t.calcIntersect=function(m,g){let y=m.width,v=[{x:y/2,y:0},{x:y,y:-y/2},{x:y/2,y:-y},{x:0,y:-y/2}],x=ht.polygon(m,v,g);return{x:x.x-.5,y:x.y-.5}},t.intersect=function(m){return this.calcIntersect(t,m)},i}var TQe,Ale=F(()=>{"use strict";Kt();nr();Jt();tr();Ch();TQe=o((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");o(Ele,"question")});async function Rle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?21:i??0,s=t.look==="neo"?12:i??0,{shapeSvg:l,bbox:u,label:h}=await It(e,t,Dt(t)),d=(t?.width??u.width)+(t.look==="neo"?a*2:a),f=(t?.height??u.height)+(t.look==="neo"?s*2:s),p=-d/2,m=-f/2,g=m/2,y=[{x:p+g,y:m},{x:p,y:0},{x:p+g,y:-m},{x:-p,y:-m},{x:-p,y:m}],{cssStyles:v}=t,x=ut.svg(l),b=dt(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let T=or(y),k=x.path(T,b),C=l.insert(()=>k,":first-child");return C.attr("class","basic label-container outer-path"),v&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",v),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(${-g/2},0)`),h.attr("transform",`translate(${-g/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),pt(t,C),t.intersect=function(w){return ht.polygon(t,y,w)},l}var _le=F(()=>{"use strict";Kt();nr();Jt();tr();o(Rle,"rect_left_inv_arrow")});var CQe,sc,G4=F(()=>{"use strict";ur();Xt();Ls();CQe=o(async(e,t,r,n=!1,i=!1)=>{let a=t||"";typeof a=="object"&&(a=a[0]);let s=Ae(),l=Gr(s);return await Pn(e,a,{style:r,isTitle:n,useHtmlLabels:l,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},s)},"createLabel"),sc=CQe});async function Lle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i;t.cssClasses?i="node "+t.cssClasses:i="node default";let a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=a.insert("g"),l=a.insert("g").attr("class","label").attr("style",n),u=t.description,h=t.label,d=await sc(l,h,t.labelStyle,!0,!0),f={width:0,height:0};if(Gr(Ae())){let R=d.children[0],L=et(d);f=R.getBoundingClientRect(),L.attr("width",f.width),L.attr("height",f.height)}Z.info("Text 2",u);let p=u||[],m=d.getBBox(),g=await sc(l,Array.isArray(p)?p.join("
"):p,t.labelStyle,!0,!0),y=g.children[0],v=et(g);f=y.getBoundingClientRect(),v.attr("width",f.width),v.attr("height",f.height);let x=(t.padding||0)/2;et(g).attr("transform","translate( "+(f.width>m.width?0:(m.width-f.width)/2)+", "+(m.height+x+5)+")"),et(d).attr("transform","translate( "+(f.width(Z.debug("Rough node insert CXC",N),I),":first-child"),w=a.insert(()=>(Z.debug("Rough node insert CXC",N),N),":first-child")}else w=s.insert("rect",":first-child"),S=s.insert("line"),w.attr("class","outer title-state").attr("style",n).attr("x",-f.width/2-x).attr("y",-f.height/2-x).attr("width",f.width+(t.padding||0)).attr("height",f.height+(t.padding||0)),S.attr("class","divider").attr("x1",-f.width/2-x).attr("x2",f.width/2+x).attr("y1",-f.height/2-x+m.height+x).attr("y2",-f.height/2-x+m.height+x);return pt(t,w),t.intersect=function(R){return ht.rect(t,R)},a}var Dle=F(()=>{"use strict";$r();Kt();G4();nr();Jt();tr();Xt();km();vt();ur();o(Lle,"rectWithTitle")});async function Ile(e,t,{config:{themeVariables:r}}){let n=r?.radius??5,i={rx:n,ry:n,classes:"",labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return ac(e,t,i)}var Mle=F(()=>{"use strict";Sm();o(Ile,"roundedRect")});async function Nle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0,{shapeSvg:s,bbox:l,label:u}=await It(e,t,Dt(t)),h=(t?.width??l.width)+i*2+(t.look==="neo"?Em:Em*2),d=(t?.height??l.height)+a*2,f=h-Em,p=d,m=Em-h/2,g=-d/2,{cssStyles:y}=t,v=ut.svg(s),x=dt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=[{x:m,y:g},{x:m+f,y:g},{x:m+f,y:g+p},{x:m-Em,y:g+p},{x:m-Em,y:g},{x:m,y:g},{x:m,y:g+p}],T=v.polygon(b.map(C=>[C.x,C.y]),x),k=s.insert(()=>T,":first-child");return k.attr("class","basic label-container outer-path").attr("style",kn(y)),n&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",n),y&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",n),u.attr("transform",`translate(${Em/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),pt(t,k),t.intersect=function(C){return ht.rect(t,C)},s}var Em,Ple=F(()=>{"use strict";Kt();nr();Jt();tr();Qt();Em=8;o(Nle,"shadedProcess")});async function Ole(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-s*2,10));let{shapeSvg:l,bbox:u,label:h}=await It(e,t,Dt(t)),d=(t?.width?t?.width:u.width)+a*2,f=((t?.height?t?.height:u.height)+s*2)*1.5,p=d,m=f/1.5,g=-p/2,y=-m/2,{cssStyles:v}=t,x=ut.svg(l),b=dt(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let T=[{x:g,y},{x:g,y:y+m},{x:g+p,y:y+m},{x:g+p,y:y-m/2}],k=or(T),C=x.path(k,b),w=l.insert(()=>C,":first-child");return w.attr("class","basic label-container outer-path"),v&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",v),n&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",n),w.attr("transform",`translate(0, ${m/4})`),h.attr("transform",`translate(${-p/2+(t.padding??0)-(u.x-(u.left??0))}, ${-m/4+(t.padding??0)-(u.y-(u.top??0))})`),pt(t,w),t.intersect=function(S){return ht.polygon(t,T,S)},l}var Ble=F(()=>{"use strict";Kt();nr();Jt();tr();o(Ole,"slopedRect")});async function $le(e,t){let r=t.padding??0,n=t.look==="neo"?16:r*2,i=t.look==="neo"?12:r,a={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??n,labelPaddingY:i};return ac(e,t,a)}var Fle=F(()=>{"use strict";Sm();o($le,"squareRect")});async function zle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?20:i,s=t.look==="neo"?12:i,{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=u.height+(t.look==="neo"?s*2:s),d=u.width+h/4+(t.look==="neo"?a*2:a),f=h/2,{cssStyles:p}=t,m=ut.svg(l),g=dt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=[{x:-d/2+f,y:-h/2},{x:d/2-f,y:-h/2},...Cm(-d/2+f,0,f,50,90,270),{x:d/2-f,y:h/2},...Cm(d/2-f,0,f,50,270,450)],v=or(y),x=m.path(v,g),b=l.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",p),n&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),pt(t,b),t.intersect=function(T){return ht.polygon(t,y,T)},l}var Gle=F(()=>{"use strict";Kt();nr();Jt();tr();o(zle,"stadium")});async function Vle(e,t){let r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5,classes:"flowchart-node"};return ac(e,t,r)}var Wle=F(()=>{"use strict";Sm();o(Vle,"state")});function qle(e,t,{config:{themeVariables:r}}){let{labelStyles:n,nodeStyles:i}=ct(t);t.labelStyle=n;let{cssStyles:a}=t,{lineColor:s,stateBorder:l,nodeBorder:u,nodeShadow:h}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let d=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),f=ut.svg(d),p=dt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let m=f.circle(0,0,t.width,{...p,stroke:s,strokeWidth:2}),g=l??u,y=(t.width??0)*5/14,v=f.circle(0,0,y,{...p,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),x=d.insert(()=>m,":first-child");if(x.insert(()=>v),t.look!=="handDrawn"&&x.attr("class","outer-path"),a&&x.selectAll("path").attr("style",a),i&&x.selectAll("path").attr("style",i),t.width<25&&h&&t.look!=="handDrawn"){let b=e.node()?.ownerSVGElement?.id??"",T=b?`${b}-drop-shadow-small`:"drop-shadow-small";x.attr("style",`filter:url(#${T})`)}return pt(t,x),t.intersect=function(b){return ht.circle(t,(t.width??0)/2,b)},d}var Hle=F(()=>{"use strict";tr();nr();Jt();Kt();o(qle,"stateEnd")});function Ule(e,t,{config:{themeVariables:r}}){let{lineColor:n,nodeShadow:i}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s;if(t.look==="handDrawn"){let u=ut.svg(a).circle(0,0,t.width,qse(n));s=a.insert(()=>u),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&i&&t.look!=="handDrawn"){let l=e.node()?.ownerSVGElement?.id??"",u=l?`${l}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${u})`)}return pt(t,s),t.intersect=function(l){return ht.circle(t,(t.width??7)/2,l)},a}var Yle=F(()=>{"use strict";tr();nr();Jt();Kt();o(Ule,"stateStart")});async function jle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t?.padding??8,a=t.look==="neo"?28:i,s=t.look==="neo"?12:i,{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=(t?.width??u.width)+2*Gy+a,d=(t?.height??u.height)+s,f=h-2*Gy,p=d,m=-h/2,g=-d/2,y=[{x:0,y:0},{x:f,y:0},{x:f,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:f+8,y:0},{x:f+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if(t.look==="handDrawn"){let v=ut.svg(l),x=dt(t,{}),b=v.rectangle(m,g,f+16,p,x),T=v.line(m+Gy,g,m+Gy,g+p,x),k=v.line(m+Gy+f,g,m+Gy+f,g+p,x);l.insert(()=>T,":first-child"),l.insert(()=>k,":first-child");let C=l.insert(()=>b,":first-child"),{cssStyles:w}=t;C.attr("class","basic label-container").attr("style",kn(w)),pt(t,C)}else{let v=as(l,f,p,y);n&&v.attr("style",n),pt(t,v)}return t.intersect=function(v){return ht.polygon(t,y,v)},l}var Gy,Xle=F(()=>{"use strict";Kt();nr();Jt();tr();Ch();Qt();Gy=8;o(jle,"subroutine")});async function Kle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-s*2,10),t.width=Math.max((t?.width??0)-a*2-dO*(t.height+s*2),10));let{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=(t?.height?t?.height:u.height)+s*2,d=dO*h,f=dO*h,m=(t?.width?t?.width:u.width)+a*2+d-d,g=h,y=-m/2,v=-g/2,{cssStyles:x}=t,b=ut.svg(l),T=dt(t,{}),k=[{x:y-d/2,y:v},{x:y+m+d/2,y:v},{x:y+m+d/2,y:v+g},{x:y-d/2,y:v+g}],C=[{x:y+m-d/2,y:v+g},{x:y+m+d/2,y:v+g},{x:y+m+d/2,y:v+g-f}];t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let w=or(k),S=b.path(w,T),R=or(C),L=b.path(R,{...T,fillStyle:"solid"}),N=l.insert(()=>L,":first-child");return N.insert(()=>S,":first-child"),N.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",x),n&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",n),pt(t,N),t.intersect=function(I){return ht.polygon(t,k,I)},l}var dO,Zle=F(()=>{"use strict";Kt();Jt();tr();nr();dO=.2;o(Kle,"taggedRect")});async function Qle(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await It(e,t,Dt(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=u/8,d=.2*l,f=.2*u,p=u+h,{cssStyles:m}=t,g=ut.svg(i),y=dt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=[{x:-l/2-l/2*.1,y:p/2},...fl(-l/2-l/2*.1,p/2,l/2+l/2*.1,p/2,h,.8),{x:l/2+l/2*.1,y:-p/2},{x:-l/2-l/2*.1,y:-p/2}],x=-l/2+l/2*.1,b=-p/2-f*.4,T=[{x:x+l-d,y:(b+u)*1.3},{x:x+l,y:b+u-f},{x:x+l,y:(b+u)*.9},...fl(x+l,(b+u)*1.25,x+l-d,(b+u)*1.3,-u*.02,.5)],k=or(v),C=g.path(k,y),w=or(T),S=g.path(w,{...y,fillStyle:"solid"}),R=i.insert(()=>S,":first-child");return R.insert(()=>C,":first-child"),R.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",n),R.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))},${-u/2+(t.padding??0)-h/2-(a.y-(a.top??0))})`),pt(t,R),t.intersect=function(L){return ht.polygon(t,v,L)},i}var Jle=F(()=>{"use strict";Kt();nr();tr();Jt();o(Qle,"taggedWaveEdgedRectangle")});async function ece(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await It(e,t,Dt(t)),s=Math.max(a.width+(t.padding??0),t?.width||0),l=Math.max(a.height+(t.padding??0),t?.height||0),u=-s/2,h=-l/2,d=i.insert("rect",":first-child");return d.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",u).attr("y",h).attr("width",s).attr("height",l),pt(t,d),t.intersect=function(f){return ht.rect(t,f)},i}var tce=F(()=>{"use strict";Kt();nr();Jt();o(ece,"text")});async function ice(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?12:i/2;if(t.width||t.height){let y=t.height??0;t.height=(t.height??0)-a,t.heightT,":first-child"),g=s.insert(()=>b,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{let y=wQe(0,0,p,h,f,d);g=s.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",kn(m)).attr("style",n),g.attr("class","basic label-container outer-path"),m&&g.selectAll("path").attr("style",m),n&&g.selectAll("path").attr("style",n)}return g.attr("label-offset-x",f),g.attr("transform",`translate(${-p/2}, ${h/2} )`),u.attr("transform",`translate(${-(l.width/2)-f-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),pt(t,g),t.intersect=function(y){let v=ht.rect(t,y),x=v.y-(t.y??0);if(d!=0&&(Math.abs(x)<(t.height??0)/2||Math.abs(x)==(t.height??0)/2&&Math.abs(v.x-(t.x??0))>(t.width??0)/2-f)){let b=f*f*(1-x*x/(d*d));b!=0&&(b=Math.sqrt(Math.abs(b))),b=f-b,y.x-(t.x??0)>0&&(b=-b),v.x+=b}return v},s}var wQe,kQe,SQe,rce,nce,ace=F(()=>{"use strict";Kt();Jt();tr();nr();Qt();wQe=o((e,t,r,n,i,a)=>`M${e},${t}
+ a${i},${a} 0,0,1 0,${-n}
+ l${r},0
+ a${i},${a} 0,0,1 0,${n}
+ M${r},${-n}
+ a${i},${a} 0,0,0 0,${n}
+ l${-r},0`,"createCylinderPathD"),kQe=o((e,t,r,n,i,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${i},${a} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${a} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),SQe=o((e,t,r,n,i,a)=>[`M${e+r/2},${-n/2}`,`a${i},${a} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD"),rce=5,nce=10;o(ice,"tiltedCylinder")});async function sce(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=(t.look==="neo",i),s=t.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=(t?.height??u.height)+a,d=(t?.width??u.width)+s,f=[{x:-3*h/6,y:0},{x:d+3*h/6,y:0},{x:d,y:-h},{x:0,y:-h}],p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=ut.svg(l),y=dt(t,{}),v=or(f),x=g.path(v,y);p=l.insert(()=>x,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),m&&p.attr("style",m)}else p=as(l,d,h,f);return n&&p.attr("style",n),t.width=d,t.height=h,pt(t,p),t.intersect=function(g){return ht.polygon(t,f,g)},l}var oce=F(()=>{"use strict";Kt();nr();Jt();tr();Ch();o(sce,"trapezoid")});async function lce(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?12:i,l=15,u=5;(t.width||t.height)&&(t.height=(t.height??0)-s*2,t.heightb,":first-child");return T.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",m),n&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",n),pt(t,T),t.intersect=function(k){return ht.polygon(t,v,k)},h}var cce=F(()=>{"use strict";Kt();nr();Jt();tr();o(lce,"trapezoidalPentagon")});async function dce(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?i*2:i;(t.width||t.height)&&(t.width=((t?.width??0)-a)/2,t.widthb,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",g),n&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",n),t.width=d,t.height=f,pt(t,T),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${f/2-(l.height+(t.padding??0)/(h?2:1)-(l.y-(l.top??0)))})`),t.intersect=function(k){return Z.info("Triangle intersect",t,m,k),ht.polygon(t,m,k)},s}var uce,hce,fce=F(()=>{"use strict";vt();Kt();nr();Jt();tr();Kt();Vr();Xt();uce=10,hce=10;o(dce,"triangle")});async function pce(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?12:i,l=!0;(t.width||t.height)&&(l=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-s*2,t.height<10&&(t.height=10));let{shapeSvg:u,bbox:h,label:d}=await It(e,t,Dt(t)),f=(t?.width?t?.width:h.width)+(a??0)*2,p=(t?.height?t?.height:h.height)+(s??0)*2,m=t.look==="neo"?p/4:p/8,g=p+(l?m:-m),{cssStyles:y}=t,x=14-f,b=x>0?x/2:0,T=ut.svg(u),k=dt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let C=[{x:-f/2-b,y:g/2},...fl(-f/2-b,g/2,f/2+b,g/2,m,.8),{x:f/2+b,y:-g/2},{x:-f/2-b,y:-g/2}],w=or(C),S=T.path(w,k),R=u.insert(()=>S,":first-child");return R.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",y),n&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",n),R.attr("transform",`translate(0,${-m/2})`),d.attr("transform",`translate(${-f/2+(t.padding??0)-(h.x-(h.left??0))},${-p/2+(t.padding??0)-m-(h.y-(h.top??0))})`),pt(t,R),t.intersect=function(L){return ht.polygon(t,C,L)},u}var mce=F(()=>{"use strict";Kt();nr();tr();Jt();o(pce,"waveEdgedRectangle")});async function gce(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.padding??0,a=t.look==="neo"?16:i,s=t.look==="neo"?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let k=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-s-k*(20/9)),t.width=t.width-a*2}let{shapeSvg:l,bbox:u}=await It(e,t,Dt(t)),h=(t?.width?t?.width:u.width)+a*2,d=(t?.height?t?.height:u.height)+s,f=d/8,p=d+f*2,{cssStyles:m}=t,g=ut.svg(l),y=dt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=[{x:-h/2,y:p/2},...fl(-h/2,p/2,h/2,p/2,f,1),{x:h/2,y:-p/2},...fl(h/2,-p/2,-h/2,-p/2,f,-1)],x=or(v),b=g.path(x,y),T=l.insert(()=>b,":first-child");return T.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",n),pt(t,T),t.intersect=function(k){return ht.polygon(t,v,k)},l}var yce=F(()=>{"use strict";Kt();nr();Jt();tr();o(gce,"waveRectangle")});async function vce(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-Ri,10),t.height=Math.max((t?.height??0)-a*2-Ri,10));let{shapeSvg:s,bbox:l,label:u}=await It(e,t,Dt(t)),h=(t?.width?t?.width:l.width)+i*2+Ri,d=(t?.height?t?.height:l.height)+a*2+Ri,f=h-Ri,p=d-Ri,m=-f/2,g=-p/2,{cssStyles:y}=t,v=ut.svg(s),x=dt(t,{}),b=[{x:m-Ri,y:g-Ri},{x:m-Ri,y:g+p},{x:m+f,y:g+p},{x:m+f,y:g-Ri}],T=`M${m-Ri},${g-Ri} L${m+f},${g-Ri} L${m+f},${g+p} L${m-Ri},${g+p} L${m-Ri},${g-Ri}
+ M${m-Ri},${g} L${m+f},${g}
+ M${m},${g-Ri} L${m},${g+p}`;t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let k=v.path(T,x),C=s.insert(()=>k,":first-child");return C.attr("transform",`translate(${Ri/2}, ${Ri/2})`),C.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",y),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),u.attr("transform",`translate(${-(l.width/2)+Ri/2-(l.x-(l.left??0))}, ${-(l.height/2)+Ri/2-(l.y-(l.top??0))})`),pt(t,C),t.intersect=function(w){return ht.polygon(t,b,w)},s}var Ri,xce=F(()=>{"use strict";Kt();Jt();tr();nr();Ri=10;o(vce,"windowPane")});async function fO(e,t){let r=t;r.alias&&(t.label=r.alias);let{theme:n,themeVariables:i}=_t(),{rowEven:a,rowOdd:s,nodeBorder:l,borderColorArray:u}=i;if(t.look==="handDrawn"){let{themeVariables:Q}=_t(),{background:U}=Q,oe={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${U}`]};await fO(e,oe)}let h=_t();t.useHtmlLabels=h.htmlLabels;let d=h.er?.diagramPadding??10,f=h.er?.entityPadding??6,{cssStyles:p}=t,{labelStyles:m,nodeStyles:g}=ct(t);if(r.attributes.length===0&&t.label){let Q={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5,classes:""};Ca(t.label,h)+Q.labelPaddingX*20){let Q=x.width+d*2-(C+w+S+R);C+=Q/I,w+=Q/I,S>0&&(S+=Q/I),R>0&&(R+=Q/I)}let A=C+w+S+R,M=ut.svg(v),D=dt(t,{});t.look!=="handDrawn"&&(D.roughness=0,D.fillStyle="solid");let P=0;k.length>0&&(P=k.reduce((Q,U)=>Q+(U?.rowHeight??0),0));let B=Math.max(_.width+d*2,t?.width||0,A),O=Math.max((P??0)+x.height,t?.height||0),$=-B/2,V=-O/2;if(v.selectAll("g:not(:first-child)").each((Q,U,oe)=>{let te=et(oe[U]),le=te.attr("transform"),ie=0,ae=0;if(le){let be=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(le);be&&(ie=parseFloat(be[1]),ae=parseFloat(be[2]),te.attr("class").includes("attribute-name")?ie+=C:te.attr("class").includes("attribute-keys")?ie+=C+w:te.attr("class").includes("attribute-comment")&&(ie+=C+w+S))}te.attr("transform",`translate(${$+d/2+ie}, ${ae+V+x.height+f/2})`)}),v.select(".name").attr("transform","translate("+-x.width/2+", "+(V+f/2)+")"),n!=null&&bce.has(n)){let Q=r.colorIndex??0;v.attr("data-color-id",`color-${Q%u.length}`)}let G=M.rectangle($,V,B,O,D),z=v.insert(()=>G,":first-child").attr("class","outer-path").attr("style",p.join(""));T.push(0);for(let[Q,U]of k.entries()){let te=(Q+1)%2===0&&U.yOffset!==0,le=M.rectangle($,x.height+V+U?.yOffset,B,U?.rowHeight,{...D,fill:te?a:s,stroke:l});v.insert(()=>le,"g.label").attr("style",p.join("")).attr("class",`row-rect-${te?"even":"odd"}`)}let W=1e-4,H=F2($,x.height+V,B+$,x.height+V,W),j=M.polygon(H.map(Q=>[Q.x,Q.y]),D);if(v.insert(()=>j).attr("class","divider"),H=F2(C+$,x.height+V,C+$,O+V,W),j=M.polygon(H.map(Q=>[Q.x,Q.y]),D),v.insert(()=>j).attr("class","divider"),L){let Q=C+w+$;H=F2(Q,x.height+V,Q,O+V,W),j=M.polygon(H.map(U=>[U.x,U.y]),D),v.insert(()=>j).attr("class","divider")}if(N){let Q=C+w+S+$;H=F2(Q,x.height+V,Q,O+V,W),j=M.polygon(H.map(U=>[U.x,U.y]),D),v.insert(()=>j).attr("class","divider")}for(let Q of T){let U=x.height+V+Q;H=F2($,U,B+$,U,W),j=M.polygon(H.map(oe=>[oe.x,oe.y]),D),v.insert(()=>j).attr("class","divider")}if(pt(t,z),g&&t.look!=="handDrawn")if(n!=null&&EQe.has(n))v.selectAll("path").attr("style",g);else{let U=g.split(";")?.filter(oe=>oe.includes("stroke"))?.map(oe=>`${oe}`).join("; ");v.selectAll("path").attr("style",U??""),v.selectAll(".row-rect-even path").attr("style",g)}return t.intersect=function(Q){return ht.rect(t,Q)},v}async function $2(e,t,r,n=0,i=0,a=[],s=""){let l=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",s);t!==qc(t)&&(t=qc(t),t=t.replaceAll("<","<").replaceAll(">",">"));let u=l.node().appendChild(await Pn(l,t,{width:Ca(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let d=u.children[0];for(d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let h=u.getBBox();if(ya(r.htmlLabels)){let d=u.children[0];d.style.textAlign="start";let f=et(u);h=d.getBoundingClientRect(),f.attr("width",h.width),f.attr("height",h.height)}return h}function F2(e,t,r,n,i){return e===r?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:r+i/2,y:n},{x:r-i/2,y:n}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:r,y:n+i/2},{x:r,y:n-i/2}]}var bce,EQe,Tce=F(()=>{"use strict";Kt();nr();Jt();tr();Sm();ur();Ls();Vr();$r();Qt();bce=new Set(["redux-color","redux-dark-color"]),EQe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);o(fO,"erBox");o($2,"addText");o(F2,"lineToPolygon")});async function Cce(e,t,r,n,i=r.class.padding??12){let a=n?0:3,s=e.insert("g").attr("class",Dt(t)).attr("id",t.domId||t.id),l=null,u=null,h=null,d=null,f=0,p=0,m=0;if(l=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let b=t.annotations[0];await V4(l,{text:`\xAB${b}\xBB`},0),f=l.node().getBBox().height}u=s.insert("g").attr("class","label-group text"),await V4(u,t,0,["font-weight: bolder"]);let g=u.node().getBBox();p=g.height,h=s.insert("g").attr("class","members-group text");let y=0;for(let b of t.members){let T=await V4(h,b,y,[b.parseClassifier()]);y+=T+a}m=h.node().getBBox().height,m<=0&&(m=i/2),d=s.insert("g").attr("class","methods-group text");let v=0;for(let b of t.methods){let T=await V4(d,b,v,[b.parseClassifier()]);v+=T+a}let x=s.node().getBBox();if(l!==null){let b=l.node().getBBox();l.attr("transform",`translate(${-b.width/2})`)}return u.attr("transform",`translate(${-g.width/2}, ${f})`),x=s.node().getBBox(),h.attr("transform",`translate(0, ${f+p+i*2})`),x=s.node().getBBox(),d.attr("transform",`translate(0, ${f+p+(m?m+i*4:i*2)})`),x=s.node().getBBox(),{shapeSvg:s,bbox:x}}async function V4(e,t,r,n=[]){let i=e.insert("g").attr("class","label").attr("style",n.join("; ")),a=_t(),s="useHtmlLabels"in t?t.useHtmlLabels:ya(a.htmlLabels)??!0,l="";"text"in t?l=t.text:l=t.label,!s&&l.startsWith("\\")&&(l=l.substring(1)),ni(l)&&(s=!0);let u=await Pn(i,ub(Rs(l)),{width:Ca(l,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a),h,d=1;if(s){let f=u.children[0],p=et(u);d=f.innerHTML.split("
").length,f.innerHTML.includes("")&&(d+=f.innerHTML.split("").length-1);let m=f.getElementsByTagName("img");if(m){let g=l.replace(/
]*>/g,"").trim()==="";await Promise.all([...m].map(y=>new Promise(v=>{function x(){if(y.style.display="flex",y.style.flexDirection="column",g){let b=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,k=parseInt(b,10)*5+"px";y.style.minWidth=k,y.style.maxWidth=k}else y.style.width="100%";v(y)}o(x,"setupImage"),setTimeout(()=>{y.complete&&x()}),y.addEventListener("error",x),y.addEventListener("load",x)})))}h=f.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}else{n.includes("font-weight: bolder")&&et(u).selectAll("tspan").attr("font-weight",""),d=u.children.length;let f=u.children[0];(u.textContent===""||u.textContent.includes(">"))&&(f.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(f.textContent=f.textContent[0]+" "+f.textContent.substring(1))),f.textContent==="undefined"&&(f.textContent=""),h=u.getBBox()}return i.attr("transform","translate(0,"+(-h.height/(2*d)+r)+")"),h.height}var wce=F(()=>{"use strict";$r();ur();Kt();Qt();Xt();Ls();Vr();o(Cce,"textHelper");o(V4,"addText")});async function kce(e,t){let r=Ae(),{themeVariables:n}=r,{useGradient:i}=n,a=r.class.padding??12,s=a,l=t.useHtmlLabels??ya(r.htmlLabels)??!0,u=t;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];let{shapeSvg:h,bbox:d}=await Cce(e,t,r,l,s),{labelStyles:f,nodeStyles:p}=ct(t);t.labelStyle=f,t.cssStyles=u.styles||"";let m=u.styles?.join(";")||p||"";t.cssStyles||(t.cssStyles=m.replaceAll("!important","").split(";"));let g=u.members.length===0&&u.methods.length===0&&!r.class?.hideEmptyMembersBox,y=ut.svg(h),v=dt(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let x=Math.max(t.width??0,d.width),b=Math.max(t.height??0,d.height),T=(t.height??0)>d.height;u.members.length===0&&u.methods.length===0?b+=s:u.members.length>0&&u.methods.length===0&&(b+=s*2);let k=-x/2,C=-b/2,w=g?a*2:u.members.length===0&&u.methods.length===0?-a:0;T&&(w=a*2);let S=y.rectangle(k-a,C-a-(g?a:u.members.length===0&&u.methods.length===0?-a/2:0),x+2*a,b+2*a+w,v),R=h.insert(()=>S,":first-child");R.attr("class","basic label-container outer-path");let L=R.node().getBBox(),N=h.select(".annotation-group").node().getBBox().height-(g?a/2:0)||0,I=h.select(".label-group").node().getBBox().height-(g?a/2:0)||0,_=h.select(".members-group").node().getBBox().height-(g?a/2:0)||0,A=(N+I+C+a-(C-a-(g?a:u.members.length===0&&u.methods.length===0?-a/2:0)))/2;if(h.selectAll(".text").each((M,D,P)=>{let B=et(P[D]),O=B.attr("transform"),$=0;if(O){let W=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(O);W&&($=parseFloat(W[2]))}let V=$+C+a-(g?a:u.members.length===0&&u.methods.length===0?-a/2:0);if(B.attr("class").includes("methods-group")){let z=Math.max(_,s/2);T?V=Math.max(A,N+I+z+C+s*2+a)+s*2:V=N+I+z+C+s*4+a}u.members.length===0&&u.methods.length===0&&r.class?.hideEmptyMembersBox&&(u.annotations.length>0?V=$-s:V=$),l||(V-=4);let G=k;(B.attr("class").includes("label-group")||B.attr("class").includes("annotation-group"))&&(G=-B.node()?.getBBox().width/2||0,h.selectAll("text").each(function(z,W,H){window.getComputedStyle(H[W]).textAnchor==="middle"&&(G=0)})),B.attr("transform",`translate(${G}, ${V})`)}),u.members.length>0||u.methods.length>0||g){let M=N+I+C+a,D=y.line(L.x,M,L.x+L.width,M+.001,v);h.insert(()=>D).attr("class",`divider${t.look==="neo"&&!i?" neo-line":""}`).attr("style",m)}if(g||u.members.length>0||u.methods.length>0){let M=N+I+_+C+s*2+a,D=y.line(L.x,T?Math.max(A,M):M,L.x+L.width,(T?Math.max(A,M):M)+.001,v);h.insert(()=>D).attr("class",`divider${t.look==="neo"&&!i?" neo-line":""}`).attr("style",m)}if(u.look!=="handDrawn"&&h.selectAll("path").attr("style",m),R.select(":nth-child(2)").attr("style",m),h.selectAll(".divider").select("path").attr("style",m),t.labelStyle?h.selectAll("span").attr("style",t.labelStyle):h.selectAll("span").attr("style",m),!l){let M=RegExp(/color\s*:\s*([^;]*)/),D=M.exec(m);if(D){let P=D[0].replace("color","fill");h.selectAll("tspan").attr("style",P)}else if(f){let P=M.exec(f);if(P){let B=P[0].replace("color","fill");h.selectAll("tspan").attr("style",B)}}}return pt(t,R),t.intersect=function(M){return ht.rect(t,M)},h}var Sce=F(()=>{"use strict";Kt();Xt();$r();tr();Jt();nr();wce();Vr();o(kce,"classBox")});async function Ece(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let i=t,a=t,s=20,l=20,u="verifyMethod"in t,h=Dt(t),{themeVariables:d}=Ae(),{borderColorArray:f,requirementEdgeLabelBackground:p}=d,m=e.insert("g").attr("class",h).attr("id",t.domId??t.id),g;u?g=await wh(m,`<<${i.type}>>`,0,t.labelStyle):g=await wh(m,"<<Element>>",0,t.labelStyle);let y=g,v=await wh(m,i.name,y,t.labelStyle+"; font-weight: bold;");if(y+=v+l,u){let L=await wh(m,`${i.requirementId?`ID: ${i.requirementId}`:""}`,y,t.labelStyle);y+=L;let N=await wh(m,`${i.text?`Text: ${i.text}`:""}`,y,t.labelStyle);y+=N;let I=await wh(m,`${i.risk?`Risk: ${i.risk}`:""}`,y,t.labelStyle);y+=I,await wh(m,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,y,t.labelStyle)}else{let L=await wh(m,`${a.type?`Type: ${a.type}`:""}`,y,t.labelStyle);y+=L,await wh(m,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,y,t.labelStyle)}let x=(m.node()?.getBBox().width??200)+s,b=(m.node()?.getBBox().height??200)+s,T=-x/2,k=-b/2,C=ut.svg(m),w=dt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=C.rectangle(T,k,x,b,w),R=m.insert(()=>S,":first-child");if(R.attr("class","basic label-container outer-path").attr("style",n),f?.length){let L=t.colorIndex??0;m.attr("data-color-id",`color-${L%f.length}`)}if(m.selectAll(".label").each((L,N,I)=>{let _=et(I[N]),A=_.attr("transform"),M=0,D=0;if(A){let $=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(A);$&&(M=parseFloat($[1]),D=parseFloat($[2]))}let P=D-b/2,B=T+s/2;(N===0||N===1)&&(B=M),_.attr("transform",`translate(${B}, ${P+s})`)}),y>g+v+l){let L=k+g+v+l,N;if(t.look==="neo"){let A=[[T,L],[T+x,L],[T+x,L+.001],[T,L+.001]];N=C.polygon(A,w)}else N=C.line(T,L,T+x,L,w);m.insert(()=>N).attr("class","divider")}return pt(t,R),t.intersect=function(L){return ht.rect(t,L)},n&&t.look!=="handDrawn"&&(p||f?.length)&&m.selectAll("path").attr("style",n),m}async function wh(e,t,r,n=""){if(t==="")return 0;let i=e.insert("g").attr("class","label").attr("style",n),a=Ae(),s=a.htmlLabels??!0,l=await Pn(i,ub(Rs(t)),{width:Ca(t,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},a),u;if(s){let h=l.children[0],d=et(l);u=h.getBoundingClientRect(),d.attr("width",u.width),d.attr("height",u.height)}else{let h=l.children[0];for(let d of h.children)n&&d.setAttribute("style",n);u=l.getBBox(),u.height+=6}return i.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`),u.height}var Ace=F(()=>{"use strict";Kt();nr();Jt();tr();Qt();Xt();Ls();$r();o(Ece,"requirementBox");o(wh,"addText")});async function Rce(e,t,{config:r}){let{labelStyles:n,nodeStyles:i}=ct(t);t.labelStyle=n||"";let a=10,s=t.width;t.width=(t.width??200)-10;let{shapeSvg:l,bbox:u,label:h}=await It(e,t,Dt(t)),d=t.padding||10,f="",p;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(f=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),p=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",f).attr("target","_blank"));let m={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},g,y;p?{label:g,bbox:y}=await A4(p,"ticket"in t&&t.ticket||"",m):{label:g,bbox:y}=await A4(l,"ticket"in t&&t.ticket||"",m);let{label:v,bbox:x}=await A4(l,"assigned"in t&&t.assigned||"",m);t.width=s;let b=10,T=t?.width||0,k=Math.max(y.height,x.height)/2,C=Math.max(u.height+b*2,t?.height||0)+k,w=-T/2,S=-C/2;h.attr("transform","translate("+(d-T/2)+", "+(-k-u.height/2)+")"),g.attr("transform","translate("+(d-T/2)+", "+(-k+u.height/2)+")"),v.attr("transform","translate("+(d+T/2-x.width-2*a)+", "+(-k+u.height/2)+")");let R,{rx:L,ry:N}=t,{cssStyles:I}=t;if(t.look==="handDrawn"){let _=ut.svg(l),A=dt(t,{}),M=L||N?_.path(io(w,S,T,C,L||0),A):_.rectangle(w,S,T,C,A);R=l.insert(()=>M,":first-child"),R.attr("class","basic label-container").attr("style",I||null)}else{R=l.insert("rect",":first-child"),R.attr("class","basic label-container __APA__").attr("style",i).attr("rx",L??5).attr("ry",N??5).attr("x",w).attr("y",S).attr("width",T).attr("height",C);let _="priority"in t&&t.priority;if(_){let A=l.append("line"),M=w+2,D=S+Math.floor((L??0)/2),P=S+C-Math.floor((L??0)/2);A.attr("x1",M).attr("y1",D).attr("x2",M).attr("y2",P).attr("stroke-width","4").attr("stroke",AQe(_))}}return pt(t,R),t.height=C,t.intersect=function(_){return ht.rect(t,_)},l}var AQe,_ce=F(()=>{"use strict";Kt();nr();km();Jt();tr();AQe=o(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");o(Rce,"kanbanItem")});async function Lce(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:s,label:l}=await It(e,t,Dt(t)),u=a.width+10*s,h=a.height+8*s,d=.15*u,{cssStyles:f}=t,p=a.width+20,m=a.height+20,g=Math.max(u,p),y=Math.max(h,m);l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let v,x=`M0 0
+ a${d},${d} 1 0,0 ${g*.25},${-1*y*.1}
+ a${d},${d} 1 0,0 ${g*.25},0
+ a${d},${d} 1 0,0 ${g*.25},0
+ a${d},${d} 1 0,0 ${g*.25},${y*.1}
+
+ a${d},${d} 1 0,0 ${g*.15},${y*.33}
+ a${d*.8},${d*.8} 1 0,0 0,${y*.34}
+ a${d},${d} 1 0,0 ${-1*g*.15},${y*.33}
+
+ a${d},${d} 1 0,0 ${-1*g*.25},${y*.15}
+ a${d},${d} 1 0,0 ${-1*g*.25},0
+ a${d},${d} 1 0,0 ${-1*g*.25},0
+ a${d},${d} 1 0,0 ${-1*g*.25},${-1*y*.15}
+
+ a${d},${d} 1 0,0 ${-1*g*.1},${-1*y*.33}
+ a${d*.8},${d*.8} 1 0,0 0,${-1*y*.34}
+ a${d},${d} 1 0,0 ${g*.1},${-1*y*.33}
+ H0 V0 Z`;if(t.look==="handDrawn"){let b=ut.svg(i),T=dt(t,{}),k=b.path(x,T);v=i.insert(()=>k,":first-child"),v.attr("class","basic label-container").attr("style",kn(f))}else v=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",x);return v.attr("transform",`translate(${-g/2}, ${-y/2})`),pt(t,v),t.calcIntersect=function(b,T){return ht.rect(b,T)},t.intersect=function(b){return Z.info("Bang intersect",t,b),ht.rect(t,b)},i}var Dce=F(()=>{"use strict";vt();Kt();nr();Jt();tr();Qt();o(Lce,"bang")});async function Ice(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:s,label:l}=await It(e,t,Dt(t)),u=a.width+2*s,h=a.height+2*s,d=.15*u,f=.25*u,p=.35*u,m=.2*u,{cssStyles:g}=t,y,v=`M0 0
+ a${d},${d} 0 0,1 ${u*.25},${-1*u*.1}
+ a${p},${p} 1 0,1 ${u*.4},${-1*u*.1}
+ a${f},${f} 1 0,1 ${u*.35},${u*.2}
+
+ a${d},${d} 1 0,1 ${u*.15},${h*.35}
+ a${m},${m} 1 0,1 ${-1*u*.15},${h*.65}
+
+ a${f},${d} 1 0,1 ${-1*u*.25},${u*.15}
+ a${p},${p} 1 0,1 ${-1*u*.5},0
+ a${d},${d} 1 0,1 ${-1*u*.25},${-1*u*.15}
+
+ a${d},${d} 1 0,1 ${-1*u*.1},${-1*h*.35}
+ a${m},${m} 1 0,1 ${u*.1},${-1*h*.65}
+ H0 V0 Z`;if(t.look==="handDrawn"){let x=ut.svg(i),b=dt(t,{}),T=x.path(v,b);y=i.insert(()=>T,":first-child"),y.attr("class","basic label-container").attr("style",kn(g))}else y=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",v);return l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),y.attr("transform",`translate(${-u/2}, ${-h/2})`),pt(t,y),t.calcIntersect=function(x,b){return ht.rect(x,b)},t.intersect=function(x){return Z.info("Cloud intersect",t,x),ht.rect(t,x)},i}var Mce=F(()=>{"use strict";tr();vt();Qt();nr();Jt();Kt();o(Ice,"cloud")});async function Nce(e,t){let{labelStyles:r,nodeStyles:n}=ct(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:s,label:l}=await It(e,t,Dt(t)),u=a.width+8*s,h=a.height+2*s,d=5,f=t.look==="neo"?`
+ M${-u/2} ${h/2-d}
+ v${-h+2*d}
+ q0,-${d} ${d},-${d}
+ h${u-2*d}
+ q${d},0 ${d},${d}
+ v${h-d}
+ H${-u/2}
+ Z
+ `:`
+ M${-u/2} ${h/2-d}
+ v${-h+2*d}
+ q0,-${d} ${d},-${d}
+ h${u-2*d}
+ q${d},0 ${d},${d}
+ v${h-2*d}
+ q0,${d} ${-d},${d}
+ h${-(u-2*d)}
+ q${-d},0 ${-d},${-d}
+ Z
+ `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let p=i.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",n).attr("d",f);return i.append("line").attr("class","node-line-").attr("x1",-u/2).attr("y1",h/2).attr("x2",u/2).attr("y2",h/2),l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>l.node()),pt(t,p),t.calcIntersect=function(m,g){return ht.rect(m,g)},t.intersect=function(m){return ht.rect(t,m)},i}var Pce=F(()=>{"use strict";nr();Jt();Kt();o(Nce,"defaultMindmapNode")});async function Oce(e,t){let r={padding:t.padding??0};return z4(e,t,r)}var Bce=F(()=>{"use strict";hO();o(Oce,"mindmapCircle")});function $ce(e){return e in pO}var RQe,_Qe,pO,mO=F(()=>{"use strict";soe();coe();hoe();foe();hO();moe();yoe();xoe();Toe();woe();Aoe();_oe();Doe();Moe();Poe();Foe();Goe();Woe();Hoe();Yoe();Xoe();Zoe();Joe();tle();nle();ale();ole();cle();hle();fle();yle();xle();Tle();wle();Sle();Ale();_le();Dle();Mle();Ple();Ble();Fle();Gle();Wle();Hle();Yle();Xle();Zle();Jle();tce();ace();oce();cce();fce();mce();yce();xce();Tce();Sce();Ace();_ce();Dce();Mce();Pce();Bce();RQe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:$le},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Ile},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:zle},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:jle},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Eoe},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Roe},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:z4},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Lce},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Ice},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Ele},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:qoe},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:ule},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:lle},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:sce},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:ile},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Ioe},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:ece},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:uoe},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Nle},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Ule},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:qle},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:zoe},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Uoe},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:goe},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:voe},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:boe},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:dle},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:pce},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Voe},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:ice},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:gle},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Coe},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Loe},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:dce},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:vce},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Noe},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:lce},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:$oe},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Ole},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Cle},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:ble},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:loe},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:poe},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Qle},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Kle},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:gce},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Rle},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:vle}],_Qe=o(()=>{let t=[...Object.entries({state:Vle,choice:doe,note:kle,rectWithTitle:Lle,labelRect:sle,iconSquare:ele,iconCircle:Koe,icon:joe,iconRounded:Qoe,imageSquare:rle,anchor:aoe,kanbanItem:Rce,mindmapCircle:Oce,defaultMindmapNode:Nce,classBox:kce,erBox:fO,requirementBox:Ece}),...RQe.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),pO=_Qe();o($ce,"isValidShape")});var LQe,W4,Fce=F(()=>{"use strict";$r();A2();Xt();vt();mO();Qt();Vr();Nn();Hd();H0();LQe="flowchart-",W4=class{constructor(){this.vertexCounter=0;this.config=Ae();this.diagramId="";this.vertices=new Map;this.edges=[];this.classes=new Map;this.subGraphs=[];this.subGraphLookup=new Map;this.tooltips=new Map;this.subCount=0;this.firstGraphFlag=!0;this.secCount=-1;this.posCrossRef=[];this.funs=[];this.setAccTitle=kr;this.setAccDescription=Rr;this.setDiagramTitle=Or;this.getAccTitle=Ar;this.getAccDescription=_r;this.getDiagramTitle=Lr;this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{o(this,"FlowDB")}sanitizeText(t){return xt.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,r,n,i,a,s,l={},u){if(!t||t.trim().length===0)return;let h;if(u!==void 0){let m;u.includes(`
+`)?m=u+`
+`:m=`{
+`+u+`
+}`,h=Qd(m,{schema:Zd})}let d=this.edges.find(m=>m.id===t);if(d){let m=h;m?.animate!==void 0&&(d.animate=m.animate),m?.animation!==void 0&&(d.animation=m.animation),m?.curve!==void 0&&(d.interpolate=m.curve);return}let f,p=this.vertices.get(t);if(p===void 0&&(r===void 0&&n===void 0&&i!==void 0&&i!==null&&Z.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`),p={id:t,labelType:"text",domId:LQe+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,p)),this.vertexCounter++,r!==void 0?(this.config=Ae(),f=this.sanitizeText(r.text.trim()),p.labelType=r.type,f.startsWith('"')&&f.endsWith('"')&&(f=f.substring(1,f.length-1)),p.text=f):p.text===void 0&&(p.text=t),n!==void 0&&(p.type=n),i?.forEach(m=>{p.styles.push(m)}),a?.forEach(m=>{p.classes.push(m)}),s!==void 0&&(p.dir=s),p.props===void 0?p.props=l:l!==void 0&&Object.assign(p.props,l),h!==void 0){if(h.shape){if(h.shape!==h.shape.toLowerCase()||h.shape.includes("_"))throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);if(!$ce(h.shape))throw new Error(`No such shape: ${h.shape}.`);p.type=h?.shape}h?.label&&(p.text=h?.label,p.labelType=this.sanitizeNodeLabelType(h?.labelType)),h?.icon&&(p.icon=h?.icon,!h.label?.trim()&&p.text===t&&(p.text="")),h?.form&&(p.form=h?.form),h?.pos&&(p.pos=h?.pos),h?.img&&(p.img=h?.img,!h.label?.trim()&&p.text===t&&(p.text="")),h?.constraint&&(p.constraint=h.constraint),h.w&&(p.assetWidth=Number(h.w)),h.h&&(p.assetHeight=Number(h.h))}}addSingleLink(t,r,n,i){let l={start:t,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Z.info("abc78 Got edge...",l);let u=n.text;if(u!==void 0&&(l.text=this.sanitizeText(u.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(u.type)),n!==void 0&&(l.type=n.type,l.stroke=n.stroke,l.length=n.length>10?10:n.length),i&&!this.edges.some(h=>h.id===i))l.id=i,l.isUserDefinedId=!0;else{let h=this.edges.filter(d=>d.start===l.start&&d.end===l.end);h.length===0?l.id=eu(l.start,l.end,{counter:0,prefix:"L"}):l.id=eu(l.start,l.end,{counter:h.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Z.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
+
+Initialize mermaid with maxEdges set to a higher number to allow more edges.
+You cannot set this config via configuration inside the diagram as it is a secure config.
+You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t=="object"&&"id"in t&&typeof t.id=="string"}addLink(t,r,n){let i=this.isLinkData(n)?n.id.replace("@",""):void 0;Z.info("addLink",t,r,i);for(let a of t)for(let s of r){let l=a===t[t.length-1],u=s===r[0];l&&u?this.addSingleLink(a,s,n,i):this.addSingleLink(a,s,n,void 0)}}updateLinkInterpolate(t,r){t.forEach(n=>{n==="default"?this.edges.defaultInterpolate=r:this.edges[n].interpolate=r})}updateLink(t,r){t.forEach(n=>{if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?this.edges.defaultStyle=r:(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some(i=>i?.startsWith("fill"))&&this.edges[n]?.style?.push("fill:none"))})}addClass(t,r){let n=r.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(i=>{let a=this.classes.get(i);a===void 0&&(a={id:i,styles:[],textStyles:[]},this.classes.set(i,a)),n?.forEach(s=>{if(/color/.exec(s)){let l=s.replace("fill","bgFill");a.textStyles.push(l)}a.styles.push(s)})})}setDirection(t){this.direction=t.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(t,r){for(let n of t.split(",")){let i=this.vertices.get(n);i&&i.classes.push(r);let a=this.edges.find(l=>l.id===n);a&&a.classes.push(r);let s=this.subGraphLookup.get(n);s&&s.classes.push(r)}}setTooltip(t,r){if(r!==void 0){r=this.sanitizeText(r);for(let n of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}}setClickFun(t,r,n){if(Ae().securityLevel!=="loose"||r===void 0)return;let i=[];if(typeof n=="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s{let s=this.lookUpDomId(t),l=document.querySelector(`[id="${s}"]`);l!==null&&l.addEventListener("click",()=>{Zt.runFunc(r,...i)},!1)}))}setLink(t,r,n){t.split(",").forEach(i=>{let a=this.vertices.get(i);a!==void 0&&(a.link=Zt.formatUrl(r,this.config),a.linkTarget=n)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,r,n){t.split(",").forEach(i=>{this.setClickFun(i,r,n)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(r=>{r(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=Dy();et(t).select("svg").selectAll("g.node").on("mouseover",a=>{let s=et(a.currentTarget),l=s.attr("title");if(l===null)return;let u=a.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(s.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.bottom+"px"),r.html(Zs.sanitize(l)),s.classed("hover",!0)}).on("mouseout",a=>{r.transition().duration(500).style("opacity",0),et(a.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=Ae(),yr()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,r,n){let i=t.text.trim(),a=n.text;t===n&&/\s/.exec(n.text)&&(i=void 0);let l=o(g=>{let y={boolean:{},number:{},string:{}},v=[],x;return{nodeList:g.filter(function(T){let k=typeof T;return T.stmt&&T.stmt==="dir"?(x=T.value,!1):T.trim()===""?!1:k in y?y[k].hasOwnProperty(T)?!1:y[k][T]=!0:v.includes(T)?!1:v.push(T)}),dir:x}},"uniq")(r.flat()),u=l.nodeList,h=l.dir,d=h!==void 0,f=Ae().flowchart??{},p=h??(f.inheritDir?this.getDirection()??Ae().direction??void 0:void 0);if(this.version==="gen-1")for(let g=0;g2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===t)return{result:!0,count:0};let i=0,a=1;for(;i=0){let l=this.indexNodes2(t,s);if(l.result)return{result:!0,count:a+l.count};a=a+l.count}i=i+1}return{result:!1,count:a}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(t){let r=t.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let i="normal";return r.includes("=")&&(i="thick"),r.includes(".")&&(i="dotted"),{type:n,stroke:i}}countChar(t,r){let n=r.length,i=0;for(let a=0;a":i="arrow_point",r.startsWith("<")&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle",r.startsWith("o")&&(i="double_"+i,n=n.slice(1));break}let a="normal",s=n.length-1;n.startsWith("=")&&(a="thick"),n.startsWith("~")&&(a="invisible");let l=this.countChar(".",n);return l&&(a="dotted",s=l),{type:i,stroke:a,length:s}}destructLink(t,r){let n=this.destructEndLink(t),i;if(r){if(i=this.destructStartLink(r),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=n.length,i}return n}exists(t,r){for(let n of t)if(n.nodes.includes(r))return!0;return!1}makeUniq(t,r){let n=[];return t.nodes.forEach((i,a)=>{this.exists(r,i)||n.push(t.nodes[a])}),{nodes:n}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return t.form==="circle"?"iconCircle":t.form==="square"?"iconSquare":t.form==="rounded"?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,r){return t.find(n=>n.id===r)}destructEdgeType(t){let r="none",n="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":n=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=t.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(t,r,n,i,a,s){let l=n.get(t.id),u=i.get(t.id)??!1,h=this.findNode(r,t.id);if(h)h.cssStyles=t.styles,h.cssCompiledStyles=this.getCompiledStyles(t.classes),h.cssClasses=t.classes.join(" ");else{let d={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:l,padding:a.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:s,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};u?r.push({...d,isGroup:!0,shape:"rect"}):r.push({...d,isGroup:!1,shape:this.getTypeFromVertex(t)})}}getCompiledStyles(t){let r=[];for(let n of t){let i=this.classes.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(a=>a.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(a=>a.trim()))}return r}getData(){let t=Ae(),r=[],n=[],i=this.getSubGraphs(),a=new Map,s=new Map;for(let h=i.length-1;h>=0;h--){let d=i[h];d.nodes.length>0&&s.set(d.id,!0);for(let f of d.nodes)a.set(f,d.id)}for(let h=i.length-1;h>=0;h--){let d=i[h];r.push({id:d.id,label:d.title,labelStyle:"",labelType:d.labelType,parentId:a.get(d.id),padding:8,cssCompiledStyles:this.getCompiledStyles(d.classes),cssClasses:d.classes.join(" "),shape:"rect",dir:d.dir==="TD"?"TB":d.dir,explicitDir:d.hasExplicitDir,isGroup:!0,look:t.look})}this.getVertices().forEach(h=>{this.addNodeFromVertex(h,r,a,s,t,t.look||"classic")});let u=this.getEdges();return u.forEach((h,d)=>{let{arrowTypeStart:f,arrowTypeEnd:p}=this.destructEdgeType(h.type),m=[...u.defaultStyle??[]];h.style&&m.push(...h.style);let g={id:eu(h.start,h.end,{counter:d,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:h.start,end:h.end,type:h.type??"normal",label:h.text,labelType:h.labelType,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":f,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":p,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:m,style:m,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};n.push(g)}),{nodes:r,edges:n,other:{},config:t}}defaultConfig(){return bS.flowchart}}});var pl,Am=F(()=>{"use strict";$r();pl=o((e,t)=>{let r;return t==="sandbox"&&(r=et("#i"+e)),(t==="sandbox"?et(r.nodes()[0].contentDocument.body):et("body")).select(`[id="${e}"]`)},"getDiagramElement")});var oc,Vy=F(()=>{"use strict";oc=o(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,n=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins")});var zce,Gce=F(()=>{"use strict";Xt();ur();vt();$r();tr();Ls();_4();Jt();zce=o(async(e,t)=>{let r=Ae(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,l=s,{labelStyles:u,nodeStyles:h,borderStyles:d,backgroundStyles:f}=ct(t),p=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),m=ya(r.flowchart.htmlLabels),g=t.direction==="LR",y=p.insert("g").attr("class","cluster-label swimlane-label"),v=await Pn(y,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width}),x=v.getBBox();if(m){let A=v.children[0],M=et(v);x=A.getBoundingClientRect(),M.attr("width",x.width),M.attr("height",x.height)}let b=t.padding??0,T=t.width<=x.width+b?x.width+b:t.width;t.width<=x.width+b?t.diff=(T-t.width)/2-b:t.diff=-b;let k=t.height,C=t.y-k/2,w=t.y+k/2,S=t.x-T/2,R=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:C+k/3,L=g?4:0,N=x.height+2*L,I,_;if(g){let A=Math.max(N,x.height+2*L),M=S+A,D=Math.max(0,T-A);if(t.look==="handDrawn"){let O=ut.svg(p),$=dt(t,{roughness:.7,fill:a,stroke:l,fillWeight:3,seed:i}),V=dt(t,{roughness:.7,fill:"none",stroke:l,seed:i}),G=O.rectangle(S,C,A,k,$);I=p.insert(()=>G,":first-child");let z=O.rectangle(M,C,D,k,V);_=p.insert(()=>z,":first-child"),I.select("path:nth-child(2)").attr("style",d.join(";")),I.select("path").attr("style",f.join(";").replace("fill","stroke"))}else I=p.insert("rect",":first-child"),_=p.insert("rect",":first-child"),I.attr("class","swimlane-title").attr("style",h).attr("x",S).attr("y",C).attr("width",A).attr("height",k).attr("fill",a).attr("stroke",l),_.attr("class","swimlane-body").attr("style",h).attr("x",M).attr("y",C).attr("width",D).attr("height",k).attr("fill","none").attr("stroke",l);let P=S+A/2,B=t.y;y.attr("transform",`translate(${P}, ${B}) rotate(-90) translate(${-x.width/2}, ${-x.height/2})`)}else{let A=Math.max(0,R-C),M=Math.min(N,A),D=C+M,P=Math.max(0,w-D),B=t.x-T/2;if(t.look==="handDrawn"){let V=ut.svg(p),G=dt(t,{roughness:.7,fill:a,stroke:l,fillWeight:3,seed:i}),z=dt(t,{roughness:.7,fill:"none",stroke:l,seed:i}),W=V.rectangle(B,C,T,M,G);I=p.insert(()=>W,":first-child");let H=V.rectangle(B,D,T,P,z);_=p.insert(()=>H,":first-child"),I.select("path:nth-child(2)").attr("style",d.join(";")),I.select("path").attr("style",f.join(";").replace("fill","stroke"))}else I=p.insert("rect",":first-child"),_=p.insert("rect",":first-child"),I.attr("class","swimlane-title").attr("style",h).attr("x",B).attr("y",C).attr("width",T).attr("height",M).attr("fill",a).attr("stroke",l),_.attr("class","swimlane-body").attr("style",h).attr("x",B).attr("y",D).attr("width",T).attr("height",P).attr("fill","none").attr("stroke",l);let O=t.x-x.width/2,$=C+(M-x.height)/2;y.attr("transform",`translate(${O}, ${$})`)}if(Z.trace("Swimlane data ",t,JSON.stringify(t)),u){let A=y.select("span");A&&A.attr("style",u)}return t.offsetX=0,t.width=T,t.height=k,t.offsetY=x.height-b/2,t.intersect=function(A){return nu(t,A)},{cluster:p,labelBBox:x}},"swimlane")});var Vce,DQe,IQe,MQe,NQe,PQe,OQe,Wce,rf,q4,Wy=F(()=>{"use strict";Xt();ur();vt();Vy();$r();tr();Ls();_4();G4();km();Jt();Gce();Vce=o(async(e,t)=>{Z.info("Creating subgraph rect for ",t.id,t);let r=Ae(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:d}=ct(t),f=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),p=Gr(r),m=f.insert("g").attr("class","cluster-label "),g;t.labelType==="markdown"?g=await Pn(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}):g=await sc(m,t.label,t.labelStyle||"",!1,!0);let y=g.getBBox();if(Gr(r)){let S=g.children[0],R=et(g);y=S.getBoundingClientRect(),R.attr("width",y.width),R.attr("height",y.height)}let v=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(v-t.width)/2-t.padding:t.diff=-t.padding;let x=t.height,b=t.x-v/2,T=t.y-x/2;Z.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){let S=ut.svg(f),R=dt(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),L=S.path(io(b,T,v,x,0),R);k=f.insert(()=>(Z.debug("Rough node insert CXC",L),L),":first-child"),k.select("path:nth-child(2)").attr("style",h.join(";")),k.select("path").attr("style",d.join(";").replace("fill","stroke"))}else k=f.insert("rect",":first-child"),k.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",T).attr("width",v).attr("height",x);let{subGraphTitleTopMargin:C}=oc(r);if(m.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+C})`),l){let S=m.select("span");S&&S.attr("style",l)}let w=k.node().getBBox();return t.offsetX=0,t.width=w.width,t.height=w.height,t.offsetY=y.height-t.padding/2,t.intersect=function(S){return nu(t,S)},{cluster:f,labelBBox:y}},"rect"),DQe=o((e,t)=>{let r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),n=r.insert("rect",":first-child"),i=0*t.padding,a=i/2;n.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");let s=n.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(l){return nu(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),IQe=o(async(e,t)=>{let r=Ae(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:l,nodeBorder:u}=n,h=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),d=h.insert("g",":first-child"),f=h.insert("g").attr("class","cluster-label"),p=h.append("rect"),m=await sc(f,t.label,t.labelStyle,void 0,!0),g=m.getBBox();if(Gr(r)){let L=m.children[0],N=et(m);g=L.getBoundingClientRect(),N.attr("width",g.width),N.attr("height",g.height)}let y=0*t.padding,v=y/2,x=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+y;t.width<=g.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;let b=t.height+y,T=t.height+y-g.height-6,k=t.x-x/2,C=t.y-b/2;t.width=x;let w=t.y-t.height/2-v+g.height+2,S;if(t.look==="handDrawn"){let L=t.cssClasses.includes("statediagram-cluster-alt"),N=ut.svg(h),I=t.rx||t.ry?N.path(io(k,C,x,b,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:i}):N.rectangle(k,C,x,b,{seed:i});S=h.insert(()=>I,":first-child");let _=N.rectangle(k,w,x,T,{fill:L?a:s,fillStyle:L?"hachure":"solid",stroke:u,seed:i});S=h.insert(()=>I,":first-child"),p=h.insert(()=>_)}else S=d.insert("rect",":first-child"),S.attr("class","outer").attr("x",k).attr("y",C).attr("width",x).attr("height",b).attr("data-look",t.look),p.attr("class","inner").attr("x",k).attr("y",w).attr("width",x).attr("height",T);f.attr("transform",`translate(${t.x-g.width/2}, ${C+1-(Gr(r)?0:3)})`);let R=S.node().getBBox();return t.height=R.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(L){return nu(t,L)},{cluster:h,labelBBox:g}},"roundedWithTitle"),MQe=o(async(e,t)=>{Z.info("Creating subgraph rect for ",t.id,t);let r=Ae(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:d}=ct(t),f=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),p=Gr(r),m=f.insert("g").attr("class","cluster-label "),g=await Pn(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}),y=g.getBBox();if(Gr(r)){let S=g.children[0],R=et(g);y=S.getBoundingClientRect(),R.attr("width",y.width),R.attr("height",y.height)}let v=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(v-t.width)/2-t.padding:t.diff=-t.padding;let x=t.height,b=t.x-v/2,T=t.y-x/2;Z.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){let S=ut.svg(f),R=dt(t,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:i}),L=S.path(io(b,T,v,x,t.rx),R);k=f.insert(()=>(Z.debug("Rough node insert CXC",L),L),":first-child"),k.select("path:nth-child(2)").attr("style",h.join(";")),k.select("path").attr("style",d.join(";").replace("fill","stroke"))}else k=f.insert("rect",":first-child"),k.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",T).attr("width",v).attr("height",x);let{subGraphTitleTopMargin:C}=oc(r);if(m.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+C})`),l){let S=m.select("span");S&&S.attr("style",l)}let w=k.node().getBBox();return t.offsetX=0,t.width=w.width,t.height=w.height,t.offsetY=y.height-t.padding/2,t.intersect=function(S){return nu(t,S)},{cluster:f,labelBBox:y}},"kanbanSection"),NQe=o((e,t)=>{let r=Ae(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),l=s.insert("g",":first-child"),u=0*t.padding,h=t.width+u;t.diff=-t.padding;let d=t.height+u,f=t.x-h/2,p=t.y-d/2;t.width=h;let m;if(t.look==="handDrawn"){let v=ut.svg(s).rectangle(f,p,h,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=s.insert(()=>v,":first-child")}else{m=l.insert("rect",":first-child");let y="outer";t.look,y="divider",m.attr("class",y).attr("x",f).attr("y",p).attr("width",h).attr("height",d).attr("data-look",t.look)}let g=m.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(y){return nu(t,y)},{cluster:s,labelBBox:{}}},"divider"),PQe=Vce,OQe={rect:Vce,squareRect:PQe,roundedWithTitle:IQe,noteGroup:DQe,divider:NQe,kanbanSection:MQe,swimlane:zce},Wce=new Map,rf=o(async(e,t)=>{let r=t.shape||"rect",n=await OQe[r](e,t);return Wce.set(t.id,n),n},"insertCluster"),q4=o(()=>{Wce=new Map},"clear")});var ml,gO=F(()=>{"use strict";ml=o((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";let r=e.x??0,n=e.y??0;return"translate("+-(r+e.width/2)+", "+-(n+e.height/2)+")"},"computeLabelTransform")});function H4(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=di(e),t=di(t);let[r,n]=[e.x,e.y],[i,a]=[t.x,t.y],s=i-r,l=a-n;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}var Yi,yO,di,U4,Y4=F(()=>{"use strict";Yi={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},yO={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};o(H4,"calculateDeltaAndAngle");di=o(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),U4=o(e=>({x:o(function(t,r,n){let i=0,a=di(n[0]).x=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Yi,e.arrowTypeEnd)){let{angle:m,deltaX:g}=H4(n[n.length-1],n[n.length-2]);i=Yi[e.arrowTypeEnd]*Math.cos(m)*(g>=0?1:-1)}let s=Math.abs(di(t).x-di(n[n.length-1]).x),l=Math.abs(di(t).y-di(n[n.length-1]).y),u=Math.abs(di(t).x-di(n[0]).x),h=Math.abs(di(t).y-di(n[0]).y),d=Yi[e.arrowTypeStart],f=Yi[e.arrowTypeEnd],p=1;if(s0&&l0&&h=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Yi,e.arrowTypeEnd)){let{angle:m,deltaY:g}=H4(n[n.length-1],n[n.length-2]);i=Yi[e.arrowTypeEnd]*Math.abs(Math.sin(m))*(g>=0?1:-1)}let s=Math.abs(di(t).y-di(n[n.length-1]).y),l=Math.abs(di(t).x-di(n[n.length-1]).x),u=Math.abs(di(t).y-di(n[0]).y),h=Math.abs(di(t).x-di(n[0]).x),d=Yi[e.arrowTypeStart],f=Yi[e.arrowTypeEnd],p=1;if(s0&&l0&&h{"use strict";vt();Hce=o((e,t,r,n,i,a=!1,s)=>{t.arrowTypeStart&&qce(e,"start",t.arrowTypeStart,r,n,i,a,s),t.arrowTypeEnd&&qce(e,"end",t.arrowTypeEnd,r,n,i,a,s)},"addEdgeMarkers"),BQe={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},$Qe=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],qce=o((e,t,r,n,i,a,s=!1,l)=>{let u=BQe[r],h=u&&$Qe.includes(u.type);if(!u){Z.warn(`Unknown arrow type: ${r}`);return}let d=u.type,m=`${i}_${a}-${d}${t==="start"?"Start":"End"}${s&&h?"-margin":""}`;if(l&&l.trim()!==""){let g=l.replace(/[^\dA-Za-z]/g,"_"),y=`${m}_${g}`;if(!document.getElementById(y)){let v=document.getElementById(m);if(v){let x=v.cloneNode(!0);x.id=y,x.querySelectorAll("path, circle, line").forEach(T=>{T.setAttribute("stroke",l),u.fill&&T.setAttribute("fill",l)}),v.parentNode?.appendChild(x)}}e.attr(`marker-${t}`,`url(${n}#${y})`)}else e.attr(`marker-${t}`,`url(${n}#${m})`)},"addEdgeMarker")});function j4(e,t){Gr(Ae())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}function WQe(e){let t=[],r=[];for(let n=1;n5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===s.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-s.y)>5)&&(t.push(a),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}function UQe(e,t){if(e.length<2)return"";let r="",n=e.length,i=1e-5;for(let a=0;a({...i}));if(e.length>=2&&Yi[t.arrowTypeStart]){let i=Yi[t.arrowTypeStart],a=e[0],s=e[1],{angle:l}=Xce(a,s),u=i*Math.cos(l),h=i*Math.sin(l);r[0].x=a.x+u,r[0].y=a.y+h}let n=e.length;if(n>=2&&Yi[t.arrowTypeEnd]){let i=Yi[t.arrowTypeEnd],a=e[n-1],s=e[n-2],{angle:l}=Xce(s,a),u=i*Math.cos(l),h=i*Math.sin(l);r[n-1].x=a.x-u,r[n-1].y=a.y-h}return r}var FQe,qy,_i,X4,z2,Rm,K4,zQe,GQe,VQe,Yce,jce,qQe,HQe,Hy,G2=F(()=>{"use strict";Xt();ur();vt();Ls();gO();Qt();Y4();Vy();$r();tr();G4();Uce();Jt();FQe=o(e=>typeof e=="string"?e:Ae()?.flowchart?.curve,"resolveEdgeCurveType"),qy=new Map,_i=new Map,X4=o(()=>{qy.clear(),_i.clear()},"clear"),z2=o(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),Rm=o(async(e,t)=>{let r=Ae(),n=Gr(r),{labelStyles:i}=ct(t);t.labelStyle=i;let a=e.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",t.id),l=t.labelType==="markdown",h=await Pn(e,t.label,{style:z2(t.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1,markdown:l,width:l?void 0:void 0},r);s.node().appendChild(h),Z.info("abc82",t,t.labelType);let d=h.getBBox(),f=d;if(n){let m=h.children[0],g=et(h);d=m.getBoundingClientRect(),f=d,g.attr("width",d.width),g.attr("height",d.height)}else{let m=et(h).select("text").node();m&&typeof m.getBBox=="function"&&(f=m.getBBox())}s.attr("transform",ml(f,n)),qy.set(t.id,a),t.width=d.width,t.height=d.height;let p;if(t.startLabelLeft){let m=e.insert("g").attr("class","edgeTerminals"),g=m.insert("g").attr("class","inner"),y=await sc(g,t.startLabelLeft,z2(t.labelStyle)||"",!1,!1);p=y;let v=y.getBBox();if(n){let x=y.children[0],b=et(y);v=x.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",ml(v,n)),_i.get(t.id)||_i.set(t.id,{}),_i.get(t.id).startLeft=m,j4(p,t.startLabelLeft)}if(t.startLabelRight){let m=e.insert("g").attr("class","edgeTerminals"),g=m.insert("g").attr("class","inner"),y=await sc(g,t.startLabelRight,z2(t.labelStyle)||"",!1,!1);p=y;let v=y.getBBox();if(n){let x=y.children[0],b=et(y);v=x.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",ml(v,n)),_i.get(t.id)||_i.set(t.id,{}),_i.get(t.id).startRight=m,j4(p,t.startLabelRight)}if(t.endLabelLeft){let m=e.insert("g").attr("class","edgeTerminals"),g=m.insert("g").attr("class","inner"),y=await sc(m,t.endLabelLeft,z2(t.labelStyle)||"",!1,!1);p=y;let v=y.getBBox();if(n){let x=y.children[0],b=et(y);v=x.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",ml(v,n)),_i.get(t.id)||_i.set(t.id,{}),_i.get(t.id).endLeft=m,j4(p,t.endLabelLeft)}if(t.endLabelRight){let m=e.insert("g").attr("class","edgeTerminals"),g=m.insert("g").attr("class","inner"),y=await sc(m,t.endLabelRight,z2(t.labelStyle)||"",!1,!1);p=y;let v=y.getBBox();if(n){let x=y.children[0],b=et(y);v=x.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",ml(v,n)),_i.get(t.id)||_i.set(t.id,{}),_i.get(t.id).endRight=m,j4(p,t.endLabelRight)}return h},"insertEdgeLabel");o(j4,"setTerminalWidth");K4=o((e,t)=>{Z.debug("Moving label abc88 ",e.id,e.label,qy.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,n=Ae(),{subGraphTitleTotalMargin:i}=oc(n);if(e.label){let a=qy.get(e.id),s=e.x,l=e.y;if(r){let u=Zt.calcLabelPosition(r);Z.debug("Moving label "+e.label+" from (",s,",",l,") to (",u.x,",",u.y,") abc88"),t.updatedPath&&(s=u.x,l=u.y)}a.attr("transform",`translate(${s}, ${l+i/2})`)}if(e.startLabelLeft){let a=_i.get(e.id).startLeft,s=e.x,l=e.y;if(r){let u=Zt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(e.startLabelRight){let a=_i.get(e.id).startRight,s=e.x,l=e.y;if(r){let u=Zt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(e.endLabelLeft){let a=_i.get(e.id).endLeft,s=e.x,l=e.y;if(r){let u=Zt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(e.endLabelRight){let a=_i.get(e.id).endRight,s=e.x,l=e.y;if(r){let u=Zt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}},"positionEdgeLabel"),zQe=o((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[r,n]=t,i=Math.abs(n.x-r.x),a=Math.abs(n.y-r.y);return i<.001||a<.001?t:a>=i?[r,{x:r.x,y:n.y},n]:[r,{x:n.x,y:r.y},n]},"orthogonalizeToLabelClippedPoints"),GQe=o((e,t)=>{let r=e.x,n=e.y,i=Math.abs(t.x-r),a=Math.abs(t.y-n),s=e.width/2,l=e.height/2;return i>=s||a>=l},"outsideNode"),VQe=o((e,t,r)=>{Z.debug(`intersection calc abc89:
+ outsidePoint: ${JSON.stringify(t)}
+ insidePoint : ${JSON.stringify(r)}
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let n=e.x,i=e.y,a=Math.abs(n-r.x),s=e.width/2,l=r.xMath.abs(n-t.x)*u){let f=r.y{Z.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],i=!1;return e.forEach(a=>{if(Z.info("abc88 checking point",a,t),!GQe(t,a)&&!i){let s=VQe(t,n,a);Z.debug("abc88 inside",a,n,s),Z.debug("abc88 intersection",s,t);let l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)?Z.warn("abc88 no intersect",s,r):r.push(s),i=!0}else Z.warn("abc88 outside",a,n),n=a,i||r.push(a)}),Z.debug("returning points",r),r},"cutPathAtIntersect");o(WQe,"extractCornerPoints");jce=o(function(e,t,r){let n=t.x-e.x,i=t.y-e.y,a=Math.sqrt(n*n+i*i),s=r/a;return{x:t.x-s*n,y:t.y-s*i}},"findAdjacentPoint"),qQe=o(function(e){let{cornerPointPositions:t}=WQe(e),r=[];for(let n=0;n